Public declaration syntax from forge-rs/harness-runtime/src/admission.rs Original source SHA-256: ebc19b872afdf0f6f23f6e10adda41d045dae1cc9dfc7767e1f3eeb15e3ccc29 Function bodies and constant values are omitted. This is not the complete implementation. Source line 35 #[derive(Debug, Clone)] pub struct RunContext { /// Derivation depth (0 for a root harness; §4.5). pub depth: u32, /// Parent run id for spawned children. pub parent_run_id: Option, /// The run's trace context, propagated to every provider call. pub trace: TraceContext } Source line 46 pub fn root() -> Self; Source line 55 pub fn child( parent_run_id: impl Into, depth: u32, parent_trace: &TraceContext, ) -> Self; Source line 70 #[derive(Debug)] pub struct AdmissionRequest { /// The sealed manifest (already §5-validated by `harness-spec`). pub manifest: ValidatedManifest, /// The plane providers bound for this run. pub planes: PlaneRegistry, /// Where this run sits in the delegation tree. pub run_context: RunContext } Source line 85 #[derive(Debug)] pub struct AdmittedHarness { } Source line 97 pub fn run_id(&self) -> &str; Source line 102 pub fn manifest(&self) -> &ValidatedManifest; Source line 107 pub fn planes(&self) -> &PlaneRegistry; Source line 112 pub fn budget(&self) -> &BudgetLedger; Source line 117 pub fn budget_mut(&mut self) -> &mut BudgetLedger; Source line 122 pub fn evidence(&self) -> &AdmissionEvidence; Source line 127 pub fn context(&self) -> &RunContext; Source line 132 pub fn started_at(&self) -> DateTime; Source line 138 pub async fn execute( self, strategies: &StrategyRegistry, task: impl Into, ) -> Result; Source line 156 pub fn into_parts(self) -> AdmittedParts; Source line 174 #[derive(Debug)] pub struct AdmittedParts { /// The run id minted at admission. pub run_id: String, /// The sealed manifest. pub manifest: ValidatedManifest, /// The bound planes. pub planes: PlaneRegistry, /// The run budget ledger. pub budget: BudgetLedger, /// Admission evidence. pub evidence: AdmissionEvidence, /// The run context. pub context: RunContext, /// Admission time. pub started_at: DateTime } Source line 193 #[derive(Debug, Clone)] pub struct HarnessAdmission { } Source line 201 pub fn new(strategies: StrategyRegistry, context: ValidationContext) -> Self; Source line 210 pub fn with_defaults() -> Self; Source line 218 pub fn validation_context(&self) -> &ValidationContext; Source line 225 pub async fn admit_toml( &self, source: &str, planes: PlaneRegistry, run_context: RunContext, ) -> Result; Source line 243 pub async fn admit( &self, request: AdmissionRequest, ) -> Result;