Skip to content

docs(pm-stack): runbook to doc/pm-stack + first restore rehearsal record (#6816) - #12824

Merged
dezren39 merged 1 commit into
mainfrom
lane-cw/6816-runbook-rehearsal
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-cw/6816-runbook-rehearsal

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

Criterion-3 slice of #6816 — the runbook half of the criterion now passes, with measured rehearsal numbers:

  • Runbook moved pm-stack/COLD-RESTORE-RUNBOOK.md → doc/pm-stack/COLD-RESTORE-RUNBOOK.md (the home the acceptance criteria name); pointer stub left at the old path. Status DRAFT → operative for the pre-cutover shape; drill-record path corrected to doc/pm-stack/restore-drills/.
  • First isolated restore rehearsal executed + recorded (doc/pm-stack/restore-drills/2026-11.md), restoring 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)
  • Repeatable driver (the test): pm-stack/scripts/restore-rehearsal.sh.

Gaps recorded, not papered over

Refs #6816.


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ord (#6816)

Criterion-3 slice of #6816 (feature-slice: one criterion part passes,
measured numbers move, with its test):

- Move the cold-restore runbook from pm-stack/ to doc/pm-stack/, the
  home #6816's acceptance criteria name; pointer stub left at the old
  path so existing links (STORE-MIGRATION-PLAN-6816.md) keep resolving.
  Status updated from DRAFT to operative-for-pre-cutover-shape;
  drill-record path corrected to doc/pm-stack/restore-drills/.
- First isolated restore rehearsal executed 2026-11-22 against the
  #1514 daily generation of 2026-11-22 and recorded in
  doc/pm-stack/restore-drills/2026-11.md: pg_restore exit 0 (45 public
  tables, 90,139 live rows), Grist + Pad integrity_check ok, all three
  apps smoke-passed in scratch containers (Kaneo /api/health 200,
  Grist HTTP 302, Pad /api/v1/health 200); data-plane restore ~36s.
- Measured gaps recorded, not papered over: Kaneo 1h RPO is NOT met
  pre-cutover (daily dump cadence bounds loss at ~24h; met only once
  criterion 1 lands Kaneo on Supabase); Kaneo app boot needs
  AUTH_SECRET as well as DATABASE_URL (runbook step 6 now says so);
  off-machine sources (R2/Drive) and the laptop-off drill itself are
  still owed on #6816.
- Repeatable driver: pm-stack/scripts/restore-rehearsal.sh (the test
  this slice ran; bash -n clean, executed end-to-end 2026-11-22).
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 03:24
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2e1530c2-5eca-456d-905f-77c112cb2377
Commits

Reviewing files that changed from the base of the PR and between 311c4a8 and f2d27cf.

Files selected for processing: 4

  • doc/pm-stack/COLD-RESTORE-RUNBOOK.md
  • doc/pm-stack/restore-drills/2026-11.md
  • pm-stack/COLD-RESTORE-RUNBOOK.md
  • pm-stack/scripts/restore-rehearsal.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant