Add authenticated recovery envelopes and frontier validation #42
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!42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-attention-mind-mcp-31-dd-469-6-child-3-7-encrypt-3b223369"
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
9af46b3epassed 427 unit and 66 transport tests. The initial headcadca3566passed 30 focused, 457 unit and 66 transport tests. The unit suite also passed on Python 3.12. Ruff, strict mypy and wheel and source builds passed.uv lock --check --offlinepassed oncadca3566. The locked runtime reportscryptography 50.0.2,cffi 2.1.1and bundled OpenSSL 4.0.3.143a3415. At the maximum frontier plaintext size, seal and open each peaked below the required output allocation plus 1 MiB. Open passes a memoryview of the ciphertext into AES-GCM.143a3415, 36 focused recovery tests,uv lock --check --offline, Ruff and strict mypy passed. Tests cover digest-before-key ordering, fixed refusals without exception chaining, marker revision and lifetime bounds, and the bounded newline scan. Removing the implicit frontier key obligation made its regression test fail. Round 1 dispositions.143a3415. After sealing and reopening M, it compares F's occurrence, fact, inventory and spent-command records byte for byte and preserves F's existing certificates and reserves. It derives C through one original admission and checks that M carries exactly C's lifetime usage. The full ledger comparison permits the encoded cancellation certificate and one completion command entry, with the successor revision and authenticated premise. The certificate cap and original deadline are asserted in the suite.pipqueries returned zero entries forcryptography==50.0.2andcffi==2.1.1. The locked environment reported OpenSSL 4.0.3, which pyca also documents for its Windows, macOS, and Linux wheels. OSV query API, GitHub Advisory Database queries, pyca wheel changelog.af1775b60dfa141a4ad762585052cabeb9f37e9ereturned CVE-2026-124709, CVE-2026-35190, CVE-2026-88822, CVE-2026-88823, CVE-2026-95691, and CVE-2026-95692. The GitHub version and upstream repository advisory queries returned zero entries. OpenSSL's own affected ranges additionally list CVE-2026-107493 and CVE-2026-107496. The affected APIs are QUIC, TLS key-share processing, AES-GCM-SIV, PEM stack appending, and CMS encryption. The recovery code usesAESGCMand standard-library HMAC-SHA256, so these entries do not affect the recovery paths added here. OpenSSL 4.0.3 tag, OpenSSL 4.0 advisories.Merge Danger
Door Two-way. A revert can remove the private modules and direct dependency.
Blast radius Recovery envelope and frontier modules.
Closes #31
Co-Authored-By: gpt-6.2-sol noreply@openai.com
Merge gate record: PR #42 (#31), head
b9361ceb87Gate run by minds-guide@voyager under the operator's standing grant (delegation
operator-word-d982c2768589). The approved spec is the #31 spec rebaselined onto9af46b3e, amended once at round 1 under the operator rulings below (amended copy sha2568e706b171dd0c74da7232472200767c979d14ef77d0ac50dc74424b9c9b63e42). mind-spec confirmed that the amended copy has no clash with the canonical.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.
cadca356143a34156b3845fe5e2757faf3534633b9361cebRound 5 hardened two inputs that two reviewers flagged as one class. Open risk 1 (D7) freezes
recovery_crypto.pyfor the later #6 children, so a fix now costs less than a write-set expansion later.Operator rulings (section 6).
_failinsideexceptkeeps the library exception as__context__) and I3 (an unbounded newline search before the class cap): fix before merge. Both are fixed. No refusal carries a cause or a context, and the newline search stops at 65,536 bytes.envelope_replayed.check_markeraccepted a refund of C's admission): tighten and record the residual. The marker must haverevision == F+1andF <= lifetime <= F+1. Open risk 7 records the residual: a refund by one is not detectable on the path with no PREPARED payload.Noneexpected digest skipped the digest check): fix before merge.EnvelopeExpectationnow validates the digest, and the comparison inopen_envelopeis unconditional.Red side. The guide and the Spec reviewer measured each fix with mutations in a separate copy of the tree. At round 5, 64 of 67 mutations turned a test red. Two of the three survivors (N3o and R5i) are equivalent mutants. The third was R5h, which removed the argument-shape fallback in
_resolve, and became R5-1. At round 6 the new parametrised test fails 3 of 4 cases under R5h and passes 4 of 4 at the head.Spec conditions from Half-A.
build_markerasserts the ledger parts in one exact equality, and a mutation of each part turns the test red.uv lock --check --offline: green at each head.cryptography50.0.2 andcffi2.1.1 have no entries. The bundled OpenSSL 4.0.3 has 8 published advisories, all fixed in 4.0.4. They cover PEM stack appending, QUIC (3), TLS 1.3 key share, CMS encryption and AES-GCM-SIV (2). None affects AES-GCM or HMAC, so the condition to bump or hold does not fire. The new modules import onlyAESGCMandInvalidTag.CI. Pipeline 53 is
successon the exact headb9361ceb, and the raw logs were audited:Integrate. The locked-environment integrate on the exact head
b9361cebhas these results:readyForMergeandlensReadyForMergeare true, andtestResultis green.verifiedCommitShaisb9361ceb, with 0 rework rounds.The integrate raised two warnings. This comment answers the first, because it is the posted review record. PR body line 21 answers the second, because it states the module-scope limit.
Observations (not findings).
cryptography50.0.2 was already locked on main through pyjwt and joserfc, and the lock diff adds only the direct specifier. 50.0.2 is the latest release on PyPI, so no release with OpenSSL 4.0.4 exists yet. The OpenSSL advisories above are therefore a repository-wide dependency matter, not a property of this PR._resolve. The resolver supplies key material, so it is inside the trust boundary.key_unavailable. Child 5 (#33) and Restore (#35) must not treatkey_unavailableas permanent key loss.Merge. Pinned to head
b9361cebwithcodex-svd pinned-merge, which refuses while a live SVD run holds this repository.