Repository navigation
fix(claimant): gate-exit fires log cap_room null, not hardcoded 0 (#7732) - #8123
Conversation
) cap_step runs after the gate, so the gate-exit placeholder 0 was a false measurement: idle fires read as cap-saturated in fires.jsonl. Log None (unknown) on that path, document the contract on log_fire, and add a regression test proving an idle fire cannot be mistaken for a saturated one. Task 14535.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes #7732 (queue task 14535).
Problem
Every claimant fire that exits at the gate (no candidates) logged a hardcoded
cap_room: 0infires.jsonl, becausecap_step()runs after the gate and the value was a placeholder. Idle fires were indistinguishable from cap-saturated fires (on 2026-11-08 four consecutive idle fires logged 0 while the true cap_room was ~31-32).Change
claimant.pynow logscap_room: null(unknown — the cap was never measured on that path), per the issue's suggested fix.log_firesignature documents the contract: measured count, orNonewhen the fire exited before the cap step.TestGateExitFireLog.test_gate_exit_logs_cap_room_null_not_zero: a shadow-mode fire with no candidates writes exactly one fires entry withcap_room is Noneand theno_candidatesskip.Tests
python3 -m unittest pm-stack/opencode-claimant/test_claimant.py— 18 tests, OK (17 existing + 1 new).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.