Mutation scope provenance - #275
Open
davidabram wants to merge 3 commits into
Open
Conversation
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
force-pushed
the
mutation-scope-provenance
branch
from
September 9, 2026 16:59
4d246d7 to
30d7b11
Compare
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
force-pushed
the
mutation-scope-provenance
branch
from
September 9, 2026 17:28
2ced225 to
764a48e
Compare
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
force-pushed
the
mutation-scope-provenance
branch
from
September 9, 2026 18:25
1049596 to
42eecca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.