Repository navigation
feat(pm-stack): gate the Kaneo rollback on fence + replay parity (#6816) - #14079
Merged
developing-today-fleet[bot] merged 2 commits intoNov 24, 2026
Merged
Conversation
Adds --mode rollback to kaneo-cutover.sh: refuses unless the promoted writer is fenced, exports the target delta, replays it into the source, demands exact table/row parity, and writes a receipt with no DSN. --unreachable is refused in this mode. Stub-tested (direction-aware pg_dump/pg_restore stubs); plan doc §5/§6 point at the driver. Lane any-o.
|
Warning Review limit reachedYou'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 57 minutes. View limit details
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. |
4 tasks
# Conflicts: # pm-stack/scripts/kaneo-cutover.sh
developing-today-fleet
Bot
deleted the
lane-any-o-6816-kaneo-rollback
branch
November 24, 2026 09:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Next slice of #6816 (criterion 4: rollback restores the prior writer without losing writes). The migration plan already said rollback was operator steps; this PR drives the Kaneo half with
pm-stack/scripts/kaneo-cutover.sh --mode rollback:fence-check.shwriter set — the DSN flip renames no container, so FENCED means no writer runs against either store.pg_dumpof the target into--dump-file), replays them into the source, and demands exact table/row parity afterwards (exit 4 on mismatch).--unreachable(exit 2): the writer being fenced here is local.Plan doc §5/§6 updated to point at the driver.
Evidence
Ran on the laptop at
5a1d9d649d8:bash pm-stack/scripts/kaneo-cutover.test.sh— all 20 checks pass (13 pre-existing + 7 new: refuse-unfenced, dump-target→replay-source direction, pass path + receipt, replay-mismatch exit 4, --unreachable exit 2, missing --dump-file exit 2, updated presync direction pin). Falsified first: the 3 gate tests failed with exit 2 (unknown mode) before the driver change.bash pm-stack/scripts/fence-check.test.sh— all checks pass (untouched, regression).shellcheck -S warning pm-stack/scripts/kaneo-cutover.sh— clean..github/workflows/pm-stack-tests.yml(no workflow change needed); nightly runs it.Merge Danger
Low. Two files are the cutover driver and its fixture suite (stubbed pg binaries + fixture fence state — verify the gated sequence, not a live cutover); the third is plan prose. No live store is touched by this PR; the window executes
--mode rollbackfor real later. Revertible without affecting what is there.Closes nothing — #6816 stays open: the windowed cutover itself, the DSN flip/restarts, and a true new-host drill remain.
{ "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-24T04:23:47Z", "session_id": "ses_e5df44a0e5bffee3PXx8habvbw", "lane": null, "host": "amd", "worktree": "/home/user/git/fleet/any-o-6816-rollback", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/fleet/any-o-6816-rollback", "repo": "developing-today/code", "branch": "lane-any-o-6816-kaneo-rollback", "sha": "5a1d9d649d84eb76fca125da7a18be1aa9ca469e" }, "auth_subject": "oc-code-06", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.