Expand description
The SDK bridge kit — every plausible RDU front door behind ONE object-safe seam, so the day the vendor SDK arrives is a fill-in-the-blanks job in this file and nowhere else.
A bridge has two halves. ingest turns the certified neutral artifact (NeutralArtifact) into whatever
the SDK takes (VendorConfig) and MUST forward the proof: the config is stamped with the certificate’s
digest, and an artifact whose certificate does not recheck against its own program is refused before a
byte leaves. certify_back takes whatever the SDK hands back (VendorPlacement — a placement of the
same computation) and earns it the proof-carrying certificate through certify_external_spatial, or
None, fail-closed.
MockBridge is the identity (the neutral JSON bytes in, the neutral JSON parsed back out) — it exists
so the round trip, the refusals and the CLI dispatch are locked TONIGHT against a bridge that behaves.
SambaFlowBridge refuses every call by name until the vendor API exists.
Structs§
- Mock
Bridge - The identity bridge: the config IS the neutral JSON, and a placement is read back with
parse_neutral. - Samba
Flow Bridge - The SambaFlow front door: a seam with the vendor API behind it still to come. Every call refuses by name.
- Vendor
Config - What a bridge hands the vendor: the bytes in the SDK’s format, stamped with the digest of the certificate they were proven under.
- Vendor
Placement - What the vendor hands back: their placement of the computation, as a neutral envelope (
schema,version,lane,program— exactly whatparse_neutralreads).
Enums§
Constants§
- BRIDGE_
NAMES - Every bridge
bridge_by_namedispatches to, in the order the CLI lists them. - NEUTRAL_
FORMAT - The media type the mock bridge emits: the neutral artifact, byte for byte.
- SAMBAFLOW_
REASON - Why the SambaFlow bridge refuses today — the one string the CLI, the runbook and the lock all read.
Traits§
- RdaBridge
- One RDU front door. Object-safe: the CLI holds a
Box<dyn RdaBridge>chosen by name.
Functions§
- bridge_
by_ name - The bridge behind a name, or
Nonefor a name that is not one ofBRIDGE_NAMES. - certificate_
digest - The digest a config carries: the certificate’s schedule digest as sixteen lowercase hex digits.
- envelope_
digest - The
certificate.schedule_digesta neutral envelope carries, in the same sixteen-hex-digit form.