How the vocabulary was unified
The two source runtimes: chia1104.dev's agent-runtime (wire/schema.ts) and solyx's @solyx/agent
(wire.ts). The runtime keeps what any agent app needs and drops what belongs to one domain or to a
feature this milestone does not have.
| Source | Event | Decision | Why |
|---|---|---|---|
| both | run:start | kept; chia's sessionId dropped | A stream is already one session's. |
| both | user | kept; attachments dropped | Both apps' attachment kinds are domain records (drafts, feeds, reports; files with paths). |
| both | assistant:start, assistant:delta | kept | Identical in both. |
| both | assistant:end | kept, stopReason made required, error added; usage merged (costTotal renamed cost) | pi-durable stores failed replies as entries; the client shows why one failed. |
| solyx | tool:draft | kept | Generic: a call shows while its arguments stream. |
| both | tool:start | kept in chia's shape (label, tier, args); solyx's parentToolCallId dropped | Nested calls (code mode) are not in this milestone. Emitted from the stored reply, so replay and live agree. |
| chia | tool:update | kept, summary renamed to output + details | chia's summary came from a per-kind summarize policy the runtime does not have; pi-durable publishes running output and details. |
| both | tool:end | merged: chia's isError + aborted became solyx's status; chia's summary and solyx's output dropped | status is one field for three outcomes; output was specific to shell and code mode. |
| both | approval:request | kept in chia's shape | A client renders the call without looking it up. solyx sent only the id. |
| both | approval:resolved | kept in chia's shape; solyx's auto dropped | The runtime has no auto-approval mode yet. |
| solyx | retry:wait, retry:end | kept, at added to retry:wait | Generic, from pi.live. |
| both | session:compacted / compacted | merged under chia's name, with solyx's messageId and at; chia's tokensBefore dropped | pi-durable writes compaction entries on its own; the entry does not record a token count. |
| solyx | compaction:start, compaction:end | kept, from pi.live.compactions and compactionFailure; compaction:end carries the failure's error | A client shows a compaction going on, and why one failed (see Compactions). |
| chia | session:rewound | dropped | Navigation and forks are not in the runtime. |
| chia | state:changed | dropped | Synced agent state is out of scope. |
| chia | error | merged into run:end (reason: "error", code, error) | In pi-durable a failure ends the run; chia's classified AgentErrorKind is replaced by pi's own reason code. |
| both | run:end | kept, reasons unified to done, aborted, error, interrupted | chia's awaiting_approval dropped: in pi-durable a run waiting for a decision is still running (its call is parked), so the view's status says it. solyx's store-failed dropped (a failed store closes the instance; streams end). turn-limit is error with code turn_limit. |
| solyx | context | dropped | Context budgets and usage ledgers are out of scope. |
| solyx | named | dropped | Title generation is out of scope. |
| runtime | stream:reset | added | A cursor storage cannot honour must be answered honestly (see Cursors). |
| runtime | queue, user's steer | added | pi-durable queues an input a busy session gets, and places a steer into the run going on; a client shows what waits and takes it back (see Steering and the queue). |
| runtime | wrapup:start, wrapup:end | added | A session that answered still runs its afterRun tasks, and refuses or holds new input meanwhile; a client shows why (see Wrap-ups). |