Repository navigation
docs(tx-retention): correct the delete_folded companion-test count - #452
Merged
Merged
Conversation
The module doc's scope bullet points at `tx_rollup.rs::tests::delete_folded_*` and says four tests, naming them: window / watermark / batch / read-model equivalence. Five tests carry that prefix, and the one the sentence leaves out is `delete_folded_resolves_the_window_in_minutes` - added by c13c183 (#404), which also edited this file and did not move the count. Correct the count and put the missing shape in the roster. Comment only: no gate, no test, no production code.
Merged
argszero
added a commit
that referenced
this pull request
Dec 3, 2026
Five commits since v0.7.35 (#449, #451, #452, #453, #454). No schema change (18 either side). The version string moves in the five carriers the deploy gate guards: Cargo.toml, Cargo.lock, Dockerfile, docker-compose.yml and the new CHANGELOG heading. Co-authored-by: argszero <argszero@users.noreply.github.com>
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.
Summary
src/tx_retention_gate.rshas a scope bullet that says what the gate does not judge is answered bytx_rollup.rs::tests::delete_folded_*— four tests — and it names them: window / watermark /batch / read-model equivalence.
Five tests carry that prefix today, and the one the sentence leaves out is
delete_folded_resolves_the_window_in_minutes. It is not a naming variant of the four: it is the testthat pins the retention window's unit, so a reader who takes the sentence as the list of what
covers
delete_foldedwould not know the minute-resolution behaviour was covered at all.This corrects the count and the roster in that sentence. Comment only: no gate, no test, no production
code.
Related Issue
None. This is a prose correction found while reading the retention gates; #440 is unrelated.
Changes
src/tx_retention_gate.rs: the scope bullet now says five tests and names minute resolutionalongside window / watermark / batch / read-model equivalence.
How the drift happened
git blamedates the sentence to403bc0e4(#353), when four was correct. The fifth test arrivedwith
c13c183(#404, "express the detail-retention window in minutes") — a commit that also editedthis file, adding the test and leaving the count beside it untouched.
git log -Sfinds no laterchange to that test, so this is drift rather than a sentence that was wrong when written.
Tests
cargo test— 615 passed, 0 failed (the same count measured on this tree before the change)cargo fmt --check— cleancargo clippy --all-targets -- -D warnings— cleanNo test was added. The change is a comment, and this repository's standing ruling for prose that states
a count nothing owns is to correct the value rather than build a guard for it; the two retention gates
keep their own positive controls (
the_scanner_sees_both_sides), which is what makes "zero violations"and "the scanner is blind" distinguishable.
Checklist
docs/<description>)//!line is 105 either way)