Skip to content

docs(agents): keep only the traps code and tests do not show - #1109

Merged
devswha merged 1 commit into
mainfrom
docs/agents-md-slim
Oct 14, 2026
Merged

devswha merged 1 commit into
mainfrom
docs/agents-md-slim

Conversation

@devswha

@devswha devswha commented Oct 14, 2026

Copy link
Copy Markdown
Owner

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

  • AGENTS.md: bridge traps (node-pty in Bun, no automatic --takeover, one RPC connection per call, pane.process_info takes pane_id, scrollback: 0 and 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-pushed v* tag, the three required checks, changelog.d/).
  • server/AGENTS.md: attachment lifetime and resize ownership, no OAuth refresh in usage.ts, the pairing gate, proof that herdr is gone, API keys never echoed, cache headers for the PWA.
  • src/AGENTS.md: auth token only in the cookie, sanitizeSettings for new settings, secret input never stored, type-only imports from shared/protocol.ts.

What goes

  • Rules the convention tests already enforce (imports, CSS tokens, i18n, fixed sleeps, animations, wording, icons): AGENTS.md now points at those tests, whose failures say what to change.
  • The "where to look" tables, code-structure narration, runner/lane/slot internals and route catalogues, which live in the code, protocol.ts comments and docs/development.md.
  • scripts/AGENTS.md and shared/AGENTS.md (nothing links to them; one code comment updated).

Also carries #1108's two docs/development.md corrections: release summaries follow SUMMARY_LANGUAGES (no tr), and branch protection neither requires up-to-date branches nor enforces resolved threads.

Docs only; no changelog fragment (nothing users notice).

Verification

  • bun run typecheck
  • HERDR_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)

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.
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7585dd56-bee7-4a1d-9169-9e747a855ece
📥 Commits

Reviewing files that changed from the base of the PR and between c46b7be and 41d2e0d.

📒 Files selected for processing: 7
  • AGENTS.md
  • docs/development.md
  • scripts/AGENTS.md
  • scripts/fixed-sleeps.ts
  • server/AGENTS.md
  • shared/AGENTS.md
  • src/AGENTS.md
💤 Files with no reviewable changes: 2
  • shared/AGENTS.md
  • scripts/AGENTS.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Documentation
    • Condensed and updated project guidance for development, maintenance, and release workflows.
    • Updated release instructions to list English, Korean, Japanese, and Chinese as required summary languages.
    • Revised the documented branch-protection requirements. Several detailed internal guides were removed.

The pull request condenses or removes project and component guidance. It also updates release-summary language requirements and branch-protection documentation. The sleepFiles selection logic is unchanged.

Changes: Repository guidance updates

Layer / File(s) Summary
Project and component guidance
AGENTS.md, server/AGENTS.md, src/AGENTS.md, shared/AGENTS.md
The root, server, and client guides now contain shorter, focused rules. The shared guide was removed.
Testing and script guidance
AGENTS.md, scripts/AGENTS.md, scripts/fixed-sleeps.ts
The root guide adds test-isolation rules. The scripts guide was removed, and a comment was updated without changing file-selection logic.
Maintainer and release guidance
AGENTS.md, docs/development.md
The root guide updates maintainer workflow instructions. The development guide changes the required release-summary languages and branch-protection description.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: kilhyeonjun

Merge Risk: ⚪ Minimal · up to 41d2e

No actionable implementation or documentation risk remains; the PR is mergeable.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: reducing AGENTS documentation to retain traps that code and tests do not show.
Description check Passed The description explains the problem, the resulting documentation changes, the scope, and the validation results. It includes equivalent Change and Validation content, even though it uses different se…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 5c3ff23 into main Oct 14, 2026
17 checks passed
@devswha
devswha deleted the docs/agents-md-slim branch October 14, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant