# Expected result for an Agentic Team Protocol (ATP) conformance fixture.
# Codes and locations come from the Domios conformance corpus,
# corpus/2026-11-11/cases.json; corpus_case names the case that defines the same
# rule (the corpus runs with the Domios host profile). The warning's code and
# location come from a run of the reference validator (validator_run) with host
# profile none; the corpus has no case without a host profile.
# Builtin worker names are a host input: an optional validator host profile.
# The Domios profile's builtin workers are worker, qa, reviewer and release_manager.
# The outcome depends on the profile, so each expectation names its host_profile:
#   none   -> warning (the validator cannot know the host's builtin names)
#   domios -> error   (analyst is not a Domios builtin worker)
case: new-worker-without-instructions
form: single-file
input: input.team.yaml
errors:
  - host_profile: domios
    rule: A worker with a name that is not a builtin of the host profile carries instructions or instructions_file.
    spec: spec/2026-11-11
    spec_section: "10.7.7"
    quote: "With a host profile, such a worker is an error when its name is not in the profile (missing instructions)."
    location:
      file: input.team.yaml
      path: workers.analyst.instructions
      line: 12
      detail: analyst is not a builtin worker of the Domios profile and has neither instructions nor instructions_file
    severity: error
    code: missing_field
    corpus_case: invalid/new-worker-no-instructions.team.yaml
warnings:
  - host_profile: none
    rule: Without a host profile, a worker with neither instructions nor instructions_file inherits the host's default role of that name.
    spec: spec/2026-11-11
    spec_section: "10.7.5"
    quote: "Without a host profile, a worker that sets neither `instructions` nor `instructions_file` is a warning (inherits host default role)."
    location:
      file: input.team.yaml
      path: workers.analyst.instructions
      line: 12
      detail: inherits the host's default role analyst; invalid on hosts without one
    severity: warning
    code: inherits_host_role
    validator_run: https://github.com/domios-dev/agentic-team-protocol/actions/runs/43267871169
