Repository navigation
ci: trim push matrix to audit-proven jobs, shard daily matrix, prune non-contract tests - #1100
Merged
Merged
Conversation
added 4 commits
November 21, 2026 03:53
…non-contract tests
… document verifiedPlatforms contract
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><a href="https://stamp.build/review?receipt=prc_181cd54194df4f34ad7de17509f925dc"><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.128.0 ### Behavior changes hosts should know - **`turn_ended` is the last event of its turn** (#1101). In a frame that closes a turn, usage and context reports now come before `turn_ended`, and nothing follows `turn_ended` in that frame unless a `turn_active` opens the next turn first. Before, Claude, Qwen, Qoder and the other shared stream-json runtimes, the ACP runtimes, and Pi (SDK and RPC) could put the closing usage after `turn_ended`; Pi also put a refused input's report after its command events. The scripted test runtime follows the same order. Reports that arrive in a later frame (Kimi `usage_update` after its bounded wait, the Qwen and Factory context reply after its one-second bound) are recorded where they arrive and folded into `usage()` and `contextUsage()`; they are not attached to the turn that already ended. Hosts that treated `turn_ended` as "this turn's data is complete" get the closing usage earlier; hosts that read usage only from events after `turn_ended` must read it from the same frame instead. The rule is in docs/spec/record-stream.md. - **`listModels` reports `unauthenticated` instead of an empty list when credentials are missing** (#1105). - DSH with no DeepSeek key used to answer `ok` with no models. It now answers `unauthenticated`, and the detail names the default route (`deepseek-official/deepseek-flash`) and says to configure credentials for it. With a key, the list is unchanged (`deepseek-flash`, `deepseek-v4-pro`). - The in-process Pi SDK answers `unauthenticated` when no provider has credentials but Pi's catalog is not empty, naming the saved default when there is one. Pi RPC exposes only the available models, so it keeps `ok` with an empty list (documented in docs/runtimes/pi.md). - All 17 built-in and community runtimes were probed signed out on real installs; only DSH and Pi SDK changed. ### New - **`SessionOptions.sessionLogUpload: "off"`** (#1106). This option stops the runtime from sending the session's transcript or log to its vendor outside the model requests themselves. Leaving it out keeps the user's and runtime's own settings. There is no `"on"`, and when given it wins over a user opt-in. Separate telemetry metrics are out of scope. Give it again on resume. - DSH (0.2.1-rc.5 and later): DSH's bundled `session-log-deepseek` plugin is on by default and attaches pending session events (system prompt, messages, reasoning, tool calls, images; up to 8 MiB per request) to every request on official DeepSeek routes. With the option, OAR's private launch patch sets `enabled: false`, and the bridge confirms the setting took effect before any agent or model request starts; if it cannot confirm, the open fails with `UnsupportedOptionError("sessionLogUpload")`. Verified on DSH 0.2.2-rc.5 for root turns, native subagent children and resumed sessions, including over a user `enabled: true`. DSH's `DSH_TELEMETRY_DISABLED` does not stop this upload. Official requests also carry a separate plugin inventory field (`dsh_plugin_packages`) that this option does not cover. See docs/runtimes/dsh.md "Session-log upload". - Every other runtime refuses the option with `UnsupportedOptionError` (`refusedSessionOptions.sessionLogUpload`) until a switch is verified for it. - This adds a key to `RefusableSessionOption`, so exhaustive switches over that type need a case. ### Docs - README has a Contributing section (#1102, #1103): issues and pull requests from people and agents are welcome, issues preferred. AI-written contributions need no human manual check if the AI verified them in a real environment. Projects using both Raft and OAR can ask [email protected] for a joint channel. - docs/runtimes/dsh.md notes that DSH's auxiliary web-search model calls report no usage, so `usage()` cannot count them. ### Tests and CI - The push matrix on `main` keeps the jobs an audit showed to guard contracts; the remaining platform legs run in a daily sharded matrix, and tests that checked no contract were removed (#1100). The commit gate in docs/development.md is `CI=1 pnpm run check`. 🤖 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 23, 2026
…nd CI (#1140) <!-- 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> (open-agent-runtime) opened via Stamp · <a href="https://stamp.build/review?receipt=prc_78c75ec72882c291476828337858f0d7"><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 --> Weekly maintenance pass (2026-11-23): fix factual doc/CI drift, Kimi KAP details, and broken test links across `docs/development.md` and `docs/runtimes/*`. - `docs/development.md`: document `OAR_COMMUNITY_TESTS=1` / `pnpm run check` scoping for `tests/community/**`, update `ci-select.mjs` inert paths and `shared/acp/` reachability, align `clean-install` description with Pi `optionalDependencies` (`#1098`), and document community runtimes under `packages/oar/src/community/<id>/`. - `docs/runtimes/kimi.md`: address `#core:#408` non-blocking wording note (`steer()` rejects `busy` only on unresolved manual compaction, not active root turns); clarify `sessionCapabilities(installation)` differences between `>= 2.7.2-botiverse.1`, `>= 2.7.3`, and `<= 2.7.2-botiverse.0` plus KAP `launchArgs`/`additionalDirectories`; update CI matrix refs after `#1100`; replace deleted `tests/acp/acp-vendor-snapshot.test.ts` link. - `docs/runtimes/grok.md`, `antigravity.md`, `qoder.md`, `opencode.md`, `codex.md`, `install.md`: align CI workflow/matrix descriptions with `#1100` (`ci.yml` vs `platform-matrix.yml` / `runtime-latest.yml`) and remove broken `tests/acp/acp-vendor-snapshot.test.ts` link in `grok.md`. - `docs/runtimes/README.md`, `steer-delivery.md`, `resume-cwd.md`, `inventory.md`, `devin.md`, `pi.md`, `update.md`: add Kimi KAP and Cybion mappings, clarify Devin's verified live turn, clarify Pi SDK `optionalDependencies` and `PI_RPC_MINIMUM_VERSION` explicit command check, and update `inventory.md` baseline vs shipped `skills` readers. Verification: `python3 tools/check-md-links.py projects/oar` (0 broken links in edited files), 0 em/en dashes in diff, verified against code and `.github/workflows/`. --------- Co-authored-by: Cindy <[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.
Trim CI wall time on
mainpushes 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 Windowscheck, 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.ymlpush/release gate or the dailyplatform-matrix.ymlworkflow) 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
mainci.ymlrunsAudited the last 50 completed (non-cancelled)
mainci.ymlruns (2026-11-19T14:52:42Zto2026-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 onubuntu-latestin the same run.checkwindows-latestopencode-skills.vendor.test.ts:115residual-process check (44567380785/135712727501,44562374930/135694839948); 1xtests/login/codebuddy-login.test.tsdeadline (44557134041/135676127578)check-windows1/2 + 2/2; Windowsopencode-cleanup/skillsstays incheck-windowsshard 1; other Windows native helpers moved to dailyplatform-matrix.yml)behavior (dsh-aimock)windows-latestconfigured-append.vendor.test.tsfailed on Windows until PR #1090 (44784700637/136456409926and 18 earlier runs back to44710123448)behavior (codex-aimock)windows-latestnative-session-file.vendor.test.ts\\?\C:\...verbatim path prefix mismatch until PR #1086 (44731287320/136271471468and 8 earlier runs)pi-rpc-windows (vendor)windows-latestpi-rpc-readers.vendor.test.ts(44728473944/136261891688, fixed by PR #1087)behavior (claude-aimock)macos-lateststream-json-notification-delivery.vendor.test.ts,44683469823/136112174941), not a product bug; queued 13.8 min on dispatched run44864196854macos-behavior-1) so push and release never wait on the macOS queueacp-behavior (opencode-v2-aimock)windows-latest#core:#360:Standalone server exited before reporting readinessin44718951258/136229587061,44715350753/136217317831,44710755589/136202373225,44665635103/136054155704,44649846441/136001756272)windows-behavior-1) until#core:#360is fixedbehavior (dsh-aimock)macos-latestreadProfileManifestSyntaxError: Unexpected end of JSON input(44710148399/136199570104), not macOS-specificmacos-behavior-1)behavior (qoder-native)macos-latestRuntime installation failed: fetch failedacross 3 download attempts (44731287320/136271471671)macos-behavior-1)checkmacos-latestubuntu-latestmacos-check)behavior (codex/factory/pi/pi-durable/pi-rpc/qwen)macos-latestmacos-behavior-1/2)acp-behavior (codebuddy/grok/kimi/opencode/opencode-v2)macos-latestmacos-acp)behavior (claude/pi/pi-durable/qoder/qwen)windows-latestwindows-behavior-1/2)acp-behavior (opencode-aimock v1)windows-latestwindows-behavior-2)pi-rpc-windows (behavior)windows-latestwindows-behavior-2)2. Profiling
check (windows-latest)on baseline run44830444455(16.59 min)Step breakdown of job
136613885380(995.7s total):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 skippedsea-trial/vendor/*.vendor.test.tsfiles (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.7spnpm run check: 329.2s (5.49m) (build2.3s,cursor-skills6.6s,opencode-cleanupinstall+test 38.2s,kimi-logininstall+test 103.3s,kimi-skillsinstall+test 49.1s,agyinstall+behavior+vendor+file-skills 119.4s)Changes to cut
check (windows-latest)from 16.59 min to ~5 min wall:check-nativeonubuntu-latest; keep Windowsopencode-cleanup/skills(38s) incheck-windowsshard 1; move zero-unique-failure Windows/macOS native checks (cursor-skills,kimi-login,kimi-skills,agy) to dailyplatform-matrix.yml(-4.8m on Windows).sea-trial/vendor/*.vendor.test.tsinvitest.config.tswhenprocess.env.OAR_TEST === undefined(keeping non-.vendor.test.tsfiles such ascodex-process-count.test.tsactive), so defaultpnpm teststops importing 148 skipped vendor files (-~1m on Windows).check-windowsinto 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.mdanddocs/runtimes/pi.md:release.ymlwaits only onci.ymlon$GITHUB_SHA(Linuxcheck,check-native,clean-install,browser-demo, full Linux behavior/ACP/pi-rpc-minimummatrix, shardedcheck-windowswithopencode-cleanup, Windowsdsh-aimock, Windowscodex-aimock, and Windowspi-rpc-windowsvendor; zero macOS jobs).release.ymldoes not wait on.github/workflows/platform-matrix.yml(daily at03:17 UTCand on manualworkflow_dispatch, sharded via.github/scripts/run-ci-shard.mjsinto 4 macOS jobs and 3 Windows jobs so setup runs once per shard and macOS stays within runner concurrency limits).docs/development.mdexplicitly 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, andopencode-cleanup-observer.test.ts).Pure
experiments/tests (outside@botiverse/oarand unadmitted experimental adapters; public placement refusals stay intests/opencode/sharing-disabled.test.ts,tests/grok/sharing-disabled.test.ts,tests/opencode/sharing-admission.test.tsandtests/grok/sharing-admission.test.ts)tests/opencode/shared-session.test.ts(56.4s Windows, 19 tests): tests unadmittedexperiments/sharing/opencode-candidate.tsoutside@botiverse/oar.tests/grok/shared-session.test.ts(47.7s Windows, 17 tests): tests unadmittedexperiments/sharing/grok-candidate.tsoutside@botiverse/oar.tests/opencode/plugin-environment.test.ts: testsexperiments/sharing/plugin-environment-comparison.tsprobe helper.tests/sharing-directory-failures.test.ts: testsexperiments/sharing/directory-failures.tsprobe helper.tests/sharing-directory-hooks.test.ts: testsexperiments/sharing/directory-hooks.tsprobe helper.tests/sharing-fixture-lifetime.test.ts: testsexperiments/sharing/fixture-lifetime.tsprobe helper.tests/sharing-freshness.test.ts: testsexperiments/sharing/configuration-freshness-checks.tsprobe helper.tests/sharing-hook-command.test.ts: testsexperiments/sharing/directory-configuration.tsprobe helper.tests/sharing-hook-completions.test.ts: testsexperiments/sharing/hook-completions.tsprobe helper.tests/sharing-hook-trust.test.ts: testsexperiments/sharing/codex-hook-trust.tsprobe helper.tests/sharing-mcp-scope.test.ts: testsexperiments/sharing/mcp-scope.tsprobe helper.tests/sharing-native-process.test.ts: testsexperiments/sharing/native-process.tsprobe helper.tests/sharing-observation.test.ts: testsexperiments/sharing/observation.tsprobe helper.tests/sharing-process-table.test.ts: testsexperiments/sharing/process-table.tsprobe helper.tests/sharing-windows-resources.test.ts: testsexperiments/sharing/windows-resources.tsprobe helper.tests/grok/launch-probe.test.ts(4.8s Windows): testsexperiments/grok-startup/launch-probe.tsdiagnostic script.tests/grok/bootstrap-trace.test.ts: testsexperiments/grok-startup/trace-bootstrap.tsdiagnostic script.tests/antigravity/real-model-menu-inventory.test.ts: testsexperiments/antigravity-model-menus/manual probe script.tests/antigravity/real-model-menu-probe.test.ts: testsexperiments/antigravity-model-menus/manual probe script.Non-cleanup test-harness and fixture-helper meta-tests (zero
@botiverse/oarproduct code)tests/windows-resources.test.ts(11.3s Windows): testssea-trial/windows-resources.ps1CI sampler script.tests/pi-rpc-diagnostics.test.ts(12.8s Windows): spawns nested Vitest/PowerShell to testsea-trial/pi-rpc-progress.tsandwindows-resources.ps1.tests/pi-rpc-progress.test.ts: testssea-trial/pi-rpc-progress.tsVitest reporter helper.tests/antigravity-mcp-evidence.test.ts: testssea-trial/vendor/support/antigravity-mcp-evidence.tscapture helper.tests/claude-tools-catalog.test.ts: testssea-trial/harness/claude-tools.tsmock fixture helper.tests/codex-aimock-warmup.test.ts: testssea-trial/harness/codex-home.tsfixture helper.tests/codex-fixture-trace.test.ts: testssea-trial/harness/aimock.tstrace helper.tests/codex-task-fixture.test.ts: testssea-trial/vendor/support/codex-task-request.tsfixture helper.tests/codex-task-script.test.ts: testssea-trial/vendor/support/codex-task-script.tsfixture helper.tests/cursor/copied-sdk-bundle.test.ts: testssea-trial/vendor/support/copied-sdk-bundle.tsfixture helper.tests/dsh/provider-fixture.test.ts: testssea-trial/harness/dsh-provider.tsmock provider helper.tests/opencode-aimock-warmup.test.ts: testssea-trial/harness/opencode-home.tsfixture helper.tests/opencode-startup-log.test.ts: testssea-trial/harness/opencode-startup-log.tsfixture helper.tests/provider-evidence.test.ts: testssea-trial/harness/provider-evidence.tscapture helper.tests/tool-round-fixtures.test.ts: testssea-trial/vendor/support/tool-round.tsfixture helper.tests/windows-process-table-preparation.test.ts: testssea-trial/windows-process-table.tsVitest global-setup helper.tests/acp/acp-fixture-trace.test.ts: teststests/fixtures/acp-trace.tsfixture helper.tests/acp/acp-vendor-snapshot.test.ts: testssea-trial/harness/aimock-acp.tssnapshot helper.tests/sea-trial-backends.test.ts: testssea-trial/harness/parallel-backends.tslocal runner helper.tests/sea-trial-required.test.ts(5.9s Windows): spawnstsx sea-trial/main.ts4x to check harness CLI output formatting.Shared-code-path per-runtime repetition trimmed
tests/acp/acp-resume-errors.test.ts(29.8s Windows, 42 -> 8 tests): runs the 7 real-processsession/listrefusal/error scenarios once onopencodeV2AcpProfileinstead of 6x across profiles sharingacpSession, plus one pure assertion checkingresumeKeepsSessionCwd: trueon all 6 profiles.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 sharedacpSessionloops to one representative profile.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 samewithQueryDeadlinehelper, and advances the answer deadline withvi.useFakeTimersafter real process startup instead of sleeping 4 real seconds per case.tests/native-query-deadlines.test.ts(43.2s Windows, 27 -> 11 tests): keeps 10 representatives covering every distinct transport and return shape (listModelsthrow,skillstimeout,authStatusunknown, one-shot/ACP/line-process/SDK/daemon) instead of repeating 26 times across sharedwithQueryDeadlinecallers.Wording and formatting pins replaced with typed contract checks
tests/fixtures/pi-rpc-bundled-host.tsandsea-trial/vendor/pi-rpc-bundled.vendor.test.ts: asserts typed{ kind: "unsupported", code: "dependency_missing" }instead of pinning the English refusal sentence.tests/acp/acp-resume-cwd.test.ts: removed the two exact-sentencemessage:assertions while keeping all typedResumeCwdError/UnsupportedOptionErrorfields.tests/manual-compaction-capabilities.test.ts: replaced the arbitraryreason.length > 30prose-length pin with a non-empty check.5. Before / after numbers
44830444455/ local897f240e)44864196854minus macOSclaude-aimock/ local)mainpush jobsmainpush wall timecheck-windows (1)= 6.02 min; every Linux/Windows job started within 0.1 min; 0 min macOS queue)mainpush runner-minutescheck (windows-latest)wall timecheck-windows (1)incl.opencode-cleanup) / 4.60 min (check-windows (2))check (ubuntu-latest)wall timecheck) / 3.95 min (check-nativein parallel)OAR_COMMUNITY_TESTS=1 pnpm testfiles.vendor.test.tsfiles)OAR_COMMUNITY_TESTS=1 pnpm testtestspnpm testduration6. Call-site audit
Checked every reference to
ci.yml,ci-select.mjs,acp-behavior,pi-rpc-windows,verifiedPlatformsand deleted test names across.github/,packages/,tests/,docs/and.stamp/:.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..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 testsrelease.ymlpollingci.ymlpush/dispatch runs),docs/runtimes/{codex,cursor,grok,kimi,opencode}.md(link toci.ymlwithout claiming every-push macOS/Windows gating).Note: Respecting the active
v0.127.0merge hold (#core:185b8043); auto-merge is not armed.