Skip to content

feat(op): an unasserted claim resolves to its observed kind at activation - #633

Merged
David-Noble-at-work merged 1 commit into
developfrom
kind-resolution-at-activation
Aug 23, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
kind-resolution-at-activation

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Phase 2 of any-entry-claims.md. Closes #618. Feature: #616.

An unasserted claim is a promise to observe. Pre-flight's Pending → Active transition is where the
model first consults the world, so it is where the promise comes due: op.KindResolver joins
op.RootBinder on that transition, and ResourceCatalog.VerifyExistence drives it. file.Any becomes
the variant the disk holds — once, at the consuming scope's starting line, since VerifyExistence
early-returns on an already-Active entry.

The Gone branch resolves nothing: nothing was observed, so an unasserted claim has nothing to become
and stays unasserted — the honest record of intent the world did not meet.

The audit's catch, and the part that would have failed silently. candidateOfMode builds an
unlinked candidate: a fresh URI whose type fragment names the observed kind, and no catalog id, no
producer stamp
. Swapping that into the ledger naively would have left byID pointing at a row whose
occupant answers "" to ID(), and markActive would have recorded the state under the empty id — a
corruption that no existing test would have caught, because every assertion downstream reads through the
namespace rather than the id.

Identity therefore crosses the swap and is stamped by the catalog, not by the implementation.
Identity is the catalog's business; an implementation that stamped its own id would be claiming an
authority it does not have. The namespace needs nothing — location addressing keys on the
fragment-stripped URI, so Any and Regular spellings name one identity, which is also what lets the
type fragment move with the resolution. That is how the trace comes to say Regular where the graph's
intent says Any: graph = intent, trace = observation, with one identity joining them.

A resolution failure is not an existence failure. The entry has already been observed to exist, so a
resolver that errors leaves it Active and unasserted rather than converting a kind problem into a
missing-resource verdict.

Schemes without a kind axis — every scheme but file — do not implement the interface, and their
transitions are untouched; that is pinned too.

Pins: five at the catalog level with fixtures (resolution with identity carried forward; the Gone
branch resolving nothing; exactly-once; the failure tolerance; a non-resolver untouched) and two at the
file level against a real filesystem (an Any claim becomes *Regular with one id and one ledger row;
an unmet claim stays Any and goes Gone).

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
@David-Noble-at-work
David-Noble-at-work merged commit c57fd60 into develop Aug 23, 2026
8 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the kind-resolution-at-activation branch August 23, 2026 23:53
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.

Kind resolution at the Pending to Active transition

1 participant