Implement logical recovery archives and durable plaintext staging #44

Merged
Collaborator

Export allowlisted SQLite rows from a single transaction, exclude key material, and filter replay outcomes using the provider clock. Validate canonical framing, record budgets, footer integrity, and live-item links on readback.

Reserve staging capacity before writing plaintext, verify the staged archive before exposing it, and retire single-link regular files durably. Startup sweeps only staging-owned files. A plaintext file with multiple links stays in place and quarantines the area. The Forget barrier and charge survive restart. Retirement checks file type and link count with a no-follow stat relative to the pinned directory. A symlink, directory, or other nonregular entry at a plaintext name stays in place. The area quarantines and retains the inventory and custody charge. Cleanup after a failed stage also preserves the original refusal. Unreadable single-link plaintext can still be removed. On Darwin, sweep quarantines after retirement if it cannot verify the ACL.

On Darwin with Python 3.12, all 166 focused archive and staging tests passed. The dedicated ACL run passed all nine cases with zero skips, including the missing-symbol, query-error, and creation-time checks. All 18 named mutations failed their targeted regression tests in separate copies. The lock check, Ruff and strict mypy passed.

Round 4 on Darwin passed 172 focused tests, including 10 ACL cases with zero skips. Mode-000 retirement and sweep both removed the file, and a failed stage under umask 0400 left no plaintext. The regression test checks the resulting 0200 mode and simulates denied reads when it runs as root in CI. The six new tests passed on the control. L06, L08, L10 and L12 each failed its targeted test in a separate copy. The no-follow stat mutation, the prior read-open implementation and the ACL-open error mutation also failed their targeted tests.

Round 5 on Darwin passed 179 focused tests, 660 unit tests, and 66 transport tests. The dedicated Darwin ACL run passed 11 cases with zero skips and covered both plaintext and temporary inventory files. All three unreadable-file tests passed under the simulated-root DAC override model, with denied opens injected independently of the runner's UID. The targeted tests failed in 11 separate mutation copies with a passing control. The variants covered L06, L08, L10 (the ACL open and no-follow stat), L12, M01, M03, skipped retire classification, skipped sweep ACL validation, mishandled ACL-open errors, and the previous read-dependent unlink implementation.

Round 6 on Darwin passed all 180 focused tests. The new unstaged-retirement test passed on the control and failed with staging_retire_failed under R06 in a separate copy. The test checks that a reserved slot with no plaintext retires successfully, keeps the area ready, and clears its inventory, barrier, and custody charge.

Review dispositions

  • Import deviation. The exporter imports canonical from .commands to check that retained replay outcomes match the command serializer. The spec's import list omitted this dependency.
  • Residual ACL gap. Staging refuses ACL-bearing files and directories on Darwin. The existing key-custody code in recovery_crypto.py does not check ACLs and stays frozen under child #31's D7.
  • SEC7, open risk. staged() verifies the file through the pinned directory descriptor and returns a path. A later consumer may open different bytes at that path. The child that encrypts the archive (#32 or #33) must hash the exact bytes it reads and refuse a size or SHA-256 mismatch.
  • Check-to-unlink race, open risk. Retirement checks the entry type and existing hard links. A live process running as the same user can swap another entry at the owned name between the check and unlink. A replacement such as a symlink or FIFO can be removed while retirement succeeds. The process can also add a hard link in that interval and keep a copy after retirement. As with SEC7, the same-user process is inside the trust boundary.

Closes #30
Co-Authored-By: gpt-6.2-sol noreply@openai.com

Export allowlisted SQLite rows from a single transaction, exclude key material, and filter replay outcomes using the provider clock. Validate canonical framing, record budgets, footer integrity, and live-item links on readback. Reserve staging capacity before writing plaintext, verify the staged archive before exposing it, and retire single-link regular files durably. Startup sweeps only staging-owned files. A plaintext file with multiple links stays in place and quarantines the area. The Forget barrier and charge survive restart. Retirement checks file type and link count with a no-follow stat relative to the pinned directory. A symlink, directory, or other nonregular entry at a plaintext name stays in place. The area quarantines and retains the inventory and custody charge. Cleanup after a failed stage also preserves the original refusal. Unreadable single-link plaintext can still be removed. On Darwin, sweep quarantines after retirement if it cannot verify the ACL. On Darwin with Python 3.12, all 166 focused archive and staging tests passed. The dedicated ACL run passed all nine cases with zero skips, including the missing-symbol, query-error, and creation-time checks. All 18 named mutations failed their targeted regression tests in separate copies. The lock check, Ruff and strict mypy passed. Round 4 on Darwin passed 172 focused tests, including 10 ACL cases with zero skips. Mode-000 retirement and sweep both removed the file, and a failed stage under umask 0400 left no plaintext. The regression test checks the resulting 0200 mode and simulates denied reads when it runs as root in CI. The six new tests passed on the control. L06, L08, L10 and L12 each failed its targeted test in a separate copy. The no-follow stat mutation, the prior read-open implementation and the ACL-open error mutation also failed their targeted tests. Round 5 on Darwin passed 179 focused tests, 660 unit tests, and 66 transport tests. The dedicated Darwin ACL run passed 11 cases with zero skips and covered both plaintext and temporary inventory files. All three unreadable-file tests passed under the simulated-root DAC override model, with denied opens injected independently of the runner's UID. The targeted tests failed in 11 separate mutation copies with a passing control. The variants covered L06, L08, L10 (the ACL open and no-follow stat), L12, M01, M03, skipped retire classification, skipped sweep ACL validation, mishandled ACL-open errors, and the previous read-dependent unlink implementation. Round 6 on Darwin passed all 180 focused tests. The new unstaged-retirement test passed on the control and failed with `staging_retire_failed` under R06 in a separate copy. The test checks that a reserved slot with no plaintext retires successfully, keeps the area ready, and clears its inventory, barrier, and custody charge. ## Review dispositions - Import deviation. The exporter imports `canonical` from `.commands` to check that retained replay outcomes match the command serializer. The spec's import list omitted this dependency. - Residual ACL gap. Staging refuses ACL-bearing files and directories on Darwin. The existing key-custody code in `recovery_crypto.py` does not check ACLs and stays frozen under child #31's D7. - SEC7, open risk. `staged()` verifies the file through the pinned directory descriptor and returns a path. A later consumer may open different bytes at that path. The child that encrypts the archive (#32 or #33) must hash the exact bytes it reads and refuse a size or SHA-256 mismatch. - Check-to-unlink race, open risk. Retirement checks the entry type and existing hard links. A live process running as the same user can swap another entry at the owned name between the check and unlink. A replacement such as a symlink or FIFO can be removed while retirement succeeds. The process can also add a hard link in that interval and keep a copy after retirement. As with SEC7, the same-user process is inside the trust boundary. Closes #30 Co-Authored-By: gpt-6.2-sol <noreply@openai.com>
Implement logical recovery archives and durable plaintext staging
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
72f294d125
Export allowlisted SQLite rows from a single transaction, exclude key material, and filter replay outcomes using the provider clock. Validate canonical framing, record budgets, footer integrity, and live-item links on readback.

Reserve staging capacity before writing plaintext, verify the staged archive before exposing it, and retire readable files durably. Startup sweeps interrupted staging and quarantines failures while retaining the barrier and charge.

All 84 recovery tests and all 565 unit tests passed on Python 3.12. Ruff, mypy, and the wheel build passed.

Closes #30
Co-Authored-By: gpt-6.2-sol <noreply@openai.com>
Harden recovery archive validation and staging custody
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
72beb4bc1c
Keep multiply linked staging plaintext charged
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
dadd99006b
Preserve the staging name and reservation on a link-count refusal, fail closed if the Darwin ACL checker cannot load, and close the directory descriptor if lock acquisition is interrupted.

Verify regression tests against A40 A42 A43 A46 A47 N03 N04 N06 N07 N12 N17 N18 N22 N23 N25 N40 N48 N49 in isolated copies.
Retire unreadable single-link staging plaintext
Some checks failed
ci/woodpecker/pr/validation Pipeline failed
586b31d58d
Check the plaintext link count with directory-relative no-follow stat, independent of read access. Preserve the sweep type guard and quarantine after retirement if the Darwin ACL check cannot open the file.

Kill L06, L08, L10 and L12 in separate copies, plus the no-follow stat and SEC11 regressions.
Exercise unreadable staging cleanup under root CI
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
b4095ce8f7
When CI runs as root, inject the denied open for the verified mode-0200 plaintext. Non-root runs exercise the filesystem permission check.
Preserve nonregular staging entries during retirement
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
30481a19d9
Keep inventory and custody charged on symlink and directory refusals. Preserve the original stage refusal during cleanup. Exercise denied reads independently of the test user's permissions.

Cover partial-file sweep classification and ACL checks. Verify L06, L08, L10, L12, M01, M03 and the related staging regressions in separate mutation copies.
Test retirement of an unstaged reservation
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
a45112a654
Pin the missing_ok path with an empty plaintext slot. Check that retiring a reservation leaves the area ready and clears its inventory, barrier, and custody charge. The test fails under R06 in an isolated copy.

This was generated by AI during the merge gate.

Merge gate record: PR #44 (#30), head a45112a654

Gate run by minds-guide@voyager under the operator's standing grant (delegation operator-word-d982c2768589). The approved spec is the #30 spec rebaselined onto 161d6601 (sha256 ac5f3039…5b8d). It was amended four times at the merge gate under the rulings below. The final copy is spec-pr44-r5, sha256 a2dccad5255c41936f7a397013bcc995d1cc89080396f3faad50b1999c1ce8c4. mind-spec checked each amended copy against the canonical:

Copy sha256 mind-spec
r2 1f01fa3f Fits, one clash with P11: a hard-linked plaintext could be unlinked and the charge released (became SEC8)
r3 a9be727e No clash
r4 e193e8cb Clash with P11 in Retire step 2: a single-link symlink at the plaintext name passed the link-count check and cleared the inventory and the charge
r5 a2dccad5 No clash. The amendments implement P11 and P09 as written, and mind-spec needs no change

Reviews. Three independent sub-agents with no shared context reviewed a detached worktree at each exact head. Each round after the first was a delta review. Every mutation ran in a separate copy of the tree with its own environment.

Round Head Spec Standards Security (§19)
1 72f294d1 FAIL: SP1 to SP4 (should-fix), SP5 (nit), SP6 (deviation); 18 surviving mutants FAIL: ST1, ST2 (should-fix), ST3 (nit) FAIL: SEC1, SEC2 (should-fix), SEC3 to SEC6 (low)
2 72beb4bc FAIL: SP2, SP7, SP8 (should-fix), SP9, SP10 (nits); 18 surviving mutants PASS FAIL: SEC7 to SEC10 (nits)
3 dadd9900 FAIL: SP11 (should-fix), SP12 (nit) PASS FAIL: SEC11 (nit, regression)
4 586b31d5 PASS with SP13 (nit) FAIL: ST4 (blocking: a permission test failed in CI as root) PASS
5 30481a19 FAIL: SP14 (should-fix, test gap) PASS PASS
6 a45112a6 PASS, 0 Not re-run: test-only delta Not re-run: test-only delta

The dispositions for each round are on #30: comments 43725, 43731, 43747 and 43763.

Operator rulings (section 6).

  • SEC1 (the startup sweep unlinked every regular file in the directory): unlink only staging-owned names and quarantine any other entry. Fixed with a spec amendment.
  • SEC2, ST1 and ST2 (refusals kept the library exception as context; wrong-typed arguments escaped; retire unlinked before it validated custody): fix before merge. All fixed.
  • SEC3 to SEC6 (generated columns under an allowlisted name, macOS ACLs, path use after the final-component check, st_nlink): fix all four now. All fixed. The same ACL gap stays in recovery_crypto, which open risk D7 freezes.
  • SEC7 (staged() verifies through the pinned descriptor but returns a path): no #30 change. The child that encrypts the staged archive (#32 or #33) must hash exactly the bytes it reads and refuse on a size or sha256 mismatch. The PR body records the residual.
  • SEC11 (the link-count check opened the file, so an unreadable single-link plaintext could not be retired): fix before merge. Fixed with a no-follow stat relative to the pinned directory.
  • Link race (an entry swapped at an owned name between the check and the unlink): record as a residual. The PR body records it for any swapped entry, hard links included. A live same-user process is inside the trust boundary, as with SEC7.
  • At Half-A: D1, D4 and D5 keep the spec as written (comment 43547). D6 came from a mind-spec clash and was respecified before release.

Red side. The guide re-measured each finding before it went back to the author, and again at the head that fixed it:

  • SEC1 at 72f294d1: opening a 0700 directory holding attention.sqlite3, its -wal and notes.txt deleted all three and reported READY. At 72beb4bc all three survive and the area quarantines.
  • SP7 / N07 (fullmatch changed to match in the sweep): at 72beb4bc the mutant deleted a <64hex>.plaintext.bak file and all 57 staging tests passed. From dadd9900 on, 2 tests fail under it.
  • SP11 / L08 (stop the sweep after the first retained file): at dadd9900 all 71 staging tests passed under it. At 586b31d5 a suite test fails.
  • SEC11 (stage under umask 0o400): dadd9900 left one 0o200 plaintext on disk across restart. 72beb4bc and 586b31d5 left none.
  • mind-spec r4 clash (the regular-file check limited to the sweep): at 30481a19, reverting it fails 7 tests.
  • SP14 / R06 (retire of a missing plaintext raises): at 30481a19 the 179 staging and archive tests passed under it. At a45112a6 the new test fails under it, and the control passes 180 of 180.

The Spec reviewer ran its own mutation sets each round: 94 in round 1, 39 on the round-5 retire hunk, and the earlier survivors again at each head. Each non-equivalent survivor reported in rounds 1 to 5 was killed by the suite alone at a later head.

Spec conditions from Half-A.

  • D1 to D6: the code matches them. Security measured D1 (none of the 9 forms leak; generated columns refused), D5 (65,536 accepted, 65,537 refused with invalid_accounting_integer) and D6 (one clock sample; the command is retained across the cutoff range).
  • Open risk 6 (the injected PermissionError and OSError staging tests pass, not skip, in CI): met. The pipeline 61 unit step reports 10 skips, which are exactly the 10 Darwin-only ACL tests (Standards mapped them by collection position). All 18 PermissionError and OSError ids passed in Security's Darwin runs. The Darwin ACL tests ran on voyager with 0 skipped: 661 unit tests passed at a45112a6.
  • Permission tests and root: the tests for unreadable files inject the denied open, so they do not depend on the user they run as. Standards re-ran the staging tests under a simulated root: 84 of 84 passed, and the root model overrode no open.
  • uv lock --check --offline: green at each head.

CI. Pipeline 61 is success on the exact head a45112a6, and the raw logs were audited:

  • 4 steps, 0 failure signatures;
  • quality is clean (17 source files);
  • unit: 651 passed, 10 skipped (the Darwin ACL tests);
  • real-http-transport: 66 passed.

Integrate. The locked-environment integrate on the exact head a45112a6 (run 20261120T044546Z-8f132718, label writes disabled) has these results. The guide checked the receipt hash (0b6de276…4074) and its fields:

  • readyForMerge and lensReadyForMerge are true, and testResult is green.
  • verifiedCommitSha is a45112a6, in the receipt and in the run state, with 0 rework rounds.
  • The approved spec sha256 is a2dccad5.
  • The forbidden-mutation check is clean over the 4 Primary Files, against base 161d6601.
  • All 5 verification receipts passed and are fresh.
  • The round-6 integrate log (integrate.r4.jsonl) has 0 hits for command not found, errors during collection, = not found and "is_error":true.

The integrate raised four warnings:

  1. Open risks 1 to 4 and 7 are architect decisions. They were ruled at Half-A (D1, D4 and D5 by the operator in comment 43547; D2, D3 and D6 settled with mind-spec) before release.
  2. Open risk 6 is answered under "Spec conditions" above.
  3. Open risk 5: maximum-scale E04 and E06 evidence is owed to child 7. It stays open there.
  4. The integrate did not read the PR reviews. This comment is the posted review record.

Residuals recorded in the PR body.

  • The exporter imports canonical from .commands, outside the spec's import list (SP6).
  • The ACL gap in recovery_crypto (frozen by D7).
  • SEC7: the encrypting child re-hashes the staged bytes.
  • The check-to-unlink race for a same-user process.

Observations (not findings).

  • A clock_us callback that raises escapes export_archive. Store behaves the same way, and the spec's refusal rules do not cover it.
  • Linux POSIX ACLs are not checked; the spec scopes the ACL check to Darwin. This PR adds the repository's first ctypes and skipif uses.
  • An inventory written under umask 0o400 cannot be read later, so the area stays quarantined with staging_inventory_invalid. This fails closed and predates the merge-gate rounds.
  • A table created by ANALYZE (sqlite_stat1) makes export refuse.
  • A non-regular sweep candidate that is preserved keeps a charge until reopen. This is conservative.
  • Retirement is unlink only.

Carried forward.

  • #35 (Restore): the header records floor_us, not the cutoff used, so Restore raises its floor to the export cutoff.
  • #32 or #33 (the encrypting child): re-hash the staged bytes (SEC7). ArchiveIdentity accepts created_us == expiry, but the crypto code requires created < expiry.
  • #33 and #35: key_unavailable is not proof of key loss (comments 43686 and 43689).

Merge. Pinned to head a45112a6 with codex-svd pinned-merge, which refuses while a live SVD run holds this repository.

> *This was generated by AI during the merge gate.* ## Merge gate record: PR #44 (#30), head a45112a65481c2e9d7e507d4a7a753302da05a61 Gate run by minds-guide@voyager under the operator's standing grant (delegation `operator-word-d982c2768589`). The approved spec is the #30 spec rebaselined onto 161d6601 (sha256 `ac5f3039…5b8d`). It was amended four times at the merge gate under the rulings below. The final copy is `spec-pr44-r5`, sha256 `a2dccad5255c41936f7a397013bcc995d1cc89080396f3faad50b1999c1ce8c4`. mind-spec checked each amended copy against the canonical: | Copy | sha256 | mind-spec | | --- | --- | --- | | r2 | `1f01fa3f` | Fits, one clash with P11: a hard-linked plaintext could be unlinked and the charge released (became SEC8) | | r3 | `a9be727e` | No clash | | r4 | `e193e8cb` | Clash with P11 in Retire step 2: a single-link symlink at the plaintext name passed the link-count check and cleared the inventory and the charge | | r5 | `a2dccad5` | No clash. The amendments implement P11 and P09 as written, and mind-spec needs no change | **Reviews.** Three independent sub-agents with no shared context reviewed a detached worktree at each exact head. Each round after the first was a delta review. Every mutation ran in a separate copy of the tree with its own environment. | Round | Head | Spec | Standards | Security (§19) | | --- | --- | --- | --- | --- | | 1 | 72f294d1 | FAIL: SP1 to SP4 (should-fix), SP5 (nit), SP6 (deviation); 18 surviving mutants | FAIL: ST1, ST2 (should-fix), ST3 (nit) | FAIL: SEC1, SEC2 (should-fix), SEC3 to SEC6 (low) | | 2 | 72beb4bc | FAIL: SP2, SP7, SP8 (should-fix), SP9, SP10 (nits); 18 surviving mutants | PASS | FAIL: SEC7 to SEC10 (nits) | | 3 | dadd9900 | FAIL: SP11 (should-fix), SP12 (nit) | PASS | FAIL: SEC11 (nit, regression) | | 4 | 586b31d5 | PASS with SP13 (nit) | FAIL: ST4 (blocking: a permission test failed in CI as root) | PASS | | 5 | 30481a19 | FAIL: SP14 (should-fix, test gap) | PASS | PASS | | 6 | a45112a6 | PASS, 0 | Not re-run: test-only delta | Not re-run: test-only delta | The dispositions for each round are on #30: comments 43725, 43731, 43747 and 43763. **Operator rulings (section 6).** - SEC1 (the startup sweep unlinked every regular file in the directory): unlink only staging-owned names and quarantine any other entry. Fixed with a spec amendment. - SEC2, ST1 and ST2 (refusals kept the library exception as context; wrong-typed arguments escaped; `retire` unlinked before it validated custody): fix before merge. All fixed. - SEC3 to SEC6 (generated columns under an allowlisted name, macOS ACLs, path use after the final-component check, `st_nlink`): fix all four now. All fixed. The same ACL gap stays in `recovery_crypto`, which open risk D7 freezes. - SEC7 (`staged()` verifies through the pinned descriptor but returns a path): no #30 change. The child that encrypts the staged archive (#32 or #33) must hash exactly the bytes it reads and refuse on a size or sha256 mismatch. The PR body records the residual. - SEC11 (the link-count check opened the file, so an unreadable single-link plaintext could not be retired): fix before merge. Fixed with a no-follow stat relative to the pinned directory. - Link race (an entry swapped at an owned name between the check and the unlink): record as a residual. The PR body records it for any swapped entry, hard links included. A live same-user process is inside the trust boundary, as with SEC7. - At Half-A: D1, D4 and D5 keep the spec as written (comment 43547). D6 came from a mind-spec clash and was respecified before release. **Red side.** The guide re-measured each finding before it went back to the author, and again at the head that fixed it: - SEC1 at 72f294d1: opening a 0700 directory holding `attention.sqlite3`, its `-wal` and `notes.txt` deleted all three and reported READY. At 72beb4bc all three survive and the area quarantines. - SP7 / N07 (`fullmatch` changed to `match` in the sweep): at 72beb4bc the mutant deleted a `<64hex>.plaintext.bak` file and all 57 staging tests passed. From dadd9900 on, 2 tests fail under it. - SP11 / L08 (stop the sweep after the first retained file): at dadd9900 all 71 staging tests passed under it. At 586b31d5 a suite test fails. - SEC11 (stage under umask 0o400): dadd9900 left one 0o200 plaintext on disk across restart. 72beb4bc and 586b31d5 left none. - mind-spec r4 clash (the regular-file check limited to the sweep): at 30481a19, reverting it fails 7 tests. - SP14 / R06 (retire of a missing plaintext raises): at 30481a19 the 179 staging and archive tests passed under it. At a45112a6 the new test fails under it, and the control passes 180 of 180. The Spec reviewer ran its own mutation sets each round: 94 in round 1, 39 on the round-5 retire hunk, and the earlier survivors again at each head. Each non-equivalent survivor reported in rounds 1 to 5 was killed by the suite alone at a later head. **Spec conditions from Half-A.** - D1 to D6: the code matches them. Security measured D1 (none of the 9 forms leak; generated columns refused), D5 (65,536 accepted, 65,537 refused with `invalid_accounting_integer`) and D6 (one clock sample; the command is retained across the cutoff range). - Open risk 6 (the injected PermissionError and OSError staging tests pass, not skip, in CI): met. The pipeline 61 unit step reports 10 skips, which are exactly the 10 Darwin-only ACL tests (Standards mapped them by collection position). All 18 PermissionError and OSError ids passed in Security's Darwin runs. The Darwin ACL tests ran on voyager with 0 skipped: 661 unit tests passed at a45112a6. - Permission tests and root: the tests for unreadable files inject the denied open, so they do not depend on the user they run as. Standards re-ran the staging tests under a simulated root: 84 of 84 passed, and the root model overrode no open. - `uv lock --check --offline`: green at each head. **CI.** Pipeline 61 is `success` on the exact head a45112a6, and the raw logs were audited: - 4 steps, 0 failure signatures; - quality is clean (17 source files); - unit: 651 passed, 10 skipped (the Darwin ACL tests); - real-http-transport: 66 passed. **Integrate.** The locked-environment integrate on the exact head a45112a6 (run 20261120T044546Z-8f132718, label writes disabled) has these results. The guide checked the receipt hash (`0b6de276…4074`) and its fields: - `readyForMerge` and `lensReadyForMerge` are true, and `testResult` is green. - `verifiedCommitSha` is a45112a6, in the receipt and in the run state, with 0 rework rounds. - The approved spec sha256 is a2dccad5. - The forbidden-mutation check is clean over the 4 Primary Files, against base 161d6601. - All 5 verification receipts passed and are fresh. - The round-6 integrate log (`integrate.r4.jsonl`) has 0 hits for `command not found`, `errors during collection`, `= not found` and `"is_error":true`. The integrate raised four warnings: 1. Open risks 1 to 4 and 7 are architect decisions. They were ruled at Half-A (D1, D4 and D5 by the operator in comment 43547; D2, D3 and D6 settled with mind-spec) before release. 2. Open risk 6 is answered under "Spec conditions" above. 3. Open risk 5: maximum-scale E04 and E06 evidence is owed to child 7. It stays open there. 4. The integrate did not read the PR reviews. This comment is the posted review record. **Residuals recorded in the PR body.** - The exporter imports `canonical` from `.commands`, outside the spec's import list (SP6). - The ACL gap in `recovery_crypto` (frozen by D7). - SEC7: the encrypting child re-hashes the staged bytes. - The check-to-unlink race for a same-user process. **Observations (not findings).** - A `clock_us` callback that raises escapes `export_archive`. `Store` behaves the same way, and the spec's refusal rules do not cover it. - Linux POSIX ACLs are not checked; the spec scopes the ACL check to Darwin. This PR adds the repository's first `ctypes` and `skipif` uses. - An inventory written under umask 0o400 cannot be read later, so the area stays quarantined with `staging_inventory_invalid`. This fails closed and predates the merge-gate rounds. - A table created by `ANALYZE` (`sqlite_stat1`) makes export refuse. - A non-regular sweep candidate that is preserved keeps a charge until reopen. This is conservative. - Retirement is unlink only. **Carried forward.** - #35 (Restore): the header records `floor_us`, not the cutoff used, so Restore raises its floor to the export cutoff. - #32 or #33 (the encrypting child): re-hash the staged bytes (SEC7). `ArchiveIdentity` accepts `created_us == expiry`, but the crypto code requires created < expiry. - #33 and #35: `key_unavailable` is not proof of key loss (comments 43686 and 43689). **Merge.** Pinned to head a45112a6 with `codex-svd pinned-merge`, which refuses while a live SVD run holds this repository.
svc-svd-writer deleted branch feat/svd-dev-attention-mind-mcp-30-dd-469-6-child-2-7-logical-8f132718 2026-11-20 06:58:28 +00:00
Sign in to join this conversation.
No description provided.