Skip to content

feat(runtime): verified platforms and the credential shape a runtime reads - #995

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/cindy/platforms-credentials
Nov 19, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/cindy/platforms-credentials

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Cindy from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Two more facts a host needs to offer a runtime without knowing it by name (Raft's no-per-runtime-code integration, agreed in #oar-raft:#39 with Archer and Raft's Otter). Both are static and carried by every orient() entry, installed or not.

What changes

  • Runtime.verifiedPlatforms?: ("linux" | "darwin" | "win32")[]: where OAR's behavior suite ran the runtime against its real binary or SDK in CI. One table (packages/oar/src/platforms.ts); tests/verified-platforms.test.ts keeps it equal to .github/runtime-versions.json. Today: all three for claude, codex, qwen, qoder, dsh, kimi, grok, opencode, antigravity, pi, pi-durable; Linux and macOS for factory and codebuddy. Absent (cursor, devin, community runtimes) means unknown, not unsupported.
  • Runtime.credentials?: the shape of what a runtime reads on its own, never a value:
    • env: variables with purpose (api_key / token / base_url) and secret;
    • stores: stores the runtime manages itself, with kind, the variable that moves the directory (directoryEnv), its default directory, the path inside it, and whether it wins over the environment.
      A host isolates one agent's credentials by setting directoryEnv, and passes secrets only through the environment or that store, never argv. Native login is the login member; per-provider keys are providers.
  • DSH declares DEEPSEEK_API_KEY and $DSH_HOME/.credentials.yaml, which wins over the environment. Measured today on 0.2.2-rc.1 with the real DeepSeek route: a different key in the store failed the turn with auth; without the store the environment key completed (docs/runtimes/dsh.md#credentials). Other runtimes' shapes follow with native evidence.

Checks

  • Platform table equals the CI manifest for every runtime the manifest runs.
  • DSH's declaration is exact; orient() carries both fields for an installed and a missing runtime.
  • Full local typecheck, lint and tests (5231 passed).

🤖 Generated with Claude Code

@stamp-build
stamp-build Bot force-pushed the agent/cindy/platforms-credentials branch from 9443231 to 4a99f68 Compare November 19, 2026 09:51
…reads

Two more facts a host needs to offer a runtime without knowing it by name,
both static and carried by every orient() entry, installed or not:

- `Runtime.verifiedPlatforms`: the operating systems where OAR's behavior
  suite ran the runtime against its real binary or SDK in CI. The table
  lives in one place (platforms.ts), and a test keeps it equal to the CI
  manifest. Absent (cursor, devin, community runtimes) means unknown.
- `Runtime.credentials`: the shape of what the runtime reads on its own,
  never a value: environment variables (purpose, secret or not) and the
  stores the runtime manages itself, with the variable that moves each
  store, its default directory and path, and whether it wins over the
  environment. A host isolates an agent's credentials by setting that
  variable; secrets go only through the environment or that store.

DSH declares DEEPSEEK_API_KEY and $DSH_HOME/.credentials.yaml, which wins
over the environment: measured today on 0.2.2-rc.1 with the real DeepSeek
route (a different key in the store failed the turn with `auth`). Other
runtimes' credential shapes follow with native evidence.

Agreed in #oar-raft:#39 with Archer and Raft's Otter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@stamp-build
stamp-build Bot force-pushed the agent/cindy/platforms-credentials branch from 4a99f68 to edf368f Compare November 19, 2026 10:11
@stamp-build
stamp-build Bot merged commit ee811af into main Nov 19, 2026
22 checks passed
@stamp-build
stamp-build Bot deleted the agent/cindy/platforms-credentials branch November 19, 2026 10:30
@stamp-build stamp-build Bot mentioned this pull request Nov 19, 2026
stamp-build Bot added a commit that referenced this pull request Nov 19, 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_74f624735784867c94839028017dbdf8"><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 -->

One answer per installed runtime for hosts that integrate OAR without per-runtime code, OpenCode 2.x system prompts and whole-session fork, DSH background job stops, writable roots, images and manual compaction, and the previous sign-in after a login expires. **Behavior changes for hosts:** malformed `resume` ids are refused, a Claude resume must be confirmed by claude, some static declarations moved into the per-installation answer, and Pi inventories refuse a different `env` (below). This release also corrects the 0.121.0 notes on #953.

## Correction to 0.121.0: #953 also changed `status()`
The 0.121.0 headline said only session-view consumers were affected. `status()` changed too: root content outside a turn leaves it idle with `activity: { since, lastEventAt }`, cleared by the next turn start or exit. A host that treated recent content as running must read `activity` instead; such a session has no turn to abort.

## Behavior changes
- `SessionOptions.resume` that is blank, starts with `-`, or contains NUL is refused with `UnsupportedOptionError` (`option: "resume"`) on every runtime, before any process starts.
- Claude: a plain `resume` is now confirmed with `get_status`. If claude resolves the value as a session title to a different native id, the open is rejected and the process stopped, instead of recording the title as `Session.id`. A resume also fails, and the process is stopped, when `get_status` reports no id or does not answer within 30 seconds. An unmatched title on 2.1.326 and later is `SessionNotFoundError`.
- Claude, Qwen and Qoder pass session ids as `--flag=value` (#994).
- Some static declarations moved into `sessionCapabilities(installation)`: OpenCode's static map no longer lists `fork` (v1 refusals are per installation, #996), Cursor no longer declares `manualCompaction` (#1002), and DSH no longer declares `images: false` (#997). A host reading only the static fields must switch to the installation answer.
- Pi inventories called with an `env` that differs from the host process now return `unsupported` (`scope_unavailable`), since the in-process SDK would search a different scope (#1002).

## One capability answer per installation (#992, #995), feature
A host can now decide what to offer for a runtime from data alone, before opening a session.
- `Runtime.sessionCapabilities(installation)` returns this installation's complete answer: `steer`, `images`, `refusedSessionOptions` (the static map plus refusals a release adds below its floor), `manualCompaction`, and `compactionEvents: { started, ended }` when established. `defineRuntime` merges the static declarations; `installedSessionCapabilities(runtime, installation)` does the same for any `Runtime`. A test or host that compared this answer to only `steer` and `images` now also sees the static refusals (#1001).
- `Runtime.verifiedPlatforms`: where OAR's behavior suite ran the real binary or SDK in CI (one table, kept equal to the CI manifest). Absent means unknown, not unsupported.
- `Runtime.credentials`: the shape of what a runtime reads on its own, never a value: environment variables with `purpose` and `secret`, and the stores it manages (`kind`, `directoryEnv`, default directory, path, whether it wins over the environment). DSH declares `DEEPSEEK_API_KEY` and, in precedence order, `$DSH_HOME/.credentials.yaml` (wins over the environment), the session directory's `.env` and `$DSH_HOME/.env`. Other runtimes follow with native evidence.
- `orient()` carries `sessionCapabilities` for each available installation, and the platform and credential facts for every entry. The report is plain JSON.

## Previous sign-in after expiry (#988, #990), feature
New optional `LastAccount { email, displayName }` on a logged-out status and on a `reauth_required` or `unavailable` usage result, when the runtime still names the previous account.
- Claude 2.1.327 keeps its account profile after a rejected refresh; explicit logout erases it.
- Grok 1.0.89 keeps the previous email in its auth-info extension until native logout.
- Codex, Cursor, Kimi and Devin drop the identity; CodeBuddy, Antigravity and Qoder record which paths were checked (experiments/remembered-accounts).

## OpenCode 2.x
- `systemPrompt` from 2.2.0 and `appendSystemPrompt` from 2.0.30, through the session-local configuration overlay (#989). The system prompt goes on every visible primary agent; subagents and hidden agents keep theirs. Below each floor the option is refused before any native query, and shared placement refuses both. After a resume, OpenCode keeps the earlier appended text in its saved system snapshot with a native "no longer apply" note.
- `SessionOptions.fork` copies a whole v2 session through ACP and binds the copy's reported id; `fork.through` is refused because the native handler accepts only the source id (#996). V1 keeps its refusal. Hosts can read each release line's manual compaction support and v1 refusals before opening. Explicit upgrades use the v2 executable's own updater.
- Root prompt totals from 2.0.22 cover every step of the turn (a two-step turn that used to report its last step's 220 tokens reports 330), with cache reads and writes in input and thought tokens in output (#985).
- Scheduled provider retries from 2.0.15 are reported as a `retry` event with attempt, remaining delay and error category (#1000). On 1.x ACP gives no retry status, and cancelling during backoff returns `end_turn`, which OAR keeps as the native outcome.

## DSH (#987, #997)
- Stop a host's own backgrounded shell job; a foreground shell and a peer job keep running.
- Extra writable directories on Linux and macOS from 0.2.2-rc.3, re-registered on resume; older releases and Windows refuse them.
- Image input where the route supports vision; a text-only route refuses the whole input.
- Manual compaction on an idle session, confirmed by the native command and compaction ids; automatic compaction reports both boundaries.
- A resumed session restores its saved request window, so context usage has a window again without a new request (#987).

## Fixes
- Claude: one compaction start per agent, including automatic recovery after a context overflow, and a failed manual compaction reports its end (#984). Qoder uses the same mapping.
- Grok with `endTurnProcessesOnAbort: true`: an accepted abort stops only the terminals of the confirmed root turn after it ends as aborted; compaction and child activity cannot pass ownership to a later prompt (#999).
- Antigravity: one realpath workspace boundary for file skills, plugins and manifests, covering six escape paths (#993).
- Factory releases its input reservation on the correlated native compaction result or refusal, and drains queued input when droid hands a prompt back without a turn end (#1002). Cursor leaves manual compaction unknown before open and offers it on agents that supply `summarize()`.

## Community: Cybion (#965), feature
Contributed by zccz14. A community runtime over Cybion's Agent API, exported from `@botiverse/oar/community` and added by the host with its deployment and API key. The Thread id is `Session.id`, so `resume` reattaches to the server's conversation. Steer reuses the input route, abort uses the cancel route Cybion's own UI calls, and images travel inline. Model listing, account usage and inventories are unsupported, and a `model` or `effort` that differs from the stored one on resume is refused. Live turns, resume, cancel and steer were observed against cybion.ntnl.io on 2026-11-18.

## Also
- Docs: queue, resume and Factory record descriptions corrected (#986); native resume frames distinguished from stream positions (#991); runtime and contract pages point to live definitions (#1002).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Cindy <[email protected]>
Co-authored-by: xxchan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants