Skip to content

impl(pm-stack): Kaneo/Grist/Pad canonical stores to Supabase-backed homes + cold-restore runbook and first laptop-off drill (#3989 slice) #6816

Open

Description

@developing-today

Slice of #3989, routed by lane code-n triage 2026-11-07 (see the ownership-map comment on #3989).

Kaneo (Postgres), Grist, and Pad still keep their canonical stores in laptop Docker volumes (pm-stack_postgres_data, grist_grist_data, pad_pad_data). Drew's #1258 rulings (2026-11-03): all PM-stack state to Supabase muse-dev2, nothing laptop-only; failover posture is a tested cold restore within 4h (no warm standby); backups local+R2+Drive, daily 30d / monthly 12mo (routine owned by #1514, empty-generation handling by #3869 — consume, do not duplicate).

Acceptance criteria:

Activity

  1. added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Nov 7, 2026
  2. dezren39 commented on Nov 7, 2026

    @dezren39
    Member

    Intake review

  3. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · picked up

  4. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 8, 2026
  5. 50 remaining items

  6. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 Agent note · triaged (bulk-intake concurrence) — step 1 (plan + runbook) landed via PR #8072; cutover waits on the #1752 end-state decision

  7. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 Agent note · correction to the triage note above (task 18506)

  8. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 Agent note · state: picked up

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 Agent note · triaged (done — no new packet)

  10. removed their assignment
    on Nov 20, 2026
  11. added a commit that references this issue on Nov 23, 2026
  12. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    agent-note:v1 — Lane CW (archer) criterion-3 slice landed via PR #12824 (merged 2026-11-23T03:24:19Z, merge 78a96967f1).

    Premise check (fresh this pass): issue open; canonical stores still laptop-local — verified live: containers pm-stack-kaneo-1, pm-stack-postgres-1, pm-grist, pm-pad up; volumes pm-stack_postgres_data, grist_grist_data, pad_pad_data present. No live claim covered this slice (last notes were the 2026-11-17 triages). The #1752 end-state decision stands answered (Option A, 2026-11-08), so no decision gate remains.

    What landed:

    • Runbook moved to the criterion-named home doc/pm-stack/COLD-RESTORE-RUNBOOK.md (pointer stub left at pm-stack/COLD-RESTORE-RUNBOOK.md); status DRAFT → operative for the pre-cutover shape; drill-record path corrected to doc/pm-stack/restore-drills/.
    • First isolated restore rehearsal executed and recorded — doc/pm-stack/restore-drills/2026-11.md, repeatable driver pm-stack/scripts/restore-rehearsal.sh. Restored the pm-stack databases (Kaneo Postgres, Grist, Pad) have no backup routine — docker volumes are the only copy #1514 daily generation of 2026-11-22 into scratch containers (production untouched): Kaneo pg_restore exit 0, 45 public tables / 90,139 live rows, app /api/health 200; Grist integrity_check ok + HTTP 302; Pad integrity_check ok + /api/v1/health 200. Data-plane restore ≈36 s (Kaneo 19 s, Grist 12 s, Pad 4 s).

    Criterion state after this slice:

    Measured gap recorded in the runbook + drill record: the Kaneo 1 h RPO target is not achievable pre-cutover — the daily #1514 dump cadence bounds worst-case Kaneo loss at ~24 h; the 1 h target becomes reachable only when criterion 1 lands Kaneo on Supabase. Also found: Kaneo app boot requires AUTH_SECRET in addition to DATABASE_URL (runbook step 6 now names it).

    Next slice: the cutover window itself, or an off-machine-source rehearsal (pull the same generation from R2) as the step before the laptop-off drill.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    agent-note:v1
    event: pointer — the first laptop-off drill (this issue's criterion 3 drill leg) was executed under #10300
    by: agent felix (kind muse, Muse sandbox seat), lane under Felix
    at: 2026-11-23

    The cold-restore drill was run end-to-end from off-machine copies only (R2 primary, Drive verified byte-identical by stored MD5) into an isolated namespace, production fenced throughout (evidence in the record). Measured RTO 145 s vs the 4 h core target; Kaneo RPO 20 h 47 m (miss vs 1 h — closes only with this issue's criterion 1), Grist/Pad RPO 20 h 29 m (met vs 24 h), aggregator 20 h 40 m (miss vs 15 min, #6815). Record: PR #13025, appended to doc/pm-stack/restore-drills/2026-11.md. The drill ran as a simulation on the laptop's Docker — no second Docker host exists on this seat, so true new-host provisioning time remains unmeasured (named in the record). This issue's Supabase cutover criteria are untouched by the drill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codedesign/pm-data-migrationsDesign: pm-data-migrations - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insepic/pm-stackReprioritization program epic (2026-11-12)kind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilot

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions