GeezerVison is showing github.com — pm-stack: require a fresh verified backup before Kaneo promotion by developing-today-fleet[bot] · Pull Request #14034 · developing-today/code
Conversation
Summary
- Require
kaneo-cutover.sh --mode promote to receive the latest backup run record and reject incomplete, unverified, stale (>36h), or future-dated restore points before querying either database.
- Require a valid archive SHA-256 and verified local, R2, and Drive copies; include the accepted restore-point timestamp in the cutover receipt.
- Add fixture coverage and update the migration plan and cold-restore runbook. The existing pm-stack CI workflow already runs the cutover suite.
Evidence
- Before: promotion required writer fencing and exact source/target table+row parity, but did not gate on a verified backup restore point.
- After:
bash pm-stack/scripts/kaneo-cutover.test.sh proves promotion refuses incomplete and 37-hour-old records before database access; fresh complete record passes alongside fencing and parity.
bash pm-stack/scripts/fence-check.test.sh, git diff --check, shellcheck -S warning ..., and Python syntax compilation passed locally.
- Evidence level: ran on the laptop at
388d6dd1253; fixture-backed checks only, no live database or services touched. Remote Fleet dispatch is in progress.
Merge Danger
Shell/Python gate and docs only. The 36-hour default matches host-health backup staleness; it does not claim the outstanding 1-hour Kaneo RPO is met. The cutover remains a scheduled window and the live migration is not performed here.
Refs #6816, #3989
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T02:53:14Z",
"session_id": "ses_e5df4934c72ffeZaQI37ZXYMYS",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/code-i-3989-backup-gate-20261124T024442Z-5c01c2dc",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/code-i-3989-backup-gate-20261124T024442Z-5c01c2dc",
"repo": "developing-today/code",
"branch": "code-i-3989-backup-gate-20261124",
"sha": "909668a1a8967c08f8603c8d5b16d89332faeded"
},
"auth_subject": "oc-code-05",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
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:
55f68af5-7309-4c17-81bd-893ae075b8b6
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
# Conflicts:
# pm-stack/scripts/kaneo-cutover.sh
# pm-stack/scripts/kaneo-cutover.test.sh
|
PR-SWEEP (xaltha, queue task 23152, 2026-11-24): main merged in, conflicts resolved, verification re-dispatched.
- Merged
origin/main (66858a2) into this branch — merge commit d56239aee, fast-forward push, no force push. Conflicts only in pm-stack/scripts/kaneo-cutover.sh and kaneo-cutover.test.sh, as the sweep packet predicted.
- Resolution preserves both sides: the PR's backup-freshness gate (
--backup-record-file / --max-backup-age-hours, restore-point check before any database access, backup tests) and main's rollback mode (--unreachable refused in rollback, rollback tests). Diff vs current main is again exactly this PR's 5 files.
- First remote verification (fleet-command run 45452671297,
bash pm-stack/scripts/kaneo-cutover.test.sh): all backup-gate and rollback checks passed; 2 failures were stale log expectations in the merged test file (main expected only pg_dump:source pg_restore:target, the merged script also logs psql psql parity counts). Fixed in 88f8c7a58.
- Re-verification run 45455259648 was still in progress at this lane's cutoff (runner congestion). Do not merge until that run is green; then merge and record the disposition on Open-PR clearance programme 2026-11-24: every open PR merged, fixed+merged, or tasked #14166.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
developing-today-fleet Bot
pushed a commit
that referenced
this pull request
Nov 27, 2026
grist-pad-sync.sh --mode final now carries the same consumer gate
kaneo-cutover.sh promote gained in #14034: the latest backup record
must describe a complete generation with verified local, R2, and
Drive copies finished within 36h (override via
--max-backup-age-hours for a documented window decision), checked
via restore-point-check.py before any copy runs. Refusal is exit 3
with a REFUSED receipt naming the restore point and copies nothing;
--backup-record-file is required for final (exit 2 otherwise).
Receipts record the restore-point check output on final.
Issue #3989 (slice): after this PR, a fenced Grist/Pad final with a
stale or unverified backup generation refuses instead of syncing.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|