Repository navigation
feat(op): dispatch resolves resource slots by identity through the run catalog - #613
Merged
Merged
Conversation
This was referenced Nov 23, 2026
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.
Phase 4, PR 1 of the resource-construction campaign (docs/plans/resource-construction.md). Closes #609.
The seam (4-resource-management.md §5.6):
Method.Invoke's slot conversion routes resource-typedparameters through
resolveDispatchResource, gated byactivation.Graph— the per-dispatch framecarries dispatch kind; the environment stays orthogonal (a first-cut environment bit was reverted in
design review). A Resource value resolves by its URI, a string resolves as the key it is, any other
value refuses, and a run-catalog miss refuses with the §5.6 verdict — nothing constructs at dispatch.
Step 6's reload probe retired with it;
Convertstays context-blind for planning and immediate mode.Copy-on-bind (step 4 ruled):
bindPendingResourcesbinds a kind-preserving copy and swaps it intothe run clone (
ResourceCatalog.rebindEntry); scoped verification resolves the canonical beforeprobing; the planning catalog stays pristine in state AND location (pinned).
The plan-time mirror:
checkPromiseTypesrefuses a declared-string producer into a resource-typedslot;
checkVariableResourceSlotsrefuses plain variables (the reserveditemframe is exempt — itsrecords may carry claimed resources; the dispatch seam backstops). Run-start claiming for variable-fed
resource slots is ruled and chartered (docket item 9, sequenced after phase 4).
First catches: writ adopt migrated — its gather records carry plan-time claims
(
file.DiscoverRegular: identity minted with no disk contact, interned pending) instead ofmachine-absolute strings; the two variable-model star fixtures re-authored to authored claims.
Acceptance — explicit-conversion suite items 1–3 green:
test_judgment_reload_dispatch,test_judgment_doctored_checksum(wall 1: the integrity gate),test_judgment_dispatch_miss(wall 2:the seam),
test_judgment_string_promise_refusal, plus theresolveDispatchResourceunit pins and thepristine-location pin beside the root-binding pair.
Also:
WithCatalogrenamedWithResourceCatalog; the executor value-copies the host's spec beforestamping run state; the stale
resolvePendingResourcesdoc block removed.Refs #581, #586.
Gate:
make test103 ok / 0 fail;make vetclean under darwin, windows, and linux;gofmt -lclean.