Skip to content

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

Closed

Description

@kyle-sexton

Problem

Note relocation cannot tell two lost targets apart (#16088 Follow-ups):

  • restored.data reports the same thing for a page that never marked a control and for a page whose control was removed.
  • A region note's elements lists only elements that carry a test id, so a region over unmarked content records no elements.

Done when

  • Relocation reports a removed control differently from an unmarked page.
  • A region note records its covered elements without test ids, or states in the note that it could not.
  • Each has a unit test in lib/ui-feedback/relocate-note.test.mjs or note-model.test.mjs that fails before the change.

Source: workshop 03 (planning) close-out audit.

Activity

  1. changed the title [-]prototype: note relocation cannot tell a removed control from an unmarked page[/-] [+]ui-feedback: note relocation cannot tell a removed control from an unmarked page[/+] on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  3. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: lib/ui-feedback relocate-note.mjs, proto-pin.js, note.schema.json (x-version 4 to 5), fixtures, contract docs and tests; read by ui-feedback note import users.
    Reversible: yes; revert the change, though notes written with a new field would carry it.
    Open questions: none
    Understood: relocation should report a removed control differently from an unmarked page, and a region note should record covered elements without test ids or say it could not, each with a test that fails before the change. The refinement comment already lays out the approach. No duplicates or merged fixes found; #16088 is the related merged work.

    Automated triage. A maintainer reviews it.

  4. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; intake's refinement of this body is due and may supply them.

  5. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Relocation reports a removed control differently from a page that marked none, and a region note records its covered elements even without test ids or says in the note that it could not, each with a failing-before unit test.

    Acceptance criteria

    • In lib/ui-feedback/relocate-note.mjs the replay and setControls results keep the helper's -1 (no frame helper, the page never marked controls) apart from a positive missed count (a control removed), and the output reports the two differently, e.g. restored.data and restored.controls are false only for a removed control and an unmarked page sets a separate field such as out.unmarked.
    • A test in lib/ui-feedback/relocate-note.test.mjs where the helper is absent asserts the unmarked-page report; the existing assertions at relocate-note.test.mjs:249-251 and :270-272 are updated to say which case each is.
    • A test in relocate-note.test.mjs where the helper returns a missed count above 0 asserts the removed-control report and differs from the unmarked-page one.
    • lib/ui-feedback/proto-pin.js sendRegion (around line 250) records the elements a region crosses without test ids, as anchors from anchorOf, or sets a field in the posted note stating it could not.
    • If a new field or a changed elements rule is added, lib/ui-feedback/note.schema.json allows it, its x-version moves from 4 to 5, and fixtures/notes.json and the ui-feedback contract docs state it.
    • A test in lib/ui-feedback/note-model.test.mjs validates a region note with the new elements or could-not field, and fails against the current schema.
    • Each new test fails when run against the code before the change and passes after it.
    • The lib/ui-feedback tests run by note-model.test.sh and relocate-note.test.sh pass.

    External state: none

    Dependencies

    • none open: #​16088 (merged, closed) supplies the code this extends

    Related work

    Sources read

    • lib/ui-feedback/relocate-note.mjs:63-72: restored.data is missed === 0 and restored.controls is setControls === 0, and the helper returns -1 when window.uiFeedbackRelocate is absent, so an unmarked page and a removed control both give false.
    • lib/ui-feedback/relocate-note.test.mjs:247-251: tests expect restored.data false both for missed controls and for no frame helper.
    • lib/ui-feedback/relocate-note.test.mjs:268-272: the same single false for controls.
    • lib/ui-feedback/proto-pin.js:250-251: sendRegion collects only [data-testid] elements into elements, so unmarked content gives an empty list.
    • lib/ui-feedback/note.schema.json:17: elements is an array of anchors capped at 10; x-version is 4 at line 6.
    • lib/ui-feedback/fixtures/notes.json:251-258: a valid fixture with an empty elements list.

    Automated refinement by the lanes App. Intake triages the issue again with it.

  6. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"99b09fc0630fd7845eec924950ee1db07dfe9b67dc4a4d80a0aa5c9b6e42c53b","body_sha256":"74ab6327c36d0b82f0387c9be06d1df517c8b28a581a9e502fe116f9480d5504"}

  7. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"99b09fc0630fd7845eec924950ee1db07dfe9b67dc4a4d80a0aa5c9b6e42c53b","body_sha256":"74ab6327c36d0b82f0387c9be06d1df517c8b28a581a9e502fe116f9480d5504"}

  8. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor
    No description provided.
  9. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 44324707926, the work-resolve-issue run that agent-ready started, before it finished; that run ended at 2026-11-18T15:37:26Z. work-unblock has now removed and added agent-ready back to start a fresh run. A kill-switch refusal is no fault in this issue or the lanes, so it never counts against later re-fires; after limits.limit-stops-per-issue of them since a person last added agent-ready or a run last reported, work-unblock waits the same limits.stranded-backoff-hours kill-switch hours after each refused run before re-firing it, never longer.

  10. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44623116144, the work-resolve-issue run that agent-ready started, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-19T22:11:44Z. work-unblock has now removed and added agent-ready back to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or the kill-switch wait.

  11. github-actions commented on Nov 20, 2026

    @github-actions
    Contributor
    No description provided.
  12. github-actions commented on Nov 20, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions