Repository navigation
Expand file tree
/
Copy pathmutations.toml
More file actions
852 lines (758 loc) · 31.9 KB
/
Copy pathmutations.toml
File metadata and controls
852 lines (758 loc) · 31.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
# Mutation proofs for fusiform's standing guards, replayed by ckdev-mutate.
#
# Each row breaks one guarded rule (`old` replaced by `new`) and names, by full
# libtest path, the tests that must go red. CI replays the rows a change touches
# on every push and every row nightly; see the README's "Mutation proofs"
# section for how to add one. Prefer `ckdev-mutate prove`, which appends a row only
# when the named tests actually fail.
[[control]]
id = "correction-never-creates-a-fact"
guards = "a correction naming a fact with no recorded history is refused, never planned into existence"
file = "crates/fusiform-store/src/correct.rs"
old = " refusals.push(CorrectionRefusal::NoSuchFact {"
new = " let _ = (CorrectionRefusal::NoSuchFact {"
edits = []
test_file = "crates/fusiform-store/tests/it/correct.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["correct::correcting_a_fact_with_no_history_is_refused"]
only = false
timeout_s = 600
[[control]]
id = "point-in-time-boundary-inclusive-outer"
guards = "a point-in-time read AT an era's boundary instant serves that era (outer select's <=)"
file = "crates/fusiform-store/src/serve.rs"
old = ' AND e.boundary_at_ms <= ?2 \'
new = ' AND e.boundary_at_ms < ?2 \'
edits = []
test_file = "crates/fusiform-store/tests/it/serve.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["serve::a_read_at_a_boundary_instant_returns_the_new_value"]
only = false
timeout_s = 600
[[control]]
id = "point-in-time-boundary-inclusive-subquery"
guards = "a point-in-time read AT an era's boundary instant serves that era (correlated subquery's <=)"
file = "crates/fusiform-store/src/serve.rs"
old = 'AND e2.boundary_at_ms <= ?2 \'
new = 'AND e2.boundary_at_ms < ?2 \'
edits = []
test_file = "crates/fusiform-store/tests/it/serve.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["serve::a_read_at_a_boundary_instant_returns_the_new_value"]
only = false
timeout_s = 600
[[control]]
id = "ingest-diff-compares-the-upstream-claim"
guards = "the ingest diff compares parsed upstream claims with producer annotations stripped, so fusiform's own annotation never opens an era"
file = "crates/fusiform-store/src/ingest.rs"
old = " upstream_claim_of(a) == upstream_claim_of(b)"
new = " a == b"
edits = []
test_file = "crates/fusiform-store/tests/it/ingest.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["ingest::an_annotation_fusiform_added_does_not_open_an_era"]
only = false
timeout_s = 600
[[control]]
id = "ingest-diff-call-site"
guards = "plan_ingest decides 'unchanged' through states_the_same_upstream_claim, not a text comparison"
file = "crates/fusiform-store/src/ingest.rs"
old = " .map(|held| states_the_same_upstream_claim(held, &value_json))"
new = " .map(|held| *held == value_json)"
edits = []
test_file = "crates/fusiform-store/tests/it/ingest.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["ingest::an_annotation_fusiform_added_does_not_open_an_era"]
only = false
timeout_s = 600
[[control]]
id = "stored-rate-carries-no-inherited-from"
guards = "a stored priced rate carries only the upstream's fields; an inherited_from key in storage reddens the stored-shape tests"
file = "crates/fusiform-store/src/ingest.rs"
old = ' r#"{{"state":"priced","units":{},"exponent":{},"currency":"{}"}}"#,'
new = ' r#"{{"state":"priced","units":{},"exponent":{},"currency":"{}","inherited_from":null}}"#,'
edits = []
test_file = "crates/fusiform-store/tests/it/mode_rates.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["mode_rates::a_moded_model_stores_its_mode_rates_beside_its_base_rates"]
only = false
timeout_s = 600
[[control]]
id = "plan-price-dropped-key-is-tombstoned"
guards = "a plan-price key dropped from the curated file gets a tombstone era rather than staying current"
file = "crates/fusiform-store/src/lib.rs"
old = " if curated.contains(&(provider_id.as_str(), tier.as_str())) {"
new = " if true {"
edits = []
test_file = "crates/fusiform-store/tests/it/schema_doc.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["schema_doc::a_key_dropped_from_the_file_is_tombstoned"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "shrink-guard-limit-is-inclusive"
guards = "the ingest shrink guard allows a drop of exactly MAX_SHRINK_FRACTION and refuses one model more"
file = "crates/fusiform-module/src/loop_.rs"
old = " if fraction <= MAX_SHRINK_FRACTION {"
new = " if fraction < MAX_SHRINK_FRACTION {"
edits = []
test_file = "crates/fusiform-module/tests/it/shrink_guard.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["shrink_guard::the_limit_is_where_it_says_it_is"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "shrink-guard-call-site"
guards = "apply consults implausible_shrink before writing, so a collapsed document is refused"
file = "crates/fusiform-module/src/loop_.rs"
old = " if let Some(reason) = implausible_shrink(ctx, &catalog).map_err(TickError::Store)? {"
new = " if let Some(reason) = None::<String> {"
edits = []
test_file = "crates/fusiform-module/tests/it/shrink_guard.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["shrink_guard::a_collapsed_document_is_refused_and_writes_nothing", "shrink_guard::an_empty_document_is_refused"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "first-poll-sends-no-validator"
guards = "a process's first poll is unconditional: no If-None-Match until this process has read a full document"
file = "crates/fusiform-module/src/loop_.rs"
old = " let etag = if ctx.document_read.load(Ordering::Acquire) {"
new = " let etag = if true {"
edits = []
test_file = "crates/fusiform-module/tests/it/conditional_get.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["conditional_get::a_new_process_reads_the_document_before_trusting_a_stored_validator"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "first-poll-gate-reopens-after-a-body"
guards = "after the first full read, later polls are conditional again (the read flag is set)"
file = "crates/fusiform-module/src/loop_.rs"
old = " ctx.document_read.store(true, Ordering::Release);"
new = " ctx.document_read.store(false, Ordering::Release);"
edits = []
test_file = "crates/fusiform-module/tests/it/conditional_get.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["conditional_get::a_new_process_reads_the_document_before_trusting_a_stored_validator"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "inherit-never-tops-up-a-published-card"
guards = "serve-time inheritance never adds to a row that published any rate, including stated_zero"
file = "crates/fusiform-module/src/route.rs"
old = " if publishes_a_rate {"
new = " if false {"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::inheritance_tests::a_provider_that_published_any_rate_keeps_its_own_card", "route::inheritance_tests::a_partial_card_is_not_topped_up_from_the_creator"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "inherit-closed-weights-never-inherit"
guards = "a closed-weight row never inherits a creator's rate"
file = "crates/fusiform-module/src/route.rs"
old = ' if facts.get("model.open_weights").and_then(|v| v.as_bool()) != Some(true) {'
new = " if false {"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::inheritance_tests::a_closed_weight_row_does_not_inherit"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "inherit-call-site-in-render"
guards = "the bulk and single-model render path actually calls inherit_rate_for"
file = "crates/fusiform-module/src/route.rs"
old = " inherit_rate_for(store, source, creators, &mut facts, &model.model_id);"
new = " let _ = (store, creators);"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::inheritance_tests::the_bulk_path_inherits_under_a_rate_filter"]
only = false
timeout_s = 600
build_timeout_s = 1800
hub = "This is the one call that applies rate inheritance on render, and the golden payload fixture in the it suite deliberately pins an inherited rate, so removing it changes served bytes there as well as the lib inheritance tests."
hub_targets = ["it"]
[[control]]
id = "refusal-no-coverage-code"
guards = "an unknown provider or model is refused with no_coverage, not bad_request"
file = "crates/fusiform-module/src/route.rs"
old = " code: fusiform_protocol::CODE_NO_COVERAGE,"
new = " code: fusiform_protocol::CODE_BAD_REQUEST,"
edits = []
test_file = "crates/fusiform-module/tests/it/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["route::an_unknown_provider_is_refused_rather_than_answered_with_zero", "route::an_unknown_model_names_the_provider_as_known"]
only = false
timeout_s = 600
build_timeout_s = 1800
hub = "Every coverage refusal is built by this one constructor (unknown provider or model, an unknown observation, and the refusals the alias path passes on), and the alias and dispatch tests in route.rs's own unit tests assert that code as well as the it suite."
hub_targets = ["fusiform_module"]
[[control]]
id = "refusal-unknown-model-call-site"
guards = "unknown_model builds a no_coverage refusal"
file = "crates/fusiform-module/src/route.rs"
old = """
fn unknown_model(provider_id: &str, model_id: &str) -> RouteError {
RouteError::no_coverage("""
new = """
fn unknown_model(provider_id: &str, model_id: &str) -> RouteError {
RouteError::bad_request("""
edits = []
test_file = "crates/fusiform-module/tests/it/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["route::an_unknown_model_names_the_provider_as_known"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "refusal-unknown-provider-bulk-call-site"
guards = "a bulk read of an unknown provider is refused with no_coverage"
file = "crates/fusiform-module/src/route.rs"
old = """
return Err(RouteError::no_coverage(format!(
"unknown provider {provider:?}"""
new = """
return Err(RouteError::bad_request(format!(
"unknown provider {provider:?}"""
edits = []
test_file = "crates/fusiform-module/tests/it/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["route::an_unknown_provider_is_refused_rather_than_answered_with_zero"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "wire-rate-amount-is-flattened"
guards = "RateValue::Priced flattens its amount, so the published type decodes the rates fusiform serves"
file = "crates/fusiform-protocol/src/money.rs"
old = " #[serde(flatten)]"
new = ' #[serde(rename = "amount")]'
edits = []
test_file = "crates/fusiform-module/tests/it/wire_types_decode_the_wire.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["wire_types_decode_the_wire::every_served_rate_decodes_with_the_protocol_type"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "scan-floor-boundary-schema-extractor"
guards = "the boundary-kind schema extractor fails loudly when it reads nothing"
file = "crates/fusiform-store/tests/it/boundary_vocabulary.rs"
old = " .filter(|s| !s.is_empty())"
new = " .filter(|s| s.is_empty())"
edits = []
test_file = "crates/fusiform-store/tests/it/boundary_vocabulary.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["boundary_vocabulary::every_kind_the_encoder_produces_is_accepted_by_the_schema", "boundary_vocabulary::the_schema_accepts_no_kind_the_encoder_cannot_produce"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "scan-floor-boundary-encoder-extractor"
guards = "the boundary-kind encoder extractor fails loudly when it reads nothing"
file = "crates/fusiform-store/tests/it/boundary_vocabulary.rs"
old = 'line.strip_prefix("BoundaryKind::")'
new = 'line.strip_prefix("BoundaryKindX::")'
edits = []
test_file = "crates/fusiform-store/tests/it/boundary_vocabulary.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["boundary_vocabulary::every_kind_the_encoder_produces_is_accepted_by_the_schema", "boundary_vocabulary::the_schema_accepts_no_kind_the_encoder_cannot_produce"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "scan-floor-measured-document-extractor"
guards = "the measurement-document field extractor fails loudly when it reads nothing"
file = "crates/fusiform-core/tests/it/measured_fields_are_read_or_declared.rs"
old = " if !first.starts_with('`') {"
new = " if first.starts_with('`') {"
edits = []
test_file = "crates/fusiform-core/tests/it/measured_fields_are_read_or_declared.rs"
runner = "cargo"
package = "fusiform-core"
target = "--test it"
expect_red = ["measured_fields_are_read_or_declared::every_measured_field_is_read_or_declared_unread", "measured_fields_are_read_or_declared::the_document_names_every_field_the_parser_reads"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "scan-floor-measured-parser-extractor"
guards = "the RawModel field extractor fails loudly when it reads nothing"
file = "crates/fusiform-core/tests/it/measured_fields_are_read_or_declared.rs"
old = " let read: BTreeSet<String> = body[..end]"
new = " let read: BTreeSet<String> = body[..0]"
edits = []
test_file = "crates/fusiform-core/tests/it/measured_fields_are_read_or_declared.rs"
runner = "cargo"
package = "fusiform-core"
target = "--test it"
expect_red = ["measured_fields_are_read_or_declared::every_measured_field_is_read_or_declared_unread", "measured_fields_are_read_or_declared::the_document_names_every_field_the_parser_reads", "measured_fields_are_read_or_declared::a_declared_unread_field_is_actually_unread"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "store-write-fence-observation"
guards = "every store write runs inside with_conn_fenced; a write moved outside the fence is named by the source scan"
file = "crates/fusiform-store/src/lib.rs"
old = " let id = self.inner.with_conn_fenced(|tx| {"
new = " let id = self.inner.with_conn(|tx| {"
edits = []
test_file = "crates/fusiform-store/tests/it/every_write_is_fenced.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["every_write_is_fenced::no_write_escapes_the_fence"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "correction-cas-refuses-a-moved-boundary"
guards = "a poll or correction landing between plan and apply makes apply_correction refuse instead of writing the old value back"
file = "crates/fusiform-store/src/correct.rs"
old = " if current.boundary_at != row.current_since {"
new = " if false {"
edits = []
test_file = "crates/fusiform-store/tests/it/correct.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["correct::a_poll_between_plan_and_apply_is_refused", "correct::a_second_correction_between_plan_and_apply_is_refused"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "refusal-unknown-provider-single-model-call-site"
guards = "a single-model read of an unknown provider is refused with no_coverage"
file = "crates/fusiform-module/src/route.rs"
old = """
return Err(RouteError::no_coverage(format!(
"unknown provider {provider_id:?}"""
new = """
return Err(RouteError::bad_request(format!(
"unknown provider {provider_id:?}"""
edits = []
test_file = "crates/fusiform-module/tests/it/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["route::an_unknown_provider_is_refused_on_the_single_model_path_too"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "scan-floor-schema-doc-table-names"
guards = "the design-note table-name extractor fails loudly when it reads nothing"
file = "crates/fusiform-store/tests/it/schema_doc.rs"
old = "line.split('`').skip(1).step_by(2)"
new = "line.split('~').skip(1).step_by(2)"
edits = []
test_file = "crates/fusiform-store/tests/it/schema_doc.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["schema_doc::the_design_note_names_the_tables_that_exist"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "scan-floor-golden-served-facts"
guards = "the SERVED_FACTS key scan fails loudly when it reads nothing"
file = "crates/fusiform-module/tests/it/golden_payload.rs"
old = '.match_indices("key: \"")'
new = '.match_indices("kee: \"")'
edits = []
test_file = "crates/fusiform-module/tests/it/golden_payload.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["golden_payload::every_served_fact_key_reaches_the_fixture"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "correction-apply-call-site"
guards = "a committed catalog.correct reaches apply_correction and its compare-and-swap"
file = "crates/fusiform-module/src/route.rs"
old = " apply_correction(store, source, &plan, now).map_err(|e| store_error(&e))?;"
new = " let _ = now;"
edits = []
test_file = "crates/fusiform-module/tests/it/correct_route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["correct_route::a_committed_correction_makes_the_window_refuse"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "inherit-per-key-never-overwrites"
guards = "inheritance never replaces a rate key the row already carries"
file = "crates/fusiform-module/src/route.rs"
old = " if facts.contains_key(&key) {"
new = " if false {"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::inheritance_tests::a_published_rate_is_left_exactly_as_published"]
only = false
timeout_s = 600
equivalent = "Dead under the gate above it: inherit_rate_for returns early when the row carries any rate.* key, and every key this loop considers starts with rate., so facts.contains_key(&key) is always false when it runs. Proved SURVIVED across the whole fusiform-module package. Drop this marker if the publishes_a_rate gate is ever narrowed, because this check then becomes the only thing keeping a published rate from being overwritten."
equivalent_guard = "crates/fusiform-module/src/route.rs::inherit_rate_for: `if publishes_a_rate { return; }`, where publishes_a_rate is any key starting with prefix::RATE, runs before the loop, and the loop only considers keys starting with prefix::RATE"
[[control]]
id = "inherit-point-in-time-never-inherits"
guards = "a point-in-time catalog.get serves what the catalog held and never an inherited rate"
file = "crates/fusiform-module/src/route.rs"
old = "if let (Some((store, creators)), None) = (inherit, at) {"
new = "if let (Some((store, creators)), _) = (inherit, at) {"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::inheritance_tests::a_point_in_time_read_does_not_inherit"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "preset-named-is-refused"
guards = "a call carrying a tool preset is refused by name, never served as though the preset were absent"
file = "crates/fusiform-module/src/route.rs"
old = "if let Some(preset) = &call.preset {"
new = "if let Some(preset) = None::<&String> {"
edits = []
test_file = "crates/fusiform-module/tests/it/scope_and_preset.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
expect_red = ["scope_and_preset::a_named_preset_is_refused_and_an_absent_one_is_served"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "artifact-status-reads-marked-action"
guards = "an observation counts as an artifact only while its latest event is a mark"
file = "crates/fusiform-store/src/lib.rs"
old = "AND ev.action = 'marked'))"
new = "AND ev.action = 'nonesuch'))"
edits = []
test_file = "crates/fusiform-store/tests/it/ingest.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["ingest::an_artifact_poll_is_not_a_change", "ingest::a_real_change_inside_a_marked_poll_is_kept", "ingest::a_retracted_mark_stops_excluding_and_stays_on_the_record"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "artifact-status-is-the-latest-event"
guards = "a retraction after a mark ends the exclusion: status comes from the newest event, not the oldest"
file = "crates/fusiform-store/src/lib.rs"
old = "WHERE ev.id = (SELECT MAX(id)"
new = "WHERE ev.id = (SELECT MIN(id)"
edits = []
test_file = "crates/fusiform-store/tests/it/ingest.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["ingest::a_retracted_mark_stops_excluding_and_stays_on_the_record"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "artifact-exclusion-needs-a-restatement"
guards = "an era inside a marked poll is skipped only if it restates the previous claim, so a real change in that poll still counts"
file = "crates/fusiform-store/src/lib.rs"
old = "if *marked && restates_previous {"
new = "if *marked {"
edits = []
test_file = "crates/fusiform-store/tests/it/ingest.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["ingest::a_real_change_inside_a_marked_poll_is_kept"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "plane-undeclared-subscription-never-falls-back"
guards = "an undeclared non-apikey plane is refused before any API rows can be served"
file = "crates/fusiform-module/src/route.rs"
old = 'if declared.is_none() && auth_method != "apikey" {'
new = "if false { // NON-VACUITY BREAK"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::billing_plane_tests::undeclared_subscription_planes_never_fall_back_to_api_rows"]
only = false
hub = "The golden payload fixture in the it suite pins an undeclared-plane refusal (openai with oauth), and the golden plane tests serve the whole fixture through one helper, so a plane that falls back to API rows reddens each of them as well as the lib test."
hub_targets = ["it"]
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "plane-upstream-never-overwrites-published-key"
guards = "an upstream plane rule leaves every published price zero or tombstone exactly as published while filling missing tiers"
file = "crates/fusiform-module/src/route.rs"
old = "if plane.kind == PlaneKind::Upstream && before_rules.contains_key(&fact_key) {"
new = "if false { // NON-VACUITY BREAK"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::billing_plane_tests::upstream_rules_never_overwrite_a_published_key_but_fill_each_missing_tier"]
only = true
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "plane-point-in-time-is-refused"
guards = "a billing plane read carrying at_ms is refused before historical rows are read"
file = "crates/fusiform-module/src/route.rs"
old = "if request.at_ms.is_some() {"
new = "if false { // NON-VACUITY BREAK"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::billing_plane_tests::plane_views_refuse_every_point_in_time_read"]
only = false
hub = "The golden payload fixture in the it suite pins a point-in-time plane read as a refusal, and the golden plane tests serve the whole fixture through one helper, so serving that read reddens each of them as well as the lib test."
hub_targets = ["it"]
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "plane-quota-proxy-marker-is-set"
guards = "every unmarked quota-proxy rate is marked with the real provider family and quota_proxy basis"
file = "crates/fusiform-module/src/route.rs"
old = """
obj.insert("inherited_from".to_string(), marker.clone());
}
}
// Targets and tier suffixes come from the pre-rule view."""
new = """
let _ = ▮ // NON-VACUITY BREAK
}
}
// Targets and tier suffixes come from the pre-rule view."""
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::billing_plane_tests::quota_proxies_mark_each_unmarked_rate_with_its_real_family"]
only = false
hub = "The golden payload fixture in the it suite pins the anthropic oauth and chatgpt plane cases with every quota-proxy rate marked, so dropping the marker changes those served bytes as well as failing the lib test."
hub_targets = ["it"]
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "plane-already-marked-rate-keeps-first-hop"
guards = "a quota proxy preserves the first hop already recorded on a borrowed rate"
file = "crates/fusiform-module/src/route.rs"
old = """
if obj.contains_key("inherited_from") {
// Already borrowed (inherited or aliased): keep the original"""
new = """
if false { // NON-VACUITY BREAK
// Already borrowed (inherited or aliased): keep the original"""
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::billing_plane_tests::quota_proxies_preserve_the_first_hop_of_inherited_rates", "route::billing_plane_tests::quota_proxies_do_not_erase_alias_markers"]
only = true
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "plane-quota-proxy-drops-mode-rates"
guards = "quota-proxy planes drop mode rates rather than imply that an API mode is available on a subscription"
file = "crates/fusiform-module/src/route.rs"
old = "facts.retain(|key, _| !fusiform_store::rate_key::is_mode_rate(key));"
new = "facts.retain(|_, _| true); // NON-VACUITY BREAK"
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::billing_plane_tests::quota_proxies_drop_all_mode_rates"]
only = false
hub = "The golden payload fixture in the it suite pins the chatgpt plane case without mode rates, so keeping them changes those served bytes as well as failing the lib test."
hub_targets = ["it"]
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "plane-absent-auth-method-keeps-wire-bytes"
guards = "an absent auth_method leaves the pre-plane served bytes unchanged rather than selecting an implicit plane"
file = "crates/fusiform-module/src/route.rs"
old = "let Some(auth_method) = request.auth_method.as_deref() else {"
new = 'let Some(auth_method) = request.auth_method.as_deref().or(Some("apikey")) else { // NON-VACUITY BREAK'
edits = []
test_file = "crates/fusiform-module/src/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["route::billing_plane_tests::a_read_without_auth_method_keeps_the_pre_plane_wire_bytes", "route::alias_tests::a_bulk_read_includes_the_alias", "route::alias_tests::a_point_in_time_read_never_aliases", "route::inheritance_tests::a_point_in_time_read_does_not_inherit"]
only = false
hub = "Every ordinary catalog read in the it suite (route, bootstrap and the golden fixture) sends no auth_method and asserts the pre-plane bytes, so defaulting it to a plane changes every one of those reads as well as the lib tests."
hub_targets = ["it"]
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "stored-rate-never-carries-not-established"
guards = "ingest never writes the serve-only not_established reason into an era including withdrawal tombstones"
file = "crates/fusiform-store/src/ingest.rs"
old = 'MissingRate => "missing_rate",'
new = 'MissingRate => "not_established", // NON-VACUITY BREAK'
edits = []
test_file = "crates/fusiform-store/tests/it/ingest.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["ingest::a_withdrawn_rate_is_tombstoned_rather_than_left_current", "ingest::ingested_eras_never_carry_serve_only_billing_states", "serve::a_withdrawn_rate_does_not_stay_current"]
only = true
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "stored-rate-never-carries-billed-as"
guards = "ingest never replaces a published zero with a serve-only billed_as pointer in stored history"
file = "crates/fusiform-store/src/ingest.rs"
old = 'RateValue::StatedZero { inherited_from: _ } => r#"{"state":"stated_zero"}"#.to_string(),'
new = 'RateValue::StatedZero { inherited_from: _ } => r#"{"state":"billed_as","key":"rate.input"}"#.to_string(), // NON-VACUITY BREAK'
edits = []
test_file = "crates/fusiform-store/tests/it/ingest.rs"
runner = "cargo"
package = "fusiform-store"
target = "--test it"
expect_red = ["ingest::a_withdrawn_rate_is_tombstoned_rather_than_left_current", "ingest::ingested_eras_never_carry_serve_only_billing_states", "mode_rates::a_moded_model_stores_its_mode_rates_beside_its_base_rates"]
only = true
timeout_s = 600
build_timeout_s = 5400
[[control]]
id = "plan-quota-malformed-keeps-price"
guards = "a malformed quota value is rejected without discarding its independently sourced price"
file = "crates/fusiform-module/src/plan_prices.rs"
old = """
rejects.push(at(&format!("quota_value: {reason}")));
None"""
new = """
rejects.push(at(&format!("quota_value: {reason}")));
if price.is_some() { continue; }
None"""
edits = []
test_file = "crates/fusiform-module/src/plan_prices.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
expect_red = ["plan_prices::tests::malformed_quota_is_rejected_without_losing_the_price"]
only = true
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "plan-quota-excluded-from-price-claim"
guards = "the claim passed to append_plan_prices excludes quota value so a multiplier-only edit writes zero price eras"
file = "crates/fusiform-module/src/plan_prices.rs"
old = " minor_units: r.price.map(|a| a.minor_units),"
new = " minor_units: r.price.map(|a| a.minor_units + match &r.quota_value { Some(fusiform_protocol::QuotaValueWire::Measured { low, .. }) => low.units, _ => 0 }),"
edits = []
test_file = "crates/fusiform-module/src/plan_prices.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
select = "expected"
expect_red = ["plan_prices::tests::changing_only_quota_value_writes_no_plan_price_era"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "plan-quota-review-date"
guards = "the time-triggered plan-price gate also covers measured and refused quota value deadlines"
file = "crates/fusiform-module/src/plan_prices.rs"
old = " if review_by_ms < now_ms {"
new = " if false && review_by_ms < now_ms {"
edits = []
test_file = "crates/fusiform-module/src/plan_prices.rs"
runner = "cargo"
package = "fusiform-module"
target = "--lib"
select = "expected"
expect_red = ["plan_prices::tests::overdue_quota_values_fire_for_both_shapes"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "plan-quota-served-join"
guards = "plan.prices joins the compiled quota value onto current store keys at request time"
file = "crates/fusiform-module/src/route.rs"
old = """
quota_value: crate::plan_prices::rows()
.iter()
.find(|curated| curated.provider_id == r.provider_id && curated.tier == r.tier)
.filter(|_| r.minor_units.is_some())
.and_then(|curated| curated.quota_value.clone()),"""
new = " quota_value: None,"
edits = []
test_file = "crates/fusiform-module/tests/it/route.rs"
runner = "cargo"
package = "fusiform-module"
target = "--test it"
select = "expected"
expect_red = ["route::plan_prices_joins_quota_values_and_omits_them_for_tombstones"]
only = false
timeout_s = 600
build_timeout_s = 1800