ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Package.Admission

Description

Decide public artifact admission and retain skipped or unreached rule evidence. The serve path and worker share rules, filename selection, and integrity-floor checks.

Synopsis

Documentation

data ArtifactAdmission Source #

A public artifact verdict. Inability retains the shared serve and worker retry classification.

Constructors

AdmissionAdmit Filename Artifact (NonEmpty Hash)

The matched filename and artifact, with digests that meet the integrity floor.

AdmissionDenied Decision

A decisive rule or deny-by-default refusal.

AdmissionUndecidable Decision

A fail-closed inability whose decision carries retry advice.

AdmissionFileAbsent

Current metadata contains no artifact with the requested filename.

AdmissionIntegrityMissing

The selected artifact has no digest.

AdmissionBelowFloor

The selected artifact has digests, but none meets the public floor.

admissionTransience :: ArtifactAdmission -> Maybe Transience Source #

Retry advice for an inability, shared by the serve and worker paths.

admitArtifactWithDecision :: EvalContext -> [PreparedRule] -> MinIntegrity -> Filename -> PackageDetails -> IO (ArtifactAdmission, Decision) Source #

Retain the evaluated decision for a mirror publication audit without running the rules again.