Repository navigation
docs(agents): keep only the traps code and tests do not show - #1109
Conversation
Cuts the agent rule files to the bridge, server and client traps that cause real damage when missed; drops rules the convention tests enforce, navigation tables and procedures copied from docs/development.md, and the scripts/ and shared/ rule files.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Replaces #1108 with a much shorter rule set (about 355 lines and 106 KB across five files down to about 60 lines in three).
Why
The rule files had grown into a second copy of the code, the tests and
docs/development.md, and parts had gone stale (see #1108's audit). Agents need only the traps that the code and tests do not show and that cause real damage when missed.What stays
--takeover, one RPC connection per call,pane.process_infotakespane_id,scrollback: 0and the attach stream as truth, mirrored panes, no automatic send after a disconnect, prompt answers through the endpoint, browser selection never moves herdr focus, generated types), test isolation, and the maintainer rules (no hand-pushedv*tag, the three required checks,changelog.d/).usage.ts, the pairing gate, proof that herdr is gone, API keys never echoed, cache headers for the PWA.sanitizeSettingsfor new settings, secret input never stored, type-only imports fromshared/protocol.ts.What goes
protocol.tscomments anddocs/development.md.scripts/AGENTS.mdandshared/AGENTS.md(nothing links to them; one code comment updated).Also carries #1108's two
docs/development.mdcorrections: release summaries followSUMMARY_LANGUAGES(notr), and branch protection neither requires up-to-date branches nor enforces resolved threads.Docs only; no changelog fragment (nothing users notice).
Verification
bun run typecheckHERDR_TEST_MODE=unit bun test ./scripts/conventions.test.ts ./src/conventions.test.ts ./server/conventions.test.ts ./scripts/release-guards.test.ts ./scripts/changelog-fold.test.ts(49 pass, 0 fail)