Skip to content

Stage 5: Dual-write live report and simulation updates into run tables #3438

@anth-volk

Description

@anth-volk

Stage 5 of the report-output migration.

Scope:

  • dual-write live simulation create/update traffic into
  • dual-write live report create/update traffic into
  • keep parent pointers in sync (, )
  • lazily bootstrap missing run/spec state so stage 5 can operate before stage 4 has fully backfilled history
  • keep legacy API behavior and response shapes stable during the overlap period

Non-goals:

  • stage 6 read cutover
  • stage 8 rerun rewrite

Acceptance criteria:

  • legacy POST/PATCH traffic updates both parent rows and run rows
  • existing-row POST paths also repair missing dual-write state
  • wrong-country report access is rejected correctly
  • dual-write sync is transactionally coupled to parent-row writes
  • report-side sync also bootstraps linked simulations so logical report state stays coherent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions