Skip to content

docs(design): say how to get past a gap in oar - #510

Merged
stamp-build[bot] merged 4 commits into
mainfrom
agent/cindy/motivation-last-stop
Oct 29, 2026
Merged

stamp-build[bot] merged 4 commits into
mainfrom
agent/cindy/motivation-last-stop

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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


Adds "When oar lacks something" to docs/design/motivation.md.

An outside critique (relayed by xxchan in #core) said wrappers end up as troublesome as ACP and that integrating directly is better. The section records the answer. oar connects each runtime through an interface its own vendor ships and maintains, preferring the most native one, never a third-party adapter. A missing capability is therefore either a gap in oar's mapping or a limit of the interface oar uses for that runtime, and the runtime page says which (Kimi: the Node SDK can steer, kimi acp cannot). It no longer claims oar prefers the most native interface, which the Kimi case contradicts. There are two ways past either: ask (one adapter and, where needed, the contract, in one repository on oar's own release schedule, including moving to a lower vendor interface), or fork (contract, adapters, behavior suites and evidence live together, with no separate protocol layer, agent-side driver or driver installation to change). The ACP steering proposal (discussion #1220, RFD PR #1261, May 2026) is cited as still unmerged on 2026-10-29, with the v2 prompt lifecycle RFD excluding queueing and steering.

A second review found the first wording ("the lowest interface its vendor ships ... not a ceiling set by a protocol in between") false for the ACP runtimes; this revision states the rule from decisions.md instead.

Docs only. Local CI=1 pnpm run check: typecheck and lint pass; 2,330 of 2,331 tests pass, the one failure is a Claude dispose timing test that passes when run alone (unrelated to docs).

🤖 Generated with Claude Code

Cindy and others added 3 commits October 29, 2026 06:45
oar connects each runtime at the vendor's lowest interface, so a missing
capability is a mapping gap: ask for it, or fork the single repository
and change the adapter. Records xxchan's position from #core:2a8c938a.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Steering was proposed for ACP in May 2026 (discussion #1220, RFD PR #1261)
and is still unmerged at the end of October; the v2 prompt lifecycle RFD
leaves queueing and steering out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@stamp-build
stamp-build Bot force-pushed the agent/cindy/motivation-last-stop branch from 29efd92 to a19ea76 Compare October 29, 2026 10:51
@stamp-build
stamp-build Bot merged commit 2ee0f81 into main Oct 29, 2026
1 check passed
@stamp-build
stamp-build Bot deleted the agent/cindy/motivation-last-stop branch October 29, 2026 10:54
@stamp-build stamp-build Bot mentioned this pull request Oct 29, 2026
stamp-build Bot added a commit that referenced this pull request Oct 29, 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_842a7b81b9cd560fcc5dd881bbf588a1"><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 -->

Patch release: Qoder CLI 1.1.81 support. No API breaking changes. Qoder
now refuses to open when its CLI version cannot be read as a stable
version (see Behavior changes).

## Fixes

### Qoder 1.1.81 sessions open again (#526)
Qoder CLI 1.1.81 (published 2026-10-29) removed the SDK worker that OAR
drove through `--print --input-format stream-json ...
--permission-prompt-tool stdio`: it rejects that flag with
`sdk_worker_removed`, and without it ordinary stream-json ignores
`initialize`. Every Qoder session and model listing failed before
opening on 1.1.81. From 1.1.81, OAR starts the CLI with `--sdk` and uses
the official SDK's daemon protocol (the one
`@qoder-ai/qoder-agent-sdk`'s public `startDaemon()` uses):
`daemon.initialize` (protocol version 2, `multi_session_v2`,
`daemon_queries_v1`), then `daemon.open_session` with the same worker
arguments and cwd. Model listing and model confirmation use
`daemon.get_models`. Qoder 1.1.78 to 1.1.80 keep the previous transport
unchanged. OAR still owns one Qoder process per session. The 1.1.81
checks ran on Linux with Qoder's fake-response provider and a synthetic
local login; a real paid-account check is still pending.

### Qoder errors no longer blame the requested effort (#526)
Any failure while opening with `effort` set used to read "Qoder could
not confirm effort ...". Startup and `initialize` failures now read
"Qoder startup failed (requested effort ...)", model-confirmation
failures keep their own message, and only a failed settings readback
says "could not confirm effort". All Qoder versions.

## Behavior changes

### Qoder needs a readable version (#526)
OAR selects the Qoder transport from the installation's version, or,
when that is absent, by running the installation command with
`--version` (15 s limit; a failed or timed-out run reports that
failure). If the version is not a stable `major.minor.patch` (for
example a pre-release build), opening a session or listing models is
refused with a version compatibility error instead of guessing a
permission transport. The transport follows the installation you pass
in: re-probe the installation after upgrading Qoder.

### Qoder daemon authentication (#526)
On 1.1.81 the daemon handshake carries the child environment's
`QODER_PERSONAL_ACCESS_TOKEN` (preferred) or `QODER_SERVICE_ACCOUNT_KEY`
when set, otherwise the native local login. A service-account key
combined with another explicit credential is refused, as in the native
CLI. A `QODER_JOB_TOKEN` without a personal access token is refused: the
daemon needs a host callback for that mode, which OAR does not
implement. Credentials are sent in the private handshake, never in argv
or records.

### Qoder daemon frames (#526)
Connection-wide daemon frames OAR does not recognize are kept in the
session's record unchanged. A frame for another session is a protocol
error: OAR terminates the owned process and records why in
`exited.reason`; during startup, opening is refused with the same
reason.

### Qoder `launchArgs` (#526)
`--sdk` and `--acp` in Qoder `launchArgs` are refused with
`UnsupportedOptionError("launchArgs")`: OAR owns the transport.

## TypeScript

The `exited` response and event gain an optional `reason?: string`
(#526). It is present only when OAR itself terminated the process and
explains OAR's decision; an independent native exit has none. Today only
Qoder's foreign-session termination sets it; dispose and abort-fallback
terminations carry none. An unfinished turn's `runtime_exited` outcome
uses it as its reason. Existing code that reads `exited` keeps working.

## Docs
- Design: when OAR lacks a capability, whether it is a gap in OAR's
mapping or a limit of the vendor interface OAR uses, and the two ways
past it, ask or fork (#510).
- Design: shared runtime processes. Where a runtime version passes an
evidence gate, its sessions will share a process by default, with
isolated placement as a host choice; no runtime passes the gate yet and
this release changes no placement (#515).
- Qoder: transport versions, daemon evidence (two concurrent sessions in
one 1.1.81 daemon, observed only), native permission regression (#526).

Co-authored-by: Cindy <[email protected]>
Co-authored-by: Claude Opus 5.5 <[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