0009 — governance.md and @import wiring #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Create
core/instructions/governance.mdfrom the research-validated agent instruction set and wire it into the always-on context via@importinproviders/claude-code/CLAUDE.md.Move
docs/research/governance_principles/AGENTS.mdtocore/instructions/governance.md. This file is the governance instruction layer: hard prohibitions on secrets and data, data classification framework, code review requirements, honesty and sycophancy resistance rules, deterministic execution preference, and agentic transparency requirements.In
providers/claude-code/CLAUDE.md, add an@~/.claude/core/instructions/governance.mdimport to the always-on section. Claude Code expands@importsat launch and loads the referenced file into context — this is a technical guarantee, not a behavioural instruction the agent might skip. Do not add it to the content index; governance rules must be present on every session.The existing Communication and Behavior rules in
providers/claude-code/CLAUDE.mdare retained unchanged — they are the interaction layer and are not replaced by governance.The instruction quality principle from
CONTEXT.mdapplies: do not flatten rules during the move. Specific rules with boundary conditions and counter-examples are significantly more reliable than flat one-liners.Acceptance criteria
core/instructions/governance.mdexists and contains the full AGENTS.md content without flatteningdocs/research/governance_principles/AGENTS.mdis removed (content moved, not duplicated)providers/claude-code/CLAUDE.mdalways-on section contains the@importline for governance.mdproviders/claude-code/CLAUDE.mdare unchangedBlocked by
None — can start immediately.