reputation-ladder: make the dry-run readable (banner unit, pass summary) + harden the hooks-doctor gate trap #2951
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!2951
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?
Why
The ladder shipped in #2949 runs, but its only readable evidence is the journal — the proposals file sits in a
0750state dir owned by the service. Reading the journal showed two problems, and a third appeared in the merge run itself.1. The banner re-labelled minutes as hours
The unit passes
--half-life-minutes 720(12 h).720hreads as a 30-day half-life to anyone diagnosing why an offender's history decayed — the exact question the 7-day dry-run exists to answer.2. Silence after the first pass
One line per proposal, then nothing ever again. An idle tail and a stalled daemon look identical, which is fatal for a gate that is waiting seven days for a file it cannot read.
Now, one summary line per
--summary-everypasses (default 20 → every 10 min at the unit's 30 s interval):Rows ingested proves the tail advanced; the rung tally says what would have been enforced.
0disables it.3.
hermes-runtime-gatesred on the merge of #2949 — cleanup, not a findingRun 26267 (
hermes-runtime-gates) ended:Every assertion passed; the
EXITtrap lost anENOTEMPTYrace against a doctor smoke-test child still writing into the fixture, and its non-zero became the job's status — soGate summaryfailed too. The trap now retries briefly, then reports on stderr and leaves the directory to the runner's reaper. Cleanup can no longer decide the verdict: verified with a path that can never be removed (/proc/sys/kernel) — the script still exits 0 with the note.Tests
22 checks (was 19), all passing; the suite runs in the derivation's
checkPhase:Both new behaviours are load-bearing — mutation-tested and restored:
720hif False:)Scope
packages/reputation-ladder/reputation_ladder.py— banner unit,--summary-every, pass tally.forgejo/tests/test-reputation-ladder.py— 3 new checks.forgejo/tests/test-hermes-agent-hooks-doctor-auto-accept.sh— trap hardening (the flake above)No change to scoring bands, thresholds, exemptions or the
--enforcerefusal. Enforcement stay off; the 7-day dry-run gate (reproduce the same rung-4 IP set) is unchanged.foremerge intent coverage (advisory) — 3 of 3 changed path(s) in ymrtech/nix-config#2951 have no live foremerge intent:
.forgejo/tests/test-hermes-agent-hooks-doctor-auto-accept.sh.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.