Repository navigation
feat(prototype): pin notes to text and regions and import copied notes - #16088
Conversation
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 Arms
Frozen-grader check. Run before the first launch and again before any score is read; it must print nothing:
Loss set (3 cases, both arms). Each builds an HTML mockup, so the two
Left out, with the reason:
After-only set (after arm only; no verdict on loss).
A working
Runs and order. Launch commands (from 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.jsonflock -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.jsonflock -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.jsonflock -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.jsonflock -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.jsonJudge calibration (done before posting). The new Validity and exclusions, decided before any score is read
Decision rule (loss set, on counted runs)
Expected outcomes, stated before the run
Outcome actions
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 |
Addendum to the pre-registration: the handover pair is relaunched at 12 runs per armPosted before the relaunch and before any score of this eval has been read. What happened. The first invocation, What the registration says. A short pair is relaunched once; a second short pair ends that set with no verdict. The first 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 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 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. |
Addendum: a second reading with no run excluded for a denied callPosted before any score of this registration has been read. It only tightens: nothing in it can turn a LOSS or a no-verdict under the posted rules into a pass. Why. With a working What is added.
What this does not fix. A session whose check script was refused may then behave differently from one whose script ran, so the second reading has its own distortion. Neither reading is a measurement of an unrestricted session; the two together bound the effect of the exclusion. |
Addendum: two evals of this session may run at the same timePosted before any score of this registration has been read. It changes no rule about what counts, what passes or what is a loss. What changes. The registration said this session's evals run one at a time. The desk's rule now allows two at once (1-minute load under 24 and at least 16 GB available before each launch), so from about 2:40 AM EST 2026-11-14 a second eval of this session runs beside the first, each under its own lock. The evals in the queue are PR 16069 round 3, PR 16088 and the PR 15868 re-measure. Both arms of every case still run on the one machine. What it can do to a comparison. The arms of one pair may not have the same neighbour: PR 16069's loss-before ran alone for its first 37 minutes, and its loss-after will run with a neighbour throughout. A loaded machine can only add timeouts or slow tool calls. A timed-out run is excluded under the posted rules, and the minimum-counted and relaunch rules stand, so the overlap can cost a verdict but cannot turn a loss into a pass by any rule change. What the result states. Each command's start and end time, the 1-minute load and available memory at its launch, and which other command ran beside it. |
Result: 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 Verdict: LOSS by the registered rule, in both readings, on two cases. Order, times (EST, 2026-11-14) and neighbours
Validity and exclusions (written down before any score was read; the missing-program and skill-load search listed no trace in any file)
Every other validity check passed in every file. Each denial is one compound Bash call of the form Scores (a run passes at 0.8 or above)
After-only set
What the losses do and do not show
Next, per the registration. 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. |
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. 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 Runs. 12 per case per arm, 48 in all. Model Validity and exclusions, decided before any score is read. As in the eval above: What is reported
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:
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. |
Addendum to the main-against-main registration: no case is dropped on these numbersPosted 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, 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:
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. |
Result: main against main on the two losing casesRun under the registration and its addendum. Both arms are
Finding: on identical text, the loss rule this PR was held on fires on Validity and exclusions (written down before any score was read; the missing-program and skill-load search listed no trace)
Each denial is one refused Bash call: eight compound Scores (a run passes at 0.8 or above)
Pooled pass rate on main (A1 and A2), 95% Wilson interval
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
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
Next
Cost (list-price estimate from the result files): 45.44 USD A1, 44.71 USD A2; 90.15 USD. |
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]>
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. What changed since the first eval
Arms
Frozen-grader check. Before the first launch and again before any score is read, this prints nothing:
Sets and runs (model
Validity and exclusions, decided before any score is read
Decision rule
How the run count and rule follow from measured numbers (as the main-against-main registration required)
Outcome actions
Expected, stated before the run. Under the stricter 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. |
Addendum to pre-registration 2: owner decision on the non-inferiority outcomePosted 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 This loosens one outcome action of the registration ("No LOSS but non-inferiority not shown: ... |
Addendum 2 to pre-registration 2: the handover pair is relaunched, and the remaining invocations run two at a timePosted 2026-11-14 7:03 PM EST. No score of this run has been read: both handover files were gated by 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 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 This changes no case, grader, exclusion, pass rule or loss rule. More runs raise the test's power; they do not move its threshold. |
Addendum 3 to pre-registration 2: both arms move to the new mainPosted 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 New arms
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 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. |
Note on eval 2: the staging pair is relaunched after a login limit stopPosted 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. |
Addendum 4 to pre-registration 2: the css pair is relaunched at 24 runs per armPosted 2026-11-15 about 3:12 AM EST. No score of this run has been read: every file so far was gated by Gates so far (arms
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 ( 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 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. |
Pre-registration 3: the css pair alone, after pre-registration 2's css set ended with no verdictPosted 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 What happened to the css set under pre-registration 2
What this registration does, and what it does not
Arms (unchanged): before Run: case Validity and exclusions: as pre-registration 2. 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.
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. |
Result: before/after eval of the notes kinds and re-location (picker slice S3), pre-registrations 2 and 3Verdict: no LOSS in either reading on any case, non-inferiority shown at margin 0.05, no after-only defect. By the registered outcome action Arms: before Loss cases (a run passes at 0.8 or above; p is the one-sided Fisher exact test of "after passes less often")
Non-inferiority (
The tool cannot leave runs out, so this line includes the runs excluded for a denied call. After-only: Validity and exclusions
Each excluded run made one compound Bash call the sandbox denied, nearly all a What the numbers do not show
What does not enter the verdict
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
Lane run report
Failed GitHub API calls
|
… 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]>
Addendum 5: a review fix moves the head, so the after-only set runs again on itPosted 2026-11-15 before the push and before any run. What changed. Codex left two findings on the measured head
Under What runs. The after-only set ( 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. |
|
claude-security-review reviewed 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
CoverageI read every hunk of the 3 files listed in |
|
claude-review reviewed Incremental code review: 4a32305 → 4ba1eb0 (blocking only)I read every hunk of the 3 files in scope: 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.
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 Closing issue: none. Manifests: no 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]>
Addendum 6: addendum 5's result, and the same check for a second review fixPosted 2026-11-15 before the push of the second fix and before its run. Addendum 5's run (after-only set on 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 What runs. The same after-only set, the same way (6 runs each, minimum 4 counted, ceiling 15 USD, |
|
Reply to the claude-review summary (both rounds).
|
Addendum 6's result: no defect on
|
Post-merge mutation testingKilled 4, survived 2, timeout 0, no coverage 0, invalid 0, not run 1.
Surviving mutants
The run's summary has the full report. |
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, afterd08dfee113) shows no loss on the threeloss 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-notesblock; the session writes a pasted block to a file andnotes-bridge.sh importtakes it through the bridge's own validator.Fix
lib/ui-feedback/note.schema.json,x-version2 to 3):kindgainstextand
region;anchormoves to$defs.anchorand gainstextQuote(exact1 to 500,prefixand
suffixup 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()innotes_bridge.py) gainarray,items,maxItemsandboolean; the shared fixtures go from10 valid and 32 invalid notes to 14 and 55, all run by both.
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, datalog, viewport), the data log (presses of controls marked
data-data-control, and each contentset the switcher shows), and
window.uiFeedbackRelocate(replay,findQuote) so relocationuses the helper's own rules. The
pinnedmessage keeps its fields and addssnapshot.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 ```.
notes_bridge.py):import --file Ftakes 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.
relocate-note.mjs): viewport (size, color scheme, reduced motion), log replay(
restored.data), atextQuoterung aftercssPath,quoteMissingand unconfirmed when atext note's quote is gone, a region's shot is its box. S2's
decide,confirmedandcontainerrules are unchanged.reference/data-controls.mdgains "Seed is deterministic: recordi is generated from index i" and "Marked for notes" (
data-data-control);reference/feedback.mdgains Re-locating step 6, "Text and region notes", and "When the pagecannot reach the session: copy-out and import".
docs/contracts/rendered-views/README.mdrule 9 anddocs/contracts/ui-feedback/README.md(see below).scripts/notes-kinds-browser.test.sh(with-take.jsand-offline.js); S2's browser testasserts the two new
restoredparts.ed-notes-copyout-import(three deterministic graders, onellm, all withsamples; synthetic notes; no process outlives a Bash call).
proto-pin.jscopy). Noversionbumped.
test id or path chose is unconfirmed (
quoteElsewhere); relocation scrolls the frame to thenote's saved scroll position and reports
restored.scroll(4a3230572c); in region mode aclick that never becomes a drag keeps the box the keys were moving (
4ba1eb0665). No skilltext, eval case or grader changed; the after-only eval set was run again on each fix head.
Trust-relevant choices
anchor.textQuote, on a text note: theselection with whitespace runs collapsed and up to 64 code points of the scope's visible text
either side. The helper's element
labelis still never kept. The data log carries onlyop/n/nameenums and integers parsed from the page'sdata-data-controlmarks, never alabel.
maxLengths, then keeps only whatnote.schema.jsonadmits (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/noteand onimport.textContent, the quoteincluded. The relocation script returns rung names, counts and booleans, never the quote.
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.
allow-scriptsonly),PAGE_CSP(noconnect-src),the Host, Origin and token checks,
X-Frame-Options: DENY, the 64 KB body cap, per-fieldlimits and the 500-note cap.
importadds no network surface: it reads one file and refuseswhile 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'sproblems()(
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) andbridge.read_session,bridge.running,bridge.now_iso(
lib/session-bridge/session_bridge.py:730,:740,:76) incmd_import;MAX_NOTESfrom the schema andNotesHandler.max_body(the shared adapter's 64 KB) forimport's cap and file-size bound; no new limit;
anchorOf,pathOfand the percent box (proto-pin.js), now throughviewOfandpct;decide()(relocate-note.mjs:24) and the switcher'svs:showfor content steps.No new copy of a rule, limit, schema or helper: every limit is in
note.schema.json; the quoteand replay rules live once in
proto-pin.jsand relocation calls them in the frame. Named forreview:
notes-kinds-browser.test.shrepeats the scaffolding ofrelocate-browser.test.sh(pw,finish,result,code, the portsed), as S2's did of S1's.Deviations from PLAN.md's S3 text
proto-pin.js) and the host pagedata: {log: [["seed",10],...], toggles: {...}}data: {log: [{op, n?, name?}, ...]}; toggles are log steps (toggle:filter), content flips arecontentstepsdata-controls.mddata-data-controlrect: {doc, inAnchor}rectstays S2's percent box; a region'srectis its boxinAnchorhas no consumer yetcontrolsin the notefile://, the server stopped, or a cross-origin block), the panel's Copy all notes produces one block"file://keeps today's copy-out terminator; the plan'sfile://acceptance line is met as "with the server stopped"file://has no host page; the mockup keeps noconnect-src(owner answer Q378)viewportonly as datadpris carried, not setquoteMissingmakes a text note's match unconfirmed; a region shoots its boximportskips a note already in the log, and refuses while a server runsactions.jsonwould raceExisting non-skill lines changed:
host.html(script rewritten around the three kinds, thesentmap replaced bymine),proto-pin.js(anchorOfusesviewOf,rectOfusespct),notes_bridge.py(applyparser shared withimport), the fixtures file (reformatted byjson.dumps, one invalid fixture's kindtexttogeneral), the ui-feedback contract linesabove, and one assertion in
relocate-browser.test.sh. Skill files have 0 deleted lines (git diff --numstat:data-controls.md7 0,feedback.md50 0).Verification
At the head:
python3 -m unittest discover -s lib/ui-feedback -p 'test_*.py':Ran 32 testsOK(addsimport: 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, andstatuslists 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), takenbefore Seed 10, Clear and Reset ran in the open page, still finds its text there once
(
findQuotereturns 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-1012and that log, re-locates with the log replayed and the quote rungcandidates 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
importtakes (
{"imported": [5], "skipped": 4}).plugin copy, 4 FAIL (text and Seed-100 notes unmatched, both shots
share 0); with the quoterung disabled, 1 FAIL (no
textQuoterung).bash .../scripts/relocate-browser.test.sh:relocate-browser: all passed(15 PASS).bash .../scripts/harness-browser.test.sh:harness-browser: all passed(25 PASS).node plugins/planning/shared/tests/ui_proto.jsui_proto: 91 passed, 0 failed;ui_proto_versions.jsui_proto_versions: 29 passed, 0 failed;python3 -m unittest discover -s plugins/planning/shared/tests -p test_server.py -k pinRan 4 testsOK.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: noFAIL; the new case shows only the repo-wide
allowed_toolsWARNs 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 --checkclean after formatting.shellcheckon the new and changed scripts: clean.markdownlint-cli2on the changed markdown:Summary: 0 issues in 0 files.typoson the changed paths: clean.scripts/check-affected.sh --testsata740f9e92e:check-affected: 18 passed, 35 skipped over 36 changed files since 2ee75fd05acfbf79f7ab04e4867b7e11698e52d2. Run at867c56d905(before the grader fixes):--check-bumpandcheck-changelog-fragmentslines above.ed-notes-copyout-import/command-flagged(judgeclaude-opus-5-5, 3 runsper 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, at87418d08fb: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
.githubsuite.Related
Follow-ups
ed-notes-tracercannot run in a sandboxed eval; when it can, tighten itssamples/ensure-running.json.docs/contracts/ui-feedback/README.mdstill needs a file-table row fornote-model.mjs, thecontrols.schema.jsonrow saying it lands with the controls slice, the"Notes leave through the host page" bullet naming
srcdocand the policy put first, andview_bridge.pyamong the bridge app's copies.reference/feedback.md"Only with the person at this machine": add "single-user machine"./eventsinlib/session-bridge/session_bridge.pytakes noSec-Fetch-Sitecheck; requireSec-Fetch-Site: same-originfor/events.prerequisites.json'snoderow does not mention relocation, andplaywright-cliis notdeclared for prototype.
restored.datareports a step it could not press, but the agent cannot tell a page whosedata bar was never marked (written before this rule) from a removed control; a later slice may
say which.
elementslists only test-id elements; a region over unmarked contentcarries its box and holder only.
note.schema.jsonadmitstextQuoteon any anchor (an element or region note'sanchor,and each
elements[]anchor), while the contract names it only on a text note'sanchor.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