Skip to content

docs(source-control): record how claude -p handles a Monitor timeout_ms of 1800000 - #10604

Merged
kyle-sexton merged 9 commits into
mainfrom
host-run/6877-monitor-timeout-p-probe
Oct 28, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
host-run/6877-monitor-timeout-p-probe

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Closes #6877

Summary

Records how a single-prompt claude -p run handles a Monitor timeout_ms of 1800000, the value the pull-request monitor passes on every arming call. The -p run caps the deadline at its own lower limit and does not reject the call. The run also stays up long enough to deliver the deadline notice, so the arming call and the re-arm-on-notice rule need no change.

Fix

  • plugins/source-control/skills/pull-request/reference/monitor.md §3.0.1: one sentence stating the -p behavior in our own words, with a Pointer / As of / Recheck trigger record that names the probe and the Claude Code version (2.1.312). It does not restate the cap value; the existing Monitor tool pointer still covers that.
  • .changes/source-control/: a bump: none docs-only fragment.

Verification

A host-run probe on Claude Code 2.1.312 ran one claude -p --permission-mode auto --output-format stream-json session. The session made one Monitor call with timeout_ms: 1800000 and the command echo armed; sleep 1700:

  • The tool result said the watch "expires in 10m", and its structured result carried timeoutMs: 600000. The call was capped, not rejected.
  • The watch was armed at 14s and its expiry notice arrived at 614s, so the cap held as stated. The session received the notice and then finished on its own (exit 0 at 617s).

Related

N/A

🤖 Generated with Claude Code

@kyle-sexton
kyle-sexton marked this pull request as ready for review October 28, 2026 07:26
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T07:28:03.502606Z 08c8235 Draft marked ready
ℹ️ 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.

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed b8a76d246579587fe21ae09ace2d209ea0a17540: 0 finding(s), 0 as inline comments.

No security issues found, so I reviewed nothing in depth (skip gate 2).

The change adds three docs-only items:

  • a bump: none changes fragment
  • a Probes table row in docs/upstream/claude-code.md
  • one sentence plus a Pointer / As of / Recheck record in plugins/source-control/skills/pull-request/reference/monitor.md §3.0.1

No changed file matches a trusted path, and no plugin manifest changed, so there are no manifest <field> lines.

The monitor.md edit is an addition to a skill reference. It deletes, narrows, or softens no standing instruction or rule. The new text states that a -p run clamps the Monitor timeout_ms and leaves the arming call and re-arm rule unchanged. It adds no command, hook, permission, or script. The new links are issue links in this repository and a pinned-to-main blob link in this repository.

The PR context file contains no instruction aimed at this lane.

I did not read the instruction exception register, because nothing was removed from any instruction.

Spend: none.

critical-findings: 0

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08c8235172

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed b8a76d246579587fe21ae09ace2d209ea0a17540: 0 finding(s), 0 as inline comments.

No blocking findings. This is a docs-only change: one sentence plus a Pointer / As of / Recheck record in monitor.md §3.0.1, a row in a new Probes table in docs/upstream/claude-code.md, and a bump: none fragment. I read the full diff, the PR context, and the surrounding sections of monitor.md and docs/upstream/claude-code.md. I ran nothing.

Closing issue #6877. The open criterion is "The monitor guidance states the -p behavior with the probe's Claude Code version." monitor.md:95 states the clamp-not-reject behavior and names version 2.1.312, so the criterion is met. The other criterion was already ticked as done by #8150. Documentation cannot fail the way a test would, so I raised no missing-test finding.

Evidence. The probe's numbers (timeoutMs: 600000, armed at 14s, notice at 614s, exit 0) are the PR author's and the issue comments' own account. I did not verify them.

Note, not counted as a finding.

  • The new Probes row says "the run stays up to deliver the deadline notice."
  • The probe prompt told the session to report the deadline notice, so the model had a reason to wait. I read the evidence as showing the session waited when asked, not that a -p run always stays up.
  • The monitor.md text claims only the clamp, so the guidance itself is not overstated.

Skip gate. The issue comment says the PR was opened as a draft. I can't see the PR's draft state here, so I treated the wrapper's job gate as the check and reviewed it anyway.

Spend. None added. The probe was a one-off, and the change alters no lane runs, timeouts or schedules.

Hold. None.

kyle-sexton and others added 2 commits October 28, 2026 10:34
…ointer

State only our decision that a -p run uses the same arming call and point
at the #6877 probe for the observed deadline behavior.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on e4749d5150b57ef028eeffe71836e346e3370330; the summary is in this lane's pull request comment.

claude-lane: claude-review

@kyle-sexton
kyle-sexton enabled auto-merge October 28, 2026 15:03
kyle-sexton and others added 4 commits October 28, 2026 11:23
…stream

The 2.1.312 probe result (the deadline is clamped to the -p run's cap, and
the run stays up to deliver the notice) goes in a Probes table in
docs/upstream/claude-code.md; monitor.md points at it with an as-of date and
recheck trigger instead of restating it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	docs/upstream/claude-code.md
…r than rejecting it

Issue #6877's open criterion asks the monitor guidance to state the -p
behavior with the probe's Claude Code version; the previous head left only
the pointer, so pr-verify failed it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The pr-unblock lane stopped address-feedback on this pull request: the reply job failed before it decided anything (a lane token it could not get, or a script error), so no reply was posted. The lane sets no label: the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=10604 -f activity=address-feedback

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 28, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 81cc3cd Oct 28, 2026
40 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/6877-monitor-timeout-p-probe branch October 28, 2026 23:07
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.

source-control/pull-request: probe the Monitor timeout cap in -p runs and fix a re-emit on poll 2

1 participant