Skip to content

feat(devenv): de-pin 3 agent-image devenv-fork sites onto the tool (RIG-2812) - #815

Open
rigel-mintaka wants to merge 2 commits into
mainfrom
dependencies/rig-2812-depin-agent-image-devenv
Open

feat(devenv): de-pin 3 agent-image devenv-fork sites onto the tool (RIG-2812)#815
rigel-mintaka wants to merge 2 commits into
mainfrom
dependencies/rig-2812-depin-agent-image-devenv

Conversation

@rigel-mintaka

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

Copy link
Copy Markdown
Contributor

RIG-2812 (RIG-2546 T2a): de-pin the agent-image devenv fork sites onto the CLI

Part of RIG-2546 (compass devenv-source DRY). De-pins the three executable sites that hand-pin the RigelBuild/devenv fork rev, rewiring them onto the single-source resolver tools/toolchain/devenv-cli (the tool T1/#771 landed):

  • agent-image/moon.yml build task — nix run github:RigelBuild/devenv/<rev>#devenv …script: resolving src=$(bun tools/toolchain/devenv-cli/index.ts --lock agent-image/devenv.lock --mode flakeref) then nix run "$src" … (matches ci.yml's seed step; runFromWorkspaceRoot).
  • devenv.nix dogfood:agent-image exec — same resolve-then-run.
  • tools/agent-image-env-gate/index.ts — reads the fork rev from the lock via the tool, not a literal.

Behavior-preserving: the tool resolves byte-identical to the removed hand-pin. No literal fork revs remain in these executable sites (grep-verified).

Verification

Sibling PRs: #816 (T4 root devenv.yaml→fork), #814 (RIG-3099 flake-parity lockstep). Deferred: publish.sh (4th site, cross-lane release bootstrap); T2b literal-rev gate (RIG-2813) after this lands.

@linear-code

linear-code Bot commented Aug 31, 2026

Copy link
Copy Markdown

RIG-2812

RIG-2546

@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

Compass engineering docs preview: https://dependencies-rig-2812-depin.compass-eng-docs.pages.dev

Deployed from dependencies/rig-2812-depin-agent-image-devenv at 6250502.

rigel-mintaka and others added 2 commits August 31, 2026 19:03
…IG-2812)

Route three executable hand-pins of the RigelBuild/devenv fork rev through
tools/toolchain/devenv-cli, resolving the flakeref from agent-image/devenv.lock
at runtime instead of a literal github:RigelBuild/devenv/<40hex>#devenv:

- tools/agent-image-env-gate/index.ts: direct core.ts import (devenvSource +
  flakeref), no CLI hop.
- agent-image/moon.yml: build task command: -> script: (resolve-then-run),
  runFromWorkspaceRoot so the tool/lock paths match ci.yml's seed step.
- devenv.nix dogfood:agent-image: ${config.devenv.root}-anchored tool call.

Behavior-preserving: the tool resolves the lock's devenv node to exactly the
removed literal (15a81f3e...). The fourth pin (agent-image/publish.sh) is
deferred to a stacked PR — it runs in release.yml's publish-image job, which
bootstraps no bun.

Part of RIG-2546 (T2a, RD-2 full-kill). Spec-impact: none.

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@rigel-mintaka
rigel-mintaka force-pushed the dependencies/rig-2812-depin-agent-image-devenv branch from dfb48e1 to 6250502 Compare August 31, 2026 23:04
@rigel-mintaka
rigel-mintaka marked this pull request as ready for review August 31, 2026 23:21
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