<aside> 🚧

Scope: global-working-memory · Lane: P0-2 / BUILD_01 · Status: ACTIVE / B02.1_MERGED / B02.2_MERGED / PROD_D1_VERIFY_BLOCKED / SITES_AUTH_REQUIRED · GitHub main: f7318032c159c1fed1b4f70d17042a227191db84 · Primary identity: execution_id + scope_key + capability_id

</aside>

Objective

Make execution history survive process restart and become a durable, inspectable spine connecting workflow state, events, provenance, artifacts, approvals, receipts, and the operator-facing Execution Room.

Repository inspection at entry shows the LIVE WorkflowExecutionKernel currently holds executions, events, and provenance in process-memory maps. The repository already includes a Cloudflare D1/Drizzle adapter, but the deployed hosting configuration currently has no D1 binding. P0-2 must therefore add durability without falsely relabeling session memory as persistent storage.

Ordered build

  1. B02.1 — Durable identity + schema + store contract
  2. B02.2 — Kernel/API persistence and restart-safe read path
  3. B02.3 — Execution Room 01 over one real durable execution
  4. B02.4 — Refresh/reopen, binding, mode, authority, and fallback acceptance gate

B02.1 — Durable identity + schema + store contract

Required identity

Every durable execution record is bound to:

Secondary lineage retained when present: