docs(agents): add first-pass review-readiness checklist (mined from ~300 PRs)#4475
Open
vibegui wants to merge 1 commit into
Open
docs(agents): add first-pass review-readiness checklist (mined from ~300 PRs)#4475vibegui wants to merge 1 commit into
vibegui wants to merge 1 commit into
Conversation
…TS.md Mined ~300 merged PRs for the delta between the first PR proposal and the work added before merge. The dominant shape: a first draft ships the happy path, then a hardening pass (often a different engineer who takes over the branch and merges — the vibecoder→engineer handoff) adds the same categories every time. Encoded those 9 categories as an actionable first-pass checklist, each citing a real PR (#4008, #4230, #4365, #4409, #4426, #4445, #4357, #4355, #4449, #4350, #4373, #4416, #4446, #4461, #4134, #4469). Covers: variant/edge-case handling, tenant/permission scoping, concurrency & silent-data-loss, test-per-fix + invert-bug-tests + real-PG, dead-code/knip, lifecycle symmetry + state reset, kill-switch/GC/git-exclude for risky infra, input validation vs over-engineering, compile-time type-safety. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors
AGENTS.md(the fileCLAUDE.mdsymlinks to) with a new "Ship it review-ready — the first-pass checklist" section, derived from analyzing what actually changes between a PR's first proposal and its merged state.How this was built
Mined the last ~300 merged PRs, looking specifically at the diff between the first commit and the merged result — the "review/hardening work." Findings, using the graph as a map of where churn concentrates (decopilot, sandbox, chat, sections-editor — the same hotspots the audit flagged):
pedrofrxncxis the primary hardener (closes PRs fromvibegui,0xcucumbersalad,guitavano),tlgimenesgatekeeps theapp/deco-cmsagent's commerce PRs. Clean examples where an engineer took over the branch and added commits: feat(sidebar): separate team threads, my threads, and agents #4230 (vibegui → rafavalls+pedrofrxncx: rewrote the impl, deleted 297 lines of dead components, fixed a teammates'-threads-read-only permission bug, added tests), fix(cms-studio): fix block-ref schema resolution for @decocms/start >=6.10 loaders #4008 (JonasJesus42 → guitavano, 11 commits: every schema variant + a test per fix + URL validation + reverted an over-clever "infer from runtime data"), feat(decopilot): split web research into web_search + deep_research #4134 (cecilia → viktormarinho added the missing tests), chore(lint): enforce web ↔ server import boundary (ban-web-server-imports) #4469 (the earlier lint PR: ban-list → allowlist hardening). Notably, clean security PRs (fix(security): prevent admin-to-owner privilege escalation in member tools #4022/fix(security): block STDIO command injection — RCE at connection creation #4023) were merged as-is — engineers don't touch what's already right.The hardening pass adds the same 9 categories every time. The checklist encodes them so a coding agent does them on the first pass, each citing the PR it came from:
fmt)as-cast on unions;noUncheckedIndexedAccess)It's cross-linked with the existing "Common Gotchas" list (which stays as the always-load-bearing set).
Testing
Docs-only change to
AGENTS.md. No code touched.Notes
CLAUDE.mdis a symlink toAGENTS.md, so this covers both.🤖 Generated with Claude Code
Summary by cubic
Adds a “Ship it review‑ready” first‑pass checklist to AGENTS.md to help authors ship PRs that need fewer hardening passes. The checklist distills nine recurring fix areas from ~300 merged PRs and links to real examples.
Written for commit e3fb43a. Summary will update on new commits.