Skip to content

Go instance registration must assert a credential row under the exact instance id + a successful route_attempt after seating (popesdrew 0% root cause) #5611

Closed

Description

@dezren39

What happened

When the popesdrew OpenCode Go instance was provisioned on 2026-11-03 (17:13:45Z), its console-login OAuth credential was stored in the laptop credential store under integration_id opencode instead of opencode-go.popesdrew. The route proxy matches credentials by exact leaf provider id (WHERE integration_id = <leaf provider id> AND active = 1), so every attempt on opencode-go.popesdrew failed with "no credential for provider opencode-go.popesdrew":

Fixed operationally on 2026-11-04: a copy of the credential was inserted under the correct key (opencode-go.popesdrew, active=1; original opencode row untouched), and the account immediately served 118 consecutive successful workhorse attempts, independently confirmed in the session message store.

The process gap

Provisioning a new Go instance currently ends at "rows created." Nothing asserts the instance can actually serve before it joins a weighted pool.

What's owed

Instance registration for a new opencode-go.* leaf must assert, before the instance is seated in any pool:

  1. A credential row exists under the exact instance integration_id (not the bare opencode console-login key), active=1.
  2. A successful route_attempt for that leaf is recorded in the proxy ledger after seating (a real completion, not just a config reference).
  3. If either assertion fails, provisioning reports the instance as not-seated and the pool config change does not merge/deploy until it passes.

Watch item from the fix: if the fork's auth later rotates the token under the original opencode row, the copied row could diverge (the same pattern drewrypope runs on) — the assertion in (2) is what would catch that too, if run periodically for existing instances.

Related: PR #5112 (weighted Go pool), code#5295 (known-exhausted gate), the 2026-11-04 popesdrew 0% root-cause investigation.

Acceptance criteria

  • Instance registration for a new opencode-go.* leaf asserts, before the instance is seated in any pool, that a credential row exists under the exact instance integration_id (not the bare opencode key) with active=1; registration fails loudly when the row is missing.
  • A successful route_attempt for the leaf is recorded in the proxy ledger after seating; its absence within a bounded window blocks seating or raises an alert.
  • A regression test or registration-check entry covers the popesdrew failure shape (credential stored under the bare console-login key while the pool config was correct).

Activity

  1. developing-today commented on Nov 4, 2026

    @developing-today
    Contributor
  2. added
    kind/infrastructureInfrastructure / host-portability work
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    source/humanFiled directly by a human
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 4, 2026
  3. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Intake review

  4. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  5. 128 remaining items

  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  7. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked (CI pending)

    Resume check on task 12739: issue #5611 OPEN, PR #7566 OPEN with no labels, no review threads and no reviews, head 463df4d. Diff re-read against the packet: exact-id credential assertion, successful-attempt assertion with the retired-proxy substitution recorded, popesdrew regression fixtures, Nix timer wiring, and ci-policy/schedule-registry docs. node --test bin/check-opencode-go-seating.test.mjs — 14/14 pass locally.

    All basic-tier checks have been queued since 08:44Z; the whole repo's queued workflows are still queued, so this is runner capacity, not this PR. Parked 20 minutes; on resume read fresh checks and merge when the basic tier is green with the diff unchanged.

  8. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    state: parked
    queue: repo-health-code-pilot
    task: 12739 (small_fix)
    by: lane code-b (worker repo-worker-code)

    Correction + resume: execution-lane assignment is direct (not opencode — an earlier handed_off checkpoint this shift was set before the lane result was read and is superseded). Resumed at awaiting_ci per prior checkpoint: PR #7566 OPEN, head 463df4d matching the checkpointed pr_head, no Codex review findings (no reviews / inline comments), no held labels on PR #7566 or issue #5611, targeted tests previously 14/14 pass. Fresh CI check: all basic checks still QUEUED since 2026-11-08T08:44Z (repo-wide runner stall, same pattern as PR #3132). Parked 1200s; resume condition: merge PR #7566 when checks green, verify issue #5611 closed, complete task 12739 as fixed_merged.

  9. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · picked up

  10. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  11. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · done

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

Metadata

Metadata

Assignees

Labels

effort/mMedium: expected under 1 day of workkind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions