docs: guard legacy persistence races

This commit is contained in:
Jesse_Chen
2026-07-19 07:08:22 +08:00
parent 723d05c623
commit cba3ba0094
@@ -887,6 +887,10 @@ Task 6:
service-role `create_birth_time_dynamic_case` RPC; never use separate inserts.
- Apply protocol isolation to every legacy guided mutation and scoring-poll path, not only
question/evidence actions.
- Add ordered protocol-guard migrations for existing legacy scoring/candidate RPCs: public
signatures stay stable, internal bodies are not executable by API roles, and service-role
wrappers owner-lock and verify `legacy-guided-v1` atomically. Direct legacy PostgREST writes
include the same protocol predicate.
- Parse external rows into a strict `journeyProtocol`-discriminated stored-case union; normalize
absent old protocol values to legacy at the loader boundary.
- Make memory replay return the stored advanced state. Map supported unknown time ranges to the