Repository navigation
The ConvertFrom pairs are gone from every sealed resource, constructors return a nil interface on error, and the collision error names the kinds - #839
Merged
Conversation
added 2 commits
September 5, 2026 17:07
…p, folding in #807 and #808 Phase 8 (#649) sized against develop at f4b3cdb: sixteen methods in eight pairs across appnet, git, service, pkg, and file's base and three variants; two file tests assert the removed contract and are replaced by a table-driven pin that a string does not reach any sealed resource through the target side. #807's seven typed-nil constructors and #808's collision message fold in as steps 3 and 4. Status in-progress. Claude-Session: https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW
…rs return a nil interface on error, and the collision error names the kinds Phase 8 of the sealed-resources plan (#649). Sixteen methods in eight pairs removed from appnet, git, service, pkg, and file's base and three variants, with the two file tests that asserted them; one table-driven pin in pkg/op/provider asserts that an env-less string converts to none of the nine sealed interfaces through the target side. Seven generated announcements lose the pair's parameter entries. The Makefile's rule for file's generated files now depends on the variant files, whose edits it never saw. #807: the seven constructors that returned a typed nil through `return discoverResource(...)` return an explicit nil on the error path, each pinned by a test. #808: internEntry's cross-kind collision error names the kinds by their exported interfaces through kindName. Plan phase 8 complete; #646 is next. Claude-Session: https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW
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.
Thread 2 (
Epic:ResourceModel), phase 8 of 625-sealed-provider-resources.md. Three issues resolved in this worktree; sized first (commit 1), landed second.#649 — the sweep
Sixteen
CanConvertFrom/ConvertFrommethods in eight pairs removed fromappnet,git,service,pkg, andfile's base and three variants, with the twofiletests that asserted them. In their place, one table-driven pin inpkg/op/provider: an env-less string converts to none of the nine sealed interfaces through the target side. The framework seam (op.TargetConverter,tryTargetConverter,targetSideAdvertises) stays for non-resource targets.Two findings, both fixed here: the seven announcements carry the pair in their parameter tables and lose three lines each, so the generated files are not byte-identical as the sizing predicted; and the Makefile rule for
file's generated files never depended on the variant files, so their announcements went stale and panickedstarat startup. The rule now names them.regular_test.gotests removedTestConvert_NoSealedResourceIsReachedFromAStringOnTheTargetSideover nine interfacesmake generate— seven announcements regenerated; noConvertFromremains in any generated filefilegenerate rule depends onresource_base.goand the four variant filesmake checkgreen locally#807 — typed nil on the error path
Seven constructors (
json,yaml,service,git,mem,appnet,pkg) returnedreturn discoverResource(...), wrapping a nil struct pointer in a non-nil interface on error. Each now returns an explicit nil.nilinterface on its error pathTestDiscoverResource_ErrorPathReturnsANilInterfaceper provider#808 — the collision error
internEntryprinted*file.regularand*file.directory; it now namesfile.Regularandfile.DirectorythroughkindName.the collision error names the kinds by their exported interface names
TestDiscover_CrossKindCollisionErrorsasserts the exported namesthe suite passes on all five platforms — every test leg green on this PR
Closes #649
Closes #807
Closes #808
https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW