← Back to Pull requests

docs: point the kernel operator at keeping-a-watch when a person asks to watch something or be reminded #1217

Closed
unknown closed this pull request without merging on Oct 13, 2026 09:38 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 08:32 UTC
Author

What changes

The kernel operator now knows where to look when a person asks it to watch something or remind them. Its role guidance (specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md) gains one rule, placed beside the other "when the person…" rules:

When a person asks you to watch something or remind them, in any words, read $OPENRIG_HOME/reference/keeping-a-watch.md first and follow it.

That page (docs/reference/keeping-a-watch.md, #1064) teaches the operator to keep a person's watch with today's queue commands: a task it owns, set aside on external:<what> with a one-shot timer, re-armed after every fire. Until now no guidance pointed at it.

The page itself:

  • Status now says the operator's guidance points here; that every step was exercised with the CLI on an isolated private daemon; and that a native run (a real operator, install and channel) has not been run yet.

  • Two fixes the exercise found:

  • - Handing a watch to another session (rig queue handoff <task> --to <session>) closes the old task and retires its timer; the new task arrives pending with its body and watch tag but no timer. The page now says the new owner sets it aside again. It only covered a replaced occupant of the same session before.
    - The operator's own watch timers list as periodic-reminder in rig watchdog list, the policy the page says not to use. They're the one-shot timer --wake-after arms, retired when it fires or when the task stops being set aside. The page now says so under "What not to use", so an operator doesn't mistake them for repeating reminders.

    No product code changes.

    Active by default

    There's no switch. The role-guidance line ships to every kernel operator: new installs, and existing ones the next time their operator is launched. From then on, an operator asked to watch something or to remind someone reads this page and follows it.

  • The risk: the page's pattern has been exercised hermetically (below) but not proven natively with a real operator, install and human channel. A real operator may follow it imperfectly. It uses only existing queue and timer commands, and each check costs the person one operator turn.

  • To undo it: remove the one line from specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md. The page stays as reference that nothing points to, as before this change.
  • How the page was checked

    Every step on the page, in its order, as an operator would run it, with no agent:

  • The setup: main 40a21618's packaged daemon (from scripts/build-package.sh) on an isolated private daemon. Temp HOME, XDG, CODEX_HOME and CLAUDE_CONFIG_DIR; OPENRIG_NO_KERNEL=1; loopback; a fresh OpenRig home, database and port; no codex or claude on its PATH.

  • The fixture operator: a materialized two-seat rig, with nothing launched.

  • The interval: 20 s.
  • Results:

  • The page ships where the operator reads it: startup copied it to $OPENRIG_HOME/reference/keeping-a-watch.md, byte-identical.

  • Every step works as the page says:

  • - the human-channel check; create; set aside with no claim; the fire (one-shot, recorded on the task); re-arm and a second fire; list; change the interval (one live timer); stop; and "watch Y instead";
    - a daemon restart with a watch set aside: it still fired on time;
    - the traps: a registered periodic-reminder repeats until stopped; a fire not re-armed goes quiet and shows "no timed backstop"; --note is dropped with --continuation; the list limit.
  • The two gaps above were found and are fixed here.
  • Tests

  • cli/test/keeping-a-watch-doc.test.ts (every rig command the page names resolves, with declared options): 17/17, including the new rig queue handoff … --to and rig watchdog list.

  • scripts/check-first-run-references.mjs: 0 failures. It doesn't check $OPENRIG_HOME/… paths; the private-daemon run above shows the file lands there.

  • The tests that read the operator guidance (role-orientation, startup-proof, builtin-startup-files, spec-library-starters, mission-slice-sop-plugin-parity, pod-rigspec-instantiator): 163/163. Lint passes.
  • Native: NOT RUN (environment gap). No real operator, install or human channel was used.

    Refs #1064

    🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Documentation
    Clarified that watch and reminder requests should follow the operator guidance, regardless of wording.
    Explained that handing off a watch closes the previous task and retires its timer unless another task shares it; the new task starts without a timer and must be set aside again.
    Distinguished registered repeating reminders from one-shot timers, including timer retirement and retained-delivery or shared-timer exceptions.
    * Recorded that CLI exercises were performed; a native run with a real operator, installation, and channel has not been performed.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 639 lines (+479 / -160) across 7 files Reviewer: mvschwarz Review duration: 66m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 639 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.387
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1217"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.4% (MEDIUM) · Higher = larger blast radius
    50.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.9% · Safe to merge
    19.9%