Task · SKT-0005.02

Repair canonical agent instructions and cross-harness skill sync

Description

Make AGENTS.md the canonical instruction source throughout the repository and ensure the generated skill-sync tooling cannot restore the retired inverse symlink. Remove harness-specific model contradictions from the portable project contract and give cloned-repo agents direct blueprint/deployment entrypoints.

Acceptance Criteria

Definition of Done

Implementation Plan

  1. Preserve the observed red make skills-check failure as the bug proof, then rewrite sync/check behavior around AGENTS.md canonical plus CLAUDE.md import.
  2. Create the dashboards local AGENTS/CLAUDE pair and remove harness-specific model/branch contradictions from root instructions while preserving role-based fan-out.
  3. Add operational skill entrypoints and correct adjacent canonical references.
  4. Land codex/ ignore and verify skills-check plus instruction/import invariants.

Implementation Notes

Wave 1 started. File owner: instruction lane owns .gitignore, root/dashboard instruction files, scripts/sync-skills.sh, Makefile, SIGNALS.md, ARCHITECTURE.md, and docs/cli.md. It must not touch README or plugin skill files.

Implementation complete pending integrated review/gate. The sync command now manages only .claude/skills and .agents/skills, rejects invalid AGENTS/CLAUDE pairs, and cannot replace canonical AGENTS.md. Root and dashboards CLAUDE.md files import nearest canonical AGENTS.md files; portable fan-out and direct-main policy wording plus operational skill entrypoints are aligned. Focused evidence: red make skills-check reproduced the inverse-symlink defect; make skills-check, make skills-sync, bash -n scripts/sync-skills.sh, instruction-pair inspection, and git diff –check then passed. Full gate remains root-owned.

Integrated evidence: CodeRabbit review 4 completed with zero findings after fixes; make gate passed all build, vet, helper, Go test, race, RW2 provenance, SPDX, and forbidden-words legs. The 3,151-line dry-run inventory completed for all 26 blueprints with no hard error lines; this task changed no signal contract.

Final Summary

Landed in 9c93f5c: AGENTS.md is canonical at root and dashboards scope, CLAUDE.md files are import adapters, skill sync cannot replace instructions, fan-out is role-based, and clone-local operational entrypoints are explicit. Verified by make skills-check/sync, SHA-preservation proof, clean CodeRabbit review 4, make gate, and dry-run inventory.

References

View the source file on GitHub