Skip to content

bootstrap.sh check: missing 1Password CLI fails the check even when restore was skipped #13048

Closed

Description

@dezren39

What happened

scripts/muse/bootstrap.sh check always requires a working op CLI + service-account token:

if command -v op >/dev/null 2>&1 && [ -n "${OP_SERVICE_ACCOUNT_TOKEN:-}" ] &&
  OP_SERVICE_ACCOUNT_TOKEN="$OP_SERVICE_ACCOUNT_TOKEN" op whoami >/dev/null 2>&1; then
  say "check: 1Password CLI and service account answer"
else
  say "check: 1Password CLI/token did not verify (op is restored from ~/tools or login data is missing)"
  rc=1
fi

On a non-Muse grok seat run with --skip restore,persist,init, the service-account token file is present, but op is not on PATH because the restore that would bring ~/tools / login data back was intentionally skipped. Check logs the line above and sets rc=1.

After the three broker tokens were provisioned from BWS and the session broker was started, fleet secrets list, fleet queue health, fleet bridge hello, fleet agent enroll, and fleet agent doctor all succeeded (all four legs and all four next rungs). The check phase would still have failed solely because op was missing.

The message itself says op is restored from ~/tools, so treating this as a hard check failure after --skip restore is inconsistent with the skip.

Suggested fix

When the restore phase was skipped (or op is not expected on this seat), log a warning and do not fail the check. Keep the hard failure for a full Muse bootstrap that did restore and still cannot verify 1Password.

Seen on developing-today/code main at 65f4921, seat name/kind/groups grok, 2026-11-23 around 1:24 AM CST. Related: the check then went on to hang on bridge hello, filed separately.

Activity

  1. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    Claim (Lane LC): taking the #13048 fix — in scripts/muse/bootstrap.sh's check phase, when the restore phase was skipped (--skip restore, or --only without restore), a missing/unverifiable op CLI logs a warning instead of failing the check; the hard failure stays when restore was in scope. Premise verified first-hand on current main: the check block sets rc=1 unconditionally when op does not verify, with no reference to whether restore ran.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done (Lane LC): fixed by PR #13067, merged as ed65beca46e9 (head-SHA guarded at 7ca96edf764c); this issue auto-closed as completed on the merge, as intended.

    • scripts/muse/bootstrap.sh check phase: when restore is out of scope for the run (want restore false — --skip restore, or --only without restore), an unverified op now logs a warning ("not verified, but the restore phase was skipped, so op is not expected on this seat yet") and does not fail the check. When restore was in scope, the hard failure is unchanged. Verified present on main post-merge.
    • New regression suite scripts/tests/test_muse_bootstrap_check_op.py runs the real script in a throwaway HOME with fake fleet/restic/bws binaries and a fake CONNECT proxy for the laptop-agent leg, staging the grok-seat shape (token present, op absent): restore-skipped → warning + exit 0; restore-in-scope → hard failure + exit 1. Both pass (also clean under -W error::ResourceWarning); sibling suite test_muse_bootstrap_tokens.py still 3/3; bash -n clean. Wired into .github/workflows/scripts-test.yml following its per-suite pattern.

    This removes the last known check-phase false failure for the grok seat's --skip restore,persist,init bootstrap shape (#12885's remaining legs were already green there).

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