Skip to content

fix(handoff): enroll-agent learns --kind; non-muse seats skip the Muse home restore - #12860

Merged
dezren39 merged 1 commit into
mainfrom
fix/12858-enroll-agent-kind
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/12858-enroll-agent-kind

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #12858 — the four defects from the Grok enrollment:

  1. Dead branch pin (codex/muse-agent-enrollment-20261122, GitHub 404) in enroll-agent.py, README.md, PROMPT.md → all raw URLs now pin main.
  2. bootstrap.sh --all ran for every kind, restoring the full Muse home onto non-Muse seats → new --kind flag (default muse); non-muse kinds run --skip restore,persist,init.
  3. Enroll call hardcoded --kind muse → uses --kind.
  4. Default Python UA was Cloudflare-blocked (1010) on the claim → explicit User-Agent on claim + download.

Verification: python3 -m py_compile clean; diff reviewed file-by-file (3 files, +48/−13). Muse-kind behavior is byte-identical in effect (--all, kind muse).


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

…e home restore (#12858)

- RAW_ROOT and the README/PROMPT raw URLs pointed at branch
  codex/muse-agent-enrollment-20261122, which does not exist (GitHub 404);
  point them at main.
- The helper ran bootstrap.sh --all for every agent, so enrolling a
  non-Muse seat restored the entire Muse home from restic (Grok's
  enrollment stopped at 88/338 entries, ~48G, under disk pressure).
  Non-muse kinds now run --skip restore,persist,init.
- The fleet enroll call hardcoded --kind muse; it now uses the new
  --kind argument (default muse, so existing Muse flows are unchanged).
- Claim and bootstrap-download requests send an explicit User-Agent;
  Cloudflare blocked the default Python UA with error 1010.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:00
@dezren39
dezren39 merged commit c988f36 into main Nov 23, 2026
1 check passed
@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 29 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: 711084f3-67e3-433a-ae7c-dd1aaebf5265
Commits

Reviewing files that changed from the base of the PR and between b9c74ef and b96f8cd.

Files selected for processing: 3

  • scripts/muse/handoff/PROMPT.md
  • scripts/muse/handoff/README.md
  • scripts/muse/handoff/enroll-agent.py
  • 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.

handoff: enroll-agent pins a dead branch, restores the Muse home for every agent kind, hardcodes kind muse

1 participant