diff --git a/docs/plans/state.json b/docs/plans/state.json index f11ba7e..4046535 100644 --- a/docs/plans/state.json +++ b/docs/plans/state.json @@ -570,6 +570,17 @@ ], "test_status": "pnpm test:run src/audit/artifactTag.test.ts src/audit/phase0BaselineDrift.test.ts + pnpm typecheck passing" }, + "phase0-live-baseline-drift-script-reaction-threshold-wiring-coverage": { + "status": "completed", + "date": "2026-02-27", + "updated": "2026-02-27", + "summary": "Extended package-script wiring regression coverage to assert default drift/rolling commands keep reaction delta thresholds (`--max-reaction-match-rate-drop-pp`, `--max-reaction-skip-rate-increase-pp`) enabled.", + "files_modified": [ + "src/audit/phase0BaselineScriptWiring.test.ts", + "docs/plans/state.json" + ], + "test_status": "pnpm test:run src/audit/phase0BaselineScriptWiring.test.ts + pnpm typecheck passing" + }, "phase0-instrumentation-ticket-checklist": { "status": "completed", "date": "2026-02-25", diff --git a/src/audit/phase0BaselineScriptWiring.test.ts b/src/audit/phase0BaselineScriptWiring.test.ts index 62615b3..7a720ce 100644 --- a/src/audit/phase0BaselineScriptWiring.test.ts +++ b/src/audit/phase0BaselineScriptWiring.test.ts @@ -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'); + }); });