mod planning_storage

module planning_storage

Opt-in phase storage advice from captured scheduler and quota observations.

A placement is a planning choice, never storage admission. Execution must verify the selected domain and backing filesystem before its normal gate.

Structs and Unions

struct StoragePolicy

One policy and scheduler snapshot captured without subsequent path reads.

Implementations

impl StoragePolicy

Functions

fn annotate(&self, document: &mut Value, required: &BTreeSet<String>, evaluated_at: &str) -> Result<()>

Attach advice to every nonempty CPU-prerequisite, prelude and shard phase.

Errors

The shared observation is stale, a phase lacks a configured profile, generated phase metadata is malformed, or accounting overflows.

fn capture(path: &Path, admission_margin: u64) -> Result<Self>

Capture a policy and its expected scheduler snapshot once.

Errors

A file, schema, resource request, margin or captured digest is invalid.

fn fingerprint(&self) -> String

Digests of the exact policy and snapshot bytes that decide placement.