pub enum Acceptance {
Check {
desc: String,
run: String,
cwd: Option<String>,
expect_exit: Option<i32>,
},
Assertion {
desc: String,
},
}Expand description
A whole-feature acceptance criterion — an executable check or an
LLM-judged assertion. Internally tagged on kind, so an unknown kind
fails deserialization (surfaced as PlanValidationError::Malformed).
deny_unknown_fields makes an undeclared key inside a variant (e.g. a
run on an assertion, or a stray budget on a check) a hard
deserialization error, matching the JSON Schema’s additionalProperties: false on each acceptance variant. Acceptance items therefore have no
additive-optional seam in v3 — the same stance the schema takes; a future
minor that needs one would move to a captured-extra shape (as the
Chunk/Check structs use) under governed evolution.
Variants§
Check
An executable end-to-end check (desc + shell/test run, with optional
cwd / expect_exit precision — same flexible shape as Check).
Fields
Assertion
An LLM-judged criterion (no executable command).
Implementations§
Source§impl Acceptance
impl Acceptance
Sourcepub fn is_check(&self) -> bool
pub fn is_check(&self) -> bool
True for the executable Acceptance::Check arm.
Trait Implementations§
Source§impl Clone for Acceptance
impl Clone for Acceptance
Source§fn clone(&self) -> Acceptance
fn clone(&self) -> Acceptance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more