Pin the three Cut 6c rules Soul's mutations survived
Soul's own suite found three validator rules no test measured: a fix's
commit was unpinned once `by` was `Some`, the validator's own bound on a
supersession was unpinned (only the schema's `maxItems` was), and the
reason on `Recorded` and `Withdrawn` had no bound test. Each is now a
forgery in the test that owns the arm: `Fixed { commit: "dirty-worktree",
by: Some(ruling) }` refused at `resolution.outcome.commit`; nine
supersessors refused as `FieldBound` at `resolution.outcome.by`, eight
accepted; a 1,001-byte reason refused at `resolution.outcome.reason` on
both outcomes.
Soul's S2, S14 and S10 join the Cut 6c suite under their own ids. Rerun:
M0 green (26 passed); M16-M22, S2, S14, S10 killed.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
fc7ad7457a
commit
fcfbda3f94
2 changed files with 58 additions and 4 deletions
|
|
@ -84,6 +84,29 @@
|
|||
Test = 'tests::a_verdict_claim_names_the_promise_and_the_mutation_it_measured'
|
||||
Old = 'mutations: Vec<Label>[8]'
|
||||
New = 'mutations: Vec<Label>[16]'
|
||||
},
|
||||
# Soul's Cut 6c pass: three rules that survived, each now pinned by a
|
||||
# forgery the fix batch added. The ids are Soul's.
|
||||
@{
|
||||
Id = 'S2'
|
||||
Rule = 'A fix''s commit is validated whether or not a record is named: Fixed { by: Some(..) } does not excuse the sha.'
|
||||
Test = 'tests::fixed_resolution_requires_a_commit_sha'
|
||||
Old = ' commit.validate(&format!("{field}.commit"))?;'
|
||||
New = ' if by.is_none() { commit.validate(&format!("{field}.commit"))?; }'
|
||||
},
|
||||
@{
|
||||
Id = 'S14'
|
||||
Rule = 'The validator bounds a supersession at eight itself; the schema''s maxItems is not the only bound.'
|
||||
Test = 'tests::resolution_outcome_referents_are_parsed_ids_of_their_kind'
|
||||
Old = ' Self::Superseded { by } => list(&format!("{field}.by"), by, 8),'
|
||||
New = ' Self::Superseded { by } => list(&format!("{field}.by"), by, 9),'
|
||||
},
|
||||
@{
|
||||
Id = 'S10'
|
||||
Rule = 'A Recorded or Withdrawn reason is bounded as a Line.'
|
||||
Test = 'tests::resolution_outcome_referents_are_parsed_ids_of_their_kind'
|
||||
Old = ' Self::Recorded { reason } | Self::Withdrawn { reason } => reason.validate(&format!("{field}.reason")),'
|
||||
New = ' Self::Recorded { reason } | Self::Withdrawn { reason } => { let _ = reason; Ok(()) }'
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue