Skip to main content

Module resolve

Module resolve 

Source
Expand description

Deterministic target resolution (spec §12).

A model never sees a record identifier: it chooses among opaque TargetTokens this module issued for the cases the actor may address, and understanding hands back the token, a new case, a record an earlier act of the turn creates, the card on screen, or several candidates. Several is a selection card, never a guess: nothing here reads a timestamp, a list position or a confidence (I8).

Understood targetHow it resolves
Recordthrough the TargetTokenMap: unknown is Unauthorized, vanished Missing, moved Stale
Newonly when the operation’s TargetPolicy permits it, minted by a CaseIdFactory
SameTurnthe case the earlier act mints, compiled against no state
Cardthe case of the card on screen
Ambiguousa selection among the candidates
an origin (§12.4)TargetResolver::resolve_origin: exactly the record the surface named

Structs§

AuthorizedCase
One case the actor may address this turn, with its server-authored label.
DerivedCaseIdFactory
Derives the identifier from the turn, the workflow and the act.
TargetResolver
Resolves the targets of one turn against the cases the actor may address.
TargetResolverBuilder
Builds a TargetResolver for one turn.

Enums§

TargetOutcome
What resolving one act’s target produced.

Traits§

CaseIdFactory
Mints the identifier of a case that does not exist yet.