Skip to content

fix(crypto): authenticate braid vault, signature and RWP2 paths - #2859

Merged
issdandavis merged 4 commits into
mainfrom
fix/braid-signature-authentication-20260918
Sep 19, 2026
Merged

issdandavis merged 4 commits into
mainfrom
fix/braid-signature-authentication-20260918

Conversation

@issdandavis

@issdandavis issdandavis commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Legacy signature verification accepted fabricated marker bytes and could ignore a backend's false verdict. The custom braid vault returned unauthenticated XOR plaintext, and connected RWP2/Aethercode authentication paths used public demo keys or always-true verification. This change requires actual message/key verification and authenticated vault entries while retaining the existing experimental master derivation.

Both shipped signing/SS1 copies are covered. Unsupported signed/hybrid requests in the legacy SS1 format now reject instead of dropping security fields. Vault rotation validates and stages every entry before updating state; original expiry survives rotation. Old unauthenticated entries require an explicit, separately reviewed recovery procedure; there is no automatic downgrade or deletion.

RWP2 now requires explicitly provisioned keys, authenticates canonical typed fields including tier/key ID/version, separates tongue MAC domains, and enforces each tier's minimum signers. Its process-local replay cache authenticates first, records atomically, and rejects capacity overflow instead of evicting live receipts. Aethercode uses a real HMAC and verifies a message plus tag; ordinary non-signing interpretation still works without keys. Old delimiter-based tags and public demo keys are deliberately rejected; peers must be updated together.

Validation: 102 focused security/vault tests, 416 compatibility/tri-bundle/core-runner tests and 39 RWP2/caller/full-system checks passed (one pre-existing large-allocation test is skipped). Before repair, initial regressions exposed the signing/vault defects and a separate baseline reproduced eight RWP2/Aethercode authentication failures. Ruff, Black and diff checks pass. CI includes the new regressions and real ML-DSA-65 tests through both signature adapters, including wrong key/message, truncation and the old fake prefix. The native CI dependency was corrected after an initial missing-cryptography setup failure; the final native run must pass before merging.

The review document separates custom composition, fingerprints, reversible indexing and geometry from authentication. Remaining limits include custom-derivation cryptanalysis, operator key custody, shared durable replay state, and the distinction between a signed trace and proof of correct execution. No new cryptographic hardness, quantum security, FIPS validation or NIST certification is claimed. Reverting this repair reintroduces authentication defects and is not a safe downgrade path.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-19T01:06:20.549743Z 5829607 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions
github-actions Bot enabled auto-merge (squash) September 19, 2026 00:52

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: trusted source (issdandavis)

@github-actions

Copy link
Copy Markdown
Contributor

Layer 11 Coherence Gate

Metric Value
Score 1.0
Status pass
Threshold 0.20

SCBE-AETHERMOORE Governance Layer

@github-actions

Copy link
Copy Markdown
Contributor

Layer 11 Coherence Gate

Metric Value
Score 1.0
Status pass
Threshold 0.20

SCBE-AETHERMOORE Governance Layer

@issdandavis issdandavis changed the title fix(crypto): reject forged signatures and authenticate braid vault entries fix(crypto): authenticate braid vault, signature and RWP2 paths Sep 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Layer 11 Coherence Gate

Metric Value
Score 1.0
Status pass
Threshold 0.20

SCBE-AETHERMOORE Governance Layer

@issdandavis
issdandavis enabled auto-merge (squash) September 19, 2026 01:08
@issdandavis
issdandavis merged commit 7f9ffe2 into main Sep 19, 2026
26 checks passed
@issdandavis
issdandavis deleted the fix/braid-signature-authentication-20260918 branch September 19, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant