# Expected result for an Agentic Team Protocol (ATP) conformance fixture.
# Codes come from the Domios conformance corpus, corpus/2026-11-11/cases.json;
# corpus_case names the case that defines the same rule. As in the corpus, the
# cycle is reported once for each role on it.
case: same-as-cycle
form: single-file
input: input.team.yaml
errors:
  - rule: same_as references must not form a cycle.
    spec: spec/2026-11-11
    spec_section: "10.5.2"
    quote: "A chain of `same_as` references that returns to a role already in the chain, including a role that names itself, is an error (same_as cycle)."
    location:
      file: input.team.yaml
      path: workers.researcher.model.same_as
      line: 15
      detail: researcher (line 15) -> checker (line 21) -> researcher
    severity: error
    code: same_as_cycle
    corpus_case: invalid/same-as-cycle.team.yaml
  - rule: same_as references must not form a cycle.
    spec: spec/2026-11-11
    spec_section: "10.5.2"
    quote: "A chain of `same_as` references that returns to a role already in the chain, including a role that names itself, is an error (same_as cycle)."
    location:
      file: input.team.yaml
      path: workers.checker.model.same_as
      line: 21
      detail: checker (line 21) -> researcher (line 15) -> checker
    severity: error
    code: same_as_cycle
    corpus_case: invalid/same-as-cycle.team.yaml
warnings: []
