Repository navigation
test(ci): record Windows Pi RPC process and memory samples - #492
Merged
Merged
Conversation
stamp-build
Bot
force-pushed
the
agent/otter/windows-ci-resources
branch
from
October 26, 2026 15:48
284ed50 to
3204ad8
Compare
stamp-build Bot
added a commit
that referenced
this pull request
Oct 26, 2026
<!-- stamp:review:v1 --> <sup><img src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_8ba6d0f111db5b75f71e63f4468667c1"><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 --> `@botiverse/[email protected]` omitted the Apache 2.0 license text because the nested Qwen asset license prevented pnpm's root-license fallback. Include verbatim root LICENSE copies in both package roots, keeping the third-party Qwen license intact. Clean-install now extracts `package/LICENSE` from each actual tarball and compares its bytes against the repository root, catching both missing and stale copies. Validation: the new packed-license check failed before the copies were added. The full check (2,177 unit tests and 19 mock cases) and clean-install, including both packed license comparisons, passed after the fix. Package versions remain 0.72.0; this fix is for the next release. Rebased onto main `e786679`, including #452, #491 and #492. The added and removed lines are unchanged; clean-install retains both the fresh compiler build/cache exclusion checks and the license comparisons. Full check and actual packed installation passed on final head `9fc9765`; three-platform CI runs again on that head. Co-authored-by: Otter <[email protected]>
Merged
stamp-build Bot
added a commit
that referenced
this pull request
Oct 26, 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_55fe77367d11a6f73936cd8d1ffa9e7d"><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 --> ## New ### Login and sessions share one environment (#490) `LoginOptions`, `LogoutOptions` and `AuthStatusOptions` take `env`, with the same overlay semantics as `SessionOptions.env`: strings set a variable, `null` removes it, and the host's own environment is never changed. Claude login, logout and status, Qoder login and status, and Codex's app-server login, `codex logout` and `codex login status` all run with it, including the read that confirms a login. Runtimes whose sessions refuse `env` (Cursor, whose SDK runs in the host process) refuse a non-empty `env` on login, logout and status too, with `UnsupportedOptionError("env")`. `userShellEnvironment({ timeoutMs, signal })` runs `$SHELL` once as an interactive login shell (POSIX shells, fish, Nushell and PowerShell; natively verified with Bash, fish and Nushell) and returns `{ env, changedVariables }`. `env` is the complete snapshot, with `null` for host variables the shell removed, ready to pass as an overlay. `changedVariables` lists only the names of `HOME`, `PATH`, `CLAUDE_CONFIG_DIR`, `CODEX_HOME` and proxy variables that differ from the host, never their values. Failures throw `UserShellEnvironmentError` with a typed `reason`: `no_node_runtime` (the host is a Node single executable application or a compiled Bun binary, which cannot evaluate the capture script), `unsupported_platform` (Windows), `shell_not_set`, `shell_unavailable`, `shell_failed`, `timed_out`, `cancelled`, `invalid_output` and `output_too_large`; an invalid `timeoutMs` throws `RangeError`. It never returns a partial environment and never forwards shell output. It does not check for a login session; without one, session variables such as `XDG_RUNTIME_DIR` may be missing. New exported types: `UserShellEnvironmentOptions`, `UserShellEnvironmentFailure`. **Host note:** capture once and pass the same `env` to sessions, login, logout, status and `orient`, so credentials are written and read in the same place. Skip it for runtimes that declare `refusedSessionOptions.env` (Cursor, Pi Durable). Fall back to the host environment when the helper fails. ### Readers take the same environment (#491) Installation probes, account usage, model listing, inventories and provider listing accept `env` (new `InstallationProbeOptions` and optional `env` fields on the other reader options), with the meaning that runtime's sessions give it. Executable lookup uses the passed `PATH`, home-relative fallbacks use the passed `HOME`, and child processes receive the overlay. Built-in runtimes whose sessions refuse `env` (Cursor, Pi Durable) refuse it in their readers too. Kimi account usage refuses only overlays that change proxy or TLS variables (`HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY`, `NO_PROXY` in either case, `NODE_EXTRA_CA_CERTS`, `SSL_CERT_FILE`, `SSL_CERT_DIR`, `NODE_TLS_REJECT_UNAUTHORIZED`), because its HTTP request runs in the host process. `orient({ env })` passes `env` only to runtimes whose sessions accept it (`refusedSessionOptions.env` absent); the others are observed in the host environment, where their sessions run. A reader that refuses `env` is reported as `unsupported`. **Known limitation (Pi):** Pi readers accept `env` with in-process Pi session semantics, where it reaches only child processes and the SDK reads credentials and configuration from the host environment. This holds even when sessions use `execution: "subprocess"`, whose child process uses `env` throughout, including `HOME` for the agent directory. With a subprocess runtime and an `env` that changes `HOME`, the agent directory or provider keys, Pi readers and sessions can see different configuration. A follow-up will align them. ## Behavior changes - Executable lookup no longer searches the working directory when `PATH` is empty, and on POSIX an unset `PATH` now searches `/usr/bin:/bin` (previously only the working directory); on Windows an empty or unset `PATH` finds nothing. This applies to the host's own `PATH` as well as a passed `env`. `OAR_*_BIN` pins and absolute install-location fallbacks still resolve (#490, #491). - Qoder's home-directory fallback is resolved on each call instead of when the module loads, so a later `HOME` change is seen (#491). - `InstallationProbe` now takes an optional `InstallationProbeOptions` argument; zero-argument probes still type-check, but a custom probe whose first parameter has another type does not (#491). ## Fixes - `@botiverse/oar` ships its `LICENSE` again. 0.72.0 omitted it because pnpm copies the workspace root license only into packages without another license-like file, and the Qwen brand assets added one. Both packages now carry their own copy, and the packaging test compares it with the root license (#493). ## Internal - Toolchain: typecheck and builds use tsrs `0.20.0-ts7.1.0-beta` (TypeScript 7.1 beta semantics, pinned exactly) instead of TypeScript 6.0.3 (#452). Its output, source maps included, is byte-identical to official TypeScript 7.1 beta. Compared with 0.72.0's TypeScript 6 build, emitted JavaScript is semantically unchanged; one declaration file orders a property differently, and source maps differ. The official `typescript` dependency remains only to check that a TypeScript 6 host can consume the published declarations. - Windows Pi RPC CI records process and memory samples (#492). Co-authored-by: Cindy <[email protected]> Co-authored-by: Claude Opus 5.5 <[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.
Windows Pi RPC CI lost runner communication three times without retained logs or artifacts. The available evidence does not establish whether resource pressure, process cleanup or the runner itself caused those losses. The report also separates two Qoder initialization deadlines and records that its vendor tests do not share the behavior suite's concurrency cap.
Wrap only the Windows Pi RPC behavior and vendor commands with a bounded PowerShell resource sampler. It flushes memory, process identity and resource counts to JSONL and small checkpoints to the live log, preserving the original command, output, exit status, concurrency and test deadlines. It records no command lines, executable paths or environment values. Sampling errors remain separate from native test failures.
Validation: the full local check passed on main
30ff1d1(2,133 unit tests and 19 mock behavior cases). Two new Windows-only tests check native exit 0/37, inherited output and sample privacy; they were skipped locally and passed in Windows CI on3204ad8. The initial Windows check exposed a test expectation mistake: the execution helper represents native success asexitCode: null, while the sampler records native exit 0. The assertion now follows that contract and still verifies the native 0/37 records. No adapter change, retry, assertion weakening or timeout increase.