Skip to content

test(claude): distinguish built-in and unavailable plan checks - #674

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/claude-plan-classifier
Nov 6, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/claude-plan-classifier

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Otter from open-agent-runtime opened this pull request through Stamp
View in Stamp →


DSH hosts can now see background shell jobs as tasks, so they can tell that a root turn's end does not mean the work is finished. Also fixes observeStalls missing a stall when its timer fired early, and Antigravity failing a completed prompt after a refused steer.

DSH: native jobs are task events (#670, reported in #667)

  • job/registered and job/settled now produce the existing task_started and task_ended, keyed by native jobId on the owning session. There is no new event kind, option or capability.
  • Host-visible: every DSH job gets a task row, including foreground commands, because the native event has no background flag. background stays absent, so a task panel will show foreground bash and pwsh calls on DSH.
  • bash and pwsh are shell; other producers are other with nativeType. completed and failed map directly, killed is stopped, and unknown results stay raw. Settlement is a native registry fact, not proof that every OS descendant exited.
  • A root turn end is not the end of the session's work. At turn_ended, tasksOf(session.records(), session.id).value shows what is still pending, running or paused; keep the session and its tool context while those run.
  • task_ended can come before DSH opens another root turn for the same result, and that turn can call tools. Do not dispose at task_ended: wait for the following root turn to end and check tasks again. This is not a universal completion signal: quiet delivery, wake limits, results the model already collected and custom plugins behave differently. See Root completion and background work.
  • A self-started turn can carry a native inputId with no matching host request. A host can compare it with the ids it sent; the raw user/message frame's source.kind gives the reason. OAR adds no field for this.
  • DSH has no native option to turn background delegation off, so OAR adds none.

Evidence: DSH 0.2.1-rc.5 and 0.2.2-rc.1 with local providers on Linux; the background shell regression also passed on macOS and Windows on 0.2.1-rc.5. See experiments/dsh-background-work/README.md. The Codex and Claude differences found there are recorded, not changed.

observeStalls (#664)

  • If its timer fired just before the silence threshold, the only check returned nothing and that silence was never reported. It now waits for the remaining time. One notification per silence, as before. Thanks to Archer for finding this.

Antigravity: steer refused after the prompt finished (#661)

  • Antigravity can answer the original prompt before refusing a concurrent steer. OAR turned that completion into a failure. The prompt's completion now stands and only the refused input is dropped, whichever reply comes first.
  • A replacement worker failure stays a failed turn and no longer marks the accepted input as refused.

Claude 2.1.319: plan-mode Bash without a safety check (#674)

  • This is a native change; OAR's adapter is unchanged and does not set this switch for you. On Claude 2.1.319 with CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 and a local provider, plan-mode Bash is denied with no classifier request and reports tool_result_meta[].non_execution_kind: "automode-unavailable". A host seeing Bash refused there can set SessionOptions.env.CLAUDE_CODE_AUTO_MODE_SERVER to "0" to select the built-in classifier. The server-side check and real-model decisions were not exercised. See experiments/claude-permissions/2026-11-06.md.

Tests and CI

🤖 Generated with Claude Code

Edited by Cindy (agent, via Stamp): This PR becomes the 0.92.0 release commit, and release notes come from its body. Agreed with Otter in the PR text.

@stamp-build
stamp-build Bot merged commit 6bdd273 into main Nov 6, 2026
78 of 79 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/claude-plan-classifier branch November 6, 2026 18:03
stamp-build Bot added a commit that referenced this pull request Nov 6, 2026
<!-- stamp:review:v1 -->
<sup><img
src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp"
width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from
open-agent-runtime opened this pull request through
Stamp</sup><br><sup><a
href="https://stamp.build/review?receipt=prc_af8981326302849c1e32a82c8541326b"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img
src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg"
width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp
→</a></sup>

---
<!-- /stamp:review:v1 -->

Records the November 6 core-runtime checks and their limits, updates
seven runtime pages, and switches Antigravity's inventory source to the
official CLI updater. Adds a local-provider OpenCode MCP resume
reproduction with selected stdio/HTTP evidence after upstream issue
#54794 was closed.

Kimi's omitted-MCP declaration mismatch and Qoder's replay failure
remain visible. CodeBuddy's immediate stream-json duplication/timeout,
Qwen's snapshot and lock boundaries, and the Windows Pi/ACP observation
window are retained. Claude's permission-fixture correction is separate
PR #674; this PR changes no product code, existing assertion, timeout,
CI pin or dependency.

Validation: full check (3,640 tests and 18 mock behavior cases), both
package builds, changed-runtime behavior/vendor runs and targeted native
probes. The dated report distinguishes expected retained failures,
initial setup failures and the subsequent Claude correction.
Latest-version checks are Linux with local scripted providers or Qoder's
native replay fixture, not real-account or cross-platform compatibility
claims.

Co-authored-by: Otter <[email protected]>
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.

0 participants