Skip to main content

Module asset_import

Module asset_import 

Source
Expand description

Bounded cold-construction asset import jobs (AST-02). Bounded Q42 asset import jobs (AST-02).

Cold-construction framework: unique tempfile::TempDir, explicit byte / record / chunk budgets (chunk pass ≤ SENTINEL_PASS_BUDGET_BYTES), streaming Read, cancellation, quarantine counts, and promote-on-success. Caller supplies a local Path — no network downloader. The raw caller path is never mutated; only the job TempDir is cleaned via RAII.

Re-exports§

pub use crate::q42::asset_envelope::SENTINEL_PASS_BUDGET_BYTES;

Structs§

ChunkOutcome
Per-chunk accept / quarantine counts from the caller callback.
FeedProgress
Progress returned by one feed_chunk call.
ImportBudgets
Cold-construction budgets for one import job.
ImportJob
Cold-construction import job with RAII scratch cleanup.
PromotedArtifact
Artifact moved out of scratch on successful promote.

Enums§

ImportError
Fail-closed errors for cold-construction import jobs.
ImportStatus
Lifecycle status for a bounded import job.