Skip to content

docs(contracts): add the ui-feedback owner doc for in-page notes on non-final UIs - #15854

Merged
kyle-sexton merged 4 commits into
mainfrom
docs-ui-feedback-owner-doc
Nov 13, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
docs-ui-feedback-owner-doc

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: slice S0.5 of the prototype feedback-picker plan

Summary

Adds the owner doc for a new shared concern, lib/ui-feedback/: the in-page feedback parts (a checked-in host page that frames a model-written page in a sandbox and sends notes itself, a frame helper, the note and controls schemas, and the notes bridge app) that every skill rendering a non-final UI consumes. docs/plugin-philosophy.md "Convention registry" requires an owner doc before a second plugin adopts a shared concern; this lands it and adds the registry row. No code changes here. The next slice, S1, creates the files the doc names under lib/ui-feedback/ and moves plugins/planning/shared/web/proto-pin.js there.

Fix

  • New docs/contracts/ui-feedback/README.md. It states, each once: what the concern owns; where the canonical files live and how consumers take copies through scripts/shared-copies.txt and the sync gate; the note contract's single home (note.schema.json, limits read from it, one fixture set run against every validator); the controls manifest and type registry; the single state-snapshot function; the trust rules; which settings stay plugin-level; the consumers and how a new one adopts; and what is deferred (planning's annotate endpoint).
  • docs/plugin-philosophy.md: one registry row pointing at the new doc.
  • No changelog fragment: the change touches no plugin, and fragments are per plugin.

Verification

  • markdownlint-cli2 on both files: 0 issues.
  • lychee --offline --include-fragments on the new doc: 11 links, all OK, anchors included. Paths that S1 creates are code spans, not links.

What the doc points at instead of restating (no rule, limit, CSP string or schema is copied from another doc):

  • Vendoring and the sync gate: scripts/shared-copies.txt:1-4; scripts/sync-shared-copies.sh:5-7 (--check, --check-bump); ADR 0019.
  • Copies sit together in one plugin directory: lib/session-bridge/README.md:19-22.
  • Bridge app shape: lib/session-bridge/README.md:122-170 ("The view app").
  • Host, Origin and token checks: lib/session-bridge/README.md:44-56; lib/session-bridge/session_bridge.py:237, :469-475, :492-494.
  • Delivery as data: lib/session-bridge/README.md:114-120; session_bridge.py:63-70 (DATA_NOTE); docs/contracts/untrusted-content/README.md "The framing contract".
  • Unchanged K0/K1 CSP with no connect-src: docs/contracts/rendered-views/README.md:124-132.
  • Sandbox host pattern: plugins/planning/shared/README.md:461-469; plugins/planning/shared/web/proto-pin.js:1-8.
  • Builder pages excluded: docs/contracts/rendered-views/README.md:164-168 (interactive profile rule 1).
  • K2 pages are builder-only: docs/contracts/rendered-views/README.md:116-123.
  • Settings stay with their plugin: docs/contracts/config-cascade/README.md:16 ("Boundary").

Two places where the rendered-views contract does not yet cover this design. This PR flags them and does not amend that contract:

  • docs/contracts/rendered-views/README.md:51-56 opens the Claude-interactive tier only to builder pages served by the view app. The ui-feedback host page is checked-in code but is not built by the builder. The planning shared page is the existing precedent for a checked-in host page.
  • Rule 9 bullet 1 (docs/contracts/rendered-views/README.md:283-288) bars page-derived strings. The doc allows text quotes and accessible names from model-written K0/K1 pages only. The rendered-views amendment that says so lands in the slice that adds those note fields.

Related

  • Pointed-at owner docs: lib/session-bridge/README.md, docs/contracts/rendered-views/README.md, docs/contracts/untrusted-content/README.md, docs/contracts/config-cascade/README.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa441DjEpRv9hNsFAwXss

…on-final UIs

Owner doc for lib/ui-feedback/: the sandboxing host page, frame helper,
note and controls schemas, and notes bridge app that skills rendering a
mockup, prototype or design exploration share. States the single homes
for the note contract, controls manifest and state snapshot, the trust
rules, plugin-level settings, consumers and adoption. Adds the
convention registry row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMa441DjEpRv9hNsFAwXss
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 05:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 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-13T05:17:27.773732Z d385d74 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.

Lane-Activity: pr-refine/fix-docs
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #15854 (incremental, 82b0948 → bc77148)

No security issues found. This lane already reviewed an earlier head, so this pass reported only blocking findings (CRITICAL and IMPORTANT).

Scope: one changed file, docs/contracts/rendered-views/README.md. I read its whole hunk in the incremental diff. It is documentation only and matches no TRUSTED PATHS glob.

What I checked

  • What changed: a new sentence in the "Claude-interactive tier is open only to builder pages" bullet (L51-L60). It names one exception: the checked-in ui-feedback host page may frame a model-written K0 or K1 page and send the person's notes to the session itself.
  • Is it a widening? It narrows nothing and loosens no rule for the framed page, which still has no connect-src and sends nothing to the session. Notes leave only through the checked-in host page. The ui-feedback "Trust rules" section, reviewed at the previous head and unchanged since, sets the limits on that host page:
    • It frames the page with sandbox="allow-scripts" and never allow-same-origin.
    • It checks each message's source frame and shape.
    • It posts through the session bridge's existing Host, Origin and token checks.
    • The bridge delivers notes as data under the framing contract.
  • K2 rules: unchanged. The exception covers only K0 and K1 pages, and the next bullet still stops page-derived text on K2 pages (L61-L66). So K2 text still has no new route into a session.
  • Instruction-surface lens: the diff adds a scoped exception and deletes no standing instruction. The rule it qualifies is still in force for every other model-written page.
  • Out of scope here: no trust control, merge hold, token scope, kill switch, plugin manifest or workflow is touched.

Follow-up (from the earlier review, still open): these rules only take effect once slice S1 builds host.html and the bridge code that posts notes. That slice needs its own security review.

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 82b0948b8b203bb7aebe21fa4f5effac047b1c1c; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread docs/contracts/ui-feedback/README.md Resolved
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental: 82b0948 → bc77148, blocking only)

Scope: one file changed since the last review, docs/contracts/rendered-views/README.md. I read its whole hunk. This lane already reviewed an earlier head, so this pass reports blocking findings only.

The change: five lines added to the "Claude-interactive tier is open only to builder pages" bullet (L56-L60). They name the ui-feedback host page as the one checked-in exception and say that the framed K0/K1 page still carries no connect-src and sends nothing to the session. This applies the second fix option from this lane's earlier advisory finding. The owner settled that thread with a recorded decision (thread marked lines changed since resolution: no), so I am not raising it again.

What I checked (with Read/Grep):

  • The new link ../ui-feedback/README.md#trust-rules resolves: docs/contracts/ui-feedback/README.md has a ## Trust rules heading at L50.
  • The bullet now reads consistently. Its bold lead-in still says the tier is open only to builder pages, but the added sentences scope the exception narrowly and keep the framed page's CSP unchanged, so the bullet doesn't contradict itself.

Findings: none blocking.

Closing issue: none. The PR context says there is no related issue, so there are no acceptance criteria to check.

Trusted paths: the changed file matches no trusted-path glob.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 2 commits November 13, 2026 00:34
… tier rule

The rendered-views contract said only builder pages reach the
Claude-interactive tier, which contradicted the ui-feedback contract's
host page. The tier rule now names that one checked-in exception and
keeps the framed page's own limits.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMa441DjEpRv9hNsFAwXss
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 836687c Nov 13, 2026
50 checks passed
@kyle-sexton
kyle-sexton deleted the docs-ui-feedback-owner-doc branch November 13, 2026 05:59
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant