Repository navigation
feat(op): an unasserted claim resolves to its observed kind at activation - #633
Merged
Merged
Conversation
3 of 4 tasks
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 2 of any-entry-claims.md. Closes #618. Feature: #616.
An unasserted claim is a promise to observe. Pre-flight's
Pending → Activetransition is where themodel first consults the world, so it is where the promise comes due:
op.KindResolverjoinsop.RootBinderon that transition, andResourceCatalog.VerifyExistencedrives it.file.Anybecomesthe variant the disk holds — once, at the consuming scope's starting line, since
VerifyExistenceearly-returns on an already-
Activeentry.The
Gonebranch resolves nothing: nothing was observed, so an unasserted claim has nothing to becomeand stays unasserted — the honest record of intent the world did not meet.
The audit's catch, and the part that would have failed silently.
candidateOfModebuilds anunlinked 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
byIDpointing at a row whoseoccupant answers
""toID(), andmarkActivewould have recorded the state under the empty id — acorruption 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
AnyandRegularspellings name one identity, which is also what lets thetype fragment move with the resolution. That is how the trace comes to say
Regularwhere the graph'sintent 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 theirtransitions 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
Anyclaim becomes*Regularwith one id and one ledger row;an unmet claim stays
Anyand goes Gone).Gate:
make test103 ok / 0 fail;make vetclean under darwin, windows, and linux;gofmt -lclean.