Repository navigation
test(session): compare native session files by filesystem identity - #1086
Merged
Merged
Conversation
Co-authored-by: xxchan <[email protected]>
Co-authored-by: xxchan <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Nov 20, 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_010f166b1c3ba63a625f97aa49c7a328"><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.126.0 ### Behavior changes hosts should know - **`installation()` refuses programs that are not the vendor CLI, and every refusal is typed** (#1084). The `unsupported` snapshot now always carries a `code`, and the old untyped variant is gone, so custom runtime probes must set one: - `version_unsupported`: the vendor CLI is outside the supported range. This is the only code admitted to `checkUpdate()` and `upgrade()`. Hosts should show every other code as a setup problem, not reinstall. - `unrecognized_executable`: the program in the slot does not identify as the vendor CLI. Identity comes from its version output, so a wrapper (for example an `OAR_CLAUDE_BIN` script) that prints a bare version is now refused; Claude must print `(Claude Code)`. - `readiness_failed`: the runtime's readiness check (`--help`, `app-server --help`, `acp --help` and the like) exited nonzero, or `--version` failed where the runtime declares an identity or version policy. - Host refusals: `unsupported_platform`, `unsupported_node_version`, `unsupported_host` (for example Pi RPC inside a single executable or Electron, or Cursor subprocess mode inside a single executable) and `dependency_missing` (a required module such as Pi's RPC entry or Cursor's SDK cannot be resolved). Cursor now refuses Node below 22.13.0 in both modes. - **OpenCode now has a version range**: `>=1.18.30 <2.0.0 || >=2.0.27 <3.0.0`. Installs below 1.18.30, at 2.0.0 to 2.0.26, or on 3.x that worked before are now `version_unsupported`. - Candidate selection changed: a refused candidate falls through to the next one, and a vendor install that is only too old wins over a refusal of another kind. Antigravity, DSH, OpenCode, Qoder and Qwen gained a `--help` readiness probe, so an uncached probe starts one more process. - **`rateLimited` means the whole account is limited** (#1073). On Codex only the account bucket and its credits set it; a single-model bucket such as Spark stays in `windows`. On Claude only the five-hour and seven-day windows set it; per-model windows and `seven_day_oauth_apps` do not, and unlimited Extra Usage counts as headroom. `usedRatio` never rounds an unexhausted reading up to 1, and on Codex it no longer exceeds 1. Codex no longer reports `reauth_required` or `unsupported` for process exits, initialize failures or timeouts, and its usage and limit-reset errors carry the native `cause`. Grok reports `reauth_required` only for ACP code `-32000`, not for any error mentioning sign-in. Codex's legacy single-bucket view gets `scope: account`. Antigravity sets `rateLimited` when every group is exhausted and credits are at or below zero. - **`plan` is the name the runtime shows the user** (#1076). Claude reads `oauthAccount.planDisplayName` when the stored account matches the signed-in one, and falls back to the native plan code otherwise. Hosts that compared `plan` against native codes such as `max` will now see display names on `authStatus`, `login` and `accountUsage`. - **Idle sessions and short-lived queries end through stdin EOF** (#1061, #1074). Claude and Codex now end an idle session, and their query processes (usage, models, skills, inventory; on Codex also limit reset and a completed login), by closing stdin and killing the tree only after the kill grace. Factory's account process does the same. A session with an active turn is still stopped at once. Qoder and Qwen share the same path, so their grace moved from a fixed 5 s to the kill grace (10 s by default, `OAR_KILL_GRACE_MS`). - **Antigravity quota notices mid-turn fail the turn as `quota` with `resetsAt`** (#1068), after earlier tool work too. Normal text that quotes the notice still completes. ### New - **Credentials declared for every runtime** (#1085). `Runtime.credentials` on all 15 built-in runtimes lists its stores (`directoryEnv`, `fallbackDirectoryEnvs`, keychain `service`), its variables with the `provider` and logical `field` each belongs to (for stripping, redaction and error attribution), `scope` (`single_account` or `per_provider`), `management` (`native`, or `external`: no native login, the person or host supplies the credential), `signInPaste`, `usageDirectoryEnv` and key `interpolation`. `LoginAccount.accountId` is set on Claude (`oauthAccount.accountUuid`, only when the stored account matches the signed-in one) and on Codex (only when the login lives in Codex's default file store and the file's sign-in token matches the signed-in account). A missing `accountId` never means "no account". - **Latest model request** (#1060, #1072). Open with `modelRequests: "latest"` and call `Session.lastModelRequest()` for the last attributed root request, read on demand and redacted. Claude (2.1.274 and later; resume verified on 2.1.326) reads its own capture, which writes the body of every model call, child and auxiliary calls included, to a private directory. Pi SDK keeps the body after Pi and extensions have transformed it, for Anthropic Messages, OpenAI Chat Completions and OpenAI Responses models; other model APIs are refused at open. Pi RPC and all other runtimes declare the option refused. `RefusableSessionOption` gains `"modelRequests"`. - **Native session file** (#1065, #1086). `Session.nativeSessionFile()` returns the file Codex (0.169.0 and later) or Pi has saved, once it exists, on fresh, resumed and forked sessions, and still after disposal. It returns `null` for a path that contains a credential. The path is the runtime's own spelling and can differ between opens of the same session (Codex on Windows adds `\\?\` on resume); compare files by filesystem identity. - **Claude side questions** (#1066). `Runtime.sideQuestion` answers one question about a saved Claude session from a disposable native fork with no tools, no MCP servers, no slash commands and no user or project hooks. It makes its own provider request with Claude's default model unless `model` is given, and times out after 60 s by default. The source can be running or stopped and is left unchanged. Claude Code 2.1.326 and later. - **Codex applied file changes per path** (#1063) on `tool_call_ended.fileChanges` and the session view, with moves kept together. Codex 0.160.1 and later. - `SessionCapabilityDeclaration` gains `sideQuestion`, `fileChanges` and `nativeSessionFile`. New exported types include `ModelRequest`, `FileChange`, `SideQuestionOptions`, the installation refusal types and `CredentialField`. ### Fixes - **Steer and abort** (#1070). - Pi RPC no longer kills a live process 10 s after a refused abort, and Pi SDK aborts between `agent_end` and `agent_settled`. - Factory retries reach `droid` after a refused interrupt. - Cursor bounds `abort()` at 10 s. In subprocess mode it stops the child if the run ignores cancel; in-process, a hung cancel answers `accepted` after 10 s while the run may continue. A live native refusal is `runtime_refused`. - Codex abort refusals keep `session_not_found` and the native error. - DSH maps process exit to `runtime_exited`, answers a prompt sent while another is starting with `busy`, and answers idle steer with `no_active_turn` before checking images. - Pi Durable agrees with `status()` right after `prompt()`, answers idle steer with `no_active_turn`, still returns `accepted` when a status read fails after a durable commit, bounds `abort()` at 10 s and reports aborted inbox inputs as `input_dropped`. - **DSH cold profile initialization** (#1080). Concurrent session, model and skill startup on a fresh DSH profile no longer races (3 in 100 shared-profile pairs failed on 0.2.2-rc.5): it now uses the one-opener coordinator Codex already had. This holds within one OAR process; separate processes can still race. ### Tests and docs - Configured-append contract on Antigravity, DSH, Factory, Grok, Pi Durable and Qoder (#1057, #1077); Qoder notification abort (#1059); Windows OpenCode startup diagnostics (#1064, #1078, #1083); tests tell processes apart across PID reuse (#1081, #1087). 🤖 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 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.
The Windows Codex job on main returned the same rollout with two valid spellings. The fresh session returned a drive path and the resumed session added the Windows extended-length prefix. The test compared the strings and failed before submitting the resumed turn. Failed Windows assertion
The vendor test now reads the device and file ID with a bigint stat. It checks the resumed session points to the original file both before and after its turn and that a Codex fork creates a distinct file. It still requires a regular file with the session ID in its absolute path.
The public locator contract now documents that a runtime can spell the same path differently on resume. Hosts comparing files should compare filesystem identity.
Validated the vendor case on Linux with Codex 0.169.0, Pi in-process and Pi RPC, all against aimock. The native Windows Codex job runs on main.
Local full validation passed: 5,576 tests and 19 mock behavior cases.