Repository navigation
Conversation
Move openadapt.ai's Seal page (openadapt-web#587) into a shared package, packages/seal-view (@openadapt/seal-view, MIT): the Seal art, the replay, the tamper demo and every check (offline Seals, run authorizations, Rekor anchors, RFC 3161 timestamps), with the site-specific parts passed in as props. The rings now read any program graph, and fall back to each step's own record checks when a run has no governed requirements (the quickstart's case). The package builds one HTML viewer with Preact, the program map and the styles inlined: 202,139 bytes (65,614 gzipped), budget 262,144. Its CSP allows no requests. The launcher ships it as openadapt/seal_view/viewer.html, and openadapt.seal_view embeds a run's exact files in it. The quickstart now seals the stopped run too, writes run-1/seal.html and run-broken/seal.html, opens the first one when a display is available, and prints "Your Seal: <path>" and then the openadapt.ai/seals line. `openadapt seal view RUN_DIR` writes and opens the page for any sealed run. Tests: tests/test_seal_view.py opens a real quickstart run's pages from file:// in Chromium (valid, tampered, no requests) and snapshots the viewer's size; the new seal-view job in packages.yml runs it with the browser required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The full program workbench under the Seal (sections, inspector, evidence lanes, stop rules, tour), with a Seal card at the top of the inspector while it shows the step the Seal certifies, and Back to the Seal. Timestamps now name their token file (seal.tsr), checked by its SHA-256; the viewer and openadapt.seal_view carry it. The witness checks are tested on a published OpenEMR Seal's real Rekor entry and Sigstore timestamp. The viewer is 212,468 bytes (68,661 gzipped). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft, paused mid-task. Built on #1408, which is now merged; this branch has not been merged with main since.
What it does
packages/seal-view(@openadapt/seal-view, MIT): openadapt.ai's Seal page (openadapt-web#587 at 23409443) extracted into a shared package. The site-specific parts now come in as props. The rings read any program graph, a pure-JS Ed25519 check covers browsers whose WebCrypto lacks Ed25519, andsealPagePropsbuilds the page from a run's files as data.openadapt/seal_view/viewer.html.run-1/seal.htmlandrun-broken/seal.html, opens the first one when a display is available, and printsYour Seal: <path>followed bySee real Seals from OpenEMR runs: https://openadapt.ai/seals.openadapt seal view RUN_DIR [--keys FILE] [--bundle DIR] [--no-open]: writes and opens the Seal page for any sealed run.tests/test_seal_view.pyuses a real quickstart run as its fixture. It opens the pages fromfile://in Chromium and checks that the Seal is valid, that a tampered copy fails withsubject_mismatchorbad_signature, and that the page makes no network requests (a Playwright request listener). It also snapshots the viewer's size. Vitest covers the package's libraries. A newseal-viewjob in packages.yml runs the browser tests with the browser required.Verified locally
tests/test_seal_view.py: 15 passed.node packages/seal-view/scripts/build.mjs --checkpasses.openadapt quickstartrun recorded in VHS ends on the Seal lines. That take predates the fix that picks run 1's page; it showed run 3's.Not done
2ae9d49d(fullProgramWorkbenchinSealMap,InspectorSeal,MiniIris,backToSeal,irisSeedon run strips).🤖 Generated with Claude Code