NA-0286: add qsl-attachments backup restore recovery harness - #36
Merged
Conversation
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.
Goals: G1, G3, G4, G5
Impact: Adds the executable qsl-attachments backup / partial restore / transactional recovery harness for NA-0286.
No-regression: Preserves the opaque-ciphertext boundary, resource-scoped capabilities, fail-closed partial restore behavior, existing reject-taxonomy, retention/recovery, disk/quota, and capability harnesses, and avoids dependency/workflow changes.
Tests/Vectors: Added
tests/backup_restore_recovery.rsandtests/backup_restore_logging.rs; validated targeted harnesses, fullcargo test --locked,cargo clippy --locked --all-targets -- -D warnings, andcargo audit --deny warnings.This PR adds the executable qsl-attachments backup / partial restore / transactional recovery harness.
Implementation code changed: no. Source changes are test-only.
No dependency changes in harness PR.
No workflow changes.
No production-readiness claim.
Loopback/local/tempdir tests only.
Cold full-root copy semantics only.
Hot/live backup unsupported.
Partial restore fail-closed.
Rejected/expired/deleted/aborted state does not resurrect.
Backup/restore logs do not leak capabilities/descriptors/ciphertext/plaintext.
Opaque-ciphertext boundary preserved.
qsl-protocol evidence will be recorded separately.
Chosen semantics:
object.jsonandciphertext.binmatch.session.jsonand journaled parts match.Validation:
cargo fmt --checkcargo test --locked --test service_contract -- --test-threads=1cargo test --locked --test reject_taxonomy_harness -- --test-threads=1cargo test --locked --test retention_cleanup_recovery -- --test-threads=1cargo test --locked --test retention_cleanup_logging -- --test-threads=1cargo test --locked --test disk_pressure_quota_abuse -- --test-threads=1cargo test --locked --test disk_pressure_quota_logging -- --test-threads=1cargo test --locked --test capability_scope_abuse -- --test-threads=1cargo test --locked --test capability_scope_logging -- --test-threads=1cargo test --locked --test backup_restore_recovery -- --test-threads=1cargo test --locked --test backup_restore_logging -- --test-threads=1cargo test --lockedcargo clippy --locked --all-targets -- -D warningscargo audit --deny warningsgit diff --cached --check