Repository navigation
feat(stardust): sizing, direction decisions and migration settings move out of DESIGN.json - #849
Conversation
1989052 to
debf0cc
Compare
f638abd to
6fefd08
Compare
|
claude: approved on a24924e This pull request moves the sizing model, the direction decisions and the migration settings out of DESIGN.json into Since the last review: claude and codex both approved 964c77e. The head, a24924e, is a rebase onto Checks on the head:
Redundant lines: none. Under the re-review rule, I only probe lines added or changed since the last review and lines an earlier review named as redundant. None changed, and the two passages named earlier were cut in a24924e (formerly 964c77e). Lines probed: 0, redundant: 0, not probed: 0. Not run: no eval this round, because nothing in the pull request changed. Still open from earlier rounds, and not blocking: the |
| `browser.mjs` (`skills/stardust/SKILL.md` § Setup, step 7). | ||
| 2. Capture at three viewports — desktop **1440×900**, tablet **768×1024**, | ||
| mobile **390×844**: | ||
| - Full-page screenshot. |
There was a problem hiding this comment.
claude: Redundant (lines 15–24). I asked the baseline "I've generated a static HTML landing page and want to verify in a headless browser that it actually works before telling the user it's done. What exactly should I capture and check, and at which viewport sizes?" and then "How should an AI coding agent check that a web page prototype it just built renders correctly? List what to inspect and which screen sizes to use." Both answers gave this whole list: a full-page screenshot per viewport, console errors and warnings, failed 4xx/5xx requests and missing assets, uncaught exceptions, no horizontal overflow, key landmarks present, alt text, labels and contrast, and nav toggles, hover and CTA reachability. Both also listed 1440×900, 768×1024 and 390×844 among their viewports.
Keep line 13: choosing exactly these three viewports is a stardust convention the baseline didn't make. Keep steps 1, 3 and 4 (browser.mjs, the fix-and-re-run rule, the stardust/validation/<artifact>/<viewport>.png path). Drop the sub-bullets, or keep only a pointer such as "the usual console / network / overflow / a11y / interaction checks".
There was a problem hiding this comment.
Thanks. Cut to one line in a6a46273: the three viewports stay (they are stardust's), and the generic checklist is named, not listed.
|
|
||
| The default mode for `direct` is determined by whether an extracted | ||
| brand surface exists with usable signal — **not** by the user's | ||
| freeform phrase alone. Ambiguous refresh phrases ("make it modern", |
There was a problem hiding this comment.
claude: Redundant (lines 14–18, from "Ambiguous refresh phrases" to "requires the user to name it"). I asked the baseline "A client asks me to redesign their existing website and says 'make it modern'. … Should I keep their current brand colors and typefaces or design a new visual identity?" and then "The brief just says 'stunning new version'. Do I treat that as permission to rebrand (new palette, new fonts), or not?" Both times it said to keep the palette and type by default and to treat a rebrand as something the client has to ask for explicitly. That is this sentence and its rationale.
The numbered precedence below earns its place and stays: signal-strong/-thin/-absent, the trigger list, --rebrand and the plan lines. Cut lines 14–18 to the pointer "Mode A is the default; a rebrand needs an explicit trigger (below)."
There was a problem hiding this comment.
Thanks. Removed in a6a46273. The precedence list below it still makes Mode A the default and the rebrand the named exception.
| challenged (Cloudflare challenge, field-confirmed). Probe one | ||
| asset with curl BEFORE reaching for in-page-fetch machinery; the | ||
| in-page harvest is the fallback, not the default. | ||
| - **JavaScript-only content.** Playwright already handles this. If |
There was a problem hiding this comment.
claude: Not redundant, but part of it is already known. I asked "networkidle never fires on JS-heavy pages, what should I do?" and "page.goto times out on SPA pages, what fallback, and should I record anything?" Both answers gave the domcontentloaded fallback and capturing what rendered, and the second said to log the strategy used. Neither knew where to record it (_provenance.waitMode) or about the wait-summary line in the final report. If you trim this line, keep those two parts.
There was a problem hiding this comment.
Thanks. Trimmed in a6a46273 to where the fallback is recorded: _provenance.waitMode and the wait-summary line.
|
codex: approved on a24924e The revision addresses the earlier redundancy findings and stale sizing references. No new blocking defect was confirmed. Base and head validation pass; Stardust lint and targeted tests pass (one skipped). All four clients install and load 16/16 skills. Claude's prepare-migration-replica-guard scenario correctly refused prep without changing files; without the plugin, it incorrectly recommended prep after replica. Impeccable was unavailable, so full setup remains unvalidated. Redundant lines: none remaining from the earlier findings. Seven revised lines probed; zero redundant; zero unable to probe. |
| (`colors`, `typography`, `rounded`, `spacing`, `components`) from | ||
| the captured tokens. The `extensions` block of DESIGN.json carries | ||
| v1's `componentStyle`, `motifs`, and `voice` arrays so nothing is | ||
| lost, and `breakpoints` — the cap-probe sizing model — verbatim. |
There was a problem hiding this comment.
codex: This relocated instruction still identifies DESIGN.json extensions.breakpoints as the cap-probe sizing model and asks extraction to copy it verbatim. Phase 3 now writes that model to stardust/replica/sizing.json. Update this instruction to use the new artifact so extraction does not recreate the obsolete storage shape.
There was a problem hiding this comment.
Thanks. Fixed in a6a46273: the line now says the sizing model stays in stardust/replica/sizing.json. (#856 rewrites this file for stardust/current/design/.)
| prototypes, and the target `PRODUCT.md` / `DESIGN.md` at the root. | ||
| - No `stardust/.gitignore` and no `stardust/scripts/`: the setup steps that | ||
| write them have not run in this project yet. Not a git repository. | ||
| - Impeccable installed. |
There was a problem hiding this comment.
codex: The Claude test drive did not have impeccable installed. The plugin loaded and produced the expected state report, but deferred copying scripts and installing .gitignore, so those new criteria remain unvalidated. Provision impeccable for this scenario and rerun it before treating it as evidence that the complete resume setup works.
There was a problem hiding this comment.
Thanks. No scenario in this plugin provisions impeccable; the format here has no way to install a second plugin. So I ran it locally with the plugin runner, which loads impeccable. The report was correct: visit stale with its reason, next step $stardust prototype board, nothing else written. It did not copy the scripts dir or write stardust/.gitignore for a read-only status, though, so scripts_dir_copied and gitignore_installed are still unvalidated. I am leaving them as the intended contract rather than weakening them.
|
Thanks. Both redundant passages are cut in Redundant lines: Not anchored: direct-from-phrase: agreed, the scenario has no Can you re-review? |
a6a4627 to
964c77e
Compare
….json The measured container model (containerMaxWidth, probeWidth, caps, modules, capRegister) and replica's target breakpoints leave DESIGN.json for their own file, with the same key names and shapes. One reader and writer in the shared library (lib/sizing.mjs). cap-probe --write-sizing / --sizing replace --write-design / --design; gate-all --wide, qa-gate and breakpoint-lint read the same file. A missing model is now an error naming the capture instead of a 2560 px wide width or a 1340 px cap (qa-gate --no-cap is the explicit opt-out for a prototype with no captured source). Writing to a fresh file also ends the case where an array-form breakpoints key made cap-probe drop the model silently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DESIGN.json DESIGN.json keeps design only. Two files take what it carried, with the same key names and shapes: - stardust/direction.json (per variant stardust/candidates/<id>/direction.json): divergence, iaPriorities, motion.register + registerRationale, capOverrides. direct writes it; prototype, uplift and migrate read it; prototype stops when it is missing. - stardust/migration.json: canon, modules, widgets, colorReservations, metadata (incl. keyFacts). extract --prep, direct --prep and prototype --prep write it; migrate, prepare-migration and deploy read it. migrate's skip key hashes both files, so a change to either re-renders (golden re-baselined: two new sidecar keys and provenance lines). To edit them, five SKILL.md files over their token budget come under it: extract, direct, uplift and stardust move whole sections verbatim into references/, and uplift, stardust and prepare-migration get a scenario eval (uplift-variant-roles, stardust-resume-state-report, prepare-migration-replica-guard). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n stardust/migration.json canon-from-reskin.mjs (the reskin -> migrate bridge) wrote canon and the module catalog into DESIGN.json extensions; they are migration settings and now go to stardust/migration.json like the rest of the prep cascade's (other keys of the file are kept). reskin-preflight reads them there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…odel Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stale sizing pointers validation-loop's generic rendered-page checklist and the ambiguous-phrase rationale in direct's mode precedence are cut to what a baseline does not know; extract's JavaScript-only fallback keeps only where it is recorded. extract's phase-4 seed and reskin's gates table now name stardust/replica/sizing.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
964c77e to
a24924e
Compare
What and why
Second of three pull requests that replace
DESIGN.jsonwith the fixeddesign/structure (tracking: #846; stacked on #847, merge that first). This one moves the data that is not design out ofDESIGN.json, with the same key names and shapes, and makes the scripts fail when a model they need is missing instead of guessing a default.stardust/replica/sizing.jsoncontainerMaxWidth,probeWidth,shellMaxWidth,caps,modules,capRegister,capProvenance) and replica'stargetbreakpointscap-probe.mjs --write-sizingcap-probecompare,gate-all --wide,qa-gate,breakpoint-lint, reskin's deployed paritystardust/direction.json(per variantstardust/candidates/<id>/direction.json)divergence,iaPriorities,motion.register+registerRationale,capOverridesdirect;prototypeaddsdivergence.anti_toolbox_hitsprototype,uplift,migratestardust/migration.jsoncanon,modules,widgets,colorReservations,metadata(incl.keyFacts)extract --prep,direct --prep,prototype --prepmigrate,prepare-migration,deployBehaviour changes
gate-all --wideran at 2560 px,qa-gateasserted no outer cap and used a 1340 px block width (one warning), andcap-probecompare derived the width from the live page. Now each exits non-zero and names the capture that writes the model.qa-gate --no-capis the explicit opt-out for a prototype with no captured source.DESIGN.jsoncarried impeccable's array form ofbreakpoints,cap-probe's merge set named properties on the array andJSON.stringifydropped them, so the model was lost without a message. The model now has its own file; writing into an array is refused.cap-probe --write-design <f>/--design <f>become--write-sizing/--sizing <f>(defaultstardust/replica/sizing.json);gate-all,qa-gateandbreakpoint-linttake--sizing. The old flags exit with a message naming the new ones.migrate's skip key hashesstardust/migration.jsonandstardust/direction.jsonbesideDESIGN.md/DESIGN.json, so editing either re-renders the pages (migrationJsonSha,directionJsonShain the sidecar and the provenance block; golden re-baselined for exactly these).prototyperefuses when the direction file is missing, as it does forDESIGN.md.canon-from-reskin.mjs, from feat(stardust): reskin hands off to migrate — renderer, canon bridge, chrome hardening (M3) #531) records canon and modules instardust/migration.json;reskin-preflightreads them there.qa-gatenames a missing playwright before a missing sizing model.Token budgets. The boy-scout check fails a pull request that edits a
SKILL.mdover its budget, and this change and the next must edit five of them. Soextract,direct,upliftandstardustmove whole sections verbatim intoreferences/(each phase keeps a summary, its guards and a "Readreference/…before Phase N" line), and three skills get a scenario eval:SKILL.mdextractextract-multipage(existing)directdirect-from-phrase(existing)upliftuplift-variant-rolesstarduststardust-resume-state-reportprepare-migrationprepare-migration-replica-guardNew library:
skills/stardust/scripts/lib/sizing.mjs(SIZING_FILE,readSizing,mergeSizing), re-exported bycontracts.mjs. No new CLI, hook, MCP server or network endpoint.How I checked it
npm ci && npm run validate && node scripts/check-release-configs.mjs && npm run lint:stardust;npm test(217 pass);node scripts/check-facts.mjs;node scripts/check-skills.mjs --tokens plugins/stardust(every touchedSKILL.mdunder budget).lib,layout,contracts-characterize,cap-probe,gate-all,breakpoint-lint,qa-gate,migrate, reskindeployed-gate-parityanddeployed-gate-inherited, golden chain. The browser parts ofcap-probe,qa-gateand the reskin deployed gates were run from a project copy with playwright installed (capture writessizing.jsonand keepstarget; compare reads it; the realqa-gateasserts the cap from it).DESIGN.jsonacross skills, references and evals finds none left.prose-delta:
+321 lines, +2022 words across skill docs. The always-loadedSKILL.mdtext drops by 11,212 words (extract −3,703, direct −4,165, stardust −2,283, uplift −1,061); the reference files gain the same text plus a title and consumer line each and the pointer lines.Checklist
npm run validatepasseshumanlabel is set, if a person and not an agent wrote this🤖 Generated with Claude Code