test(frontseat-pipeline): pin the export-registry contract for image entities - #274
Open
joaodinissf wants to merge 1 commit into
Open
test(frontseat-pipeline): pin the export-registry contract for image entities#274joaodinissf wants to merge 1 commit into
joaodinissf wants to merge 1 commit into
Conversation
…entities An entity root can hold both a language manifest and an image manifest — a Go service with an apko.yaml beside it — and that shape has to reach a plan. It is the ordinary way to ship a service as a container, and the registry allows it: named exports stack, and exactly one plugin declares the default. Both halves have been broken in turn. A plugin claiming no default leaves the primary ambiguous; a plugin claiming it unconditionally collides with the language plugin that already owns it — and the second is the tempting fix for the first, which is why this is a test rather than a comment. Also pins that the ambiguity is cross-plugin: one plugin may stack its own named exports, and two plugins sharing an export name trip the duplicate check before ambiguity is ever reached. Relates to #131 Relates to #199 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
joaodinissf
force-pushed
the
test/export-collision-contract
branch
from
August 1, 2026 20:25
830cca6 to
421d505
Compare
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.
A contract test, no behaviour change. Green on
main.An entity root can hold both a language manifest and an image manifest — a Go service with an
apko.yamlbeside it — and that shape has to reach a plan. It is the ordinary way to ship a service as a container, and the registry is built to allow it: named exports stack, and exactly one plugin declares the unnamed default.Both halves of that contract have been broken in turn:
The second is the tempting fix for the first, which is why this is a test rather than a comment. It fails with
duplicate export ""against that change and passes onmain— verified both directions.Two things the tests also pin, both of which I got wrong before running them:
Opened separately from #240 so the contract lands regardless of how that PR is resolved. If #271 replaces the export registry, this goes red and has to be consciously ported — which is the point: a bullet in an issue can be skimmed, a red test cannot.
This pull request was published with assistance from Claude.