Skip to content

docs(cli): verify account-scoped usage through inherited environment - #658

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/account-environment
Nov 6, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/account-environment

Conversation

@stamp-build

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

Copy link
Copy Markdown
Contributor

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


The existing CLI already selects another Kimi account through its inherited process environment. Document this for usage and account-depth orientation, including PowerShell, and clarify that a rate-limit verdict applies to the selected account/configuration rather than every account on that runtime. No environment flag or product behavior changes.

A real Kimi 2.4.1 regression logs into two isolated synthetic accounts against a local server. Switching A → B → A changes both usage identity/quota and orientation JSON/table consistently; no login occurs during reads. The test joins the existing native login CI suite. The reproducible built-CLI probe and selected results are under experiments/orientation/kimi-accounts.md.

Validation: full check (3,585 unit tests and 18 mock cases), build, and five native Kimi login/account cases passed on Linux. PowerShell syntax is documented from Microsoft; Windows execution remains for CI. No real account or inference was used.

Related: #655, #656, #657.

@stamp-build
stamp-build Bot merged commit e4d5261 into main Nov 6, 2026
40 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/account-environment branch November 6, 2026 07:55
stamp-build Bot added a commit that referenced this pull request Nov 6, 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_3f1a284aa0f49a88dbff2bcb7f4ff154"><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 -->

Hosts can stop one native task without aborting its parent, on Claude, Codex and Qoder. Grok, Qoder and Qwen now report their task lifecycle.

## `Session.stopTask(taskId)` (#659)
- Optional; exposed on Claude, Codex and Qoder. Pass the `taskId` from a task event.
- **Accepted means only that the runtime acknowledged the request.** It is not a task-ended fact: watch for the runtime's own `task_ended`. Claude and Qoder can acknowledge an unknown id.
- It does not abort the parent, clear its queue or dispose the session.
- Codex interrupts the current turn of an observed child thread. Interrupting a child's turn does not end the task, because the parent can send that child more work, so OAR emits no `task_ended` from it. Unknown ids are rejected `unsupported`, and a child with no observed active turn is rejected `no_active_turn`.
- On Claude and Qoder, an unanswered request rejects after 30 seconds without killing the runtime, and a late reply stays a raw frame.
- Grok has no `stopTask`: cancelling a child session left it running. Qwen has no verified host control.

**Public type change:** `ControlAction` and `RequestBody` gain `stop_task`, so exhaustive switches must handle it.

## Task events on more runtimes (#659)
- Grok, Qoder and Qwen now project their native lifecycle messages to the existing `task_started`, `task_updated` and `task_ended`. There is no new event kind. Fields the runtime does not report stay absent.

**Evidence:** Claude 2.1.318, Codex 0.167.0, Grok 1.0.77 and Qwen 0.26.8 with local providers on Linux. Qoder 1.1.83 used a Free login with a DeepSeek pay-as-you-go model, not a first-party plan, and the result of a later parent prompt after a stop stays unconfirmed. CI still pins Qoder 1.1.81. See `experiments/task-controls/README.md`.

## Docs
- A usage verdict describes the account the probe selected, not every account on that runtime, so a host scopes a stall to the runtime and the account. `KIMI_CODE_HOME=/home/b oar usage kimi` and `KIMI_CODE_HOME=/home/b oar orient kimi --depth account` already switch account, with no flag; this works from 0.90.0 (#658, #655).
- The process priority section no longer overstates who may lower an OOM score (#654).

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

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