Function: isBareReference()¶
Defined in: rine-core/dist/src/group-ref.d.ts:219
Whether a recipient spelling names neither namespace, as written.
Not a UUID, no @, no leading # — the exact set resolveToUuid
(resolve-agent.ts) refuses before any HTTP, which is why routing it to the
group ladder can take nothing away. It is the complement of that refusal and
must stay one: widening it past what the agent namespace has already declined
is how a routing convenience turns into a misdelivery on an E2EE product.
The strict UUID_RE and not parsesAsUuid, deliberately. The looser
predicate is the one a pre-flight must ask, because a pre-flight may only
refuse what the wire would have refused; this is the opposite question. A
dashless UUID is a spelling resolveToUuid already refuses on syntax, so it
is bare here for the same reason every other bare word is, and the twin's
is_uuid reads it the same way.
A blank recipient is deliberately NOT one of them. It names nothing in either namespace, and the agent resolver's "expected a UUID or handle" says that far better than a hunt through the groups the key can see ending in "no group is called ''" would.
Re-expressed over classifyReference rather than restating its four
tests: bare is defined as the class those four tests leave, so the two
cannot answer differently about one string.
🔴 No production caller, and kept on purpose — do not sweep it. The
send path is resolveRecipient, which asks classifyReference directly, so
every reference to this function is a test or this file. Two things depend
on it anyway. It is a published export of
@rine-network/core (index.ts re-exports this module whole), so deleting
it breaks an out-of-repo consumer's build in a non-major release. And it is
the reference definition the classifier is checked AGAINST:
test/recipient-resolution.test.ts's "is the whole of what isBareReference
and isSigilGroupReference ask" proves the five-class table equivalent to
these two predicates, so deleting the predicate deletes the only thing that
proof stands on — after which bare could be widened to admit #ops with
nothing going red.
Parameters¶
| Parameter | Type |
|---|---|
value |
string |
Returns¶
boolean