Function: singleActorValue()¶
Defined in: rine-core/dist/src/actor.d.ts:289
The conflict rule, whole: two actor values on the same rung must agree.
Returns the one value both spellings name, or undefined when neither was
given. Refuses when they disagree, naming both — no precedence rule silently
picks a winner, because the loser is an identity the caller believed they
were acting as.
Only same-rung pairs reach here. A flag beating RINE_AGENT, or a per-call
agent beating a client default, is precedence and stays silent.
Disagreement is a literal comparison after normalizeActor, case-insensitive — never resolve-then-compare. Resolving first would spend up to two network round trips before it could decide to refuse, could fail on the second value with a different error entirely, and would make the refusal non-deterministic offline. The cost is that naming one agent twice, once by name and once by handle, is refused; the refusal says exactly that happened.
Parameters¶
| Parameter | Type |
|---|---|
explicit |
unknown |
alias |
unknown |
surface? |
ActorSurface |
Returns¶
string | undefined