Hold what the page says about a backup to that backup (Section 06a) - #231
Merged
Merged
Conversation
Section 06, part a. src/lib/backup-workflow.ts is a pure model of the creation workflow (editing, a job working, created) and of exports started from the backup. It accepts a result or an end only from the job it is waiting on, so a job the user has moved on from cannot put the page back into a success state. Wired into the page: - Starting a new encrypt takes down the previous receipt and its rehearsal. They stayed up through the run, a Stop and a failure, with buttons that did nothing. - After a seal, the receipt and the Recovery tab name what has changed since the backup was made: content, access rule, key derivation, cipher, size hiding or input type. - Download and print are recorded as started, with the time, and the Recovery tab says the page cannot see whether they were kept. - Both paper-vault prints and the download re-check the operation after their awaits; the shares dialog's print would otherwise print shares after a wipe. - A rehearsal interrupted by Stop or an input switch no longer stays on "Opening...". - The exact AND/OR rule is shown above the Encrypt button, in the receipt's words. Adds test:backup-workflow and tests/browser/workflow-evidence.spec.ts.
This was referenced Sep 29, 2026
Merged
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.
Section 06, part a (roadmap). Holds what the page says about a backup to that backup.
What changes
src/lib/backup-workflow.tsis a pure model of the creation workflow (editing, a job working, created) and of exports started from the backup. It accepts a result or an end only from the job it is waiting on, so a job the user has moved on from cannot put the page back into a success state.Tests
npm run test:backup-workflow(new, wired into CI) passes 24 checks. Negative control. Removing the job comparison from the reducer fails 5 of them.tests/browser/workflow-evidence.spec.ts(new) has 4 Chromium tests. Negative control. Four separate faults (job-start receipt clear removed, "changed since" disabled, download record removed, rule line hidden) each failed its own test.Gates run locally on
ed140c9npm run typecheckand all 38 Nodetest:*scripts pass.test:conformance,test:keym2,test:conformance2,test:recovery) pass withreference/conformance-requirements.txtinstalled.npm run buildpasses.--workers=2had 323 passed and 5 skipped. The one failure was the knownasync-guard.spec.tsflake ("switching tabs mid-derivation...") on a worker-boundary timing assertion. That spec then passed 5 of 5 with--repeat-each=5.Left for later parts of Section 06
🤖 Generated with Claude Code
https://claude.ai/code/session_01GbCLpWTtk1prQYV8z6rYHr
Generated by Claude Code