Repository navigation
refactor: record agent image build inputs in shell - #13600
Merged
Merged
Conversation
cv
enabled auto-merge (squash)
October 21, 2026 15:09
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failure
Two small Python scripts ran in the agent image's build stage:
image/fabric/wheel_lock.pyhashed the locally compiled wheels for a strict install, andimage/fabric/provenance.pyrecorded the image's retained inputs inprovenance.json. A third,test_build.py, tested the first.AGENTS.mdkeeps 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 DIRECTORYwrites the samename==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 DIRECTORYwrites the same JSON keys (harness,fabric_revision,source_sha256,requirements_sha256,local_sources), whichcatalog.pyandcargo images qualifyread.The Dockerfile calls it in their place, and
test_build.pygoes. 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
shellcheckis clean.cargo images build --platform linux/arm64 dummy deepagents pibuilt, andcargo images qualifypassed for all three, checking each retained source against the newprovenance.json.docker buildx bake checkandcargo cipassed, including the bundle and lifecycle steps.