Skip to content

refactor: record agent image build inputs in shell - #13600

Merged
cv merged 1 commit into
v1from
refactor/build-helpers-in-shell
Oct 21, 2026
Merged

cv merged 1 commit into
v1from
refactor/build-helpers-in-shell

Conversation

@cv

@cv cv commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Failure

Two small Python scripts ran in the agent image's build stage: image/fabric/wheel_lock.py hashed the locally compiled wheels for a strict install, and image/fabric/provenance.py recorded the image's retained inputs in provenance.json. A third, test_build.py, tested the first. AGENTS.md keeps Python to images whose workload runs on it, and these only hash files.

Decision

Replace them with one POSIX shell script, image/fabric/inputs.sh:

  • inputs.sh lock DIRECTORY writes the same name==version --hash=sha256:... requirement for each local wheel. It still fails when there are no wheels, or two versions of one package.
  • inputs.sh provenance DIRECTORY writes the same JSON keys (harness, fabric_revision, source_sha256, requirements_sha256, local_sources), which catalog.py and cargo images qualify read.

The Dockerfile calls it in their place, and test_build.py goes. The Python the images run (catalog.py, runtime_metadata.py, the reference test adapter, and their tests) stays. A Fabric command that prints the installed adapters' descriptors would let most of the catalog code go; I'm filing that with Fabric separately.

Validation

  • shellcheck is clean.
  • Run directly, the script printed the expected lock line, failed on an empty directory and on an ambiguous package, and wrote provenance JSON that parses, including dotfiles and nested files.
  • On a DGX Spark, cargo images build --platform linux/arm64 dummy deepagents pi built, and cargo images qualify passed for all three, checking each retained source against the new provenance.json.
  • docker buildx bake check and cargo ci passed, including the bundle and lifecycle steps.

@cv
cv enabled auto-merge (squash) October 21, 2026 15:09
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit cfb0375 into v1 Oct 21, 2026
@cv
cv deleted the refactor/build-helpers-in-shell branch October 21, 2026 15:22
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch labels Oct 22, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants