Skip to content

feat(prototype): add the controls tab, manifest and control snapshots in notes - #16348

Merged
kyle-sexton merged 18 commits into
mainfrom
feat/prototype-feedback-s6
Nov 16, 2026
Merged

kyle-sexton merged 18 commits into
mainfrom
feat/prototype-feedback-s6

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

No related issue: slice S6 of the prototype feedback picker plan

Eval record: held as a draft until a pre-registered before/after eval ran. The
result
(before main 50e6351a4a, after e334993378, both with #16321's change) shows no loss on ten
loss cases in either reading and non-inferiority at margin 0.05. The new case
ed-controls-everything-default passed 4 of 10 counted runs against a floor of 8 of 12: the
panel is built as asked in 12 of 12, and the level report line is left out in 6 of 12. The owner
waived that floor for this PR (decision recorded in a comment below the result); #16467 tracks
the report line.

Summary

Slice S6, "Controls for everything that can vary". The notes host's dock gets two tabs, Notes and
Controls. A mockup's controls now come from one prototype-controls manifest, defined by
lib/ui-feedback/controls.schema.json. They are drawn by one registry of control types in
lib/ui-feedback/controls.js. Every note carries the control values. Re-locating a note sets
them again. The levels gain a controls dimension, shipped as everything at standard and
full.

Carried in from #16346's eval: reference/feedback.md's notes placement step now asks for a reply
line that begins with the exact words not pushed: (the case that checks it went from 6 of 12 to
12 of 12), and the three *-evidence-no-secrets-check no-push graders see a push that starts a
script line.

Deviations from PLAN.md

Changes to what the person sees or what the skill text says come first.

# PLAN.md says This PR does Why
1 Group names "layout, typography and colour" The schema group is color The repository's typos check (locale = "en-us") refuses colour in skill text, and the control type is already color. A manifest that writes the group any other way is refused
2 control-panel.md gains a paragraph scoped to "standard or full" levels.default.yaml gains a controls dimension (brief or everything, schema default brief). control-panel.md and levels.md point at that data instead of naming levels. config.md gains one row and prototype.schema.json one property Single-source rule 2 (levels are data). The brief also asks the paragraph to point at the data, and the data had nothing to point at. The exact-definition assertions in prototype-settings.test.mjs gain controls
3 The registry lives "in the harness", and the contract said the frame helper "renders the controls" The registry is lib/ui-feedback/controls.js. The mockup inlines it (on file:// it draws its own panel). The host page loads the same file for the Controls tab. proto-pin.js only calls it. docs/contracts/ui-feedback/README.md changes its proto-pin row and Controls paragraph to say so Under file:// there is no frame helper. One file serving both modes is the only way to keep one registry and one manifest
4 controls [<variant>] opens the Controls tab focused on that variant Not done. SKILL.md is unchanged Any pointer would grow SKILL.md's line count. The existing control-panel.md links at SKILL.md lines 21 and 344 reach controls.md
5 "Send settings" sends a general note Not done Not in this slice's brief; the general kind does not exist in the note schema yet
6 Built-in Seed/Clear/Reset/toggles/worst content are "captured by the same function" They render in the Controls tab as built-in entries made from the page's own data-data-control marks and content sets. A note records their presses in data.log and content, not in controls This keeps one record of each fact. It also leaves the existing invalid fixture "a data block with toggles beside the log" as it is
7 Manifest entry `{..., target: {cssVar dataAttr}, scope: page variant, ...}`
8 No position field; control-panel.md Placement says top-right, else top-left The manifest gains an optional placement (top-right default, top-left), read only by the page's own panel on file:// controls.md forbids a panel of your own, so the runtime must be able to follow Placement's top-left rule (review finding 5)
9 Per-type rules unstated A control's values are checked by the registry, not the schema. A value fits when the control's own field, set to it, reads it back; a range compares by number, with unset bounds 0 and 100. A select or radio value must be one of its options, and a toggle needs two options. A misfit default or a shared id refuses the manifest whole JSON Schema cannot relate a default to min/max/step or options, and the shared validator subset has no conditional keyword; one check in controls.js (refused), named in the contract README and the schema description, covers every type with no second validator (review findings 3 and 9)

Fix

  • lib/ui-feedback/controls.schema.json (new) defines the manifest. Its $defs.snapshot is the
    {id: value} map a note carries, and note.schema.json references it
    (controls.schema.json#/$defs/snapshot). The controls schema in turn references
    note.schema.json#/$defs/key for a variant key, so no pattern or limit is written twice.
  • Both validators, note-model.mjs and notes_bridge.problems(), resolve the cross-schema
    $ref. They also honor propertyNames, maxProperties and an object-valued
    additionalProperties. The shared fixtures (fixtures/notes.json gains 9 cases; new
    fixtures/controls.json has 28 manifests) run against both validators. Its 13 registry
    cases pass the schema in both validators, and the browser test checks that the registry refuses
    or admits each one.
  • lib/ui-feedback/controls.js (new) holds the registry: type to render, read and out. It
    has five types, and adding one is one entry here plus one schema enum value. It writes values on
    the page root or on one variant's element, and the written value survives the switcher's
    remount (cloneNode copies the attribute). It draws a top-right panel only when not framed.
  • host.html: a tablist (Notes, Controls) in the WAI-ARIA tabs pattern, with arrows, Home and
    End, and a roving tabindex. The dock button and N work on either tab, and a pick opens the
    composer on Notes. The Controls tab, Copy config and Reset controls (data untouched) are new.
    Each note keeps only the control values of the manifest's ids.
  • proto-pin.js: snapshot() gains controls. The ready message carries the manifest, the
    page's data marks and the content set. It handles set and press messages, posts content
    flips, and adds uiFeedbackRelocate.setControls.
  • notes_bridge.py serves /controls.js and /controls.schema.json, and appends controls.js
    before proto-pin.js to the framed page (a page's own inlined copy wins).
  • relocate-note.mjs sets the note's controls after the data log and before the anchors, and
    reports restored.controls.
  • Skill text (additions only): new reference/controls.md, a paragraph and one Placement sentence
    in context/control-panel.md, a controls bullet in reference/levels.md, step 7 in
    reference/feedback.md. Contracts: one paragraph in ui-feedback "Trust rules", three lines in
    rendered-views rule 9.
  • Eval case ed-controls-everything-default, with four deterministic graders, each with samples.

Pre-eval review fixes

Each fix has a check that failed before it, in controls-browser.test.sh unless named.

  • Arrow keys on a focused dock tab now belong to a running region pick (host.html tab keydown).
    Before: FAIL during a region pick the arrows on a focused tab move the region, not the tabs.
  • After the frame loads a second page, the Controls tab's fields, Copy config and Reset controls
    are off, and the tab says why. Before: an ERROR, since the fields stayed enabled.
  • Per-type rules: controls.js misfit and refused, with 13 registry cases in
    fixtures/controls.json run in the browser. Both validators confirm the schema admits each
    case, so only the registry refuses them. Before: ERROR ... window.uiFeedbackControls.refused is not a function and FAIL misfit: the tab says why it refused the manifest ["6 control(s) ..."].
  • set() counts a value its control cannot hold, so restored.controls is false. Before:
    FAIL a value the control's field cannot hold is set nowhere and counted.
  • The page's own panel follows the manifest's placement. Before:
    FAIL corner: the panel sits in the top-left corner [{"x":749.4,...}].
  • controls.md no longer offers the manifest when the person asks for controls at a brief
    level; at that level control-panel.md alone applies. It also says restored.controls is false
    for a misfit value or a missing runtime, and keeps the security review's note that a pasted
    config line is data.
  • runtime-inlined grader: it now requires the runtime's Object.defineProperty(window, "uiFeedbackControls" written to an .html file, or a Bash write of notes-bridge/controls.js
    into an .html file. The stub sample is relabeled fail, with fail samples for a page that only
    calls the runtime, a non-page file and wc -l ... > /dev/null, and a pass sample for a heredoc
    script append. Before: 4 validate-cases FAIL pairs.
  • manifest-element grader: the Bash write needs a whitespace-delimited redirect, a heredoc or
    tee. A fail sample for a read-only grep of the full tag is added. Before: must-fail sample 4 ... passes grader "manifest-element".
  • Note 9, the duplicate-id rule, moved into refused (shared by host and page) with a fixture.
  • Note 11: a node test runs controls.js in a vm and asserts the schema's type enum equals the
    registry's types less action.
  • Note 12: a manifest that is not JSON reports "is not JSON" instead of "no manifest". Before:
    FAIL unparsed: ... ["The mockup has no controls manifest."].
  • Left as is:
    • Note 10. The built-ins cap borrows the manifest's maxItems, and the content toggle's
      on/off follows note.schema.json's content enum order (first off, second on, as for
      every toggle); a schema edit that reorders it is reviewed with the schema.
    • Note 13. config.md and levels.md describe the values the way their existing rows do.

Confirming-review fixes

  • S1 and S2: the runtime-inlined and manifest-element graders now use the confirming
    review's patterns, checked in node over 13 and 10 realistic tool calls. The old patterns got 11
    of those 23 verdicts wrong; the new ones get none wrong. New samples cover these cases:
    • pass: a quoted >>, sed -i ... r, tee -a, a heredoc holding the runtime's text, and
      python -c ... .write(;
    • fail: a read-only python heredoc, grep ... > /dev/null, and a Write of a non-page file.
  • S3, measured in Chromium (the browser suite):
    • A range with no max and the default "960" is refused, because the field reads it back as
      "100".
    • A default of "1.0" is refused under exact read-back, because the field reads it back as "1".
    • Fix: a range value now fits by number, inside its bounds. The schema description states that
      unset bounds are 0 and 100. "1.0" and a default of 80 with no bounds are now admitted; "960"
      with no max stays refused.
  • S4: the control-panel.md sentence now reads "When the mockup carries the controls manifest
    and is served through the notes host, its control panel is the dock's Controls tab."
  • N1: a pick started from the Controls tab selects the Notes tab, where its instructions are.
    Before the fix: FAIL R from the Controls tab starts the pick on the Notes tab, its instructions in view.
  • N2: two comments that had gone stale are corrected (proto-pin.js setControls, the
    controls.js header).
  • N3: a select or radio default of "", or any value outside the options, is refused. Two registry
    fixtures cover it. Before the fix: FAIL the registry refuses: a select default of the empty string [null].
  • N4: opened alone, a manifest that is not JSON, or that is refused, shows Controls: refused (<reason>) in a one-line panel. Before the fix: FAIL ... opened alone, the page shows the same reason in a one-line panel [""].

Not addressed in this slice

  • N5: a manifest the schema refuses is still drawn by the page opened alone, which runs no
    schema. A placement typo drops every control under the host page, while the page alone draws
    top-right.
  • N6: the per-type rules are written in the schema description, the contract README, and the
    misfit JSDoc.
  • N7: both graders read a whole trace line, so parallel tool calls in one line can meet the two
    halves of a pattern.

Trust-relevant choices

  • What crosses the frame boundary, frame to host: the manifest object, the data marks
    (as data steps), the content set name and, in each note snapshot, controls.
    • The host validates the manifest against controls.schema.json before rendering anything. A
      refused manifest, or one with a duplicate id, renders no control, and the tab says why.
    • Each data step must fit note.schema.json#/$defs/dataStep, and the content set must fit
      properties.content.
    • The count of built-ins is capped at the manifest's maxItems.
    • A note keeps a value only for an id the validated manifest names, then the note schema checks
      it again. The bridge validates once more.
  • Host to frame: only set {id: string} and press {dataStep} messages, plus the existing
    ones.
  • Rendering: labels, legends, options and values reach the screen through textContent or a
    form field's value, never as markup, a URL or script. The browser test renders a label holding
    <img onerror> and checks that no element appears and no handler runs.
  • Writes into the page: a value is written only through style.setProperty on a -- name, or
    setAttribute on a data-control- name. Every other target is ignored, even on file://,
    where the page trusts its own manifest.
  • Control values in a note are page-derived text from a model-written page. Rendered-views rule 9
    and the ui-feedback trust rules now say so, under the same rules as anchor.textQuote.
  • The mockup CSP and the sandbox flags are unchanged. No new server, token or framing.

Reused

  • Note validator and its subset: lib/ui-feedback/note-model.mjs:34-68 and
    lib/ui-feedback/notes_bridge.py:145-212 (problems), extended rather than copied.
  • The data-step parser: proto-pin.js STEP and the click logger, now one stepOf() shared by
    the logger and the ready message.
  • replay() (proto-pin.js) presses the built-in data controls and flips the content set, so a
    press from the Controls tab is logged by the same function as a press in the page.
  • The vs:show listener (assets/variant-switcher.html:257-264) for the content toggle and
    relocation.
  • STATIC and the pin-helper script check (notes_bridge.py), now applied to controls.js too.
  • The relocate() evaluate-argument pattern (relocate-note.mjs:59-71) for setControls.
  • The level cascade (plugins/prototype/lib/prototype-settings.mjs). The new dimension's default
    is read from the schema, not hardcoded.
  • This PR writes no new copy of a rule, limit, schema or helper. Every limit and enum is in
    controls.schema.json or note.schema.json, and the runtime dispatches only on the two target
    prefixes the schema's pattern defines.

Verification

At the head:

  • bash plugins/prototype/skills/explore-directions/scripts/controls-browser.test.sh:
    controls-browser: all passed (79 PASS). It covers:
    • the tabs by keyboard;
    • each of the five types writing its CSS variable or attribute and showing its value;
    • a variant control staying on its variant across a switch;
    • Copy config;
    • Seed and the content toggle through built-ins;
    • a note carrying every manifest id;
    • Reset controls restoring the defaults while the seeded rows stay;
    • relocation with restored.controls: true;
    • a refused manifest (outside the schema, not JSON, a misfit default) and the 13 registry cases;
    • a misfit value not set; a region pick keeping the arrows; the tab turned off after a second frame load;
    • the page alone on file:// drawing its own panel from the same manifest, top-right or top-left.
    • The checks can fail. With the range unit dropped, the built-in press disabled and the note's
      controls filter emptied in the plugin copies, the run gave controls-browser: 14 failed. Copies
      restored with scripts/sync-shared-copies.sh.
  • The existing browser suites:
    • notes-panel-browser: all passed
    • harness-browser: all passed
    • relocate-browser: all passed
    • notes-kinds-browser: all passed
  • node --test --test-concurrency=4 lib/ui-feedback/note-model.test.mjs lib/ui-feedback/relocate-note.test.mjs plugins/prototype/lib/prototype-settings.test.mjs:
    ℹ tests 185 ℹ pass 185 ℹ fail 0. With object-valued additionalProperties removed from
    the validator, 2 note fixtures fail.
  • python3 -m unittest discover -s lib/ui-feedback -p 'test_*.py': Ran 34 tests OK.
  • Planning: node plugins/planning/shared/tests/ui_proto.js ui_proto: 91 passed, 0 failed;
    ui_proto_versions.js ui_proto_versions: 29 passed, 0 failed;
    python3 -m unittest discover -s plugins/planning/shared/tests -p test_server.py -k pin
    Ran 4 tests OK.
  • python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/prototype/evals: no
    FAIL. A must-pass sample turned into the no-color case does FAIL manifest-groups.
  • plugins/skill-quality/scripts/check-skill.sh plugins/prototype/skills: 3 passed, 0 failed.
  • scripts/sync-shared-copies.sh --check: All 906 registered copies match their canonical sources.
  • scripts/sync-shared-copies.sh --check-bump origin/main: 8 canonical source(s) or their copies changed vs origin/main; every carrying plugin bumped its version.
  • scripts/check-html-assets.sh: All registered rendered-view HTML assets lint clean; no unregistered assets.
  • scripts/check-changelog-fragments.sh --check: All 60 changelog fragment(s) under .changes/ are valid. (after merging origin/main)
  • scripts/check-affected.sh --tests: check-affected: 18 passed, 183 skipped over 53 changed files since 419ceeeca7 (at 92b0b8a; the run before that merge failed stale-base-overlap on the two contract READMEs, and an earlier one, before the group was renamed to color, failed typos)
  • Not run here: claude plugin eval (the before/after eval of ed-controls-word-is-scope,
    ed-controls-escape-keeps-scope, bg-determined-builds-directly and the new case is registered
    and run by the session that dispatched this slice).

Related

  • Slices this builds on: #16088 (S3),
    #16069 (S5, levels),
    #16322 (S4, notes panel).
  • Contract: docs/contracts/ui-feedback/README.md, "Controls" and "Trust rules".

Open items

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 15, 2026 09:29
lib/ui-feedback gains controls.schema.json, the one definition of a
page's prototype-controls manifest, and controls.js, the controls
runtime holding the one registry of control types (range, colour,
select, toggle, radio): each type's renderer and value reader. A page
inlines the runtime: opened from file:// it draws its own panel;
framed by the notes host it draws nothing, and the host page renders
the same registry in a new Controls tab beside Notes (WAI-ARIA tabs).

The host page validates the manifest before rendering it, adds the
page's data controls and content set as built-in entries, and offers
Copy config and Reset controls. The frame helper's snapshot gains the
control values, each note carries them as controls (note.schema.json
references the controls schema; both validators resolve cross-schema
references, propertyNames, maxProperties and an object-valued
additionalProperties, checked by shared fixtures), and relocate-note
sets them again before the anchors run.

Co-authored-by: Claude Opus 5.5 <[email protected]>
…imension

The levels gain a controls dimension, brief or everything, defaulting to
brief for a level that sets none and shipped as everything at standard
and full. levels.md and control-panel.md point at it rather than naming
the levels; control-panel.md also says the notes host's Controls tab is
the panel. New reference/controls.md says how to write the manifest
(discovery, read-back, composition with the data controls and the
switcher) and points at controls.schema.json for every field and limit.
feedback.md names restored.controls. Eval case
ed-controls-everything-default checks a standard-level design-system
mockup carries a manifest with layout, typography and colour groups.

Co-authored-by: Claude Opus 5.5 <[email protected]>
The typos check refuses colour in skill text, and the control type is
already color, so the group enum, its fixtures, the eval case and
controls.md use color; a manifest spelling the group colour is refused.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
kyle-sexton and others added 3 commits November 15, 2026 09:58
…me and tab

The registry in controls.js gains the one check the schema cannot
state: a value fits a control when the control's own field, set to it,
reads it back, and a toggle needs two options. refused() turns a
manifest down whole for a misfit default or a shared id, on the host
page and on the page alone alike, and set() counts a misfit value as
not restored. A manifest that is not JSON now says so.

On the host page, the arrow keys on a focused tab belong to a running
region pick, and a second frame load turns the Controls tab off with
the reason. The page's own panel honors the manifest's new placement
(top-left). controls.md no longer offers the manifest at brief levels,
keeps the security review's pasted-config note, and says when
restored.controls is false. The eval's runtime-inlined and
manifest-element graders no longer pass a stub page, a mention of the
runtime or a read-only grep, and pass a heredoc script append.

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton and others added 2 commits November 15, 2026 10:50
…and graders

A range control's value now fits by number, so a default written 1.0
is no longer refused for its spelling; unset range bounds are 0 and
100, stated in the schema description, and a select or radio value
must be one of its options, the empty string included. Opened alone,
a manifest that is not JSON or is refused shows its reason in a
one-line panel. A pick started from the Controls tab selects the Notes
tab, where its instructions are. The control-panel sentence about the
Controls tab now holds only when the mockup carries the manifest.

The runtime-inlined and manifest-element graders take the confirming
review's patterns: a quoted redirect, sed -i, tee -a, a heredoc holding
the text and python .write( pass; a read-only heredoc, a redirect to
/dev/null and a Write of a non-page file fail.

Co-authored-by: Claude Opus 5.5 <[email protected]>
…raders

The three evidence cases' no-push pattern began with a word boundary,
which cannot match a push at the start of a line of a multi-line command:
the trace's JSON text has a backslash and an n before it. The pattern now
also matches there and across a continued line, as the dossier cases do.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
kyle-sexton and others added 3 commits November 15, 2026 15:29
The notes placement step asked for a reply that "says" `not pushed:
<reason>`; in 12 measured runs the reply carried those words 7 times and
said the same thing another way 5 times. The step now asks for a line
that begins with the exact words and gives an example.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Pre-registration: before/after eval of the controls slice (picker slice S6)

Posted before any run. do-not-merge stays until this run's result.

What is measured. Against main, this PR's skill text is additions (reference/controls.md, a paragraph and a sentence in context/control-panel.md, a row in reference/config.md, a controls line per level in levels.default.yaml, a bullet in levels.md, step 7 in feedback.md) and one changed sentence: feedback.md's notes placement step now asks for a reply line that begins with the exact words not pushed:, the fix carried over from PR 16346. standard and full now set controls: everything, so a default mockup builds the controls panel; that is why the build cases below are loss cases.

Also in this PR, not measured by a pair: the three *-evidence-no-secrets-check/graders/no-push.md take the push pattern merged with PR 16346 (a push that starts a script line was not seen). The 120 kept runs of those cases from PR 16346's eval were re-read with the new pattern and none pushed; a fresh-context review ran 41 command shapes against old and new with no new false flag.

Reviewed before this registration. Two fresh-context review rounds of the slice (code and security) are fixed at 92b0b8ae10; a third read the commits since (the grader pattern and the sentence) and found no defect; its one sample suggestion is in the head.

Arms, built on main plus PR 16321's change. PR 16321 merges before this PR and changes one line of SKILL.md and the handover case. So that "before" is the main this PR will merge into:

  • before: plugins/prototype at main 50e6351a4aac9da623344707466be0d87303e6ad, with skills/explore-directions/SKILL.md and evals/ed-offline-mockup-handover/ from PR 16321's head e59687bb9a6f17c85cbd7e070aa5eaa02b141c62.
  • after: plugins/prototype at this PR's head e3349933785ece41b4ef02f286f9e74ce35bb050, with the same two overlays.
  • Built with git archive, each copy holding only its set's cases. Before posting: diff -r of each pair's evals/ prints nothing, and diff -rq of each pair lists only this PR's own files (the text above, the controls runtime and schema, the notes bridge copies, prototype-settings, the browser test scripts and their fixture).
  • Condition. These runs count only if PR 16321 merges with SKILL.md and the handover case as at e59687bb9a, and this PR's head after its branch update then matches the after arm on plugins/prototype apart from plugin.json, CHANGELOG.md and changelog fragments. Checked with git diff before any merge. Otherwise the runs are discarded unread and a new registration is posted.

Frozen graders. Case files do not change after this is posted. Before each launch and again before any score is read, git diff --stat e3349933785ece41b4ef02f286f9e74ce35bb050 <PR head> -- plugins/prototype/evals plugins/prototype/skills plugins/prototype/context plugins/prototype/reference prints nothing.

If main changes this text. Before each launch and before any score is read, git diff --stat 50e6351a4aac9da623344707466be0d87303e6ad origin/main -- plugins/prototype/skills plugins/prototype/context plugins/prototype/reference must list nothing but PR 16321's SKILL.md line once it has merged. Anything else discards the runs unread.

Sets and runs (model claude-opus-5-5, judge claude-opus-5-5; a working node and playwright-cli on the sandbox PATH; CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1; flags --trust-plugin --ablation none --scaffold --allow-tools Bash Write Edit --keep-temp --no-publish --concurrency 2)

Set Cases Runs per arm Minimum counted per arm
handover pair ed-offline-mockup-handover (builds a default mockup) 45 20
plan pair ed-controls-word-is-scope, ed-controls-escape-keeps-scope, ed-plan-caps-at-five, ed-level-config-default, ed-level-content-word-not-a-level, ed-level-full-package 12 each 8 each
build and notes pair bg-determined-builds-directly, ed-notes-dossier-map-item, ed-notes-dossier-check-fails 12 each 8 each
after-only ed-controls-everything-default 6 4
  • 312 runs in seven invocations. The two arms of a pair launch together on one machine, each under its own lock. PR 16321's last eval invocations may run beside them. The result states each start and end time and what ran beside it.
  • ed-notes-tracer is left out: it cannot run in a sandboxed eval.

Validity and exclusions, decided before any score is read

  • run-validity.py <file> --runs <n> --scaffolded on each file by its own command; the excluded runs are written down first.
  • Excluded: a run with a denied tool call, a non-null error (a timeout included), or a trace matching not a valid shim, (node|python3|curl|playwright-cli): command not found or Shell command permission check failed for pattern. About a quarter to a third of handover runs are excluded for a denied compound Bash call; 45 per arm is sized for that.
  • A pair with a case under its minimum in either arm, a partial file, a wrong run count, 3 or more errored, missing-program or skill-load runs in one file, or a run ended by a login or rate-limit failure is relaunched once as a pair; a second such pair ends that set with no verdict. The after-only set is relaunched once on the same conditions.
  • Two readings, both reported: the registered reading (exclusions above) and a second reading with no run excluded for a denied tool call. The minimum-counted rule applies to the registered reading only.

Decision rule

  • A run passes at a score of 0.8 or above.
  • Per case, LOSS if a one-sided Fisher exact test of "the after pass rate is lower than the before pass rate" gives p under 0.05 on that case's counted runs, or the case's mean score falls by 0.15 or more. A LOSS in either reading is a LOSS.
  • Handover: the same test also on the handover-shape grader alone and on its other eight graders together; a LOSS on either is a LOSS.
  • Non-inferiority over the ten loss cases: noise-report.py <after> --baseline <before> --margin 0.05, on one merged file per arm, reported as the tool prints it.
  • The sentence fix: ed-notes-dossier-check-fails passing on fewer than 8 of its 12 counted after-arm runs is a defect (it passed 7 of 12 on main's sentence). The reply-not-pushed grader's count is reported for both arms.
  • After-only: ed-controls-everything-default passing on fewer than 4 of its 6 counted runs is a defect in the text, the case or the grader.
  • Graders do not change after any score is read. No detection control runs.

Power. Exact binomial sums for equal arms; exclusions lower them.

  • The nine 12-run cases: at a before rate of 1.0 and 12 counted per arm, a drop to 0.67 is found with power 0.60 and a drop to 0.5 with power 0.93.
  • Handover: at 0.9 and 28 counted per arm, a drop to 0.6 is found with power 0.76.
  • A moderate loss can go unseen on any case; the result will say so.

Outcome actions

  • No LOSS in either reading, non-inferiority shown, no defect, and the condition met: do-not-merge comes off after PR 16321 has merged, and the PR goes through ready, review and merge.
  • No LOSS but non-inferiority not shown: reported with the numbers; do-not-merge stays until a decision is recorded on this PR.
  • LOSS, a set with no verdict, or a defect: do-not-merge stays and the failing case and graders are reported; a LOSS goes to the owner.
  • A review fix that changes skill text, one of these cases or a grader restores do-not-merge and needs a fresh registration.

Cost (list-price estimate). About 2.1 USD per handover run and 1.6 USD per other run: about 550 USD, up to about 1,100 USD if every set is relaunched. Ceilings: 120 USD per handover invocation, 130 USD per plan invocation, 70 USD per build-and-notes invocation, 25 USD for after-only.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum 1 to the pre-registration: the handover pair is stopped and starts again after a login rotation

Posted before any score of this registration was read, and before the stop.

  • The login these runs use read 88% of its weekly window at 3:59 PM EST, rising about 13 points an hour with this eval and PR 16321's running. The handover pair needs about 3.5 hours, so it cannot finish on this login.
  • This session stops both handover arms now, about 22 minutes in, ungated and unread. Their files and traces are void and are not used.
  • The pair launches again, both arms together, after the owner rotates the login. That launch is the pair's first counted launch: this stop is this session's own, made before any limit or login failure, so it does not use the pair's one relaunch. Everything else in the registration is unchanged.
  • The plan pair and the after-only set keep running and are expected to finish before the rotation. The build-and-notes pair has not launched and starts after the rotation.
  • If a rotation or a limit ends any running invocation, the registration's relaunch rule applies to that set as written.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum 2: correction to addendum 1 (this one only tightens)

Posted before any score of this registration was read.

Addendum 1 said this session's stop of the handover pair "does not use the pair's one relaunch". That was an allowance written after the registration, in this session's favour, and an addendum may only tighten. It is withdrawn.

  • The stop counts as the handover pair's one relaunch. Its next launch is that relaunch. If a login failure, a limit, a partial file, a wrong run count or an arm under its minimum ends that launch, the set ends with no verdict, as the registration says, and do-not-merge stays until a new registration is posted and run.
  • Before that launch, this session reads the new login's weekly window and launches only if it can carry the pair; the reading goes in the result.
  • Nothing else changes. The stopped runs stay void and unread.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum 3: the handover pair runs six at a time

Posted before any score of this registration was read and before the handover pair's relaunch.

  • The registration's flags name --concurrency 2. The handover pair's relaunch uses --concurrency 6 in both arms, to cut its wall time from about 3.5 hours to about 1.25. No other flag, run count, case or grader changes, and the other sets keep --concurrency 2.
  • This changes a run condition for both arms alike and no part of the decision rule. Its risk is more runs ending in a timeout or error under load; those are excluded as registered, and the registered limits stand unchanged: 3 or more errored runs in one file, or an arm under 20 counted runs, ends the set, which now means no verdict (addendum 2).
  • The launch is still gated on 1-minute load under 24 and at least 16 GB available, and the result states the load and what ran beside it.

…written page in the controls case

The case's level-line grader read only the final reply, but the skill prints
the report line above the plan, which a build run gives earlier. The
runtime-inlined and manifest-element graders did not count a page written by
fs.writeFileSync.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Partial result: the after-only case and the plan pair

Run under the pre-registration and its three addenda. claude-opus-5-5 for runs and judge, Claude Code 2.1.325. The handover pair and the build-and-notes pair are still running; this is not the verdict.

After-only, ed-controls-everything-default: 0 of 6, a defect by the registered rule. do-not-merge stays. Ran 3:37 PM to 4:16 PM EST beside the plan pair and PR 16321's last runs. Gate: no trace match, complete, 6 rows, 0 errors, 0 denied calls, VALID, no exclusion. Every run scored 0.75: one of its four graders failed in each.

Run Failed grader What the trace shows
1 manifest-groups Real. The manifest has controls in color, typography, spacing, shape and motion, none in layout; controls.md asks for at least layout, typography and color.
2, 5 runtime-inlined Grader defect. Both runs inlined controls.js whole with a Node script (fs.writeFileSync); the grader's list of write forms has no such form.
3, 4 level-line Real. The run resolved the level and never printed level: standard (default).
6 level-line Grader defect. The line was printed above the plan, as levels.md says, and the grader reads only the final reply.

With the two grader defects set aside, three of the six runs did everything the case asks. The two real behaviours: the report line left out in 2 of 6 runs of a build-without-asking prompt (text that predates this PR), and no layout group in 1 of 6.

Next for this case. The two graders are fixed in a local commit, under a fresh-context review now; the case reruns under a new registration at 12 runs, and its count is reported whatever it is. The commit is pushed only after the remaining loss sets are read, so the registered frozen-grader check stays as written.

Plan pair: no loss. Ran 3:41 PM to 4:16 PM EST. Both files VALID, 72 of 72 traces, 0 denied calls, no exclusion, so the two readings are the same.

Case Before After Fisher p
ed-controls-word-is-scope 12 of 12 12 of 12 1.0
ed-controls-escape-keeps-scope 12 of 12 12 of 12 1.0
ed-plan-caps-at-five 12 of 12 11 of 12 (plan-shape once) 0.5
ed-level-config-default 12 of 12 12 of 12 1.0
ed-level-content-word-not-a-level 12 of 12 12 of 12 1.0
ed-level-full-package 12 of 12 12 of 12 1.0

Largest mean fall 0.028. Main check and frozen check printed nothing before these scores were read.

Login. The owner rotated the login about 4:15 PM EST; no run ended on it (0 errors in all three files). The new login read 6% of its weekly window at 4:16 PM EST, when the handover pair's relaunch (six at a time) and the build-and-notes pair launched.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Pre-registration 2: rerun of ed-controls-everything-default after grader fixes

Posted before any run of this registration. It replaces only the after-only set of the first registration, whose loss sets stand and keep running under it. do-not-merge stays.

Why. The case read 0 of 6 (partial result). Three of the six failures were grader defects; graders changed after a score was read, so that score is not carried.

What changed (commits 2f0fd45d38 and 2f32440caf, this case's files only; no skill text):

  • level-line reads the trace for the report line in an assistant text block, where it read only the final reply; levels.md puts the line above the plan. A line that appears only in a tool result, such as the resolver's own output, does not count, and neither does the fallback rule quoted with its <reason> placeholder.
  • runtime-inlined and manifest-element also count a page written by a Node script (writeFile, appendFile and their Sync forms).
  • case.yaml's expected_outcome says the run prints the line above its plan.
  • manifest-groups is unchanged.

Reviewed before this registration. A fresh-context reviewer ran the patterns on the six kept traces and about 55 crafted shapes: no blocking finding; its two suggestions (the quoted-fallback fail and more Node write forms) are in 2f32440caf. On the six kept traces the fixed graders pass runs 2, 5 and 6 and fail runs 1 (no layout group), 3 and 4 (report line never printed), so this rerun is expected to land near half, under its floor.

The commits are local until the first registration's remaining sets are read, so that registration's frozen-grader check stays as written; they are pushed after that, and git diff e3349933785ece41b4ef02f286f9e74ce35bb050 2f32440cafb1bf1c41bb1846e55a05429c4ce992 --stat will list this case's seven files and nothing else.

Arm. After only: plugins/prototype at 2f32440cafb1bf1c41bb1846e55a05429c4ce992 with main's SKILL.md (PR 16321 has merged; it equals the first registration's overlay), holding only this case. Against the first registration's after-only copy, diff -rq lists this case's seven files and nothing else.

Run. 12 runs, minimum 8 counted, one invocation, --concurrency 2; model, judge, PATH and other flags as the first registration. It runs beside that registration's handover pair and build-and-notes pair. Ceiling 50 USD.

Validity, exclusions, readings, main check. As the first registration, with one relaunch on its conditions.

Decision rule

  • A run passes at a score of 0.8 or above, so a run passes only when all four graders pass.
  • Fewer than 8 of 12 counted runs passing is a defect in the text, the case or the grader.
  • Each grader's pass count is reported, with the trace reason for each failure.
  • Graders do not change after any score of this registration is read.

Outcome actions

  • No defect here and the first registration's outcome met: do-not-merge comes off as that registration says.
  • A defect: do-not-merge stays and the failures are reported; lifting it then takes a decision recorded on this PR.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Result: before/after eval of the controls slice (picker slice S6)

Run under the pre-registration, addenda 1, 2 and 3, and pre-registration 2 for the controls case. Before: main 50e6351a4a; after: e334993378; both with PR 16321's SKILL.md line and handover case. claude-opus-5-5 for runs and judge, Claude Code 2.1.325. The partial result has the plan pair and the controls case's first read.

Verdict: no loss in either reading on any of the ten loss cases, non-inferior at margin 0.05, and the not pushed: sentence fix holds. One defect: ed-controls-everything-default passes 4 of 10 counted runs against a floor of 8 of 12. do-not-merge stays until a decision is recorded here.

Condition: met. PR 16321 merged at 4:18 PM EST with SKILL.md and the handover case byte-equal to both arms' overlays. The branch has main merged in (4401a22288), and against the after arm plugins/prototype differs only in plugin.json and CHANGELOG.md (the controls case's seven grader files aside, which pre-registration 2 covers).

Order, times (EST, 2026-11-15) and neighbours

Set Start End Ran beside it
handover pair, first launch 3:37 PM stopped 4:00 PM, unread, void (addendum 1) PR 16321's last runs, the plan pair, the controls case
controls case, first read 3:37 PM 4:16 PM the same
plan pair (together) 3:41 PM 4:15 PM the same
handover pair, its one relaunch, six at a time (together) 4:16 PM 5:35 PM, 5:38 PM the build-and-notes pair, the controls rerun
build-and-notes pair (together) 4:16 PM 4:27 PM the handover pair
controls rerun 4:27 PM 5:45 PM the handover pair

The owner rotated the login about 4:15 PM EST; no run ended on it. The new login read 6% of its weekly window at 4:16 PM EST. Load at the 4:16 PM launch was 1.6 with 23 GB available.

Validity and exclusions (written down before each file's score was read). No trace match in any file; every file complete with the registered row count, 0 errors and every trace present. Each exclusion is a denied compound Bash call.

File Excluded Counted (minimum)
handover before 13 32 of 45 (20)
handover after 15 30 of 45 (20)
plan pair, build-and-notes pair, both arms 0 all
controls rerun 2 10 of 12 (8)

Loss cases (a run passes at 0.8 or above; second reading in brackets where it differs)

Case Before After Fisher p
ed-offline-mockup-handover 31 of 32 (43 of 45) 30 of 30 (45 of 45) 1.0
five plan cases 12 of 12 each 12 of 12 each 1.0
ed-plan-caps-at-five 12 of 12 11 of 12 0.5
bg-determined-builds-directly 11 of 12 10 of 12 0.5
ed-notes-dossier-map-item 12 of 12 12 of 12 1.0
ed-notes-dossier-check-fails 6 of 12 12 of 12 1.0
  • Largest mean fall 0.028; handover's mean rose (0.941 to 0.959).
  • Handover's extra tests: handover-shape alone 18 of 32 before, 19 of 30 after, p 0.80 (25 and 26 of 45, p 0.66); the other eight graders together 29 of 32 and 30 of 30, p 1.0 (41 and 45 of 45).
  • Non-inferiority over the ten cases, as noise-report.py --margin 0.05 prints it: with-arm change (this minus baseline), paired over 10 cases: +0.01, 95% interval -0.02 to +0.03; compare verdict: non-inferior at margin 0.05.
  • The sentence fix. reply-not-pushed failed 6 of 12 runs on main's sentence and 0 of 12 on this PR's. The registered floor (8 of 12 after) is met.

The defect: ed-controls-everything-default, 4 of 10 counted (5 of 12)

Grader Passed, of 12 Failures
manifest-element 12 none
manifest-groups 12 none
runtime-inlined 11 run 3: a grader miss. The page was written by { cat ...; cat controls.js; ... } > "$OUT", and the grader wants the .html name after the redirect.
level-line 6 runs 1, 6, 7, 9, 10, 11: the run resolved the level and never printed level: standard (default).

So the panel itself is built as the text asks in every run: the manifest element, the three groups and the inlined runtime. What fails is the report line, left out in half the runs of a build-without-asking prompt. That rule is in levels.md, which this PR changes by one unrelated bullet, and the three ed-level-* cases, where a plan is shown, print it in 36 of 36 runs in each arm. The missing layout group seen once in the first read did not recur.

Limits

  • Power: a moderate loss can go unseen on a 12-run case; at 30 and 32 counted handover runs a drop from 0.9 to 0.6 would be found about three times in four.
  • The handover pair ran six at a time (addendum 3), the other sets two at a time.
  • runtime-inlined still misses a redirect to a shell variable; it is not changed now, because its score has been read.

Next. The defect needs a decision recorded on this PR: waive the floor for this case and track the report line in a filed issue, or fix the text under a new registration.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Decision recorded. Owner, in session, 2026-11-15 about 5:55 PM EST, on the question below: "go w/ recommendations". The recommendation was (a).

Question. Pre-registration 2 calls ed-controls-everything-default passing fewer than 8 of 12 counted runs a defect, and it passed 4 of 10 counted (result). The controls panel was built as the text asks in 12 of 12 runs; in 6 of 12 the reply never printed the level: standard (default) line, and one failure was a grader miss. (a) Waive the floor for this case on this PR and file an issue for the missing level line. (b) Fix the level-line wording here and rerun every set under a new registration. (c) Hold this PR until that is fixed and measured.

Waived for this PR. do-not-merge comes off; the loss-case result stands as posted.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 16, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 16, 2026 00:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T00:19:45.488487Z 4401a22 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4401a22288

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/ui-feedback/controls.js Resolved
Comment thread lib/ui-feedback/controls.js Resolved
…sing variant target

A manifest outside the schema, such as options that are no list, made the
registry throw on every note snapshot; it is refused now. Setting a control
whose variant is not on the page recorded the value and reported nothing
missed; it is counted and not recorded.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43779430544

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 046155465faac7916f71c945092345f8d6a31030: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: incremental, 841afef → 0461554

No security issues found. I read the whole change in the one file this push touches. This lane had already reviewed an earlier head, so the review was blocking only: it reports only CRITICAL and IMPORTANT findings.

critical-findings: 0

What I checked

plugins/prototype/skills/explore-directions/scripts/controls-browser-take.js

  • The push adds a landed(read, want) helper. It polls a read function up to 40 times, with 50 ms between tries.
  • The helper replaces one frame.waitForFunction(...) call. It is also used before the color, select, toggle and radio assertions, and before the reset assertions.
  • This is test code that runs in Playwright. The inputs are fixed strings and nothing is posted off the machine. It touches no trust control, token, secret or merge hold.

Other notes

  • Trusted paths. The changed file matches none of the trusted-path globs.
  • Prior findings. The earlier summary from this lane reported 0 findings, so nothing carries forward.
  • Settled threads. No settled thread's point was raised again.
  • PR text. No embedded instructions aimed at this lane.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 4401a22288fbd8d2830373c7f675c61ceb332b4c; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread lib/ui-feedback/host.html Resolved
Comment thread docs/contracts/ui-feedback/README.md Resolved
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 046155465faac7916f71c945092345f8d6a31030: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): no findings

Scope. This lane already reviewed an earlier head of this pull request, so I reported blocking findings only. This review covers what changed since 841afef71b2486eedf42082ab57fb499034cc59d, which is one file: plugins/prototype/skills/explore-directions/scripts/controls-browser-take.js. I read both of its hunks.

What changed. The test used to do one frame.waitForFunction(...).catch(() => {}) after the range input. That is replaced by a landed(read, want) helper. It polls the same reader the assertion uses, up to 40 × 50 ms (2 s). The test now calls it after each of these, before the matching ok(...) reads the frame:

  • the range, color, select, toggle and radio inputs;
  • Reset controls (--card-gap and data-control-align).

Why it is sound:

  • If a wait times out, the helper does not throw. The ok(...) that follows still fails with its own message, so a real regression is still reported rather than hidden.
  • The wait and the assertion use the same css/attr readers, so they cannot disagree about the value they read.
  • After Reset, the test waits on only two of the four values. The other two (--accent, data-control-dense) reach the frame by the same postMessage path. A missed value still fails the assertion. At worst this leaves a small chance of a flaky failure, never a pass that should have been a failure.

I read the test but did not run it: this lane has no shell.

PR context. There are no embedded instructions to the lane in the PR context, settled threads or prior findings. No plugin manifests changed in this increment. Both of this lane's earlier inline findings were fixed, as noted in the previous review.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 2 commits November 15, 2026 19:32
…e Notes status

Copy config and Reset controls wrote their confirmation to the status line
on the hidden Notes tab, and opening the Controls tab or moving a control
cleared whatever that line said. The ui-feedback contract's file table now
describes controls.schema.json as written.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…e reading it

A value set on the Controls tab reaches the framed page by postMessage, a
task after the input event. Only the range check waited for it; the color
check read too early on a slow runner.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 66dad4e Nov 16, 2026
61 checks passed
@kyle-sexton
kyle-sexton deleted the feat/prototype-feedback-s6 branch November 16, 2026 00:53
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 5, survived 1, timeout 0, no coverage 0, invalid 0, not run 1.
Covered-code score 83%; mutation score 83%.

File Killed Survived Timeout No coverage Invalid Not run
lib/ui-feedback/controls.js 0 1 0 0 0 0
lib/ui-feedback/note-model.mjs 2 0 0 0 0 0
lib/ui-feedback/notes_bridge.py 1 0 0 0 0 0
lib/ui-feedback/proto-pin.js 0 0 0 0 0 1
lib/ui-feedback/relocate-note.mjs 1 0 0 0 0 0
plugins/prototype/lib/prototype-settings.mjs 1 0 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
lib/ui-feedback/controls.js:141 LCR productive input-gap

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant