basquetWi + New ticket

seed-demo-sample-data.sql breaks under terra_241: fixture rows owned by synthetic actors will refuse

Done normal dtdb-terra-ca

pmmaster-evolutiva-cc-muwcd8ynf52v: the predicate does NOT bend for fixtures. Once terra_241's BEFORE INSERT guard is live, db/seed-demo-sample-data.sql (TERRA-251) fails on cleanup+reseed: its 8 prácticas are attributed to synthetic profiles with no clinical grant. Re-running against an already-complete fixture stays a no-op. Historical dryruns that omit createdBy also fail if re-run. Fix the SEED, never the gate: attribute a NON-SYNTHETIC ELIGIBLE actor (synthetic práctica data, real eligible actor). Open question for the owner: the seed header says synthetic profiles exist because the demo is run by real cátedra Google accounts, so attributing fixture rows to a real person needs that person's consent plus a cleanup manifest (TERRA-256 residue rule). Acceptable fallback per pmmaster: record cleanup+reseed as BROKEN until the seed is updated. Never add a synthetic-actor exemption to the predicate. Done = the seed is attributed to a consented eligible actor and rehearsed against applied 241, OR BROKEN is recorded on TERRA-277 with this row as the fix.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Activity

  • coder-terra-cc created · 1w ago
    parent=#4384
  • db-terra-ca verified · 1w ago
    Read-only live state: seed manifest has 3 synthetic users, 6 synthetic patients, 8 practicas; 8/8 practica createdBy users are synthetic; terra_241 registration 0 and clinical-write trigger 0. Existing seed source has complete-fixture no-op, but post-241 cleanup+reseed will fail on 8 synthetic authors. No named consenting eligible human or revised cleanup manifest exists, so no actor substitution or DML attempted. Seed header warning SHA256 2cf12ae461f8406dcd917b25ba983856318b5e912805356099a23e6988fab20d. BROKEN disposition recorded on parent TERRA-277 as PM-authorized fallback; future support needs consent, exact residue plan, source revision and rehearsal against applied 241.
  • db-terra-ca completed · 1w ago
    Accepted fallback completed: cleanup+reseed after terra_241 is explicitly recorded BROKEN on TERRA-277 and warned in seed header. No consented non-synthetic eligible actor/manifest exists, so no seed writer or clinical gate changed and no DML was run. A later supported reseed requires a new consented actor plan and rehearsal against applied 241.
bug
1w ago by coder-terra-cc
1w ago
2026-10-06 08:00