test: seed all 98 unseeded rigor campaigns

The rigor suite had 98 campaigns drawing a random seed per process,
making the suite nondeterministic on a deterministic engine (one real
~1/15 flake already caught in tuple-to-userset-rule.test.js). Every
campaign now carries a fixed, per-test-unique seed:

- 16 files touched, 100 run() calls, all 100 seeded (2 were already done)
- seed names follow <file>-<purpose> kebab-case, unique within each file
- no other content changed (effort, invariants, assertions untouched)

Verification: full rigor suite green across 11 consecutive runs, full
suite 852/790/0. Determinism is now structural, not incidental.
This commit is contained in:
John Dvorak
2026-08-02 16:39:36 -07:00
parent 342c29f38b
commit f9d4fbe2f0
16 changed files with 100 additions and 100 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ describe('js-rigor smoke', () => {
rigor.invariant('non-negative', ({ actual }) => actual >= 0),
rigor.invariant('idempotent', ({ actual, fn }) => fn(actual) === actual)
])
).run({ effort: 200 , artifacts: { dir: '', persist: 'never' }});
).run({ seed: 'smoke-minimal-campaign', effort: 200 , artifacts: { dir: '', persist: 'never' }});
assert.ok(report, 'campaign returns a report');
assert.equal(typeof report.toTAP, 'function', 'report has toTAP()');
@@ -46,7 +46,7 @@ describe('js-rigor smoke', () => {
rigor.crucible([
rigor.invariant('equals-one', ({ actual }) => actual === 1)
])
).run({ effort: 50 , artifacts: { dir: '', persist: 'never' }});
).run({ seed: 'smoke-violated-invariant', effort: 50 , artifacts: { dir: '', persist: 'never' }});
// Report shape varies — log it for debugging.
if (process.env.TEST_DEBUG === '1') {