Repository navigation
feat(prototype): add levels to explore-directions - #16069
Conversation
A run takes its level (sketch, standard, full, or one a repository adds) from --level, then from the request, then from the plugin's config layers, and prints one line naming the level and the layer that set it, such as "level: full (prompt)". The shipped levels are data in reference/levels.default.yaml; the keys are defined in schemas/prototype.schema.json and described in reference/config.md. lib/prototype-settings.mjs resolves them through the plugin's copy of the config cascade, checking level against the resolved levels map in a second pass so the cascade's own invalid-value rule applies. standard is the run SKILL.md already describes. Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
The /design canvas offer stays with the medium resolver; a level sets only the review-mode and real-stack offers. Co-authored-by: Claude Opus 5.5 <[email protected]>
…rom host git CI runs a plugin's Node suite only through a sibling .test.sh, and the suite's git and CLI children now read no host git config. Step 1 also names screens among what a level sets. Co-authored-by: Claude Opus 5.5 <[email protected]>
The hint drops [--unattended], which the body documents in full under Variables and the Arguments line now gives in its full form, so vary, combine and controls keep their own slots within the 100-character budget. The ed-level-config-default scaffold commits its team file on main, as the other repository scaffolds do. Co-authored-by: Claude Opus 5.5 <[email protected]>
Pre-registration: before/after eval of
|
Result: before/after eval of explore-directions levels (picker slice S5)Run under the pre-registration. Arms: before Verdict: no loss and non-inferior in the loss set, but an after-only defect in both new cases, and the whole run was made with Validity and exclusions (
Two split judge votes, both in the after arm, run 3: Loss set (a run passes at a score of 0.8 or above; all 6 runs counted in each arm)
After-only set: defect in both cases
What the loss set does and does not show
Next. Cost (list-price estimate from the result files): 19.34 USD before, 20.35 USD after, 4.47 USD after-only; 44.16 USD. |
… run The run prints level: standard (default; resolver unavailable: <reason>) and never reads a settings file by hand to guess a level or its layer. Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Tracked as #16110 (the validity gate passes runs with a missing interpreter). The round-1 result above stands as posted, with its stated limit; the second registration runs with a working |
Pre-registration, round 2: before/after eval of
|
Result, round 2: before/after eval of explore-directions levels (picker slice S5)Run under the round-2 pre-registration. Arms: before Verdict: no loss, non-inferior at margin 0.05, no after-only defect. Order and start times (EST). loss-before 10:27 PM 2026-11-13; loss-after 11:43 PM; after-only 12:58 AM 2026-11-14. One at a time. Two deviations from the registration, both about where the runs ran, neither about scoring
Validity and exclusions (written down before any score was read)
Loss set (a run passes at a score of 0.8 or above; counted runs only)
After-only set
Every grader passed in every run: the report line, the resolver call and the plan shape. With a working resolver both level cases do what round 1 could not show. What this does not show
Cost (list-price estimate from the result files): 20.02 USD before, 20.50 USD after, 4.22 USD after-only; 44.74 USD. With round 1, 88.90 USD for this PR's evals. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Lane run report
Failed GitHub API calls
|
Lane-Activity: pr-refine/fix-docs
Lane run report
Failed GitHub API calls
|
The docs lane turned the three-row skill table into bullets and left each bullet ending in " |". Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
claude-security-review reviewed Security review: PR #16069, incremental from
|
|
claude-review reviewed Code review (incremental, blocking only): 925eba5..8049676This review covers only the changes made since What changed, and what I checked
Verification. The judge calibration (9/9) and the test runs come from the owner's reply and are unverified: this review did not run them. Embedded text. The settled-threads and prior-findings files contain no instructions aimed at this lane. Spend. The new eval case runs 3 times per arm and draws on prepaid eval credits. This is not a hold. Verifier dropped 0 of 0 candidates. |
…e user option
A request selects a level only when its words ask for a level or a size
of run; words describing the screen, such as the user's full name or a
quick-add form, never do. The shipped phrases are now phrases that only
mean a size of run ("the full package", "a quick sketch"), and a test
keeps a bare word out of them. The level option goes into the resolver
command only when it is a well-formed level name; anything else goes in
as an empty value, so a quote in it cannot break the command.
Adds the after-only case ed-level-content-word-not-a-level.
Co-authored-by: Claude Opus 5.5 <[email protected]>
Pre-registration, round 3: before/after eval of
|
Addendum: a second reading with no run excluded for a denied callPosted before any score of this registration has been read. It only tightens: nothing in it can turn a LOSS or a no-verdict under the posted rules into a pass. Why. With a working What is added.
What this does not fix. A session whose check script was refused may then behave differently from one whose script ran, so the second reading has its own distortion. Neither reading is a measurement of an unrestricted session; the two together bound the effect of the exclusion. |
Addendum: two evals of this session may run at the same timePosted before any score of this registration has been read. It changes no rule about what counts, what passes or what is a loss. What changes. The registration said this session's evals run one at a time. The desk's rule now allows two at once (1-minute load under 24 and at least 16 GB available before each launch), so from about 2:40 AM EST 2026-11-14 a second eval of this session runs beside the first, each under its own lock. The evals in the queue are PR 16069 round 3, PR 16088 and the PR 15868 re-measure. Both arms of every case still run on the one machine. What it can do to a comparison. The arms of one pair may not have the same neighbour: PR 16069's loss-before ran alone for its first 37 minutes, and its loss-after will run with a neighbour throughout. A loaded machine can only add timeouts or slow tool calls. A timed-out run is excluded under the posted rules, and the minimum-counted and relaunch rules stand, so the overlap can cost a verdict but cannot turn a loss into a pass by any rule change. What the result states. Each command's start and end time, the 1-minute load and available memory at its launch, and which other command ran beside it. |
Result, round 3: before/after eval of explore-directions levels (picker slice S5)Run under the round-3 pre-registration and its two addenda (second reading, two evals at once), both posted before any score was read. Arms: before Verdict: no loss in either reading, non-inferior at margin 0.05, no after-only defect. Order, times (EST, 2026-11-14) and neighbours
Validity and exclusions (written down before any score was read)
Loss set, registered reading (a run passes at 0.8 or above; counted runs only)
Loss set, second reading (no run excluded for a denied call)
After-only set
Every grader passed in every run, and no run held a denied call. What this does not show
Cost (list-price estimate from the result files): 23.19 USD before, 20.95 USD after, 6.09 USD after-only; 50.23 USD. With rounds 1 and 2, 139.13 USD for this PR's evals. |
Post-merge mutation testingKilled 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
No related issue: slice S5 of the prototype feedback-picker plan
Summary
/prototype:explore-directionsnow takes a level:sketch,standard(the default, today's run),full, or one a repository adds. A run takes it from--level <name>, then from a request that asks for a size of run ("the full package", "a quick sketch"; words describing the screen never select one), then from the plugin's config layers, then the default. It prints one line naming the level and the layer that set it, such aslevel: full (prompt)orlevel: standard (default). In this slice a level sets size and scope: variants, screens, states, handover screenshots, and the review-mode and real-stack offers. Controls and the feedback harness are left to later slices./prototype:pressure-testdoes not read the key yet (owner answer Q2 a).Fix
plugins/prototype/reference/levels.default.yaml, which the cascade reads as its default layer.levelandlevels, are defined once inplugins/prototype/schemas/prototype.schema.jsonand described once inplugins/prototype/reference/config.md. README "Configuration" and the skill point there.plugins/prototype/lib/prototype-settings.mjsresolves through the plugin's existingconfig-cascade.mjscopy, in two passes:levels;levelwith the schema'senumset to the names of the complete resolved levels, so the cascade's own invalid-value rule drops a badlevellayer.levelis checked against an open map, andlib/config-cascade.mjsis unchanged.plugin.jsongainsuserConfig.level, with nodefault, so an unset option reads as unset rather than as the userConfig layer.skills/explore-directions/reference/levels.mdholds the behaviour: the command, the prompt phrases (read from the data), and how each dimension applies. It never restates the table. SKILL.md gets the argument and a step-1 pointer.ed-level-full-package,ed-level-config-defaultanded-level-content-word-not-a-level, are plan-only and sandbox-safe.reference/levels.mdpasses--optiononly when the value is lowercase letters, digits and hyphens (the resolver's name pattern), else--option '', so a quote in the user option cannot break the resolver command.prototyperow in the config-cascade Implementers table, with the generated glance row.Reused, and what is new
Reused:
plugins/prototype/lib/config-cascade.mjs(generated fromlib/config-cascade.mjs,scripts/shared-copies.txt:604):resolve(), both passes. The invalid-value drop islib/config-cascade.mjs:482-489, the enum check:159, and the per-key branch merge forlevels:151-152and:180-199.plugins/prototype/lib/yaml-subset.mjs(shared-copies.txt:608) parses the data file.lib/resolve-convention-home.sh, newly vendored into prototype through the sync gate (shared-copies.txt:612, one line). The exit-code mapping copiesplugins/corrections/scripts/codify-settings.mjs:47-55.plugins/prototype/lib/view-settings.mjs:287-309andskills/explore-directions/reference/medium.md:11-22.ed-plan-caps-at-five's, as other cases already copy them.New:
reference/config.mdandreference/levels.md.Not written:
levels.mdandconfig.mdpoint at the data);lib/config-cascade.mjsor tocontext/control-panel.md.Decisions (non-obvious)
levelsis a branch, merged per dimension, and both file layers may set it. The cascade treats ateamOnlypath as one leaf (config-cascade.mjs:151-152), so a team-onlylevelswould let a file addingdesign-systemwipe out the shipped three. That is the wholesale replacement the contract forbids. A file that setslevels.full.variantschanges only that value.variants,screens,statesandevidence. A level missing one is named in a notice and is not a level, so alevelnaming it is invalid and its layer drops. A level name must match^[a-z][a-z0-9-]{0,31}$; the schema states it withpropertyNamesfor CI, and the resolver enforces it at run time.$refto one$defs/level. The resolver inlines local$defsrefs before handing the schema to the cascade, whose schema subset has no$ref(config-cascade.mjs:19-21).--argument(from--level) beats--prompt, and both beat every file. A name that is not a complete level is ignored with a notice.standard: controls: everythingfield could also lead a run to build a panel on the default path.standardequals today's SKILL.md. Its offers includereal-stack, because SKILL.md "When the real stack earns its cost" already suggests the real stack at any level. Its evidence isper-state, because step 4 already captures one screenshot per state./designcanvas offer. It stays with the medium resolver, and the step-1 sentence names the two offers a level sets.view-settings.mjs:36does for its own concern.Removed or replaced lines (
git diff -U0 b285a62f97 HEAD, the main last merged in; SKILL.md is unchanged since round 2)plugins/prototype/skills/explore-directions/SKILL.md:argument-hint: "[vary [<variant>]|combine [<base>]|controls [<variant>]] [--unattended] [--medium <value>] [scope]"argument-hint: "[vary [<variant>]|combine [<base>]|controls [<variant>]] [--medium <value>] [--level <name>] [scope]"**Arguments.** `[vary [<variant>]|combine [<base>]|controls [<variant>]] [--unattended] [--medium <value>] [scope]`. e.g.,**Arguments.** `[vary [<variant>]|combine [<base>]|controls [<variant>]] [--medium <value>] [--level <name>] [scope]`, in full `[vary [<variant>]|combine [<base>]|controls [<variant>]] [--unattended] [--medium <value>] [--level <name>] [scope]`. e.g.,... `--medium <value>`: [reference/medium.md](reference/medium.md), whose `<plugin-root>` is `${CLAUDE_PLUGIN_ROOT}`.`--level <name>`: [reference/levels.md](reference/levels.md).Full process: plan, draft 3 variants, switcher, ...Full process: plan, draft the level's variants (3 by default), switcher, ...every listed state. For a single screen the count is **3 variants** unless the user asks for/another number or the design space is genuinely wide, and never more than 5: past five, newevery listed state. For a single screen the count is **3 variants** unless the level or the user/sets another number or the design space is genuinely wide, and never more than 5: past five, newAdded (no line removed): the four lines at 256-259 ("First resolve the level and print its report line by [reference/levels.md] ... it sets the variant count, screens, states, screenshots, and review-mode and real-stack offers, whose
standardvalues are the ones this file states."). This sentence is what makes the level govern step 1's "A small set of screens in one flow is one run" (sketchsetsscreens: one), step 4's per-state screenshots and the two offers, without editing those lines.plugins/prototype/README.md, "Configuration":This plugin has nouserConfig. Its only inputs are conversational: the scope you pass, the`observe` option for `pressure-test`, and the variant count you ask for (UI defaults to 3, cappedat 5). It reads your project's own stack andlevel, its three channels andreference/config.md. Each line is shown in the diff.Added only, with no line removed:
scripts/sync-plugin-options-docs.py;plugin.jsonuserConfig;prototyperows indocs/contracts/config-cascade/README.md;shared-copies.txtline.Deviations from PLAN.md S5
<home>/prototype.yamlfrom the pointer line. The plan saysdocs/conventions/prototype.yaml, which is the default home. The cascade contract binds the home through the pointer region (docs/contracts/config-cascade/README.md:39-44,:122-125).levelsmay be set in both file layers and merges per dimension. The Design section says team-only, replaced likework_size. Team-only would make the map one leaf (decision 1). The closing "Single-source rules" (rule 2: a team file can add or redefine a level) win over Design.[--unattended]. Adding[--level <name>]took the hint to 115 characters, over the 100-character budget (docs/contracts/argument-hint/README.md:69;validate-plugins.shfailed on it). The hint now keeps every action's own slot and is exactly 100 characters.--unattendedis a caller's flag, documented in full under the body's "Variables", and the**Arguments.**line gives the full form after the hint, which the contract allows (README.md:85-86).standardcuts nothing (C2):standardandfullboth carryreview-modeandreal-stack, because the real-stack suggestion already exists at the default.standardisper-state, which is today.sketchisper-variant.full"real-stack offer" is therefore not new behaviour.fullisflow, the same asstandard. "A small flow, every screen" is whatflowalready does.fullareextra_states(narrow-viewport,dark-scheme,reduced-motion). Each is built as an ordinarydata-screen-stateblock, so they need no viewport control (an S6 item).resolve-convention-home.sh. The plan named only the cascade copy. The home helper comes through the same sync gate.reference/config.md,reference/levels.default.yamland a contract row. The first two are required by single-source rules 2 and 6; the contract row is required by the Implementers table's "conformance is tracked" rule.check-convention-yaml.shran on a sample file that was staged intent-to-add, then removed. This repository does not track aprototype.yamlof its own.Evals
Round 1 ran under the first registration (result). The loss set showed no loss and was non-inferior, but both new cases passed 0 of 6. Every one of the 72 traces held
mise ERROR node is not a valid shim: the eval sandbox had no workingnode, so the level resolver never ran. Since then:reference/levels.mdsays what a run prints when the resolver cannot run.nodeinstall directory first on the sandboxPATH(result). No score from round 1 was carried into it.Round 2 found no loss by the registered rule. The loss set was non-inferior over the set at margin 0.05 (
-0.01, 95% interval -0.04 to +0.01), and both new cases passed 6 of 6.The after arm is one run lower in two cases:
ed-offline-mockup-handover: 4 to 3 of 5 counted runs, with one run excluded per arm for a denied Bash call.ed-design-canvas-offer: 6 to 5 of 6.Neither meets the registered loss rule, so this is "no loss by the registered rule and non-inferior over the set", not "equal on every case".
Rounds 1 and 2 measured earlier heads. Since round 2, two review fixes changed
reference/levels.md,reference/levels.default.yamland their descriptions:A third after-only case covers the first fix. Round 3 measured the head
8049676a5funder the third registration (result): no loss with denied-call runs excluded and with none excluded, non-inferior over the set at margin 0.05 (+0.03, 95% interval +0.01 to +0.05), and all three new cases 6 of 6.Verification
SKILL.md: 465 lines before, 469 after (
wc -l).Judge calibration of the two new
llmgraders (calibrate-judge.py, judgeclaude-opus-5-5, 3 runs per sample, Claude Code 2.1.325):ed-level-config-defaultscaffold, run into an empty directory, then the resolver as the skill text gives it, run from there:Related
b285a62f97.plugins/prototype/lib/prototype-settings.test.sh(scripts/run-outside-node-suites.shleaves a suite with a sibling wrapper torun-plugin-tests.sh).Follow-ups
run-validity.py) does not detect a missing interpreter in the sandbox: round 1's files passed it withnodebroken in every run. Round 2's registration adds a trace search for it by hand./prototype:pressure-testadoptslevel(Q2 a, a later item).control-panel.mdparagraph.Pre-existing (advisory):ed-plan-caps-at-five/samples/plan-shape.jsonand otherllmgraders' samples are uncalibrated, whichvalidate-cases.pyreports as WARN.Pre-existing (advisory):on main,ed-offline-mockup-handoverfailshandover-shapein 2 of 5 runs (round-2 before arm).Pre-existing (advisory):on main,ed-offline-mockup-handoverfailsswitcher-inlinedin 2 of 5 runs (round-2 before arm).🤖 Generated with Claude Code