Repository navigation
Closed
Feature
4 / 44 of 4 issues completed
Copy link
Description
Summary
Slice S7 of the prototype feedback picker: take notes on a real-stack prototype (one route of the running app), not only on the standalone HTML mockup. It is the last unbuilt slice of the plan the owner approved on 2026-11-13; the owner deferred it out of the landing session on 2026-11-15 ("Go with recommendations") so it gets a session of its own.
What exists
- The notes host page frames a model-written mockup in a sandbox and sends notes through the notes bridge:
lib/ui-feedback/host.html,proto-pin.js,notes_bridge.py, contractdocs/contracts/ui-feedback/README.md. Slices S0 to S5 are merged (docs(contracts): add the ui-feedback owner doc for in-page notes on non-final UIs #15854, refactor(prototype): condense explore-directions boundaries into one section #15858, feat(prototype): pin notes to mockup elements and read them in the session #15868, feat(prototype): re-locate a note, screenshot it, and ask when it is gone #16052, feat(prototype): pin notes to text and regions and import copied notes #16088, feat(prototype): add levels to explore-directions #16069, feat(prototype): add the notes side panel with per-note status and replies #16322); S6 (feat(prototype): add the controls tab, manifest and control snapshots in notes #16348) and S8 (feat(prototype): say where a notes session's files go and add the dossier case #16346) are open. plugins/prototype/skills/explore-directions/reference/real-stack.mddescribes the real-stack path with no notes harness.
What S7 delivers
reference/real-stack.mdgains how the notes harness is mounted on a real-stack route and where its fence sits, so step 5 removes it (addition).- The bridge accepts notes from the app's dev origin. The plan's first design (a hidden relay frame on the bridge origin, with an opt-in
frame-ancestorsparameter onlib/session-bridge/session_bridge.pysend()) was written before the host-page design landed; the owner's later answer says the relay "is replaced where the host page already sits on the bridge origin". The design step is to decide which of these holds for a dev server on another origin, and to record it in the ui-feedback contract. relocate-note.mjsrestores real-stack state where the route allows.- Eval case
ed-real-stack-harness-removed: step 5 removes the harness file and the build output carries no marker.
Constraints
lib/session-bridge/session_bridge.pyis shared by every session-bridge adopter (the planning interview among them): any change is opt-in with the default unchanged, withtest_session_bridgeandtest_view_bridgepassing unchanged for existing apps, and copies synced throughscripts/shared-copies.txt.- A
postMessagefrom any origin but the one dev origin given at start is ignored; the token never leaves the bridge's origin. - A real-stack screenshot may show real records and is never pushed (
reference/feedback.md, "Where a notes session's files go", once feat(prototype): say where a notes session's files go and add the dossier case #16346 merges). - Single-source rules of the plan apply: one note contract, one controls manifest, no second loopback server, token scheme or untrusted-data framing.
real-stack.mdis skill text: additions only, a fresh-context review before any eval is registered, then a registered before/after eval.
Done when
- A note taken on a real-stack route reaches the session through the bridge, and one sent from another origin is refused (tests).
git grep -n data-prototype-harnessand a grep of the scaffold's build output print nothing after step 5.- The session-bridge suites pass unchanged for existing adopters.
ed-real-stack-harness-removedpasses, and the registered eval shows no loss.
Left out
Frameworks without an environment gate.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Work status
ready
Priority
medium
Activity
github-actions commentedon Nov 15, 2026
Size: Large
Complexity: High
Uncertainty: Knowable
Flags: none
Blocked by: none
Blast radius: lib/ui-feedback (host page, bridge, proto-pin, relocate-note), the ui-feedback contract, the prototype skill's real-stack.md, scaffold tests and one eval case; read by prototype-skill users and maintainers.
Reversible: yes; each change is a code or doc revert, and session_bridge.py send() stays unchanged.
Open questions: none
Understood: slice S7 lets the notes picker take notes on a real-stack dev route, with the host page on the bridge origin framing the dev route.
#16411 (comment)
This decision settles the open questions: the host page frames the dev route, there is no relay frame, and send() is unchanged. The later amendment adds a checklist of lane-checkable items. The eval run and the before/after registration need a host step and are not part of that checklist. No duplicate or merged fix found.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 15, 2026
The latest triage verdict holds nothing: the issue is at
status: ready.melodic-automation-lanes commentedon Nov 15, 2026
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: Notes taken on a real-stack route reach the session through the bridge from the one dev origin given at start, with the mount and fence documented in real-stack.md, relocate-note.mjs support, and eval ed-real-stack-harness-removed; the transport design is not yet chosen.
Related work
Open questions
RECOMMENDED: (b): the issue quotes the owner saying the relay is replaced where the host page already sits on the bridge origin, and (b) leaves shared send() unchanged for other adopters. Basis: lib/ui-feedback/notes_bridge.py:59
RECOMMENDED: Frame the route in the host page and have the harness fence in the dev server config allow only the bridge origin; if framing is blocked, report that and stop. Basis: judgment
RECOMMENDED: Post a Decision recorded comment naming the chosen design so the contract change can cite it. Basis: judgment
RECOMMENDED: Restore only the route URL and viewport, with no data or auth state, and report anything else as not restored. Basis: judgment
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 21, 2026
Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.
Q127 (REVISED A)
Option A, with five specifics the standards require. Option A: the host page on the bridge origin frames the dev route. There is no relay frame, and
session_bridge.pysend()is unchanged. If framing is blocked, the run reports and stops.relocate-note.mjsrestores only the route URL and the viewport. The five specifics: (1) The real-stack host takes a message only whene.source === frame.contentWindowande.originexactly equals the one dev origin given at start. That origin is checked at start as a loopbackhttp://origin with an explicit port, and the message's data still passes note.schema.json as today. (2) Every host-to-framepostMessagenames that dev origin as itstargetOrigin, never"*". Today's"*"(host.html:109, proto-pin.js:19) exists only because the srcdoc frame is opaque. (3) The dev-route frame either has nosandboxor hassandbox="allow-scripts allow-same-origin". Without allow-same-origin its origin is opaque, soe.originisnulland check (1) can never pass. Pairing the two tokens is safe here because the dev origin differs from the bridge origin: MDN discourages it only for a same-origin embed. (4) For the real-stack page only, the host's CSP addsframe-src <dev origin>. Today'sdefault-src 'none'with no frame-src or child-src would block loading the dev URL; srcdoc never needed it. The host's ownframe-ancestors 'none'stays. (5) The harness fence makes the dev server sendContent-Security-Policy: frame-ancestors <bridge origin>as an HTTP header (a<meta>tag does not work for this directive), so only the bridge's host page can frame the route. The token stays in the host page, which a cross-origin frame cannot read.Basis
Dissent considered
none found against A, and B's relay adds a shared
send()parameter that touches every adopter, against the issue's constraint. One code fact to settle in the build: host.html stops listening once the frame loads a second document (loads > 1). That suits a model-written srcdoc, but on a real dev route a full navigation or a framework's full reload would end the session. With the origin check in (1), the load-count rule can be relaxed for the real-stack host. That is a design detail the lane can decide.melodic-automation-lanes commentedon Nov 21, 2026
Not admitted to the issue lane yet: sub-issue #17751 is open.
kyle-sexton commentedon Nov 21, 2026
Amendment to the decision above, from the research re-check (owner direction of 2026-11-20 recorded there).
Amendment
Q127 stays REVISED A. The host page on the bridge origin frames the dev route, there is no relay frame, and
session_bridge.pysend()is unchanged.relocate-note.mjsrestores only the route URL and the viewport. The five specifics stand:e.sourceis the framed window ande.originexactly equals the one dev origin given at start.targetOrigin, never"*".sandbox, or withallow-same-originbesideallow-scripts, so its origin is not opaque.frame-src <dev origin>.frame-ancestors <bridge origin>as an HTTP header, not in a<meta>tag.The research supports them as follows. Each claim below is quoted from the research record with its qualifiers. The probe claims were observed in headless Chromium 158 only; Firefox and Safari were not probed.
sourceproperty.frame-ancestors 'none'does not limit what the host page frames (CSP Level 3)./api/tokenroute rejects a request from the dev origin (same site, different origin), or how cookies are scoped across ports. So the decision's "the token stays in the host page" holds for DOM and script access only. The token route gets a test in the build (below).Two amendments:
new URL(input).originand refuse an input that differs from the result. OR1: "An exact string comparison with a configured origin fails when the configured string carries the scheme default port, because URL parsing drops a default port and origin serialization then omits it." (WHATWG HTML, browsers). Use one host spelling across the origin check, the frame URL and theframe-ancestorssource. OR2: "localhost and 127.0.0.1 with the same port are different origins, so the dev origin used for checks, the frame URL and the frame-ancestors source must share one host spelling." (WHATWG HTML, browsers). Refusing an input with no port is a design choice for the build, not a sourced claim.loads > 1stop, is a design choice for the build.Caveats. The research's verifier failed three rows: row 4 (the single-source flag), row 7 (confidence grading) and row 12 (claims following jointly from their sources). The flag failed on the MDN and OWASP restatements of the WHATWG rule, which is why specific 1 rests on PM1a and PM2 alone. SB1's null-origin evidence has one counted corroborator, below the research's floor of two. The research index also said a sandboxed route that opens dialogs needs
allow-modals. MDN contradicts that for opening a<dialog>element, so this amendment drops the claim.The issue's eval items (
ed-real-stack-harness-removedand the before-and-after registration) need a real eval run, a host step. They are not in the list below.Done when
e.sourceis the dev frame's window ande.originequals the dev origin, and a test shows a message from another origin, or from another window, ignored.postMessageon the real-stack page names the dev origin astargetOrigin, andgit grepfinds no"*"target origin in the real-stack host code.new URL(input).origin, and a test shows an input that differs from its canonical origin refused, such as one that spells the default port.sandboxattribute, or one that includes bothallow-scriptsandallow-same-origin, and the real-stack host page's CSP addsframe-src <dev origin>while keepingframe-ancestors 'none'.Content-Security-Policy: frame-ancestors <bridge origin>as a response header, shown by a test that reads the header, and the fence adds no<meta>CSP tag for it.frame-ancestorssource, shown by a test that compares the three.test_session_bridgeandtest_view_bridgepass unchanged, andsession_bridge.pysend()keeps its signature and default behavior.git grep -n data-prototype-harnessprints nothing after step 5 in the scaffold test.melodic-automation-lanes commentedon Nov 21, 2026
Split at intake (owner Q93). This issue is Size Large, so its done-when is split into 4 sub-issues, each holding its task-list lines as written.
Automated split by the lanes App. Admission waits on this issue while a sub-issue is open; work-unblock closes it as completed once every sub-issue is closed as completed by a merge or a listed human and its done-when is covered.
melodic-automation-lanes commentedon Nov 21, 2026
Every sub-issue of this split is closed as completed by a listed human or a merge (#17748, #17749, #17750, #17751), so the lanes App closes it as completed.