Repository navigation
docs: add agent workflow rules and verification gate documentation - #202
Conversation
Add an "Agent Workflow" section to CLAUDE.md codifying rules that were previously only in memory/feedback: - Issue-first for non-trivial work - devtools verify before any PR - PR body must fill all template sections - Squash-merge subject must be accurate and conventional - Claims in commit messages must be verified against the code - Issues and PRs are durable artifacts, write them standalone Update CONTRIBUTING.md: - Workflow section now reflects the full issue→branch→verify→PR→merge lifecycle instead of the abbreviated 3-step version - Verification baseline section documents git hooks (pre-commit, pre-push) and the devtools verify command Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughAdded comprehensive AI agent workflow rules and verification requirements to Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@CLAUDE.md`:
- Around line 24-32: Rename the section header "Verification before push" to
"Verification before PR" in CLAUDE.md to match the content requiring the full
baseline before opening a pull request; update any corresponding references or
table-of-contents entries in the file that link to or mention that header
(search for the exact header text) so the title is consistent across the
document.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: ca43c6af-d714-40c7-9e93-b7dc7ef41911
📒 Files selected for processing (2)
CLAUDE.mdCONTRIBUTING.md
| ### Verification before push | ||
|
|
||
| Run `devtools verify` (full, with pytest) before creating any PR. The | ||
| git hooks enforce format and lint on commit and `devtools verify --quick` | ||
| on push, but the full baseline must pass before the PR is opened. | ||
|
|
||
| Do not treat CI as the first verification pass. Anticipate failures | ||
| locally. | ||
|
|
There was a problem hiding this comment.
Rename section title to match the rule timing.
Line 24 says “Verification before push,” but Lines 26-31 require the full baseline before creating a PR. Consider renaming to “Verification before PR” to avoid policy ambiguity.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@CLAUDE.md` around lines 24 - 32, Rename the section header "Verification
before push" to "Verification before PR" in CLAUDE.md to match the content
requiring the full baseline before opening a pull request; update any
corresponding references or table-of-contents entries in the file that link to
or mention that header (search for the exact header text) so the title is
consistent across the document.
) ## Summary Codify the workflow discipline rules learned in this session into CLAUDE.md and CONTRIBUTING.md so they survive across sessions. ## Problem Agent workflow failures (unformatted code pushed, PR bodies missing required sections, claims not matching code) kept recurring because the rules existed only in conversation feedback, not in the project's governance documents. Each new session starts without that context. ## Solution **CLAUDE.md** — new "Agent Workflow" section with rules that override default agent behavior: - Issue-first for non-trivial work - `devtools verify` before any PR (not after CI fails) - PR body must fill all template sections (Summary, Problem, Solution, Verification) - Squash-merge subject rules (under 72 chars, conventional, accurate) - Claim verification: grep for duplicated logic before claiming alignment/unification - Issues and PRs are durable artifacts, write them standalone **CONTRIBUTING.md** — updated to reflect the full lifecycle: - Workflow section: issue → branch → hooks → verify → PR → CI → merge (was just branch → push → merge) - Verification baseline: documents git hooks and `devtools verify` ## Verification ``` devtools verify --quick # format + lint + render-all --check ``` No code changes, only documentation.
) Workflow failures — unformatted code pushed, PR bodies missing required sections, claims not matching code — kept recurring because the rules existed only in conversation feedback, not in the project's governance documents. Each new agent session started without that context. Adds an "Agent Workflow" section to CLAUDE.md with rules that override default agent behavior: issue-first for non-trivial work, `devtools verify` before opening any PR (CI is not the first verification pass), PR body template section requirements (Summary / Problem / Solution / Verification), squash-merge subject rules (under 72 chars, conventional prefix, accurate claims), claim verification (grep for duplicated logic before claiming alignment/unification), and the invariant that issues and PRs are durable artifacts written to stand alone. CONTRIBUTING.md updates to reflect the full lifecycle: issue → branch → hooks → verify → PR → CI → merge (previously just branch → push → merge). Documents the verification baseline including the installed git hooks and `devtools verify`. No code changes. Verification: `devtools verify --quick`.
) Workflow failures — unformatted code pushed, PR bodies missing required sections, claims not matching code — kept recurring because the rules existed only in conversation feedback, not in the project's governance documents. Each new agent session started without that context. Adds an "Agent Workflow" section to CLAUDE.md with rules that override default agent behavior: issue-first for non-trivial work, `devtools verify` before opening any PR (CI is not the first verification pass), PR body template section requirements (Summary / Problem / Solution / Verification), squash-merge subject rules (under 72 chars, conventional prefix, accurate claims), claim verification (grep for duplicated logic before claiming alignment/unification), and the invariant that issues and PRs are durable artifacts written to stand alone. CONTRIBUTING.md updates to reflect the full lifecycle: issue → branch → hooks → verify → PR → CI → merge (previously just branch → push → merge). Documents the verification baseline including the installed git hooks and `devtools verify`. No code changes. Verification: `devtools verify --quick`.
) Workflow failures — unformatted code pushed, PR bodies missing required sections, claims not matching code — kept recurring because the rules existed only in conversation feedback, not in the project's governance documents. Each new agent session started without that context. Adds an "Agent Workflow" section to CLAUDE.md with rules that override default agent behavior: issue-first for non-trivial work, `devtools verify` before opening any PR (CI is not the first verification pass), PR body template section requirements (Summary / Problem / Solution / Verification), squash-merge subject rules (under 72 chars, conventional prefix, accurate claims), claim verification (grep for duplicated logic before claiming alignment/unification), and the invariant that issues and PRs are durable artifacts written to stand alone. CONTRIBUTING.md updates to reflect the full lifecycle: issue → branch → hooks → verify → PR → CI → merge (previously just branch → push → merge). Documents the verification baseline including the installed git hooks and `devtools verify`. No code changes. Verification: `devtools verify --quick`.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Codify the workflow discipline rules learned in this session into
CLAUDE.md and CONTRIBUTING.md so they survive across sessions.
Problem
Agent workflow failures (unformatted code pushed, PR bodies missing
required sections, claims not matching code) kept recurring because
the rules existed only in conversation feedback, not in the project's
governance documents. Each new session starts without that context.
Solution
CLAUDE.md — new "Agent Workflow" section with rules that override
default agent behavior:
devtools verifybefore any PR (not after CI fails)Verification)
alignment/unification
CONTRIBUTING.md — updated to reflect the full lifecycle:
(was just branch → push → merge)
devtools verifyVerification
No code changes, only documentation.