You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(reader): identity-preserving marks and annotations across reimport #1114
#867 AC includes "User metadata survives reimport where identity evidence is available." The current substrate has two parallel systems:
conversation_user_metadata (keyed by identity_key in polylogue/storage/sqlite/schema_ddl_identity.py) — tags/summaries survive soft-delete + reimport.
user_marks / user_annotations (keyed by conversation_id in polylogue/storage/sqlite/schema_ddl_archive.py, with ON DELETE CASCADE) — die when the conversation row is replaced.
This means marks/annotations are lost on reset-then-reimport, which violates the AC.
Scope
Choose one of:
Migrate marks/annotations to identity-key-keyed storage (analogous to conversation_user_metadata) so identity-ledger lookup resolves them back to the current conversation_id at query time.
Hook the reset/reimport path so it walks identity_ledger and rewrites mark/annotation conversation_id / message_id after the new conv lands.
Option 1 is structurally cleaner; option 2 is less invasive. Pick during design.
Activity
feat(reader): identity-preserving marks across reimport (#1114) (#1188)
fix(tests): repair master drift from schema v15→v17 changes (#1208) (#…