Skip to content

fix(prototype): bring the notes-harness contract, prerequisites and tracer case in line with the code - #16972

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
docs/ui-feedback-contract-and-prototype-prerequisites
Nov 17, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
docs/ui-feedback-contract-and-prototype-prerequisites

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: four records lagged the shipped notes-harness code; fixed here instead of filed.

Summary

The ui-feedback contract, the prototype plugin's notes reference and prerequisites, and one eval grader no longer matched the notes-harness code. The contract left out two files a consumer copies, the reference gave no reason for its machine condition, relocation's tool was undeclared, and the tracer case's serve grader passed a call that frames nothing.

Fix

  • docs/contracts/ui-feedback/README.md: lists note-model.mjs and view_bridge.py, and states that the host page frames the page through srcdoc because the bridge denies framing on every response.
  • feedback.md: the notes host is offered only on a single-user machine, since it hands its per-run token to any local process that asks the loopback port.
  • prerequisites.json: declares playwright-cli as optional, and the node row names note relocation.
  • ed-notes-tracer: the serve grader requires --page explore-directions.html; the default-page call is now a failing sample, with two near-miss failing samples added.

Verification

  • Eval validation on plugins/prototype/evals: no FAIL.
  • node scripts/check-declared-prerequisites.mjs passes, and the harness-ops prerequisites check lists the new playwright-cli row.
  • scripts/validate-plugins.sh, markdownlint on the changed files and both changelog-fragment checks exit 0.
  • Left out: a run of the ed-notes-tracer case, which cannot run in a sandboxed eval (its case.yaml already says so).

Related

session: AI Hero

🤖 Generated with Claude Code

…racer case in line with the code

- ui-feedback contract: rows for note-model.mjs and view_bridge.py; the
  host page frames the page through srcdoc because the bridge sends
  X-Frame-Options: DENY, with the mockup policy put first.
- feedback.md: the notes host only on a single-user machine, since any
  local process can fetch the per-run token from the loopback port.
- prerequisites.json: playwright-cli declared optional for note
  relocation; the node row's degrade text names relocation.
- ed-notes-tracer: the serve grader requires --page
  explore-directions.html, the only page the scaffold writes; the
  default-page sample moves to fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 17, 2026 23:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 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-17T23:20:51.198173Z 9b77888 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.

@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 44198494186

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read the whole diff for all 6 changed files. None of them matches a trusted-path glob. The changes are documentation, eval grader/sample data and one prerequisites declaration. No workflow, gate, trust control, plugin manifest or executable code changes.

  • docs/contracts/ui-feedback/README.md: adds two files to the canonical-file table and explains why the host page uses srcdoc (the bridge sends X-Frame-Options: DENY). The trust rules stay the same: sandbox="allow-scripts", never allow-same-origin, and the source and shape checks on messages. Nothing is loosened.
  • plugins/prototype/skills/explore-directions/reference/feedback.md: adds a condition (single-user machine) before the notes host is offered. This tightens a standing instruction rather than removing a guardrail, so no instruction-surface finding applies.
  • plugins/prototype/prerequisites.json: adds an optional playwright-cli row whose install hint is npm install -g @playwright/cli. It is an advisory install hint shown by /harness-ops:prerequisites, not code that runs on update, and it uses the npm package scoped under @playwright. The node row change is prose in degrade only.
  • ed-notes-tracer grader and samples: the eval regex now requires --page explore-directions.html. This is eval-only data with no runtime or credential reach.
  • Changelog fragment: prose only.

The PR context has no embedded instructions aimed at the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR updates the notes-harness records so they match the shipped code: the ui-feedback contract, feedback.md, the prototype prerequisites.json, and the ed-notes-tracer serve grader with its samples. I read every hunk of all 6 changed files and checked each claim against the source.

Contract (docs/contracts/ui-feedback/README.md)

  • The srcdoc / /api/page / X-Frame-Options: DENY statements match the code:
    • lib/ui-feedback/host.html fetches /api/page and sets frame.srcdoc (L523, L540).
    • lib/session-bridge/session_bridge.py sends X-Frame-Options: DENY (L458).
    • notes_bridge.py serves /api/page with the page policy put first.
  • The two new rows (note-model.mjs and view_bridge.py) match scripts/shared-copies.txt L284–289. view_bridge.py is copied into plugins/prototype/notes-bridge/, beside notes_bridge.py.

Tracer grader and samples

  • notes_bridge.py defaults --page to page.html (L516), so the new failing sample for the default page is correct.
  • argparse accepts both --page NAME and --page=NAME, so the grader's (?:=|\s+)(?:\\")? covers both forms.
  • I traced each pass and fail sample through the regex by hand: the two pass samples match, and the four fail samples do not.
  • The grader only gets stricter, so Fail a change that loosens a check has nothing to report.

Prerequisites

  • The new playwright-cli row uses the same detect/install as plugins/playwright/prerequisites.json.
  • Its degrade text, and the new node sentence, agree with feedback.md "Re-locating a note" (the fallback reads the mockup file).

Closing issue: none. The PR states it is a follow-up to #15868, #16052 and #16088 and closes no issue, so there are no acceptance criteria to check. No plugin manifest changed. The changelog fragment's bump: patch fits a docs and eval fix.

Verification: the commands listed in the PR's Verification section were not re-run here; they are author-claimed and unverified. This lane has no shell, so the only checks are reading the source and tracing the regex by hand.

Loosened-check verdict: fail (default; the wrapper supplied no loosened_check_verdict: line); patterns: 0

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The unattended merge path enqueued this pull request at head 9b778887454575ac7ef40f0cb1124f26803fc4f4.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Verification evidence for 9b77888

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16972-9b778887454575ac7ef40f0cb1124f26803fc4f4, expires on 2026-12-17.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 7bc7b1f Nov 17, 2026
78 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the docs/ui-feedback-contract-and-prototype-prerequisites branch November 17, 2026 23:56
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

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

1 participant