Skip to content

Document how to run a pinned loopzero review through the ai-accounts shim #1832

Done

Description

@eowca

On 2026-11-26 UTC, secondary Codex review took over after claude: not authenticated on #1808 (10:30 and 10:37) and #1819 (10:49, bff5500). Those launches called an absolute path into a pinned loopzero venv with the ai-accounts shim omitted from PATH. #1790 recorded the same fallback at 09:44 and 09:54 and its campaign saved an absolute installed CLI path. The exact #1790 launch environment was unavailable.

The loopzero shim injects the selected Claude OAuth token before launching the real CLI. The reviewer intentionally skips provider shims and forwards a caller’s credential env into Bubblewrap. A direct pinned launch without that env falls back to local Claude state, which is logged out on this host. The failed Claude output is reduced to a generic auth classification in these logs. The receipts hold the successful Codex response.

Verified offline using the same pinned runner, its actual Bubblewrap setup and the real Claude CLI with networking disabled. The direct path mounted two local auth paths and claude auth status --json returned loggedIn=false, authMethod=none. The shim path injected the managed credential, mounted neither path and returned loggedIn=true, authMethod=oauth_token. The host timer ran every five minutes. The active selection and setup-token files were unchanged throughout the failure window. Usage API backoff concerned the separately monitored managed accounts.

Smallest fix: Add the pinned-CLI recipe to the managed-account section of SETUP.md and use it in builder handoffs. Invoke the named shim, with the trusted pinned CLI directory first among the non-shim PATH entries.

PATH="$HOME/.local/lib/ai-accounts/bin:$PINNED_BIN:$PATH" loopzero review

The shim should dispatch to the intended pinned executable while retaining the managed credential path. Use an offline launcher/auth check to verify both properties. Require no change to review sandbox credential policy or account monitoring.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions