Skip to content

Track remaining #98 state-kernel scope: warm-runtime process state, generated-runtime state mounting, budgets, lifetime visibility #233

Description

@ScriptedAlchemy

Readback audit of origin/main @ 72c3b38f9eeafa0a8e762c413960f5d34cf18946 found that #98 was closed after the durable node:sqlite slice (#142/#149/#154) while the rest of its scope is neither delivered nor tracked. #107's Wave-3.5 comment records "#98 delivered", and #98 itself carries no deferral comment, so these holes are currently invisible:

Untracked remainder

  1. Warm-runtime process state never mounted. meta-framework: execution plan and sequencing #107 revision 2's dependency graph specifies "Provide an optional durable Agent state kernel #98-v1 (lifetime taxonomy + node:sqlite driver; process state rides the warm runtime)" and "Provide an optional durable Agent state kernel #98's process state consume it (wave 4+)". On main, createWarmFlightHost owns no state (packages/rsc-runtime/src/warm-runtime.ts:73-92) and createMemoryStateDriver is exported (packages/rsc-runtime/src/state/index.ts:59) but has no production caller — only tests construct it. Restart/multi-instance process-state proofs do not exist.

  2. Generated bundles cannot mount state at all. Every generated invocation path calls runAgentRequest without a state handle:

    • tool path: renderGeneratedRoute, packages/agent-bundle/src/mcp-server-runtime.ts:146-149
    • event path: packages/agent-bundle/src/mcp-server-runtime.ts:438-459
    • generated worker scope: packages/agent-bundle/src/build/entry-shell.ts:456-462

    So (await agent()).state is unavailable in every compiled bundle; the kernel is reachable only by embedders who wire a driver into runAgentRequest themselves (as examples/rsc-agent-runtime does).

  3. Kernel-contract budgets absent. The body requires cancellation, size, time, and retention budgets; the public definition contract exposes no such policy (packages/rsc-runtime/src/state/contract.ts:117-131) and nothing under packages/rsc-runtime/src/state/ implements retention.

  4. Lifetime visibility absent. The body requires inspect/Workbench to expose effective lifetime and runtime-instance identity; no state-lifetime projection exists under packages/agent-bundle/src/ or packages/workbench/src/.

Suggested disposition

Either reopen #98 for the remainder, or treat this issue as the tracker. Item 2 pairs with the same mounting hole for notices noted on #99 (generated request scopes pass neither state nor noticeLedger), so one "generated-runtime request-scope mounting" lane could cover both.

Refs: #98, #99, #107 (cluster: #93#108).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions