Skip to content

Commit 8e8ef26

Browse files
paolomozclaude
andcommitted
fix(stardust): replica units write their block contracts at unit end
The blocks-heavy lab candidate built 22 blocks and wrote no contract: the contract step lived only in preserve-direction.md, which C-deliver units do not re-read. The handoff contract's unit-end checks (re-read every session) now carry it next to foundation-freeze and gate-evidence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d200114 commit 8e8ef26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎plugins/stardust/skills/replica/reference/handoff-contract.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Ledger phase strings are NOT named in `../../rollout/SKILL.md` or its scripts (s
8585
**Fan-out discipline (C-deliver, main agent + subagents) — re-read at every session start:**
8686
- **Foundation freeze:** C0 ends with the lifted `:root` moved into the tokens (`preserve-direction.md` § Tokens from the lifted CSS; `design-tokens.mjs check` exit 0 — freeze refuses while `design/tokens` has no `styles/tokens.css`), then `node stardust/scripts/replica/foundation-freeze.mjs freeze` + the checkpoint commit; until C-final nobody edits a frozen file — `styles/`, `fonts/`, `head.html`, `scripts/`, `blocks/header/`, `blocks/footer/` (the script's default set; `--paths` when a project's foundation lives elsewhere). A main-agent edit after fan-out is the recorded failure: one foundation value changed and one body-class rule added under four running clusters cost two coordination messages and 23 minutes of rework in one cluster.
8787
- **Change requests:** a cluster's foundation finding is ONE appended line in `stardust/rollout/foundation-requests.md` — `- <unit> | <what> | <evidence: instrument + numbers> | <templates affected>`; the cluster ships with a scoped override inside its OWN block CSS and does not wait; never a rule on a frozen file. A reskin's `deployed-gate.mjs all` queues its own tokens and header / footer / nav-depth FAILs (`--unit`, `--templates`). The main agent applies the queue ONCE at C-final (row C).
88-
- **Mechanical checks at every unit end:** `foundation-freeze.mjs check` (also at C-final start; exit 1 blocks the unit until the file is reverted (`git checkout -- <file>`) or the change becomes a request line) and `gate-evidence.mjs --unit <the unit's slugs>` (exit 2 names the pages with no gate row — § 1 row 5).
88+
- **Mechanical checks at every unit end:** `foundation-freeze.mjs check` (also at C-final start; exit 1 blocks the unit until the file is reverted (`git checkout -- <file>`) or the change becomes a request line) and `gate-evidence.mjs --unit <the unit's slugs>` (exit 2 names the pages with no gate row — § 1 row 5); with `design/`, every block the unit built has its contract: `design-seed.mjs blocks`, fill `anatomy` and `properties`, then `design-validate.mjs design --new-blocks <the unit's blocks>` exit 0 (`preserve-direction.md` § Contracts for the project's blocks; C0's are header and footer).
8989
- **Foundation first:** lint AND commit `styles.css`, `styles/tokens.css`, `design/`, header/footer CSS and the contract file BEFORE the first CLUSTER subagent spawns (during C0 the foundation subagent is the only agent running); no edit of a frozen file after fan-out (a recorded rename under three running agents cost seven coordination messages and re-reads).
9090
- **Capture state is a promise, not a spec:** the brief carries the archetype's `captureState[].restoreAtDelivery` list (replica `progress.json`) verbatim and the unit implements every entry — autoplay muted loop, rotation interval, marquee speed — before `done`; "poster + paused video" or "static first slide" is never a deliverable (`recreation-procedure.md § Carousels and animated sections`). Phase E's render check and qa's `video-not-playing` row assert playback, `dynamics-check.mjs video-plays` asserts it per parity row.
9191
- **Lint rules in every brief:** lines ≤ 100 chars, CSS custom properties kebab-case; fix a hit with a targeted edit, never a file rewrite; never `--fix` a file another agent is editing.

0 commit comments

Comments
 (0)