reputation-ladder: the pass summary must count the interval, not the pass #2955

Merged
hermes merged 1 commit from kb/ladder-dryrun-evidence into main 2026-11-25 21:19:47 -06:00
Collaborator

What the first live summary said

Ten minutes after #2951 restarted the daemon on public:

reputation-ladder: pass 20, 0 rows ingested, 58 IPs tracked, 0 new proposals {}

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 0750 state dir owned by the service).

Worst case: a summary of zeros is indistinguishable from a dead tail

rows ingested reset on every pass. On ymrtech.com the mesh is exempt and WAN traffic is ~8 rows per 20 minutes — measured during that exact window: 648 rows in ymrtech-access.log over 20 min, of which 0 were WAN in the surrounding 5 min (the rest are uptime probes from 11.0.0.1/6/7/8). So a truthful pass-level count is 0 almost always, and the line meant to prove the tail is alive says nothing.

Now accumulated over the summary interval, with the exempt split shown:

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

rows read proves liveness, (N exempt) separates quiet from stalled, scored is what actually reached the scoreboard.

The proposal tally forgot the pass it was printed after

emitted was re-instantiated inside the pass loop, so it could only ever count the current pass: the live summary printed 0 new proposals one line after logging two rung-8 proposals for 45.156.128.10 and 91.92.40.12. Since a proposal is emitted once (on rung escalation), that made the tally near-permanently zero. Now accumulated per interval plus a since start total.

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 0 there:

  ok   the pass summary accumulates rows over the interval, not the pass
  ok   the pass summary splits exempt rows out (quiet is not a stall)
  ok   the pass summary carries a since-start proposal total

Mutation: resetting the accumulators per pass ⇒ red on the accumulation check, restored ⇒ all 25 green.

Scope

packages/reputation-ladder/reputation_ladder.py and its test only. No change to scoring, bands, exemptions, or the --enforce refusal; enforcement stays off and the 7-day dry-run gate is unchanged.

## What the first live summary said Ten minutes after #2951 restarted the daemon on public: ``` reputation-ladder: pass 20, 0 rows ingested, 58 IPs tracked, 0 new proposals {} ``` 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 `0750` state dir owned by the service). ### Worst case: a summary of zeros is indistinguishable from a dead tail `rows ingested` reset on every pass. On `ymrtech.com` the mesh is exempt and **WAN traffic is ~8 rows per 20 minutes** — measured during that exact window: `648` rows in `ymrtech-access.log` over 20 min, of which `0` were WAN in the surrounding 5 min (the rest are uptime probes from `11.0.0.1/6/7/8`). So a truthful pass-level count is `0` almost always, and the line meant to prove the tail is alive says nothing. Now accumulated over the summary interval, with the exempt split shown: ``` 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 ``` `rows read` proves liveness, `(N exempt)` separates quiet from stalled, `scored` is what actually reached the scoreboard. ### The proposal tally forgot the pass it was printed after `emitted` was re-instantiated **inside** the pass loop, so it could only ever count the current pass: the live summary printed `0 new proposals` one line after logging two rung-8 proposals for `45.156.128.10` and `91.92.40.12`. Since a proposal is emitted once (on rung escalation), that made the tally near-permanently zero. Now accumulated per interval plus a `since start` total. ## 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 `0` there: ``` ok the pass summary accumulates rows over the interval, not the pass ok the pass summary splits exempt rows out (quiet is not a stall) ok the pass summary carries a since-start proposal total ``` Mutation: resetting the accumulators per pass ⇒ **red** on the accumulation check, restored ⇒ all 25 green. ## Scope `packages/reputation-ladder/reputation_ladder.py` and its test only. No change to scoring, bands, exemptions, or the `--enforce` refusal; enforcement stays off and the 7-day dry-run gate is unchanged.
reputation-ladder: the pass summary must count the interval, not the pass
Some checks reported warnings
PR base guard / Base drift / conflict check (pull_request) Successful in 11s
Secret Scan / gitleaks scan (pull_request) Successful in 19s
Policy Gates / Worker-scope reaper worker signature (mutation-tested) (pull_request) Successful in 6s
Policy Gates / Kanban pool capacity knob (runtime override + clamp, mutation-tested) (pull_request) Successful in 4s
Policy Gates / Sentinel pass budget contract (prompt forbids the full board walk, mutation-tested) (pull_request) Successful in 3s
Policy Gates / CI-scratch reaper class table (mutation-tested) (pull_request) Successful in 4s
Policy Gates / Fleet cache sweep class table (mutation-tested) (pull_request) Successful in 5s
foremerge intent (advisory) 2 of 2 changed path(s) have no live foremerge intent: .forgejo/tests/test-reputation-ladder.py, packages/reputation-ladder/reputation_ladder.py
Policy Gates / foremerge accept-order contract (real binary) (pull_request) Successful in 1m16s
Policy Gates / Scheduled foremerge reap command line (mutation-tested) (pull_request) Successful in 6s
NixOS Build Check / Scope changed deployable hosts (pull_request) Successful in 15s
NixOS Build Check / Flake input regression guard (pull_request) Successful in 5s
Policy Gates / .forgejo/tests python suites (hermetic) (pull_request) Successful in 1m3s
Policy Gates / Fleet control ledger (sealed profile fails the build, mutation-tested) (pull_request) Successful in 23s
Repo Gates / Repo gates (script-only battery) (pull_request) Successful in 5m20s
NixOS Build Check / Hermes runtime gates (one eval of vpn's runtime) (pull_request) Successful in 1m27s
NixOS Build Check / Build changed host closures (per-host budget) (pull_request) Successful in 2m50s
NixOS Build Check / Gate summary (pull_request) Successful in 2s
0cec987498
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).
Author
Collaborator

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.py
  • packages/reputation-ladder/reputation_ladder.py

Coverage 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.

**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.py` - `packages/reputation-ladder/reputation_ladder.py` Coverage 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.
hermes merged commit ce2c6addab into main 2026-11-25 21:19:47 -06:00
hermes deleted branch kb/ladder-dryrun-evidence 2026-11-25 21:19:48 -06:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ymrtech/nix-config!2955
No description provided.