docs(agents): add performance guidance
Merged
TH
3d ago+44+44+01234567890123456789-37-37-01234567890123456789
Summary
Adds docs/agents/performance.md and one AGENTS.md routing row. It states the rules for request cost, caching, count tests, timing comparisons, and deliberate safety checks.
Scope expansion: the agent-guidance byte budgets had 20 bytes free in AGENTS.md and 1 byte free in docs/agents. The first commit removes lines with another owner instead of raising a budget. After review, the mutation lane contract and the stale-ref rule after a pose change are restored.
| Removed from | Remaining owner |
|---|---|
AGENTS.md: formatting, CONTEXT.md glossary rule | format gate; agent-guidance test (headings and repo paths only) |
testing.md: platform, wait limit, receipt, pnpm check selection | Gate runner |
gates.md: replay seed | Tool output |
device-foldable.md: panels, pose mechanics, touch overlays | ADR 0025; --hide-touches in user docs |
device-verification.md: claim recovery | sessions.md; CLI help |
web-backend.md: setup, doctor, hint | help web; command |
cli-flags.md: action option refusal | flagsByAction doc comment |
selector-capture.md: selector package | AGENTS.md |
test-authoring.md: regression proof | test-experiments.md |
Validation
SHA 1fec2f168b.
- Byte counts: AGENTS.md 3,995 of 4,000;
docs/agents39,983 of 40,000. agent-guidance-contract.test.ts: 5 passed locally.- Paths cited by
performance.mdexist. - Runtime tests do not apply: Markdown only.
- No local gates ran. CI is pending.
- Four review threads on dc1276211f are fixed. No independent review of the new head.
- Risk: please confirm each removal.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.