Skip to content

feat(op): dispatch resolves resource slots by identity through the run catalog - #613

Merged
David-Noble-at-work merged 2 commits into
developfrom
dispatch-resolves-by-identity
Aug 23, 2026
Merged

David-Noble-at-work merged 2 commits into
developfrom
dispatch-resolves-by-identity

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

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-typed
parameters through resolveDispatchResource, gated by activation.Graph — the per-dispatch frame
carries 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; Convert stays context-blind for planning and immediate mode.

Copy-on-bind (step 4 ruled): bindPendingResources binds a kind-preserving copy and swaps it into
the run clone (ResourceCatalog.rebindEntry); scoped verification resolves the canonical before
probing; the planning catalog stays pristine in state AND location (pinned).

The plan-time mirror: checkPromiseTypes refuses a declared-string producer into a resource-typed
slot; checkVariableResourceSlots refuses plain variables (the reserved item frame is exempt — its
records 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 of
machine-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 the resolveDispatchResource unit pins and the
pristine-location pin beside the root-binding pair.

Also: WithCatalog renamed WithResourceCatalog; the executor value-copies the host's spec before
stamping run state; the stale resolvePendingResources doc block removed.

Refs #581, #586.

Gate: make test 103 ok / 0 fail; make vet clean under darwin, windows, and linux; gofmt -l clean.

@David-Noble-at-work David-Noble-at-work self-assigned this Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dispatch resolves by identity; a catalog miss refuses

1 participant