Skip to content

docs(tx-retention): correct the delete_folded companion-test count - #452

Merged
argszero merged 1 commit into
mainfrom
docs/tx-retention-gate-test-count
Dec 2, 2026
Merged

argszero merged 1 commit into
mainfrom
docs/tx-retention-gate-test-count

Conversation

@argszero

@argszero argszero commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

src/tx_retention_gate.rs has a scope bullet that says what the gate does not judge is answered by
tx_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 test
that pins the retention window's unit, so a reader who takes the sentence as the list of what
covers delete_folded would 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 resolution
    alongside window / watermark / batch / read-model equivalence.

How the drift happened

git blame dates the sentence to 403bc0e4 (#353), when four was correct. The fifth test arrived
with c13c183 (#404, "express the detail-retention window in minutes") — a commit that also edited
this file
, adding the test and leaving the count beside it untouched. git log -S finds no later
change 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 — clean
  • cargo clippy --all-targets -- -D warnings — clean

No 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

  • Branch name follows the convention (docs/<description>)
  • Commit message uses Conventional Commits
  • Single responsibility, minimal change (1 file, +1 / −1)
  • Doc line stays inside the file's existing width budget (widest //! line is 105 either way)

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.
@argszero
argszero merged commit f16fd01 into main Dec 2, 2026
2 checks passed
@argszero
argszero deleted the docs/tx-retention-gate-test-count branch December 2, 2026 08:10
@argszero argszero mentioned this pull request Dec 3, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant