Add recovery manifests and bounded custody verification #46

Merged
Collaborator

Summary

recovery_storage.py       Plans, bounded S3 transport, and admission codec
recovery_inventory.py     Premise, copy settlement, retirement, coverage, and status
tests/recovery_storage.py Synthetic custodian and fault schedules
tests/test_recovery_{storage,inventory}.py

Evidence

  • Pristine base 35d15ff3 passed 661 unit tests. Round-2 head 0ad6901 passed 805 locked unit tests, including the wheel resource test, and 66 transport tests. Ruff, strict mypy and the offline lock check passed.
  • The schedules exercise a delayed create against a retained fence, incorrect exclusion evidence, and a fresh listing that started before deletion. An empty baseline for snapshot B also fails coverage if the later terminal guard for A is missing.
  • Round 2 exercises authenticated frontier absence and ETag or size drift, frontier bucket delete protection, per-kind PUT conditions, exact 24-hour freshness, and the 192-entry debt bound. The HTTP transport has a 120-second total deadline by default, capped at 240 seconds. Tests distinguish expiry before and after send begins.
  • All 47 requested mutations failed against the new regression tests in isolated copies, including the HTTP transport environment variant M10b.
  • Head 20256a2 passed 829 locked unit tests and 66 transport tests. Ruff, strict mypy and the offline lock check passed. The 20 requested round-2 mutations and five additional mutations each failed their regression tests in isolation.
  • Custody status rechecks configuration and listing freshness and binds the observation to the authenticated frontier. Plans and admission decoding enforce the namespace role and key for each operation. Tests cover pagination past folder objects, a slow-drip response, and a worker interrupted by a base exception.
  • Head 5c32c79 passed 851 locked unit tests and 66 transport tests. Ruff, strict mypy and the offline lock check passed. All 17 named round-3 mutation checks and six additional checks failed their focused tests in isolated copies. Seven odd provider keys paginated with the exact continuation pair and left the registered artifact eligible.
  • Head 695904a signs encoding-type=url and requires the matching response declaration. Tests preserve distinct CR and LF keys and recover the original continuation key. U+0001 and U+FFFE also produce bounded orphan debt. The full 32-entry metadata fixture is 236,505 bytes. The 262,144-byte cap covers the 248,832-byte calculation, and a valid response one byte over the cap is refused.
  • All seven required round-4 mutants, six optional mutants and twelve additional checks for the encoding, pagination and cap rules failed the corresponding tests in isolated copies.
  • Head beb6a316 decodes a raw + as space and %2B as a literal plus in LIST key fields. Both + and %20 preserved all 35 versions in a two-page fixture, including both versions at the space key across the page boundary. The tests also verify exact delete targets, the decode-once rule and refusal of non-UTF-8 response bodies. All ten isolated mutation checks failed their matching tests.
  • E09, E12 and E13 evidence is still owed.
  • The P09 metadata tests check complete encoded lengths and ceiling refusals. The separate admission reservation remains 16 × 16 KiB.

Open risks

  1. Provider interoperability remains unqualified. The E13/E09 real-custodian packet must exercise S3Transport against the endpoint under the owner-attested premise, with SAMPLE labelling. Check the provider's space and literal-plus convention in keys and page markers. Also check whether it percent-encodes every byte that would otherwise require XML escaping. If it leaves ampersands or apostrophes for the XML layer to escape, a worst-case page may reach roughly 313–347 kB, exceed the 256 KiB cap and fail closed to UNKNOWN.

  2. #33 staged bytes and lifetime. Before dispatch, confirm that the #33 spec and negative tests bind the exact bytes read for encryption to the staged size and SHA-256, and refuse zero-lifetime archives.

  3. #33 durable settlement and coverage. Confirm persistence and replay checks for the prepared create, its fence, original admission, and predecessor. Keep the fence and custody charge until durable exclusion and verified exact retirement. Bind the snapshot boundary and shared baseline root to artifact identity, ciphertext digest, queue and original expiry. Derive the through-current requirements from independent authority and retain coverage across mutations, marker settlement and pruning. Count the metadata in the local aggregate and reserve admissions separately. #33 owes the SEC6 schedule in which two transitions each attempt to retire one of the two remaining copies.

  4. #35 restore reconciliation. Recompute the baseline from the authenticated archive, then check the independently required facts against the exact P12-authenticated frontier. Apply P13 reconciliation and the P14 content barrier. Test both a missing later guard and guards with missing candidate or provenance (E05/E11).

  5. Provider keys that require manual removal (SEC13, SEC18 and SEC19). A provider key that exceeds 192 UTF-8 bytes, contains nonprintable text, or has an empty, dot or dot-dot segment stays visible as orphan debt without blocking restore. Reports give long or nonprintable keys a bounded SHA-256 identifier. URL-encoded listings preserve CR, LF and characters XML cannot carry. These keys receive no automated delete target. A fresh, complete listing clears the debt after manual removal.

  6. Synchronous transport resources. The deadline bounds caller wait and subsequent response-body reads. An in-flight credential call, header read or cleanup can hold the worker and its resources until the synchronous call returns.

  7. Full-envelope upload throughput. A 100,671,488-byte envelope must upload over TLS within one timeout_s window, which requires about 3.4 MB/s at the 30-second default.

Merge Danger

Door Two-way. The five new files are additive and introduce no migration.

Blast radius Managed recovery custody.

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

## Summary ```text recovery_storage.py Plans, bounded S3 transport, and admission codec recovery_inventory.py Premise, copy settlement, retirement, coverage, and status tests/recovery_storage.py Synthetic custodian and fault schedules tests/test_recovery_{storage,inventory}.py ``` ## Evidence - Pristine base `35d15ff3` passed 661 unit tests. Round-2 head `0ad6901` passed 805 locked unit tests, including the wheel resource test, and 66 transport tests. Ruff, strict mypy and the offline lock check passed. - The schedules exercise a delayed create against a retained fence, incorrect exclusion evidence, and a fresh listing that started before deletion. An empty baseline for snapshot B also fails coverage if the later terminal guard for A is missing. - Round 2 exercises authenticated frontier absence and ETag or size drift, frontier bucket delete protection, per-kind PUT conditions, exact 24-hour freshness, and the 192-entry debt bound. The HTTP transport has a 120-second total deadline by default, capped at 240 seconds. Tests distinguish expiry before and after send begins. - All 47 requested mutations failed against the new regression tests in isolated copies, including the HTTP transport environment variant M10b. - Head `20256a2` passed 829 locked unit tests and 66 transport tests. Ruff, strict mypy and the offline lock check passed. The 20 requested round-2 mutations and five additional mutations each failed their regression tests in isolation. - Custody status rechecks configuration and listing freshness and binds the observation to the authenticated frontier. Plans and admission decoding enforce the namespace role and key for each operation. Tests cover pagination past folder objects, a slow-drip response, and a worker interrupted by a base exception. - Head `5c32c79` passed 851 locked unit tests and 66 transport tests. Ruff, strict mypy and the offline lock check passed. All 17 named round-3 mutation checks and six additional checks failed their focused tests in isolated copies. Seven odd provider keys paginated with the exact continuation pair and left the registered artifact eligible. - Head `695904a` signs `encoding-type=url` and requires the matching response declaration. Tests preserve distinct CR and LF keys and recover the original continuation key. U+0001 and U+FFFE also produce bounded orphan debt. The full 32-entry metadata fixture is 236,505 bytes. The 262,144-byte cap covers the 248,832-byte calculation, and a valid response one byte over the cap is refused. - All seven required round-4 mutants, six optional mutants and twelve additional checks for the encoding, pagination and cap rules failed the corresponding tests in isolated copies. - Head `beb6a316` decodes a raw `+` as space and `%2B` as a literal plus in LIST key fields. Both `+` and `%20` preserved all 35 versions in a two-page fixture, including both versions at the space key across the page boundary. The tests also verify exact delete targets, the decode-once rule and refusal of non-UTF-8 response bodies. All ten isolated mutation checks failed their matching tests. - E09, E12 and E13 evidence is still owed. - The P09 metadata tests check complete encoded lengths and ceiling refusals. The separate admission reservation remains 16 × 16 KiB. ## Open risks 6. **Provider interoperability remains unqualified.** The E13/E09 real-custodian packet must exercise `S3Transport` against the endpoint under the owner-attested premise, with SAMPLE labelling. Check the provider's space and literal-plus convention in keys and page markers. Also check whether it percent-encodes every byte that would otherwise require XML escaping. If it leaves ampersands or apostrophes for the XML layer to escape, a worst-case page may reach roughly 313–347 kB, exceed the 256 KiB cap and fail closed to UNKNOWN. 7. **#33 staged bytes and lifetime.** Before dispatch, confirm that the #33 spec and negative tests bind the exact bytes read for encryption to the staged size and SHA-256, and refuse zero-lifetime archives. 8. **#33 durable settlement and coverage.** Confirm persistence and replay checks for the prepared create, its fence, original admission, and predecessor. Keep the fence and custody charge until durable exclusion and verified exact retirement. Bind the snapshot boundary and shared baseline root to artifact identity, ciphertext digest, queue and original expiry. Derive the through-current requirements from independent authority and retain coverage across mutations, marker settlement and pruning. Count the metadata in the local aggregate and reserve admissions separately. #33 owes the SEC6 schedule in which two transitions each attempt to retire one of the two remaining copies. 9. **#35 restore reconciliation.** Recompute the baseline from the authenticated archive, then check the independently required facts against the exact P12-authenticated frontier. Apply P13 reconciliation and the P14 content barrier. Test both a missing later guard and guards with missing candidate or provenance (E05/E11). 10. **Provider keys that require manual removal (SEC13, SEC18 and SEC19).** A provider key that exceeds 192 UTF-8 bytes, contains nonprintable text, or has an empty, dot or dot-dot segment stays visible as orphan debt without blocking restore. Reports give long or nonprintable keys a bounded SHA-256 identifier. URL-encoded listings preserve CR, LF and characters XML cannot carry. These keys receive no automated delete target. A fresh, complete listing clears the debt after manual removal. 11. **Synchronous transport resources.** The deadline bounds caller wait and subsequent response-body reads. An in-flight credential call, header read or cleanup can hold the worker and its resources until the synchronous call returns. 12. **Full-envelope upload throughput.** A 100,671,488-byte envelope must upload over TLS within one `timeout_s` window, which requires about 3.4 MB/s at the 30-second default. ## Merge Danger **Door** Two-way. The five new files are additive and introduce no migration. **Blast radius** Managed recovery custody. Closes #32 Co-Authored-By: gpt-6.2-sol <noreply@openai.com>
Add recovery manifests and bounded custody verification
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
0eb3b8a539
Implement provider-neutral storage plans, single-request S3 transport, and canonical admission records. Add premise validation, copy settlement and retirement, authenticated coverage, and custody reporting.

Exercise delayed creates, lost replies, incomplete listings, and verified deletion with a synthetic fault adapter. Ruff, mypy, all 744 unit tests, all 66 transport tests, and the offline wheel build passed.

Closes #32
Co-Authored-By: gpt-6.2-sol <noreply@openai.com>
Harden custody evidence and bound storage requests
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
0ad69016d3
Bind custody evidence and bound response reads
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
20256a2490
Preserve opaque provider keys as bounded custody debt
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
5c32c79217
Preserve URL-encoded version listing keys
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
695904a472
Cover a full metadata page and the response byte ceiling. Pin P01, P04-P10, P12, D08, K03, K07 and K08.
Decode S3 LIST key fields with form URL semantics
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
beb6a31620
Reject ambiguous plus in listing credential echoes
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
c2c43f045e
Cover raw and escaped plus forms, invalid versioning roots, and empty listing metadata. Verify each new case against its individual regression.

This was generated by AI during the merge gate.

Merge gate record: PR #46 (#32), head c2c43f045e

The guide ran this gate under the operator's standing grant (delegation operator-word-d982c2768589). The approved spec is the #32 spec from Half-A on main 35d15ff3 (sha256 f16e6451…). It was amended five times at the merge gate under the rulings below. The final copy is spec-pr46-r6, sha256 8fab9b04e8872ec2f460829aa015c95ca19459386d10d13221340421bd764381. Round 7 changed no spec text, because §1d already required both of its fixes. mind-spec checked each amended copy for canonical fit only:

Copy sha256 mind-spec
r2 953fcb74 All eight round-1 amendments accommodated, no clash
r3 8373fcdf All eight round-2 amendments accommodated, no clash
r4 c730a4a7 All seven round-3 amendments accommodated, no clash. An operator matches a digest debt identifier by hashing the exact listed keys of a bounded listing
r5 ee77ccdf All seven round-4 amendments accommodated, no clash. The 256 KiB LIST cap supersedes only this child's 64 KiB LIST bound
r6 8fab9b04 All four round-5 amendments accommodated, no clash

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 its own copy of the tree with its own environment.

Round Head Spec Standards Security (§19)
1 0eb3b8a5 FAIL: SP1 to SP3 (blocking), SP4 to SP10 and SP13 (should-fix), SP11 and SP12 (deviations); 37 of 63 mutants survive PASS with ST1 (should-fix) and nits FAIL: SEC1 and SEC2 (medium), SEC3 to SEC10 (low)
2 0ad69016 FAIL: SP14 to SP20 (test gaps) PASS with R2-ST1 (should-fix) FAIL: SEC11 to SEC16 (low)
3 20256a24 FAIL: R3-SP1 to R3-SP4 (test gaps) PASS with nits FAIL: SEC17 (pins), SEC18 (low)
4 5c32c792 FAIL: R4-SP1 (test gaps) and nits PASS FAIL: SEC19 and SEC20 (low)
5 695904a4 FAIL: R5-SP1 (medium), R5-SP2, R5-SP3 PASS with nits FAIL: SEC21 and SEC22 (low)
6 beb6a316 PASS: 235 mutants, 214 killed PASS with 3 nits FAIL: SEC23 and SEC24 (low)
7 c2c43f04 PASS: 248 mutants, 227 killed, 21 survive (nits or equivalent), none newly surviving PASS with 2 nits PASS, no finding

The dispositions for each round are on #32: comments 43980, 44008, 44200, 44210, 44260 and 44308.

Operator rulings (section 6).

  • Round 1. SEC1 (a lost or overwritten frontier object gave no drift, so custody stayed current): fix before merge, with a spec amendment. SEC2 (a dot-segment key passed key validation, and only the wire recheck stopped a cross-bucket frontier delete): pin and refuse early. SEC3 and SEC4 (delete protection bound the role, not the bucket; an unconditional PUT was accepted): fix both now. SEC5 to SEC10: fix and pin all now. The SEC6 two-transition case goes to #33.
  • Round 2. SEC13 (a folder or empty-segment listed key made the whole listing malformed): orphan debt. SEC11, SEC12, SEC14, SEC15 and SEC16: fix under the round-1 rulings.
  • Round 3. SEC18 (a listed key that S3 accepts but the request-key bound refuses made the listing malformed): extend the SEC13 treatment. The key becomes orphan debt under a bounded identifier with no delete target. The listing stays complete and restore is not blocked.
  • Round 4. SEC19 (XML end-of-line handling changed a raw CR in a key): request URL-encoded listings and decode every key and marker. SEC20 (13 heavily escaped 1,024-byte keys overflowed the 64 KiB LIST cap): raise the cap so that a full page of worst-case keys with full version metadata fits. The page size stays at 32 keys.

Guide dispositions under those rulings (no new operator decision).

  • Round 5, under the SEC19 and SEC18 rulings. SEC21 and R5-SP1: the decoder kept + as a literal plus. The reference AWS SDK decodes + in these fields as a space, and it requests URL-encoded listings on every call. With a provider that writes a space as +, a page boundary at a space key skipped real keys while the listing still reported complete. The fix decodes + as a space with strict UTF-8. Four separate reads found this defect: the guide, Spec, Standards and Security.
  • Round 6, under the round-1 SEC8 to SEC10 rulings on secret guards and response checks. SEC23: after the round-5 fix, the credential-echo check missed a secret containing + when a provider leaves + raw and escapes another byte. The fix also checks each listed key with + kept as a plus. SEC24: the root-name check on the versioning response had no test. It is now pinned.

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

  • SEC1 at 0eb3b8a5: a complete listing with 0 entries gave no drift, custody current and an eligible copy. Fixed and pinned from 0ad69016.
  • SEC2 at 0eb3b8a5: with the wire guard removed, a DELETE to the frontier key was sent and succeeded while 83 tests passed. Pinned from 0ad69016.
  • SEC13 at 0ad69016: the key 'scope/folder/' gave a malformed listing, UNKNOWN, no debt and a restore block. At 20256a24 it gives OVERDUE debt with no restore block.
  • SEC18 at 5c32c792: seven odd keys (over 192 bytes, tab, no-break space and others) each give a complete inventory, one debt entry, no restore block and an eligible copy.
  • SEC19 at 5c32c792: a raw CR at a page boundary gave a malformed listing, and 'b\rc' and 'b\nc' merged. At 695904a4, beb6a316 and c2c43f04 the boundary listing is complete and the two keys stay distinct, with either provider encoding. U+0001, U+FFFE and tab keys give digest debt. A bad escape, a truncated UTF-8 escape and a missing EncodingType each give a malformed listing.
  • SEC20 at 5c32c792: 12 such keys fit in 62,665 bytes and 13 overflowed at 67,861 bytes. At 695904a4 the Spec reviewer's full worst-case test page measured 236,505 bytes, and the Security reviewer's worst real-S3-shaped page measured 243,580 bytes. Both fit the 262,144-byte cap. The cap did not change later.
  • SEC21 at 695904a4: with a provider that writes a space as +, the listing reported complete with 33 of 35 versions, merged 'scope/a b' with 'scope/a+b', and refused two junk keys as unordered, which blocked restore. At beb6a316 and c2c43f04 it lists 35 of 35 in both styles.
  • SEC23 at beb6a316: a key holding a synthetic secret with + raw and / as %2F gave a complete listing, with the secret in the debt report (a space for each +). The same body was refused at 695904a4. At c2c43f04 all five provider styles are refused, with no debt.
  • SEC24 at beb6a316: with the guard removed, all 230 focused tests passed, and Error, ListBucketResult and Foo roots read as succeeded. At c2c43f04 the same mutant fails 3 tests.
  • At c2c43f04 the guide's 11 targeted mutants on the round-5 to round-7 rules each fail a test, except one. That one removes one of two guards against an empty final marker. The other guard still refuses it, and removing both fails 2 tests.

Spec conditions.

  • In round 7 the Spec reviewer found no should-fix gap, and no mutant that failed a test in round 6 survives. Each new Test Strategy row from rounds 5 and 6 has a targeted mutant that fails a test. The 21 surviving mutants are nits or equivalent.
  • In round 7 Standards ran the new and changed tests 50 times each under load average 25.9 to 45.3, with 1,900 passes and no failure. Its key fuzz ran 378 checks and its refusal fuzz 3,477, with 0 problems.
  • CI runs as root. Pipeline 69 passed every unit test there.

CI. Pipeline 69 is success on the exact head c2c43f04. The guide audited the raw logs:

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

Integrate. The locked-environment integrate on the exact head c2c43f04 (run 20261120T080422Z-062b3895, label writes disabled) gave these results. The guide checked the receipt hash (3e349ee3…9f9f), the detail hash (01087ee0…1908) and the fields:

  • readyForMerge and lensReadyForMerge are true, and testResult is green, with no blockers.
  • verifiedCommitSha is c2c43f04, and all six verification commands exit 0 on it. Each one uses an absolute project environment path.
  • The approved spec sha256 is 8fab9b04.
  • The forbidden-mutation check is clean over the 5 Primary Files, against base 35d15ff3.
  • The raw log integrate.r9.jsonl has 0 hits for "ran outside the project environment". The round-1 integrate gave a false red from relative environment paths, which is dev/stables#2333. Every later integrate used absolute paths.

Residuals recorded in the PR body. Open risks 6 to 12:

  • Provider interoperability is still unqualified (open risk 6). The real-endpoint packet must check the provider's space and plus convention. It must also check whether the provider percent-encodes every byte that XML must escape. If not, a worst-case page is larger than the cap and fails closed to UNKNOWN.
  • Keys that need manual removal (open risk 10).
  • The synchronous transport worker can outlive the deadline (open risk 11).
  • A full envelope must upload over TLS within one timeout_s (open risk 12).

Accepted at merge (not fixed).

  • Fail closed: a real key that equals the secret with each + written as a space is refused when a provider writes that space as +. Inventory is then UNKNOWN and restore is blocked. Only someone who knows the secret can create such a key, and §1d refuses the ambiguous response. The raw-bytes check already behaves the same way for that provider style.
  • No test pins the new check on a delete-marker entry. The check runs on the same line for both entry kinds and is pinned for versions.
  • A percent-encoded secret in a VersionId, ETag or owner name is accepted. These fields are never URL-decoded, so the literal secret is never kept. A literal secret in them is refused.
  • Two versions of one key may both be marked latest. The inventory never reads that flag.
  • The listing parser takes the secret as plain text, not inside the credentials object. Nothing captures frame locals today.
  • The new plus-in-key test does not assert that the secret is absent from the result's repr. Its sibling does.
  • A secret only in a mismatched next-page marker gives listing_malformed, not response_malformed. The response is CONTRADICTORY either way.
  • Older nits: optional constructor pins (G07 to G10) and equivalent or near-equivalent mutants.

Carried forward.

  • #33: the SEC6 schedule in which two transitions each retire one of the two remaining copies; open risks 7 and 8; decode_admission accepts any bucket and any role or prefix on inventory admissions, so #33 must bind them.
  • #33 and #35: bind the digest, ETag and size to the authenticated frontier.
  • E09/E13 real-endpoint packet: show that the endpoint preserves key and version identity through bounded pagination and exact-version operations, including distinct space and plus keys across a page boundary. Ambiguous identity gives no complete inventory, deletion authority, retirement proof or activation. Known debt is kept and custody stays UNKNOWN.

Merge. Pinned to head c2c43f04 with codex-svd pinned-merge, which refuses while a live SVD run holds this repository. The change class was not measured: this host has no classify-diff tool. The §19 security review above is the precaution.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the merge gate.* ## Merge gate record: PR #46 (#32), head c2c43f045e0da12321476313ff9d5109b8e598c9 The guide ran this gate under the operator's standing grant (delegation `operator-word-d982c2768589`). The approved spec is the #32 spec from Half-A on main 35d15ff3 (sha256 `f16e6451…`). It was amended five times at the merge gate under the rulings below. The final copy is `spec-pr46-r6`, sha256 `8fab9b04e8872ec2f460829aa015c95ca19459386d10d13221340421bd764381`. Round 7 changed no spec text, because §1d already required both of its fixes. mind-spec checked each amended copy for canonical fit only: | Copy | sha256 | mind-spec | | --- | --- | --- | | r2 | `953fcb74` | All eight round-1 amendments accommodated, no clash | | r3 | `8373fcdf` | All eight round-2 amendments accommodated, no clash | | r4 | `c730a4a7` | All seven round-3 amendments accommodated, no clash. An operator matches a digest debt identifier by hashing the exact listed keys of a bounded listing | | r5 | `ee77ccdf` | All seven round-4 amendments accommodated, no clash. The 256 KiB LIST cap supersedes only this child's 64 KiB LIST bound | | r6 | `8fab9b04` | All four round-5 amendments accommodated, no clash | **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 its own copy of the tree with its own environment. | Round | Head | Spec | Standards | Security (§19) | | --- | --- | --- | --- | --- | | 1 | 0eb3b8a5 | FAIL: SP1 to SP3 (blocking), SP4 to SP10 and SP13 (should-fix), SP11 and SP12 (deviations); 37 of 63 mutants survive | PASS with ST1 (should-fix) and nits | FAIL: SEC1 and SEC2 (medium), SEC3 to SEC10 (low) | | 2 | 0ad69016 | FAIL: SP14 to SP20 (test gaps) | PASS with R2-ST1 (should-fix) | FAIL: SEC11 to SEC16 (low) | | 3 | 20256a24 | FAIL: R3-SP1 to R3-SP4 (test gaps) | PASS with nits | FAIL: SEC17 (pins), SEC18 (low) | | 4 | 5c32c792 | FAIL: R4-SP1 (test gaps) and nits | PASS | FAIL: SEC19 and SEC20 (low) | | 5 | 695904a4 | FAIL: R5-SP1 (medium), R5-SP2, R5-SP3 | PASS with nits | FAIL: SEC21 and SEC22 (low) | | 6 | beb6a316 | PASS: 235 mutants, 214 killed | PASS with 3 nits | FAIL: SEC23 and SEC24 (low) | | 7 | c2c43f04 | PASS: 248 mutants, 227 killed, 21 survive (nits or equivalent), none newly surviving | PASS with 2 nits | PASS, no finding | The dispositions for each round are on #32: comments 43980, 44008, 44200, 44210, 44260 and 44308. **Operator rulings (section 6).** - Round 1. SEC1 (a lost or overwritten frontier object gave no drift, so custody stayed current): fix before merge, with a spec amendment. SEC2 (a dot-segment key passed key validation, and only the wire recheck stopped a cross-bucket frontier delete): pin and refuse early. SEC3 and SEC4 (delete protection bound the role, not the bucket; an unconditional PUT was accepted): fix both now. SEC5 to SEC10: fix and pin all now. The SEC6 two-transition case goes to #33. - Round 2. SEC13 (a folder or empty-segment listed key made the whole listing malformed): orphan debt. SEC11, SEC12, SEC14, SEC15 and SEC16: fix under the round-1 rulings. - Round 3. SEC18 (a listed key that S3 accepts but the request-key bound refuses made the listing malformed): extend the SEC13 treatment. The key becomes orphan debt under a bounded identifier with no delete target. The listing stays complete and restore is not blocked. - Round 4. SEC19 (XML end-of-line handling changed a raw CR in a key): request URL-encoded listings and decode every key and marker. SEC20 (13 heavily escaped 1,024-byte keys overflowed the 64 KiB LIST cap): raise the cap so that a full page of worst-case keys with full version metadata fits. The page size stays at 32 keys. **Guide dispositions under those rulings (no new operator decision).** - Round 5, under the SEC19 and SEC18 rulings. SEC21 and R5-SP1: the decoder kept `+` as a literal plus. The reference AWS SDK decodes `+` in these fields as a space, and it requests URL-encoded listings on every call. With a provider that writes a space as `+`, a page boundary at a space key skipped real keys while the listing still reported complete. The fix decodes `+` as a space with strict UTF-8. Four separate reads found this defect: the guide, Spec, Standards and Security. - Round 6, under the round-1 SEC8 to SEC10 rulings on secret guards and response checks. SEC23: after the round-5 fix, the credential-echo check missed a secret containing `+` when a provider leaves `+` raw and escapes another byte. The fix also checks each listed key with `+` kept as a plus. SEC24: the root-name check on the versioning response had no test. It is now pinned. **Red side.** The guide re-measured each finding in its own copy before it went back to the author, and again at the head that fixed it: - SEC1 at 0eb3b8a5: a complete listing with 0 entries gave no drift, custody current and an eligible copy. Fixed and pinned from 0ad69016. - SEC2 at 0eb3b8a5: with the wire guard removed, a DELETE to the frontier key was sent and succeeded while 83 tests passed. Pinned from 0ad69016. - SEC13 at 0ad69016: the key 'scope/folder/' gave a malformed listing, UNKNOWN, no debt and a restore block. At 20256a24 it gives OVERDUE debt with no restore block. - SEC18 at 5c32c792: seven odd keys (over 192 bytes, tab, no-break space and others) each give a complete inventory, one debt entry, no restore block and an eligible copy. - SEC19 at 5c32c792: a raw CR at a page boundary gave a malformed listing, and 'b\rc' and 'b\nc' merged. At 695904a4, beb6a316 and c2c43f04 the boundary listing is complete and the two keys stay distinct, with either provider encoding. U+0001, U+FFFE and tab keys give digest debt. A bad escape, a truncated UTF-8 escape and a missing EncodingType each give a malformed listing. - SEC20 at 5c32c792: 12 such keys fit in 62,665 bytes and 13 overflowed at 67,861 bytes. At 695904a4 the Spec reviewer's full worst-case test page measured 236,505 bytes, and the Security reviewer's worst real-S3-shaped page measured 243,580 bytes. Both fit the 262,144-byte cap. The cap did not change later. - SEC21 at 695904a4: with a provider that writes a space as `+`, the listing reported complete with 33 of 35 versions, merged 'scope/a b' with 'scope/a+b', and refused two junk keys as unordered, which blocked restore. At beb6a316 and c2c43f04 it lists 35 of 35 in both styles. - SEC23 at beb6a316: a key holding a synthetic secret with `+` raw and `/` as `%2F` gave a complete listing, with the secret in the debt report (a space for each `+`). The same body was refused at 695904a4. At c2c43f04 all five provider styles are refused, with no debt. - SEC24 at beb6a316: with the guard removed, all 230 focused tests passed, and `Error`, `ListBucketResult` and `Foo` roots read as succeeded. At c2c43f04 the same mutant fails 3 tests. - At c2c43f04 the guide's 11 targeted mutants on the round-5 to round-7 rules each fail a test, except one. That one removes one of two guards against an empty final marker. The other guard still refuses it, and removing both fails 2 tests. **Spec conditions.** - In round 7 the Spec reviewer found no should-fix gap, and no mutant that failed a test in round 6 survives. Each new Test Strategy row from rounds 5 and 6 has a targeted mutant that fails a test. The 21 surviving mutants are nits or equivalent. - In round 7 Standards ran the new and changed tests 50 times each under load average 25.9 to 45.3, with 1,900 passes and no failure. Its key fuzz ran 378 checks and its refusal fuzz 3,477, with 0 problems. - CI runs as root. Pipeline 69 passed every unit test there. **CI.** Pipeline 69 is `success` on the exact head c2c43f04. The guide audited the raw logs: - 4 steps, 0 failure signatures; - quality is clean (19 source files); - unit: 891 passed, 10 skipped (the Darwin ACL tests); - real-http-transport: 66 passed. **Integrate.** The locked-environment integrate on the exact head c2c43f04 (run 20261120T080422Z-062b3895, label writes disabled) gave these results. The guide checked the receipt hash (`3e349ee3…9f9f`), the detail hash (`01087ee0…1908`) and the fields: - `readyForMerge` and `lensReadyForMerge` are true, and `testResult` is green, with no blockers. - `verifiedCommitSha` is c2c43f04, and all six verification commands exit 0 on it. Each one uses an absolute project environment path. - The approved spec sha256 is 8fab9b04. - The forbidden-mutation check is clean over the 5 Primary Files, against base 35d15ff3. - The raw log `integrate.r9.jsonl` has 0 hits for "ran outside the project environment". The round-1 integrate gave a false red from relative environment paths, which is dev/stables#2333. Every later integrate used absolute paths. **Residuals recorded in the PR body.** Open risks 6 to 12: - Provider interoperability is still unqualified (open risk 6). The real-endpoint packet must check the provider's space and plus convention. It must also check whether the provider percent-encodes every byte that XML must escape. If not, a worst-case page is larger than the cap and fails closed to UNKNOWN. - Keys that need manual removal (open risk 10). - The synchronous transport worker can outlive the deadline (open risk 11). - A full envelope must upload over TLS within one `timeout_s` (open risk 12). **Accepted at merge (not fixed).** - Fail closed: a real key that equals the secret with each `+` written as a space is refused when a provider writes that space as `+`. Inventory is then UNKNOWN and restore is blocked. Only someone who knows the secret can create such a key, and §1d refuses the ambiguous response. The raw-bytes check already behaves the same way for that provider style. - No test pins the new check on a delete-marker entry. The check runs on the same line for both entry kinds and is pinned for versions. - A percent-encoded secret in a VersionId, ETag or owner name is accepted. These fields are never URL-decoded, so the literal secret is never kept. A literal secret in them is refused. - Two versions of one key may both be marked latest. The inventory never reads that flag. - The listing parser takes the secret as plain text, not inside the credentials object. Nothing captures frame locals today. - The new plus-in-key test does not assert that the secret is absent from the result's repr. Its sibling does. - A secret only in a mismatched next-page marker gives `listing_malformed`, not `response_malformed`. The response is CONTRADICTORY either way. - Older nits: optional constructor pins (G07 to G10) and equivalent or near-equivalent mutants. **Carried forward.** - #33: the SEC6 schedule in which two transitions each retire one of the two remaining copies; open risks 7 and 8; `decode_admission` accepts any bucket and any role or prefix on inventory admissions, so #33 must bind them. - #33 and #35: bind the digest, ETag and size to the authenticated frontier. - E09/E13 real-endpoint packet: show that the endpoint preserves key and version identity through bounded pagination and exact-version operations, including distinct space and plus keys across a page boundary. Ambiguous identity gives no complete inventory, deletion authority, retirement proof or activation. Known debt is kept and custody stays UNKNOWN. **Merge.** Pinned to head c2c43f04 with `codex-svd pinned-merge`, which refuses while a live SVD run holds this repository. The change class was not measured: this host has no classify-diff tool. The §19 security review above is the precaution. Filed under: operator-word-d982c2768589
svc-svd-writer deleted branch feat/svd-dev-attention-mind-mcp-32-dd-469-6-child-4-7-manifes-062b3895 2026-11-21 00:00:12 +00:00
Sign in to join this conversation.
No description provided.