pub fn dispatch_prepared_call<'g>(
registry: &ExtensionRegistry<'_>,
handle: &PreparedCallHandle,
ctx: &CallExecutionContext,
gate: Option<&mut (dyn SentinelPolicyGate + 'g)>,
inputs: &[BorrowedSliceView<'_>],
output: &mut CallerOutputSlice<'_>,
) -> Result<DispatchOutcome, VibeTrap>Expand description
Executes a PreparedCallHandle in zero heap allocations (Tier-1 HotZeroHeap).
Enforces:
RegistryGenerationfreshness (StaleRegistryGenerationon mismatch).contract_digestintegrity (ContractDigestMismatch).- Parameter arity, type, and element count bounds (
ArityMismatch,TypeMismatch,SliceLengthMismatch). - Pre-dispatch output buffer capacity (
OutputBufferTooSmall) before any admission or side effects. - Mode-specific Sentinel admission (
GovernedApplication,StandaloneDeveloper,SimulatedGovernanceTest,IntegratedGovernanceTest). - Post-execution validation and fail-closed receipt persistence (
ReceiptPersistenceFailed).