Skip to content

pm-stack: prevent claimant startup from primary clone - #16932

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
oc-code-06/8170-prevent-primary-clone
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
oc-code-06/8170-prevent-primary-clone

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Refuse claimant startup from the resolved primary clone before loading task code.
  • Emit a pm-git-sync alert each cycle when another registered worktree holds main.
  • Add regressions for startup refusal, clean-worktree launchability, and sync visibility.

Verification

  • python3 -m unittest -v test_claimant.PrimaryCloneStartupTests
  • bash pm-stack/scripts/pm-git-sync-quarantine.test.sh

Closes #8170

{
  "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-29T18:36:19Z",
    "session_id": "ses_e5dd7751d27ffeNu9boSeDJqgS",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/oc-code-06-8170-20261129T102436Z-b0342c0b",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/oc-code-06-8170-20261129T102436Z-b0342c0b",
      "repo": "developing-today/code",
      "branch": "oc-code-06/8170-prevent-primary-clone",
      "sha": "62498794c81c89604e3e28dbb782837295937d4b"
    },
    "auth_subject": "oc-code-01",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

@coderabbitai

coderabbitai Bot commented Nov 29, 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: 9896174d-04bd-46e0-847d-d88cefb26987

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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

1237-B (alpha DRIVE landings, 2026-11-29): claiming for merge under standing authority. Verified by full-diff read against the PR purpose (Closes #8170): (1) claimant.py main() refuses startup (exit 2, CLAIMANT-STARTUP-REFUSED) when cwd resolves to PRIMARY_CLONE, before _drop_inherited_lane/poll-module loading; PrimaryCloneStartupTests pin refusal-before-load and clean-worktree start; (2) pm-git-sync.sh parses git worktree list --porcelain and emits an ALERT each cycle when another registered worktree holds main — alert only, sync decision unchanged; quarantine shell test gains case 0 proving the alert. Body verification names both suites. No author merge gate in body or comments (only CodeRabbit skip notice); head unchanged since filing (18:36:36Z). CI is not a gate (Drew, 2026-11-29). Merging sha-pinned at 6249879.

@developing-today-fleet
developing-today-fleet Bot merged commit e578eb0 into main Nov 29, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the oc-code-06/8170-prevent-primary-clone branch November 29, 2026 18:59
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

1237-B: MERGED — merge commit e578eb0, mergedAt 2026-11-29T18:59:23Z, confirmed by second gh read (state=MERGED). Sha-pinned at 6249879. Closes #8170.

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.

fleet-stalling: primary clone dirt blocks OpenCode claimant and pm-git-sync

0 participants