Skip to content

feat(ui-feedback): tell a removed control from an unmarked page and name unmarked region elements - #17611

Merged
melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-17010-44684831038-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-17010-44684831038-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17010

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Relocation now reports a page that marks no control apart from one whose control was removed. The frame helper's replay() returns -1 when a press finds no control and the page marks no data control; setControls() already returns -1 with no controls runtime. relocate-note.mjs lists such parts in a new unmarked field and leaves them out of restored. A positive missed count still gives restored.<part> false, and a missing frame helper (fallback now null, not -1) also gives false. A region note over content with no test ids now lists the holding element's children it crosses as its elements; test-id elements still win when the region crosses any. I chose the record-the-elements option over a could-not field because elements items are already anchors whose test id is optional (note.schema.json $defs.anchor), so the schema needs no new field. Only the rule and description change, and x-version moves 4 to 5. The canonical lib/ui-feedback files were synced into plugins/prototype and plugins/planning with the sync script.

Not verified

  • node --test over lib/ui-feedback (note-model.test.sh, relocate-note.test.sh) was not executed: this lane's Bash runs only the named wrappers, so no node run was possible. Left to the PR's CI. The new tests' fail-before/pass-after was established by reading, not by running
  • tidy skipped: the change touches lib/, a listed shared path, and spans more than one area (lib, docs/contracts, plugins/prototype, plugins/planning)
  • comment-hygiene and comment-lint did not run here (fetch blocked, CI only); the change edits three existing doc comments in proto-pin.js (file header, replay JSDoc, sendRegion JSDoc) to keep them true and adds no new comment
  • the browser suites under plugins/prototype/skills/explore-directions/scripts/*-browser.test.sh were not run (need playwright); their assertions were read and stay consistent with the change
  • sync-shared-copies --check-bump refused to run from outside the repository; the vendor-version-bump check is CI-only. Changelog fragments for prototype and planning are added
  • the 'records only the test-id elements' region test also passes on the old code: it guards the unchanged marked-content rule, while the unmarked-content test is the one that fails before the change
  • untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change

Fix

  • lib/ui-feedback/proto-pin.js: replay() returns -1 when a press missed and the page marks no [data-data-control]; sendRegion() falls back to the holder's crossed child elements when no test-id element is crossed; header and JSDoc updated to match
  • lib/ui-feedback/relocate-note.mjs: a -1 from replay/setControls goes to out.unmarked ("data", "controls") instead of restored false; the no-frame-helper fallback is null, so it still reads restored false
  • lib/ui-feedback/relocate-note.test.mjs: new test for an unmarked page vs a removed data control; controls test split into removed (false), no frame helper (false) and no controls runtime (unmarked); new test running the real evaluate callbacks without a frame helper; evaluate stub passes the…
  • lib/ui-feedback/note-model.test.mjs: runs proto-pin.js in node:vm against a stand-in DOM, draws a region over unmarked paragraphs and asserts the posted elements (and that the note passes the schema); second test keeps the test-id-only rule for marked content; two more tests call the real replay(): -1 for a missed step on a page that marks no data control, 1 when the page marks a control that does not match
  • lib/ui-feedback/note.schema.json: description states the elements rule; x-version 4 -> 5
  • lib/ui-feedback/host.html: region summary says 'element(s)', not 'marked element(s)'
  • docs/contracts/ui-feedback/README.md: re-location section states restored vs unmarked and the region elements rule; uiFeedbackRelocate lists setControls; re-location steps name the controls
  • plugins/prototype/notes-bridge/{proto-pin.js,relocate-note.mjs,note.schema.json,host.html}, plugins/planning/shared/web/proto-pin.js: generated copies from sync-shared-copies
  • plugins/prototype/skills/explore-directions/reference/feedback.md: step 6 explains unmarked; region bullet states the fallback elements rule
  • plugins/prototype/skills/explore-directions/reference/controls.md: restored.controls false vs unmarked controls
  • .changes/prototype/work-resolve-issue-issue-17010-44684831038-1-8c6c2a66.md: minor fragment
  • .changes/planning/work-resolve-issue-issue-17010-44684831038-1-792d695a.md: patch fragment

Verification

The runner ran each check from the base copy against d5974d0:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 5 fragments valid
  • check-changed-skills: explore-directions PASS, 0 errors (6 pre-existing size/description warnings)
  • check-affected: 14 passed, 9 skipped (comment-hygiene and size-check could not run here; others CI-only)
  • sync-shared-copies --check: all 992 registered copies match their canonical sources
  • fresh-context review subagent: no correctness bugs; traced the vm fake-DOM test and the relocate tests line by line against the code and found they run and assert what the code produces. It flagged two changelog/doc sentences that overclaimed and an untested null fallback; both are fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44684831038

The two replay() tests in note-model.test.mjs were added by a review round after these checks and have not been run here; CI runs them on the new head.

Left out: the items under Not verified.

Related

#17010

Lane-Activity: work-resolve-issue/resolve-issue
@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 44687536354

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17611 (incremental, blocking only)

I found no security issues in this push.

What I read: every hunk of the incremental change to the three files in scope: lib/ui-feedback/fixtures/notes.json, lib/ui-feedback/proto-pin.js and plugins/planning/shared/web/proto-pin.js. I also checked the generated copy plugins/prototype/notes-bridge/proto-pin.js. Its hunk is the same as the planning copy's, and at that path the code does nothing different.

What changed:

  • proto-pin.js, the canonical file and its generated copies. The push replaces the 10-line header comment with an earlier 15-line version. That version describes the pin helper: the host appends it as an inline script, it runs in a sandbox that allows scripts but not same-origin, it talks to the host by postMessage only, and it never sends the page's markup. No code line changes. Every hunk ends at the unchanged (() => { if (window.parent === window) return; ... lines.
  • fixtures/notes.json. The push adds one test fixture: a region note over an article with two p children and no test ids. Its fields (cssPath, rect, text) match the note anchor shape. It is static test data and nothing runs it.

Why this is safe:

  • Comments and a JSON fixture cannot run, so nothing new executes. The postMessage handling, the message checks and the sandbox setup are all unchanged.
  • No trust surface is touched. None of the files matches a trusted-path glob. The push changes no workflow, token request, kill switch, merge hold, trust-control action or plugin manifest. It also removes no standing instruction.
  • The canonical file and both generated copies get the same text, so they stay in sync.

This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings, and it found none. The earlier summary comment reported no issues, so there is nothing to restate.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

claude-lane: claude-review

Comment thread lib/ui-feedback/proto-pin.js Resolved
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #17611, incremental (ddc84ef → b4b652e)

Blocking only. This lane has already reviewed earlier heads of this PR, so this pass reports only blocking findings. It found none.

What changed in this push

  • lib/ui-feedback/proto-pin.js: the 10-line header that the last push rewrote is replaced with main's header. It reads word for word as main's except for one edit. The region sentence now says what a region reports when it crosses no test-id element: the holder's child elements it crosses. A Contract: link line follows the header.
  • Generated copies: the same header is in plugins/planning/shared/web/proto-pin.js and plugins/prototype/notes-bridge/proto-pin.js, below each file's // GENERATED from ... banner. Both copies' changes are identical to the canonical file's.
  • Code: no runtime code changed. The script still opens with its (() => { if (window.parent === window) return; guard.
  • New fixture: lib/ui-feedback/fixtures/notes.json gains a region note whose elements carry only tag and cssPath. This covers the no-test-id case the header describes.

Fixture check. I checked the new fixture by hand against lib/ui-feedback/note.schema.json:

  • Each elements item is the anchor definition. That definition requires only tag and cssPath; testid, testidIndex and role are optional.
  • Both cssPath values match the anchored tag:nth-of-type(n)( > ...)* pattern.
  • The rect has all four of x, y, w and h, and each value is a small percent.

So the fixture should validate. The note-model and relocate-note suites passing (167/167) is the author's claim; I did not run them.

Settled threads.

  • The replay() -1 test-coverage thread is marked lines changed since resolution: no and stays settled.
  • The header and fixture thread on proto-pin.js:1 was resolved at this head with an owner reply that says what was done. This push is that fix.

Other checks

  • Loosened checks: this push changes no test, assertion or check; it only adds a fixture. The prompt had no loosened_check_verdict: or loosened_check_patterns: lines, so the defaults were used: verdict fail, no consumer entries (Loosened-check verdict: fail (default, no wrapper lines); patterns: 0). It had no loosened_check_decision_record: line, so the citation requirement was not checked.
  • Manifests: no plugin manifest changed.
  • Embedded text: none found in the review inputs.
  • Spend and hold: nothing here spends credits, and no hold is needed.

I read the whole change in all 3 files on the to-read list. I ran no tests; everything above comes from reading the diff, the fixture and the schema.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head ddc84efdf3005624cc7ce93a736950fc645c5036. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/fix-ci is failure, pr-unblock/address-feedback is
  failure), which clears when the lane runs again

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44688883346

Failed GitHub API calls

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

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM653Z47
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed a548b8f
Run 44688883346

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step skipped
Commits pushed none (read lane)
Run 44689574116

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on a548b8f.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44688883346

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44691932157

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 4812511
Run 44691932157

Failed GitHub API calls

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

Comment thread lib/ui-feedback/proto-pin.js Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44695483749

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed ddc84ef
Run 44695483749

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on ddc84ef.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44695483749

Failed GitHub API calls

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

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a pr-verify note open (uncertain, deferred or answered incorrect, or still open after the round cap and one fresh fixer round); pr-verify judges the next head afresh. The lane sets no label: the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17611 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44695483749

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 1
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44697410468

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of max 4 on ddc84ef.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44697410468

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44698246773

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44697410468

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44698246773

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped fix-ci on this pull request: the lane could fix a failing check only by weakening a test, which is refused, so it runs one fresh fixer round on this head that must keep the test's assertions. The lane sets no label: the run ends in a failing pr-unblock/fix-ci status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17611 -f activity=fix-ci

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44698246773

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 1
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44701740187

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 4 of max 4 on ddc84ef.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44701740187

Failed GitHub API calls

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

…gion fixture

Restore main's proto-pin.js file header word for word, edit only its
region sentence for the holder's-children fallback, and link the
ui-feedback contract so the edited header passes comment-lint. Add a
valid region-note fixture whose elements carry only tag and cssPath.
Regenerate the two proto-pin.js copies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44701740187

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44703877918

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head b4b652e1a0109db2ce1c8fe0ecc29caf57be8363, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=b4b652e1a0109db2ce1c8fe0ecc29caf57be8363 rubric=10.4.2 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit e25335c Nov 20, 2026
63 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17010-44684831038-1 branch November 20, 2026 08:58
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit e25335c54c65c7a16d8410a211c0f6491dc6ac00; later checks count it verified from this comment.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ui-feedback: note relocation cannot tell a removed control from an unmarked page

1 participant