@tyroneross/build-loop 0.30.3 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +2 -2
- package/.claude-plugin/marketplace.json +4 -4
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/AGENTS.md +11 -2
- package/README.md +8 -7
- package/agents/advisor.md +111 -0
- package/agents/alignment-checker.md +11 -0
- package/agents/assessment-orchestrator.md +1 -1
- package/agents/build-orchestrator.md +28 -33
- package/agents/fact-checker.md +1 -1
- package/agents/fix-critique.md +1 -1
- package/agents/independent-auditor.md +1 -1
- package/agents/overfitting-reviewer.md +1 -1
- package/agents/plan-critic.md +8 -6
- package/agents/promotion-reviewer.md +1 -1
- package/agents/retrospective-synthesizer.md +20 -3
- package/agents/scope-auditor.md +1 -1
- package/agents/security-reviewer.md +1 -1
- package/agents/self-improvement-architect.md +1 -1
- package/commands/{handoff.md → compose-handoff.md} +4 -4
- package/commands/{optimize.md → optimize-run.md} +1 -1
- package/commands/{agent-rally-point.md → rally-point.md} +3 -3
- package/commands/{research.md → research-run.md} +1 -1
- package/commands/setup-memory.md +32 -0
- package/commands/{plan-verify.md → verify-plan.md} +1 -1
- package/docs/agent-surface-policy.md +38 -20
- package/docs/memory-setup.md +19 -14
- package/hooks/_resolve_python.sh +28 -0
- package/hooks/closeout.sh +58 -0
- package/hooks/git/pre-push +69 -6
- package/hooks/hooks.json +34 -13
- package/hooks/post-push-closeout.sh +73 -0
- package/hooks/session-start-closeout.sh +69 -0
- package/hooks/session-start-memory.sh +27 -0
- package/hooks/session-start-plugin-heal.sh +33 -0
- package/hooks/test_closeout.sh +124 -0
- package/package.json +7 -4
- package/plugin-artifacts/codex/.codex-plugin/plugin.json +41 -0
- package/plugin-artifacts/codex/AGENTS.md +507 -0
- package/plugin-artifacts/codex/BUILD-ARTIFACT.md +5 -0
- package/plugin-artifacts/codex/LICENSE +202 -0
- package/plugin-artifacts/codex/README.md +404 -0
- package/plugin-artifacts/codex/docs/agent-surface-policy.md +63 -0
- package/plugin-artifacts/codex/references/advisor-dispatch-ladder.md +62 -0
- package/plugin-artifacts/codex/references/agent-role-taxonomy.md +135 -0
- package/plugin-artifacts/codex/references/autonomous-and-per-commit-modes.md +161 -0
- package/plugin-artifacts/codex/references/autonomy-config.md +231 -0
- package/plugin-artifacts/codex/references/capability-routing.md +182 -0
- package/plugin-artifacts/codex/references/codex-subagents.md +106 -0
- package/plugin-artifacts/codex/references/coordination-file-template.md +181 -0
- package/plugin-artifacts/codex/references/coordination-rules.md +283 -0
- package/plugin-artifacts/codex/references/dogfood-reload-checkpoint.md +112 -0
- package/plugin-artifacts/codex/references/halt-and-ask-protocol.md +102 -0
- package/plugin-artifacts/codex/references/implementer-envelope-schema.md +302 -0
- package/plugin-artifacts/codex/references/intent-capability-pack.md +257 -0
- package/plugin-artifacts/codex/references/intent-exploration-prompts.md +96 -0
- package/plugin-artifacts/codex/references/leadership.md +72 -0
- package/plugin-artifacts/codex/references/memory-systems.md +238 -0
- package/plugin-artifacts/codex/references/memory.md +299 -0
- package/plugin-artifacts/codex/references/model-tier-mapping.md +257 -0
- package/plugin-artifacts/codex/references/modular-systems-pack.md +96 -0
- package/plugin-artifacts/codex/references/phase-1-assess.md +231 -0
- package/plugin-artifacts/codex/references/phase-2-plan.md +78 -0
- package/plugin-artifacts/codex/references/phase-3-execute.md +49 -0
- package/plugin-artifacts/codex/references/phase-4-review.md +322 -0
- package/plugin-artifacts/codex/references/phase-5-iterate.md +71 -0
- package/plugin-artifacts/codex/references/phase-6-learn.md +56 -0
- package/plugin-artifacts/codex/references/recent-design-structures.md +274 -0
- package/plugin-artifacts/codex/references/research-trigger-policy.md +140 -0
- package/plugin-artifacts/codex/references/runtime-smoke-triggers.md +42 -0
- package/plugin-artifacts/codex/references/self-review.md +234 -0
- package/plugin-artifacts/codex/references/single-writer-commit-protocol.md +90 -0
- package/plugin-artifacts/codex/references/task-capture-policy.md +68 -0
- package/plugin-artifacts/codex/references/ui-io-contract.md +116 -0
- package/plugin-artifacts/codex/references/ui-spotcheck-protocol.md +65 -0
- package/plugin-artifacts/codex/skills/build-loop/SKILL.md +372 -0
- package/plugin-artifacts/codex/skills/build-loop/detect-plugins.mjs +82 -0
- package/plugin-artifacts/codex/skills/build-loop/eval-guide.md +65 -0
- package/plugin-artifacts/codex/skills/build-loop/fallbacks.md +549 -0
- package/plugin-artifacts/codex/skills/build-loop/phases/fact-check.md +42 -0
- package/plugin-artifacts/codex/skills/build-loop/phases/ui-validation.md +267 -0
- package/plugin-artifacts/codex/skills/build-loop/references/advisor-dispatch-ladder.md +62 -0
- package/plugin-artifacts/codex/skills/build-loop/references/apple-native-planning.md +439 -0
- package/plugin-artifacts/codex/skills/build-loop/references/autonomous-and-per-commit-modes.md +161 -0
- package/plugin-artifacts/codex/skills/build-loop/references/capability-routing.md +182 -0
- package/plugin-artifacts/codex/skills/build-loop/references/codex-subagents.md +106 -0
- package/plugin-artifacts/codex/skills/build-loop/references/coordination.md +161 -0
- package/plugin-artifacts/codex/skills/build-loop/references/correction-aware-capture.md +177 -0
- package/plugin-artifacts/codex/skills/build-loop/references/independent-auditor.md +72 -0
- package/plugin-artifacts/codex/skills/build-loop/references/intent-capability-pack.md +257 -0
- package/plugin-artifacts/codex/skills/build-loop/references/intent-exploration-prompts.md +96 -0
- package/plugin-artifacts/codex/skills/build-loop/references/leadership.md +72 -0
- package/plugin-artifacts/codex/skills/build-loop/references/memory.md +299 -0
- package/plugin-artifacts/codex/skills/build-loop/references/modular-systems-pack.md +96 -0
- package/plugin-artifacts/codex/skills/build-loop/references/output-style.md +129 -0
- package/plugin-artifacts/codex/skills/build-loop/references/pay-it-forward-arch.md +98 -0
- package/plugin-artifacts/codex/skills/build-loop/references/phase-1-assess.md +231 -0
- package/plugin-artifacts/codex/skills/build-loop/references/phase-2-plan.md +78 -0
- package/plugin-artifacts/codex/skills/build-loop/references/phase-3-execute.md +49 -0
- package/plugin-artifacts/codex/skills/build-loop/references/phase-4-review.md +322 -0
- package/plugin-artifacts/codex/skills/build-loop/references/phase-5-iterate.md +71 -0
- package/plugin-artifacts/codex/skills/build-loop/references/phase-6-learn.md +56 -0
- package/plugin-artifacts/codex/skills/build-loop/references/recent-design-structures.md +274 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/ASSESSMENT.md +85 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/STANDALONE_TEST_RUN.md +149 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/01-simple-bugfix.md +32 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/02-ui-build-with-iteration.md +48 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/03-multi-failure-escalation.md +60 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/04-ui-build-ibr-absent.md +51 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/05-refactor-navgator-absent.md +71 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/scenarios/06-recurring-bug-debugger-absent.md +52 -0
- package/plugin-artifacts/codex/skills/build-loop/references/refactor-history/trace-comparison.md +202 -0
- package/plugin-artifacts/codex/skills/build-loop/references/self-recursive-dev.md +77 -0
- package/plugin-artifacts/codex/skills/build-loop/references/self-review.md +234 -0
- package/plugin-artifacts/codex/skills/build-loop/references/ui-io-contract.md +116 -0
- package/plugin-artifacts/codex/skills/build-loop/scanners/audit-design-rules.mjs +476 -0
- package/plugin-artifacts/codex/skills/build-loop/scanners/require-visual-evidence.mjs +239 -0
- package/plugin-artifacts/codex/skills/build-loop/templates/backlog-item.md +35 -0
- package/plugin-artifacts/codex/skills/build-loop/templates/codex-worker-prompt.md +100 -0
- package/plugin-artifacts/codex/skills/build-loop/templates/ui-subagent-prompt.md +179 -0
- package/plugin-artifacts/codex/skills/build-loop/templates/ux-fix-plan.md +40 -0
- package/scripts/_paths.py +59 -13
- package/scripts/build_codex_plugin_artifact.py +314 -0
- package/scripts/check_cache_sync.py +1 -1
- package/scripts/install_memory.py +11 -3
- package/scripts/prune_plugin_cache.py +225 -11
- package/scripts/sync_navgator_lessons.py +25 -0
- package/scripts/sync_plugin_cache.py +66 -36
- package/skills/agent-rally-point/SKILL.md +1 -1
- package/skills/agent-rally-watcher/SKILL.md +1 -1
- package/skills/build-loop/SKILL.md +11 -155
- package/skills/build-loop/references/advisor-dispatch-ladder.md +62 -0
- package/skills/build-loop/references/autonomous-and-per-commit-modes.md +161 -0
- package/skills/build-loop/references/capability-routing.md +4 -3
- package/skills/build-loop/references/codex-subagents.md +8 -0
- package/skills/build-loop/references/coordination.md +1 -1
- package/skills/build-loop/references/intent-capability-pack.md +88 -1
- package/skills/build-loop/references/memory.md +17 -2
- package/skills/build-loop/references/phase-1-assess.md +13 -0
- package/skills/build-loop/references/phase-2-plan.md +2 -1
- package/skills/build-loop/references/phase-3-execute.md +4 -2
- package/skills/build-loop/references/phase-4-review.md +12 -0
- package/skills/build-loop/references/phase-6-learn.md +1 -1
- package/skills/build-loop/references/self-review.md +4 -2
- package/skills/build-loop/templates/codex-worker-prompt.md +45 -34
- package/skills/handoff/SKILL.md +3 -3
- package/skills/loop-builder/SKILL.md +98 -0
- package/skills/loop-builder/presets/active-project-evidence.yaml +97 -0
- package/skills/loop-builder/presets/generic-artifact-loop.yaml +95 -0
- package/skills/loop-builder/presets/presentation-audit.yaml +96 -0
- package/skills/loop-builder/presets/research-synthesis.yaml +96 -0
- package/skills/loop-builder/presets/source-ingestion-raw-data-audit.yaml +96 -0
- package/skills/loop-builder/references/spec-format.md +80 -0
- package/skills/loop-builder/scripts/loop_builder.py +346 -0
- package/skills/model-tiering/SKILL.md +65 -40
- package/skills/optimize/SKILL.md +2 -2
- package/skills/plan-verify/SKILL.md +1 -1
- package/skills/plugin-builder/references/distribution.md +8 -0
- package/skills/research/SKILL.md +33 -6
- package/skills/runtime-parity-verification/SKILL.md +51 -0
- package/skills/spec-writing/SKILL.md +19 -0
- package/templates/memory/README.md +65 -0
- package/templates/memory/charter.md.template +46 -0
- package/templates/memory/manifest.json +24 -4
- package/codex-skills/debug-loop/SKILL.md +0 -18
- package/codex-skills/handoff/SKILL.md +0 -22
- package/codex-skills/knowledge/SKILL.md +0 -21
- package/codex-skills/optimize/SKILL.md +0 -18
- package/codex-skills/research/SKILL.md +0 -18
- /package/commands/{knowledge-review.md → review-knowledge.md} +0 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
<!-- SPDX-FileCopyrightText: 2025-2026 Tyrone Ross, Jr <46267523+tyroneross@users.noreply.github.com> | SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
|
|
3
|
+
# Capability Routing (full protocol)
|
|
4
|
+
|
|
5
|
+
> Loaded from `skills/build-loop/SKILL.md` summary. Contains the full capability routing table, trigger conditions, and plugin/hook/skill/agent mandatory routing rules.
|
|
6
|
+
|
|
7
|
+
## Capability Routing
|
|
8
|
+
|
|
9
|
+
Build-loop prefers repo-owned agents and bundled skills for core loop decisions. External plugins are accelerators only when explicitly requested or when a row below names them as secondary. Each capability has three tiers: **preferred** (build-loop-owned surface) → **secondary** (another installed plugin or skill that can partially cover) → **inline fallback** (guidance text from `fallbacks.md`, injected verbatim into subagent prompts).
|
|
10
|
+
|
|
11
|
+
Phase 1 runs `node ${CLAUDE_PLUGIN_ROOT}/skills/build-loop/detect-plugins.mjs` and writes the result to `.build-loop/state.json` under `availablePlugins`. All routing consults that object.
|
|
12
|
+
|
|
13
|
+
### Core loop skills/assets (always check)
|
|
14
|
+
|
|
15
|
+
| Skill | Used In | Fallback |
|
|
16
|
+
|-------|---------|----------|
|
|
17
|
+
| `writing-plans` | Phase 2 (Plan) | Write a structured plan directly: goal, tasks with exact file paths, dependency order, test commands |
|
|
18
|
+
| `subagent-driven-development` | Phase 3 (Execute) | Dispatch parallel agents manually using the host's available delegation tool for independent file groups |
|
|
19
|
+
| `verification-before-completion` | Phase 4 sub-step G (Report) | Run all test/build/lint commands and confirm output before claiming completion. For app/UI changes this is NOT sufficient alone — also run the runtime UI⇄source-of-truth parity check (`runtime-parity-verification`); compile-green and a screenshot do not prove the running flow works |
|
|
20
|
+
| `runtime-parity-verification` | Phase 4 Review-B + Phase 5 Iterate (any `uiTarget != null` or user-visible flow) | Cross-check the rendered/queryable UI against the authoritative backend (DB/API/daemon/tool-state), screen-independently, and keep a validated per-repo smoke. Catches the "action does nothing / not showing / shows empty despite real data / stale projection" class. Drivers: web `ui-validator`; macOS `native-ax-driver` / IBR `scan_macos`; iOS `idb`; agent = tool-result vs rendered output. Reference smoke: easy-terminal `tools/smoke_launch.py` |
|
|
21
|
+
| `simplify` (slash: `/simplify`) | Phase 4 sub-step E (Simplify) | Self-review the diff: remove scaffolding, inline single-use helpers, delete dead branches |
|
|
22
|
+
| `complexity_detector.py` (accelerator, not a gate) | Phase 4 sub-step E (Simplify) | Diff-scoped stdlib-AST hotspot detector for changed Python; surfaces high-severity hotspots for a simpler rewrite, apply-vs-advise via existing Review-B + independent-auditor. Optional Python aid — the default Simplify pass reasons over the diff language-agnostically (see `phase-4-review.md` §"Sub-step E: Simplify") |
|
|
23
|
+
| `build-loop:self-improve` | Phase 6 (Learn) | Scan recent runs for recurring patterns, auto-draft experimental skills/agents with A/B tracking, notify user for keep/remove decisions |
|
|
24
|
+
| Intent capability pack | Phases 1-4 | Read `references/intent-capability-pack.md`; write `.build-loop/intent.md`; pass the intent packet to every subagent |
|
|
25
|
+
| Modular systems pack | Phases 1-4 | Read `references/modular-systems-pack.md`; partition files/tasks MECE; prefer modular scalable boundaries unless an exception is documented |
|
|
26
|
+
| Codex subagent adapter | Phase 3 (Execute, Codex only) | Read `references/codex-subagents.md`; use `templates/codex-worker-prompt.md` for authorized Codex workers |
|
|
27
|
+
|
|
28
|
+
### Phase quick reference
|
|
29
|
+
|
|
30
|
+
| # | Phase | Purpose | Sub-steps / key actions |
|
|
31
|
+
|---|---|---|---|
|
|
32
|
+
| 1 | **Assess** | Understand state + define goal & criteria | detect tools, map architecture, load memory, write `intent.md` + `goal.md` |
|
|
33
|
+
| 2 | **Plan** | Break work, identify parallel-safe, optimize | writing-plans skill → dependency graph |
|
|
34
|
+
| 3 | **Execute** | Build per plan | parallel subagents, Sonnet default, Opus escalation |
|
|
35
|
+
| 4 | **Review** | Critic → Validate → Optimize (opt-in) → Fact-Check → Simplify → Auto-Resolve → Report | sub-steps A-G; B-D can route to Iterate; F drains non-destructive items via autonomy_gate; G runs only on final pass |
|
|
36
|
+
| 5 | **Iterate** | Fix Review failures, loop back to Review | max 5x; orchestrator stuck-iteration cascade (evidence-gap repair → memory re-check → parallel assess at 2 fails → causal-tree at 3 fails) |
|
|
37
|
+
| 6 | **Learn** | Cross-build pattern detection + experimental skill drafting | optional; requires `runs[] >= 3`; auto-promote opt-in |
|
|
38
|
+
|
|
39
|
+
### Capability routing table
|
|
40
|
+
|
|
41
|
+
| Capability | Preferred | Secondary | Inline fallback section |
|
|
42
|
+
|---|---|---|---|
|
|
43
|
+
| Web UI build | `build-loop:ui-design` + `build-loop:design-contract-specialist` (`trigger_point: phase2-design-direction`) + `calm-precision` + `templates/ui-subagent-prompt.md` | `frontend-design:frontend-design` only when explicitly requested | `fallbacks.md#web-ui` |
|
|
44
|
+
| Web UI validation | `ui-validator` agent + `audit-design-rules.mjs` + browser/screenshot artifact | `showcase:capture` for visual evidence | `fallbacks.md#web-ui` |
|
|
45
|
+
| Orchestrated UI build | `build-loop:ui-design` → build-loop-owned design direction → implementer fan-out → ui-validator/design-contract reconciliation | explicit user-invoked design tool artifacts passed to `design-contract-specialist` | `fallbacks.md#web-ui` |
|
|
46
|
+
| Mobile UI build (`uiTarget: "mobile"` — iOS/watchOS sim) | `build-loop:ui-design` + `build-loop:design-contract-specialist` + `calm-precision` + `apple-dev` | — | `fallbacks.md#mobile-ui` + `fallbacks.md#apple-dev` |
|
|
47
|
+
| Mobile UI validation (iOS sim) | `xcrun simctl io booted screenshot` for static; `idb ui tap` for interaction | `showcase:capture` | `fallbacks.md#mobile-ui` |
|
|
48
|
+
| macOS desktop UI build (`uiTarget: "macos"`) | `build-loop:ui-design` + `build-loop:design-contract-specialist` + `calm-precision` + `apple-dev` | — | `fallbacks.md#mobile-ui` + `fallbacks.md#apple-dev` |
|
|
49
|
+
| macOS desktop UI validation | IBR `scan_macos` when `availablePlugins.ibr == true`; else `native-ax-driver` against the running `.app` (pid-anchored). NEVER `xcrun simctl` (no macOS simulator). NEVER `nm`/`strings` as substitute. | `showcase:capture` for screenshot evidence | `fallbacks.md#mobile-ui` |
|
|
50
|
+
| Design system tokens | `design-contract-specialist` reads project token/theme/component files and records the source in `.build-loop/app-contract/ui.md` | — | `fallbacks.md#design-tokens` (reads consumer project's token files — never hardcodes) |
|
|
51
|
+
| Recent design structures | `design-contract-specialist` reads `references/recent-design-structures.md` and selects by product/workflow/data fit | explicit design-tool artifacts passed as evidence | `fallbacks.md#web-ui` |
|
|
52
|
+
| Screenshot / visual evidence | `showcase:capture`, `showcase:record` | `screenshot` MCP tool | `fallbacks.md#screenshot` |
|
|
53
|
+
| Web content fetching (low LLM) | `scraper-app:web-scraper` SDK | — | `fallbacks.md#web-fetch` (flags LLM cost in report) |
|
|
54
|
+
| Deep debugging | `build-loop:debug-loop` + `build-loop:debugging-memory` native search/store | standalone Coding Debugger only when explicitly installed for cross-project memory | `fallbacks.md#debug` |
|
|
55
|
+
| Bug-pattern memory | `build-loop:debugging-memory` | — | `fallbacks.md#bug-memory` (greps `.build-loop/issues/` + `.bookmark/`) |
|
|
56
|
+
| Agent authoring | `agent-builder:agent-builder-anthropic` | `plugin-dev:agent-development` (if plugin work) | `fallbacks.md#agent-authoring` |
|
|
57
|
+
| DeepAgents / local-LLM agent work | `build-loop:building-with-deepagents` (SubAgent API, middleware stack, per-agent tool scoping, anti-patterns) | — | Read installed `deepagents` source: `python3 -c 'import deepagents, os; print(os.path.dirname(deepagents.__file__))'` then `graph.py` + `middleware/subagents.py` |
|
|
58
|
+
| Structured reports / handoffs | `pyramid-principle:pyramid-short-form` (Review-F reports), `pyramid-long-form` (design docs) | — | `fallbacks.md#structured-writing` (SCQA + MECE skeleton) |
|
|
59
|
+
| Hosted-IDE migration (Replit / Lovable / Bolt / v0) | `replit-migrate:migration-scan`, `migrate-web`, `migrate-ios`; MCP tools `migrate_scan`, `migrate_plan_web`, `migrate_plan_native`, `migrate_map_apis`, `migrate_map_models`, `migrate_check_progress` | — | `fallbacks.md#migration` (manual inventory + stack-translation) |
|
|
60
|
+
| Prompt authoring / review / audit (system prompts, agent prompts, eval judges) | `prompt-builder:prompt-builder` skill; slash commands `/prompt-builder:optimize`, `/score`, `/compare`, `/save`, `/list`. Calibrates to model tier (T1/T2/T3) and deployment (interactive, backend, rag_pipeline, agent, plugin, eval_judge, personal_mobile). Returns 6-Part-Stack prompt + 5-dim score + diagnosis + `[ASSUMED:]` tags + `TEMPERATURE_HINT` | `prompt-builder` (personal skill, same name, loaded via Skill tool) | `fallbacks.md#prompt` |
|
|
61
|
+
| iOS / watchOS / macOS dev + deploy | `apple-dev` personal skill (via `Skill("apple-dev")`) | `replit-migrate:migrate-ios` (when migrating *to* native) | `fallbacks.md#apple-dev` |
|
|
62
|
+
| Web deploy verification (Vercel) | Vercel MCP (`mcp.vercel.com` remote OAuth, only if user adds it to `.mcp.json`) | Vercel CLI via `scripts/verify_deploy.py` | `fallbacks.md#web-deploy-verify` |
|
|
63
|
+
| Strategic frame / PRD grounding (Assess + Review) | `build-loop:prd-bridge` — reads `docs/prd-*.md` frontmatter (`core_principles`, `load_when`) + Navigation Map + Section Index in Phase 1; verifies diff doesn't violate principles in Phase 5 Fact-Check; recommends `prd-builder` skill if no PRD exists. Falls back to grep on principle keywords if frontmatter parser unavailable. | `prd-builder` skill direct invocation | Phase 1 captures north-star + intent fresh into `intent.md` (existing fallback) |
|
|
64
|
+
| Architecture scan / impact trace (Assess + Review) | `build-loop:architecture-scan` (Assess refresh), `build-loop:architecture-impact` (blast-radius), `build-loop:architecture-rules` (Review violation check), `build-loop:architecture-dead` (orphan scan) — read `.navgator/architecture/` JSON; native skills sourced from NavGator with provenance and drift-detection via `build-loop:sync-skills` | `gator:*` commands if installed | Read component → edit → re-read downstream |
|
|
65
|
+
| Debugger memory-first gate (Review + Iterate) | `build-loop:debugging-memory` — verdict gate (`KNOWN_FIX` / `LIKELY_MATCH` / `WEAK_SIGNAL` / `NO_MATCH`) with strict direct-apply triple-gate (file + version + secondary signal) and Review-F outcome feedback. Orchestrator owns the when-to-fire policy (Review-B + every Iterate attempt) and routes to this skill. | `build-loop:debug-loop` direct (when memory says enter the loop or 3 same-criterion failures) | `fallbacks.md#debug` |
|
|
66
|
+
| Runtime visibility / observability (Assess + reactive Review/Iterate) | `build-loop:logging-tracer` — generates stack-appropriate structured logging / OTel with ephemeral-by-default policy (Mechanism A: `DEBUG_TRACE=1` runtime gate; Mechanism B: `git-stash` throwaway). Invoked reactively when an Iterate attempt flags `evidence_gap: true`. Orchestrator runs the passive Assess scan inline (no skill call needed) and only loads this skill when instrumentation is actually being added. | — | `fallbacks.md#logging-fallback` (inline Tier-1 zero-dep JSON logger per stack) |
|
|
67
|
+
| Self-improvement / recurring pattern detection (Phase 6 Learn) | `build-loop:self-improve` — runs after every build; detects recurring failures and manual interventions; drafts experimental skills/agents to `.build-loop/skills/experimental/`. Auto-promote to `.build-loop/skills/active/` requires opt-in (`autoPromote: true`) plus effective non-confounded sample ≥ 8; regressions and inconclusive results write proposals to `.build-loop/proposals/` for user confirmation — never auto-remove. Cross-project promotion via `/build-loop:promote-experiment <name>` | — | Manual review of `.build-loop/state.json.runs[]` |
|
|
68
|
+
| Context recovery after compaction | `bookmark:*` commands | — | Re-read last plan file in `.build-loop/` |
|
|
69
|
+
| Claude Code plugin authoring / review | `plugin-builder` (personal skill), `plugin-dev:*` family | `build-loop:plugin-hygiene-lessons.md` enforces manifest/hook/marketplace rules in Review-D | Read `plugin-hygiene-lessons.md` verbatim |
|
|
70
|
+
|
|
71
|
+
### Sub-routers (set during Phase 1)
|
|
72
|
+
|
|
73
|
+
**UI target**: prefer the most specific match — order matters.
|
|
74
|
+
|
|
75
|
+
1. **macOS desktop (`uiTarget: "macos"`, `platform: "apple"`)** — `*.xcodeproj` or `Package.swift` is present AND any of: (a) project has NO `ios/` directory AND has `Sources/` / `App/` with `*.swift`; (b) Xcode project's `SUPPORTED_PLATFORMS` / deployment target indicates macOS; (c) repo grep shows `import AppKit` or `import SwiftUI` paired with `WindowGroup`/`Window` (macOS scene types) and no `UIKit` import. macOS has no simulator; validation routes to `native-ax-driver` or IBR `scan_macos`, never to `xcrun simctl`.
|
|
76
|
+
2. **iOS/watchOS mobile (`uiTarget: "mobile"`, `platform: "apple"`)** — `ios/` directory present, OR `*.xcodeproj`/`Package.swift` with `UIKit` import / `iOS` deployment target. Validation uses the iOS simulator screenshot path.
|
|
77
|
+
3. **React Native mobile (`uiTarget: "mobile"`, `platform: "react-native"`)** — `app.json` (Expo) or `App.tsx` with `react-native` import.
|
|
78
|
+
4. **Web (`uiTarget: "web"`, `platform: "web"`)** — fallback for everything else with a UI surface.
|
|
79
|
+
|
|
80
|
+
Tie-breaker: if signals are mixed (an Apple project with both `ios/` and a macOS target), set `uiTarget: "mobile"` and surface a one-line note in Assess; the build can override via `state.json.uiTarget` if the goal targets the macOS surface.
|
|
81
|
+
|
|
82
|
+
**Migration source**: if `.replit` / `replit.nix` present → `migrationSource: "replit"`. Lovable / Bolt / v0 export markers (e.g. `lovable.config`, `bolt.config`, `v0.dev` in comments) → corresponding source. `replit-migrate` skills generalize — load `migration-scan` for any of the above, override hints as needed.
|
|
83
|
+
|
|
84
|
+
**Apple deploy**: when `platform: "apple"` AND goal includes "deploy", "TestFlight", or "App Store" → Phase 7/8 invoke `apple-dev` deploy flow using ASC creds from your harness memory store (e.g. `~/.claude/projects/<project-slug>/memory/reference_asc_credentials.md`). Apply deployment policy first: TestFlight/App Store Connect upload/export defaults to `auto`; App Store production release/submission defaults to `confirm`.
|
|
85
|
+
|
|
86
|
+
**Web deploy verify**: fires when `.vercel/project.json` or `vercel.json` is present AND the build performed a push/deploy → Phase 4 Review-B invokes `scripts/verify_deploy.py` (preferred-tier upgrade: Vercel MCP only if the user has added it to `.mcp.json`). Infra failures return `skipped`, never block the build.
|
|
87
|
+
|
|
88
|
+
## Trigger Conditions
|
|
89
|
+
|
|
90
|
+
Some capabilities should fire proactively based on goal phrasing or files touched. Phase 1 ASSESS sets these flags in `.build-loop/state.json.triggers`, and Phase 4 EXECUTE consults them before dispatching each subagent.
|
|
91
|
+
|
|
92
|
+
**pyramid-principle** (structured writing)
|
|
93
|
+
|
|
94
|
+
Fires whenever the build produces user-visible prose or professional writing. Even small text should follow pyramid structure, and the logical ordering principle applies to design flow too.
|
|
95
|
+
|
|
96
|
+
Trigger if any of:
|
|
97
|
+
|
|
98
|
+
- Task touches user-visible text inside the app: copy, microcopy, empty-state messages, error messages, onboarding flow, help content, tooltips, toasts, form labels, email templates, notification text.
|
|
99
|
+
- Task creates or edits: `README.md`, `CHANGELOG.md`, `docs/**/*.md`, PR descriptions, release notes, design docs, status updates, exec summaries, handoff documents.
|
|
100
|
+
- Goal contains: "write", "draft", "summarize", "document", "one-pager", "brief", "memo", "deck", "slides", "presentation", "status update".
|
|
101
|
+
- Designing information architecture or section ordering: use the pyramid logic for top-down flow (governing thought, then MECE key lines, then support).
|
|
102
|
+
|
|
103
|
+
Action: load `pyramid-principle:pyramid-principle-core` first for ground rules, then the specific skill matching length and format. If absent, use `fallbacks.md#structured-writing`.
|
|
104
|
+
|
|
105
|
+
**prompt-builder** (prompt authoring or audit)
|
|
106
|
+
|
|
107
|
+
Fires when prompts are a core part of the product, not when prompts appear incidentally in code comments or test fixtures.
|
|
108
|
+
|
|
109
|
+
Trigger if any of:
|
|
110
|
+
|
|
111
|
+
- Building or editing prompts that the app sends to an LLM at runtime: document-generation prompts (Example App style), chat-with-user system prompts, voice-interaction prompts (example app style), reranker prompts, eval-judge prompts.
|
|
112
|
+
- Robust agent or prompt pipeline present in the product: multi-step prompts, RAG, tool-use flows.
|
|
113
|
+
- Semantic search over user queries: use `prompt-builder` to revise the query before embedding or retrieval.
|
|
114
|
+
- Authoring a new agent's instructions (the body of an `agents/*.md` file serving as LLM guidance).
|
|
115
|
+
- File signals: `prompts/`, `system-prompt.*`, strings passed to `messages[{role:"system"}]`, `anthropic.messages.create`, `openai.chat.completions.create`, prompt templates in `.prompt` or `.txt` held as product assets.
|
|
116
|
+
- Goal contains: "system prompt", "agent prompt", "prompt engineering", "rewrite this prompt", "improve this prompt", "audit prompts", "eval judge".
|
|
117
|
+
|
|
118
|
+
Existing prompt guardrail: if the task touches an **existing** in-product prompt (not a new one), pause and ask the user before running `prompt-builder`. Prompts are often tuned against real evals; silent rewrites can regress quality. Offer the option, do not auto-apply.
|
|
119
|
+
|
|
120
|
+
Action: load `prompt-builder:prompt-builder` (plugin) if installed, else the personal `prompt-builder` skill, else `fallbacks.md#prompt`. For existing-prompt edits, capture before-and-after in `.build-loop/prompts/` with version suffixes so regressions are detectable.
|
|
121
|
+
|
|
122
|
+
**building-with-deepagents** (DeepAgents / local-LLM agent work)
|
|
123
|
+
|
|
124
|
+
Fires whenever the project uses the open-source `deepagents` package. DeepAgents has subtle API shape (SubAgent dict, middleware stack, per-agent tool scoping) that makes hand-rolled focus modes and flat-tool-list designs silently wrong — small local models exhibit tool-call hallucinations in ways that scoping fixes and prompt injection doesn't.
|
|
125
|
+
|
|
126
|
+
Trigger if any of:
|
|
127
|
+
|
|
128
|
+
- Repo grep: `from deepagents` or `import deepagents` in any Python source file
|
|
129
|
+
- `deepagents` in `pyproject.toml`, `requirements*.txt`, `uv.lock`, or `poetry.lock`
|
|
130
|
+
- Goal mentions: "agent", "sub-agent", "subagent", "planner/researcher/writer", "focus mode", "tool-call hallucination", "LangGraph agent", "ChatOllama", "local LLM agent"
|
|
131
|
+
- File signals: `create_deep_agent`, `SubAgent`, `AGENT_ROLES`, `agent_focus_prompt`
|
|
132
|
+
- Pain symptoms in the conversation: "`<namespace>.<tool>` is not a valid tool", "silent thinking", "model loaded forever", "threads vanish on restart"
|
|
133
|
+
|
|
134
|
+
Existing-agent guardrail: treat agent definitions like existing prompts — pause before rewriting, capture before-and-after in `.build-loop/agents/` with version suffixes. Tool scoping changes downstream behavior for every query; regressions are expensive to spot.
|
|
135
|
+
|
|
136
|
+
Action: load `build-loop:building-with-deepagents` before any code edit involving agent construction, tool binding, or streaming. The skill's `references/anti-patterns.md` lists 12 concrete bugs we've hit — verify none of your planned changes reintroduce them.
|
|
137
|
+
|
|
138
|
+
**Judgment: prompt-builder vs inline prompt**
|
|
139
|
+
|
|
140
|
+
Not every prompt needs the full engine. Use `prompt-builder` when the prompt is load-bearing. Craft a simple inline prompt when it is throwaway.
|
|
141
|
+
|
|
142
|
+
Use `prompt-builder` when any of these are true:
|
|
143
|
+
|
|
144
|
+
- The prompt ships in the product and runs at scale.
|
|
145
|
+
- The prompt is sent to end users or generates user-visible output.
|
|
146
|
+
- The prompt is part of an agent, eval judge, RAG pipeline, or semantic-search query rewriter.
|
|
147
|
+
- Output correctness is measured (evals exist or are planned).
|
|
148
|
+
- The prompt will be reused across features, or maintained over time.
|
|
149
|
+
- Token cost matters because it runs millions of times.
|
|
150
|
+
|
|
151
|
+
Roll your own inline prompt when all of these are true:
|
|
152
|
+
|
|
153
|
+
- One-shot usage inside the current build loop (dispatching a subagent, asking Claude to transform a file, generating a migration script).
|
|
154
|
+
- Not persisted to the product codebase.
|
|
155
|
+
- Output is checked once by the orchestrator, not by an eval.
|
|
156
|
+
- A short direct instruction is clearer than a 6-Part Stack.
|
|
157
|
+
|
|
158
|
+
Default when uncertain: if the prompt text will exist in the repo after the build, use `prompt-builder`. If it only exists as a line in an orchestrator message during this build, inline is fine.
|
|
159
|
+
|
|
160
|
+
### Plugin / hook / skill / agent work — mandatory
|
|
161
|
+
|
|
162
|
+
If Phase 1 detects that the task touches plugin components, Phase 3 must map each task to the authoritative skill below and Phase 4 must load that skill. **Do not infer plugin formats from memory or by reading another plugin's config.**
|
|
163
|
+
|
|
164
|
+
| Task surface | Skill (authoritative) | Fallback |
|
|
165
|
+
|---|---|---|
|
|
166
|
+
| `.claude-plugin/plugin.json` | `plugin-dev:plugin-structure` | Read `RossLabs-AI-Toolkit/LESSONS-LEARNED.md` — paths must start with `./` |
|
|
167
|
+
| `hooks/hooks.json` or hook scripts | `plugin-dev:hook-development` + run `plugin-dev/scripts/hook-linter.sh` | Command hooks default; Stop stdout must be valid JSON; advisory/non-blocking unless an explicit safety/security/integrity gate opts into blocking; NO prompt hooks on PostToolUse/Stop/SessionStart |
|
|
168
|
+
| Slash commands (`commands/*.md`) | `plugin-dev:command-development` | — |
|
|
169
|
+
| Subagents (`agents/*.md`) | `plugin-dev:agent-development` + `RossLabs-AI-Toolkit/agents/` | `fallbacks.md#agent-authoring` |
|
|
170
|
+
| MCP servers (`.mcp.json`) | `plugin-dev:mcp-integration` | `.mcp.json` must NOT wrap with `mcpServers` key (Method 1) |
|
|
171
|
+
| `~/.claude/settings.json` | `plugin-dev:plugin-settings` | — |
|
|
172
|
+
| New skill (SKILL.md) | `plugin-dev:skill-development` + `skill-builder` (personal) | Official skill format; SKILL.md ≤200 lines |
|
|
173
|
+
| New plugin end-to-end | `plugin-builder` (personal) → delegates into `plugin-dev:*` | — |
|
|
174
|
+
|
|
175
|
+
### External knowledge — check before coding
|
|
176
|
+
|
|
177
|
+
| Source | When | How |
|
|
178
|
+
|---|---|---|
|
|
179
|
+
| `/cookbook` | Claude API patterns: tool calling, PTC, code execution, Agent SDK, RAG, thinking, structured output, batch, caching | Invoke `/cookbook` or read `reference_claude_cookbook.md` from your harness memory store (`~/.claude/projects/<project-slug>/memory/`) |
|
|
180
|
+
| `RossLabs-AI-Toolkit/LESSONS-LEARNED.md` | Any plugin work | Read during Phase 1 ASSESS |
|
|
181
|
+
| `context7` MCP | Any library/framework use | `query-docs` / `resolve-library-id` — do NOT code from training data |
|
|
182
|
+
| `research` skill | Factual claims, pricing, versions | Run `scripts/research_trigger.py` first; T1 official docs → T4 forums; 2-source minimum |
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<!-- SPDX-FileCopyrightText: 2025-2026 Tyrone Ross, Jr <46267523+tyroneross@users.noreply.github.com> | SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
|
|
3
|
+
# Codex Subagent Adapter
|
|
4
|
+
|
|
5
|
+
Use this adapter when Build Loop runs inside Codex. It translates Build Loop's host-neutral "parallel subagents" concept into Codex-native delegation without changing Claude Code's `agents/*.md` runtime.
|
|
6
|
+
|
|
7
|
+
## Core Rule
|
|
8
|
+
|
|
9
|
+
Codex may use subagents only when the user explicitly authorizes delegation or parallel agent work. Examples: "use subagents", "parallelize this", "delegate", "spin up workers", or `/build-loop --parallel ...`.
|
|
10
|
+
|
|
11
|
+
If authorization is absent, keep the work local in the lead Codex session. Still write the same MECE plan and ownership packets, but do not spawn workers.
|
|
12
|
+
|
|
13
|
+
## Role Mapping
|
|
14
|
+
|
|
15
|
+
| Build Loop need | Codex role | Use when |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| Codebase question | `explorer` | The answer can be read-only, bounded, and returned as facts with file paths. |
|
|
18
|
+
| Implementation slice | `worker` | The write set is disjoint from other workers and the interface contract is clear. |
|
|
19
|
+
| Phase 4 review passes | lead session inline, or `explorer` if authorized | See the enumerated passes below — the lead owns these whether or not delegation is allowed. |
|
|
20
|
+
| Final integration | lead session | The lead must own merge, validation, and final judgment. |
|
|
21
|
+
|
|
22
|
+
**Phase 4 review is not one pass — it is a set.** Whether run inline (default) or via an authorized `explorer`, the lead must cover all of these every non-trivial build; do not skip a pass just because Codex lacks a dedicated agent file for it:
|
|
23
|
+
|
|
24
|
+
- **Adversarial audit (independent-auditor)** — read the diff against intent/goal/PRD/constitution; verdict `yay`/`nay`/`suggest_correction`/`look_again`. Advisory at chunk close, gating at build scope.
|
|
25
|
+
- **Fact-check** — trace every rendered metric (%, $, score, count) to its source; flag absolute claims. *Blocking* when a rendered number is unverifiable.
|
|
26
|
+
- **Mock-data scan** — production paths only; lorem/faker/hardcoded/`Math.random()`-in-display. *Blocking* when it renders to the user.
|
|
27
|
+
- **Security review** — only when Assess flagged a risk-surface change (auth, network, persistence, secrets, external input); OWASP LLM/Agentic/Web top-10. *Blocking* on critical/high (feeds the exit gate).
|
|
28
|
+
|
|
29
|
+
The first row's "read-only, does not block" applies to the adversarial-audit *critic* pass; the fact-check, mock-scan, and security passes CAN block and route to Iterate.
|
|
30
|
+
|
|
31
|
+
## Permission Gate
|
|
32
|
+
|
|
33
|
+
Before spawning any Codex subagent:
|
|
34
|
+
|
|
35
|
+
1. Confirm user authorization is explicit in the current request or command flags.
|
|
36
|
+
2. Confirm the task is not on the immediate critical path.
|
|
37
|
+
3. Confirm the subtask has a bounded write set or read-only question.
|
|
38
|
+
4. Confirm the prompt includes a MECE ownership packet.
|
|
39
|
+
|
|
40
|
+
If any condition fails, do the work locally.
|
|
41
|
+
|
|
42
|
+
## When Not To Delegate
|
|
43
|
+
|
|
44
|
+
- Ambiguous product decisions.
|
|
45
|
+
- Final integration or final report.
|
|
46
|
+
- Destructive git operations.
|
|
47
|
+
- Push/deploy confirmation.
|
|
48
|
+
- A task whose result is required before the lead can make the next local move.
|
|
49
|
+
- Files already owned by another active worker.
|
|
50
|
+
- Cross-file architecture decisions that were not settled in the plan.
|
|
51
|
+
|
|
52
|
+
## Prompt Packet Required
|
|
53
|
+
|
|
54
|
+
Every Codex worker prompt must include:
|
|
55
|
+
|
|
56
|
+
- `task`: one concrete outcome.
|
|
57
|
+
- `owns`: exact files or directories the worker may edit.
|
|
58
|
+
- `does_not_own`: files, directories, or responsibilities the worker must avoid.
|
|
59
|
+
- `context`: condensed facts from Phase 1 and Phase 2.
|
|
60
|
+
- `interface_contract`: functions, routes, schemas, props, CLI flags, or docs the worker must preserve or expose.
|
|
61
|
+
- `integration_checkpoint`: what the lead will verify before merging the worker result.
|
|
62
|
+
- `validation`: commands the worker should run if feasible.
|
|
63
|
+
- `return_format`: changed files, summary, validation, unresolved risks, integration notes.
|
|
64
|
+
|
|
65
|
+
Tell every worker: "You are not alone in the codebase. Do not revert edits made by others; adapt around them and report conflicts."
|
|
66
|
+
|
|
67
|
+
## Context Policy
|
|
68
|
+
|
|
69
|
+
Prefer explicit prompt packets over full context forks. Use full context only when the worker genuinely needs the thread history to avoid a wrong implementation.
|
|
70
|
+
|
|
71
|
+
Shared reads should happen once in the lead session, then be condensed into worker prompts. This keeps workers focused and reduces contradictory interpretations.
|
|
72
|
+
|
|
73
|
+
### Prompt Cache Discipline
|
|
74
|
+
|
|
75
|
+
OpenAI prompt caching is automatic, so Build Loop cannot call the cache directly from Codex. The lever the Codex adapter controls is prompt shape: keep the reusable prefix stable, and move volatile task state later.
|
|
76
|
+
|
|
77
|
+
For Codex CLI and Codex app runs, put reusable role rules, output contracts, validation expectations, and ownership schema before task-specific facts. Put Rally state, timestamps, command output, diffs, browser comments, thread IDs, worktree metadata, current claims, and task IDs after the stable contract.
|
|
78
|
+
|
|
79
|
+
Do not reorder stable sections between worker prompts. Monitoring cached-token counters only detects prefix churn; the improvement comes from preserving the prefix and reducing noisy context before dispatch.
|
|
80
|
+
|
|
81
|
+
## Parallel Pattern
|
|
82
|
+
|
|
83
|
+
1. Lead creates the plan and identifies parallel-safe groups.
|
|
84
|
+
2. Lead spawns only independent sidecar work.
|
|
85
|
+
3. Lead continues non-overlapping local work while workers run.
|
|
86
|
+
4. Lead waits only when blocked on a worker result.
|
|
87
|
+
5. Lead reviews changed files and integrates deliberately.
|
|
88
|
+
6. Lead runs final validation locally.
|
|
89
|
+
|
|
90
|
+
## Return Format
|
|
91
|
+
|
|
92
|
+
Workers should finish with:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
Changed files:
|
|
96
|
+
- <path>: <what changed>
|
|
97
|
+
|
|
98
|
+
Validation:
|
|
99
|
+
- <command or "not run">: <result or reason>
|
|
100
|
+
|
|
101
|
+
Integration notes:
|
|
102
|
+
- <contract, migration, or ordering notes>
|
|
103
|
+
|
|
104
|
+
Unresolved risks:
|
|
105
|
+
- <risk or "none known">
|
|
106
|
+
```
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
<!-- SPDX-FileCopyrightText: 2025-2026 Tyrone Ross, Jr <46267523+tyroneross@users.noreply.github.com> | SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
|
|
3
|
+
# Coordination File Template
|
|
4
|
+
|
|
5
|
+
**Purpose:** Canonical starting shape for a new per-run coordination file at `.build-loop/coordination/<topic>.md`. Inherits binding rules from `references/coordination-rules.md`; this template defines the **structure** every coord file MUST include so verifiers, peer sessions, and `scripts/coordination_status.py` can parse them uniformly.
|
|
6
|
+
|
|
7
|
+
**How to use:** Copy this file to `.build-loop/coordination/<your-topic>-<YYYY-MM-DD>.md`. Replace every `{{PLACEHOLDER}}` token with a real value. Delete the `<!-- TEMPLATE NOTE: -->` blocks before committing. Keep section ordering; `coordination_status.py` parses the "Codex feedback log" verdict headings and step-status table, so don't rename those sections.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## ⬇️ Template begins below ⬇️
|
|
12
|
+
|
|
13
|
+
<!-- TEMPLATE NOTE: Title is human-readable. Include the version/feature scope. -->
|
|
14
|
+
|
|
15
|
+
# Coordination — {{RUN_TITLE}} ({{DATE_YYYY_MM_DD}})
|
|
16
|
+
|
|
17
|
+
**Date:** {{DATE_YYYY_MM_DD}}
|
|
18
|
+
**Session:** {{PRIMARY_TOOL}} ({{PRIMARY_ROLE}}); {{VERIFIER_TOOL}} ({{VERIFIER_ROLE}})
|
|
19
|
+
**Status:** active — will be archived per closeout protocol when all pieces land
|
|
20
|
+
**Predecessor:** `.build-loop/coordination/archived/{{PREVIOUS_RUN_FILE}}.md` <!-- or "none (first run)" -->
|
|
21
|
+
|
|
22
|
+
## Scope
|
|
23
|
+
|
|
24
|
+
<!-- TEMPLATE NOTE: One paragraph naming the deliverable goal and explicit out-of-scope items. -->
|
|
25
|
+
|
|
26
|
+
{{SCOPE_SUMMARY_2_TO_4_SENTENCES}}
|
|
27
|
+
|
|
28
|
+
**Pieces (chunk list with one-line summaries):**
|
|
29
|
+
|
|
30
|
+
- **{{PIECE_ID_1}}** — {{PIECE_1_ONE_LINE}}
|
|
31
|
+
- **{{PIECE_ID_2}}** — {{PIECE_2_ONE_LINE}}
|
|
32
|
+
- **{{PIECE_ID_N}}** — {{PIECE_N_ONE_LINE}}
|
|
33
|
+
|
|
34
|
+
**Out of scope:**
|
|
35
|
+
|
|
36
|
+
- {{OUT_OF_SCOPE_1}}
|
|
37
|
+
- {{OUT_OF_SCOPE_2}}
|
|
38
|
+
|
|
39
|
+
## Operating Rule (binding — inherited from references/coordination-rules.md)
|
|
40
|
+
|
|
41
|
+
**Claude does not proceed past a step marked `verification-pending` until the latest verifier feedback entry for that step is one of:**
|
|
42
|
+
|
|
43
|
+
- `PASS` — acceptance criteria verified.
|
|
44
|
+
- `VARIANCE` that has been resolved (Claude fixed, documented non-acceptance, OR escalated to user).
|
|
45
|
+
- Explicit user override.
|
|
46
|
+
|
|
47
|
+
A `VARIANCE` left unresolved blocks the next step. A `BLOCKED` entry requires the producing peer to supply the missing evidence before proceeding.
|
|
48
|
+
|
|
49
|
+
Per-run amendments: {{ANY_RUN_SPECIFIC_OPERATING_AMENDMENTS_OR_NONE}}
|
|
50
|
+
|
|
51
|
+
## Coordination Protocol (binding — inherited)
|
|
52
|
+
|
|
53
|
+
- **All Rally Point writes** go through `scripts/rally_point/post.py` `post()` helper.
|
|
54
|
+
- **Cheap detection at every step boundary**: `python3 scripts/coordination_status.py --workdir . --session-id <id> --owned-file <path> --coordination-file .build-loop/coordination/{{THIS_FILE_NAME}}.md --json`. `--coordination-file` REQUIRED — explicit beats implicit.
|
|
55
|
+
- **Verifier feedback entry format** (append-only to "Verifier feedback log" at bottom):
|
|
56
|
+
|
|
57
|
+
```md
|
|
58
|
+
### YYYY-MM-DD HH:MM TZ — {{VERIFIER}} <VERDICT>
|
|
59
|
+
**Step:** <piece id / name>
|
|
60
|
+
**Verdict:** PASS | VARIANCE | BLOCKED
|
|
61
|
+
**Evidence:** <file:line or command result>
|
|
62
|
+
**Impact:** <why this matters>
|
|
63
|
+
**Requested Claude action:** <fix / explain / user decision>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
- **Post via channel** in parallel: `post(kind="feedback", payload={"step": "<id>", "verdict": "<VERDICT>", "evidence": {...}, "impact": "...", "requested_action": "..."})`. Both writes (feedback log + channel) MUST happen — the feedback log is the durable record; the channel is the runtime signal.
|
|
67
|
+
|
|
68
|
+
## MECE Ownership Packets per Piece
|
|
69
|
+
|
|
70
|
+
<!-- TEMPLATE NOTE: Repeat this block once per piece. Every write-handoff requires all seven. Skip ONLY for pure-read handoffs. -->
|
|
71
|
+
|
|
72
|
+
### {{PIECE_ID}} — {{PIECE_TITLE}}
|
|
73
|
+
|
|
74
|
+
- **Owns** ({{OWNER_TOOL}}): {{FILE_OR_SCOPE_LIST}}
|
|
75
|
+
- **Does not own**: {{FILE_OR_SCOPE_LIST}}
|
|
76
|
+
- **Interface contract**: {{DELIVERABLE_SHAPE — schema, format, CLI exit codes, return-envelope fields}}
|
|
77
|
+
- **Integration checkpoint**: {{HOW_VERIFIER_CONFIRMS — test command, grep pattern, file existence, fresh-session load}}
|
|
78
|
+
- **Allowed tools**: {{LIST_OR_EMPTY — tools the peer MAY use; [] = no restriction}}
|
|
79
|
+
- **Denied tools**: {{LIST_OR_EMPTY — tools the peer must NOT use; [] = no restriction}}
|
|
80
|
+
|
|
81
|
+
### {{NEXT_PIECE_ID}} — {{NEXT_PIECE_TITLE}}
|
|
82
|
+
|
|
83
|
+
- **Owns** ({{OWNER_TOOL}}): ...
|
|
84
|
+
- **Does not own**: ...
|
|
85
|
+
- **Interface contract**: ...
|
|
86
|
+
- **Integration checkpoint**: ...
|
|
87
|
+
- **Allowed tools**: []
|
|
88
|
+
- **Denied tools**: []
|
|
89
|
+
|
|
90
|
+
<!-- TEMPLATE NOTE: Continue for every piece. Enforce via `python3 scripts/brief_mece_validator.py --brief-file <packet-as-tmpfile>` before dispatching that piece to an implementer. -->
|
|
91
|
+
|
|
92
|
+
## Step status (live)
|
|
93
|
+
|
|
94
|
+
<!-- TEMPLATE NOTE: This table is parsed by humans + verifiers. Status column updates as work progresses. -->
|
|
95
|
+
|
|
96
|
+
| # | Piece | Owner | Status | Version after | Pending verifier check |
|
|
97
|
+
|---|---|---|---|---|---|
|
|
98
|
+
| {{PIECE_ID_1}} | {{PIECE_1_TITLE}} | {{OWNER_1}} | ⏸️ awaiting dispatch | {{VERSION_TAG_OR_PIECE}} | yes |
|
|
99
|
+
| {{PIECE_ID_2}} | {{PIECE_2_TITLE}} | {{OWNER_2}} | ⏸️ awaiting dispatch | {{VERSION_TAG_OR_PIECE}} | yes |
|
|
100
|
+
| {{PIECE_ID_N}} | {{PIECE_N_TITLE}} | {{OWNER_N}} | ⏸️ awaiting dispatch | {{VERSION_TAG_OR_PIECE}} | yes |
|
|
101
|
+
|
|
102
|
+
**Status legend:** `⏸️ awaiting dispatch` → `🏃 executing` → `✅ executed; verification-pending` → `✅ PASS (verifier)` → `done`. Variances surface as `⚠️ VARIANCE — <one-line>` until resolved.
|
|
103
|
+
|
|
104
|
+
## Acceptance criteria per piece (for verifier checking)
|
|
105
|
+
|
|
106
|
+
<!-- TEMPLATE NOTE: Mirrors interface-contract + integration-checkpoint from MECE packets above. Verifier confirms both before posting PASS. Repeat per piece. -->
|
|
107
|
+
|
|
108
|
+
### {{PIECE_ID_1}}
|
|
109
|
+
|
|
110
|
+
- {{CHECK_1}} — {{HOW_TO_RUN}}
|
|
111
|
+
- {{CHECK_2}} — {{HOW_TO_RUN}}
|
|
112
|
+
- {{CHECK_N}} — {{HOW_TO_RUN}}
|
|
113
|
+
|
|
114
|
+
### {{PIECE_ID_2}}
|
|
115
|
+
|
|
116
|
+
- ...
|
|
117
|
+
|
|
118
|
+
## Release verification (when this run bumps a plugin version)
|
|
119
|
+
|
|
120
|
+
<!-- TEMPLATE NOTE: Drop this section if the run does not ship a versioned release. -->
|
|
121
|
+
|
|
122
|
+
After the final piece commits + the version-bump commit lands, verifier runs:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
python3 scripts/verify_release_surface.py \
|
|
126
|
+
--version {{TARGET_VERSION}} \
|
|
127
|
+
--branch {{TARGET_BRANCH}} \
|
|
128
|
+
--remote origin \
|
|
129
|
+
--json
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Exit 0 = all seven release-surface checks pass; exit 1 = at least one failed. Verifier appends the JSON result as the final verifier-feedback-log entry.
|
|
133
|
+
|
|
134
|
+
## Anti-checklist (don't do these)
|
|
135
|
+
|
|
136
|
+
- No new coordination-file FORMAT — reuse this template's section shape.
|
|
137
|
+
- No new presence mechanism — reuse Rally Point `presence.write_presence` + `post()`.
|
|
138
|
+
- No new agents unless explicitly justified.
|
|
139
|
+
- No silent scope creep — if a piece grows mid-execution, post `VARIANCE` to the feedback log first.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Verifier feedback log
|
|
144
|
+
|
|
145
|
+
<!-- TEMPLATE NOTE: Verifier appends entries below per the format in Coordination Protocol. Do NOT edit prior entries — append-only. -->
|
|
146
|
+
|
|
147
|
+
<!-- Example (delete before committing):
|
|
148
|
+
|
|
149
|
+
### 2026-05-20 16:02 PDT — codex PASS
|
|
150
|
+
**Step:** {{PIECE_ID_1}}
|
|
151
|
+
**Verdict:** PASS
|
|
152
|
+
**Evidence:** `python3 scripts/test_plugin_manifest.py` -> 12/12 OK; `git ls-remote origin {{TARGET_BRANCH}} {{TARGET_VERSION}}` -> both refs at <sha>
|
|
153
|
+
**Impact:** Piece {{PIECE_ID_1}} acceptance criteria satisfied; Claude can proceed to next piece.
|
|
154
|
+
**Requested Claude action:** Proceed to {{PIECE_ID_2}}.
|
|
155
|
+
|
|
156
|
+
-->
|
|
157
|
+
|
|
158
|
+
## ⬆️ Template ends above ⬆️
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Template usage checklist
|
|
163
|
+
|
|
164
|
+
Before committing your filled-in coord file:
|
|
165
|
+
|
|
166
|
+
1. Every `{{PLACEHOLDER}}` replaced with a real value.
|
|
167
|
+
2. Every `<!-- TEMPLATE NOTE: ... -->` block deleted.
|
|
168
|
+
3. Every piece has a MECE packet (all seven elements: owns / does-not-own / interface-contract / integration-checkpoint / allowed-tools / denied-tools / acceptance-criteria).
|
|
169
|
+
4. Every piece has an acceptance-criteria sub-section.
|
|
170
|
+
5. Step-status table rows match piece IDs in MECE packets.
|
|
171
|
+
6. Run `python3 scripts/coordination_status.py --workdir . --session-id <id> --coordination-file <this-file> --json` — should report `status: clear` initially.
|
|
172
|
+
7. Optionally write `.build-loop/coordination/active.json` (or `active`) pointing at this file so future `coordination_status.py` calls without explicit `--coordination-file` resolve to it deterministically.
|
|
173
|
+
|
|
174
|
+
## Reference
|
|
175
|
+
|
|
176
|
+
- Binding rules: `references/coordination-rules.md`
|
|
177
|
+
- Validator for MECE packets: `scripts/brief_mece_validator.py`
|
|
178
|
+
- Status sensor: `scripts/coordination_status.py`
|
|
179
|
+
- Channel helper: `scripts/rally_point/post.py`
|
|
180
|
+
- Release verifier (when bumping a version): `scripts/verify_release_surface.py`
|
|
181
|
+
- Closeout protocol: `scripts/rally_point/lifecycle.py` + `agents/build-orchestrator.md` Phase D
|