Skip to content

feat(prototype): mount and remove the real-stack notes harness, with bridge test and eval - #17881

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17751-44887471399-1
Nov 21, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17751-44887471399-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17751

Summary

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

Adds a bridge loop test showing a note taken in a --dev-origin (real-stack) session reaches the session through the bridge as data, while a post from the dev origin itself is refused. Defines the real-stack notes harness in explore-directions skill text (reference/real-stack.md, additions only): one prototype-harness/ directory holding copies of proto-pin.js, harness-fence.mjs and dev-origin.mjs, plus only whole added lines in kept files, every file and line marked data-prototype-harness. Step 5 removes it and confirms git grep -n data-prototype-harness prints nothing; the new scaffold eval ed-real-stack-harness-removed grades that removal. Design choice and basis: no landed part defined the marker or how the helper reaches the route, so the harness follows the existing sub-shape A mount-block rules (dev-only, fails closed, one greppable marker) and the contract's no-relay-frame design. Copies sit in the app because harness-fence.mjs imports dev-origin.mjs and the plugin root lies outside the app's bundler root. Whole-line marking means removal can never break a line the app keeps.

Not verified

  • python3 -m unittest test_notes_bridge (the new real-stack loop test included) was not run: this lane's shell runs only the named wrappers. Left to the PR's CI
  • The eval case ed-real-stack-harness-removed was not run, and no before/after eval run was registered: it needs model runs. The CI eval-cases validator (validate-cases.py) and the plugin-eval job check it; whether git grep -n data-prototype-harness prints nothing after step 5 in the scaffold is…
  • No browser test drives a real cross-origin dev-server frame end to end (frame -> host page -> bridge). The frame-to-host leg stays covered by frame-channel.test.mjs and the bridge leg by the new loop test
  • Tidy was skipped: the change touches lib/ (a listed shared path) and has 15 changed files, over the 10-file cutoff
  • The parent #16411's grep of the scaffold's build output for the marker is in the real-stack.md text but no grader checks it: that item was not copied into this part's done-when

Fix

  • lib/ui-feedback/test_notes_bridge.py: new TestLoop test: ensure-running --dev-origin, host page framing the dev origin, token via the same-origin route, a note POST with Origin = dev origin refused 403 (bad host or origin), the same note from the bridge origin delivered by watch.sh under the data…
  • plugins/prototype/skills/explore-directions/reference/real-stack.md: new 'The notes harness' section (addition only): starting the bridge with --dev-origin and how to write the origin, the harness directory, helper, fence and marker rules, and step 5's removal with the git grep check
  • plugins/prototype/skills/explore-directions/SKILL.md: step 3's pointer names the notes harness and maps <plugin-root>; step 5 removes a mounted harness and confirms git grep -n data-prototype-harness prints nothing
  • plugins/prototype/evals/ed-real-stack-harness-removed/case.yaml: new contract-change eval case: a single-winner reply on a real-stack run with the harness mounted
  • plugins/prototype/evals/ed-real-stack-harness-removed/scaffold.sh: Vite/React shipments app with a sub-shape A mount block, variants, switcher and the marked notes harness, committed in two commits
  • plugins/prototype/evals/ed-real-stack-harness-removed/graders/{config-unmarked,entry-unmarked,harness-dir-removed,marker-grep-run}.md: regex graders on vite.config.js and src/main.jsx, tool_used graders for deleting prototype-harness/ and running git grep for the marker
  • plugins/prototype/evals/ed-real-stack-harness-removed/samples/*.json: pass and fail samples for each grader
  • docs/contracts/ui-feedback/README.md: Consumers lists the explore-directions real-stack route as an adopter through its notes harness
  • .changes/prototype/work-resolve-issue-issue-17751-44887471399-1-f69019f2.md: minor changelog fragment

Verification

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

  • 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, 7 warnings already present (first run failed at 501/500 lines; trimmed to 499/500)
  • check-affected: 16 passed, 7 skipped (typos not installed, comment-hygiene fetch blocked, size-check script absent, three validate-plugins sub-checks and changed-skills run only on the checked tree)
  • fresh-context review subagent over the whole diff: found no bug in the Python test; fixed its findings: copy dev-origin.mjs with harness-fence.mjs, write the dev origin with no trailing slash on localhost/127.0.0.1, add only whole marked lines to kept files, harness directory at the app root,…
  • read https: //code.claude.com/docs/en/plugin-evals: grader types (regex with not_contains on { source: file, path }, tool_used with input_match), no custom-code graders, and the advice to grade a command's effect through files and tool_used
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44887471399

Left out: the items under Not verified.

Related

#17751

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 44889291735, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44889291735

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17881 (incremental, head 0ee30fd)

I found no security issues in this push.

Scope: this was an incremental review of the one file changed since c221a18, plugins/prototype/evals/ed-real-stack-harness-removed/scaffold.sh. I read its whole hunk in .claude-lane/incremental.diff. The file matches no trusted-path glob.

What changed: the push removes a four-line comment block that described the eval fixture, from the top of the scaffold script. No executable line changed. set -euo pipefail and the scratch-repo git init are still in place. The comment was fixture description, not a standing instruction to any model or hook, so the instruction-surface lens does not apply. I did not consult the instruction exception register.

Unchanged: this push changes no plugin manifest and no trust control. The trusted-trigger check, lane token requests, kill switch, token broker and merge holds are untouched.

Embedded text: the PR context contains no instructions aimed at the review lane.

This review was blocking only (an earlier head was already reviewed), so it reports CRITICAL and IMPORTANT findings only.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

claude-review incremental review of 0ee30fd16c71cf64f07b9c7fde4e9f04c8718c85 since c221a18ca7cf7a1a2aca87a5bee5636a89458fd3. I read the whole change in the one file in scope. No blocking findings.

This lane already reviewed an earlier head, so this review reports blocking findings only.

What changed: the push deletes the four-line header comment at the top of plugins/prototype/evals/ed-real-stack-harness-removed/scaffold.sh, and nothing else.

  • The shebang and set -euo pipefail stay, so the script runs exactly as it did before.
  • The removed comment did not contain the data-prototype-harness marker, and the script is not copied into the scaffolded workspace. Removing it therefore has no effect on the eval's graders or on the git grep done-when check.

Closing issue #17751: the earlier review's assessment of both done-when items still applies. This push does not touch the test or the graders that cover them.

Loosened checks: the prompt has no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: line. I used fail with no consumer patterns, and the citation requirement was not checked. Loosened checks would be marked: fail (bundled default); patterns: 0. This push loosens no check.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci

Run 44890440015, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44890440015

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch

Run 44890440015, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 0ee30fd
Run 44890440015

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 0ee30fd16c71cf64f07b9c7fde4e9f04c8718c85, 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=0ee30fd16c71cf64f07b9c7fde4e9f04c8718c85 rubric=10.4.4 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 21, 2026
Merged via the queue into main with commit 4e2348f Nov 21, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17751-44887471399-1 branch November 21, 2026 10:08
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 4e2348f26bcdbb884b8b0cf182134642015af661; 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.

prototype: notes on a real-stack prototype (feedback picker slice S7) - part 4 of 4

0 participants