reputation-ladder: the pass summary must count the interval, not the pass #2955
No reviewers
Labels
No labels
backlog
bug
enhancement
in-progress
library
needs-rebase
review
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ymrtech/nix-config!2955
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "kb/ladder-dryrun-evidence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What the first live summary said
Ten minutes after #2951 restarted the daemon on public:
Both zeros were mine, and both defeat the purpose of the line: the journal is the only readable evidence during the 7-day dry-run (the proposals file lives in a
0750state dir owned by the service).Worst case: a summary of zeros is indistinguishable from a dead tail
rows ingestedreset on every pass. Onymrtech.comthe mesh is exempt and WAN traffic is ~8 rows per 20 minutes — measured during that exact window:648rows inymrtech-access.logover 20 min, of which0were WAN in the surrounding 5 min (the rest are uptime probes from11.0.0.1/6/7/8). So a truthful pass-level count is0almost always, and the line meant to prove the tail is alive says nothing.Now accumulated over the summary interval, with the exempt split shown:
rows readproves liveness,(N exempt)separates quiet from stalled,scoredis what actually reached the scoreboard.The proposal tally forgot the pass it was printed after
emittedwas re-instantiated inside the pass loop, so it could only ever count the current pass: the live summary printed0 new proposalsone line after logging two rung-8 proposals for45.156.128.10and91.92.40.12. Since a proposal is emitted once (on rung escalation), that made the tally near-permanently zero. Now accumulated per interval plus asince starttotal.Tests
25 checks (was 22), all passing. The two new behaviours are pinned by a two-summary run whose corpus is read once, in pass 1 — a per-pass counter reports
0there:Mutation: resetting the accumulators per pass ⇒ red on the accumulation check, restored ⇒ all 25 green.
Scope
packages/reputation-ladder/reputation_ladder.pyand its test only. No change to scoring, bands, exemptions, or the--enforcerefusal; enforcement stays off and the 7-day dry-run gate is unchanged.Live journal, first summary, 10 minutes after the restart: pass 20, 0 rows ingested, 58 IPs tracked, 0 new proposals {} Both zeros were per-pass counters, and both were therefore worthless as the evidence this line exists to provide: - 'rows ingested' reset every pass, and on ymrtech.com the mesh is exempt while WAN traffic is ~8 rows per 20 minutes (measured: 0 WAN rows in the 5 minutes around that summary), so a truthful pass-level count is 0 nearly always and a summary of zeros cannot be told apart from a dead tail. Now 'rows read (N exempt) M scored', accumulated over the summary interval — exempt and scored are split so 'quiet' is visibly different from 'stalled'. - the proposal tally was re-instantiated inside the pass loop, so it forgot everything before the current pass: that same summary printed 0 new proposals one line after two rung-8 proposals had been logged. Now accumulated over the interval, with a since-start total. Measured on the real state: 'pass 2, 423 rows read (100 exempt) 323 scored, 4 IPs tracked, 3 new proposals {4: 1, 5: 1, 8: 1} in this interval, 3 since start'. Suite 22 -> 25 checks: accumulation pinned by a two-summary run over a corpus read once in pass 1 (a per-pass counter reports 0 there — mutation-tested red).foremerge intent coverage (advisory) — 2 of 2 changed path(s) in ymrtech/nix-config#2955 have no live foremerge intent:
.forgejo/tests/test-reputation-ladder.pypackages/reputation-ladder/reputation_ladder.pyCoverage was decided by reading the repo's foremerge ledger (16 in-flight intent(s) considered) against this PR's changed paths — no branch or session name is involved, so a force-push does not change the answer. Paths that legitimately need no claim (docs,
.md,flake.lock) are excluded.This is advisory and does not block the merge. To clear it, publish intent for the paths above (
foremerge intent publish --agent <your agent id> --task <task> --summary <what and why> --scope file:<path>=modify), or ignore it if the work genuinely collides with nobody.