Archive v0.6: catalog change detection and identity drift - #21
Merged
Merged
Conversation
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.
Goal
Detect source-backed catalog identity changes without rewriting canonical history.
v0.6 builds on the v0.5 source/identity timeline and derives explicit Before → After transitions from chronological identity facts.
Derived drift model
Migration
0008_catalog_identity_drift.sqladds the read model:It derives two change types:
alias_target_changedexecution_binding_changedRepeated identical observations remain provenance but do not emit drift.
Execution-binding replacement is recognized only when the predecessor was explicitly closed and ended no later than the successor begins. Parallel routes are not automatically treated as replacement drift.
Historical invariants
v0.6 strengthens catalog history:
alias_resolution_eventsbecome append-only;First-party identity observer
Adds:
The observer:
A generic
catalog-admin observe-first-party-identityCLI exposes the same primitive for cron/collector workflows without opening a catalog-write HTTP API.Public Archive
Adds:
Public drift records contain Archive-safe source summaries only. Raw observation JSON and Source Record metadata remain private.
Model Detail also includes
identityDrift.Web
Adds public
/changes:Model Detail embeds relevant drift transitions and links to the global feed.
The UI does not assign severity, infer provider intent, or treat identity drift as evidence of behavioral improvement/regression.
Integration coverage
Catalog integration tests verify:
Persistence integration verifies: