From 46dbbb60805b3ab34ae94425f3c8b8bb0a4e3bb0 Mon Sep 17 00:00:00 2001 From: humuhumu33 <68450279+humuhumu33@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:10:03 +0000 Subject: [PATCH 1/2] Prism ID: an app's pages on every device of the ID meet on a sealed channel (FR-05) frame.appChannel(listen) gives an app send(value) and listen(value) across the visitor's devices: a relay topic only the ID's devices derive, per app, from the current private boundary key, every message sealed with sealPrivate. A removed device is left on a topic the others have moved from. The bar's panels share one placement and elements are made with Object.assign, so the counted lines shrink; frame.lock is rewritten in the same change. Co-Authored-By: Claude Opus 5.5 --- TEMPLATE-VERIFICATION.md | 22 ++++++++ crates/conformance/tests/frame.rs | 21 +++++++- features/suites/frame.feature | 10 ++++ frame.lock | 10 ++-- frame/frame.mjs | 88 +++++++++++++------------------ frame/panels.mjs | 40 ++++++++------ identity/PROTOCOL.md | 8 +++ identity/test.mjs | 9 ++++ model/ids.toml | 6 +++ site/app.mjs | 8 +-- 10 files changed, 141 insertions(+), 81 deletions(-) diff --git a/TEMPLATE-VERIFICATION.md b/TEMPLATE-VERIFICATION.md index ddf53a7..7fadf4c 100644 --- a/TEMPLATE-VERIFICATION.md +++ b/TEMPLATE-VERIFICATION.md @@ -445,6 +445,28 @@ The template's ratchet held: the three popovers in `frame/panels.css` now share one surface and title rule, and the panel's relay messages parse in one place, so this change shrinks the counted lines. +## An app on every device of the ID (FR-05) + +An app's pages on the visitor's devices find each other with +`frame.appChannel(listen)`: `send(value)` reaches them and `listen(value)` +hears them. They meet on a relay topic, `prism-app:` and an HMAC under the +ID's current private boundary key of the app's origin (`appTopic`), so only +devices of the ID derive it, and each app has its own. Every message is +sealed with `sealPrivate`; one that does not open is dropped. A removal +rotates the key, so the remaining devices move to a topic the removed device +cannot derive. Foundry uses it to bring two devices' sealed work together. + +`frame_fr_05` runs `appTopic` and the sealing in Node with FR-04's linked +devices; `npm run test:identity` has two pages of one app hear each other. + +| Gate | Planted defect | Result | +| --- | --- | --- | +| `npm run test:identity`, "an app's pages hear each other on the id's channel, sealed (FR-05)" | `send` publishes the value unsealed (`json(value)`) | rejected: `not ok 4`, `page.waitForFunction: Timeout 10000ms exceeded`; restored, 17 of 17 pass | + +The ratchet: the bar's three panels share one placement (`placeUnder`), and +elements made with several properties are made with `Object.assign`, so the +counted lines shrink. + ## The workspace page The standard page became the workspace: a header row, the app's surface diff --git a/crates/conformance/tests/frame.rs b/crates/conformance/tests/frame.rs index 9f65896..e2ff767 100644 --- a/crates/conformance/tests/frame.rs +++ b/crates/conformance/tests/frame.rs @@ -49,10 +49,19 @@ fn frame_fr_04() { node("FR-04", &["--input-type=module", "-e", WORKSPACE]); } +/// `FR-05`: An app's pages on every device of one Prism ID meet on a relay topic only those devices derive, per app, with every message sealed to the ID, and a removed device is left behind +/// +/// The same Node run as FR-04, whose linked devices it uses; two pages of one app in Chromium in +/// `identity/test.mjs`. +#[test] +fn frame_fr_05() { + node("FR-05", &["--input-type=module", "-e", WORKSPACE]); +} + const WORKSPACE: &str = r#" import assert from "node:assert/strict"; import * as Prism from "./identity/prism-id.mjs"; -import { carryWorkspace, openWorkspace } from "./frame/panels.mjs"; +import { appTopic, carryWorkspace, openWorkspace } from "./frame/panels.mjs"; const id = await Prism.createPrism(); const made = await openWorkspace(Prism, id, null); assert.equal(made.key.length, 32); @@ -69,7 +78,15 @@ const offer = Prism.parseLinkUri(uri); const device = await Prism.createDevice(); const accepted = await Prism.acceptLinkRequest(id, pending, await Prism.requestLink(device, offer), { now: Date.now(), confirmCode: await Prism.linkCode(offer.secret, device.record) }); const second = await Prism.completeLink(device, offer, accepted.response); -const rotated = await openWorkspace(Prism, await Prism.revokeDevice(accepted.session, second.device.id), made.record); +const app = "https://app.example", topic = await appTopic(Prism, accepted.session, app); +assert.match(topic, /^prism-app:[0-9a-f]{64}$/); +assert.equal(await appTopic(Prism, second, app), topic, "FR-05: the id's two devices meet"); +assert.notEqual(await appTopic(Prism, accepted.session, "https://other.example"), topic, "FR-05: one topic per app"); +assert.notEqual(await appTopic(Prism, other, app), topic, "FR-05: another id meets elsewhere"); +assert.deepEqual(await Prism.openPrivate(second, (await Prism.sealPrivate(accepted.session, { offer: 1 })).sealed), { offer: 1 }); +const kept = await Prism.revokeDevice(accepted.session, second.device.id); +assert.notEqual(await appTopic(Prism, kept, app), await appTopic(Prism, second, app), "FR-05: a removed device is left behind"); +const rotated = await openWorkspace(Prism, kept, made.record); assert.deepEqual(rotated.key, made.key); await assert.rejects(openWorkspace(Prism, second, rotated.record)); "#; diff --git a/features/suites/frame.feature b/features/suites/frame.feature index 6a20da1..827b2ea 100644 --- a/features/suites/frame.feature +++ b/features/suites/frame.feature @@ -58,3 +58,13 @@ Feature: frame And another ID is refused as removed, and asking for a new key replaces the one it cannot open And joining or recovering an ID reseals the key for that ID in the same write that keeps the device And after a rotation a member device reseals the key under the new boundary key, which the removed device cannot open + + @FR-05 @build + Scenario: An app's pages on every device of one Prism ID meet on a relay topic only those devices derive, per app, with every message sealed to the ID, and a removed device is left behind + Given a Prism ID with two linked devices, another ID, and the frame's appTopic and appChannel + When each derives the topic for an app, for another app, and after one device was removed + Then the ID's two devices derive one topic for the app, another app and another ID derive others + And a message one device seals under the ID's private boundary key opens on the other + And once a removal rotates the key, the remaining device moves to a topic the removed one cannot derive + And an app's two pages hear each other through appChannel, and a message that is not sealed is never heard + diff --git a/frame.lock b/frame.lock index 8f81b74..495c900 100644 --- a/frame.lock +++ b/frame.lock @@ -115,7 +115,7 @@ }, { "path": "frame/frame.mjs", - "sha256": "e9c02c8355cf3fb6dea3801e7ea5fa84adab0a117198ed39418ce3ea83930156" + "sha256": "742ac476182099bcc4d93b142fdbd89ba2ce28085a24ab199d23a8f9698b2018" }, { "path": "frame/panels.css", @@ -123,7 +123,7 @@ }, { "path": "frame/panels.mjs", - "sha256": "4eb0dea50cd91a1dce08a459b80b96a5c34d89eec85fedfdf168c5644f7b92a9" + "sha256": "d818b1d511508ff46ad57224779aae00323309dc6aba766a61ecbfbe8f6dfdef" }, { "path": "frame/publish.mjs", @@ -147,7 +147,7 @@ }, { "path": "identity/PROTOCOL.md", - "sha256": "a66215423f8bf70ffbb52e2d9a96f04cb8baa922d2c5adf999be14a491dc382b" + "sha256": "b3a7e40635ea891aca2c3f228e01dfc816acc2531c0c1db7e4fdc445e942c9bd" }, { "path": "identity/README.md", @@ -171,7 +171,7 @@ }, { "path": "identity/test.mjs", - "sha256": "fd771e403d0391846fe8e666c2026d01026d47c78de709ac21171b82737f1cf1" + "sha256": "025f65e9749339cf8c9eb0d137dcf8014b0ba246e2c23eeb8b49b83b186c37b9" }, { "path": "lighthouserc.json", @@ -179,7 +179,7 @@ }, { "path": "site/app.mjs", - "sha256": "65a3d1e3fcc6ed9ddfcbf85477c99a41a94a98502e62de90e7dcce3f860b0ace" + "sha256": "f3ede2982b85be162918bd4e40c67af9bd0a3fa9c4bfc8b50df3b8008d114765" }, { "path": "site/guest-worker.mjs", diff --git a/frame/frame.mjs b/frame/frame.mjs index 8c52466..bf5a7c1 100644 --- a/frame/frame.mjs +++ b/frame/frame.mjs @@ -284,9 +284,7 @@ function speculate(href) { speculation.box.prepend(held); return; } - const link = document.createElement("a"); - link.href = url.href; - link.tabIndex = -1; + const link = Object.assign(document.createElement("a"), { href: url.href, tabIndex: -1 }); link.dataset.prismAhead = ""; speculation.box.prepend(link); while (speculation.box.children.length > 3) speculation.box.lastElementChild.remove(); @@ -294,9 +292,7 @@ function speculate(href) { } if (url.origin !== location.origin || speculation.prefetched.has(url.href)) return; speculation.prefetched.add(url.href); - const link = document.createElement("link"); - link.rel = "prefetch"; - link.href = url.href; + const link = Object.assign(document.createElement("link"), { rel: "prefetch", href: url.href }); document.head.append(link); } @@ -449,6 +445,19 @@ export function shell(attributes, base) { // The element runs in a browser; the module also loads at build time, where // there is none, to write the shell. +// A bar panel opens under its button, `rem` wide at most, `gap` below the bar, +// and never closer than 16 px to either side of the window: on the left, a +// little before the button's centre; on the right, edge to edge with it. +function placeUnder(frame, button, panel, name, rem, gap, side) { + const bar = frame.shadowRoot.querySelector(".bar").getBoundingClientRect(); + const edge = button.getBoundingClientRect(); + const view = document.documentElement.clientWidth; + const width = Math.min(rem * parseFloat(getComputedStyle(document.documentElement).fontSize), view - 32); + const at = side === "left" ? edge.left + edge.width / 2 - 24 : view - edge.right; + panel.style.setProperty(`--${name}-top`, `${Math.round(bar.bottom + gap)}px`); + panel.style.setProperty(`--${name}-${side}`, `${Math.round(Math.max(16, Math.min(at, view - width - 16)))}px`); +} + const Element = globalThis.HTMLElement ?? class {}; class PrismFrame extends Element { static observedAttributes = ["name", "address", "live", "repo", "home", "purpose", "card", "identity", "verdict", "verdict-label", "fingerprint", "proof", "proof-url", "examples", "stars"]; @@ -610,13 +619,7 @@ class PrismFrame extends Element { } panel.addEventListener("beforetoggle", (event) => { if (event.newState !== "open") return; - const bar = frame.shadowRoot.querySelector(".bar").getBoundingClientRect(); - const edge = button.getBoundingClientRect(); - const view = document.documentElement.clientWidth; - const width = Math.min(22 * parseFloat(getComputedStyle(document.documentElement).fontSize), view - 32); - const left = Math.max(16, Math.min(edge.left + edge.width / 2 - 24, view - width - 16)); - panel.style.setProperty("--trust-top", `${Math.round(bar.bottom + 6)}px`); - panel.style.setProperty("--trust-left", `${Math.round(left)}px`); + placeUnder(frame, button, panel, "trust", 22, 6, "left"); }); frame.$("trust-copy").addEventListener("click", async () => { const copy = frame.$("trust-copy"); @@ -791,13 +794,7 @@ class PrismFrame extends Element { }, () => {}); return; } - const bar = frame.shadowRoot.querySelector(".bar").getBoundingClientRect(); - const edge = button.getBoundingClientRect(); - const view = document.documentElement.clientWidth; - const width = Math.min(20 * parseFloat(getComputedStyle(document.documentElement).fontSize), view - 32); - const right = Math.max(16, Math.min(view - edge.right, view - width - 16)); - panel.style.setProperty("--theme-top", `${Math.round(bar.bottom + 6)}px`); - panel.style.setProperty("--theme-right", `${Math.round(right)}px`); + placeUnder(frame, button, panel, "theme", 20, 6, "right"); ui.open(); }); } @@ -848,11 +845,20 @@ class PrismFrame extends Element { return { signature: b64u(signature), delegation: saved.delegation }; } - // This app's workspace key: 32 bytes only a device of the visitor's Prism - // id opens (panels.mjs, openWorkspace). { replace: true } starts a new one. - workspaceKey(options) { + // What the account in the panels module (panels.mjs) gives this app: its + // workspace key, 32 bytes only a device of the visitor's Prism ID opens + // (openWorkspace; { replace: true } starts a new one), and this app on the + // visitor's other devices, where send(value) reaches them and listen(value) + // hears them, sealed to the Prism ID (appTopic). + viaAccount(work) { if (!this.accountsReady) return Promise.reject(Object.assign(new Error("A Prism ID cannot work here"), { name: "IdentityError", code: "unsupported" })); - return this.accountsReady().then((accounts) => accounts.workspace(options)); + return this.accountsReady().then(work); + } + workspaceKey(options) { + return this.viaAccount((accounts) => accounts.workspace(options)); + } + appChannel(listen) { + return this.viaAccount((accounts) => accounts.channel(listen)); } // The Prism id icon, after full screen: a line drawing until the id is @@ -1013,19 +1019,10 @@ class PrismFrame extends Element { // and never closer than 16 px to either side of the window. panel.addEventListener("beforetoggle", (event) => { if (event.newState !== "open") return; - const bar = frame.shadowRoot.querySelector(".bar").getBoundingClientRect(); - const edge = button.getBoundingClientRect(); - const view = document.documentElement.clientWidth; - const width = Math.min(23 * parseFloat(getComputedStyle(document.documentElement).fontSize), view - 32); - const right = Math.max(16, Math.min(view - edge.right, view - width - 16)); - panel.style.setProperty("--share-top", `${Math.round(bar.bottom + 8)}px`); - panel.style.setProperty("--share-right", `${Math.round(right)}px`); + placeUnder(frame, button, panel, "share", 23, 8, "right"); // The card is fetched the first time the panel opens, never with the page. if (!frame.$("share-image").firstChild) { - const image = new Image(1200, 630); - image.src = card; - image.alt = ""; - image.decoding = "async"; + const image = Object.assign(new Image(1200, 630), { src: card, alt: "", decoding: "async" }); frame.$("share-image").append(image); } }); @@ -1211,9 +1208,7 @@ class PrismFrame extends Element { // A tile: the name's first letter on a hue taken from the fingerprint, so // an app keeps its colour wherever it is listed. const tile = (row) => { - const span = document.createElement("span"); - span.className = "opt-tile"; - span.textContent = (row.title.match(/[\p{L}\p{N}]/u)?.[0] ?? "?").toUpperCase(); + const span = Object.assign(document.createElement("span"), { className: "opt-tile", textContent: (row.title.match(/[\p{L}\p{N}]/u)?.[0] ?? "?").toUpperCase() }); const seed = /^[0-9a-f]{4}/i.test(row.print) ? parseInt(row.print.slice(0, 4), 16) : [...row.title].reduce((sum, c) => sum * 31 + c.codePointAt(0), 7); span.style.setProperty("--tile-hue", String(Math.abs(seed) % 360)); return span; @@ -1229,9 +1224,7 @@ class PrismFrame extends Element { box.append(tile(row)); return box; } - const image = new Image(24, 24); - image.alt = ""; - image.decoding = "async"; + const image = Object.assign(new Image(24, 24), { alt: "", decoding: "async" }); image.addEventListener("error", () => image.replaceWith(tile(row)), { once: true }); image.src = row.icon; box.append(image); @@ -1258,24 +1251,17 @@ class PrismFrame extends Element { rows = suggest(input.value); active = Math.min(active, Math.max(rows.length - 1, 0)); const items = rows.map((row, i) => { - const li = document.createElement("li"); - li.id = `omnibox-${i}`; - li.className = `opt opt-${row.kind}`; + const li = Object.assign(document.createElement("li"), { id: `omnibox-${i}`, className: `opt opt-${row.kind}` }); li.setAttribute("role", "option"); li.setAttribute("aria-selected", String(i === active)); - const sub = document.createElement("span"); - sub.className = "opt-sub"; - sub.textContent = row.sub; + const sub = Object.assign(document.createElement("span"), { className: "opt-sub", textContent: row.sub }); const fill = document.createElement("span"); fill.className = "opt-fill"; li.append(iconFor(row), title(row.title, row.match), sub, fill); // Who keeps it on GitHub, and its stars, 0 included, so the column lines up. const owner = row.repo ? row.repo.split("/")[0] : ""; if (owner) { - const by = document.createElement("span"); - by.className = "opt-owner"; - by.textContent = owner; - by.title = `github.com/${row.repo}`; + const by = Object.assign(document.createElement("span"), { className: "opt-owner", textContent: owner, title: `github.com/${row.repo}` }); li.append(by); const stars = document.createElement("span"); stars.className = "opt-stars"; diff --git a/frame/panels.mjs b/frame/panels.mjs index 00b4d57..df9d781 100644 --- a/frame/panels.mjs +++ b/frame/panels.mjs @@ -230,18 +230,14 @@ export function panel(frame, core) { // A photo's tile: its colour at once, the photo fading in over it. const tile = (photo) => { - const pick = document.createElement("button"); - pick.type = "button"; - pick.className = "photo-pick"; + const pick = Object.assign(document.createElement("button"), { type: "button", className: "photo-pick" }); pick.dataset.photo = photo.id; const words = `${photo.alt || "Photo"}, by ${photo.name}`; pick.setAttribute("aria-label", words); pick.title = words; pick.setAttribute("aria-pressed", String(photo.id === current(frame, core).id)); pick.style.backgroundColor = photo.color; - const img = new Image(240, 150); - img.alt = ""; - img.decoding = "async"; + const img = Object.assign(new Image(240, 150), { alt: "", decoding: "async" }); img.addEventListener("load", () => pick.classList.add("ready"), { once: true }); pictureOf(photo, true).then((url) => (img.src = url)).catch(() => {}); pick.append(img); @@ -472,6 +468,14 @@ export async function openWorkspace(Prism, held, kept) { const record = boundary && kept?.sealed.key !== boundary.keyId ? { prism: held.prism, sealed: (await Prism.sealPrivate(held, value)).sealed } : null; return { key: Prism.fromBase64Url(value.key), record }; } +// An app's pages on every device of one id meet on a relay topic only those +// devices derive, from the id's private boundary key and the app's origin; a +// removed device holds no current key, so it is not among them (FR-05). +export async function appTopic(Prism, held, origin) { + const { keyId } = await Prism.currentBoundary(held); + const mac = await crypto.subtle.sign("HMAC", held.keyring.get(keyId).topic, new TextEncoder().encode(`prism/app-channel/1 ${origin}`)); + return "prism-app:" + Array.from(new Uint8Array(mac), (b) => b.toString(16).padStart(2, "0")).join(""); +} // Joining or recovering an id carries what the id this browser had kept; a // removed device makes a new id and carries nothing, so its work stays locked. export const carryWorkspace = async (Prism, kept, from, to) => @@ -819,9 +823,7 @@ export function accounts(frame, core) { $("kit-save").addEventListener("click", async () => { if (!kit) return; - const a = document.createElement("a"); - a.href = URL.createObjectURL(new Blob([JSON.stringify(kit, null, 1)], { type: "application/json" })); - a.download = "prism-id-recovery-kit.json"; + const a = Object.assign(document.createElement("a"), { href: URL.createObjectURL(new Blob([JSON.stringify(kit, null, 1)], { type: "application/json" })), download: "prism-id-recovery-kit.json" }); a.click(); setTimeout(() => URL.revokeObjectURL(a.href), 1000); kit = null; @@ -967,16 +969,11 @@ export function accounts(frame, core) { const item = document.createElement("li"); const record = state.devices[id]; const label = document.createElement("span"); - const code = document.createElement("code"); - code.textContent = id.slice(7, 15); - code.title = id; + const code = Object.assign(document.createElement("code"), { textContent: id.slice(7, 15), title: id }); label.append(`${KIND_LABEL[record.class] ?? "Device"} `, code, id === held.device.id ? " (this one)" : ""); item.append(label); if (id !== held.device.id && state.roles[id] !== "recovery") { - const remove = document.createElement("button"); - remove.type = "button"; - remove.className = "text"; - remove.textContent = "Remove"; + const remove = Object.assign(document.createElement("button"), { type: "button", className: "text", textContent: "Remove" }); remove.addEventListener("click", () => run(async (P) => { await keep(P, await P.revokeDevice(await pull(P, held), id)); @@ -1146,8 +1143,17 @@ export function accounts(frame, core) { paint(); return key; }; + // Each message is sealed under the id's private boundary key; one that does not open is dropped. + const channel = async (listen) => { + const Prism = await prismId(); + await quietly(); + if (!held) deny("unsupported", "There is no Prism ID here yet"); + const topic = await appTopic(Prism, held, location.origin); + const stop = bus(Prism).subscribe(topic, (bytes) => Prism.openPrivate(held, parse(bytes)).then(listen, () => {})); + return { send: async (value) => bus(Prism).publish(topic, json((await Prism.sealPrivate(held, value)).sealed)), stop }; + }; reach(); - return { reach, workspace }; + return { reach, workspace, channel }; } // The theme panel's contents, which the frame puts in its empty panel. diff --git a/identity/PROTOCOL.md b/identity/PROTOCOL.md index 674b7c3..f3ca520 100644 --- a/identity/PROTOCOL.md +++ b/identity/PROTOCOL.md @@ -148,6 +148,14 @@ same write that keeps the device. A key kept by another id is refused as `removed`: this device was removed and made a new id. `{replace: true}` makes a new key, for an app that starts again. +## An app on every device of the id + +`frame.appChannel(listen)` resolves to `{send, stop}`. The topic is +`prism-app:` and the HMAC, under the current boundary key's topic key, of +`prism/app-channel/1 ` (`appTopic`): only the id's devices derive it, +one per app, and a rotation moves it. `send` seals with `sealPrivate`; +`listen` gets only what `openPrivate` opens. + ## Not yet (stitch's to define, its docs/prism-id.md "Open") - Whoever holds a used paper kit (no guardian) can still sign a second diff --git a/identity/test.mjs b/identity/test.mjs index 62d68e0..42d0bdb 100644 --- a/identity/test.mjs +++ b/identity/test.mjs @@ -225,6 +225,15 @@ describe("the flow in Chromium", () => { assert.equal((await verifySession(checked.delegation, { fresh: 0 })).account, checked.id); }); + test("an app's pages hear each other on the id's channel, sealed (FR-05)", async () => { + const other = await context.newPage(); + await other.goto(running.apps[0]); + await first.evaluate(() => document.querySelector("prism-frame").appChannel((value) => (window.heard = value))); + await other.evaluate(async () => (await document.querySelector("prism-frame").appChannel(() => {})).send({ hello: "from the other page" })); + await first.waitForFunction(() => window.heard?.hello === "from the other page", null, { timeout: 10000 }); + await other.close(); + }); + test("the session key and the device keys cannot be read out by script", async () => { const keys = await first.evaluate(async () => { const read = (name, store, id) => diff --git a/model/ids.toml b/model/ids.toml index dab14b9..88083c0 100644 --- a/model/ids.toml +++ b/model/ids.toml @@ -60,3 +60,9 @@ id = "FR-04" level = "build" suite = "frame" statement = "An app's workspace key opens only on a device of the Prism ID that made it, follows the ID when it joins or is recovered, and stays locked on a removed device" + +[[id]] +id = "FR-05" +level = "build" +suite = "frame" +statement = "An app's pages on every device of one Prism ID meet on a relay topic only those devices derive, per app, with every message sealed to the ID, and a removed device is left behind" diff --git a/site/app.mjs b/site/app.mjs index d05479b..fe5b4fd 100644 --- a/site/app.mjs +++ b/site/app.mjs @@ -258,14 +258,10 @@ function workspace(runner) { if (!text || text === last) return; last = text; const row = document.createElement("li"); - const again = document.createElement("button"); - again.type = "button"; - again.className = "again"; + const again = Object.assign(document.createElement("button"), { type: "button", className: "again" }); const req = document.createElement("span"); req.textContent = text.length > 22 ? `${text.slice(0, 20)}…` : text; - const tag = document.createElement("span"); - tag.className = `tag ${answerState(response)}`; - tag.textContent = response.length > 18 ? `${response.length} bytes` : response; + const tag = Object.assign(document.createElement("span"), { className: `tag ${answerState(response)}`, textContent: response.length > 18 ? `${response.length} bytes` : response }); again.append(req, tag); again.addEventListener("click", () => { input.value = text; answer(true); input.focus(); }); row.append(again); From 9faaef44781402391699ead7744828eee94f00e9 Mon Sep 17 00:00:00 2001 From: humuhumu33 <68450279+humuhumu33@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:10:38 +0000 Subject: [PATCH 2/2] CONFORMANCE.md: FR-05 Co-Authored-By: Claude Opus 5.5 --- CONFORMANCE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONFORMANCE.md b/CONFORMANCE.md index 23ed7ba..8d44c62 100644 --- a/CONFORMANCE.md +++ b/CONFORMANCE.md @@ -32,6 +32,7 @@ model does not sanction. | `FR-02` | `build` | A returning browser whose worker kept an earlier deploy serves this deploy from the navigation that brings its page | | `FR-03` | `build` | A first visit's bytes are counted once the page has started, the frame's and the app's each within its own budget | | `FR-04` | `build` | An app's workspace key opens only on a device of the Prism ID that made it, follows the ID when it joins or is recovered, and stays locked on a removed device | +| `FR-05` | `build` | An app's pages on every device of one Prism ID meet on a relay topic only those devices derive, per app, with every message sealed to the ID, and a removed device is left behind | ## Cited authorities