Skip to content

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

Open

Description

@dezren39

Defects found by the Grok enrollment (2026-11-22, reported via Drew)

A new non-Muse agent (grok) enrolling through scripts/muse/handoff/ hit four defects:

  1. Dead branch pin. enroll-agent.py (RAW_ROOT), README.md, and PROMPT.md all point at codex/muse-agent-enrollment-20261122, which returns GitHub 404 — the branch does not exist. The helper's pinned bootstrap download cannot work as shipped.
  2. Muse home restore runs for every kind. enroll-agent.py invokes bootstrap.sh --all unconditionally, so enrolling any agent runs the restore phase — a full restic restore of the Muse home (338 entries, tens of GB) onto a seat that is not a Muse and never needs it. Grok stopped it at 88/338 entries (~48G) with disk pressure. Non-Muse kinds need only tools/token/tailnet/fleet/check.
  3. Kind hardcoded. The helper enrolls with --kind muse regardless of the agent being enrolled; a grok/http seat then needs a manual superseding enroll.
  4. Cloudflare 1010 on the claim. The handoff claim POST uses the default Python urllib user agent, which Cloudflare blocks (error 1010) before the request reaches the Worker.

Also observed, unresolved at filing time: from the grok seat the secrets broker returned HTTP 502 on fleet secrets list and fleet secrets get hung, and ~/tools/queue-broker-token / ~/tools/laptop-agent-token were absent — but the tailnet phase never ran (enrollment stopped during restore), so these legs get retested after a restore-free resume before any broker-side defect is concluded.

Fix: helper gains --kind (default muse); non-muse kinds run the bootstrap with --skip restore,persist,init; the enroll call uses the requested kind; all raw URLs point at main; claim/download requests send an explicit user agent.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Post-tailnet retest from the grok seat (2026-11-22, America/Chicago)

    The Cloudflare 1010 / default urllib User-Agent defect in item 4 is already tracked here; not filing a duplicate. The helper on main now sends User-Agent: muse-enroll/1.1 (fleet enrollment helper) on claim and download requests, and --kind grok --resume correctly skipped restore/persist/init.

    Resume results from this seat after deleting the partial /home/box/restore (~48G freed) and the stale ~/.config/fleet/agent.json:

    • tools / token / fleet: ok (idempotent).
    • tailnet: up as muse-grok, kernel mode; laptop probe succeeded over a direct Tailscale path; check reported the laptop agent port answers on the tailnet and fleet secrets resolve (bws fallback) works.
    • check: 1Password CLI is missing (expected; restore was skipped). fleet bridge hello --agent grok --groups muse (hardcoded groups in bootstrap.sh check) hung with no timeout; after ~4 minutes it was terminated so the phase could finish. Check then failed (bridge hello failed is treated as a fatal check failure), so the helper did not reach enroll. Enroll was run afterwards as --kind grok --name grok.
    • secrets-broker 502 persists after tailnet (this was left open at filing time for a retest). fleet secrets list still returns: secret "names" unavailable via secrets-broker: secrets-broker answered HTTP 502. Filing a separate issue for that, since this issue's fix is the helper itself.
    • Token files ~/tools/queue-broker-token and ~/tools/laptop-agent-token are still absent. Doctor: bridge fail (hello/inbox no answer within 45s), queue fail (missing token file), github pass (gh via GH_TOKEN, route plain), shell fail (missing laptop-agent-token). Rungs: shortlist and priority usable; push and queue down. registered remains false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions