docs(agents): add performance guidance

Merged
TH
3d ago
+44-37

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 fromRemaining owner
AGENTS.md: formatting, CONTEXT.md glossary ruleformat gate; agent-guidance test (headings and repo paths only)
testing.md: platform, wait limit, receipt, pnpm check selectionGate runner
gates.md: replay seedTool output
device-foldable.md: panels, pose mechanics, touch overlaysADR 0025; --hide-touches in user docs
device-verification.md: claim recoverysessions.md; CLI help
web-backend.md: setup, doctor, hinthelp web; command
cli-flags.md: action option refusalflagsByAction doc comment
selector-capture.md: selector packageAGENTS.md
test-authoring.md: regression prooftest-experiments.md

Validation

SHA 1fec2f168b.

  • Byte counts: AGENTS.md 3,995 of 4,000; docs/agents 39,983 of 40,000.
  • agent-guidance-contract.test.ts: 5 passed locally.
  • Paths cited by performance.md exist.
  • 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.