Crosswake. Bridge. Registry
(crosswake v0.2.3)
View Source
Manifest-backed Phase 3 bridge allowlist.
Summary
Functions
Resolves the wire command for a declared capability family (the reverse of
command_capability/1). @capability_commands is a bijection today (every
capability family has exactly one command), so this reverse lookup is
well-defined. Returns nil when the family is not part of the bounded bridge
command vocabulary at all — the caller (Crosswake.Bridge.push/3) treats that
as an undeclared-capability preflight failure (D-04), not a new authorization
path.
Returns the closed vocabulary of capability families capability_command/1 (and, by
extension, Crosswake.Bridge.push/3) recognizes at all — the domain of the reverse
lookup above. A family absent from this list can never be authorized by any route's
declaration; it fails the vocabulary check (moment C, D-51), not the per-route
declaration check (moment B, Crosswake.Bridge.UndeclaredCapabilityError).
Functions
@spec allowed_commands() :: [String.t()]
Resolves the wire command for a declared capability family (the reverse of
command_capability/1). @capability_commands is a bijection today (every
capability family has exactly one command), so this reverse lookup is
well-defined. Returns nil when the family is not part of the bounded bridge
command vocabulary at all — the caller (Crosswake.Bridge.push/3) treats that
as an undeclared-capability preflight failure (D-04), not a new authorization
path.
@spec known_capability_families() :: [String.t()]
Returns the closed vocabulary of capability families capability_command/1 (and, by
extension, Crosswake.Bridge.push/3) recognizes at all — the domain of the reverse
lookup above. A family absent from this list can never be authorized by any route's
declaration; it fails the vocabulary check (moment C, D-51), not the per-route
declaration check (moment B, Crosswake.Bridge.UndeclaredCapabilityError).