π Wave-23: ReInit ceremony freshness + AppAck replay attestation#734
Merged
Conversation
- CR-CHAT-03 reinit_freshness.rs (317 lines, RIN-01..10) - CR-CHAT-01 appack_replay.rs (413 lines, ACK-01..10) - Coq Section TrinityChatWave23: INV-CHAT-131..137 + helpers β 191 Qed / 0 Admitted / 5 axioms (unchanged) / 0 new axioms - Falsifier 2100 β 2200: +50 RIN + +50 ACK, 44 cats @ 100% - DENY_PATTERNS W23 extension in CR-CHAT-06/src/injection.rs - ROADMAP W23: anchor +REINIT-FRESHNESS +APPACK-REPLAY, ASPIRATIONAL β W24-W28 [VERIFIED] cargo test 355/0, e2e 25/25, clippy clean, coqc silent. Closes #733
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #733
π Wave-23 β ReInit ceremony freshness + AppAck replay attestation
Base SHA:
119f0fe(post-W22 admin-merge of #732).Lanes shipped
L-CHAT-3-rin (R-CHAT-3 / CR-CHAT-03) β
reinit_freshness.rs(317 lines, RIN-01..10):validate_reinit(&ReInitProposal, current_membership_count: usize) -> Result<(), ReInitError>enforcing five rules in fixed order:new_group_idβEmptyNewGroupIdnew_group_id == current_group_idβStaleGroupIdReusenew_version < current_versionβProtocolDowngrade { current, new }new_version > MAX_SUPPORTED_VERSION (=1)βUnsupportedVersionLeap { new, max_supported }SelfTargetingReInitL-CHAT-1-ack (R-CHAT-1 / CR-CHAT-01) β
appack_replay.rs(413 lines, ACK-01..10):AppAckLedgerwithBTreeMap<AppAckLeaf, Generation>high-watermark map.validate(&mut self, own_leaf, &AppAckProposal) -> Result<(), AppAckError>is two-pass atomic: first pass validates every entry (SelfAttestation,InvertedRange,StaleOrShrinking), second pass commits watermarks. On any failure the ledger is untouched.Coq Wave-23
Section TrinityChatWave23(lines β 3247β3353) adds INV-CHAT-131..137 + helpers:reinit_same_version_not_downgrade_23,appack_grow_not_stale_23,appack_equal_not_stale_23191 Qed / 0 Admitted / 5 axioms (unchanged) / 0 new axioms in W23.
Falsifier 2100 β 2200
reinit_freshnessandappack_replay, 50 entries each (PI-RIN-001..050,PI-ACK-001..050)falsifier_runnerat0.95DENY_PATTERNSinCR-CHAT-06/src/injection.rsextended with W23 keyword blocks (Lane A ReInit jargon + Lane B AppAck jargon)Result: 44 categories at 100% block rate, 2200 / 2200 blocked.
Anchor extension (W23)
ΟΒ² + Οβ»Β² = 3 Β· β¦ Β· PROPOSAL-VALIDATION Β· MAC-TRUNCATION Β· REINIT-FRESHNESS Β· APPACK-REPLAYVerification gates [VERIFIED]
-- -D warningscoqc Trinity_Chat.vLaws compliance
.shfiles βCloses #733βFiles
crates/trios-chat/rings/CR-CHAT-03/src/reinit_freshness.rs(317 lines)crates/trios-chat/rings/CR-CHAT-01/src/appack_replay.rs(413 lines)crates/trios-chat/rings/CR-CHAT-03/src/lib.rs(+ module + aliased re-exports)crates/trios-chat/rings/CR-CHAT-01/src/lib.rs(+ module + re-exports)crates/trios-chat/rings/CR-CHAT-01/Cargo.toml(+thiserror)crates/trios-chat/proofs/chat/Trinity_Chat.v(+Section TrinityChatWave23)crates/trios-chat/corpus/prompt_injection.jsonl(2100 β 2200)crates/trios-chat/src/bin/falsifier_runner.rs(+2 threshold lanes)crates/trios-chat/rings/CR-CHAT-06/src/injection.rs(+W23 DENY block)crates/trios-chat/ROADMAP.md(W23 detail + anchor + ASPIRATIONAL shift to W24-W28)Status
[VERIFIED] All gates met. Ready for review and merge.