You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bootstrap.sh check: missing 1Password CLI fails the check even when restore was skipped #13048
scripts/muse/bootstrap.sh check always requires a working op CLI + service-account token:
ifcommand -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.
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.
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).
Activity
developing-today commentedon Nov 23, 2026
CODE-4761
dezren39 commentedon Nov 23, 2026
Claim (Lane LC): taking the #13048 fix — in
scripts/muse/bootstrap.sh's check phase, when the restore phase was skipped (--skip restore, or--onlywithout restore), a missing/unverifiableopCLI 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 setsrc=1unconditionally whenopdoes not verify, with no reference to whether restore ran.dezren39 commentedon Nov 23, 2026
Done (Lane LC): fixed by PR #13067, merged as
ed65beca46e9(head-SHA guarded at7ca96edf764c); this issue auto-closed as completed on the merge, as intended.scripts/muse/bootstrap.shcheck phase: when restore is out of scope for the run (want restorefalse —--skip restore, or--onlywithout restore), an unverifiedopnow 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.scripts/tests/test_muse_bootstrap_check_op.pyruns the real script in a throwaway HOME with fakefleet/restic/bwsbinaries and a fake CONNECT proxy for the laptop-agent leg, staging the grok-seat shape (token present,opabsent): restore-skipped → warning + exit 0; restore-in-scope → hard failure + exit 1. Both pass (also clean under-W error::ResourceWarning); sibling suitetest_muse_bootstrap_tokens.pystill 3/3;bash -nclean. Wired into.github/workflows/scripts-test.ymlfollowing its per-suite pattern.This removes the last known check-phase false failure for the grok seat's
--skip restore,persist,initbootstrap shape (#12885's remaining legs were already green there).