test(audit): lock drift reaction-threshold script wiring

Assert package drift and rolling commands keep reaction match/skip threshold flags in default cadence wiring. Architecture/protocol diagrams reviewed; no updates needed for test-only coverage.
This commit is contained in:
William Valentin
2026-02-27 13:26:25 -08:00
parent 5b9bcbafee
commit 940402729b
2 changed files with 25 additions and 0 deletions
@@ -33,4 +33,18 @@ describe('phase0 baseline script wiring', () => {
expect(rollingPrune).toContain('pnpm audit:phase0-baseline:live:refresh:drift:rolling');
expect(rollingPrune).toContain('--report-tag "$TAG"');
});
it('keeps default drift thresholds for reaction match/skip deltas', () => {
const scripts = loadPackageScripts();
const drift = scripts['audit:phase0-baseline:live:drift'];
const rolling = scripts['audit:phase0-baseline:live:refresh:drift:rolling'];
expect(drift).toBeDefined();
expect(drift).toContain('--max-reaction-match-rate-drop-pp 50');
expect(drift).toContain('--max-reaction-skip-rate-increase-pp 50');
expect(rolling).toBeDefined();
expect(rolling).toContain('--max-reaction-match-rate-drop-pp 50');
expect(rolling).toContain('--max-reaction-skip-rate-increase-pp 50');
});
});