string Id { get; }
Source
Gets the stable plan resource identifier handled by this probe.
Configures an explicit EvidenceHost lifecycle.
RequireTrustedEnvelopeWhether every run requires an accepted envelope verifier result.ArtifactDirectoryControlled root for producer artifacts. Defaults to TestResults/evidence/artifacts.Describes a secret-safe execution-envelope validation result.
AcceptedWhether the envelope is accepted for the requested claim scope.AttestedWhether the verifier has independent attestation; v1 normally returns false.DiagnosticSecret-safe failure or explanatory detail.Validates a CI-provided trusted execution envelope without exposing its secret values to a manifest.
ValueTask<EvidenceEnvelopeResult> VerifyAsync(EvidencePlan plan, CancellationToken cancellationToken)
Source
Validates the caller's protected CI context for the resolved plan.
planResolved plan for the current execution.cancellationTokenCancellation requested by the caller.A constrained acceptance result.
Represents an explicitly registered readiness probe for a plan resource.
Task WaitUntilReadyAsync(CancellationToken cancellationToken)
Source
Waits until the consumer-owned resource is ready or the supplied deadline cancels.
cancellationTokenDeadline and caller cancellation.A task that completes only when the resource is ready.
string Id { get; }
Source
Gets the stable plan resource identifier handled by this probe.
Collects the only resource, producer, and envelope registrations an EvidenceHost may use.
void AddResource(IEvidenceResourceReadiness resource)
Source
Adds one explicitly named readiness probe.
resourceConsumer-owned resource readiness probe.void AddProducer(IEvidenceProducer producer)
Source
Adds one explicitly named typed producer.
producerConsumer-owned producer.void SetEnvelopeVerifier(IEvidenceExecutionEnvelopeVerifier verifier)
Source
Sets the single trusted execution-envelope verifier used by this host.
verifierBase-owned verifier implementation.IReadOnlyDictionary<string, IEvidenceResourceReadiness> Resources { get; }
Source
Gets explicitly registered resource readiness probes.
IReadOnlyDictionary<string, IEvidenceProducer> Producers { get; }
Source
Gets explicitly registered typed producers.
IEvidenceExecutionEnvelopeVerifier? EnvelopeVerifier { get; set; }
Source
Gets the optional trusted execution-envelope verifier.
Runs a separate, consumer-owned EvidenceHost with explicit registrations and bounded cleanup.
EvidenceHostBootstrap Create(EvidencePlan plan, Action<EvidenceHostRegistration> configure, EvidenceHostOptions? options = null, TimeProvider? timeProvider = null)
Source
Creates a host with registrations supplied only by explicit caller code.
planResolved immutable plan.configureConsumer-owned registration callback.optionsOptional lifecycle constraints.timeProviderClock seam for deterministic tests and deadline handling.A single-use EvidenceHost instance.
Task<EvidenceManifest> RunAsync(bool observationOnly = false, CancellationToken cancellationToken = default)
Source
Validates envelope and registrations, waits for resources, runs selected producers, and collects a manifest.
observationOnlyWhether the caller intentionally requests a non-gate observation.cancellationTokenCaller cancellation for the complete bounded lifecycle.A terminal immutable manifest.
ValueTask DisposeAsync()
Source
Disposes registered resources and producers if the host has not already cleaned them up.
A task that completes when owned cleanup settles.
EvidencePlan Plan { get; }
Source
Gets the immutable plan owned by this host instance.
EvidenceHostState State { get; set; }
Source
Gets the current one-way EvidenceHost lifecycle state.
Represents a stable, user-facing EvidenceHost lifecycle failure.
string Code { get; }
Source
Gets the stable diagnostic code.
string Fix { get; }
Source
Gets the concrete recovery action.
Describes the lifecycle state of an explicit consumer-owned EvidenceHost instance.
Owns one consumer-composed Aspire application used only by an EvidenceHost run.
Build the supplied IDistributedApplicationBuilder in test or CI composition code, then register readiness adapters from this lease with EvidenceHostBootstrap. This type does not inspect the entry assembly and must not be added to normal application startup.
Task<EvidenceAspireApplication> StartAsync(IDistributedApplicationBuilder builder, CancellationToken cancellationToken = default)
Source
Builds and starts an explicitly supplied consumer Aspire application.
builderConsumer-composed Aspire builder.cancellationTokenCancellation requested while building or starting the application.An evidence-owned application lease that stops and disposes the application.
IEvidenceResourceReadiness CreateHealthReadiness(string evidenceResourceId, string aspireResourceName)
Source
Creates a readiness adapter that waits for the named Aspire resource's healthy state.
evidenceResourceIdDeclared EvidenceHost resource identifier.aspireResourceNameConsumer-owned Aspire resource name.An explicitly registered health readiness adapter.
ValueTask DisposeAsync()
Source
Stops and disposes the owned Aspire application. Repeated calls are safe.
A task that completes after bounded application cleanup.