Add recovery manifests and bounded custody verification #46
No reviewers
Labels
No labels
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/attention-mind-mcp!46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-attention-mind-mcp-32-dd-469-6-child-4-7-manifes-062b3895"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Evidence
35d15ff3passed 661 unit tests. Round-2 head0ad6901passed 805 locked unit tests, including the wheel resource test, and 66 transport tests. Ruff, strict mypy and the offline lock check passed.20256a2passed 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.5c32c79passed 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.695904asignsencoding-type=urland 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.beb6a316decodes a raw+as space and%2Bas a literal plus in LIST key fields. Both+and%20preserved 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.Open risks
Provider interoperability remains unqualified. The E13/E09 real-custodian packet must exercise
S3Transportagainst 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.#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.
#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.
#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).
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.
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.
Full-envelope upload throughput. A 100,671,488-byte envelope must upload over TLS within one
timeout_swindow, 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
Merge gate record: PR #46 (#32), head
c2c43f045eThe 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 main35d15ff3(sha256f16e6451…). It was amended five times at the merge gate under the rulings below. The final copy isspec-pr46-r6, sha2568fab9b04e8872ec2f460829aa015c95ca19459386d10d13221340421bd764381. Round 7 changed no spec text, because §1d already required both of its fixes. mind-spec checked each amended copy for canonical fit only:953fcb748373fcdfc730a4a7ee77ccdf8fab9b04Reviews. 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.
0eb3b8a50ad6901620256a245c32c792695904a4beb6a316c2c43f04The dispositions for each round are on #32: comments 43980, 44008, 44200, 44210, 44260 and 44308.
Operator rulings (section 6).
Guide dispositions under those rulings (no new operator decision).
+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.+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:
0eb3b8a5: a complete listing with 0 entries gave no drift, custody current and an eligible copy. Fixed and pinned from0ad69016.0eb3b8a5: with the wire guard removed, a DELETE to the frontier key was sent and succeeded while 83 tests passed. Pinned from0ad69016.0ad69016: the key 'scope/folder/' gave a malformed listing, UNKNOWN, no debt and a restore block. At20256a24it gives OVERDUE debt with no restore block.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.5c32c792: a raw CR at a page boundary gave a malformed listing, and 'b\rc' and 'b\nc' merged. At695904a4,beb6a316andc2c43f04the 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.5c32c792: 12 such keys fit in 62,665 bytes and 13 overflowed at 67,861 bytes. At695904a4the 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.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. Atbeb6a316andc2c43f04it lists 35 of 35 in both styles.beb6a316: a key holding a synthetic secret with+raw and/as%2Fgave a complete listing, with the secret in the debt report (a space for each+). The same body was refused at695904a4. Atc2c43f04all five provider styles are refused, with no debt.beb6a316: with the guard removed, all 230 focused tests passed, andError,ListBucketResultandFooroots read as succeeded. Atc2c43f04the same mutant fails 3 tests.c2c43f04the 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.
CI. Pipeline 69 is
successon the exact headc2c43f04. The guide audited the raw logs: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:readyForMergeandlensReadyForMergeare true, andtestResultis green, with no blockers.verifiedCommitShaisc2c43f04, and all six verification commands exit 0 on it. Each one uses an absolute project environment path.35d15ff3.integrate.r9.jsonlhas 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:
timeout_s(open risk 12).Accepted at merge (not fixed).
+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.listing_malformed, notresponse_malformed. The response is CONTRADICTORY either way.Carried forward.
decode_admissionaccepts any bucket and any role or prefix on inventory admissions, so #33 must bind them.Merge. Pinned to head
c2c43f04withcodex-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