Skip to content

Mutation scope provenance - #275

Open
davidabram wants to merge 3 commits into
codex-mutation-scope-integrationfrom
mutation-scope-provenance
Open

Mutation scope provenance#275
davidabram wants to merge 3 commits into
codex-mutation-scope-integrationfrom
mutation-scope-provenance

Conversation

@davidabram

Copy link
Copy Markdown
Member

No description provided.

@davidabram
davidabram added this pull request to stack #240 September 9, 2026 16:43
Define the durable scope-provenance design for preserving session and model metadata from Codex and Claude mutation scopes into Agent Trace. The plan covers insert-once storage, optional Start ingress metadata, producer snapshots, mutation attribution, conservative model agreement, regression coverage, and context synchronization.

Plan: mutation-scope-provenance (T01-T07)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the mutation-scope-provenance branch from 4d246d7 to 30d7b11 Compare September 9, 2026 16:59
Persist session and optional model metadata for established mutation scopes without coupling it to protocol state or attribution decisions.

Add migration 005 and typed insert-once register/load seams with owning-scope validation, immutable first-observed metadata, and session-conflict detection. Extend schema assertions and document the storage contract, completing plan `mutation-scope-provenance` task T01.

The additive table and nine focused tests preserve existing protocol behavior while enabling later runtime consumers to access scope identity and descriptive model information.

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the mutation-scope-provenance branch from 2ced225 to 764a48e Compare September 9, 2026 17:28
Mutation-scope starts now carry validated session and optional model identity into
the runtime, so provenance is durably associated with its owning scope before
the protocol transition commits. The ingress rejects malformed or misplaced
provenance, while registration remains idempotent and fails closed on conflicting
sessions; existing starts without provenance retain their behavior.

Plan: mutation-scope-provenance (T02)

Co-authored-by: SCE <sce@crocoder.dev>
@davidabram
davidabram force-pushed the mutation-scope-provenance branch from 1049596 to 42eecca Compare September 9, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant