Repository navigation
Expand file tree
/
Copy pathmutations.toml
More file actions
6188 lines (5778 loc) · 322 KB
/
Copy pathmutations.toml
File metadata and controls
6188 lines (5778 loc) · 322 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
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Mutation proofs replayed by the pinned ckdev-mutate runner (see README.md,
# "Mutation catalogue"). Each row deliberately breaks one production guard
# and names the Bun test(s) that must fail because of it. Each command row's
# list_command discovers those full names without executing their test bodies.
#
# Command-row `{test}` values are passed to Bun as regexes over the full test name,
# where describe names and test names are joined by single spaces. Most patterns
# anchor and escape each full name, spelling spaces with `\s` because ids cannot
# contain whitespace. Rows with a JUnit breadth audit (`broad_command`)
# use the literal leaf name instead, so `broad_id = '{name}'` maps the same
# testcase in the report; without those fields a `--broad` run cannot tell the
# named failure from collateral failures in the same file. `Ran {count} test` verifies one named test
# executes on both clean and mutated trees. Fixtures import from `dist/`, so the
# prebuild steps install and build before the baseline and each mutant. Replay
# with the Bun version CI pins (1.3.14): `rpc-declared-oversize-413-half-closes`
# guards a workaround for Bun 1.3.14 reusing a connection refused with 413, which
# Bun 1.4.2 no longer does.
prebuild = [
{ name = "install", command = ["bun", "install", "--frozen-lockfile"], timeout_s = 600 },
{ name = "build", command = ["bun", "run", "build"], timeout_s = 600 },
]
# --- lease clock domains ---
[[control]]
id = 'pool-lease-injected-clock'
guards = 'A pool using a synthetic logical clock cannot publish a lease that a wall-time withLock contender can evict'
file = 'src/store/refresh-lock.ts'
old = 'const lock = await acquireRefreshFileLock({'
new = '''const lock = await ((options: Parameters<typeof acquireRefreshFileLock>[0]) =>
import('../fs/refresh-file-lock.js').then(({ acquireRefreshFileLockWithClock }) =>
acquireRefreshFileLockWithClock({ ...options, now: () => 1_000_000 })))({ // NON-VACUITY BREAK: use the store test's injected logical clock for its leases'''
test_file = 'test/store/lease-clock.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/lease-clock.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/store/lease-clock.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^a\ssynthetic\sstore\sclock\scannot\slet\swithLock\sevict\sa\slive\spool-config\slease$']
expect_message = 'Received: true'
[[control]]
id = 'fs-lease-injected-clock'
guards = 'The public filesystem lease API ignores injected clocks even when JavaScript passes an extra now field'
file = 'src/fs/refresh-file-lock.ts'
old = 'return acquireRefreshFileLockWithClock({ ...options, now: Date.now })'
new = 'return acquireRefreshFileLockWithClock(options) // NON-VACUITY BREAK: honor an injected lease clock at runtime'
test_file = 'test/fs/lease-clock.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/fs/lease-clock.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/fs/lease-clock.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^public\sfilesystem\sleases\signore\sinjected\sclocks\sfor\sexpiry\srenewal\sand\seviction$']
expect_message = 'toBeGreaterThan'
# --- auth-plugin setup: OpenCode/Pi discovery and package registration ---
[[control]]
id = 'setup-static-claustrum'
guards = 'Setup Claustrum imports remain static so plugin rebuilds cannot strand a running host on a removed lazy chunk'
file = 'src/setup/detect.ts'
old = 'const connect = io.connect ?? connectClaustrumEnrollmentClient'
new = "const connect = io.connect ?? (await import('../claustrum/enrollment.js')).connectClaustrumEnrollmentClient /* NON-VACUITY BREAK */"
test_file = 'test/setup/bundle.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/bundle.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/bundle.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\skeeps\sClaustrum\simports\sstatic\sand\sbundles\swithout\slazy\schunks$']
expect_message = 'dynamic-import'
[[control]]
id = 'setup-config-not-private'
guards = 'Ordinary host config registration preserves its mode instead of using the secret-file writer'
file = 'src/setup/register.ts'
old = "import { writeHostConfigAtomic } from './config-write.js'"
new = "import { writeJsonAtomic as writeHostConfigAtomic } from '../fs/index.js' // NON-VACUITY BREAK"
test_file = 'test/setup/register.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/register.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/register.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sregistration\sconfig\sregistration\snever\sapplies\sprivate\swriter\spermissions$']
expect_message = 'Received: 384'
[[control]]
id = 'setup-windows-runtime-pi'
guards = 'Pi entry scripts are recognized behind Node and Bun image names'
file = 'src/setup/process-fence.ts'
old = "PI_SCRIPT_PATTERN.test(script) ? 'pi' : null"
new = "false /* NON-VACUITY BREAK */ ? 'pi' : null"
test_file = 'test/setup/fence.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/fence.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/fence.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sprocess\sfence\sWindows\sinspects\sNode\sand\sBun\scommand\slines\sfor\shost\sentry\sscripts$']
expect_message = 'toEqual'
[[control]]
id = 'setup-windows-idle-pid'
guards = 'Windows tasklist idle PID zero is accepted before filtering host processes'
file = 'src/setup/process-fence.ts'
old = 'pid < 0'
new = 'pid <= 0 /* NON-VACUITY BREAK */'
test_file = 'test/setup/fence.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/fence.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/fence.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sprocess\sfence\sWindows\sidle\sPID\szero\sand\scurrent\sruntime\sprocess\sare\svalid\slisting\srows$']
expect_message = 'cannot prove hosts are stopped'
[[control]]
id = 'setup-process-inspection-diagnostics'
guards = 'Inspection refusals retain the failing command step and safe timeout diagnostics'
file = 'src/setup/process-fence.ts'
old = 'this.timedOut = details.timedOut'
new = 'this.timedOut = false /* NON-VACUITY BREAK */'
test_file = 'test/setup/fence.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/fence.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/fence.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sprocess\sfence\sinspection\sfailures\scarry\ssafe\sstep\stimeout\sexit\ssignal\sand\sduration\sfields$']
expect_message = 'timedOut'
[[control]]
id = 'setup-windows-cim-budget'
guards = 'Cold Windows CIM startup has its own product latency budget while inspections past it still refuse'
file = 'src/setup/process-fence.ts'
old = 'const WINDOWS_CIM_TIMEOUT_MS = 45_000'
new = 'const WINDOWS_CIM_TIMEOUT_MS = 15_000 /* NON-VACUITY BREAK */'
test_file = 'test/setup/fence.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/fence.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/fence.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sprocess\sfence\sWindows\sCIM\suses\sa\s45\ssecond\sone-shot\sbudget\sand\sstill\srefuses\spast\sit$']
expect_message = 'cannot prove hosts are stopped'
[[control]]
id = 'setup-windows-cmd-path'
guards = 'Windows npm batch launchers count as installed without a successful direct exec'
file = 'src/setup/detect.ts'
old = "['.exe', '.cmd', '.bat', '']"
new = "['.exe', '.bat', ''] /* NON-VACUITY BREAK */"
test_file = 'test/setup/detect.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/detect.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/detect.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sdetection\sWindows\scmd\slauncher\salone\sis\sinstalled$']
expect_message = 'Expected: true'
[[control]]
id = 'setup-desktop-markers'
guards = 'Desktop installation markers count as installed on every supported OS'
file = 'src/setup/detect.ts'
old = 'openCodeDesktopMarkers(io).some((marker) => fs.exists(marker)) ||'
new = 'false /* NON-VACUITY BREAK */ ||'
test_file = 'test/setup/detect.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/detect.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/detect.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sdetection\sDesktop\smarkers\salone\sare\sinstalled\son\severy\sOS$']
expect_message = 'Expected: true'
[[control]]
id = 'setup-config-folder'
guards = 'An OpenCode config directory is enough even before a config file is created'
file = 'src/setup/detect.ts'
old = 'fs.isDirectory(configDir) ||'
new = 'false /* NON-VACUITY BREAK */ ||'
test_file = 'test/setup/detect.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/detect.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/detect.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sdetection\sconfig\sfolder\swithout\sa\sconfig\sfile\sis\sinstalled$']
expect_message = 'Expected: true'
[[control]]
id = 'setup-deduplicate-package'
guards = 'Upgrading a package leaves exactly one registration despite older duplicates'
file = 'src/setup/register.ts'
old = 'matches.slice(1).reverse()'
new = '[] /* NON-VACUITY BREAK */'
test_file = 'test/setup/register.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/register.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/register.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sregistration\sreplaces\solder\spackage\sentries\sand\sremoves\sduplicates$']
expect_message = 'toEqual'
[[control]]
id = 'setup-command-error-redacts-stderr'
guards = 'Pi install diagnostics scrub credentials from the captured stderr tail'
file = 'src/setup/command-error.ts'
old = 'const redacted = redact(tail)'
new = 'const redacted = tail /* NON-VACUITY BREAK */'
test_file = 'test/setup/register.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/register.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/register.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sregistration\sPi\sinstall\serror\spreserves\sits\smessage\sand\sredacts\sstderr\scredentials$']
expect_message = 'abc123secret'
[[control]]
id = 'setup-command-error-bounds-stderr'
guards = 'Captured Pi install stderr keeps only the final 4 KiB'
file = 'src/setup/command-runner.ts'
old = 'export const STDERR_TAIL_MAX_BYTES = 4 * 1024'
new = 'export const STDERR_TAIL_MAX_BYTES = 8 * 1024 /* NON-VACUITY BREAK */'
test_file = 'test/setup/register.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/register.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/register.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sregistration\sPi\sinstall\serror\skeeps\sonly\sthe\sfinal\s4\sKiB\sof\sstderr$']
expect_message = 'toBeLessThanOrEqual'
[[control]]
id = 'setup-command-error-drops-partial-line'
guards = 'A truncated Pi install tail discards the line that may begin inside a credential'
file = 'src/setup/command-error.ts'
old = "return newline < 0 ? '' : tail.slice(newline + 1)"
new = 'return tail /* NON-VACUITY BREAK */'
test_file = 'test/setup/register.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/register.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/register.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sregistration\sPi\sinstall\serror\sdrops\sa\spartial\scredential\sline\sat\sthe\sstderr\sboundary$']
expect_message = 'toStartWith'
[[control]]
id = 'setup-command-runner-bounds-stdout'
guards = 'Setup child stdout retention is capped at one MiB'
file = 'src/setup/command-runner.ts'
old = 'const length = Math.min(remaining, chunk.length)'
new = 'const length = chunk.length /* NON-VACUITY BREAK */'
test_file = 'test/setup/command-runner.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/command-runner.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/command-runner.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\scommand\srunner\sstdout\sbeyond\sthe\scap\sfails\sthe\schild\sand\skeeps\sonly\scapped\soutput$']
expect_message = 'toBe'
[[control]]
id = 'setup-process-fence'
guards = 'Active hosts refuse setup rather than racing migration and credential writes'
file = 'src/setup/process-fence.ts'
old = 'if (active.length) throw new ProcessFenceViolationError(active)'
new = 'if (false /* NON-VACUITY BREAK */) throw new ProcessFenceViolationError(active)'
test_file = 'test/setup/fence.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/setup/fence.test.ts -t "$1"', 'sh', '{test}']
list_command = ['bun', 'scripts/list-bun-tests.mjs', 'test/setup/fence.test.ts', '{test}']
test_count_pattern = 'Ran {count} test'
expect_red = ['^setup\sprocess\sfence\srefuses\sactive\sPOSIX\shosts\sand\sredacts\scommand\sarguments$']
expect_message = 'Expected promise that rejects'
# --- staged roster publication (0.12.0) ---
# The runner first proves a named test passes with its guard intact, then
# deliberately removes that guard and requires the same test to fail. The
# command prints the source diff in each run to show when the break is present.
# Each filter selects one named test; unrelated failures cannot count as catches.
[[control]]
id = 'store-stage-refuse'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'refuse never rotates or writes an existing secret holder'
file = 'src/store/rows.ts'
old = "if (mode === 'refuse') {"
new = "if (mode === 'stage-duplicate' /* NON-VACUITY BREAK */) {"
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement refuse preserves holder and duplicate requires both staging fields']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-crash-marker'
guards = 'the first state write persists staging ownership before any config exists'
file = 'src/store/rows.ts'
old = '...(extra.staged ? { staged: extra.staged } : {}),'
new = '...(false ? { staged: extra.staged } : {}), /* NON-VACUITY BREAK */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['^staged\sreplacement\schild\scrash\safter\sadd\sstate\sresumes\sexact\sreplay\sat\sgenuine\sepoch$']
expect_message = 'unbound-credential'
[[control]]
id = 'store-stage-orphan-foreign'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'a different stored reservation cannot be replayed by the caller'
file = 'src/store/rows.ts'
old = 'staged.reservation !== input.stage?.reservation ||'
new = 'false /* NON-VACUITY BREAK */ ||'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement foreign orphan different reservation refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-orphan-missing'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'staging ownership is never synthesized from caller wishes'
file = 'src/store/rows.ts'
old = 'const staged = stamp?.staged'
new = "const staged = stamp?.staged ?? { reservation: input.stage!.reservation, label: input.label, disabledReason: input.disabled!.reason, providerState: incoming === undefined ? undefined : canonicalDigest(incoming) } /* NON-VACUITY BREAK */"
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement foreign orphan missing reservation refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-replay-metadata'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'replay compares all provider metadata, not only credentialBound'
file = 'src/store/rows.ts'
old = 'staged.providerState !== incomingDigest ||'
new = 'false /* NON-VACUITY BREAK */ ||'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement exact replay rejects changed provider metadata']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-replay-label'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'replay compares label including absence'
file = 'src/store/rows.ts'
old = 'staged.label !== label ||'
new = 'false /* NON-VACUITY BREAK */ ||'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement exact replay rejects changed label']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-replay-identity'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'replay requires exact identity absence as well as presence'
file = 'src/store/rows.ts'
old = 'stamp.binding.identity !== identity'
new = 'false /* NON-VACUITY BREAK */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement exact replay rejects changed identity absence']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-replay-access'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'replay compares the OAuth access token via full dispatch digest'
file = 'src/store/rows.ts'
old = '''credentialDigest(credential) !== stamp.digest ||
dispatchDigest(credential) !== stamp.dispatch'''
new = '''credentialDigest(credential) !== stamp.digest ||
false /* NON-VACUITY BREAK */'''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement exact replay rejects changed access token']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-replay-expiry'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'replay compares OAuth expiry via full dispatch digest'
file = 'src/store/rows.ts'
old = '''credentialDigest(credential) !== stamp.digest ||
dispatchDigest(credential) !== stamp.dispatch'''
new = '''credentialDigest(credential) !== stamp.digest ||
false /* NON-VACUITY BREAK */'''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement exact replay rejects changed expiry']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-replay-endpoint'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'replay compares trimmed API endpoint and effective header'
file = 'src/store/rows.ts'
old = '''credentialDigest(credential) !== stamp.digest ||
dispatchDigest(credential) !== stamp.dispatch'''
new = '''credentialDigest(credential) !== stamp.digest ||
false /* NON-VACUITY BREAK */'''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement exact replay rejects changed endpoint']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-replay-enabled'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'an enabled complete row is not a staged replay'
file = 'src/store/rows.ts'
old = '''row.type !== credential.type ||
row.enabled ||'''
new = '''row.type !== credential.type ||
false /* NON-VACUITY BREAK */ ||'''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement exact replay rejects changed enabled shape']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-protect-add'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'add protect is evaluated on locked successor management before writes'
file = 'src/store/rows.ts'
old = '''async (tx): Promise<AddResult> => {
await protectIn(tx, id, options.protect)'''
new = '''async (tx): Promise<AddResult> => {
/* NON-VACUITY BREAK: protect omitted */'''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement protect add observes successor management under locks']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-protect-enable'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'enable protect is evaluated on locked successor management before writes'
file = 'src/store/rows.ts'
old = '''async (tx): Promise<RowTransitionResult> => {
await protectIn(tx, id, options.protect)'''
new = '''async (tx): Promise<RowTransitionResult> => {
/* NON-VACUITY BREAK: protect omitted */'''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement protect enable observes successor management under locks']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-protect-disable'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'disable protect is evaluated on locked successor management before writes'
file = 'src/store/rows.ts'
old = '''async (tx): Promise<RowTransitionResult> => {
await protectIn(tx, id, options.protect)'''
new = '''async (tx): Promise<RowTransitionResult> => {
/* NON-VACUITY BREAK: protect omitted */'''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement protect disable observes successor management under locks']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-enable'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved enable refuses before either file changes'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved enable refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-disable'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved disable refuses before either file changes'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved disable refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-refresh'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved refresh refuses before provider dispatch'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved refresh refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-replace'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved replace refuses before either file changes'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved replace refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-rotate'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved rotate refuses before either file changes'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved rotate refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-identity'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved identity observation refuses before either file changes'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved recordIdentity refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-quota'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved quota observation refuses before either file changes'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved recordQuota refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-provider-state'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved provider state refuses before either file changes'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved updateProviderState refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-reserved-add'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reserved ordinary re-add never rotates or completes it'
file = 'src/store/reserved.ts'
old = 'if (reservation !== undefined)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement reserved add refuses unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-stage-never-candidate'
guards = 'an enabled-shaped reservation is never a candidate or polled'
file = 'src/store/schema.ts'
old = 'row.candidate = enabled && credential !== undefined && !reserved'
new = 'row.candidate = enabled && credential !== undefined /* NON-VACUITY BREAK */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['^staged\sreplacement\senabled\sshaped\sreserved\srows\snever\sroute\sor\spull$']
expect_message = 'error: expect('
[[control]]
id = 'store-stage-remove-fence'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'stale staged cleanup cannot remove a published row'
file = 'src/store/rows.ts'
old = '} else if (options.staged)'
new = '} else if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement remove fence deletes reserved rows but never published rows']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-attribution'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'publication removal requires exact credential epoch and identity'
file = 'src/store/publication.ts'
old = '''assertBoundRowAttribution(
ref.id,
row,
ref.attribution,
'publishRoster',
)
if (
!row.credential ||'''
new = '''/* NON-VACUITY BREAK: attribution omitted */
if (
!row.credential ||'''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects attribution unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-fingerprint'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'publication refuses a removed secret that changed during preparation'
file = 'src/store/publication.ts'
old = 'fingerprintOf(row.credential) !== ref.fingerprint'
new = 'false /* NON-VACUITY BREAK */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "^$1$"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects fingerprint unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-config-reservation'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'finalization requires the exact config reservation'
file = 'src/store/publication.ts'
old = 'row.staged?.reservation !== ref.reservation ||'
new = 'false /* NON-VACUITY BREAK */ ||'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects different reservation unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-stamp-reservation'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'config alone cannot claim staged ownership without the exact stamp marker'
file = 'src/store/publication.ts'
old = 'stamp?.staged?.reservation !== ref.reservation ||'
new = 'false /* NON-VACUITY BREAK */ ||'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects stamp reservation unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-order'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'publication order names exactly all survivors'
file = 'src/store/publication.ts'
old = '''survivors.length !== plan.order.length ||
plan.order.some((id) => !survivors.some((row) => row.id === id)) ||
survivors.some((row) => !plan.order.includes(row.id))'''
new = 'false /* NON-VACUITY BREAK */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects order unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-enabled-identity'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'the final enabled roster has no duplicate known OAuth identity'
file = 'src/store/publication.ts'
old = 'if (identities.has(row.identity))'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects enabled identity unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-secret-identity'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'a staged secret cannot claim a different removed known identity'
file = 'src/store/publication.ts'
old = 'old.fingerprint === row.fingerprint,'
new = 'false /* NON-VACUITY BREAK */,'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects secret identity unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-protect'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'publication protect vetoes the irreversible write'
file = 'src/store/publication.ts'
old = 'await protectIn(tx, plan.operationId, options.protect)'
new = '/* NON-VACUITY BREAK: protect omitted */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects protect unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-required-fingerprint'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'a required removal fingerprint cannot be omitted'
file = 'src/store/publication.ts'
old = '(rt.ctx.requireRemovedFingerprint && !ref.fingerprint)'
new = '(false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement publication rejects required fingerprint unchanged']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-disabled-final'
guards = 'disabled finalization persists the requested reason and does not enable'
file = 'src/store/publication.ts'
old = 'raw.enabled = ref.enabled'
new = 'raw.enabled = true /* NON-VACUITY BREAK */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['^staged\sreplacement\sdisabled\sfinalization\sreleases\sreservation\sand\slater\sattributed\senable\sworks$']
expect_message = 'error: expect('
[[control]]
id = 'store-publish-lock-dedupe'
guards = 'same-wire old and staged rows take one row lock without self-deadlock'
file = 'src/store/publication.ts'
old = '[...new Set(keys.values())].sort()'
new = '[...keys.values()].sort() /* NON-VACUITY BREAK */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['^staged\sreplacement\sdeduplicates\ssame\swire\slock\sand\sleaves\soutside\srows\suntouched$']
expect_message = 'lock-contention'
[[control]]
id = 'store-publish-refresh-fingerprint'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'a middle-row wait sees the refresh spending the planned old token'
file = 'src/store/publication.ts'
old = 'fingerprintOf(row.credential) !== ref.fingerprint'
new = 'false /* NON-VACUITY BREAK */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement waits behind middle row refresh and checks post refresh fingerprint']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-key-recheck'
guards = 'named keys are recomputed under store locks before publication'
file = 'src/store/publication.ts'
old = '''if (
named.some('''
new = '''if (
false && /* NON-VACUITY BREAK */ named.some('''
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['^staged\sreplacement\schanged\srow\skeys\sretry\sonce\sthen\srefuse\swithout\spublication$']
expect_message = 'error: expect('
[[control]]
id = 'store-publish-before-observer'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'before-config-write observer rejects before the config rename'
file = 'src/store/mutate.ts'
old = 'await this.ctx.onStep?.(`before-${file}-write`, this.info)'
new = '/* NON-VACUITY BREAK: before-write observer omitted */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['staged replacement before publication rename observer leaves old pool usable']
expect_message = 'Expected promise that rejects'
[[control]]
id = 'store-publish-before-lease'
guards = 'a lost lease refuses the irreversible config rename'
file = 'src/store/mutate.ts'
old = '''// Ownership is proved immediately before the rename, on every lease.
await this.locks.assertAll()'''
new = '// NON-VACUITY BREAK: pre-rename lease assertion omitted'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['^staged\sreplacement\sbefore\spublication\srename\slease\sleaves\sold\spool\susable$']
expect_message = 'error: expect('
[[control]]
id = 'store-publish-committed-receipt'
guards = 'the irreversible config rename includes its forward-cleanup receipt'
file = 'src/store/publication.ts'
old = 'saveReceipt(tx, receipt)'
new = '/* NON-VACUITY BREAK: decision receipt omitted */'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['^staged\sreplacement\safter\spublication\srename\sresumes\sonly\sreceipt\scleanup$']
expect_message = 'error: expect('
[[control]]
id = 'store-publish-child-recovery'
guards = 'a durable committed receipt resumes cleanup after a process crash'
file = 'src/store/publication.ts'
old = "return { outcome: 'cleaned', receipt: await cleanup(tx, prior) }"
new = "return { outcome: 'cleaned', receipt: prior } /* NON-VACUITY BREAK */"
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'
command = ['sh', '-c', 'git diff --stat; bun test test/store/staged-replacement.test.ts -t "$1"', 'sh', '{test}']
list_command = ["bun", "scripts/list-bun-tests.mjs", "test/store/staged-replacement.test.ts", "{test}"]
test_count_pattern = 'Ran {count} test'
expect_red = ['^staged\sreplacement\schild\scrash\safter\spublication\sresumes\swith\sattributed\sorphan\sremoval$']
expect_message = 'error: expect('
[[control]]
id = 'store-publish-digest'
broad_command = ['bun', 'test', 'test/store/staged-replacement.test.ts', '--reporter=junit', '--reporter-outfile=staged-replacement-broad.xml']
broad_report = 'staged-replacement-broad.xml'
broad_id = '{name}'
guards = 'reusing an operation id for a different digest cannot adopt its receipt'
file = 'src/store/publication.ts'
old = 'if (prior.planDigest !== planDigest)'
new = 'if (false /* NON-VACUITY BREAK */)'
test_file = 'test/store/staged-replacement.test.ts'
runner = 'command'