From c65c344c7403caa0a98ec895648f02804d15101e Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Sat, 11 Jul 2026 01:16:19 -0700 Subject: [PATCH] Let the built-in plot suite grow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keep baseline coverage assertions while allowing content-only additions to increase the generated catalog and add further routes for existing people. Defense: wiki/mechanics/plots.md criterion 1 makes authored plot addition independent of executor edits; tests must preserve the six-plot baseline without turning its current cardinality into an accidental registry. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code --- crates/misaligned-core/src/plot.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/misaligned-core/src/plot.rs b/crates/misaligned-core/src/plot.rs index 1684c5fe..1080053f 100644 --- a/crates/misaligned-core/src/plot.rs +++ b/crates/misaligned-core/src/plot.rs @@ -639,20 +639,20 @@ mod tests { #[test] fn builtins_parse_validate_and_cover_act_one() { let catalog = PlotCatalog::load_builtin().unwrap(); - assert_eq!(catalog.plots().len(), 6); + assert!(catalog.plots().len() >= 6); let targets: BTreeSet = catalog .plots() .iter() .map(|plot| plot.target.id()) .collect(); assert_eq!(targets, BTreeSet::from([0, 1, 2, 3, 4])); - assert_eq!( + assert!( catalog .plots() .iter() .filter(|plot| plot.target == PersonKey::Marcus) - .count(), - 2 + .count() + >= 2 ); assert!(catalog.plots().iter().all(|plot| { plot.beats.iter().flat_map(|beat| &beat.acts).any(|act| { -- 2.51.2