WIP: Block undo journal #5

Draft
erikinkinen wants to merge 8 commits from feature/block-undo-journal into feature/block-durability
Owner

Add an allocation-free undo journal over a caller-held block route and explicit disjoint target/log extents. Persist before-images before target writes, validate the complete counted prefix before reverse recovery, and retain uncertainty after storage failures or unwinding. No destructor performs I/O or formats corrupt media.

Depends on #4. Filesystem owners still control media admission, cache retirement and concurrent writers; the journal does not grant those responsibilities.

  • Implement the original-device journal, format and explicit recovery API.
  • Cover every transaction/recovery storage interruption, hostile media and swallowed failures.
  • Qualify host and freestanding builds with the explicit public supplier cohort.
  • Complete original native interrupted-recovery consumer acceptance.
Add an allocation-free undo journal over a caller-held block route and explicit disjoint target/log extents. Persist before-images before target writes, validate the complete counted prefix before reverse recovery, and retain uncertainty after storage failures or unwinding. No destructor performs I/O or formats corrupt media. Depends on #4. Filesystem owners still control media admission, cache retirement and concurrent writers; the journal does not grant those responsibilities. - [x] Implement the original-device journal, format and explicit recovery API. - [x] Cover every transaction/recovery storage interruption, hostile media and swallowed failures. - [x] Qualify host and freestanding builds with the explicit public supplier cohort. - [ ] Complete original native interrupted-recovery consumer acceptance.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:48:18 +01:00
feat: Block undo journal
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / test (push) Failing after 41s
d509b1fd8b
Block undo journal. Preserve the feature's original source changes and explicit ownership contracts as a reviewable milestone.
docs: Keep block contracts separate from execution notes
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 3s
CI / test (push) Failing after 22s
7a4697f3f1
Remove obsolete testing-policy and progress prose while retaining original-device durability, recovery uncertainty and the native filesystem acceptance boundaries. Preserve the actual protocol and journal implementation unchanged.
ci: Select the original public provider APIs
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has been cancelled
CI / markdown (push) Has been cancelled
3f2317255f
Keep this feature branch on its original provider interfaces using an explicit retained public source graph and repository catalog. Cargo declarations keep main dependencies; strict build, test, documentation and source-custody checks remain in place.
ci: Use shared development dependency profiles
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / test (push) Failing after 24s
525a612bd1
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
ci: Declare policy helper and output boundaries
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 10s
CI / test (push) Failing after 1m59s
c69f171911
Select a disjoint operation parent for policy evidence and explicitly identify the helper checkout excluded from original component input. Keep the complete dependency policy and existing acceptance commands.
ci: Keep shared acquisition tests in Integration
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 33s
8f0c1890b2
Remove the obsolete copied source-graph test invocation. Preserve the actual consumer snapshot verification and the feature Cargo gates.
ci: Qualify the original-device journal supplier cohort
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 1m2s
6d95734da3
Author
Owner

A signed preparation is available at 2daeae7b. It preserves the original runtime, tests and documentation, keeps the destination source-policy guards, and retains separate feature boundaries. All local component checks and the exact preview’s CI run 46678 passed, including native strict Clippy/build, optimized tests, documentation and Markdown.

This remains WIP. The original mounted image and interrupted-recovery acceptance requirements remain open; component checks do not establish those results.

A signed preparation is available at [2daeae7b](https://git.erikinkinen.fi/erix/lib-block/src/branch/feature/block-undo-journal-merge-ready-2daeae7b). It preserves the original runtime, tests and documentation, keeps the destination source-policy guards, and retains separate feature boundaries. All local component checks and the exact preview’s CI run 46678 passed, including native strict Clippy/build, optimized tests, documentation and Markdown. This remains WIP. The original mounted image and interrupted-recovery acceptance requirements remain open; component checks do not establish those results.
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 1m2s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/block-undo-journal:feature/block-undo-journal'
git switch 'feature/block-undo-journal'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/block-durability'
git merge --no-ff 'feature/block-undo-journal'
git switch 'feature/block-undo-journal'
git rebase 'feature/block-durability'
git switch 'feature/block-durability'
git merge --ff-only 'feature/block-undo-journal'
git switch 'feature/block-undo-journal'
git rebase 'feature/block-durability'
git switch 'feature/block-durability'
git merge --no-ff 'feature/block-undo-journal'
git switch 'feature/block-durability'
git merge --squash 'feature/block-undo-journal'
git switch 'feature/block-durability'
git merge --ff-only 'feature/block-undo-journal'
git switch 'feature/block-durability'
git merge 'feature/block-undo-journal'
git push origin 'feature/block-durability'
Sign in to join this conversation.
No description provided.