pub struct HostReceiptAuthority { /* private fields */ }Expand description
Private host signing authority loaded from an operator-owned configuration.
The signing key, admission snapshot, and ledger store never leave this
authority. In particular, this type intentionally does not implement
Debug.
Implementations§
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
Sourcepub fn published_receipt_json(
&self,
publication: &PublishedCanonicalReceipt,
) -> Result<String>
pub fn published_receipt_json( &self, publication: &PublishedCanonicalReceipt, ) -> Result<String>
Read the just-published receipt through the existing verified lineage owner. This is not a historical lookup or a caller-supplied artifact-path API.
pub fn export_checkpoint( &self, request: &HostCheckpointRequest, ) -> Result<Value>
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
pub fn resume_checkpoint( &self, request: &HostCheckpointResumeRequest, ) -> Result<Value>
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
pub fn continue_checkpoint( &self, request: &HostCheckpointImportRequest, ) -> Result<Value>
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
Sourcepub fn package_checkpoint(
&self,
request: &HostCheckpointPackageRequest,
) -> Result<Value>
pub fn package_checkpoint( &self, request: &HostCheckpointPackageRequest, ) -> Result<Value>
Package one exported local checkpoint with the complete evidence its verifier requires, proven through this host’s current lineage.
Sourcepub fn import_checkpoint(
&self,
request: &HostCheckpointImportRequest,
) -> Result<Value>
pub fn import_checkpoint( &self, request: &HostCheckpointImportRequest, ) -> Result<Value>
Admit one transferred checkpoint against an independently pinned source and an operator-selected receiving scope.
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
Sourcepub fn published_context_protocol(
&self,
attempt: &HostReceiptAttempt,
invocation: &EngineInvocationV1,
observation: &EngineObservationV1,
published: &PublishedCanonicalReceipt,
) -> Result<Option<RecordedExecutionProtocolV1>, String>
pub fn published_context_protocol( &self, attempt: &HostReceiptAttempt, invocation: &EngineInvocationV1, observation: &EngineObservationV1, published: &PublishedCanonicalReceipt, ) -> Result<Option<RecordedExecutionProtocolV1>, String>
Initial publication has no quality signal; never derive acceptance from success.
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
pub fn observe_outcome(&self, request: &HostOutcomeRequest) -> Result<Value>
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
pub fn observe_engine_outcome( &self, request: &EngineOutcomeRequestV1, ) -> Result<EngineOutcomeResponseV1>
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
pub fn recheck_checkpoint_sources( &self, request: &HostCheckpointImportRequest, ) -> Result<Value>
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
Sourcepub fn admit_task_identity(
&self,
project_root: Option<&str>,
) -> Result<Option<AdmittedTaskIdentity>, &'static str>
pub fn admit_task_identity( &self, project_root: Option<&str>, ) -> Result<Option<AdmittedTaskIdentity>, &'static str>
Recheck signer and exact workspace on every call, including cached replay. Saved sessions and MCP arguments cannot grant or change this identity.
Source§impl HostReceiptAuthority
impl HostReceiptAuthority
Sourcepub fn from_reader(input: &mut dyn Read) -> Result<Self, &'static str>
pub fn from_reader(input: &mut dyn Read) -> Result<Self, &'static str>
Load the strict, bounded host settings document from an existing reader.
Sourcepub fn from_reader_scoped(
input: &mut dyn Read,
ledger_root: Option<&Path>,
) -> Result<Self, &'static str>
pub fn from_reader_scoped( input: &mut dyn Read, ledger_root: Option<&Path>, ) -> Result<Self, &'static str>
Constrain an operator-selected ledger to the caller’s trusted state root. Uses the existing descriptor-pinned ledger store; no second store authority.
Sourcepub fn validate_current(&self) -> Result<(), &'static str>
pub fn validate_current(&self) -> Result<(), &'static str>
Revalidate the trusted signer against the host’s current UTC clock.
Sourcepub fn require_context_decision_signing(&self) -> Result<(), &'static str>
pub fn require_context_decision_signing(&self) -> Result<(), &'static str>
Require the independent operator grant before starting a source-bound attempt.
Sourcepub fn begin(
&self,
task: &TaskEnvelopeV1,
plan: &ExecutionPlanV1,
) -> Result<HostReceiptAttempt, &'static str>
pub fn begin( &self, task: &TaskEnvelopeV1, plan: &ExecutionPlanV1, ) -> Result<HostReceiptAttempt, &'static str>
Admit one task, persist intent, and retain its exclusive task lock.
Sourcepub fn begin_with_context(
&self,
task: &TaskEnvelopeV1,
plan: &ExecutionPlanV1,
context: Option<&TaskAutopilotDecision>,
) -> Result<HostReceiptAttempt, &'static str>
pub fn begin_with_context( &self, task: &TaskEnvelopeV1, plan: &ExecutionPlanV1, context: Option<&TaskAutopilotDecision>, ) -> Result<HostReceiptAttempt, &'static str>
Capture the actual immutable planning handoff before Engine execution.
Sourcepub fn publish(
&self,
attempt: &HostReceiptAttempt,
invocation: &EngineInvocationV1,
observation: &EngineObservationV1,
delivered: &str,
) -> Result<PublishedCanonicalReceipt, &'static str>
pub fn publish( &self, attempt: &HostReceiptAttempt, invocation: &EngineInvocationV1, observation: &EngineObservationV1, delivered: &str, ) -> Result<PublishedCanonicalReceipt, &'static str>
Verify and publish the exact delivered view as one canonical receipt.
Auto Trait Implementations§
impl Forget for HostReceiptAuthority
impl Freeze for HostReceiptAuthority
impl Move for HostReceiptAuthority
impl RefUnwindSafe for HostReceiptAuthority
impl Send for HostReceiptAuthority
impl Sync for HostReceiptAuthority
impl Unpin for HostReceiptAuthority
impl UnsafeUnpin for HostReceiptAuthority
impl UnwindSafe for HostReceiptAuthority
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more