Skip to content

fix(devenv): single-source the dogfood runner-id so mint and runner never drift (RIG-2660) - #582

Open
rigel-mintaka wants to merge 1 commit into
mainfrom
compass/rig-2660-runnerid-single-source
Open

fix(devenv): single-source the dogfood runner-id so mint and runner never drift (RIG-2660)#582
rigel-mintaka wants to merge 1 commit into
mainfrom
compass/rig-2660-runnerid-single-source

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

This PR is part of a stack containing 3 PRs:

  1. main
  2. "fix(devenv): single-source the dogfood runner-id so mint and runner never drift (RIG-2660)" (this PR)
  3. fix(agent): cue driven agents to reply in-channel, not into the session log (RIG-2664) #583
  4. feat(cli): add operator message-post and agent-status nouns (RIG-2662, RIG-2663) #585

The dogfood loop minted the runner token with a hardcoded runner-id and launched compass-runner with the same literal in two separate places. The runner's Enroll cross-checks the token subject against its --runner-id, so any drift between the two copies is rejected unauthenticated at enroll — and a deployment overlay that overrides one but not the other silently breaks enrollment on every DB recreate (the live mattfw box runs a different runner-id and needs a manual re-mint each recreate).

Introduce one dogfoodRunnerID binding in the let block (mirroring dogfoodDSN) that both the mint task and the runner process reference, so they move in lockstep and an overlay overrides the subject in exactly one place.

Refs RIG-2660

Co-authored-by: Matt Wilkinson matt@rigel.build

…ever drift (RIG-2660)

The dogfood loop minted the runner token with a hardcoded runner-id and launched compass-runner with the same literal in two separate places. The runner's Enroll cross-checks the token subject against its --runner-id, so any drift between the two copies is rejected unauthenticated at enroll — and a deployment overlay that overrides one but not the other silently breaks enrollment on every DB recreate (the live mattfw box runs a different runner-id and needs a manual re-mint each recreate).

Introduce one dogfoodRunnerID binding in the let block (mirroring dogfoodDSN) that both the mint task and the runner process reference, so they move in lockstep and an overlay overrides the subject in exactly one place.

Refs RIG-2660

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

RIG-2660

@github-actions

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-rig-2660-runnerid-si.compass-eng-docs.pages.dev

Deployed from compass/rig-2660-runnerid-single-source at fcfb0f3.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant