pub struct Options {
pub as_of: Option<String>,
pub drift: bool,
pub report_stale: bool,
pub compatibility: Option<Compatibility>,
pub baseline: Option<Baseline>,
pub only: Vec<String>,
pub consumers: Vec<String>,
pub overrides: BTreeMap<PathBuf, Vec<u8>>,
pub baseline_document: Option<Vec<u8>>,
pub trust: Trust,
}Expand description
Everything a run needs beyond the config.
Fields§
§as_of: Option<String>The date suppression expiry is evaluated against. None means expiry
is not evaluated at all; the CLI passes today unless --as-of is given.
drift: boolRun declared generator commands. Off by default, and unreachable
without the flag, so brake check stays safe on an untrusted
repository.
report_stale: boolReport suppressions that matched nothing. Only correct for a run that covered everything.
compatibility: Option<Compatibility>Override the configured compatibility level for every contract.
baseline: Option<Baseline>Override the configured baseline for every contract.
only: Vec<String>Restrict to these contract names.
consumers: Vec<String>Restrict to these consumer names — --consumer, which mirrors
--contract. Empty means every declared consumer.
overrides: BTreeMap<PathBuf, Vec<u8>>Documents read from memory instead of the working tree, keyed by repository-relative path.
An agent’s unsaved draft goes here, so the draft gets the whole check —
suppressions, consumer rules, cross-file $refs — rather than whatever
subset an adapter could reassemble. Only the head side reads them: an
edit to the working tree must not change what “before” means. See
design/09-one-core-three-surfaces.md.
baseline_document: Option<Vec<u8>>A baseline supplied as a document rather than resolved from the
repository. It has no siblings brake can locate, so a cross-file $ref
in it is reported as unmodelled.
trust: TrustWhether this caller may run a declared generator. drift asks for it;
this decides whether it is allowed, so the refusal lives here rather
than in every adapter that must remember not to ask.