execute
Execute a plan. Creates ./.gtd/<task_name>/{phase}/SUMMARY.md
SKILL.md.claude/skills/execute
GitHubScope & Blocker Rules
- When complying with the plan's declared contracts, invariants, and retired-form removals requires editing a file outside
File Manifestand the plan with the codebase leaves zero design choices open, apply that edit and record the file and reason underRound 0 — Build Deviationsinimplementation_ledger.md. - When satisfying the plan requires an unstated design choice, or when a declared contract or invariant cannot hold against the codebase, stop execution immediately and report the blocker to the user; never modify or relax a declared contract, invariant, or test to make a check pass.
- When execution reveals a capability serving a job outside the plan's declared users' jobs, leave it unimplemented and note it in the final reply.
Implementation Ledger
Create implementation_ledger.md beside implementation_plan.md when Build starts, and keep completed round entries intact as later entries are added. Write None when a list entry has no items, and None given when a user gives no reason.
Round 0 — Build Deviations: files modified outsideFile Manifestduring Build and the reason.Round <N>: appended after each audit round with the audit report link, verdict,Remediations, andRejections.User Direction: when the user interrupts execution and overrides how it proceeds, append what the user directed (written to be understood without the conversation) and the user's stated reason.Verification: appended once baseline checks and any declared audit gate pass, recordingBaseline Checks.
- **Round 0 — Build Deviations**:
- [test_startup.py](file:///path/to/tests/test_startup.py#L14-L18): Replaced retired `LegacySettings("localhost", 8080)` call with `AppConfig(host="localhost", port=8080)`
- **User Direction** (Build milestone 2):
- **Directed**: Keep `legacy_export.csv` reader until external billing cutover; omit `legacy_export.py` deletion from Milestone 2
- **Reason**: External billing cron reads `legacy_export.csv` until Friday
- **Round 1**:
- **Audit Report**: [audit_report_round_1.md](file:///path/to/audit_report_round_1.md)
- **Verdict**: `FAIL (CLOSED)`
- **Remediations**: `F-02 [CLOSED]` -> Removed unused `import legacy_sync` at [sync.py:12](file:///path/to/sync.py#L12)
- **Rejections**: `F-01 [PLAN VETO]` -> `sync_state` at [sync.py:40](file:///path/to/sync.py#L40) computes in-memory state with zero network I/O
- **Verification**:
- **Baseline Checks**: `python3 -m unittest` -> `Ran 24 tests in 0.12s — OK (exit code 0)`
Execution Steps
Build: Read the
File Manifesttargets across the milestones (expanding reads only where needed for full function bodies, callers, or unlisted retired forms) and write their changes to disk. As each milestone's changes land, notify the user, then proceed immediately without pausing.- Completion criterion: Every milestone's
File Manifestchanges and required unlisted-file edits are written to disk, andRound 0 — Build Deviationsinimplementation_ledger.mdis complete.
- Completion criterion: Every milestone's
Verify & Remediate: Run the
Baseline Checksdeclared across the active plan chain. When the plan declares aSubagent Spawn Directive, dispatchboundary-auditorwith the directive's exact prompt (<plan-link>set to the active plan,<ledger-link>, and round1), read theaudit_report_round_<N>.mdpath it returns, check every finding individually against the codebase, the active plan chain, and anyUser Directionin the ledger before editing any file, output a round summary stating the verdict and whether each finding holds, fails, or partly holds with the decidingfile:lineand plan requirement, and proceed immediately without pausing (Audit Budgetcounts total audit rounds from the initial plan):- When any
PLAN VETOfinding holds or its veto claim partly holds, rule on each part of the veto claim against the global rules (the user-levelGEMINI.md/AGENTS.md) and the project rules (the project-rootGEMINI.md) individually while holding the other parts fixed: when a rule resolves a part, carry that part into theOPENpath below, recording the rule with its location and the ruling underRemediationsinRound <N>; when the rule sets resolve a part differently, the project rule governs; when no rule resolves a part, recordRound <N>inimplementation_ledger.mdand stop execution immediately, reporting that part to the user without editing code. - When no
PLAN VETOpart remains unresolved and any holding finding or part isOPEN:- When
Audit Budgetis exhausted (Nhas reached the initial plan'sAudit Budget), recordRound <N>inimplementation_ledger.mdand stop execution immediately (Hard Stop), reporting the unresolved findings without runningbug-classification, draftingimplementation_plan_round_<N>.md, or editing code. - When within
Audit Budget, leave current workspace code untouched, recordRound <N>inimplementation_ledger.md, read and applybug-classificationskill to every holding finding or part (bothOPENandCLOSED), then read and applyboundary-planto write<Artifact Directory>/implementation_plan_round_<N>.mdbeside the prior plan covering all holding findings together (RequestFeedback: false, starting at the top with a link to the prior plan and those findings). Executeimplementation_plan_round_<N>.mdimmediately through Step 1 (recording every modified file and any deviation underRemediationsinRound <N>ofimplementation_ledger.md), runBaseline Checksacross the active plan chain, then dispatchboundary-auditorwith<plan-link>set toimplementation_plan_round_<N>.mdfor Round $N+1$ when any holding finding or part in this round produces wrong behaviour in the application or the executed round plan's changes produce wrong behaviour in the application; when neither produces wrong behaviour, the audit gate is complete onceBaseline Checkspass and every site the round plan changed is traced as behaviour-neutral, recorded underRemediationsinRound <N>.
- When
- When no
PLAN VETOpart remains unresolved and zeroOPENfindings or parts hold:- Remediate directly only every holding
CLOSEDfinding or part strictly to its specified target state (without runningbug-classificationor creating a new plan), recording each fix withfile:lineunderRemediationsand each failing claim underRejectionsinRound <N>ofimplementation_ledger.md. - When zero findings hold, or every holding
CLOSEDfinding or part is remediated strictly to its specified target state without changing unrelated code, the audit gate is complete onceBaseline Checkspass (re-run only if remediation edited files) and every scenario or invariant on remediated paths holds by test execution or code trace; when a fix changed code beyond aCLOSEDfinding's specified target state, dispatchboundary-auditorfor Round $N+1$ if withinAudit Budget, or stop immediately ifAudit Budgetis exhausted.
- Remediate directly only every holding
- Completion criterion:
- On pass:
Baseline Checkspass, any declared audit gate is complete,implementation_ledger.mdends withVerification, and the reply delivers the link toimplementation_ledger.md(and the final audit report when applicable), baseline check results, and any out-of-job notes. - On Hard Stop (Build blocker, unresolved holding
PLAN VETO, or exhaustedAudit Budget):implementation_ledger.mdreflects all completed build/round entries withoutVerification, and the reply reports the exact blocker or unresolved findings withfile:lineand the ledger link.
- On pass:
- When any