Skip to content

feat(runtime): agent process runtime — persistent records, lifecycle, and verb pack - #1700

Merged
ohdearquant merged 2 commits into
mainfrom
feat/agent-runtime
Aug 4, 2026
Merged

feat(runtime): agent process runtime — persistent records, lifecycle, and verb pack#1700
ohdearquant merged 2 commits into
mainfrom
feat/agent-runtime

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Implements the agent process runtime per ADR-142: persistent agent records in a runtime-owned table (enum-checked columns; partial unique indexes for one-non-terminal-per-provider-session and per-owner idempotency), shared types in khive-types and the AgentStore trait in khive-storage (matching GraphStore/NoteStore/EventStore convention), a single normative transition function covering every row of the lifecycle table including no-op and illegal-transition arms, canonical spawn fingerprinting, and the khive-pack-agent verb pack (agent.spawn/observe/suspend/resume/kill) whose handlers delegate all legality decisions to that one transition function.

Testing: 10 store tests (including the actor-scoped idempotency pair test and provider-session uniqueness incl. suspended holders), 27 lifecycle tests (every transition-table row; mutation-checked — inverting the five no-op/error rows reddens exactly the five predicted tests), 7 pack integration tests through a real VerbRegistry dispatch, plus doc builds clean under -D warnings. Full workspace check passes.

… and verb pack

Implements the agentic process runtime: a runtime-owned agents table with
enum-checked state columns and partial unique indexes enforcing one non-terminal
record per provider session and per-owner idempotency keys; shared AgentState/
TerminalReason/AgentRecord types in khive-types and the AgentStore trait in
khive-storage following the existing store-trait convention; a single normative
lifecycle transition function with per-row tests including explicit no-op and
illegal-transition arms; canonical spawn fingerprinting (ordered-key JSON,
BLAKE3); and the khive-pack-agent verb pack exposing agent.spawn/observe/
suspend/resume/kill, with handlers delegating all legality decisions to the
one transition function. 44 new tests across the five crates.
@ohdearquant
ohdearquant marked this pull request as ready for review August 4, 2026 14:25
@ohdearquant
ohdearquant merged commit eed05e8 into main Aug 4, 2026
27 checks passed
@ohdearquant
ohdearquant deleted the feat/agent-runtime branch August 4, 2026 14:35
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