Skip to content

Keep record threads attached across source refreshes - #1183

Closed
max-sixty wants to merge 2 commits into
mainfrom
codex/issue-1146-record-identity
Closed

max-sixty wants to merge 2 commits into
mainfrom
codex/issue-1146-record-identity

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Threads on rows projected from a bound data source became outdated on every source revision, even when the row retained its declared record key. This change lets a thread follow that key across revisions while retaining the original source revision in the event. Projection keys without declared record identity remain revision-scoped.

The projection stamps record provenance only for keys present in the bound source's declared records. Anchor resolution, keyed drafts, and reaction chips use that identity; the append door validates the record claim. Visual Review now declares its stable case IDs as records. The code marks this identity boundary experimental and open to change as other source shapes need stable attachment.

Closes #1146.

This was written by Codex on behalf of max-sixty

Follow a projected row across data revisions only when the bound source declares its record key. Preserve the original source revision, keep keyed drafts and reactions attached, and validate record claims at admission. Visual Review now declares its stable case ids as records. Unkeyed data and other projections remain revision-scoped. Mark this identity boundary experimental and open to change.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The records.key declaration does not establish the identity this change needs. projectData stamps it only when the projected keyOf(record) equals that field, and resolveAnchor still finds the next datum by the old rendering key. If a producer changes that key while retaining the same subject, its thread becomes outdated instead of following the subject. #1184 addresses the same issue with an explicit subject identity independent of the rendering key and overlaps this identity pipeline. I would close #1183 in favor of that approach.

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.

A thread on a keyed datum falls out of its row whenever the source is replaced

2 participants