Skip to content

feat!: steer is a member a session may lack; refused options are a typed UnsupportedOptionError - #108

Merged
xxchan merged 1 commit into
mainfrom
feat/capabilities
Oct 3, 2026
Merged

xxchan merged 1 commit into
mainfrom
feat/capabilities

Conversation

@xxchan

@xxchan xxchan commented Oct 3, 2026

Copy link
Copy Markdown
Member

Implements docs/design/capabilities.md (#103).

Breaking (0.17.0):

  • Session.steer is optional: a session that cannot steer (kimi, antigravity) has no steer; SessionCapabilities.steer is gone. Hosts show a steer control only where session.steer exists; steerOrQueue and deliver queue without it.
  • SessionCapabilities.queue is always { durable } (every runtime holds input at least in the adapter); the null case and its branches are gone.
  • An option a runtime refuses at open now rejects with UnsupportedOptionError (option names it, message is the reason): cursor, kimi, antigravity declared refusals, and kimi's resume in another directory (option: "cwd").
  • RejectionCode "unsupported" now means "this control with these inputs" (images on a cursor steer); a control the runtime cannot do at all is an absent member.

Also: SessionOptions and each refusable field document the refusal and link the table (OpenDAL-style chain); spec and runtime pages updated; shared tests skip by capability (session.steer === undefined, installation.via === "bundled" for the kill case), not by runtime name.

Checks: typecheck, lint, full vitest (566 passed), sea-trial on mock and the three aimock backends. Live: live-contract --only basic,steer,queue,busy-and-late-control on kimi (steer skipped: no steer), claude and cursor, all pass.

🤖 Generated with Claude Code

…ped UnsupportedOptionError

Implements docs/design/capabilities.md (#103).

- UnsupportedOptionError (option, message), exported from the root:
  refuseSessionOptions (cursor, kimi, antigravity) and kimi's refusal of
  a resume in another directory (option "cwd") throw it.
- Session.steer and AdapterSession.steer are optional; presence is the
  capability. SessionCapabilities loses steer, and queue is always
  { durable }. ACP sessions expose steer only when the profile has steer
  params (grok); kimi and antigravity sessions have none.
- sealSession seals steer only where the adapter has it; steerOrQueue and
  deliver queue directly without it. The queue-null branches are gone.
- cursor: a run without run.steer refuses the steer runtime_refused;
  images on a steer stay unsupported.
- Subagent send(..., "steer") is rejected unsupported when the child's
  session has no steer.
- sea-trial steer cases and the live-contract steer scenario skip on a
  session without steer; kill-runtime skips on a bundled installation,
  not on runtime names.
- Docs: each refusable SessionOptions field names its refusing runtimes
  and the typed error, pointing at refusedSessionOptions and the runtime
  matrix table; runtime pages say the session has no steer.

BREAKING CHANGE: SessionCapabilities.steer is removed and
capabilities.queue is never null; Session.steer may be undefined; a
refused session option rejects with UnsupportedOptionError.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@xxchan
xxchan force-pushed the feat/capabilities branch from d755937 to 01dfd36 Compare October 3, 2026 14:52
@xxchan
xxchan merged commit 81eb7ac into main Oct 3, 2026
23 of 24 checks passed
@xxchan
xxchan deleted the feat/capabilities branch October 3, 2026 14:56
@xxchan xxchan mentioned this pull request Oct 3, 2026
xxchan added a commit that referenced this pull request Oct 3, 2026
Minor release with breaking changes, version bump only:
- #108: `Session.steer` is optional (absent on kimi and antigravity);
`SessionCapabilities.steer` removed; `capabilities.queue` is always `{
durable }`; refused session options reject with a typed
`UnsupportedOptionError` (cursor, kimi, antigravity; kimi's resume in
another directory).
- #103: docs/design/capabilities.md.

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

Co-authored-by: exe.dev user <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
stamp-build Bot added a commit that referenced this pull request Oct 29, 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_7ae94d09937285ea2a082681d962d744"><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 -->

Pi provider keys supplied through `setApiKey` or API-key `login` could
be interpreted as shell commands or environment references when Pi read
them back. Encode these inputs using Pi's native literal escapes before
its login flow stores them. The same encoder handles existing session
MCP values; OAuth answers and non-secret provider settings retain their
native meaning.

Also export `createPiProviderAuth` from `@botiverse/oar/runtimes/pi`
without eagerly loading the SDK or other adapters, forward native
`getDeviceId`/`agentName` login options, and expose per-prompt
cancellation combined with host cancellation. Pending input rejects on
abort even if the host callback never settles. The login spec and Pi
mapping document these behaviors and the audit of credential/config
write paths.

**Behavior changes:** facade-supplied API keys are stored as literal
values. Existing native configuration is not migrated; manually
configured commands/references retain Pi's behavior on resolved reads.
Hosts provide and retain the stable UUID needed by Pi's ChatGPT login.

Validation: full `CI=1 pnpm run check` (2,385 unit tests, 18 mock
behavior passes), both package builds, packed clean-install/typecheck
including the isolated Pi entry, and three native Pi MCP tests. New
regressions exercise Pi 1.4.0's actual login, credential file, resolver
and request-auth path with synthetic special-character keys while
command execution is forbidden; they also cover cancellation, late
answers, OAuth preservation and native login options. No real account or
model request was used for provider authentication tests.

Raft task #108.

Co-authored-by: Otter <[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.

1 participant