Repository navigation
Description
Outcome
Make a Mecatl session's lifetime independent of a client connection or any one server replica. One authoritative private committed history should support faithful model continuation, trustworthy authorized reload, shared controls, and explicit recovery when execution outcomes are uncertain.
This outcome tracks the committed-session-history and execution-kernel initiative end to end. Foundational infrastructure being merged does not mean production sessions use the new kernel.
Current state
The design, isolated history foundation, and generated persistence codecs are merged (#2179, #2639, #2651, #2660). The codec story #2662 is complete. Production sessions do not yet use the new kernel.
The isolated session story #2663 now has merged lifecycle/inspection (#2687), reusable context/rich content (#2725), passive model interactions (#2746), canonical DTO/generated-view cleanup (#2749, closing #2747), bounded structured arguments (#2756), passive tool invocation/disposition with settlement and ordinary/bulk closeout (#2755), provider-neutral logical model-request construction/reconstruction (#2793, merged 2026-11-17), independent model-usage accounting (#2841, merged 2026-11-18), and diagnostic record/commit timestamps and writer-instance metadata (#2876, merged 2026-11-19). These establish retained facts, immutable inspection, replay, exact logical-request CID verification, and replaceable best-effort usage reports, not model/tool execution or production integration. #2663 is complete for the passive isolated-session scope after explicit closure review; its experimental APIs remain evolvable and first-consumer qualification remains downstream.
Accounting is implemented, not the next design task: #2841 provides history-scoped usage identities, immutable purpose/run/request associations, and complete replaceable reports, including late reports, decreases, withdrawal/restoration, and unknown-versus-zero counters. This is best-effort showback, not chargeback, finality, automatic deduplication, or complete attempt coverage. It does not reopen execution or permit late tool dispositions.
Capture-parity reassessment for #2663 is complete: the full audit retains capture mappings and evidence, and the scope decisions and retained gap register records owners/workstreams and revisit triggers. The diagnostic record/commit timestamp and commit-only writer-instance metadata slice is merged in #2876 (92a2777f5a5051371ccd3faf92b5148e0d932b1e). It provides required diagnostic metadata and immutable inspection in the isolated kernel, not authenticated attribution, production capture, or production integration. Submitter/approver attribution, input-authority provenance and first-consumer integration proofs remain explicitly tracked, not requirements to implement everything now. The closure decision on #2663 assigns the authority/provenance contract to #2670 and verified prompt/control/approval identity supply and preservation to #2669. Reassess during client/API integration planning, or earlier if an execution consumer needs it; further postponement records a reason and next trigger in those issues, with absent provenance explicitly unknown. Richer timing/resource/deployment enrichment remains optional and consumer-driven, not promised backlog. Consult the register and owning stories when planning dependencies or reviewing this outcome for closure; this production outcome remains open. #2793's pinned-prefix reconstruction verifies the logical-request CID, not a source-record manifest; its approved experimental contracts supersede conflicting older interview details.
Storage/ownership work can proceed in parallel under #2666: the initial file backend targets local/embedded or single-host concurrent engines/processes using file locking; distributed replica ownership/fencing has a separate design workstream. Native subissues carry the detailed scope. Local storage locking is not evidence of distributed execution fencing.
Delivery tracking
Use this outcome's native sub-issues as the source of truth for story scope, acceptance criteria, dependencies, and delivery status. Keep their native list in logical delivery order, with foundational work first and production-cutover qualification last; this ordering is not a commitment to a strictly serial schedule. Link implementation PRs to their owning story; do not mirror story checklists, project statuses, or PR review/CI state in this description.
The early delivery spine is codecs → session aggregate → isolated executable kernel → recovery qualification. Production storage, request fidelity, views, controls, governance, and delegation need coordinated scoped plans; they are not a frozen serial implementation schedule. #2672 integrates and qualifies those contracts before any separately approved cutover. The outcome's November 2026 bucket does not assign new dates or promise that every child is delivery-ready this month.
Completion criteria
- Production continuation and authorized client history derive from accepted committed facts, rather than competing snapshot/activity/live-stream authorities.
- Required acceptance gates precede dependent execution; accepted intent alone is not final execution admission.
- A client can reload a pinned authorized view and follow subsequent accepted changes without a silent gap; private provider continuation is not exposed as public history.
- Recovery reconstructs accepted state without model requests, tool execution, hook execution, or automatic repetition of possibly effectful work. Interrupted and unknown outcomes are represented honestly.
- Production storage durability and writer-ownership guarantees are explicit and tested; the in-memory backend is not evidence of crash durability or distributed fencing.
- Production integration and any wire, Go API, or stored-data breaks have their own compatibility assessment and explicitly approved rollout. The design proposes a separate storage/protocol cutover, not implicit migration or mixed-version compatibility.
Scope boundaries
The current work is isolated from production execution. Planned compatible-replica handoff preserving an active run and delegation tree, autonomous continuation, cross-run background execution, historical forks/rewind, and networked extensions are later capabilities, not prerequisites for closing the initial production-cutover outcome. Portable history alone does not deliver them.
The earlier canonical-identity/private-replay stack (#2404, #2405, #2406, #2407) is related design and implementation context, not a claim that those PRs are merged, qualified with this kernel, or automatically included in this outcome's delivery scope.
Design references
These are design proposals, not documentation of current production behavior:
Tracking convention
Track this outcome under Epic: Mecatl (November 2026) on the Stacklok project. Track independently deliverable stories and tasks as native sub-issues, with PRs linked to their owning issue. Keep local implementation, merged infrastructure, and production availability distinct. Do not close the outcome from an infrastructure PR; close it only when the production completion criteria are met. Dates and prioritization require an explicit planning decision.
Activity