WIP: Add original durable undo for plain ext transactions #43

Draft
erikinkinen wants to merge 49 commits from feature/ext-plain-durable-undo into feature/ext-conditional-namespace
Owner

Add original durable undo for plain ext transactions.

Depends on #42 (feature/ext-conditional-namespace).

  • Separate this feature from the preceding changes.
  • Link matching provider PRs and complete integrated acceptance.

Cross-repository API dependencies are still being mapped to their feature PRs.

Add original durable undo for plain ext transactions. Depends on #42 (`feature/ext-conditional-namespace`). - [x] Separate this feature from the preceding changes. - [ ] Link matching provider PRs and complete integrated acceptance. Cross-repository API dependencies are still being mapped to their feature PRs.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 12:21:31 +01:00
feat: Add original durable undo for plain ext transactions
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 5s
CI / test (push) Failing after 1m10s
f640896742
Add original durable undo for plain ext transactions.
ci: Use shared development dependency profiles
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
51ecfbfc5b
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) Failing after 14s
CI / test (push) Failing after 3m46s
e1805bf3a2
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.
Select the authored companion cohort, resolve the installed checker leaf, and
retain the authored Rust documentation gate. Keep the complete source-owner
arguments and each evidence bound exactly once across the filesystem branches.
Use the existing atomic temporary-path owner for every checker image and retain
the concurrent same-format negative control. Separate calls keep their own
complete input images through checker completion.
Remove each successful checker image using its original retained path after
inspection. Failed checker evidence remains available to diagnose the failure.
Integrate current prerequisite history while preserving the complete retained-parent entry acquisition, source-free effects and interface retirement implementation. Keep original on-media recovery and independent checker gates intact.
Acquire exact ext entries through retained parents.
Apply effects through retained ext entry bindings.
retire legacy cwd adapters and inode spelling pins.
retire ext administrative exact-entry adapters.
elide the native entry control lifetime.
adopt shared fixed-entry codec retirement.
Select the full retired-interface IPC participant and corrected filename crypto with their coordinated public dependencies. Keep Cargo declarations on main, original frozen-source checks and independent on-media checker gates. Admit the installed checker through its resolved ordinary leaf, and apply the shared authored Rust documentation policy.
Persist complete journal operations in original order.
Retain original filesystem bounds in journal staging.
Keep retained-parent acquisition, source-free effects and retired operation contracts aligned with the component source. Distinguish driver and release-image adoption, document explicit migration of nonstandard prototype filename ciphertext, and replace stale progress prose with the maintained acceptance boundary.
Borrow derived encryption keys through filename and directory operations. Erase the original master-key lookup buffer on every completion path and select the complete original-device journal supplier. Keep fixed-entry fixtures aligned with private handle reservations.
Scope volatile service state to end before restart recovery and carry only
the retained block device and required durable mount observations into the
recovered instance. Make the loss of volatile endpoint owners explicit
before exercising on-media orphan recovery.
Keep the empty production mount sentinel read-only. Select write access explicitly in fixture composition roots that own their in-memory media and exercise persistent effects.
Use journaled media for native unlink lifetime, preserve the UTF-8 compatibility route through an ASCII alias of the same raw-named inode, and identify malformed-destination operation failures explicitly.
Check that hardlinking a special inode grants no device-open route, and that replacing a held destination preserves the original content owner until close while publishing the new namespace entry. Keep dependency refusal and zero-effect checks.
Validate creation basenames as raw native components under the physical ext name limit. Compare only the checksum words represented by each inode and its initialized extra fields, preserving uninitialized extra payload. Add independent CRC, corruption and identity controls; target fixture failures at actual namespace publication and valid touch flags. Refs #21, #22.
Validate the inode initialized extra-field extent before clearing either
checksum word, then reuse that checked width through checksum generation.
Invalid geometry must leave the original caller buffer unchanged.
Preserve the parser invalid-argument result for malformed directory records
and inspect the original hardlink inode type, link count and device number
independently. Keep malformed media and shared special-inode observations
precise without opening a device route.
Use the same bounded raw-component admission in rename, removal, link and journal-record paths. The legacy path facade retains its own text contract; native entry operations no longer inherit that encoding restriction. Refs #21.
Route regular-file creation, directory creation and fast-commit dentry
replay through the same raw-byte basename validator. Enforce the ext
component extent and reject separators and navigation components while
preserving non-UTF8 names.
Admit the already checked special inode kind through the original exact-entry selector without granting device content access. Keep the existing special-inode data-tree exclusion and prove shared then final unlink with independent ext filesystem checks.
Bring current retained-entry custody, raw basename handling and represented inode checksums into the journal-ordering feature while preserving its complete transaction and persistence implementation.

# Conflicts:
#	.github/workflows/ci.yml
#	ARCHITECTURE.md
#	README.md
#	ROADMAP.md
Select the complete public journal, IPC and owned-crypto participants through an explicit component profile while Cargo declarations track main. Preserve strict original host, freestanding, on-media and documentation gates, and distinguish host persistence controls from release-image acceptance.
Shorten table labels without changing the required original-device persistence states and identify the journal cohort explicitly.
Document one-operation ownership and erase-on-drop retirement of inode keys,
and format the ext checksum reference as a rustdoc link. Keep on-media
policy flags distinct from authority to perform a native filesystem
operation.
Require the original complete-operation owner to retain a refused member even if the callback returns success, leaving earlier staged filesystem blocks unpublished.
Declare write-through ownership in the original dispatch media fixture. Record actual payload sector addresses and barriers, distinguish journal payload from home checkpoint writes using the resulting inode map, and require one complete commit between their persistence boundaries.
Latch the original callback I/O refusal, reject subsequent valid backend I/O and prevent callback success from committing an earlier staged prefix. Preserve each local range and route refusal, leave persistence with the outer owner and refuse checkpointing a failed staged operation. Refs #17.
Inject failure before and after the original journal cache changes, then prove that swallowed errors cannot perform more callback I/O, mutate output buffers or publish an earlier filesystem prefix. Keep cleanup on the original outer owner and compare persisted media independently.
Exercise lost write completions before and after cache mutation on internal and external journal routes. Reuse the independent internal inode fixture, compare home bytes outside the real internal log extent, and document the complete-operation failure fence.
Use the block mapper’s checked logical index type and retain callback failure codes without transforming their results.
Include the corrected retained-entry test ancestry after its complete component qualification, preserving the journal implementation and its independently qualified source tree.
Carry retained-file controls on the qualified whole-operation journal owner, preserving its original device barriers, failure custody and corrected concurrent fixture inputs.

# Conflicts:
#	.github/workflows/ci.yml
#	ARCHITECTURE.md
#	README.md
#	ROADMAP.md
Use the real native/private control codecs with the qualified journal, owned crypto and original provider cohort while retaining main-branch Cargo declarations and all original component gates.
Control retained files through original recovery owners.
Persist complete journal operations in original order. Integrate the reviewed feature into feature/ext-fixed-entry-authority while the upstream work retains its own completion requirements.

#45
Verify reply preflight, acquired inode identity, alias-visible resize and zero growth on actual journaled media. Lose each original sync barrier and require an uncertain reply with permanent provider quarantine, including after reset.
Construct requests from the actual generic block owner rather than the legacy concrete recording fixture helper, retaining fresh parent snapshots for every acquisition.
Keep the public supplier link readable and within the shared Markdown line-length policy.
Preserve ext extent length and endpoint boundaries.
Initialize sparse gaps through allocated mappings.
Preserve full-width file sizes and inode allocation units.
Preserve original allocation units across extent fragments.
Compose the qualified original-inode control and journal owners with the extent, file-size and allocation-unit implementation. Retain the complete public supplier cohort, strict original gates and all native/on-media controls.
Control retained files through original recovery owners. Integrate the reviewed feature into feature/ext-fixed-entry-authority while the upstream work retains its own completion requirements.

#46
Keep the format, ownership and negative-control contracts while removing obsolete execution-status prose from the focused design documents. Preserve the remaining encrypted and compatibility workload boundaries.
Pass the complete logical index to the shared mapper in the journal observer. Resolve the inode extent flag from its actual media owner when the extracted legacy truncation module resets an empty mapping.
Keep the original literal inode assertion while removing its decoder import from the freestanding production module. Mandatory warning diagnostics remain enabled in every build.
Use the shared count representation for every ACL allocation preflight instead of a fixed sector ceiling. Preserve refusal before allocation at the actual huge-unit maximum, and exercise representable and malformed counts independently. Keep fast-commit overflow coverage beyond the now-valid final logical block.
feat: Merge ext extent length and endpoint boundaries
All checks were successful
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 3m21s
fb9779ff24
Preserve ext extent length and endpoint boundaries. Integrate the reviewed feature into feature/ext-fixed-entry-authority while the upstream work retains its own completion requirements.

#47
feat: Merge acquire exact ext entries through retained parents
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 3m30s
2827a23151
Integrate the reviewed prepared history into feature/ext-plain-durable-undo. The feature tree and
original source branch remain unchanged. Upstream work retains its own
completion requirements.

#44
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 3m30s
This pull request has changes conflicting with the target branch.
  • .github/workflows/ci.yml
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

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/ext-conditional-namespace'
git merge --no-ff 'feature/ext-plain-durable-undo'
git switch 'feature/ext-plain-durable-undo'
git rebase 'feature/ext-conditional-namespace'
git switch 'feature/ext-conditional-namespace'
git merge --ff-only 'feature/ext-plain-durable-undo'
git switch 'feature/ext-plain-durable-undo'
git rebase 'feature/ext-conditional-namespace'
git switch 'feature/ext-conditional-namespace'
git merge --no-ff 'feature/ext-plain-durable-undo'
git switch 'feature/ext-conditional-namespace'
git merge --squash 'feature/ext-plain-durable-undo'
git switch 'feature/ext-conditional-namespace'
git merge --ff-only 'feature/ext-plain-durable-undo'
git switch 'feature/ext-conditional-namespace'
git merge 'feature/ext-plain-durable-undo'
git push origin 'feature/ext-conditional-namespace'
Sign in to join this conversation.
No description provided.