feat(extension): build provenance stamping for verifiable binaries - #292
Merged
Conversation
added 3 commits
August 7, 2026 07:49
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.
Important
Problem
The Amicode webview ships a vendored opencode fork, and builds get verified on a remote GUI that is not the build machine. Before this change, "this binary is the fix" was a claim with no evidence: nothing in the artifact tied it to a branch, a commit, or a build-time tree state — so a stale or misconfigured build could pass (or fail) a verification and nobody could tell which.
Approach
Stamp every built binary at build time with its provenance — branch, commit, and dirty-state — and expose it in the shipped artifact's metadata. A verified build then answers "which binary was actually tested" from the artifact itself, making remote verification attributable to exactly the reviewed code.
Approaches Considered
Scope
What changed
.buildinfosurface), readable without network access.Verification
fix/image-attachmentsat commit42a2c2a82, dirty: false at build time.Key Decisions
Constraints & Invariants
Source
Companion to the fork-side attachment fix: harmoniqs/opencode PR #140 from branch
fix/image-attachments(commit42a2c2a82), whose verification this work made attributable. Recorded in the amicode issue for image attachments and their blob-scheme resolution.Notes
The stamp is a guarantee, not a diagnostic: it cannot fix a bad build, it can only prove (or disprove) that the build being verified is the one under review. The image-attachment fix was the first consumer; any future fork change inherits the same discipline.