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:
@@ -570,6 +570,17 @@
|
|||||||
],
|
],
|
||||||
"test_status": "pnpm test:run src/audit/artifactTag.test.ts src/audit/phase0BaselineDrift.test.ts + pnpm typecheck passing"
|
"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": {
|
"phase0-instrumentation-ticket-checklist": {
|
||||||
"status": "completed",
|
"status": "completed",
|
||||||
"date": "2026-02-25",
|
"date": "2026-02-25",
|
||||||
|
|||||||
@@ -33,4 +33,18 @@ describe('phase0 baseline script wiring', () => {
|
|||||||
expect(rollingPrune).toContain('pnpm audit:phase0-baseline:live:refresh:drift:rolling');
|
expect(rollingPrune).toContain('pnpm audit:phase0-baseline:live:refresh:drift:rolling');
|
||||||
expect(rollingPrune).toContain('--report-tag "$TAG"');
|
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');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user