Skip to content

feat(prototype): pin notes to text and regions and import copied notes - #16088

Merged
kyle-sexton merged 8 commits into
mainfrom
feat/prototype-feedback-s3
Nov 15, 2026
Merged

kyle-sexton merged 8 commits into
mainfrom
feat/prototype-feedback-s3

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: slice S3 of the prototype feedback-picker plan

Eval record: held as a draft until a pre-registered before/after eval ran. The
result
(pre-registrations 2 and 3, before 5ed40526e0, after d08dfee113) shows no loss on the three
loss cases in either reading, non-inferiority at margin 0.05, and both new cases passing 6 of 6;
the hold was lifted on that registered outcome.

Summary

On the notes host page a person can now pin a note to a text selection or to a region (dragged, or
moved and resized with the arrow keys), as well as to an element. Every note carries the view a
reload loses: the data controls pressed since load and the frame's viewport. Re-locating a note
sets that viewport, replays that log, and finds a text note again by its quote. When the notes
server stops answering, the page says so, keeps the notes written after that, and Copy all notes
makes one prototype-notes block; the session writes a pasted block to a file and
notes-bridge.sh import takes it through the bridge's own validator.

Fix

  • Note contract (lib/ui-feedback/note.schema.json, x-version 2 to 3): kind gains text
    and region; anchor moves to $defs.anchor and gains textQuote (exact 1 to 500, prefix
    and suffix up to 64 code points); elements (up to 10 anchors a region crosses); data.log
    (up to 50 steps {op, n?, name?}); viewport (w, h, dpr, scrollX, scrollY,
    colorScheme, reducedMotion). Both validators (note-model.mjs, problems() in
    notes_bridge.py) gain array, items, maxItems and boolean; the shared fixtures go from
    10 valid and 32 invalid notes to 14 and 55, all run by both.
  • Frame helper (lib/ui-feedback/proto-pin.js): region mode (pointer drag, or arrows to move,
    Shift+arrows to resize, Enter to send; the arrows never reach the switcher), text request (reads
    the selection, returns a quote), one snapshot() for every kind (variant, state, content, data
    log, viewport), the data log (presses of controls marked data-data-control, and each content
    set the switcher shows), and window.uiFeedbackRelocate (replay, findQuote) so relocation
    uses the helper's own rules. The pinned message keeps its fields and adds snapshot.
  • Host page (lib/ui-feedback/host.html): Mark a region (R), Note on selected text (T),
    notes kept on the page when a send fails, "No session" when the event stream errors, Copy all
    notes into a read-only textarea and the clipboard, every backtick in the block written ```.
  • Bridge (notes_bridge.py): import --file F takes one fenced block or its JSON alone,
    checks every note, all or none, skips a note already logged, counts toward x-maxNotesPerRun,
    refuses while a server runs on the dir, removes F.
  • Relocation (relocate-note.mjs): viewport (size, color scheme, reduced motion), log replay
    (restored.data), a textQuote rung after cssPath, quoteMissing and unconfirmed when a
    text note's quote is gone, a region's shot is its box. S2's decide, confirmed and
    container rules are unchanged.
  • Skill text, additions only: reference/data-controls.md gains "Seed is deterministic: record
    i is generated from index i" and "Marked for notes" (data-data-control);
    reference/feedback.md gains Re-locating step 6, "Text and region notes", and "When the page
    cannot reach the session: copy-out and import".
  • Contracts: docs/contracts/rendered-views/README.md rule 9 and
    docs/contracts/ui-feedback/README.md (see below).
  • Tests: import unit tests; relocation unit tests for each new path; browser test
    scripts/notes-kinds-browser.test.sh (with -take.js and -offline.js); S2's browser test
    asserts the two new restored parts.
  • Eval case ed-notes-copyout-import (three deterministic graders, one llm, all with
    samples; synthetic notes; no process outlives a Bash call).
  • Changelog fragments: prototype (minor), planning (patch, its proto-pin.js copy). No version
    bumped.
  • Review fixes (after the eval): a text note whose quote is found outside the element the
    test id or path chose is unconfirmed (quoteElsewhere); relocation scrolls the frame to the
    note's saved scroll position and reports restored.scroll (4a3230572c); in region mode a
    click that never becomes a drag keeps the box the keys were moving (4ba1eb0665). No skill
    text, eval case or grader changed; the after-only eval set was run again on each fix head.

Trust-relevant choices

  • What page-derived text is carried. One field, anchor.textQuote, on a text note: the
    selection with whitespace runs collapsed and up to 64 code points of the scope's visible text
    either side. The helper's element label is still never kept. The data log carries only
    op/n/name enums and integers parsed from the page's data-data-control marks, never a
    label.
  • Where it is validated. The host page asks the frame for a quote with the schema's own
    maxLengths, then keeps only what note.schema.json admits (each anchor field, quote, box, log,
    viewport and region element checked against its schema node and dropped when refused), validates
    the whole note again, and the bridge validates a third time on POST /api/note and on import.
  • How it is rendered. Every string on the host page goes through textContent, the quote
    included. The relocation script returns rung names, counts and booleans, never the quote.
  • Contract lines amended. Rendered-views rule 9's first bullet gains the one exception (a
    ui-feedback note about a model-written K0 or K1 page may carry a text quote; limits in the
    schema; data everywhere; a K2 page never uses the host page). The ui-feedback "Trust rules"
    bullet on page-derived text names the field, where it is checked and how it is rendered;
    "Re-locating a note" drops "Notes carry no page text yet" and adds the quote rung, the replay,
    and the frame helper owning both rules; a new "Copy-out and import" section.
  • Unchanged controls. Sandbox flags (allow-scripts only), PAGE_CSP (no connect-src),
    the Host, Origin and token checks, X-Frame-Options: DENY, the 64 KB body cap, per-field
    limits and the 500-note cap. import adds no network surface: it reads one file and refuses
    while a server owns the dir, so two processes never write actions.json.

Reused, and what is new

Reused:

  • problems() (lib/ui-feedback/note-model.mjs:23) and the bridge's problems()
    (lib/ui-feedback/notes_bridge.py:122), extended rather than copied;
  • view.private_dir, view.load_log, view.write_json (lib/session-bridge/view_bridge.py:348,
    :71, :75) and bridge.read_session, bridge.running, bridge.now_iso
    (lib/session-bridge/session_bridge.py:730, :740, :76) in cmd_import;
  • MAX_NOTES from the schema and NotesHandler.max_body (the shared adapter's 64 KB) for
    import's cap and file-size bound; no new limit;
  • anchorOf, pathOf and the percent box (proto-pin.js), now through viewOf and pct;
  • S2's decide() (relocate-note.mjs:24) and the switcher's vs:show for content steps.

No new copy of a rule, limit, schema or helper: every limit is in note.schema.json; the quote
and replay rules live once in proto-pin.js and relocation calls them in the frame. Named for
review:

  • notes-kinds-browser.test.sh repeats the scaffolding of relocate-browser.test.sh (pw,
    finish, result, code, the port sed), as S2's did of S1's.
  • The helper's region step (10 px) and starting box are UI constants, not note limits.

Deviations from PLAN.md's S3 text

Plan Here Why
Harness text and region modes in a shadow-root harness Modes in the frame helper (proto-pin.js) and the host page S1 shipped a host page framing the mockup, not an in-page harness
data: {log: [["seed",10],...], toggles: {...}} data: {log: [{op, n?, name?}, ...]}; toggles are log steps (toggle:filter), content flips are content steps The shared validator subset has no tuple keyword; one ordered log replays toggles and flips in order with no second field
Seed rule only, in data-controls.md Also "Marked for notes": each data control carries data-data-control Nothing could log or replay a press of a model-written button without a mark; an addition, beside the Seed rule
rect: {doc, inAnchor} rect stays S2's percent box; a region's rect is its box Reuses what S2 shipped; inAnchor has no consumer yet
controls in the note Not added S6, per the plan's own slice split
AC5 "With no reachable server (file://, the server stopped, or a cross-origin block), the panel's Copy all notes produces one block" Copy all notes is on the host page when the server stops answering, and as an explicit button; file:// keeps today's copy-out terminator; the plan's file:// acceptance line is met as "with the server stopped" The host page is served by the bridge, so file:// has no host page; the mockup keeps no connect-src (owner answer Q378)
Relocate viewport only as data The script sets size, color scheme and reduced motion; dpr is carried, not set A page's device scale factor is fixed when its browser context opens
(not in plan) quoteMissing makes a text note's match unconfirmed; a region shoots its box A text note is about its text; a region is about the box the person drew
(not in plan) import skips a note already in the log, and refuses while a server runs Copy all notes copies every note of the page, including ones already sent; two writers of actions.json would race

Existing non-skill lines changed: host.html (script rewritten around the three kinds, the
sent map replaced by mine), proto-pin.js (anchorOf uses viewOf, rectOf uses pct),
notes_bridge.py (apply parser shared with import), the fixtures file (reformatted by
json.dumps, one invalid fixture's kind text to general), the ui-feedback contract lines
above, and one assertion in relocate-browser.test.sh. Skill files have 0 deleted lines (git diff --numstat: data-controls.md 7 0, feedback.md 50 0).

Verification

At the head:

  • python3 -m unittest discover -s lib/ui-feedback -p 'test_*.py': Ran 32 tests OK (adds
    import: a block appended with seqs and its file removed with an instruction-shaped note kept as
    data; the JSON alone; duplicates skipped; unknown field refuses the whole block; oversize text
    refuses; a file over the run's byte budget refused unread; the cap counts notes already logged;
    anything but one block refused; import refused while the server runs, then accepted after
    stop, and status lists the notes).
  • node --test --test-concurrency=4 lib/ui-feedback/relocate-note.test.mjs lib/ui-feedback/note-model.test.mjs:
    ℹ tests 100 ℹ pass 100 ℹ fail 0.
  • bash plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser.test.sh:
    notes-kinds-browser: all passed (27 PASS): a text note on the opening set (PT-1002), taken
    before Seed 10, Clear and Reset ran in the open page, still finds its text there once
    (findQuote returns 1) and re-locates in a fresh page by its quote, confirmed; a text note taken after Seed 10, Clear, Reset,
    Seed 10 carries PT-1012 and that log, re-locates with the log replayed and the quote rung
    candidates 1, and its shot is all magenta (record 12's row); a region note made with R,
    arrows, Shift+arrows, Enter, Tab, Enter (no mouse) leaves variant and state as they were and
    re-locates to its box, and an ArrowDown pressed inside the frame in region mode moves the box
    10 px and does not step the switcher's state; a note on record 57 after Seed 100 re-locates by test id with 115
    candidates, confirmed, and its shot is all green (record 57's row); with the server stopped
    the page says "No session", keeps a new note, and Copy all notes gives one block that import
    takes ({"imported": [5], "skipped": 4}).
    • The checks can fail (run on an earlier head with three notes): with replay disabled in the
      plugin copy, 4 FAIL (text and Seed-100 notes unmatched, both shots share 0); with the quote
      rung disabled, 1 FAIL (no textQuote rung).
  • bash .../scripts/relocate-browser.test.sh: relocate-browser: all passed (15 PASS).
  • bash .../scripts/harness-browser.test.sh: harness-browser: all passed (25 PASS).
  • Planning's prototype page suites against the changed helper: 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.
  • scripts/sync-shared-copies.sh --check: All 848 registered copies match their canonical sources.
  • scripts/sync-shared-copies.sh --check-bump origin/main: 6 canonical source(s) or their copies changed vs origin/main; every carrying plugin bumped its version.
  • scripts/check-changelog-fragments.sh --check: All 10 changelog fragment(s) under .changes/ are valid.
  • scripts/check-html-assets.sh: All registered rendered-view HTML assets lint clean; no unregistered assets.
  • plugins/skill-quality/scripts/check-skill.sh plugins/prototype/skills: 3 passed, 0 failed.
  • python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/prototype/evals: no
    FAIL; the new case shows only the repo-wide allowed_tools WARNs and the calibration note.
  • python3 -I scripts/check-vocabulary.py: exit 0, no lines.
  • scripts/run-ruff.sh check lib/ui-feedback: All checks passed!; format --check clean after formatting.
  • shellcheck on the new and changed scripts: clean. markdownlint-cli2 on the changed markdown:
    Summary: 0 issues in 0 files. typos on the changed paths: clean.
  • scripts/check-affected.sh --tests at a740f9e92e: check-affected: 18 passed, 35 skipped over 36 changed files since 2ee75fd05acfbf79f7ab04e4867b7e11698e52d2. Run at 867c56d905 (before the grader fixes): --check-bump and check-changelog-fragments lines above.
  • Judge calibration of ed-notes-copyout-import/command-flagged (judge claude-opus-5-5, 3 runs
    per sample): agreement 10/10 runs (100.0%) over 4 samples, verdict: PASS (every grader at or above 90%; 1 untested); the untested sample is must-fail 3, whose runs did not reproduce.

After merging origin/main (c51fed6c6c, a prototype release) into the branch, at 87418d08fb:
scripts/sync-shared-copies.sh --check: All 849 registered copies match their canonical sources.;
scripts/check-affected.sh --tests: check-affected: 18 passed, 35 skipped over 36 changed files since c51fed6c6c695191736c135dd983ebb8edbb0fe3.

Scored evals: see the eval record at the top. Not run: the full .github suite.

Related

Follow-ups

  • S1: eval case ed-notes-tracer cannot run in a sandboxed eval; when it can, tighten its
    samples/ensure-running.json.
  • S1: owner doc docs/contracts/ui-feedback/README.md still needs a file-table row for
    note-model.mjs, the controls.schema.json row saying it lands with the controls slice, the
    "Notes leave through the host page" bullet naming srcdoc and the policy put first, and
    view_bridge.py among the bridge app's copies.
  • S1: reference/feedback.md "Only with the person at this machine": add "single-user machine".
  • Pre-existing (advisory): /events in lib/session-bridge/session_bridge.py takes no
    Sec-Fetch-Site check; require Sec-Fetch-Site: same-origin for /events.
  • S2: prerequisites.json's node row does not mention relocation, and playwright-cli is not
    declared for prototype.
  • S3: restored.data reports a step it could not press, but the agent cannot tell a page whose
    data bar was never marked (written before this rule) from a removed control; a later slice may
    say which.
  • S3: a region note's elements lists only test-id elements; a region over unmarked content
    carries its box and holder only.
  • Pre-existing (advisory): introduced by this PR and recorded from the code-review summary:
    note.schema.json admits textQuote on any anchor (an element or region note's anchor,
    and each elements[] anchor), while the contract names it only on a text note's anchor.
    The host page strips it elsewhere and the security lane found no new path; tightening it
    needs a kind-dependent rule the shared validator subset does not have yet.

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 13, 2026 20:43
Slice S3 of the prototype feedback-picker plan. The notes host page now
pins a note to a text selection or a region (dragged, or moved with the
arrow keys) as well as an element. Every note carries the view a reload
loses: the data-control log and the frame's viewport. Relocation sets the
viewport, replays the log, and adds a text-quote step after the path.
When the server stops answering, the page keeps new notes and Copy all
notes makes one prototype-notes block that notes-bridge.sh import takes
through the same validator.

The note schema (x-version 3) gains kind text and region, the textQuote,
region elements, data.log and viewport; both validators gain array,
items, maxItems and boolean. Rendered-views rule 9 and the ui-feedback
contract allow the text quote on model-written pages only.
data-controls.md adds the deterministic Seed rule and the
data-data-control mark. New eval case ed-notes-copyout-import.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…fter Clear and Reset

runs-import now matches the quoted command feedback.md gives, and
block-never-in-bash matches only running the URL or writing the block
through the shell, so a read-only grep passes; each has a sample for it.
The browser test adds a text note on the opening set whose quote still
finds its text after Clear then Reset in the open page, and an arrow
pressed inside the frame in region mode that moves the box and leaves
the switcher's state alone.

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 14, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Pre-registration: before/after eval of picker slice S3 (text and region notes, full note view, copy-out import)

For PR 16088. Posted before any run. No score from this comparison has been read, and no smoke run was made.

Why. The PR adds skill text to /prototype:explore-directions: two rules in reference/data-controls.md (Seed is deterministic; each data control carries data-data-control), which reach every HTML mockup the skill builds, and three additions to reference/feedback.md (re-locating step 6, text and region notes, copy-out and import). The plan's S3 entry names ed-offline-mockup-handover before and after. The per-run exclusion rule follows the prototype round-4 registration; the arm, validity, node and sequencing rules follow the S5 round-2 registration.

Arms

  • before: plugins/prototype at c51fed6c6c695191736c135dd983ebb8edbb0fe3, the origin/main last merged into the PR head (main had changed plugins/prototype since the branch was cut: a release of its plugin.json version and CHANGELOG.md).
  • after: plugins/prototype at the PR head 87418d08fbcd24b9529d33db7268574aa8369006.
  • Built as in S5 round 2: git archive <ref> plugins/prototype | tar -x -C <run-dir>/<arm>, pruned to the arm's cases. Five copies, because --runs is one value per invocation:
    • handover-before (before ref) and handover-after (after ref): KEEP="ed-offline-mockup-handover".
    • loss-before (before ref) and loss-after (after ref): KEEP="ed-existing-app-untrusted-css ed-shared-interview-staging".
    • after-only (after ref): KEEP="ed-notes-copyout-import ed-notes-relocate-not-found".
  • Built before posting: each copy lists exactly its cases; diff -r of handover-before and handover-after evals/, and of loss-before and loss-after evals/, printed nothing; validate-cases.py reported 0 FAIL on each of the five copies.

Frozen-grader check. Run before the first launch and again before any score is read; it must print nothing:

git diff --stat c51fed6c6c695191736c135dd983ebb8edbb0fe3 87418d08fbcd24b9529d33db7268574aa8369006 -- plugins/prototype/evals/ed-offline-mockup-handover plugins/prototype/evals/ed-existing-app-untrusted-css plugins/prototype/evals/ed-shared-interview-staging plugins/prototype/evals/ed-notes-relocate-not-found

Loss set (3 cases, both arms). Each builds an HTML mockup, so the two data-controls.md rules can reach its output.

  • ed-offline-mockup-handover: the plan's named case. Its data-controls grader matches the Seed, Clear and Reset labels the new data-data-control rule sits beside; its handover, CSP and switcher graders read the same page.
  • ed-existing-app-untrusted-css: builds the mockup now, on an existing app; the added rules add attributes to its data bar and text to the same build turn as its CSP and untrusted-instruction graders.
  • ed-shared-interview-staging: writes one HTML snapshot per variant for a planning interview. SKILL.md's "Same data across variants" rule (Seed, Clear and Reset, linking data-controls.md) applies to every mockup, and reference/shared-interview.md's snapshot row does not exempt snapshots; whether its runs build the data bar is not known, so it is included as a case the rules could reach.

Left out, with the reason:

  • ed-plan-caps-at-five, ed-controls-word-is-scope, ed-controls-escape-keeps-scope, ed-design-canvas-offer, ed-claude-design-project-routes, ed-playground-not-imitated: each stops at a plan, a routing answer or a question before any mockup is built, so neither edited file is read.
  • ed-graft-reply-records-and-deletes, ed-evidence-no-secrets-check: they handle a reply on an existing mockup and read neither edited file.
  • ed-notes-tracer: cannot run in a sandboxed eval (its notes host must outlive one Bash call; PR 15868, Follow-ups).

After-only set (after arm only; no verdict on loss).

  • ed-notes-copyout-import (new): the pasted block is written to a file with the Write tool and imported with notes-bridge.sh import, never run as text; an instruction-shaped line in it is reported and not run.
  • ed-notes-relocate-not-found (S2): this PR changes both files it reads, reference/feedback.md and notes-bridge/relocate-note.mjs.

A working node, and the other programs the cases need, in every arm. Each launch puts the real node install directory first on the sandbox PATH, ahead of any version-manager shim, and sets CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 (safe because TMPDIR sits outside /tmp, the condition ADR 0056 names, Findings 2026-10-11). The form: env TMPDIR=<tmp>/<name> PATH=<node-bin>:<playwright-cli-bin>:<rest-of-PATH> CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 claude plugin eval .... Proof that this form gives a working node: the throwaway node --version case of the S5 round-2 registration returned v24.21.0 with no not a valid shim in its trace (Claude Code 2.1.325). The other programs, each resolved on that PATH before posting:

  • python3 (notes-bridge.sh import and status): resolves to a real interpreter, not a version-manager shim.
  • curl, bash, git: system binaries.
  • playwright-cli (relocation, which feedback.md offers in both after-only cases): on the default PATH it resolves only to a version-manager shim, which would fail like node's. So its real install directory (<playwright-cli-bin>) is added second on the PATH; from there playwright-cli --version printed 0.1.23. Whether a browser can launch inside the sandbox is not known; the after-only cases need no browser (the scaffolds hold the notes, and feedback.md falls back to reading the page file without one).

Runs and order. ed-offline-mockup-handover 8 per arm (as in round 4); every other case 6. Invocations: handover 8 x 2 = 16; the two-case loss pair (2 x 6) x 2 = 24; after-only 2 x 6 = 12; 52 runs in all. Model claude-opus-5-5, judge claude-opus-5-5. The five invocations run one at a time, in this order: handover-before, handover-after, loss-before, loss-after, after-only, each under a lock file of the launching session (the desk allows that session two evals at once, each under its own lock file). The result states the order, each start time and the Claude Code version.

Launch commands (from <run-dir>, outside any repository; the Docker link-swap wrapper of plugins/evals/skills/plugin-eval/reference/sandboxes.md "Docker link swap", used when its three conditions hold, and the result says whether it ran; <lock> is the shared lock file; --scaffold because ed-existing-app-untrusted-css and both after-only cases set context.scaffold_script, each read before launch):

flock -w 3600 <lock> python3 <after-checkout>/plugins/evals/skills/plugin-eval/scripts/docker-links.py run -- env TMPDIR=<tmp>/s3hb PATH=<node-bin>:<playwright-cli-bin>:<rest-of-PATH> CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 claude plugin eval <run-dir>/handover-before/plugins/prototype --trust-plugin --ablation none --scaffold --allow-tools Bash Write Edit --keep-temp --no-publish --runs 8 --model claude-opus-5-5 --judge-model claude-opus-5-5 --max-cost-usd 30 --json <run-dir>/out/handover-before.json
flock -w 3600 <lock> python3 <after-checkout>/plugins/evals/skills/plugin-eval/scripts/docker-links.py run -- env TMPDIR=<tmp>/s3ha PATH=<node-bin>:<playwright-cli-bin>:<rest-of-PATH> CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 claude plugin eval <run-dir>/handover-after/plugins/prototype --trust-plugin --ablation none --scaffold --allow-tools Bash Write Edit --keep-temp --no-publish --runs 8 --model claude-opus-5-5 --judge-model claude-opus-5-5 --max-cost-usd 30 --json <run-dir>/out/handover-after.json
flock -w 3600 <lock> python3 <after-checkout>/plugins/evals/skills/plugin-eval/scripts/docker-links.py run -- env TMPDIR=<tmp>/s3lb PATH=<node-bin>:<playwright-cli-bin>:<rest-of-PATH> CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 claude plugin eval <run-dir>/loss-before/plugins/prototype --trust-plugin --ablation none --scaffold --allow-tools Bash Write Edit --keep-temp --no-publish --runs 6 --model claude-opus-5-5 --judge-model claude-opus-5-5 --max-cost-usd 30 --json <run-dir>/out/loss-before.json
flock -w 3600 <lock> python3 <after-checkout>/plugins/evals/skills/plugin-eval/scripts/docker-links.py run -- env TMPDIR=<tmp>/s3la PATH=<node-bin>:<playwright-cli-bin>:<rest-of-PATH> CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 claude plugin eval <run-dir>/loss-after/plugins/prototype --trust-plugin --ablation none --scaffold --allow-tools Bash Write Edit --keep-temp --no-publish --runs 6 --model claude-opus-5-5 --judge-model claude-opus-5-5 --max-cost-usd 30 --json <run-dir>/out/loss-after.json
flock -w 3600 <lock> python3 <after-checkout>/plugins/evals/skills/plugin-eval/scripts/docker-links.py run -- env TMPDIR=<tmp>/s3ao PATH=<node-bin>:<playwright-cli-bin>:<rest-of-PATH> CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 claude plugin eval <run-dir>/after-only/plugins/prototype --trust-plugin --ablation none --scaffold --allow-tools Bash Write Edit --keep-temp --no-publish --runs 6 --model claude-opus-5-5 --judge-model claude-opus-5-5 --max-cost-usd 15 --json <run-dir>/out/after-only.json

Judge calibration (done before posting). The new llm grader ed-notes-copyout-import/command-flagged was calibrated with calibrate-judge.py, judge claude-opus-5-5, 3 runs per sample (not a scored run of a registered case): agreement 10/10 runs (100.0%) over 4 samples, verdict: PASS (every grader at or above 90%; 1 untested); the untested sample is must-fail 3, whose runs did not reproduce. The sample labels were set by the authoring agent alone. The loss-set cases' llm graders are unchanged.

Validity and exclusions, decided before any score is read

  • Each result file goes through run-validity.py <file> --runs <8 or 6> --scaffolded by its own command, run before the command that prints scores.
  • A run is excluded when its trace holds a denied tool call, or it has a non-null error (a timeout included).
  • A missing program is excluded like a denial. Each run's trace is searched for not a valid shim and for <program>: command not found with <program> one of node, python3, curl, playwright-cli: grep -l -E "not a valid shim|(node|python3|curl|playwright-cli): command not found" <tmp>/<name>/claude-eval-*/out/trace.jsonl. A run whose trace holds either is excluded.
  • The excluded runs, with arm and case, are taken from those three sources and written down before any score is read.
  • A file with 3 or more missing-program runs excludes its whole set, which is relaunched once under the same rules.
  • Minimum counted runs per arm: 6 of 8 for ed-offline-mockup-handover, 4 of 6 for each other loss case. With fewer for any case, that pair is relaunched once, keeping the order and the lock; a second short pair ends that set with no verdict.
  • A file that is partial (a cost-ceiling hit included), holds the wrong run count, or is INVALID for any reason other than denied tool calls or missing programs excludes the pair; it is relaunched once, and a second exclusion ends the set with no verdict. An excluded pair's scores are never read.

Decision rule (loss set, on counted runs)

  • A run passes at a score of 0.8 or above (round 4's rule). A case's pass rate is its passing counted runs over its counted runs.
  • LOSS if any case's after pass rate is at or below two-thirds of its before rate and lower than it, or the loss-set mean score falls by 0.15 or more.
  • Non-inferiority, margin 0.05: python3 <after-checkout>/plugins/evals/skills/plugin-eval/scripts/noise-report.py <run-dir>/out/loss-after.json --baseline <run-dir>/out/loss-before.json --margin 0.05 for the two-case pair. For the handover pair (one case) it cannot be computed; it is reported as not shown, and that case rests on the loss rule.
  • After-only (same pass definition): a case passing on fewer than 4 of its 6 counted runs is a defect in the new text, the case or the grader.
  • No detection control runs, and the result says so. Graders do not change after any score is read; a grader fix means a fresh registered run.

Expected outcomes, stated before the run

  • ed-offline-mockup-handover: no earlier pass rate is used as an expectation. Its earlier results on this plugin (the S1 rounds and S5 round 1) were measured with no working node in the sandbox, so its medium resolver never ran. Both arms are expected to fail some graders, handover-shape most often, as in every earlier round; the after arm's mockups are expected to carry data-data-control on the Seed, Clear and Reset controls.
  • ed-existing-app-untrusted-css and ed-shared-interview-staging: expected to score as before; the added rules change markup attributes, not what their graders read.
  • ed-notes-copyout-import: expected to write the block to a file under mockup-run/ with the Write tool, run import ({"imported": [2], "skipped": 1}, reproduced without a model from the scaffold and the prompt's block), restate both notes, and report the curl line as not run. An agent that writes the block elsewhere fails writes-block-file.
  • ed-notes-relocate-not-found: expected to read the note through status or actions.json, find no element, and ask. With playwright-cli on the PATH but no live notes host, it may try relocation and fall back to reading the page file.

Outcome actions

  • No loss, non-inferiority shown where computable, no after-only defect: do-not-merge comes off and the PR goes through ready, review and merge.
  • No loss but non-inferiority not shown for the two-case pair: reported here with the numbers; do-not-merge stays until a decision is recorded on this PR.
  • After-only defect with no loss: the defect is fixed and a fresh registration runs the after-only set; do-not-merge stays meanwhile.
  • LOSS, or no verdict in the loss set: do-not-merge stays; the failing case and graders are reported, and the skill text is revised before a fresh registration.

Cost (list-price estimate, judgment). S5 round 1 cost about 19 to 20 USD per loss arm for 30 runs; round 4 cost about 2 USD per handover run. Estimate: handover pair about 32 USD, two-case pair about 25 USD, after-only 5 to 11 USD; about 60 to 70 USD in all, up to about 140 USD if every set is relaunched once. Ceilings: 30 USD per loss invocation, 15 USD for after-only.

At posting. Two changes from the draft, both before any run. (1) Another eval of the same session, the S5 round-2 run for PR 16069, runs on the same machine at the same time as these invocations; both arms of every case here still run on the one machine, one after the other. (2) One more exclusion, checked like the missing-program rule and written down before any score is read: a run whose trace holds Shell command permission check failed for pattern (a skill that failed to load; #16146) is excluded, and a file with 3 or more such runs excludes its set.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum to the pre-registration: the handover pair is relaunched at 12 runs per arm

Posted before the relaunch and before any score of this eval has been read.

What happened. The first invocation, handover-before (8 runs), exited with the missing-program and skill-load searches clean and run-validity.py reading INVALID (3 permission denials in the traces), every other check PASS. Runs 5, 6 and 8 each hold one denied compound Bash call of the form cd "$TMPDIR/..." && sed -i ... && node drive.mjs ... | grep ...: the session editing and re-running its own check script. Those three runs are excluded, which leaves 5 counted of 8. The registered minimum is 6 of 8, so the pair is short. Its scores were not read.

What the registration says. A short pair is relaunched once; a second short pair ends that set with no verdict. The first handover-after was not run: a short pair is void whatever its other arm gives.

The one change. The relaunched pair runs at 12 per arm, with a minimum of 8 counted runs per arm, instead of 8 with a minimum of 6. Reason: with a working node the sessions now write and run driver scripts, and the sandbox denied a compound call in 3 of 8 runs here and in 1 of 6 runs in each arm of another eval of this case tonight (PR 16069, round 2). At that rate 8 runs per arm will usually fall under the minimum. More runs change no rule about what counts, what passes or what is a loss.

Unchanged. The arms, the case, the graders, the exclusion rules (a denied tool call, a non-null error, a missing program, a skill that failed to load), the pass rule (0.8 or above), the loss rule, and the limit of one relaunch: if either arm of the relaunched pair has fewer than 8 counted runs, the handover set ends with no verdict.

Order from here. One eval of this session at a time. The three commands of PR 16069's round 3 run first, then handover-before and handover-after at 12, then loss-before, loss-after and after-only as registered. The result states each start time.

Cost. The relaunched pair is about 24 runs at about 2 USD each, about 48 USD, against the 32 USD estimated for the pair. Ceiling per handover invocation raised from 30 to 40 USD.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum: a second reading with no run excluded for a denied call

Posted 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 node in the sandbox, sessions building a mockup write a small script to check it, then edit and re-run that script with one compound Bash call (cd ... && sed -i ... && node ...). The sandbox refuses some of those calls, and the posted rule excludes any run with a refused call. So the counted runs lean toward sessions that did not re-check their work that way. Both arms lose runs under the same rule, so the comparison is not tilted toward either text, but the counted runs may not be typical ones. Tonight the rule removed 1 of 6 handover runs in each arm of PR 16069's round 2 and 3 of 8 in the first PR 16088 handover run.

What is added.

  • The registered reading is unchanged and gives the verdict: a run with a denied tool call is excluded, with every other exclusion as posted.
  • A second reading is computed and reported beside it: the same pass rule and loss rule applied with no run excluded for a denied tool call. Runs with a non-null error, a missing program or a skill that failed to load stay excluded in both readings, because those runs did not exercise the skill.
  • If the second reading meets the loss rule on any case, or its set mean falls by 0.15 or more, do-not-merge stays even when the registered reading shows no loss, and the result says which reading failed.
  • The minimum-counted-runs rule and the relaunch rule apply to the registered reading only.
  • The result gives, per arm and case, the number of runs excluded for a denied call and the denied command's shape.

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.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum: two evals of this session may run at the same time

Posted 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.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Result: before/after eval of the notes kinds and re-location (picker slice S3)

Run under the pre-registration and its three addenda, each posted before any score was read: handover pair at 12 runs, second reading, two evals at once. Arms: before c51fed6c6c, after 87418d08fb (the PR head). claude-opus-5-5 for runs and judge, Claude Code 2.1.325, a working node and playwright-cli on the sandbox PATH. The frozen-grader check printed nothing before the first launch and again before any score was read.

Verdict: LOSS by the registered rule, in both readings, on two cases. do-not-merge stays. The after-only cases pass. The evidence below says both losing cases are too unstable on main for this rule at these run counts; that is a reason to register a better-sized run, not a reason to lift the hold.

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

Command Runs Start End Ran beside it
handover-before (first) 8 12:35 AM 1:54 AM PR 16069 round 2
handover-before (relaunch) 12 2:36 AM 4:21 AM PR 16069 round 3 loss-before, then loss-after
handover-after (relaunch) 12 4:22 AM 6:11 AM PR 16069 round 3 loss-after and after-only, then this PR's loss-before
loss-before 6 per case 4:57 AM 6:13 AM handover-after
loss-after 6 per case 6:12 AM 7:30 AM after-only, then the PR 15868 re-measure's before arm
after-only 6 per case 6:13 AM 6:21 AM loss-after

Validity and exclusions (written down before any score was read; the missing-program and skill-load search listed no trace in any file)

File run-validity.py --scaffolded Excluded runs (registered reading) Counted
handover-before (first) INVALID (3 permission denials in the traces) 5, 6, 8 5 of 8: short, scores never read
handover-before (relaunch) INVALID (2 permission denials in the traces) 5, 7 10 of 12
handover-after (relaunch) INVALID (4 permission denials in the traces) 1, 2, 9, 11 8 of 12 (the minimum)
loss-before INVALID (3 permission denials in the traces) ed-existing-app-untrusted-css run 1; ed-shared-interview-staging runs 2, 6 5 of 6; 4 of 6 (the minimum)
loss-after VALID (warnings: skill fired) none 6 of 6; 6 of 6
after-only VALID (warnings: skill fired) none 6 of 6; 6 of 6

Every other validity check passed in every file. Each denial is one compound Bash call of the form cd "$TMPDIR/..." && sed ... && node ... (or grep), the session editing and re-running its own check.

Scores (a run passes at 0.8 or above)

Case Reading Before After Mean before Mean after Rule
ed-offline-mockup-handover registered 10 of 10 3 of 8 0.967 0.847 LOSS
ed-offline-mockup-handover none excluded 11 of 12 7 of 12 0.944 0.861 LOSS
ed-existing-app-untrusted-css registered 5 of 5 6 of 6 0.975 0.979 no loss
ed-existing-app-untrusted-css none excluded 6 of 6 6 of 6 0.979 0.979 no loss
ed-shared-interview-staging registered 1 of 4 1 of 6 0.650 0.633 LOSS (0.25 to 0.17)
ed-shared-interview-staging none excluded 3 of 6 1 of 6 0.700 0.633 LOSS
  • Mean rule (a fall of 0.15 or more): not met in any pair or reading.
  • Non-inferiority for the two-case pair: n too small to call (cases scored in both results: 2; 3 or more are needed); reported as not shown.
  • Failed graders, all 12 runs of each handover arm: before handover-shape x4, switcher-inlined x2; after handover-shape x8, switcher-inlined x6, variant-markers x1.
  • Failed graders, ed-shared-interview-staging, all 6 runs: before snapshot-doctype x6, no-mktemp x3; after snapshot-doctype x5, no-mktemp x6.

After-only set

Case Passing runs
ed-notes-copyout-import 6 of 6
ed-notes-relocate-not-found 6 of 6

What the losses do and do not show

  • ed-offline-mockup-handover is unstable on unchanged text. PR 16069's round 3 measured it tonight on main at b285a62f97, whose plugins/prototype is identical to this eval's before arm (git diff --stat b285a62f97 c51fed6c6c -- plugins/prototype prints nothing): 3 of 5 counted there, 10 of 10 here. Those two readings of the same text would themselves meet this loss rule. Twelve runs per arm do not separate this PR's text from that spread.
  • The only text this PR changes that the handover case reads is seven lines of reference/data-controls.md (deterministic seed, data-data-control marks). Whether they cause the extra handover-shape and switcher-inlined failures is not shown either way.
  • ed-shared-interview-staging fails on main in most runs (snapshot-doctype in every before run). Its drop rests on no-mktemp failing in 6 of 6 after runs against 3 of 6 before. This PR's diff adds no mktemp wording; the cause was not found.
  • No detection control ran.

Next, per the registration. do-not-merge stays and the PR stays a draft. A fresh registration is needed before any merge. Recommended shape, for the owner's morning review since the plan's gate sends a loss to him: first measure each losing case main against main to size the run count and the rule to its spread, read the failing after-arm traces for handover-shape, switcher-inlined and no-mktemp to find a cause in the text, then register the comparison.

Cost (list-price estimate from the result files): 18.74 USD first handover-before, 25.35 and 26.02 USD the relaunched handover pair, 19.49 and 19.74 USD the loss pair, 3.38 USD after-only; 112.72 USD.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Pre-registration: main against main on the two losing cases (spread measurement)

Posted before any run. The owner chose this route on 2026-11-14 after the result ("go w/ recommendations"): measure how far each losing case moves on unchanged text, read the failing traces for a cause, then register the comparison afresh. This run cannot lift the hold. do-not-merge stays whatever it shows; only a later registered before/after run can remove it.

Question. With identical text in both arms, how often does the loss rule this PR was held on fire, and what pass rate and spread does each case have on main?

Arms. Two copies of plugins/prototype at c51fed6c6c695191736c135dd983ebb8edbb0fe3 (this PR's before arm), named A1 and A2, each pruned to ed-offline-mockup-handover and ed-shared-interview-staging. diff -r of the two copies printed nothing. No file of this PR is in either arm.

Runs. 12 per case per arm, 48 in all. Model claude-opus-5-5, judge claude-opus-5-5. Flags: --trust-plugin --ablation none --scaffold --allow-tools Bash Write Edit --keep-temp --no-publish --runs 12 --max-cost-usd 65. A working node and playwright-cli on the sandbox PATH, CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1, as in the eval above. A1 and A2 launch together on one machine, each under its own lock; the result states the start times and anything else that ran beside them.

Validity and exclusions, decided before any score is read. As in the eval above: run-validity.py <file> --runs 12 --scaffolded on each file by its own command, with the excluded runs written down first. A run is excluded for a denied tool call, a non-null error, a missing program or a skill that failed to load. Both readings are reported: with denied-call runs excluded, and with none excluded. A partial file, a wrong run count, or a file with 3 or more errored, missing-program or skill-load runs voids the pair, which is relaunched once.

What is reported

  • Per case, per arm and reading: passing runs (score 0.8 or above) over counted runs, mean score, and each grader's failure count.
  • Whether the posted loss rule (after rate at or below two-thirds of the before rate and lower than it, or a mean fall of 0.15 or more) fires between A1 and A2 in either direction.
  • Per case, the pass rate pooled over A1 and A2 with a 95% Wilson interval. The earlier before-arm runs on this same text (this PR's and PR 16069's round 3) are listed beside it and not pooled into it.

What follows from it. The fresh before/after registration takes its run count and its rule from these numbers, and says how. Stated now so it is not chosen after the fact:

  • A case whose pooled pass rate on main is under 0.5 does not carry a loss rule in the next registration: it is reported, and the next registration says so. Reason: a case that mostly fails on unchanged text measures the case, not the change.
  • For a case that stays, the next registration's rule is a one-sided test of the after pass rate against the before pass rate (Fisher's exact test, alpha 0.05), with the run count per arm set so that a drop from the pooled main rate to two-thirds of it is detected with power 0.8, and capped at 30 runs per arm. If the cap is reached, the registration states the smallest drop it can detect.
  • Graders do not change between this run and the next registration unless the trace read finds a grader that misreads a correct run; a grader change is stated there with its evidence and is calibrated before use.

Cost (list-price estimate). About 2 USD per handover run and about 1.6 USD per staging run tonight, so about 45 USD per arm, 90 USD in all; ceiling 65 USD per arm.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum to the main-against-main registration: no case is dropped on these numbers

Posted while both arms are running and before any score of this run has been read. It only tightens.

What changes. The registration said a case whose pooled pass rate on main is under 0.5 carries no loss rule in the next before/after registration. That line is withdrawn for this run's numbers. Both losing cases, ed-offline-mockup-handover and ed-shared-interview-staging, keep a loss rule in the next registration unless the owner says otherwise on this PR.

Why. A read of the failing traces from the eval above, done after this run was registered, points at three graders that fail runs whose behaviour is correct:

  • switcher-inlined looks for the switcher's text in a Write or Bash call, and misses a page a session assembles with a script. Checked by this session in two after-arm handover runs: the page is written with a placeholder and the bundled switcher is then spliced in from the asset file by node -e or cat.
  • snapshot-doctype is reported by the agent to miss a staging page written by a build script in the same way; not re-checked by this session.
  • no-mktemp fails any run whose Bash calls mktemp, and sessions make a scratch directory that way, as the unchanged SKILL.md line 189 shows.

So a low pass rate on main in this run would measure those graders, not the case, and dropping a case on it would remove a check for the wrong reason. The rest of the trace read is an agent's report this session has not re-checked; it goes in the result, labeled.

What stays. Everything else in the registration: the arms, runs, exclusions, both readings, what is reported, and that this run cannot lift the hold. The next registration still says how its run count and rule follow from measured numbers; if graders change first, it says which numbers were taken with which graders.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Result: main against main on the two losing cases

Run under the registration and its addendum. Both arms are plugins/prototype at c51fed6c6c; no file of this PR is in either. claude-opus-5-5 for runs and judge, Claude Code 2.1.325, 12 runs per case per arm. A1 and A2 launched together at 10:17 AM EST 2026-11-14 and both ended at 1:21 PM EST. Beside them from about 11:00 AM EST: a build agent working on grader fixes, which may have run judge calibration.

do-not-merge stays; this run could not lift it.

Finding: on identical text, the loss rule this PR was held on fires on ed-shared-interview-staging, in both readings. It does not fire on ed-offline-mockup-handover in this pair.

Validity and exclusions (written down before any score was read; the missing-program and skill-load search listed no trace)

Arm run-validity.py --runs 12 --scaffolded Excluded runs (registered reading) Counted
A1 INVALID (6 permission denials in the traces); every other check PASS handover 3, 4, 7; staging 9, 11, 12 9 of 12; 9 of 12
A2 INVALID (5 permission denials in the traces); every other check PASS handover 6, 8; staging 2, 3, 4 10 of 12; 9 of 12

Each denial is one refused Bash call: eight compound cd ... && sed -i ... calls, one rmdir, two heredocs.

Scores (a run passes at 0.8 or above)

Case Reading A1 A2 Mean A1 Mean A2 Loss rule, A1 as before
ed-offline-mockup-handover registered 7 of 9 10 of 10 0.901 0.911 not met
ed-offline-mockup-handover none excluded 9 of 12 12 of 12 0.889 0.907 not met
ed-shared-interview-staging registered 6 of 9 4 of 9 0.756 0.711 met (0.67 to 0.44)
ed-shared-interview-staging none excluded 9 of 12 6 of 12 0.767 0.717 met (0.75 to 0.50)
  • With A2 as before, the rule is not met on the handover case in either reading (1.00 to 0.78; 1.00 to 0.75; two-thirds is 0.67). The mean rule is not met anywhere.
  • Failed graders, all 12 runs: handover A1 handover-shape x5, switcher-inlined x5, variant-markers x2; A2 handover-shape x4, switcher-inlined x4, variant-markers x2. Staging A1 snapshot-doctype x9, no-mktemp x4, manifest-lookat x1; A2 snapshot-doctype x10, no-mktemp x6, manifest-lookat x1.

Pooled pass rate on main (A1 and A2), 95% Wilson interval

Case Registered reading None excluded
ed-offline-mockup-handover 17 of 19, 0.89 (0.69 to 0.97) 21 of 24, 0.88 (0.69 to 0.96)
ed-shared-interview-staging 10 of 18, 0.56 (0.34 to 0.75) 15 of 24, 0.63 (0.43 to 0.79)

Earlier before-arm runs on this same text, listed and not pooled: handover 10 of 10 counted (11 of 12) in this PR's eval and 3 of 5 counted (4 of 6) in PR 16069's round 3; staging 1 of 4 counted (3 of 6) in this PR's eval.

What this shows

  • The staging "loss" in the eval above (0.25 to 0.17 counted, 0.50 to 0.17 with none excluded) is the size of swing the case makes on unchanged text. With these graders and 6 to 12 runs per arm, that rule cannot tell this PR's text from main on that case.
  • The handover case did not misfire here, but its counted pass rate on the same text has ranged from 3 of 5 to 10 of 10 across tonight's runs.
  • It does not show this PR's text is free of loss. That needs the fresh before/after run.

Trace read of the eval above (a read-only agent; this session re-checked only the first item, in two after-arm handover runs, and the SKILL.md line in the third)

  • switcher-inlined fails runs that write the page with a placeholder and splice the bundled switcher in from the asset file with node -e or cat. The switcher is in the page; the regex only looks at Write and Bash text.
  • snapshot-doctype is reported to miss a staging page written by a build script in the same way.
  • no-mktemp fails a run that makes a scratch directory with mktemp, the form the unchanged SKILL.md line 189 gives; the rule it guards is about where the output is staged.
  • handover-shape: the judge is reported to pass and fail the same wording, the states listed once for all variants.
  • The agent found no failure that traces to text this PR adds.

Next

  1. A separate PR to main fixes those four graders (no skill text). It is being built now.
  2. Once it merges and this branch takes main, a fresh before/after registration is posted here. Both losing cases keep a loss rule (addendum). The rule is the one-sided Fisher test stated in the registration; the pass rates above were taken with the old graders, so the registration will say which numbers its run count rests on.

Cost (list-price estimate from the result files): 45.44 USD A1, 44.71 USD A2; 90.15 USD.

kyle-sexton added a commit that referenced this pull request Nov 14, 2026
Revert the ed-shared-interview-staging changes: shared-interview.md
Placement says to write everything under the data dir's staging folder,
so whether a scratch build directory outside it is allowed is the
owner's decision, and the new patterns also passed a run whose snapshot
never reached staging.

switcher-inlined: a stdout/stderr .write( and a redirect to a digit no
longer count as writes; write_text( and sed -i now do. Samples cover
all four forms.

handover-shape: a sub-bullet under a variant's line counts as that
line, and a "same states" that names no source variant fails unless an
earlier variant line named the states.

Refs: #16088

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Pre-registration 2: before/after eval of the notes kinds and re-location (picker slice S3)

Posted before any run. No score from the first eval or the main-against-main run is carried into the verdict; their numbers are used only to size this run, as stated below. do-not-merge stays until this run's result.

What changed since the first eval

  • PR 16208 (merged, e44b8f571b) fixed two graders of ed-offline-mockup-handover: switcher-inlined now also passes a page whose switcher is spliced in from the asset file by a script, and handover-shape now states that each variant's states sit on that variant's own line, as SKILL.md step 4 asks. So this case's results are not comparable with any earlier run of it.
  • The graders of ed-shared-interview-staging are unchanged (owner decision, 2026-11-14: the placement rule stays as written; issue 16213 tracks the runs that break it).
  • This branch merged main, which now includes PR 16069 (levels) and PR 16208. No file of this PR changed.

Arms

  • before: plugins/prototype at e44b8f571bc489b8fcc37de0bee4e504b73f6f2e (main, merged into the head).
  • after: plugins/prototype at the PR head 0ec746e55c8f34b2e5c71edf7371827c5e790576.
  • Built with git archive <ref> plugins/prototype | tar -x, each copy pruned to its set's cases. Before posting: diff -r of each before/after pair's evals/ printed nothing.

Frozen-grader check. Before the first launch and again before any score is read, this prints nothing:

git diff --stat e44b8f571bc489b8fcc37de0bee4e504b73f6f2e 0ec746e55c8f34b2e5c71edf7371827c5e790576 -- plugins/prototype/evals/ed-offline-mockup-handover plugins/prototype/evals/ed-existing-app-untrusted-css plugins/prototype/evals/ed-shared-interview-staging

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)

Set Cases Runs per arm Minimum counted per arm
handover pair ed-offline-mockup-handover 30 20
staging pair ed-shared-interview-staging 30 20
css pair ed-existing-app-untrusted-css 12 8
after-only ed-notes-copyout-import, ed-notes-relocate-not-found 6 each 4 each
  • 150 runs in seven invocations. The two arms of a pair launch together on one machine, each under its own lock, so both arms share the same neighbour. Order: handover pair, staging pair, css pair; after-only runs beside the css pair or after it. The result states each start and end time and what ran beside it.

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.
  • A pair with an arm under its minimum, 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.
  • 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.
  • Non-inferiority over the three loss cases: noise-report.py <after> --baseline <before> --margin 0.05, run on one merged file per arm built from the three invocations' cases, and reported as the tool prints it.
  • After-only: a case 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.

How the run count and rule follow from measured numbers (as the main-against-main registration required)

  • Why a test and not the two-thirds rule: on identical text the two-thirds rule fired on the staging case in both readings.
  • Handover case: 30 per arm. The main-against-main pass rate was 0.88 to 0.89, taken with the old graders, so it is only a guide. If the before rate is 0.9, this test finds a drop to 0.6 with power 0.80 and gives a false LOSS on unchanged text 1.3% of the time.
  • Staging case: 30 per arm, the cap. Its main-against-main pass rate was 0.56 to 0.63 with these same graders. At 0.6 the test finds a drop to 0.25 with power 0.81 and a drop to 0.4 with power 0.35, and gives a false LOSS 2.6% of the time. A moderate loss on this case can go unseen; the result will say so.
  • css case: 12 per arm. It passed every counted run in the first eval. At 1.0 the test finds a drop to 0.67 with power 0.60.
  • Power figures are exact binomial sums computed by this session for equal arms; exclusions lower them.

Outcome actions

  • No LOSS in either reading, non-inferiority shown, no after-only defect: do-not-merge comes off 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 an after-only defect: do-not-merge stays, the failing case and graders are reported, and it goes to the owner.

Expected, stated before the run. Under the stricter handover-shape, most handover runs in both arms will fail that one grader and still pass at 0.89; a run passes or fails on whether a second grader fails. The staging case will fail no-mktemp and snapshot-doctype in many runs of both arms.

Cost (list-price estimate). About 2.1 USD per handover run and 1.6 USD per other run tonight: about 265 USD, up to about 530 USD if every pair is relaunched. Ceilings: 80 USD per 30-run invocation, 30 USD per css invocation, 15 USD for after-only.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum to pre-registration 2: owner decision on the non-inferiority outcome

Posted 2026-11-14 5:27 PM EST, before any score of this run was read: the handover pair is still running and no result file exists yet.

Decision recorded (owner, in session, 2026-11-14, on the question asked of him at 4:55 PM EST before any score: "Go with recommendations."): if this run shows no LOSS in either reading and no after-only defect, but noise-report.py reads non-inferiority as not shown, do-not-merge comes off when the measured with-arm change over the three loss cases is at or above -0.05.

This loosens one outcome action of the registration ("No LOSS but non-inferiority not shown: ... do-not-merge stays until a decision is recorded on this PR") by recording that decision in advance. It changes no case, grader, exclusion, run count or loss rule. A LOSS, a set with no verdict or an after-only defect still keeps the hold.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum 2 to pre-registration 2: the handover pair is relaunched, and the remaining invocations run two at a time

Posted 2026-11-14 7:03 PM EST. No score of this run has been read: both handover files were gated by run-validity.py and the trace search only, and their exclusions written down.

Handover pair, first attempt (2:17 PM to 6:57 PM and 7:02 PM EST): the after arm is under its minimum. Excluded for one denied compound Bash call each (a cd ... && sed -i ... && node ... self-check): 6 of 30 before-arm runs and 13 of 30 after-arm runs, so 24 and 17 are counted against a minimum of 20. No run errored, no trace matches a missing program. By the registration the pair is relaunched once as a pair; a second short pair ends this set with no verdict.

The relaunch runs 45 per arm, not 30, because 13 of 30 runs were excluded in one arm. The minimum stays 20 counted per arm. Ceiling 120 USD per invocation.

Concurrency. Every remaining invocation (staging pair, handover relaunch, css pair, after-only) runs with --concurrency 2, in both arms of a pair alike; the first handover attempt ran at 1. Order: staging pair now, then the handover relaunch, then the css pair with after-only beside it.

This changes no case, grader, exclusion, pass rule or loss rule. More runs raise the test's power; they do not move its threshold.

@kyle-sexton

kyle-sexton commented Nov 15, 2026 •

Copy link
Copy Markdown
Member Author

Addendum 3 to pre-registration 2: both arms move to the new main

Posted 2026-11-14 8:41 PM EST. Still no score of this run has been read: three files were gated only (the two short handover files and the staging before arm), and the staging after arm was stopped by this session before it finished.

Why. At 8:38 PM EST main took PR 16269, which rewrites the Placement text in plugins/prototype/skills/explore-directions/reference/shared-interview.md, a file the staging case reads. The registered before arm (e44b8f571b) no longer equals main, and the head that would merge would carry text neither arm measured.

New arms

  • before: plugins/prototype at 5ed40526e0df7c2f8ac5cdcbf3eb050e0df898ec (main).
  • after: plugins/prototype at the PR head d08dfee1137c1fbfb361c45b65dec4c16fb71a4a (the former head with main merged in; no file of this PR changed, and git diff of plugins/prototype between the two arms is the same as between the old two).
  • Seven copies rebuilt the same way. Before posting: diff -r of each pair's evals/ printed nothing; validate-cases.py 0 FAIL on all seven; the frozen-grader check with the two new refs printed nothing.

What is discarded, unread. The handover files of attempt 1 (short, as addendum 2 says), the staging before file (30 runs, 27 counted) and the stopped staging after arm. None enters the verdict or the result's tables; the result lists their cost.

What runs. All four sets on the new arms: the staging pair now (30 per arm), then the handover pair (45 per arm, as addendum 2 set; this is its one relaunch), then the css pair (12 per arm) with after-only beside it, each invocation with --concurrency 2.

This changes the two refs only. Cases, graders, exclusions, minimums, the pass rule, the loss rule and the outcome actions (with the owner's recorded decision on the non-inferiority outcome) stay as registered.

@kyle-sexton

kyle-sexton commented Nov 15, 2026 •

Copy link
Copy Markdown
Member Author

Note on eval 2: the staging pair is relaunched after a login limit stop

Posted 2026-11-14 9:04 PM EST. No score of this run has been read.

The eval login hit its weekly limit at about 8:47 PM EST, seven minutes into the staging pair on the new arms (addendum 3). The after arm ended with 29 of 30 runs errored on the limit; this session stopped the before arm. Both files are void and unread. The login has since been rotated.

By the registration, a pair with a run ended by a rate-limit failure is relaunched once as a pair; that relaunch started at 9:04 PM EST. A second such staging pair ends that set with no verdict. The order after it is unchanged: the handover pair (45 per arm), then the css pair with after-only.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum 4 to pre-registration 2: the css pair is relaunched at 24 runs per arm

Posted 2026-11-15 about 3:12 AM EST. No score of this run has been read: every file so far was gated by run-validity.py and the trace search only, and its exclusions written down first.

Gates so far (arms 5ed40526e0 and d08dfee113)

File Runs Errors Excluded for a denied call Counted Minimum
staging before 30 0 0 30 20
staging after 30 0 0 30 20
handover before 45 0 16 29 20
handover after 45 0 17 28 20
after-only 6 per case 0 0 6 per case 4
css before 12 0 4 8 8
css after 12 0 6 6 8

No trace matches a missing program in any file.

css pair, first attempt (2:25 AM to 3:07 AM EST): the after arm is under its minimum. Each excluded run made one compound Bash call (cd ... && sed -i ... && node ..., a self-check) that the sandbox denied. By the registration the pair is relaunched once as a pair; a second short pair ends this set with no verdict. Both first-attempt files stay unread and do not enter the verdict or the result's tables; the result lists their cost.

The relaunch runs 24 per arm, not 12, because 10 of the 24 first-attempt runs were excluded: at that rate 12 runs would again leave an arm near or under 8 counted. The minimum stays 8 counted per arm. Ceiling 60 USD per invocation. Both arms launch together with --concurrency 2, as before.

This changes no case, grader, exclusion, pass rule or loss rule. More runs raise the test's power; they do not move its threshold. It follows the same step addendum 2 took for the handover pair.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Pre-registration 3: the css pair alone, after pre-registration 2's css set ended with no verdict

Posted 2026-11-15, before any run of it and before any score of pre-registration 2's run was read. Every file of that run has been gated by run-validity.py and the trace search only. do-not-merge stays.

What happened to the css set under pre-registration 2

  • First attempt (12 per arm, 2:25 to 3:07 AM EST): the after arm counted 6 against a minimum of 8 (addendum 4).
  • The one relaunch (24 per arm, 3:09 AM EST on): at 4:24 AM EST two after-arm runs and one before-arm run ended on Failed to authenticate: OAuth token revoked. The login was not rotated and reads valid afterwards; the cause is not established. A run ended by a login failure makes the pair one the registration relaunches, and this was already its relaunch.
  • So by pre-registration 2's own rule the css set ended with no verdict, and its registered action is that do-not-merge stays. All four css files stay unread and enter no verdict or table; the result lists their cost.

What this registration does, and what it does not

  • It runs the css pair once more as a new registered run. Pre-registration 2 did not allow a third attempt; this is the agent session's decision, taken while the owner is away under his standing instruction that sessions decide everything except security and intent, and it is logged for his review. The owner has not decided it.
  • It is written with no score known: both failures were infrastructure (denied self-check calls, then a login failure), counted before any score was read.
  • It changes no case, grader, exclusion, pass rule, loss rule or margin.

Arms (unchanged): before plugins/prototype at 5ed40526e0df7c2f8ac5cdcbf3eb050e0df898ec, after at the PR head d08dfee1137c1fbfb361c45b65dec4c16fb71a4a, the same pruned copies. Before posting, the frozen-grader check with these two refs printed nothing and diff -r of the pair's case directory printed nothing.

Run: case ed-existing-app-untrusted-css, 24 runs per arm, minimum 8 counted per arm, both arms launched together under separate locks, --concurrency 2, model and judge claude-opus-5-5, the same flags and PATH as pre-registration 2, ceiling 60 USD per invocation.

Validity and exclusions: as pre-registration 2. run-validity.py <file> --runs 24 --scaffolded and the trace search on each file before any score; a run with a denied tool call, a non-null error or a missing-program trace is excluded; two readings. A pair with an arm under its minimum, a partial file, a wrong run count, 3 or more errored 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 this registration with no verdict, the hold stays, and it waits for the owner.

Decision rule: as pre-registration 2. A run passes at 0.8 or above; LOSS if the one-sided Fisher exact test gives p under 0.05 on the counted runs or the mean score falls by 0.15 or more; a LOSS in either reading is a LOSS.

How the hold is decided: on pre-registration 2's handover pair, staging pair and after-only set (all gated valid) together with this css pair.

  • Non-inferiority: noise-report.py <after> --baseline <before> --margin 0.05 on one merged file per arm holding the handover and staging cases from pre-registration 2 and the css case from this run.
  • Outcome actions are those of pre-registration 2 with the owner's recorded decision on the non-inferiority outcome: no LOSS, no after-only defect, and non-inferiority shown or the measured change at or above -0.05 lifts the hold; a LOSS, an after-only defect or no verdict here keeps it.
  • The handover, staging and after-only scores may be read while this pair runs. If they already show a LOSS or a defect, the hold stays whatever this pair shows.

Power (exact binomial sums, equal arms): at 14 counted per arm, the number the relaunch's exclusion rate suggests, a drop from 1.0 to 0.67 is found with power 0.73; at 24 counted, 0.94; at the minimum of 8, 0.25. The result states the counted runs and the power at that count.

Beside it: nothing else of this session. The eval login's weekly window read 89% used at 4:25 AM EST; a limit stop voids the pair as above.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Result: before/after eval of the notes kinds and re-location (picker slice S3), pre-registrations 2 and 3

Verdict: no LOSS in either reading on any case, non-inferiority shown at margin 0.05, no after-only defect. By the registered outcome action do-not-merge comes off and the PR goes through ready, review and merge.

Arms: before plugins/prototype at 5ed40526e0 (main), after at the PR head d08dfee113 (addendum 3). Model and judge claude-opus-5-5, Claude Code 2.1.325. Every file was gated by run-validity.py and the trace search, and its exclusions written down, before its score was read. The frozen-grader check printed nothing before the first launch, before registration 3 and before scoring. No trace matches a missing program.

Loss cases (a run passes at 0.8 or above; p is the one-sided Fisher exact test of "after passes less often")

Case Reading Before pass After pass p Mean before Mean after LOSS
ed-offline-mockup-handover registered 27 of 29 28 of 28 1.00 0.885 0.905 no
none excluded 43 of 45 45 of 45 1.00 0.894 0.901 no
ed-shared-interview-staging both (no exclusion) 27 of 30 27 of 30 0.66 0.867 0.873 no
ed-existing-app-untrusted-css (registration 3) registered 21 of 21 19 of 19 1.00 0.964 0.941 no
none excluded 24 of 24 24 of 24 1.00 0.964 0.943 no

Non-inferiority (noise-report.py <after> --baseline <before> --margin 0.05 on one merged file per arm: handover, staging, css from registration 3), as the tool prints it:

with-arm change (this minus baseline), paired over 3 cases: -0.00, 95% interval -0.02 to +0.02
compare verdict: non-inferior at margin 0.05 (the interval's lower end -0.02 is at or above -0.05)

The tool cannot leave runs out, so this line includes the runs excluded for a denied call.

After-only: ed-notes-copyout-import 6 of 6, ed-notes-relocate-not-found 6 of 6, every run at 1.0. No defect.

Validity and exclusions

File Runs Errors Excluded (denied call) Counted Minimum Ran (EST)
staging before 30 0 0 30 20 9:04 to 10:45 PM Nov 14
staging after 30 0 0 30 20 9:04 to 10:48 PM Nov 14
handover before 45 0 16 29 20 10:46 PM to 2:24 AM
handover after 45 0 17 28 20 10:46 PM to 2:16 AM
after-only 6 per case 0 0 6 per case 4 10:49 to 10:53 PM Nov 14
css before (registration 3) 24 0 3 21 8 4:34 to 5:54 AM Nov 15
css after (registration 3) 24 0 5 19 8 4:34 to 5:58 AM Nov 15

Each excluded run made one compound Bash call the sandbox denied, nearly all a cd ... && sed -i ... && node ... self-check. Both arms of each pair launched together under separate locks with --concurrency 2. Beside the staging pair: PR 16209's registration-3 evals and another session's eval. Beside the handover pair: the staging after arm until 10:48 PM, the after-only run, and another session's evals. Beside the css pair: nothing of this session.

What the numbers do not show

  • Per grader, nothing reaches p under 0.05. The largest move against the after arm is instruction-reported on the css case: 15 of 21 before, 10 of 19 after (p 0.18; none excluded 17 and 13 of 24, p 0.19). The case's mean fell 0.023, under the 0.15 rule, and every run still passed. On the staging case no-mktemp went 30 of 30 to 28 of 30 (p 0.25).
  • As expected in the registration, handover-shape fails in most handover runs of both arms (1 of 29 before, 4 of 28 after pass it), and snapshot-doctype in about half the staging runs of both arms (14 and 15 of 30). Both are properties of main as well as of this head; issue 16221 covers the handover line.
  • Power at the counted runs (exact binomial sums by this session): css, a drop from 1.0 to 0.67 is found with power 0.92; handover, 0.93 to 0.6 with 0.88; staging, 0.9 to 0.6 with 0.80 and 0.9 to 0.7 with 0.49. A moderate loss on the staging case can go unseen.
  • The staging before arm passed 27 of 30 here against 0.56 to 0.63 in the main-against-main run: main's Placement text changed in between (PR 16269); whether that is the cause was not measured.

What does not enter the verdict

  • css under pre-registration 2 ended with no verdict: its first pair was short and its relaunch lost three runs to OAuth token revoked at 4:24 AM EST. Those four files are unread. Registration 3, posted before any score was read, ran the pair again; that third attempt was this agent session's decision, not the owner's, and is logged for his review.
  • Discarded unread: the first handover pair and the first staging runs on the old arms (addendum 3), and the staging pair voided by the login limit.

Cost (list-price estimates): counted files 384.48 USD (handover 200.84, staging 102.01, css 78.39, after-only 3.24). Unread or void: 115.56 USD for the four css files of pre-registration 2, 3.52 USD for the limit-voided staging after arm (its before arm was stopped and wrote no file), and 229.26 USD for the files on the old arms.

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 15, 2026 11:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 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-15T11:05:34.833350Z d08dfee 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: d08dfee113

ℹ️ 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/relocate-note.mjs Resolved
Comment thread lib/ui-feedback/relocate-note.mjs Resolved
@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 43706947842

Failed GitHub API calls

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

… restore its scroll

A text note whose quote is found once, but outside the element the test id
or path chose, is now unconfirmed (`quoteElsewhere`): a row inserted since
the note was taken can leave the structure naming another element. The
relocation script also scrolls the frame to the note's saved scroll position
after the view and data are restored, and reports `restored.scroll`.

Co-Authored-By: Claude Fable 5.2 <[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

Copy link
Copy Markdown
Member Author

Addendum 5: a review fix moves the head, so the after-only set runs again on it

Posted 2026-11-15 before the push and before any run. do-not-merge is back on until this reads no defect. This adds a check; it loosens nothing.

What changed. Codex left two findings on the measured head d08dfee113, both valid on reading the code, both fixed in 4a3230572c:

  • a text note whose quote is found once, but outside the element the test id or path chose, was reported confirmed; it is now unconfirmed (quoteElsewhere);
  • the note's saved scroll position was recorded and never used; relocation now scrolls the frame there and reports restored.scroll.

Under plugins/prototype the commit changes notes-bridge/relocate-note.mjs (the copy of lib/ui-feedback/relocate-note.mjs) and one assertion in skills/explore-directions/scripts/relocate-browser.test.sh. It changes no skill text, no eval case and no grader, so the frozen-grader check still prints nothing and the three loss cases, whose prompts ask for a mockup and not for a note to be re-located, are not run again.

What runs. The after-only set (ed-notes-copyout-import, ed-notes-relocate-not-found), the cases that work with notes, on plugins/prototype at 4a3230572c: 6 runs each, minimum 4 counted each, same model, judge, flags and PATH, --concurrency 2, ceiling 15 USD. Validity, exclusions and the one relaunch are as in pre-registration 2. A case passing on fewer than 4 of its 6 counted runs is a defect and the hold stays; otherwise do-not-merge comes off again.

Limit, stated before the run. Neither case pins a text note or a scrolled view, so this run can show that the fix broke nothing those cases see; it cannot show the two fixes work. That evidence is the unit tests (both new tests fail on the old script and pass on the fix) and the two browser tests.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #16088, incremental (4a32305 → 4ba1eb0)

This push has no security issues. This lane already reviewed an earlier head of this pull request, so this review covered CRITICAL and IMPORTANT issues only.

critical-findings: 0

What I checked

  • Region-pin pointer handlers (lib/ui-feedback/proto-pin.js, plugins/planning/shared/web/proto-pin.js, plugins/prototype/notes-bridge/proto-pin.js):
    • On pointerdown, the handler now saves the region box it had before.
    • On pointerup, if the press never became a drag of at least 4×4 pixels, it puts that saved box back and redraws it.
    • The new code only stores numbers in local state and draws them. It adds no message, no network call and no input that crosses a trust boundary.
    • sendRegion() runs under the same conditions as before.
    • The stop(e) call that ends the event still runs first in the handler.
  • Copies: plugins/prototype/notes-bridge/proto-pin.js has the same change as the first file. It is a client script in a plugin directory, not a hook, workflow, settings file or manifest, so its location doesn't change what the code does.
  • Browser test (plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js): it adds one Playwright click and one check against a local fixture page.
  • Trusted paths and trust controls: no file in scope matches a trusted-path glob. The push changes no trust control, plugin manifest or standing instruction.

Coverage

I read every hunk of the 3 files listed in .claude-lane/to-read.txt.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental code review: 4a32305 → 4ba1eb0 (blocking only)

I read every hunk of the 3 files in scope: lib/ui-feedback/proto-pin.js, plugins/planning/shared/web/proto-pin.js, and plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js. The job counts plugins/prototype/notes-bridge/proto-pin.js as read because its hunk is identical to the lib/ui-feedback source. This lane already reviewed an earlier head, so this review reports blocking findings only.

This push: no new blocking findings. It fixes the summary finding from the earlier review: in region mode, a click without a drag threw away the box the arrow keys were moving.

  • The fix. On pointerdown, the handler now saves the current region in drag.was (proto-pin.js L268). On pointerup, when the drawn box is under 4 px in either dimension, it puts that box back and redraws instead of leaving a 0×0 box (L270).
  • Key events after the fix. The restored box is the same object nudge changes, so later arrow keys keep moving it and Enter's sendRegion sends it.
  • Mode changes. A mode message during a drag still clears drag (L307), so an old box cannot come back across a mode change.
  • Planning copy. plugins/planning/shared/web/proto-pin.js has the same change.
  • Browser test. The new check clicks inside the frame after the keyboard moves, then compares the dashed outline's box before and after the click. On the old script the box would read [x, y, 0, 0] at the click point, so this check would fail there. I reasoned this from the code; I ran nothing.

Restated summary finding from the earlier review: fixed by this push, so it is not raised again.

Settled threads: both threads (the quote found elsewhere, and the scroll not used) are on relocate-note.mjs, which this push does not touch. I raised neither again.

Closing issue: none.

Manifests: no plugin.json or marketplace.json change in this push.

Verifier dropped 0 of 0 candidates.

In region mode a pointer press replaced the keyboard's starting box with an
empty one, so a click to focus the frame left nothing for the arrows to
move and Enter sent nothing. A press that ends under 4 by 4 pixels now
restores the box it found.

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

Copy link
Copy Markdown
Member Author

Addendum 6: addendum 5's result, and the same check for a second review fix

Posted 2026-11-15 before the push of the second fix and before its run. do-not-merge stays on until that run reads no defect.

Addendum 5's run (after-only set on 4a3230572c, 6:10 to 6:15 AM EST, nothing else of this session beside it): the file was gated first and is valid, with no errored run, no denied call, no missing-program trace and no exclusion. ed-notes-copyout-import passed 6 of 6 and ed-notes-relocate-not-found 6 of 6, every run at 1.0. No defect. 3.26 USD list price.

Second fix. The code-review lane found that in region mode a click without a drag replaced the keyboard's starting box with an empty one, so Enter sent nothing. Valid on reading proto-pin.js; fixed in 4ba1eb0665 (a press that ends under 4 by 4 pixels restores the box it found). The new browser check fails on the old helper (420,370,160,100 -> 40,760,0,0) and passes on the fix. Under plugins/prototype the commit changes notes-bridge/proto-pin.js (a generated copy) and the browser test's driver script. No skill text, eval case or grader changes.

What runs. The same after-only set, the same way (6 runs each, minimum 4 counted, ceiling 15 USD, --concurrency 2), on plugins/prototype at 4ba1eb0665. Fewer than 4 of 6 counted passes on a case is a defect and the hold stays; otherwise do-not-merge comes off. As before, these cases can show the fix broke nothing they see, not that the fix works; the browser test shows that.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Reply to the claude-review summary (both rounds).

# Finding Classification Basis
1 In region mode a click without a drag throws away the keyboard's starting box, and Enter then sends nothing VALID (fix now) verified: lib/ui-feedback/proto-pin.js at 4a3230572c, L268 sets region to a 0 by 0 box on every pointerdown, L269 leaves it so when the drag is under 4 px, and sendRegion returns on region.w < 1; reproduced in the browser test, where the box read 420,370,160,100 -> 40,760,0,0 after one click
2 (left to the security lane, not counted) note.schema.json admits textQuote on any anchor, not only a text note's VALID (defer) verified: $defs.anchor carries textQuote and both anchor and elements.items point at it. The security lane read the same paths and found no new one (the host page strips it outside a text note's anchor; only the person's own paste or a token holder can supply it). The schema has no kind-dependent keyword, so the fix needs a rule the shared validator subset lacks: structural, its own change
  1. Fixed in 4ba1eb0: a press that ends under 4 by 4 pixels restores the box it found. Test: "a click without a drag keeps the region's box" in notes-kinds-browser-take.js fails on the old helper and passes on the fix; planning's ui_proto.js (91) and ui_proto_versions.js (29) still pass against the changed copy.
  2. Recorded under ## Follow-ups in the PR body (issue filing is paused in this repository).

@kyle-sexton

Copy link
Copy Markdown
Member Author

Addendum 6's result: no defect on 4ba1eb0665; the hold comes off

The after-only set ran on plugins/prototype at 4ba1eb0665 from 6:20 to 6:26 AM EST 2026-11-15, with nothing else of this session beside it. The file was gated before its score was read and is valid: no errored run, no denied call, no missing-program trace, no exclusion. ed-notes-copyout-import passed 6 of 6 and ed-notes-relocate-not-found 6 of 6, every run at 1.0. 3.58 USD list price.

By addenda 5 and 6 do-not-merge comes off. The head that merges is 4ba1eb0665: the measured head d08dfee113 plus the two review fixes, which change no skill text, eval case or grader (git diff --stat d08dfee113 4ba1eb0665 -- plugins/prototype/evals plugins/prototype/skills/explore-directions/SKILL.md plugins/prototype/skills/explore-directions/reference prints nothing). The three loss cases were measured on d08dfee113 and not run again; both review lanes report 0 findings on 4ba1eb0665.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit ec897ee Nov 15, 2026
79 of 80 checks passed
@kyle-sexton
kyle-sexton deleted the feat/prototype-feedback-s3 branch November 15, 2026 11:36
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 4, survived 2, timeout 0, no coverage 0, invalid 0, not run 1.
Covered-code score 67%; mutation score 67%.

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

Surviving mutants

Location Operator Disposition Cause
lib/ui-feedback/note-model.mjs:45 ROR unclassified none
lib/ui-feedback/notes_bridge.py:349 SBR unclassified none

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