Function: classifyReference()¶
Defined in: rine-core/dist/src/recipient-target.d.ts:59
Which namespace a reference names, on syntax alone, before any request.
🔴 The order of the tests is the contract, not an implementation detail.
id is asked BEFORE @ and AFTER #. A UUID carries no @, so the second
of those is not observable today — it is pinned so the two stacks cannot
drift the day UUID_RE widens on one of them. Both stacks already carry a
LOOSER uuid predicate than this one asks — parsesAsUuid
(resolve-handle.js) and its twin rine._resolve.parses_as_uuid, which
accept the dashless, urn: and braced spellings the wire accepts — and
classification deliberately does not use it. Whether it should is an open
question; do not widen this test to close it.
🔴 It never crosses namespaces. There is no "try agent, then try group":
the caller declares the namespace by choosing a verb or a slot, and this
answers only what the string looks like. A wrong group resolution is refused
by the server's seat gate; a wrong agent resolution DELIVERS
(src/rine/api/messages_send_pipeline.py::enforce_send_policies), which is why the two
halves are never allowed to guess about each other.
Empty is a class rather than a refusal because the refusal belongs to the slot: a blank recipient is answered by the agent resolver's "expected a UUID or handle", and a blank group reference by the group ladder. One classifier, two sentences, neither of them written here.
Parameters¶
| Parameter | Type |
|---|---|
value |
string |
Returns¶
RefClass