Skip to content

Establish and exercise the first commit-gated model execution boundary #2891

Open

Description

@jbeda

Parent: #2664.

Outcome

One deterministic model interaction executes through the actual isolated kernel, establishing the first reviewed boundary between session state, coordination, and execution.

Scope and contracts

Reuse existing session/history and provider-neutral modelrequest contracts. Settle only the responsibility split and execution seam needed for this interaction: request construction and accepted commitment, final invocation admission, completed response capture, and submission ownership. Keep accepted commitment distinct from final invocation authorization or proof of sending.

Before implementation, review proposed ownership, dependencies, identity/correlation, detached input/output lifetimes, failure handling, and ordering. Review new or materially changed public contracts before adding their consumers. Choose package placement in that review, preserving the passive packages' responsibilities and inward dependency direction; this issue does not prescribe a package layout or a general executor API.

Acceptance

  • An offline deterministic executor receives a request constructed through the existing modelrequest path; its completed response becomes accepted session history through the real composition.
  • Rejected or uncertain prerequisite acceptance prevents invocation and accepted-state advancement; executor counts provide a negative control. Completed outcomes do not authorize downstream work before required acceptance.
  • Final execution admission is explicit and distinct from accepted commitment; request identity alone grants no invocation authority.
  • Submission ownership preserves one unresolved append batch per history. A retry of uncertain acceptance retains the original proposal identity and does not repeat external execution.
  • Inputs and completed outputs have explicit ownership; mutation or reuse by an executor cannot silently alter retained facts.
  • The introduced contracts receive coherent review before consumers, are documented beside their owning code, and are exercised at the actual execution boundary.

Dependencies and exclusions

Prerequisite: #2761 supplies SessionGroup lease contracts, supervised local admission and the fixed two-history in-memory atomic-fencing proof. Reuse those reviewed contracts rather than create a competing ownership mechanism. It does not require waiting for catalog lifecycle #2903 or concrete deployment provider #2904; neither this model interaction nor the memory proof qualifies distributed execution.

Builds on completed #2663, including #2793 and #2841; reuse existing usage accounting for any reports this slice receives rather than inventing another accounting path. It does not qualify all failure/retry usage capture.

No tools, general scheduler, production entry-point changes, provider SDK machinery inside passive kernel packages, streaming-delta persistence, production governance integration, or full interruption recovery. Basic acceptance safety is required here, not deferred to a later child. Cancellation/storage-wait stress qualification is a later slice, not permission to bake in contradictory ordering contracts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions