Repository navigation
test(dsh): share trailing synthetic-context predicate between lastInput and requestsForTurn - #1090
Merged
stamp-build[bot] merged 1 commit intoNov 20, 2026
Conversation
…ut and requestsForTurn
stamp-build
Bot
deleted the
agent/lookout/dsh-windows-configured-append
branch
November 20, 2026 20:08
stamp-build Bot
added a commit
that referenced
this pull request
Nov 21, 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>opened from existing branch <code>agent/cindy/release-0.127.0</code> @ <code>b15d311f509d</code>, which the agent did not push</sup><br><sup><a href="https://stamp.build/review?receipt=prc_73c76ce0b5c49eb86a194fb0d706127f"><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 --> ## OAR 0.127.0 ### Behavior changes hosts should know - **Pi is an optional dependency of `@botiverse/oar`** (#1098). A default install still includes `@earendil-works/pi-ai` and `@earendil-works/pi-coding-agent`, so nothing changes unless you opt out. `npm install --omit=optional` (or `pnpm install --no-optional`) leaves both out; note that these flags drop every optional dependency in the tree, not only Pi's. Pi stays in `defaultRuntimes` either way. `@botiverse/oar-cli` keeps both packages as direct dependencies. - Without the packages, `installation()` reports `unsupported` with code `dependency_missing` in a normal Node host for every Pi mode. In-process Pi SDK used to report `not_found` here, so hosts that branch on `not_found` should handle the new code. - Pi RPC with an explicit `command` now also checks the host packages, because the host process needs them for session lookup, project-package checks and context-overflow detection. Its command check runs first, so a missing or too-old `pi` still reports `not_found` or `version_unsupported`. Default Pi RPC in a single-file or Electron host still reports `unsupported_host` first. - The declarations of every entry point except `@botiverse/oar/pi-durable` no longer import Pi, so TypeScript hosts with `skipLibCheck: false` compile without it. `pi-durable` still needs `@earendil-works/pi-ai`. - **Ending a process through stdin EOF takes one kill grace, not two** (#1097). When OAR closes stdin to end an idle Claude or Codex session, Codex's login process after a completed login, or a Qoder or Qwen session or model list, and the process is still alive after the kill grace (10 s by default, `OAR_KILL_GRACE_MS`), OAR now force-ends the process tree at once. Before, it sent SIGTERM and waited a second grace, so this could take up to 20 s. Processes that already ended after one grace are unchanged: Claude and Codex model, inventory and account queries, DSH, Factory and Pi RPC. A session with an active turn is still stopped at once. - **Explicit context overflow is `input_too_large` on more paths** (#1093). The generic error-text rules now check for an explicit overflow first ("This model's maximum context length is N tokens. However, ...", "Your input exceeds the context window of this model", "Prompt is too long", with an optional `Internal error: ` prefix) and keep the original reason. A specific native category or provider code still takes precedence. - OpenCode 2.2.7 and 2.3.2 report an overflow and other invalid requests with the same JSON-RPC code (`-32603`) and native name (`provider.invalid-request`); an explicit overflow there is now `input_too_large`. On OpenCode, a rejected summary request still reports `kind: "failed"` with `failure: "provider"`. - The same rules cover the ACP fallback (every ACP runtime), Cursor, Factory, Grok, Pi in-process, Pi Durable and Morph, Claude's generic invalid-request fallback, and `invalid_request_error` provider bodies on Pi and Codex. An Anthropic-style "prompt is too long" body that used to be `invalid_request` is now `input_too_large`. - The runtime matrix gains "Recovery after automatic compaction fails": after a measured failed automatic compaction, Claude, Pi, DSH, OpenCode v2 and threshold-triggered Codex returned to `idle` and completed the next prompt on the same session. The failed turn stays readable from `turn_ended.outcome` and `status().value.lastTurnOutcome`. ### New - **Codex MCP startup per server** (#1092). From Codex 0.169.0 (executable installs, stable versions), `sessionCapabilities(installation).mcpStartup` is `{ kind: "per_server", firstModelRequest: "may_start_pending" }`: Codex can send the first model request while an MCP server is still listing tools, and that tool is then missing from turn one. A missing declaration means unknown. - Native startup reports that carry a thread ID become `mcp_server_startup` events with the server name and `pending`, `ready`, `failed` or `cancelled` (native `starting` is `pending`). This is a new `RuntimeEventBody` variant, so code that switches exhaustively on event kinds needs a case for it. - `mcpStartupOf(records, sessionId)` (from `@botiverse/oar` and `@botiverse/oar/observe`, with type `McpStartupStatus`) returns the latest state per server for the root agent. - A host that needs a server on turn one can subscribe with `session.events(observer, { cursor: { sessionId: session.id, afterSeq: -1 } })`, which replays startup reports, and wait for its `ready` before the first input. A server that never reports stays unknown, so set your own time limit. ### Tests and CI - The release workflow's dispatch, tag-push and `release_only` paths all require the commit to be the merge commit of exactly one merged `chore: release vX.Y.Z` pull request (#1095, #1096). `ci.yml` cancels superseded runs per ref (#1091). Tests check a fixture process's identity before cleanup (#1089), and DSH's `lastInput` and `requestsForTurn` share one trailing synthetic-context check (#1090). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]> Co-authored-by: xxchan <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Nov 21, 2026
…non-contract tests (#1100) <!-- 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_519120ebed1195fed57f3a0ead07f3a9"><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 --> Trim CI wall time on `main` pushes and releases (target: under 10 minutes), move macOS and Windows jobs with no unique platform-only catches to a daily sharded workflow, split and speed up Windows `check`, and prune non-contract, experimental, test-helper, wording-pinning and redundant per-runtime tests. ## Behavior changes - `verifiedPlatforms` (`Runtime.verifiedPlatforms` / `orient()`) now records platforms verified by OAR's CI (`ci.yml` push/release gate or the daily `platform-matrix.yml` workflow) rather than exclusively release-gating jobs; a platform regression caught only by the daily matrix can already have shipped and is handled like a bug report. ## 1. 50-run audit of `main` `ci.yml` runs Audited the last 50 completed (non-cancelled) `main` `ci.yml` runs (`2026-11-19T14:52:42Z` to `2026-11-20T22:37:12Z`; 25 success, 25 failure). "Unique fails" means the job failed on macOS or Windows while the exact same runtime/suite passed on `ubuntu-latest` in the same run. | Job | OS | Runs | Fails | Unique fails | Classification and evidence | Placement | |---|---|---|---|---|---|---| | `check` | `windows-latest` | 50 | 5 | 3 | Real Windows-only catches: 2x `opencode-skills.vendor.test.ts:115` residual-process check (`44567380785/135712727501`, `44562374930/135694839948`); 1x `tests/login/codebuddy-login.test.ts` deadline (`44557134041/135676127578`) | **Keep on push** (sharded `check-windows` 1/2 + 2/2; Windows `opencode-cleanup/skills` stays in `check-windows` shard 1; other Windows native helpers moved to daily `platform-matrix.yml`) | | `behavior (dsh-aimock)` | `windows-latest` | 50 | 19 | 19 | Real Windows bug: `configured-append.vendor.test.ts` failed on Windows until PR #1090 (`44784700637/136456409926` and 18 earlier runs back to `44710123448`) | **Keep on push** | | `behavior (codex-aimock)` | `windows-latest` | 50 | 9 | 9 | Real Windows bug: `native-session-file.vendor.test.ts` `\\?\C:\...` verbatim path prefix mismatch until PR #1086 (`44731287320/136271471468` and 8 earlier runs) | **Keep on push** | | `pi-rpc-windows (vendor)` | `windows-latest` | 50 | 1 | 1 | Real Windows PID-exit/reuse failure in `pi-rpc-readers.vendor.test.ts` (`44728473944/136261891688`, fixed by PR #1087) | **Keep on push** | | `behavior (claude-aimock)` | `macos-latest` | 50 | 1 | 1 | Test-fixture bug (fixed in #1067: canonicalizing temp dir in `stream-json-notification-delivery.vendor.test.ts`, `44683469823/136112174941`), not a product bug; queued 13.8 min on dispatched run `44864196854` | **Move to daily** (`macos-behavior-1`) so push and release never wait on the macOS queue | | `acp-behavior (opencode-v2-aimock)` | `windows-latest` | 33 | 5 | 5 | Known, parked Windows OpenCode 2.2.7 readiness flake (`#core:#360`: `Standalone server exited before reporting readiness` in `44718951258/136229587061`, `44715350753/136217317831`, `44710755589/136202373225`, `44665635103/136054155704`, `44649846441/136001756272`) | **Keep on PRs touching OpenCode + move off push to daily** (`windows-behavior-1`) until `#core:#360` is fixed | | `behavior (dsh-aimock)` | `macos-latest` | 50 | 1 | 1 | Transient DSH `readProfileManifest` `SyntaxError: Unexpected end of JSON input` (`44710148399/136199570104`), not macOS-specific | **Move to daily** (`macos-behavior-1`) | | `behavior (qoder-native)` | `macos-latest` | 50 | 1 | 1 | Pure network flake: `Runtime installation failed: fetch failed` across 3 download attempts (`44731287320/136271471671`) | **Move to daily** (`macos-behavior-1`) | | `check` | `macos-latest` | 50 | 2 | 0 | Both failures also failed on `ubuntu-latest` | **Move to daily** (`macos-check`) | | `behavior (codex/factory/pi/pi-durable/pi-rpc/qwen)` | `macos-latest` | 50 each | 0 | 0 | Zero failures in 50 runs | **Move to daily** (`macos-behavior-1/2`) | | `acp-behavior (codebuddy/grok/kimi/opencode/opencode-v2)` | `macos-latest` | 50 (33 v2) | 0 | 0 | Zero failures in 50 runs (33 for v2) | **Move to daily** (`macos-acp`) | | `behavior (claude/pi/pi-durable/qoder/qwen)` | `windows-latest` | 50 each | 0 | 0 | Zero failures in 50 runs | **Move to daily** (`windows-behavior-1/2`) | | `acp-behavior (opencode-aimock v1)` | `windows-latest` | 33 | 0 | 0 | Zero failures in 33 runs | **Move to daily** (`windows-behavior-2`) | | `pi-rpc-windows (behavior)` | `windows-latest` | 50 | 0 | 0 | Zero failures in 50 runs | **Move to daily** (`windows-behavior-2`) | ## 2. Profiling `check (windows-latest)` on baseline run `44830444455` (16.59 min) Step breakdown of job `136613885380` (995.7s total): - Setup (`checkout`, `pnpm`, `setup-node`, `pnpm install`): 28.1s (0.47m) - `pnpm run typecheck` + `pnpm run lint`: 12.6s (0.21m) - `pnpm run test` (Vitest): **620.8s (10.35m)** across 591 active files + 149 skipped `sea-trial/vendor/*.vendor.test.ts` files (import 175.9s, tests 1504.6s CPU across ~2.74 effective workers; top 12 files >30s alone took 543.6s = 36.1% of all test time) - `pnpm run sea-trial` (mock): 2.7s - Stacked serial native vendor checks after `pnpm run check`: **329.2s (5.49m)** (`build` 2.3s, `cursor-skills` 6.6s, `opencode-cleanup` install+test 38.2s, `kimi-login` install+test 103.3s, `kimi-skills` install+test 49.1s, `agy` install+behavior+vendor+file-skills 119.4s) Changes to cut `check (windows-latest)` from 16.59 min to ~5 min wall: 1. Split Linux native checks into parallel `check-native` on `ubuntu-latest`; keep Windows `opencode-cleanup/skills` (38s) in `check-windows` shard 1; move zero-unique-failure Windows/macOS native checks (`cursor-skills`, `kimi-login`, `kimi-skills`, `agy`) to daily `platform-matrix.yml` (-4.8m on Windows). 2. Exclude `sea-trial/vendor/*.vendor.test.ts` in `vitest.config.ts` when `process.env.OAR_TEST === undefined` (keeping non-`.vendor.test.ts` files such as `codex-process-count.test.ts` active), so default `pnpm test` stops importing 148 skipped vendor files (-~1m on Windows). 3. Prune experimental, non-cleanup test-helper and redundant shared-path tests (below, removing ~300+s of Windows CPU time). 4. Shard `check-windows` into 2 parallel shards (`--shard=1/2`, `--shard=2/2`), halving the remaining unit wall time. ## 3. Release gate honesty Updated `.github/workflows/release.yml`, `docs/development.md`, `packages/oar/src/platforms.ts`, `.stamp/AGENTS_GUIDE.md` and `docs/runtimes/pi.md`: - `release.yml` waits only on `ci.yml` on `$GITHUB_SHA` (Linux `check`, `check-native`, `clean-install`, `browser-demo`, full Linux behavior/ACP/`pi-rpc-minimum` matrix, sharded `check-windows` with `opencode-cleanup`, Windows `dsh-aimock`, Windows `codex-aimock`, and Windows `pi-rpc-windows` vendor; zero macOS jobs). - `release.yml` does **not** wait on `.github/workflows/platform-matrix.yml` (daily at `03:17 UTC` and on manual `workflow_dispatch`, sharded via `.github/scripts/run-ci-shard.mjs` into 4 macOS jobs and 3 Windows jobs so setup runs once per shard and macOS stays within runner concurrency limits). `docs/development.md` explicitly states that a regression found only by the daily matrix can already have shipped and is handled like a bug report. ## 4. Test cuts (one line each) Kept all tests guarding declared contracts, real regressions, and process-identity/cleanup safety (including `fixture-process-snapshot.test.ts`, `fixture-process-snapshot.windows.test.ts`, `fixture-directory-cleanup.test.ts`, `sea-trial/vendor/codex-process-count.test.ts`, and `opencode-cleanup-observer.test.ts`). ### Pure `experiments/` tests (outside `@botiverse/oar` and unadmitted experimental adapters; public placement refusals stay in `tests/opencode/sharing-disabled.test.ts`, `tests/grok/sharing-disabled.test.ts`, `tests/opencode/sharing-admission.test.ts` and `tests/grok/sharing-admission.test.ts`) - Deleted `tests/opencode/shared-session.test.ts` (56.4s Windows, 19 tests): tests unadmitted `experiments/sharing/opencode-candidate.ts` outside `@botiverse/oar`. - Deleted `tests/grok/shared-session.test.ts` (47.7s Windows, 17 tests): tests unadmitted `experiments/sharing/grok-candidate.ts` outside `@botiverse/oar`. - Deleted `tests/opencode/plugin-environment.test.ts`: tests `experiments/sharing/plugin-environment-comparison.ts` probe helper. - Deleted `tests/sharing-directory-failures.test.ts`: tests `experiments/sharing/directory-failures.ts` probe helper. - Deleted `tests/sharing-directory-hooks.test.ts`: tests `experiments/sharing/directory-hooks.ts` probe helper. - Deleted `tests/sharing-fixture-lifetime.test.ts`: tests `experiments/sharing/fixture-lifetime.ts` probe helper. - Deleted `tests/sharing-freshness.test.ts`: tests `experiments/sharing/configuration-freshness-checks.ts` probe helper. - Deleted `tests/sharing-hook-command.test.ts`: tests `experiments/sharing/directory-configuration.ts` probe helper. - Deleted `tests/sharing-hook-completions.test.ts`: tests `experiments/sharing/hook-completions.ts` probe helper. - Deleted `tests/sharing-hook-trust.test.ts`: tests `experiments/sharing/codex-hook-trust.ts` probe helper. - Deleted `tests/sharing-mcp-scope.test.ts`: tests `experiments/sharing/mcp-scope.ts` probe helper. - Deleted `tests/sharing-native-process.test.ts`: tests `experiments/sharing/native-process.ts` probe helper. - Deleted `tests/sharing-observation.test.ts`: tests `experiments/sharing/observation.ts` probe helper. - Deleted `tests/sharing-process-table.test.ts`: tests `experiments/sharing/process-table.ts` probe helper. - Deleted `tests/sharing-windows-resources.test.ts`: tests `experiments/sharing/windows-resources.ts` probe helper. - Deleted `tests/grok/launch-probe.test.ts` (4.8s Windows): tests `experiments/grok-startup/launch-probe.ts` diagnostic script. - Deleted `tests/grok/bootstrap-trace.test.ts`: tests `experiments/grok-startup/trace-bootstrap.ts` diagnostic script. - Deleted `tests/antigravity/real-model-menu-inventory.test.ts`: tests `experiments/antigravity-model-menus/` manual probe script. - Deleted `tests/antigravity/real-model-menu-probe.test.ts`: tests `experiments/antigravity-model-menus/` manual probe script. ### Non-cleanup test-harness and fixture-helper meta-tests (zero `@botiverse/oar` product code) - Deleted `tests/windows-resources.test.ts` (11.3s Windows): tests `sea-trial/windows-resources.ps1` CI sampler script. - Deleted `tests/pi-rpc-diagnostics.test.ts` (12.8s Windows): spawns nested Vitest/PowerShell to test `sea-trial/pi-rpc-progress.ts` and `windows-resources.ps1`. - Deleted `tests/pi-rpc-progress.test.ts`: tests `sea-trial/pi-rpc-progress.ts` Vitest reporter helper. - Deleted `tests/antigravity-mcp-evidence.test.ts`: tests `sea-trial/vendor/support/antigravity-mcp-evidence.ts` capture helper. - Deleted `tests/claude-tools-catalog.test.ts`: tests `sea-trial/harness/claude-tools.ts` mock fixture helper. - Deleted `tests/codex-aimock-warmup.test.ts`: tests `sea-trial/harness/codex-home.ts` fixture helper. - Deleted `tests/codex-fixture-trace.test.ts`: tests `sea-trial/harness/aimock.ts` trace helper. - Deleted `tests/codex-task-fixture.test.ts`: tests `sea-trial/vendor/support/codex-task-request.ts` fixture helper. - Deleted `tests/codex-task-script.test.ts`: tests `sea-trial/vendor/support/codex-task-script.ts` fixture helper. - Deleted `tests/cursor/copied-sdk-bundle.test.ts`: tests `sea-trial/vendor/support/copied-sdk-bundle.ts` fixture helper. - Deleted `tests/dsh/provider-fixture.test.ts`: tests `sea-trial/harness/dsh-provider.ts` mock provider helper. - Deleted `tests/opencode-aimock-warmup.test.ts`: tests `sea-trial/harness/opencode-home.ts` fixture helper. - Deleted `tests/opencode-startup-log.test.ts`: tests `sea-trial/harness/opencode-startup-log.ts` fixture helper. - Deleted `tests/provider-evidence.test.ts`: tests `sea-trial/harness/provider-evidence.ts` capture helper. - Deleted `tests/tool-round-fixtures.test.ts`: tests `sea-trial/vendor/support/tool-round.ts` fixture helper. - Deleted `tests/windows-process-table-preparation.test.ts`: tests `sea-trial/windows-process-table.ts` Vitest global-setup helper. - Deleted `tests/acp/acp-fixture-trace.test.ts`: tests `tests/fixtures/acp-trace.ts` fixture helper. - Deleted `tests/acp/acp-vendor-snapshot.test.ts`: tests `sea-trial/harness/aimock-acp.ts` snapshot helper. - Deleted `tests/sea-trial-backends.test.ts`: tests `sea-trial/harness/parallel-backends.ts` local runner helper. - Deleted `tests/sea-trial-required.test.ts` (5.9s Windows): spawns `tsx sea-trial/main.ts` 4x to check harness CLI output formatting. ### Shared-code-path per-runtime repetition trimmed - Trimmed `tests/acp/acp-resume-errors.test.ts` (29.8s Windows, 42 -> 8 tests): runs the 7 real-process `session/list` refusal/error scenarios once on `opencodeV2AcpProfile` instead of 6x across profiles sharing `acpSession`, plus one pure assertion checking `resumeKeepsSessionCwd: true` on all 6 profiles. - Trimmed `tests/acp/acp-missing-resume.test.ts` (56.7s Windows, 43 -> 19 tests): keeps runtime-specific error mappings (`grok`, `devin`, `antigravity`, negative cases, redaction) and collapses the 6 shared `acpSession` loops to one representative profile. - Trimmed `tests/account-query-deadlines.test.ts` (101.9s Windows, 22 -> 13 tests): keeps one representative per distinct transport and outcome, drops duplicate stages hitting the same `withQueryDeadline` helper, and advances the answer deadline with `vi.useFakeTimers` after real process startup instead of sleeping 4 real seconds per case. - Trimmed `tests/native-query-deadlines.test.ts` (43.2s Windows, 27 -> 11 tests): keeps 10 representatives covering every distinct transport and return shape (`listModels` throw, `skills` timeout, `authStatus` unknown, one-shot/ACP/line-process/SDK/daemon) instead of repeating 26 times across shared `withQueryDeadline` callers. ### Wording and formatting pins replaced with typed contract checks - Updated `tests/fixtures/pi-rpc-bundled-host.ts` and `sea-trial/vendor/pi-rpc-bundled.vendor.test.ts`: asserts typed `{ kind: "unsupported", code: "dependency_missing" }` instead of pinning the English refusal sentence. - Updated `tests/acp/acp-resume-cwd.test.ts`: removed the two exact-sentence `message:` assertions while keeping all typed `ResumeCwdError` / `UnsupportedOptionError` fields. - Updated `tests/manual-compaction-capabilities.test.ts`: replaced the arbitrary `reason.length > 30` prose-length pin with a non-empty check. ## 5. Before / after numbers | Metric | Before (main run `44830444455` / local `897f240e`) | After (measured on dispatched run `44864196854` minus macOS `claude-aimock` / local) | |---|---|---| | `main` push jobs | 46 (19 Linux, 12 Windows, 15 macOS) | **25** (20 Linux, 5 Windows, **0 macOS**) | | `main` push wall time | 40.1 min (37.6 min macOS queue) | **~6.1 min** (longest job `check-windows (1)` = 6.02 min; every Linux/Windows job started within 0.1 min; 0 min macOS queue) | | `main` push runner-minutes | 170.3 min (47.5 Linux, 67.0 Win, 55.8 macOS) | **71.9 min** (46.6 Linux, 25.3 Win, **0.0 macOS**) | | `check (windows-latest)` wall time | 16.6 min (1 job) | **6.02 min** (`check-windows (1)` incl. `opencode-cleanup`) / **4.60 min** (`check-windows (2)`) | | `check (ubuntu-latest)` wall time | 8.41 min (1 job) | **4.27 min** (`check`) / **3.95 min** (`check-native` in parallel) | | Local `OAR_COMMUNITY_TESTS=1 pnpm test` files | 607 passed, 152 skipped (759 total) | 569 passed, 3 skipped (572 total; -39 deleted, -148 excluded skipped `.vendor.test.ts` files) | | Local `OAR_COMMUNITY_TESTS=1 pnpm test` tests | 5,732 passed, 716 skipped (6,448 total) | 5,455 passed, 111 skipped (5,566 total; -277 active tests, -882 total) | | Local `pnpm test` duration | 131.6s (import 512.7s, tests 1050.8s) | 92.9s (import 350.2s, tests 832.8s) | ## 6. Call-site audit Checked every reference to `ci.yml`, `ci-select.mjs`, `acp-behavior`, `pi-rpc-windows`, `verifiedPlatforms` and deleted test names across `.github/`, `packages/`, `tests/`, `docs/` and `.stamp/`: - Updated: `.github/workflows/ci.yml`, `.github/workflows/platform-matrix.yml` (new), `.github/workflows/release.yml`, `.github/scripts/ci-select.mjs`, `.github/scripts/run-ci-shard.mjs` (new), `vitest.config.ts`, `packages/oar/src/platforms.ts`, `tests/verified-platforms.test.ts`, `tests/ci-select.test.ts`, `docs/development.md`, `docs/runtimes/pi.md`, `.stamp/AGENTS_GUIDE.md`. - Unchanged (verified still accurate): `.github/workflows/acp-windows.yml` (observation-only Windows Kimi/Grok), `.github/workflows/runtime-latest.yml` (daily candidate workflow), `tests/release-only-workflow.test.ts` (still tests `release.yml` polling `ci.yml` push/dispatch runs), `docs/runtimes/{codex,cursor,grok,kimi,opencode}.md` (link to `ci.yml` without claiming every-push macOS/Windows gating). Note: Respecting the active `v0.127.0` merge hold (`#core:185b8043`); auto-merge is not armed. --------- Co-authored-by: Lookout <[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.
Summary
Fix the Windows
behavior (windows-latest, dsh-aimock)failure insea-trial/vendor/configured-append.vendor.test.ts(blocking0.126.0onmainsince#1057, tracked in#core:#388).Root Cause (test-helper bug, not an OAR bug)
mcp-clientstderr lines came fromsea-trial/vendor/dsh-mcp.vendor.test.ts(tests 2 and 3 intentionally trigger those native errors; all 3/3 passed).configured-append.vendor.test.ts, the real DSH turn succeeded (runTurnreturnedcompleted) and sent the user prompt. On Windows, DSH appends two synthetic trailingrole: "user"messages after the user input:"Current runtime context..."and a standalone"<system-reminder>\nA skill is a reusable set of task-specific instructions...\n</system-reminder>"(bundledskill-catalog).dsh-provider.ts(lastInput) already skipped both, whileresumed-prompts.ts(requestsForTurn) had its own copy that skipped only"Current runtime context.", so it stopped on the trailing<system-reminder>instead of matching"Check these instructions".Changes
sea-trial/vendor/support/dsh-provider.ts: Extracted one shared predicateisDshSyntheticContextMessage(content)matching"Current runtime context."or a single standalone<system-reminder>...</system-reminder>block (string or all-synthetic text-part array), never matching combined reminder-plus-prompt envelopes like Qoder's<system-reminder>...\n\n<prompt>. WiredlastInputto it.sea-trial/vendor/support/resumed-prompts.ts: Replaced the duplicated inline check inrequestsForTurnwithisDshSyntheticContextMessage(message.content).tests/dsh/provider-fixture.test.ts: Verified bothlastInputandrequestsForTurnagainst the exact Windows DSH sequence, Qoder's combined<system-reminder>...\n\n<prompt>, and reminder-sandwiched user prompts.Call-site audit
Grepped all occurrences of
Current runtime contextand<system-reminder>acrosssea-trial/,tests/, andpackages/oar/src/runtimes/dsh/:sea-trial/vendor/support/dsh-provider.ts(lastInput): updated to sharedisDshSyntheticContextMessage.sea-trial/vendor/support/resumed-prompts.ts(requestsForTurn): updated to sharedisDshSyntheticContextMessage.sea-trial/vendor/support/echo-mcp.ts(Kimi<system-reminder>comment only) andtests/qwen/projection.test.ts(Qwen projection test): unrelated, unchanged.Verification
CI=1 pnpm run checkpasses locally (typecheck,oxlint --type-aware --deny-warnings, unit tests includingtests/dsh/provider-fixture.test.tsandtests/ci-select.test.ts, mocksea-trial).workflow_dispatchrun ofci.ymlon branchagent/lookout/dsh-windows-configured-appendto verifybehavior (windows-latest, dsh-aimock)on Windows (alongside the PR's Linuxdsh-aimockjob).