Skip to content

feat(op): an interface-typed resource slot mints its designated claim - #634

Merged
David-Noble-at-work merged 1 commit into
developfrom
designated-mint-type
Aug 24, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
designated-mint-type

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Phase 3 of any-entry-claims.md. Closes #619. Feature: #616.

This is the phase that makes the feature reachable from a plan. file.Any has existed since #617 and
has resolved correctly at activation since #618, but no .star author could produce one: an authored
string bound to an interface-typed resource slot was refused outright.

op.RegisterResourceMint(resourceInterface, mint) mirrors RegisterPlanPathNormalizer's shape — a
registry keyed on the interface, populated from provider init beside the announcement. file registers
Resource → *Any. A claim asserts a kind and an interface asserts none, so the interface now names the
concrete claim that deliberately asserts nothing on its behalf.

The substitution happens at the claiming seam ahead of the plan-space grammar, the source-constructor
lookup, and the conversion, so an authored string bound to an interface behaves exactly as one bound to
an explicitly kinded parameter — no downstream branch anywhere. *Any joined the normalizer registration
in the same init, so the plan-space grammar governs it like any other file claim.

The designation lives on the interface, once — never per parameter. Two methods taking the same slot
type must claim the same way, or one authored path would mean different intent depending on which method
received it.

The refusal narrows rather than disappearing. An interface that designates nothing still refuses,
and the message now names the missing designation rather than the interface's silence — guessing a kind
would mint a claim the author never made.

The scenario was re-authored, and its direction flipped. The narrowed refusal turned out to be
unreachable from Starlark: every announced resource-interface parameter is file.Resource, which is
designated. So test_judgment_entry_slot_refusal.star became test_judgment_interface_slot_mints.star,
pinning what an author now experiences — file.observe(resource="observed.txt") claims where it used to
refuse, and the stored intent row's type fragment names file.Any. The refusal keeps a Go pin, where an
undesignated interface can be constructed directly.

Pins: the two planner directions (undesignated refuses, naming the missing designation; designated
mints) plus the star.

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 24, 2026
@David-Noble-at-work
David-Noble-at-work merged commit 5a680ab into develop Aug 24, 2026
8 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the designated-mint-type branch August 24, 2026 00:17
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.

An interface-typed resource slot designates its mint type

1 participant