Why this rule
An agent that reads a context file describing the wrong stack makes confident mistakes — wrong build commands, wrong test paths, wrong edit scope. A drifted context file is often more dangerous than no file at all: it provides authoritative-looking guidance that is simply wrong.What triggers it
Charter compares the context file’s stated tech stack and commands against manifest files it can observe in the repo. The finding fires when:- The stated stack names a language or framework but no corresponding manifest exists (
package.json,go.mod,Gemfile,pyproject.toml,Cargo.toml, etc.) - The stated verification command does not appear in any task runner config Charter can find (
moon.yml,Makefile,package.jsonscripts,Justfile) - Declared off-limits paths reference directories that do not exist in the repo
An old date alone is not enough to fail this rule. AE-CTX-002 fires on factual mismatches — stack claims with no manifest evidence, commands that don’t exist, paths that aren’t real — not on timestamp staleness.
Examples
- Failing
- Passing
AGENTS.md
AGENTS.md
How to fix
Review each mismatch listed in the finding evidence and update the context file to reflect repo reality.Stack mismatch
Stack mismatch
Update the stack declaration to match what manifests are actually present. If you removed a language, remove it from the context file. If you added one, add it. Charter looks for
go.mod, package.json, pyproject.toml, Gemfile, Cargo.toml, and similar.Verification command mismatch
Verification command mismatch
Confirm the stated command runs successfully from the repo root. Update it to match the actual task runner entry — or add the task to your runner config if it is genuinely missing.
Off-limits path mismatch
Off-limits path mismatch
Remove references to paths that no longer exist, or create the directory if the boundary is still intended. Phantom off-limits declarations confuse agents rather than protecting anything.
charter doctor after any update to confirm the finding clears.
Score impact
Medium severity: −4 to the base score. No hard cap (caps are reserved for Blocker and secret findings).Related rules
- AE-CTX-001 — context file must exist and be within budget
- AE-AUTO-001 — verification command must be discoverable
- AE-CTX-006 — emphatic directive density