Skip to content

fix(claimant): gate-exit fires log cap_room null, not hardcoded 0 (#7732) - #8123

Merged
dezren39 merged 1 commit into
mainfrom
queue/14535-7732-cap-room-null
Nov 10, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14535-7732-cap-room-null

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Fixes #7732 (queue task 14535).

Problem

Every claimant fire that exits at the gate (no candidates) logged a hardcoded cap_room: 0 in fires.jsonl, because cap_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

  • Gate-exit path in claimant.py now logs cap_room: null (unknown — the cap was never measured on that path), per the issue's suggested fix.
  • log_fire signature documents the contract: measured count, or None when the fire exited before the cap step.
  • Regression test TestGateExitFireLog.test_gate_exit_logs_cap_room_null_not_zero: a shadow-mode fire with no candidates writes exactly one fires entry with cap_room is None and the no_candidates skip.

Tests

  • python3 -m unittest pm-stack/opencode-claimant/test_claimant.py — 18 tests, OK (17 existing + 1 new).

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

)

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.
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 05:59
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T05:59:04.211701Z
We couldn’t complete this review. Comment @codex review to try again.
894c232 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4ef3a868-7baf-40f3-9969-04ffb198041b
Commits

Reviewing files that changed from the base of the PR and between 212b60b and 894c232.

Files selected for processing: 2

  • pm-stack/opencode-claimant/claimant.py
  • pm-stack/opencode-claimant/test_claimant.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit d571e72 into main Nov 10, 2026
1 of 7 checks passed
@dezren39
dezren39 deleted the queue/14535-7732-cap-room-null branch November 10, 2026 06:42
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.

opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated

1 participant