RAS Bridge Contract
This reference defines the current bridge contract between CDP and the Reticular Activating System (RAS) for substrate boot.
It is narrower than the full application boundary. The RAS bridge describes the CDP-to-RAS boot handoff, while the application boundary describes the broader outside-world interaction model used by different host applications.
Purpose
Section titled “Purpose”The RAS bridge is the handoff boundary between:
- CDP intent and domain selection.
- RAS launch orchestration and substrate activation.
It exists so CDP stays user-facing while RAS remains orchestration-facing.
Bridge roles
Section titled “Bridge roles”CDP responsibilities
Section titled “CDP responsibilities”- Select active domain from Domain Bundle.
- Resolve the intended launchable substrate entry.
- Submit a launch request to RAS.
- Surface status and errors to the user.
RAS responsibilities
Section titled “RAS responsibilities”- Validate launch request shape and required fields.
- Dispatch launch via configured launcher backend.
- Enforce launch output contract.
- Return runtime state/identity back across the bridge.
Required launch inputs
Section titled “Required launch inputs”The bridge request must include SubstrateDomain-compatible launch fields:
- definition-id
- launch.launcher
- launch.target.module-path
- launch.target.symbol-name
Optional fields may be forwarded for policy and metadata:
- lifecycle-policy
- metadata
- body
Launch output contract
Section titled “Launch output contract”A successful bridge launch returns a substrate runtime handle equivalent to:
- definition_id
- instance_id
- healthy
- lifecycle_state
On failure, the bridge must return a structured error that preserves:
- failing stage (validation, dispatch, import, invoke, runtime)
- machine-readable reason
- human-readable message
Lifecycle interactions
Section titled “Lifecycle interactions”The bridge must support at least these runtime operations:
- boot (launch)
- status (health/readiness/lifecycle)
- shutdown (terminate active runtime)
Modulator compatibility note
Section titled “Modulator compatibility note”Modulators are runtime behavior inputs and should be treated as configuration/runtime concerns layered above launch-target resolution.
Implications:
- RAS bridge resolves and launches substrate identity first.
- Modulator requests are submitted by
RAStoNeuromodulators, fanned out to synthesizers, and resolved before the runtime is returned. - Bridge contracts should not rename identity fields based on modulator state.
Boundaries and non-goals
Section titled “Boundaries and non-goals”The bridge must not:
- Embed package-specific composition logic.
- Mutate domain semantics beyond validation.
- Reinterpret substrate-specific modulation policy that belongs to
RAS,Neuromodulators, and synthesizers.