running-build-checkpoints
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Mid-build checkpoint review protocol for /build_module — trigger categories, the 2-specialist dispatch rule, the 2-iteration cap, and REVISE reflections. Use during /build_module after generating code for a task, to decide whether a checkpoint review fires and which two specialists to dispatch.
In this repository25 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adr-writingSkill
- authoring-goal-contractsSkill
- collaborating-asyncSkill
- committing-changesSkill
- cross-agent-dispatchSkill
- documenting-decisionsSkill
- feature-status-registrySkill
- grill-meSkill
- grill-yourselfSkill
- handling-micro-fixesSkill
- multi-instance-dispatchSkill
- notifying-the-developerSkill
- orchestrating-goal-loopsSkill
- orchestrating-lean-dispatchSkill
- performance-playbookSkill
- python-project-patternsSkill
- recovering-from-failuresSkill
- searching-prior-artSkill
- security-checklistSkill
- selecting-review-gatesSkill
- severity-calibrationSkill
- syncing-framework-docsSkill
- testing-playbookSkill
- wrapping-up-sessionsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
After generating code for a build task, the facilitator evaluates whether the task matches any trigger category.
- Distinctive: line 26
If a task matches multiple categories, the facilitator selects the two most relevant specialists — never more than two per checkpoint.
- Distinctive: line 44
APPROVE: No concerns. Under 200 words.
- Distinctive: line 47
If both APPROVE → continue to next task.
- Distinctive: line 48
If any REVISE → implement the requested changes.
- Distinctive: line 51
After implementing revisions, re-dispatch only the specialist(s) who requested REVISE.
- Very specific: line 54
If still REVISE → capture the unresolved concern with risk_flags: ["unresolved-checkpoint"], log it, and continue.
- Distinctive: line 57
NEVER exceed 2 checkpoint iterations per task: After Round 2, the build continues regardless.
- Very specific: line 60
When a diff adds an import for a not-yet-existing call site, re-verify it survives the auto-format pass after the consumer lands …
- Distinctive: line 64
When dispatching a checkpoint specialist, use this prompt structure:
- Distinctive: line 86
All checkpoint events go into the build's discussion (created at build start):
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build Review Protocol
Enforces Principle #3 (the generator is never the sole evaluator) within /build_module execution.
Mid-build checkpoint reviews ensure that the agent generating code is not the sole evaluator during builds, not just at commit time.
Checkpoint Triggers
After generating code for a build task, the facilitator evaluates whether the task matches any trigger category. If it does, a checkpoint fires.
| Trigger Category | Condition | Specialists (2 max) |
| New module | 2+ new files created under src/ | architecture-consultant, qa-specialist |
| Architecture choice | Pattern selection, abstraction layer, dependency direction | architecture-consultant, independent-perspective |
| Database schema | New/modified SQLAlchemy models, Alembic migrations | performance-analyst, security-specialist |
| Security-relevant | Auth, encryption, token handling, input validation | security-specialist, architecture-consultant |
| API routes | New FastAPI endpoints, middleware, dependency injection | architecture-consultant, qa-specialist |
| External API | HTTP clients, third-party service integrations | security-specialist, performance-analyst |
| UI flow / user-facing changes | New user-facing pages, navigation changes, state feedback | ux-evaluator, qa-specialist |
If a task matches multiple categories, the facilitator selects the two most relevant specialists — never more than two per checkpoint. Priority order when categories overlap: security-relevant always claims one slot; the other slot goes to the highest-specificity remaining category.
Cost rationale: Checkpoints use sonnet-tier dispatch (not the agent's default tier) because the 200-word response cap and focused scope make full-tier unnecessary. This is an intentional cost optimization, not an error.
Exempt Tasks (No Checkpoint)
- Project scaffolding (directory creation, initial config)
- Dependency configuration (pyproject.toml, requirements.txt changes only)
- Pure test writing (no production code changes)
- Theme, style, or cosmetic UI-only changes
- Documentation and comment updates
- Final verification / quality gate runs
Checkpoint Protocol
Round 1
- Facilitator dispatches exactly 2 specialists in parallel via
Task(). - Each specialist reviews the task's code and responds with:
- APPROVE: No concerns. Under 200 words.
- REVISE: Specific, actionable change request. Under 200 words.
- Facilitator captures both responses via
write_event.pywith tagscheckpoint,task-N. - If both APPROVE → continue to next task.
- If any REVISE → implement the requested changes.
Round 2 (max)
- After implementing revisions, re-dispatch only the specialist(s) who requested REVISE.
- Specialist responds APPROVE or REVISE (under 200 words).
- If APPROVE → continue.
- If still REVISE → capture the unresolved concern with
risk_flags: ["unresolved-checkpoint"], log it, and continue. Flag for developer in the build summary.
Hard Limit
- NEVER exceed 2 checkpoint iterations per task. After Round 2, the build continues regardless. Unresolved concerns are surfaced in the build summary, not blocked on.
Cross-task verification
- When a diff adds an import for a not-yet-existing call site, re-verify it survives the auto-format pass after the consumer lands (autoformat-import-strip class — 3rd occurrence 2026-07-16, see
memory/bugs/regression-ledger.md).
Specialist Prompt Template
When dispatching a checkpoint specialist, use this prompt structure:
Build Checkpoint Review: <discussion_id>
Task: <task number and title>
Trigger: <trigger category>
Review this code from your specialist perspective. This is a mid-build checkpoint, not a full review.
Focus on:
- Whether the implementation approach is sound
- Whether it aligns with existing ADRs and patterns
- Whether prior art or solution paths were considered (check memory/projects/ for relevant entries)
- Any risks that would be expensive to fix later
<code content or file paths>
Respond with APPROVE or REVISE (under 200 words).Capture
All checkpoint events go into the build's discussion (created at build start):
- Specialist responses →
write_event.pywith intentcritique, tagscheckpoint,task-N - Bypass notes (exempt tasks) →
write_event.pywith intentdecision, tagscheckpoint-bypass,task-N - Unresolved concerns →
write_event.pywith intentcritique, tagscheckpoint,task-N, risk_flagsunresolved-checkpoint
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

