Skip to content

fix(experiments): preserve Grok launch cleanup evidence - #883

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/lookout/grok-launch-evidence
Nov 17, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/lookout/grok-launch-evidence

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

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


The optional Windows Grok launch comparison could fail its close assertion inside finally, preventing the launch outcome from reaching the artifact. Run 43917435777 retained only a start row even though the preceding behavior and vendor suites passed.

Persist the outcome and child lifecycle inside finally before any leak verdict. Record exit code/signal, bounded redacted stderr, timings and cleanup observations. A missing close or failed process-table read is an explicit diagnostic finding. Only a captured process observed again with the same PID and start identity fails the job, with its lifecycle already recorded. The runner preserves that failure through fixture cleanup; other diagnostic errors remain nonfatal, and file-write failures fall back to the job log. Windows taskkill is bounded to the cleanup window.

This changes experiments and regression tests only. The product 60-second initialize budget, the separate 90-second investigation and the behavior/vendor assertions retain their existing settings. No real account or model call was used.

Validation: CI=1 pnpm run check passed 4,641 tests and 19 mock behavior cases, including eight new regression tests with real native child controls. On Linux x64 / Node 24.19.0 / isolated Grok 1.0.70 (f50904eaee6c), all seven launch comparisons initialized and retained cleanup records with no matching captured process left. Native Windows validation remains with CI and the observation workflow; the cause of the earlier missing close remains unknown.

Evidence and reproduction: experiment notes and original Windows job.

@stamp-build
stamp-build Bot merged commit 24128f0 into main Nov 17, 2026
42 checks passed
@stamp-build
stamp-build Bot deleted the agent/lookout/grok-launch-evidence branch November 17, 2026 11:36
@stamp-build stamp-build Bot mentioned this pull request Nov 17, 2026
stamp-build Bot added a commit that referenced this pull request Nov 17, 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_b6b3b41625f3f71a837939eeaffa24ed"><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 -->

Claude limit-reset inspection and redemption now get past Claude Code's first-run onboarding, and Qwen gets a native skill list.

## Claude limit resets when Claude Code was never opened interactively (#880)
With a stored sign-in but no completed first-run onboarding, `inspectLimitResets` and `redeemLimitReset` stopped at Claude's onboarding and returned `not_attempted` / `startup_failed` after the whole 30 s startup wait. OAR now completes that onboarding only when it shows exactly the pages recorded on Claude Code 2.1.322:
- The theme page with Dark mode preselected and the Security notes page (a notice with no choices) each get one Enter, after the screen has held still for 3 s. OAR accepts the preselected Dark theme, which writes no `theme` field, and never edits Claude's config; Claude itself writes `hasCompletedOnboarding` and `lastOnboardingVersion`.
- Any other, changed or repeated page (a sign-in choice, terms, data-sharing consent, a theme page after the notice) stops the call as `startup_failed` with the new startup screen value `startup.screen: "onboarding"`, with no key sent on that page. The same value is reported when the screen after an accepted page is not recognised, or when the folder-trust screen that follows cannot be answered.
- `LimitResetResult` and `LimitResetInspection` gain optional `onboardingCompleted: true` (now written as `{ onboardingCompleted?: true } & (...)`) when this call completed onboarding.

Exhaustive switches on `LimitResetStartupScreen` should handle `onboarding` (the type's comment already says to read unlisted values as `unknown`).

## Qwen skills (#877)
`skills()` reads Qwen's own workspace catalog (`qwen/status/workspace/skills`) through a short ACP process in the requested cwd, before any session, prompt or sign-in. It returns bundled (as `builtin`), user, project, extension and hidden skills with paths, disabled entries and the model-invocation flag; an unknown native level gets no `scope`. `partial` follows Qwen's own reported errors. A Qwen without the query (method not found) answers `unsupported` / `native_query_unavailable`; a failed or malformed query is `unavailable`. Verified on Qwen 0.27.4.

This read is not read-only: Qwen's startup can migrate the user settings file to its current schema (rewriting its formatting) and write installation, language and extension metadata, and it may use the network. `orient({ include: ["customization"] })` now runs it.

## Also
- Qoder `skills()` stays unsupported: its text catalog prints descriptions unescaped, so a description can print what looks like another skill entry (#879).
- Docs: Qwen and Pi Durable inventory rows corrected; Pi Durable skills are host-provided (#882). New acceptance rule: per-model `ModelEntry` facts are checked for every listed model (#878).
- The Windows Grok startup diagnostic keeps its evidence even when cleanup fails (#883).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Cindy <[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