Repository navigation
Description
Outcome
A continued session uses the effective logical model inputs and compatible private provider state that were actually accepted, not a reconstruction from today's templates, defaults, tool catalog, or argument normalization.
Parent: #2659.
Scope
Integrate production request preparation/provider boundaries with the session-owned records established earlier. Capture completed effective logical requests and responses, exact argument/order-sensitive representation, system/message/tool/settings layers, identities and provider bindings, opaque signed/encrypted replay, completed display reasoning, and attributed usage. Keep schema interpretation with its owner and private continuation out of public projections.
Acceptance
- Real request-factory/adapter tests show that recorded inputs are the final logical request after transformations, not an earlier approximation.
- Restart/reconstruction preserves representation-sensitive arguments, historical layers/settings/tool definitions and compatible replay without consulting current configuration or rerunning hooks.
- Completed model responses/requested calls and required replay are accepted before dependent tool work; required effective logical input is accepted before submission.
- Opaque provider payloads round-trip without kernel interpretation, coercion, or exposure through client history/debug projections.
- Credentials and unreleased output/payload-bearing hook evidence cannot enter these records, checkpoints, receipts, or diagnostics as a capture side channel.
- Usage remains attributed and reportable even without a completed model response; provisional streaming deltas are not promoted into authoritative history.
- Offline provider/composition tests cover replay compatibility, privacy failures, malformed/bounded payloads, and changed current configuration after reload.
Dependencies and boundaries
The isolated construction foundation is merged in #2793 (91e3155236feb5dd684f0f6bf51e805cad1d30a4): modelrequest builds owned provider-neutral requests, retains reconstruction recipes and verifies canonical logical-request CIDs from original prefixes/runs. It includes typed settings, original provider call IDs, keyed standing instruction contributions and explicit private-replay selectors. Reuse those contracts, but qualify the actual production factory/provider mapping here. A logical CID is not raw wire equality, proof of sending or proof that a private envelope is compatible. Adjacent plain text is coalesced within retained boundaries; adapter mapping must not assume arbitrary provider block segmentation is equivalent. Independent accounting is also merged in #2841 (a65a05ca760afa682876ec404cc0fc3a8088abd8): reuse history-scoped usage identities, fixed purpose/run/request associations and complete replaceable reports, including after failures or run end. Best-effort showback is not billing finality or complete attempt coverage. No acceptance checkbox above is completed merely by these isolated foundations; this story still owns production capture and adapter fidelity. The 2026-11-18 capture-parity audit records the missing integration proofs and deferred enrichment; #2663 retains the initial-contract/closure scope decisions, not unfinished accounting design.
Build on session records and the executable kernel; integrate with production persistence and the governance/disclosure story. The session story owns initial value/record contracts; this story owns production factory/provider fidelity. No raw HTTP-byte equality or provider-cache-hit guarantee, new provider model, credentials capture, richer-media framework, or automatic adoption of the earlier #2404–#2407 stack. Assess Go/stored/wire compatibility before integration.
Design context: model continuation.
Activity