GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fence(kaneo): pin pm-kaneo.service+timer in the failover fence (#3989) by developing-today-fleet[bot] · Pull Request #15986 · developing-today/code

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 27, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

Closes no issue; next slice of #3989 (criterion 3: the old writer is fenced before failover promotion).

The Kaneo compose stack is managed by the pm-kaneo user service and its 30 min retry timer (deploy.sh runs compose up). fence-check.sh covered the kaneo/postgres containers but no manager unit, so containers-stopped reported FENCED while the manager could revive the writer on its next run or timer elapse — the promote gate would pass against a live writer. Stores all/kaneo now require pm-kaneo.service and pm-kaneo.timer inactive; runbook step 1 and STORE-MIGRATION-PLAN-6816.md §3 name the stop order.

Evidence

Before (base origin/main, manager service active, all containers stopped) — the hole:

$ bash fence-check-base.sh --store kaneo --units-dir $FIX/units --containers-file $FIX/containers.txt
FENCED: no writer container running and no writer unit active   # exit 0 — wrong

After (this branch, same fixtures):

$ bash pm-stack/scripts/fence-check.sh --store kaneo ...
UNFENCED: old writer still active - unit:pm-kaneo.service — stop it before promotion (runbook step 1)   # exit 1
UNFENCED: ... unit:pm-kaneo.timer ...   # service stopped, timer armed — exit 1
FENCED: no writer container running and no writer unit active   # fully fenced — exit 0

Suites (sandbox, fixture/stub mode only — no docker, no live host):

  • pm-stack/scripts/fence-check.test.sh: all checks passed (13 existing + 3 new)
  • pm-stack/scripts/kaneo-cutover.test.sh: all checks passed (fixtures extended with the two units)
  • pm-stack/scripts/grist-pad-sync.test.sh: all checks passed (uses --store grist|pad, unaffected)
  • pm-stack/scripts/ownership-map.test.sh: suite passed

Merge Danger

Low. Fail-closed direction only: previously-FENCED states with a live manager now report UNFENCED. Any operator flow that relied on containers-only fencing for Kaneo (cutover promote/rollback via kaneo-cutover.sh) must now also systemctl --user stop pm-kaneo.service pm-kaneo.timer first — that is the documented step 1 order. Grist/Pad paths are untouched (--store grist|pad writer sets unchanged). Live systemd behavior (user-bus reads) is not exercised here; the laptop lane or nightly pm-stack-tests.yml covers it.

{
  "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-27T07:12:36Z",
    "session_id": "ses_e5de43207caffeyUkhxYf67B4d",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/code-h-3989-20261127T070505Z-a70238af",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/code-h-3989-20261127T070505Z-a70238af",
      "repo": "developing-today/code",
      "branch": "code-h/3989-pm-host-portability",
      "sha": "246eba2da3f547e5ff0e1ba4e352a7f8d2263036"
    },
    "auth_subject": "oc-code-03",
    "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.

All reactions
@dezren39
fence(kaneo): pin pm-kaneo.service+timer in the failover fence (#3989)
246eba2
The Kaneo compose stack is managed by the pm-kaneo user service and its
30 min retry timer (deploy.sh runs compose up). fence-check covered the
kaneo/postgres containers but no manager unit, so a stopped-container
state reported FENCED while the manager could revive the writer on its
next run or timer elapse -- the promote gate would pass against a live
writer. Stores all/kaneo now require pm-kaneo.service and pm-kaneo.timer
inactive; runbook step 1 and the migration plan name the stop order.
New fixture tests prove the hole on the old rule and the refusal on the
new one.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

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: 2c6e9488-292b-4d07-860e-ecc5d953ad1b

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:

  • Trigger review
  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
impl(pm-stack): move stateful services off the laptop and prove host failover #3989
Open
7 tasks
@developing-today-fleet

developing-today-fleet Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Lane 0107-F (charlie ADVANCE, verify-then-merge): claim-scan clean (no lane-log/lane-failures claim; sole prior comment CodeRabbit skip 7212251769; 0 reviews). Body + full diff read (161 lines, 5 files: fence-check.sh writer-unit set, fence-check.test.sh +3 oracle checks, kaneo-cutover.test.sh fixtures, runbook + migration plan docs — matches body, not docs-only). No passing run on exact head 246eba2 (code Actions 0, dezren39/fleet 0, developing-today/fleet 0; check-runs CodeRabbit/Proof skipped only). Dispatching ONE fleet-command run pinned to exact head, command: bash pm-stack/scripts/fence-check.test.sh && bash pm-stack/scripts/kaneo-cutover.test.sh && bash pm-stack/scripts/grist-pad-sync.test.sh && bash pm-stack/scripts/ownership-map.test.sh (dispatch_id 0107F-15986). Merge follows only on success + fresh OPEN/non-draft/CLEAN/MERGEABLE. Key: 0107-F

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot merged commit 7122952 into main Nov 27, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot deleted the code-h/3989-pm-host-portability branch November 27, 2026 07:32
@developing-today-fleet

developing-today-fleet Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

MERGED by lane 0107-F (charlie ADVANCE, verify-then-merge) — merge commit 7122952, merged_at 2026-11-27T07:32:45Z, verified MERGED by second read (gh api pulls: state=closed, merged=true, head unchanged 246eba2).

Evidence (firsthand, gh CLI only): body + ALL comments (sole CodeRabbit skip 7212251769; 0 reviews, 0 review comments) + full diff read (161 lines, 5 files, matches body, not docs-only). Dispatched ONE fleet-command run 45958122744 https://github.com/dezren39/fleet/actions/runs/45958122744 (dispatch_id 0107F-15986, ref pinned to exact head) — completed SUCCESS; Linux job 140369310938 log: "Target HEAD: 246eba2" exact, and all four suites passed: fence-check.test.sh: all checks passed / kaneo-cutover.test.sh: all checks passed / grist-pad-sync.test.sh: all checks passed / ownership-map suite passed. Fresh pre-merge read: OPEN/non-draft, mergeable=true, mergeable_state=clean at exact head. Key: 0107-F

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
impl(pm-stack): Kaneo/Grist/Pad canonical stores to Supabase-backed homes + cold-restore runbook and first laptop-off drill (#3989 slice) #6816
Open
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.