Skip to content
Open
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
48963e5
feat(stardust): replica --extend / --extend-next delivers more pages …
catalan-adobe Nov 24, 2026
96ad460
fix(stardust): extend pass opens as documented, fixes its roster, sib…
catalan-adobe Nov 24, 2026
db75ad2
fix(stardust): extend pass asks before republishing, fixes entry, ros…
catalan-adobe Nov 24, 2026
e55e68d
fix(stardust): keep normal extract runs unchanged, refuse extending a…
catalan-adobe Nov 25, 2026
09b6b7c
fix(stardust): extend pass keeps crawl history in the log, reserves d…
catalan-adobe Nov 25, 2026
14dbdf9
fix(stardust): source identity for incremental extract, destination i…
catalan-adobe Nov 25, 2026
1d61c4a
fix(stardust): delivery-roster selection moves to replica's extend-ro…
catalan-adobe Nov 25, 2026
4e861f8
Merge origin/main into feat/stardust-replica-extend
catalan-adobe Nov 25, 2026
c904a5b
fix(stardust): extend pass defers C-final to handoff-contract, keeps …
catalan-adobe Nov 25, 2026
b443dc7
fix(stardust): extend pass resumes from a checkpoint clone; older-pag…
catalan-adobe Nov 25, 2026
e7ad3a8
fix(stardust): relinks attributed by the localizer's own receipts; pu…
catalan-adobe Nov 25, 2026
543af67
fix(stardust): one home for documents and list entries; extend pass p…
catalan-adobe Nov 25, 2026
6e23815
fix(stardust): deploy retries keep main's semantics; reserve ledger-l…
catalan-adobe Nov 25, 2026
1878d2b
fix(stardust): adopt proves live from the source's own Last-Modified;…
catalan-adobe Nov 25, 2026
4d8b183
fix(stardust): no adoption without revision proof; owner-approved fro…
catalan-adobe Nov 25, 2026
3f2bd07
feat(stardust): da-library --add extends a published library; the ext…
catalan-adobe Nov 25, 2026
c3fd879
refactor(stardust): extend pass leaves older documents untouched
catalan-adobe Nov 25, 2026
f42958d
fix(stardust): extend pass guard fails closed while a pass is open
catalan-adobe Nov 25, 2026
17af82d
docs(stardust): extend pass checks content against the opening commit…
catalan-adobe Nov 25, 2026
e789a52
fix(stardust): extend pass guard names its pass; opening snapshot res…
catalan-adobe Nov 26, 2026
58c996e
Merge origin/main into feat/stardust-replica-extend-core
catalan-adobe Nov 26, 2026
ae058cc
docs(stardust): extend pass says how to name a file for extend-roster…
catalan-adobe Nov 26, 2026
b7966b0
docs(stardust): extend pass states its contract for a caller; fixture…
catalan-adobe Nov 26, 2026
327da13
docs(stardust): extend pass states its scope, its pilot test and the …
catalan-adobe Nov 26, 2026
22169d8
Merge origin/main into feat/stardust-replica-extend-core
catalan-adobe Nov 27, 2026
e537918
docs(stardust): scripts index keeps the extend pass to one line, unde…
catalan-adobe Nov 27, 2026
8e98001
fix(stardust): extend pass refuses a colliding also.paths entry and t…
catalan-adobe Nov 27, 2026
b2ce006
Merge origin/main into feat/stardust-replica-extend-core
catalan-adobe Nov 27, 2026
627b238
fix(stardust): extend pass refuses a pass opened without a track, and…
catalan-adobe Nov 27, 2026
1a8dde1
Merge origin/main into feat/stardust-replica-extend-core
catalan-adobe Nov 30, 2026
1f97976
fix(stardust): extend pass guard fails closed on --content and link map
catalan-adobe Nov 30, 2026
096771b
Merge origin/main into feat/stardust-replica-extend-core
catalan-adobe Nov 30, 2026
1a6fe32
Merge origin/main into feat/stardust-replica-extend-core
catalan-adobe Dec 1, 2026
a899ade
fix(stardust): extend pass opens after a first run that applied a req…
catalan-adobe Dec 1, 2026
0cae80a
fix(stardust): extend-pass open writes nothing when it cannot open
catalan-adobe Dec 1, 2026
2c0e8c8
fix(stardust): extend-pass open reads the content tree before it free…
catalan-adobe Dec 1, 2026
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
15 changes: 9 additions & 6 deletions plugins/stardust/evals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ v2 evals without modification.
| `replica-round-cap/` | Entry point (`replica`) | A page resumed with its three counted prototype rounds spent: no round past the cap, the way forward recorded with `rounds.mjs decide`, the residual logged or the prototype redone, an honest report. |
| `replica-frozen-reference/` | Entry point (`replica`) | The first round of a page that repaints a band on every load (frozen reference, noise floor, masked rows) and of a variant that changes height on every load (exit 5: no verdict, not a counted round, no hand-made reference). |
| `replica-measure-first/` | Entry point (`replica`) | One small page recreated from scratch: `source-spec.mjs capture` at both widths before any CSS, `compare` exit 0 before the first gate round, clean re-authoring, content verbatim. |
| `replica-extend/` | Entry point (`replica`) | A delivered one-page run extended with `--extend-next 1`: pass `x1` opened on the ledger with its track, the spec and the foundation frozen, the roster selected with `--skip-captured --select-only` before any capture, the delivered page never captured again, the new page's type routed to sibling tier or to Phases 3–4. |
| `replica-extend-noop/` | Entry point (`replica`) | The same delivered project resumed without `--extend*`: the ledger read, the state report, nothing written and nothing re-run, the extend commands named as the way to add pages. |
| `replica-reference-rendering/` | Entry point (`replica`) | The first round of a scroll-jacked page whose stitched capture stalls and which links a static page mode: the page record and the reference stay the inventory URL, no substitution the owner did not accept, the pixel probe recorded as gate-blocked, the owner told how a pixel number could honestly be had. |
| `rollout-gated-archetype/` | Entry point (`rollout`) | A replica-flow site of six migrated pages with no AEM target: inventory, block dedup and plan from the scripts; a page type whose archetype is over the bar with no residual entry is blocked with its gate command, one with a documented residual ships; default content is not planned as a block; nothing is reported as delivered. |
| `reskin-content-fidelity/` | Entry point (`reskin`) | Donor via `--design-source` + content-model capture with scope guard + mapping-brief contract (≥80% mapped) + programmatic render + dual content/design-adoption gates. |
Expand Down Expand Up @@ -174,16 +176,17 @@ other colours, which is what a frozen reference measures as its noise floor
and masks. Everything else is byte-stable. The images are SVG files written
for the fixture and the fonts are system fonts.

The five `replica-*` scenarios target it. Each has a `setup.sh` that calls
The seven `replica-*` scenarios target it. Each has a `setup.sh` that calls
`fixture-site/start.sh`: it starts the server detached from the checkout
(the site's files are never copied into the work directory), reuses one that
already answers as the fixture, and the server stops by itself after an hour
without a request. `replica-round-cap`, `replica-frozen-reference`,
`replica-measure-first` and `replica-reference-rendering` also have a `fixture/` (the project a resumed run
starts from, recorded against the fixture site; provenance in each
`fixture-notes.md`) and a `scenario.json` that installs it, so
`scripts/skill-eval.mjs --scenario` and `runner/run.mjs` start from the same
files. Their `task.md` holds the setup and the prompt only: `skill-eval.mjs`
`replica-measure-first`, `replica-reference-rendering` and `replica-extend` also have a `fixture/` (the
project a resumed run starts from, recorded against the fixture site;
provenance in each `fixture-notes.md`) and a `scenario.json` that installs
it, so `scripts/skill-eval.mjs --scenario` and `runner/run.mjs` start from
the same files; `replica-extend-noop`'s `setup.sh` copies `replica-extend`'s
fixture instead. Their `task.md` holds the setup and the prompt only: `skill-eval.mjs`
gives the whole file to the agent, so the expected behaviour is in
`criteria.json` and `fixture-notes.md`.

Expand Down
1 change: 1 addition & 0 deletions plugins/stardust/evals/lint/libraries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const LIBRARIES = {
'deploy/scripts/content-inventory.mjs': 'library: role-classified inventory + diff, imported by block-roundtrip and section-schema; no CLI',
'deploy/scripts/css-as-text.mjs': 'library: is this authored text CSS? (D15 / #134), imported by davids-model-lint and ew-editability-probe; no CLI',
'deploy/scripts/eds-path.mjs': 'library: the delivered-path contract (deliveredUrl, daPath, pathKey) imported by spec, rollout and deploy; no CLI',
'deploy/scripts/publish-guard.mjs': 'library: the extend pass\'s publish guard, read by deploy-batch and localize-links; no CLI',
'deploy/scripts/file-lock.mjs': 'library: cross-process lock + atomic merge for the shared deploy ledgers; no CLI',
'deploy/scripts/diff-profiles.mjs': 'library: stack profiles (eds|generic) for the inventory classifiers; no CLI',
'diff/scripts/content-inventory.mjs': 'library: the diff skill\'s copy of the inventory classifier, imported by content-diff; no CLI',
Expand Down
31 changes: 31 additions & 0 deletions plugins/stardust/evals/replica-extend-noop/criteria.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"context": "replica — a resumed session after `handoff end`, without --extend or --extend-next: the rule that protects a delivered project from a re-run. The run is a no-op that reports. Task and setup in task.md; each item is judged pass/fail and weighted by max_score. Judge from the transcript and the work directory.",
"type": "weighted_checklist",
"checklist": [
{
"name": "ledger_read",
"max_score": 15,
"description": "The run reads where the run stands from the ledger (`ledger.mjs last replica`, `tail`, or the state report built from it) and finds `handoff end` as the last replica line, before deciding anything."
},
{
"name": "nothing_written",
"max_score": 40,
"description": "Nothing of the project changes: `git status` shows no modified or new file outside `stardust/scripts/` (the scripts setup copied, and a refreshed copy of them, are allowed) and outside `stardust/.work/`; stardust/status.jsonl is byte-identical (no `start`, `end`, `blocked` or `extend` line); no stardust/replica/extend/ directory; stardust/current/ unchanged (no capture, no synthesis); no promotion; every progress.json unchanged; state.json unchanged (no flow stamp); no dependency installed — no package.json, package-lock.json or node_modules appears, because the delivered-run check comes before Setup's installs and copies."
},
{
"name": "no_rerun",
"max_score": 20,
"description": "No phase is entered again: no crawl or extract of the site (the fixture site's load counter is not the evidence; the transcript and the work directory are), no recreation, no migrate render, no rollout or deploy command. Reporting the project as complete is right; re-running Phase 1 is a fail."
},
{
"name": "state_reported",
"max_score": 15,
"description": "The answer is the state report: the flow (replica), one page delivered and live, the last gate numbers or the handoff line, and that the run is complete."
},
{
"name": "extend_named",
"max_score": 10,
"description": "As the next command for more pages, the report names the extend pass — `$stardust replica <URL> --extend <urls>` or `--extend-next <n>` — rather than a re-run."
}
]
}
14 changes: 14 additions & 0 deletions plugins/stardust/evals/replica-extend-noop/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# The delivered project of ../replica-extend/fixture/ (one page delivered, the ledger closed with handoff end),
# copied into the work directory and committed as one commit, as a delivered project is; then the fixture site on
# localhost and the plugin scripts as Setup step 3 leaves them — the site answers, so a run that wrongly crawls it
# leaves its trace in the work directory.
set -euo pipefail
HERE="$(cd "$(dirname "$0")" && pwd)"
if [ ! -f stardust/state.json ]; then cp -R "$HERE/../replica-extend/fixture/." .; fi
if [ ! -d .git ]; then
git init -q
git add -A
git -c user.name=fixture -c user.email=fixture@example.invalid commit -qm "delivered replica run (fixture)"
fi
exec bash "$HERE/../fixture-site/start.sh" --scripts
21 changes: 21 additions & 0 deletions plugins/stardust/evals/replica-extend-noop/task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Replica: a session resumed on a delivered site

## Setup

A stardust `replica` run (same-design migration) of a small store site that
delivered one page, its home page, and ended. The site is served on this
machine: `http://localhost:8780/`. `setup.sh` puts the project in the work
directory as one git commit.

- `stardust/state.json`: `flow: replica`, hands-off, one page `index` in
status `migrated`.
- `stardust/status.jsonl`: the run's ledger; its last replica line is
`handoff end`.
- `stardust/current/`, the promoted spec, the progress files of replica,
migrate and rollout (every unit `done`), the foundation manifest.
- `stardust/scripts/<skill>/`: the plugin's scripts, copied as the replica
skill's Setup has it.

## User prompt

"Continue the stardust replica run in this project."
36 changes: 36 additions & 0 deletions plugins/stardust/evals/replica-extend/criteria.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"context": "replica — the extend pass. A delivered one-page run (home) is extended with `--extend-next 1`; the next page of the fixture site is /visit/. The run stops before Phases 3 and 5 by the prompt. Task and setup in task.md; each item is judged pass/fail and weighted by max_score. Judge from the transcript and the work directory.",
"type": "weighted_checklist",
"checklist": [
{
"name": "pass_opened",
"max_score": 15,
"description": "The run reads the ledger's last replica line (`ledger.mjs last replica` or `tail`) and opens pass x1: stardust/status.jsonl gains exactly one `stardust:replica` `extend` `start` line with `track: x1`, written before any crawl, and every line the run adds after it carries `track: x1`. The run does not re-run the first pass from Phase 1, and no `extend start` attempt failed for a --detail value that starts with `--` without being corrected."
},
{
"name": "spec_frozen",
"max_score": 20,
"description": "stardust/replica/extend/x1/ holds a copy of the spec files that exist (root and stardust/current/ PRODUCT.md, DESIGN.md, DESIGN.json), a foundation-freeze manifest over them, request.txt and base.txt (the opening commit, also in the `extend start` detail), opening.paths and content-freeze.json (a sha256 manifest of the documents under content/, both written before the `extend start` line), and no copy of content/ under x1/; content/index.html is byte-identical to the fixture; the opening left the delivered foundation as it is: stardust/rollout/foundation-freeze.json keeps the fixture's paths (styles/, head.html, blocks/header/) and file hashes, and no foundation file changed. At the end the six spec files and stardust/direction.md are byte-identical to the fixture: no re-promotion, no extract synthesis (Phases 3–5 of extract) over the new page, no module added to DESIGN.json."
},
{
"name": "roster_before_capture",
"max_score": 20,
"description": "The pass's roster is written before the page is captured: stardust/replica/extend/x1/urls.txt holds exactly http://localhost:8780/visit/, chosen in two steps — `stardust/scripts/extract/crawl.mjs --max 0 --first-run-order --skip-failed --skip-captured stardust/state.json --select-only` lists the source candidates (the first run's order comes from the crawl log, which records a user-named cap — link-first; no order taken from memory or a numeric cap), then `stardust/scripts/replica/extend-roster.mjs select --candidates … --max 1 --out stardust/replica/extend/x1/urls.txt --reserved-out stardust/replica/extend/x1/reserved.paths --opening stardust/replica/extend/x1/opening.paths` keeps the next page whose destination is new; opening.paths, written at the opening, lists `/index.html`, and reserved.paths holds `/` (the delivered home). A roster chosen by reading the site's links by hand, or written after the capture, fails."
},
{
"name": "no_recapture",
"max_score": 15,
"description": "The delivered page is not captured again: stardust/current/pages/index.json and index.html are byte-identical to the fixture, the `index` row of state.json keeps status `migrated` and `stale: false`. The new page is captured live (stardust/current/pages/visit.json from a Playwright render) with `--skip-captured`, and state.json gains one row for it, status `extracted`, with a page type."
},
{
"name": "type_split",
"max_score": 20,
"description": "stardust/replica/extend/x1/slugs.txt names the new page's slug. The report states its type and decides from stardust/replica/progress.json: a type with an archetype there (only `landing`, archetype `index`) goes to Phase 5 at sibling tier; any other type needs Phases 3–4 for that type and its own C-archetype unit. The decision matches the type the run recorded in state.json, and the next steps it names follow it (for a sibling: advance to `directed` and render with `--archetype`; for a new type: recreate and gate before its cluster)."
},
{
"name": "scope_kept",
"max_score": 10,
"description": "Nothing past the decision: no prototype written, no `migrate.mjs render`, no rollout or deploy command, no `handoff` or `extend end` line, and every `done` unit of the three progress.json files unchanged."
}
]
}
54 changes: 54 additions & 0 deletions plugins/stardust/evals/replica-extend/fixture-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Fixture provenance and known limitations

`fixture/` is a replica project after `replica handoff end` on the fixture site
(`../fixture-site/`) with one page delivered, its home page. The capture
`stardust/current/pages/index.json` and `index.html` (and
`assets/favicon.svg`) come from a run of `crawl.mjs --url
http://localhost:8780/ --pages / --max 1 --dynamics`; the full-page screenshot
the record names is not included (180 KB, not read by the scenario). Everything
else — state, ledger, spec, progress files, the foundation and its manifest —
is written by hand in the shapes the skills document (the rollout coverage
`stardust/rollout/coverage/pages.json` holds the home row, verified, with the
`sourceHash` of its migrated file). `stardust/migrated/index.html` and its
sidecar `_meta.json` come from `migrate.mjs render index` on the fixture's
prototype: `inventory.mjs` keeps a delivered row only while its migrated file
is in the checkout. `setup.sh` makes the
work directory a git repository of one commit, as a delivered project is; the first pass's
`_crawl-log.json` records `discovery.capSource: "--cap"` (a user-named cap of
1), so the next page is chosen link-first. No delivery target exists.

What the documented commands do on it, run from a copy after `setup.sh` with
Playwright installed:

- `ledger.mjs last replica` → the `handoff end` line.
`stardust/scripts/replica/extend-pass.mjs open --extend-next 1` → `opened
x1: stardust/replica/extend/x1`, exit 0. The delivered foundation matches
its manifest, so the manifest is left as it is. The pass directory holds
the opening snapshot (`opening.paths` with `/index.html`, and
`content-freeze.json` over 1 file), `request.txt`, `base.txt`, the spec
copy and `spec-freeze.json` over 6 files. The ledger gains the `extend
start` line of track `x1`.
- `content/index.html` is the delivered home document. The selection below
records its destination `/` in `reserved.paths`: no output of the pass may
take it.
- `stardust/scripts/extract/crawl.mjs --url http://localhost:8780 --max 0
--first-run-order --skip-failed --skip-captured stardust/state.json
--select-only` prints `--first-run-order: link-first (capSource --cap, …)`
on stderr and `http://localhost:8780/visit/` on stdout, and writes
nothing; `stardust/scripts/replica/extend-roster.mjs select --candidates
<that list> --max 1 --out stardust/replica/extend/x1/urls.txt
--reserved-out stardust/replica/extend/x1/reserved.paths --opening
stardust/replica/extend/x1/opening.paths` keeps it
(home is captured and delivered, no content document holds `/visit`).
- the same crawler with `--pages http://localhost:8780/visit/ --dynamics
--skip-captured stardust/state.json` captures `visit` only;
`index.json` and `index.html` are unchanged and the spec check exits 0. The
crawl keeps the first pass's log as `runs[0]` (its `capSource --cap`
included) and appends its own run, so a later `--first-run-order` still
reads link-first.

The visit page has a map, opening hours and an address: a run types it
`static` (or `unique`), which has no archetype in `replica/progress.json`, so
the expected decision is Phases 3–4 for that type. A run that types it
`landing` passes `type_split` only if it then routes it to the sibling tier of
`index` consistently.
34 changes: 34 additions & 0 deletions plugins/stardust/evals/replica-extend/fixture/DESIGN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"_provenance": {
"writtenBy": "stardust:extract",
"writtenAt": "2026-11-21T09:05:00Z",
"stardustVersion": "0.46.7"
},
"colors": {
"ink": "#1f2a24",
"paper": "#f6f1e7",
"accent": "#b5532f"
},
"extensions": {
"modules": [
{
"id": "hero",
"status": "confirmed",
"pages": [
"index"
]
},
{
"id": "shelf-cards",
"status": "confirmed",
"pages": [
"index"
]
}
],
"breakpoints": {
"contentMax": 1200,
"probeWidth": 1440
}
}
}
13 changes: 13 additions & 0 deletions plugins/stardust/evals/replica-extend/fixture/DESIGN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- stardust:provenance writtenBy=stardust:extract writtenAt=2026-11-21T09:05:00Z -->
---
colors:
ink: "#1f2a24"
paper: "#f6f1e7"
accent: "#b5532f"
typography:
body: { family: "system-ui", size: "17px" }
---

# Design

Captured from the live home page: warm paper ground, dark ink, one terracotta accent.
16 changes: 16 additions & 0 deletions plugins/stardust/evals/replica-extend/fixture/PRODUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- stardust:provenance writtenBy=stardust:extract writtenAt=2026-11-21T09:05:00Z -->
# Product

<!-- impeccable:product-schema 1 -->

## Platform

web

## Product Purpose

A small shop for mugs, baskets and lamps that are made to be repaired.

## Brand Commitments

Register: brand. Plain, warm, repair-minded.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
header nav { display: flex; gap: 24px; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<body>
<header></header>
<main>
<div>
<div class="hero">
<div><div><h1>Everyday goods, made to last</h1></div></div>
</div>
</div>
</main>
<footer></footer>
</body>
2 changes: 2 additions & 0 deletions plugins/stardust/evals/replica-extend/fixture/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="/styles/styles.css"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.work/
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"_provenance": {
"writtenBy": "stardust:extract",
"writtenAt": "2026-11-21T09:05:00Z",
"stardustVersion": "0.46.7"
},
"colors": {
"ink": "#1f2a24",
"paper": "#f6f1e7",
"accent": "#b5532f"
},
"extensions": {
"modules": [
{
"id": "hero",
"status": "confirmed",
"pages": [
"index"
]
},
{
"id": "shelf-cards",
"status": "confirmed",
"pages": [
"index"
]
}
],
"breakpoints": {
"contentMax": 1200,
"probeWidth": 1440
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- stardust:provenance writtenBy=stardust:extract writtenAt=2026-11-21T09:05:00Z -->
---
colors:
ink: "#1f2a24"
paper: "#f6f1e7"
accent: "#b5532f"
typography:
body: { family: "system-ui", size: "17px" }
---

# Design

Captured from the live home page: warm paper ground, dark ink, one terracotta accent.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- stardust:provenance writtenBy=stardust:extract writtenAt=2026-11-21T09:05:00Z -->
# Product

<!-- impeccable:product-schema 1 -->

## Platform

web

## Product Purpose

A small shop for mugs, baskets and lamps that are made to be repaired.

## Brand Commitments

Register: brand. Plain, warm, repair-minded.
Loading
Loading