Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude/skills/create-plan/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ A revision is plan-author work on an existing file of record. It runs in a **fre

## Scope check (before any research)

A plan implements **one non-chore group** of the round charter and lands on **one gate** (contract §11). If the issue list spans more than one group, or bundles a group that changes printed output or emitted layout with anything else, **stop and ask** which group to plan — never bundle. Chores ride along only when they touch no seam the group touches. Record the answer in the plan's `## Scope` block; a deliberate exception is written there as `override: <owner's words>`.
A plan implements **one non-chore group** of the round charter and lands on **one gate** (contract §11). If the issue list spans more than one group, or bundles a group that changes printed output or emitted layout with anything else, **stop and ask** which group to plan — never bundle. Chores ride along only when they touch no seam the group touches. Record the answer in the plan's `## Scope` block; a deliberate exception is an `Override (scope)` record there.

## Tier check (contract §12, before any research)

Expand Down Expand Up @@ -161,7 +161,7 @@ The plan must follow this structure. `## Defect Class` and `## Adversarial Revie
- **Alone:** <yes — changes printed output / emitted layout | no>
- **Gates:** 1
- **Filing:** cells outside the contract go to the findings ledger; the lead files by class (contract §10); trackers named at the end of this plan
- **Override:** <none | the owner's words>
- **Override (scope):** <none | owner YYYY-MM-DD "override: <reason>" — <comment URL>>

## Defect Class

Expand Down
14 changes: 4 additions & 10 deletions .claude/skills/implement-plan/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,11 @@ Before spawning any agents, perform these checks yourself.
Note its **Defect Class** and **Adversarial Review** sections (if any), its **Issues to Close** rows with their close criteria, the **blast-radius** line, the **generated artifacts touched** line, and any spec examples it promises. Record the plan's **base sha** — the commit it was verified against (the `@ <sha>` in the stamp) or the commit before its first implementation commit. Every scope check below uses `<base>..HEAD`, never the branch-vs-`mainline` range (on `dev` that spans every batch since the last release).

### 2. Check the tier and the verification stamp
- Read the `## Scope` block's **Tier** line (contract §12). `tier: light` → the stamp must read `Verified by /verify-plan --adequacy (Adequacy-only …)` with result `PASS` or `CONVERGED` (contract §12 Convergence: the Verification Summary's `### Deferred findings` rows are the first commit, resolved in code; `Adequacy: CELL` on a bug-fix plan still asks the owner once, as below); absent → "This light plan has no adequacy pass. Run `/verify-plan <path>` (it runs `--adequacy` for a light plan) first." `NEEDS REVISION` → stop, as for a full plan. Then run `python3 build_tools/check_plan_refs.py <plan> --issues` (outside the sandbox, `gh`) yourself and **refuse on a red report** until it is clean — the light pass corrects nothing inline, so references may have drifted since. Record the tier in the Implementation Summary header; the final `/verify-implementation` runs its light auditor set. No `Tier` line (plans created before 2026-10-28) → `full`.
- Run `python3 build_tools/check_plan_ready.py <plan>` (unsandboxed: `gh`) and act on its verdict; its docstring holds the rules (§11, §12). **READY** → go on; copy its `Implementation Summary header:` line; a light plan's final `/verify-implementation` runs its light auditor set. **REFUSE** → stop with its message (a bad override record: fix or delete it). **ASK** → ask its question once; "proceed or stop" is answered in chat, unrecorded; the lead answers "which inputs?" in the Implementation Summary; with no Scope line the lead derives it and proceeds on one group. **UNVERIFIED** → re-run with GitHub reachable.
- **Override.** The owner posts it on the plan's pull request or an input issue (chat counts once posted); record `Override (cell|scope): owner YYYY-MM-DD "override: <reason>" — <comment URL>`, re-run until READY.
- The lead checks (§11): a layout-changing phase sharing a gate, or a generator-required group without stage 0 or its generator first, is the scope question.
- **Promotion in flight** (§12): if an implementer hits a decision the charter and plan did not rule, or the fix moves into `Semantic/`, `Lowering/` or `CodeGen/` on a light plan — STOP that lane, write the question with lettered options and the door type under `## Implementation Checklist` (added for this when the harness keeps a task board; never into `## Design Decisions`), ask the owner, record the answer there, and replace the `## Scope` Tier line with `tier: full (<letter>, promoted at /implement-plan: <reason>)`, the one design-section edit allowed after a stamp (contract §12). Never demote.
- For a `full` plan, look for `<!-- Verified by /verify-plan` at the top:
- If **absent**: warn the user "This plan has not been verified. Consider running `/verify-plan` first." Ask whether to proceed or stop. A first line reading `<!-- DRAFT, not verified` is this case stated by the file itself: `/create-plan` committed the draft for the trail, and no pass has stamped it.
- If **NEEDS REVISION**: stop — "This plan was flagged as needing revision. Please address the issues in the Verification Summary before implementing."
- If **CONVERGED** (contract §12 Convergence): proceed as for PASS, with one exception — `Adequacy: CELL` on a bug-fix plan still needs the owner's word: show the `### Deferred findings` rows and ask once ("converged with CELL — say `override` to implement, or revise"); proceed only on the override and record the owner's words in the plan's `## Revision log`. The `### Deferred findings` rows are Phase 1's first task (a light plan's first commit): each is resolved in code — a map or exclusion entry, an assertion's source expression, a test's census constant — with the assertion or mutation the row names, and the commit body names the row it closes; the design sections contract §12 Convergence names are not edited beyond one `## Revision log` line, `deferred findings resolved in code @ <sha>`. Record `<Adequacy> (converged)` in the Implementation Summary header.
- If **PASS** or **PASS WITH CORRECTIONS**: read the `<!-- Adequacy: CLASS | CELL | N/A -->` line:
- `CLASS` or `N/A` → proceed
- `CELL` and any plan input is a bug/ICE/regression issue → **refuse**: "This plan patches a cell, not its class (see the plan's Adequacy verdict). Add a Defect Class section — contract, matrix, standard cure — and re-run `/verify-plan`, or say `override` to implement it as a cell fix knowingly." Proceed only on an explicit override, and record the override in the plan file. A `CONVERGED` stamp does not replace the override — it only changes what the owner is asked (the deferred rows, above).
- Stamp without an Adequacy line (verified before 2026-08-26) → treat as `N/A` for feature plans, and as `CELL` for bug-fix plans unless the plan already has a Defect Class section.
- Read the `<!-- Scope:` stamp line and the plan's `## Scope` block (contract §11). `MULTI-GROUP` without `override: <owner's words>`, an output/layout-changing phase sharing a gate, or a generator-required group with neither stage 0 nor its generator as the first task (contract §11) → **refuse**: "This plan bundles more than one group (or skips its generator). Split it per the charter, or say `override` to implement it knowingly." Record an override in the plan file. Plans stamped before 2026-09-27 have no Scope line: derive it from the plan's groups and apply the same rule. A light plan's `Adequacy-only` stamp carries the same `Adequacy:` and `Scope:` lines, so this step is identical at both tiers.
- **CONVERGED** (contract §12 Convergence): the `### Deferred findings` rows are Phase 1's first task (a light plan's first commit): each is resolved in code — a map or exclusion entry, an assertion's source expression, a test's census constant — with the assertion or mutation the row names, and the commit body names the row it closes; the design sections contract §12 Convergence names are not edited beyond one `## Revision log` line, `deferred findings resolved in code @ <sha>`.

- **Committed copy** — every edit this skill makes to the plan (the `## Implementation Checklist`, an override record, a `## Revision log` line) is committed in the lead's own slices.

Expand Down
4 changes: 2 additions & 2 deletions .claude/skills/verify-plan/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Flag as warning: any missing item; add it as a Missing Step.

`verification-contract.md` §10–§11:

- **One group** — the plan's `## Scope` block names one non-chore group; chores riding along touch no seam the group touches (grep the chores' files against the group's). A second group, or an output/layout-changing phase sharing a gate with anything, is an error unless `override: <owner's words>` is recorded.
- **One group** — the plan's `## Scope` block names one non-chore group; chores riding along touch no seam the group touches (grep the chores' files against the group's). A second group, or an output/layout-changing phase sharing a gate with anything, is an error without an `Override (scope)` record.
- **Generator first** — if the Defect Class matrix has ≥2 axes × ≥3 values, or the group is a residue (second suffix), stage 0 holds the generator (or the first task does, with the product hook it needs; contract §11), and the hand matrix covers only the axis the generator cannot reach (the plan says which). Missing = error.
- **Filing rule** — the plan names the class trackers it posts cells to and instructs no implementer to `gh issue create`; cells go to the findings ledger and the lead files by class. A Phase 0 that says "file the siblings" one per cell is a warning; correct it inline.
- **Fidelity scope** — every Python-parity cell names its row in `python-fidelity-scope.md`; a DEVIATION-by-default surface without a promotion ruling is an error (the plan is fixing a non-bug).
Expand All @@ -166,7 +166,7 @@ After verification, edit the plan file directly.
<!-- Verified by /verify-plan on YYYY-MM-DD @ <sha> -->
<!-- Verification result: [PASS / PASS WITH CORRECTIONS / NEEDS REVISION / CONVERGED] -->
<!-- Adequacy: [CLASS / CELL / N/A] -->
<!-- Scope: [ONE-GROUP / MULTI-GROUP (override) / N/A] · Generator: [existing / built-first / not-required / MISSING] -->
<!-- Scope: [ONE-GROUP / MULTI-GROUP (`Override (scope)`) / N/A] · Generator: [existing / built-first / not-required / MISSING] -->
```

In `--adequacy` mode all four stamp lines are written: the first reads `<!-- Verified by /verify-plan --adequacy (Adequacy-only: Dimensions 4-design, 6, 7; check_plan_refs clean) on YYYY-MM-DD @ <sha> -->`; the result is `PASS`, `NEEDS REVISION` or `CONVERGED`; `Adequacy:` is Dimension 6's verdict; `Scope:` is copied from the plan's `## Scope` block and `Generator:` row without grading Dimension 9 (a light plan that reads `MULTI-GROUP` or needs a generator is `NEEDS REVISION: promote to full`, §12). The Verification Summary carries only `### Paraphrase`, `### Adequacy`, `### Falsifiability`, `### Design decisions checked` and `### Unchecked Claims`, plus `### Deferred findings` on `CONVERGED`; downstream skills read the stamp as a full one.
Expand Down
Loading
Loading