Repository navigation
test(grok): measure long Windows initialization and CPU time - #841
Merged
Merged
Conversation
stamp-build Bot
added a commit
that referenced
this pull request
Nov 16, 2026
<!-- stamp:review:v1 --> <sup><img src="https://api.raft.build/api/avatars/pixel/ZXll.svg" width="16" height="16" align="absmiddle" alt=""> <b>Lookout</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_318f07d4912d2a35e6e3ed9f0972842d"><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 --> ACP session initialization used the ordinary request timeout, leaving little startup margin on Windows: the Grok 1.0.70 control took 8.36 to 11.49 seconds in new HOME directories, while three earlier suite replies arrived after 15 seconds. Give initialize a separate 60-second default on every built-in ACP session adapter, for both isolated and shared connections. Profiles can override initializeTimeoutMs independently. The 15-second default for other bounded requests, existing vendor overrides (30 seconds and Kimi's 630-second session start), prompt cancellation and account/model whole-call budgets remain intact. Initialize timeout still rejects with AcpError, kind timeout, method initialize and the configured duration; native failures and early process exit still reject immediately, and opening cleans up the process. No retries are added. The shared runtime matrix links the committed Windows evidence and explains the limits. Seven earlier processes with no stdout before cleanup are still unexplained; the successful control does not establish whether they would eventually return. All measurements used isolated synthetic provider configuration, without real accounts or model calls. Runtime pages that described the old initialize limit are updated too. Validation: - Before the fix, 14 of the 15 new virtual-time regressions fail. After the fix, all 25 targeted checks pass, including Kimi's existing non-initialize deadlines. - Tests cover all seven ACP profiles, successful replies after 15 seconds, shared initialization, profile overrides above and below the default, independent authenticate/session-new budgets, typed timeout, early exit and timer/process cleanup. - `CI=1 pnpm run check`: 4,446 tests passed, 592 skipped; typecheck, lint and 18 mock behavior cases passed. - All 16 default `sea-trial/all.ts` backends ran and passed; a separate Antigravity 1.5.0 run passed 17 cases with 2 capability skips. CodeBuddy 2.179.3, DSH 0.2.1-rc.5 and Factory 1.12.1 used isolated CI-pinned installs. No unavailable backend was silently skipped. This is Linux validation; the new virtual-time regressions also run in normal three-platform CI. Requested by Cindy in inspection task 23. The committed Windows evidence is available through merged PR #841. This PR targets main; all 41 CI checks passed on the approved commit ac3c30c. --------- Co-authored-by: Lookout <[email protected]>
Merged
stamp-build Bot
added a commit
that referenced
this pull request
Nov 16, 2026
<!-- stamp:review:v1 --> <sup><img src="https://api.raft.build/api/avatars/pixel/bXVn.svg" width="16" height="16" align="absmiddle" alt=""> <b>Cindy</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_10a4a47fa7e053a7bbe8cd1f051efe8a"><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 --> A session no longer stays "running" forever after a late tool-call end, OAR refuses Codex queued input that Codex would park after an interrupted turn, Antigravity accepts saved model selectors from older catalogs, and DSH sessions take a name and denied tools. One behavior change for Antigravity hosts: an unknown model now fails with `ModelConfirmationError`. ## Status stays idle when a tool call ends after its turn (#838) Codex reports the end of a background terminal command (an `exec_command` the model already read) as a root `item/completed` even after the turn completed. OAR records it as a `tool_call_ended`, as before, but `status()` used to read it as a new running turn, and nothing ever ended that turn. Hosts then saw the session as busy indefinitely: `deliver()` kept steering into no turn and the host waited for a turn end that never came. Now, on every runtime, an idle session stays idle on `tool_call_ended`, and a tool end no longer counts as native activity for a pending prompt. A running session is unchanged, and other events still adopt a turn the stream did not open. ## Codex: queue after an interrupted turn is refused (#839) After a normally completed turn, Codex 0.169.0 starts queued input by itself. After an interrupted turn it accepts `thread/queue/add` but leaves the input parked until a later prompt finishes. OAR's `queue()` now refuses that case with `no_active_turn` and a reason telling the host to use `prompt`, until a new root turn starts; it was accepted before. If a stale `status()` still says running, `deliver()` tries steer and then queue, and now reports that refusal as a rejected delivery instead of `queued`; an idle session is prompted as before. Child-thread interruptions do not affect the root queue. ## Antigravity: effort menus per model and saved composite selectors (#834, #827) Older Antigravity catalogs listed selectors such as `gemini-3.8-flash-high`; agy 1.5.9 lists the model and `thought_level` separately, so restoring such a saved selector failed. OAR now splits a legacy composite selector into one unambiguous native model and that model's own effort level, and confirms both. A conflicting explicit `effort` throws `UnsupportedOptionError`. Exact native selectors are unchanged. `listModels()` now gives every Antigravity model its own effort menu (#834), read from the same `session/new` answer with no extra request: before, only the default model had one. Only the current model has a default effort. New optional `ModelEntry.effortUnavailableReason` says when a model's menu could not be determined; a native combination OAR cannot attribute stays a selector with a short reason, without another model's levels. **Behavior change:** opening an Antigravity session with a model that is not in the native catalog now throws `ModelConfirmationError` (with `catalogSelectorIds`) before agy is asked, instead of `RuntimeFailureError` with `failure: "model_unavailable"`. The same error is thrown for an ambiguous composite selector, or when the target model's menu lacks the requested effort. A host that branches on `model_unavailable` for Antigravity needs to handle `ModelConfirmationError` too. Antigravity's model-mismatch message now ends with the native thought level, for example `(native thought_level=medium)`. ## DSH: session names and tool denial (#837) DSH sessions now accept `name` and `disallowedTools` instead of refusing them. The name is set through DSH's own session titles after every opening check passes, so a refused open never renames a saved session, and a resume keeps a title the session already has. Denied tools are removed from what the model is offered, and a forged call to one fails natively; an unknown or reserved tool name, or a conflict with a native creation hook, refuses the open. Supply `disallowedTools` again on every resume. Tool denial is not an operating-system sandbox and does not restrict DSH's own child agents. ## ACP: `initialize` gets its own 60-second deadline (#843) Every ACP runtime (Antigravity, CodeBuddy, Devin, Grok, Kimi, OpenCode) now waits up to 60 seconds for `initialize`, separately from the 15-second default for other requests (30 seconds where a runtime already set it). A first start in a fresh home can be slow: Grok 1.0.70 on an idle Windows runner took 8 to 12 seconds to answer, close to the old limit. A timeout is still a typed `AcpError` naming the phase and the wait. ## Also - Windows Grok startup diagnostic, manual-only (#841). - Codex evidence for shared app-servers (#823, #828): native 0.169.0 admission conditions are met on Linux and macOS (Windows remains unproven), and thread-level environment and credential boundaries were measured on Linux. Production sharing is not enabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Nov 16, 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_4f1892a8b85a91e4691564c66e1ea34e"><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 --> Remove the `usability()` readiness projection and its `RuntimeUsability`, `UsabilityOptions` and `UnusableReason` types. Hosts interpret installation, account and quota facts using their own freshness and scheduling policy. Existing imports of these removed exports must migrate to host-owned decisions over the returned probes. Retain `orient()`, all orientation snapshot types, its readers and tests, native evidence, and the orientation spec. Airwing confirmed that it depends on the aggregate's total time budget, local/account/models depths and separate skipped, timed-out and unsupported outcomes. The design decision records this concrete consumer requirement; installation version floors and the remaining discovery contracts stay where they are. The roadmap moves the shipped orientation capability into its foundation list. Validation: full local checks passed after rebasing onto merged #834 and #841 at `25efc6db` (4,443 unit tests and 18 mock behavior cases), including the retained orientation depth, deadline, cancellation and missing-evidence tests. Both packages built. Built root, observe and browser exports no longer expose `usability` or its three types; root `orient()` and the public orientation types remain. The orientation implementation, tests and historical experiment directory match main without changes. Breaking change requested by xxchan and scoped with Cindy. This PR removes only the readiness policy. Rebased after #834 merged; the readiness-removal patch is identical to the previously approved version, and the new per-model effort-menu contract remains in the orientation spec. Co-authored-by: Otter <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Five Windows observation runs retained ten Grok 1.0.70 initialize timeouts: three replies arrived after 15 seconds and seven processes produced no stdout before close. This adds a manual-only startup comparison with a 90-second observation bound, launch ordinal/first-probe flag and sampled CPU time for each owned process tree. Normal observations and product timeouts stay unchanged.
The experiment performs eight launches in pairs using isolated synthetic provider configuration, including a second start in each HOME. It sends initialize only, makes no real account or model call, and records exits, stderr tails, sampler coverage and cleanup failures. CPU attribution checks process creation identity; exported records contain no PIDs, command lines or process tables. Installer activity means the first probe is not claimed to be a cold OS-cache start. A 90-second timeout is a bounded observation, not proof of an infinite hang.
Validation: local full check passed 4,432 tests and 18 mock behavior cases; final changed TypeScript passed typecheck/lint; 13 existing observer process tests passed. The authorized single Windows run passed all eight initialize observations and the CPU positive/identity controls. New-HOME starts took 8.36 to 11.49 seconds; same-HOME repeats took 0.389 to 0.399 seconds. All responses arrived before 15 seconds, so the original seven no-output failures remain unexplained. Selected lifecycle records, CPU samples, source hash and interpretation limits are committed under experiments/grok-startup/.
Requested by Cindy in inspection task 23. Keep this PR unmerged during the 0.110.0 main freeze.