Repository navigation
test(pm-stack/claimant): port Slice-1 suite to live API, add held-label gate (#7670) - #8113
Conversation
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. |
|
Codex findings disposition (task 14501, lane code-t): the Codex code review on this PR failed to run — the connector reported Codex usage limits reached, and no review findings were posted (review-comment list is empty). There is no substantive Codex finding to fix or rebut; the failed-review state is a quota failure, not a code finding. Merge remains gated on CI green. |
Summary
Ports the Slice-1 claimant suite (
pm-stack/opencode-claimant/test/test_claimant.py) to the live claimant API, implements the one safety pin that was genuinely missing live, and wires the ported suite into CI.Fixes #7670.
What changed
claimant.py— held-label gate inlaunch_step(new Step 4a2): a candidate whose issue carriesheld,user/owned,do-not-merge, ordo-not-auto-editis skipped with reasonheld_issue_labels: …before any session is created; the label read (gh CLI) fails closed — an unreadable label set is aheld_label_check_failedskip, never a launch. Candidates without a repo/issue reference have nothing to check and are unaffected.claimant.py— the execution prompt now dumps a credential-redacted copy of the packet (_prompt_safe_packet): credential-shaped keys (password/secret/token/credential/api_key/private_key, recursive) are replaced with[redacted], so a credential can never enter a prompt surface via the packet.test/test_claimant.py— rewritten againstlaunch_step(mode, cap_room)/supervision_step(mode): bind-before-prompt ordering with the password kept out of the prompt, held-label prevention + fail-closed label read, session-create failure binds nothing, and zero-message-read → DELETE → atomic recovery bind (carryingLAUNCHED_BY_RECOVERY_ZERO_MESSAGE). Superseded Slice-1 pins are named in the suite header: the checkpoint-between-bind-and-prompt step (the live flow has none; prompt delivery is verified by_send_promptreconcile instead) and the per-packet route/model (the live claimant uses the fixed workhorse route).test/__init__.py— package marker sounittest discover -s pm-stack/opencode-claimantdescends into the suite directory..github/workflows/pm-stack-tests.yml— the ported suite is added to the claimant Python suites step with the house file-exists assertion.Evidence
python3 -m unittest pm-stack/opencode-claimant/test/test_claimant.py→ Ran 4 tests, FAILED (errors=4,AttributeError: module 'claimant' does not have the attribute '_POLL').test_poll.py(56) +test_claimant.py(17) OK;python3 -m unittest discover -s pm-stack/opencode-claimant→ Ran 78 tests, OK (zero errors from stale suites).Merge Danger
Door: Two-way — revert restores the stale suite and removes the gate.
Blast Radius: Small — claimant launch path only. The gate skips only candidates whose issues carry held labels (previously launchable — the bug); the prompt redaction only replaces credential-shaped values.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.