Skip to content

feat(claimant): babysitter verdict rounds over all sessions (#1338) - #12687

Merged
dezren39 merged 2 commits into
mainfrom
felix/1338-babysitter-rounds
Nov 22, 2026
Merged

dezren39 merged 2 commits into
mainfrom
felix/1338-babysitter-rounds

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

First code slice of #1338: the babysitter's verdict rounds exist as code in pm-stack/opencode-claimant, riding the claimant fire — the seat's only always-running code sweep (10-min cadence, inside #1338's 20-min round interval). Until now the rounds existed only as prose in the openchamber-conductor / openchamber-babysitter Muse jobs, both disabled since 2026-11-02/03 (registry rows verified), so no verdicts have been produced anywhere since.

Acceptance state after this PR (evidence on #1338): criterion 1's mechanism lands (rounds as code on a running cadence) but the criterion itself — three live rounds recorded — needs this code deployed to the laptop claimant and the laptop leg, which is down this evening; criterion 2's detector lands with its two-round confirmation proven hermetically on synthetic stalls (the criterion's "synthetic" arm), the live arm rides the same deployment; criterion 3's mechanism lands (per-session pool + same-round walled flagging) with the live quota feed (who writes pool-state.json) as the named follow-up slice. Nudges are deliberately not here: they are #1187's next slice, which consumes these confirmed stalls.

No schedule is created, changed, or retired by this PR (the rounds ride the already-registered claimant/executor OpenChamber task), so doc/fleet-schedule-registry.md is untouched; the registry's disabled babysitter/conductor rows remain accurate for those Muse jobs. No new dependencies (Python stdlib only).

Evidence

  • Fail-before (sandbox, worktree at origin/main 11d888814): python3 test_babysitter.py → FileNotFoundError: .../pm-stack/opencode-claimant/babysitter.py — the verdict surface does not exist on main.
  • Pass-after (sandbox, head b712b540b): python3 test_babysitter.py → Ran 23 tests ... OK; full package suite python3 -I run_hermetic_tests.py → Ran 188 tests ... OK (165 pre-existing + 23 new), no forbidden-I/O violations. The suite is hermetic by design (injected snapshots, temp state dirs), so the sandbox is a valid venue; live-server verification is the deployment remainder named above, not claimed here.

Merge Danger

Low. The claimant change is additive: one new module, one new optional log_fire key (default None, same shape as the hand_back addition), and one guarded step in _fire whose failure is caught and recorded rather than propagated. Shadow-mode behaviour is unchanged except for the computed record in the fire log. The one behavioural surface to watch after deployment: live fires begin writing babysitter-rounds.jsonl / babysitter-state.json in the claimant state dir and reading pool-state.json there — all new files, no existing file's format changes.


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

felix added 2 commits November 22, 2026 21:43
)

New babysitter.py in pm-stack/opencode-claimant: one round
enumerates every root session (bound or unbound; unbound are
observed, never driven) and assigns a #1338 verdict -
progressing / stalled / done-unreported / blocked / walled /
idle - under the #1192 stall rule (suspect at >=20 min silent
with no live CI on the bound PR; confirmed on a second suspect
round at the same activity stamp, or on expiry-equivalent
silence past poll.py's zombie bound). Session facts are
poll.py's verified shapes only; pool attribution is the
session's model provider; pool wall state is an input read
from pool-state.json in the claimant state dir (unread is
recorded, never invented). The round record carries the full
verdict table plus a changed-only delta; state persists
between rounds so confirmation has a memory.

Oracle: test_babysitter.py, 23 tests over synthetic poll-shaped
snapshots - the rule's truth table, two-round confirmation,
walled/blocked/CI vetoes, delta-only changes, and the step's
live/shadow persistence contract. Registered in
run_hermetic_tests.py. Fail-before: the suite errors on
origin/main (babysitter.py absent - the verdict surface does
not exist there); pass-after: 23/23, full hermetic suite 188.
_fire runs babysitter_step after supervision, before the gate,
so the round happens whatever the launch outcome; the record
rides every fire-log entry under the babysitter key (the
hand_back/provider_wall precedent). A failed round is recorded
as an error entry and never breaks dispatch. Live fires append
the round to babysitter-rounds.jsonl and persist round state;
shadow fires mutate nothing. README gains the Babysitter
Rounds section beside Hand-Back.
@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 21:43
@coderabbitai

coderabbitai Bot commented Nov 22, 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 20 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: 8a03d7da-c3a0-4ba1-8270-1bff4e7a2d71
Commits

Reviewing files that changed from the base of the PR and between 11d8888 and b712b54.

Files selected for processing: 5

  • pm-stack/opencode-claimant/README.md
  • pm-stack/opencode-claimant/babysitter.py
  • pm-stack/opencode-claimant/claimant.py
  • pm-stack/opencode-claimant/run_hermetic_tests.py
  • pm-stack/opencode-claimant/test_babysitter.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

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T21:45:18.889696Z b712b54 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.

@dezren39
dezren39 merged commit 5b1c1d8 into main Nov 22, 2026
2 checks passed
@dezren39
dezren39 deleted the felix/1338-babysitter-rounds branch November 22, 2026 21:44
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.

1 participant