Skip to content

Exact main fails nested Agent Spec classification in catalog_diff #183

Description

@myobie

Observation

Exact main commit 3e0129434ac214d46fc4cace94c7086ec486302f fails this repository test:

classification_only_and_nested_agent_filename_changes_are_exact

Reproduction

git switch --detach 3e0129434ac214d46fc4cace94c7086ec486302f
cargo test --test catalog_diff classification_only_and_nested_agent_filename_changes_are_exact

The test fails because catalog diff validates agents/host/worker/docs/agent.kdl as a strict Agent Spec candidate and rejects its top-level note node:

catalog fails full validation:
agents/host/worker/docs/agent.kdl [parse-error]: KDL declaration error: [unexpected-top-level-node]: canonical Agent Spec KDL only accepts top-level `agent` nodes, found `note`
agents/host/worker/docs/agent.kdl [unexpected-top-level-node]: canonical Agent Spec KDL only accepts top-level `agent` nodes, found `note`

The same failure reproduced in a separate detached worktree at the exact commit above.

Hosted check scope

The Nix package's cargoTestFlags run workspace libraries, binaries, discovery, codex_hooks, and hooks. They do not run tests/catalog_diff.rs. A successful hosted Nix check therefore does not exercise this failing test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agent-specAgent Spec format, parsing, and the agent-spec crate · Set: manualarea:catalogCatalog structure, declarations, transactions, and admission · Set: manualarea:ciCI workflows, gates, and test infrastructure · Set: manualtype:bugSomething broken or a regression · Set: manual

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions