Repository navigation
spec(port): port the traffic shaping burst uniformity guard (Refs #8887) - #9870
Merged
1 commit merged intoOct 17, 2026
Merged
1 commit merged into
1 commit merged into
Conversation
…nity-S-AI-DNA#8887) The thirty-second CR-CHAT-07 ring target (W2, R-CHAT-7): the shaped-burst uniformity rules - the count floor (two), the count ceiling (two hundred fifty-six), the first burst's size floor (sixty-four) and ceiling (sixty-five thousand five hundred thirty-six), the per-burst size walk (a size differing from the first answers before that burst's own floor and ceiling), and the interval uniformity walk over batches of three or more - as the D5 verdict (all six original variants carry no payload, so the code is the whole verdict), the original's rule order, and all ten TSBU tests transcribed plus re-basing and rule-order tests. The original casts timestamps to i64 to subtract the gaps; the gap equality is re-based additively - gap(i) equals gap(0) exactly when ts[i+1] + ts[0] equals ts[1] + ts[i], pure u64 addition - and a dedicated test pins the preserved edge: a uniformly decreasing batch stays accepted, as with the original's equal negative gaps. Batches of two skip the interval walk exactly as the original's length-three gate. Checks (conventions 0-14): t27b test 12 passed 0 failed; t27c test-report 12/12, 0 vacuous; gen-rust output compiles under rustc; coverage Untested 0; ASCII only; seal saved, all hashes MATCH;
Contributor
Author
|
All required checks green (validate, check-linked-issue, parse-ratchet, t27b-native-linux, t27b-native-macos); cli-tri / duplicate-bodies / t27b-native-ratchet are the known non-required reds. Steward READY. Requesting owner merge when convenient — 32 of ~34 CR-CHAT-07 targets delivered, Refs #8887. |
This was referenced Oct 17, 2026
Merged
Merged
Merged
This was referenced Oct 17, 2026
Merged
Merged
gHashTag
enabled auto-merge (squash)
October 17, 2026 18:14
This was referenced Oct 17, 2026
gHashTag
disabled auto-merge
October 17, 2026 18:42
This was referenced Oct 17, 2026
spec(policy): l2_generation -- gen/json/ is t27c gen-json's backend directory (Closes #10079)
#10082
Merged
Merged
Merged
Merged
12f5af8
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.
The thirty-second CR-CHAT-07 ring target (W2, R-CHAT-7, tracker #8887): port of
crates/trios-chat/rings/CR-CHAT-07/src/traffic_shaping_burst_uniformity_guard.rs.Traffic shaping hides message sizes by batching into uniform bursts; a non-uniform batch lets an observer tell padding from real traffic, fingerprint the user by timing and count messages by size. Rules, in the original's order:
Carried as the D5 verdict — all six original error variants carry no payload, so the code is the whole verdict.
Adaptation (t27 conventions): the original's
i64gap subtraction is re-based additively — gap(i) equals gap(0) exactly whents[i+1] + ts[0] == ts[1] + ts[i], pure u64 addition with no subtraction to underflow. A dedicated test pins the preserved edge semantics: a uniformly decreasing batch has equal negative gaps in the original and stays accepted.All 10 original TSBU tests transcribed with exact asserts, plus the re-basing edge test and a rule-order test (12 total): the count floor answers over a single tiny burst; the count ceiling answers over a flooded batch of tiny bursts; the first burst's size rules answer before the per-burst walk; the non-uniform probe answers before that burst's own floor; the size walk answers before the interval walk ever reads a timestamp.
Checks (conventions 0-14):
t27b test12 passed 0 failed, 0 blockers;t27c test-report12/12, 0 vacuous; gen-rust output compiles under rustc (0'static str, 0Vec<const); coverage Untested 0; ASCII only; seal saved, all hashes MATCH; ledger row added todocs/reports/t27b_expectations.json.Refs #8887