fabric/store/statistics

Pure diagnostic metadata for storage aggregation. This projection contains no prompts, outputs or deployed code and never authorizes execution.

Types

pub type Execution {
  Active
  Waiting
  Finished
}

Constructors

  • Active

    Work needs a runner; the backend’s live lease distinguishes working from unattended. Classification alone cannot know whether a runner exists.

  • Waiting
  • Finished
pub type Metadata {
  Run(
    id: run.RunId,
    execution: Execution,
    approval: Bool,
    reconciliation: Bool,
  )
  Budget(id: run.RunId)
}

Constructors

Values

pub fn encode(storage_key: String, encoded: String) -> String

Unknown or mismatched source records encode the version only. Backends retain these as explicit unknowns; refreshing cannot invent a healthy state.

pub fn inspect(encoded: String) -> Result(Metadata, Nil)

Reads supported agent, graph and budget records through their real decoders. Flags describe this record only; child requests are not copied to ancestors. Ended agents can retain uncertain effects requiring external reconciliation.

pub const version: Int

Advance when supported formats or classification rules change. A backend must also match the projection’s source revision to the stored revision.

✨ Search Document