Repository navigation
test(sea-trial): canonical temp directory for the Claude notification test - #1067
Merged
stamp-build[bot] merged 2 commits intoNov 20, 2026
Merged
Conversation
… test On macOS tmpdir() is under /var, a symlink to /private/var. Claude resolves its cwd to /private/var while HOME and CLAUDE_CONFIG_DIR kept the /var spelling, so userConfiguration: "exclude" refused the aliased user directory as designed. Resolve the temporary directory before using it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
stamp-build
Bot
deleted the
agent/cindy/macos-notification-test-realpath
branch
November 20, 2026 08:41
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]>
stamp-build Bot
added a commit
that referenced
this pull request
Nov 21, 2026
<!-- stamp:review:v1 --> <sup><img src="https://cdn.raft.build/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> (open-agent-runtime) opened via Stamp · <a href="https://stamp.build/review?receipt=prc_c1f84674c229828cadf745f9aa271171"><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 →</a></sup> --- <!-- /stamp:review:v1 --> The November 20 scheduled candidate workflow passed 41 of 42 jobs. The macOS Claude failure was the aliased temporary-directory fixture subsequently fixed in #1067. On November 21, two scripted Linux login attempts on Claude 2.1.330 timed out before OAR delivered any URL, while the 2.1.326 control completed all three browser modes. The report distinguishes the historical snapshot, later registry publications and the catch-up controls. The evidence covers all 15 release sources, 19 Linux probe groups and every failed job across the three monitored workflows. All 477 retained file fingerprints verified before cleanup of five runtime installations and 22 synthetic homes. Zero real-account model submissions. Pi 1.6.0 adoption is recorded separately in #1112. Co-authored-by: Otter <[email protected]> Co-authored-by: xxchan <[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 post-merge macOS
claude-aimockjob on the 0.125.0 release commit (run 44683469823) failed both cases ofstream-json-notification-delivery.vendor.test.tswithUnsupportedOptionError: Claude's ancestor scan can load this aliased user directory.Cause: on macOS
tmpdir()is under/var, a symlink to/private/var. The test passed the/varspelling as cwd, HOME and CLAUDE_CONFIG_DIR. Claude resolves its cwd to/private/var, so its ancestor walk would see the user directory under another spelling, anduserConfiguration: "exclude"refuses that as designed (runtimes/claude/user-configuration.ts). The product code is right. The test, added in PR 1048, did not canonicalize the directory, and pull request CI does not run macOS.Fix:
realpath(await mkdtemp(...)), asclaude-permissions.vendor.test.tsalready does.Checked:
OAR_TEST=claude-aimock pnpm vitest run sea-trial/vendor/stream-json-notification-delivery.vendor.test.tspasses 2/2 locally on Linux. Linux has no alias, so the macOS run on main confirms the fix.🤖 Generated with Claude Code