flow-muse-commit-pilot-stress.test.mjs
31 lines 1.2 KB
Raw
sha256:b5f647cb9c409f563d4671fe3fc05ddea01fabfed9b41fc11cb923588e1c1baf mirror: GitHub Phase A durable MCP OAuth (#270) Human minor ⚠ breaking 10 days ago
1 /**
2 * Stress — repeated evidence validation on pilot artifacts (7A-14).
3 */
4
5 import { describe, it } from 'node:test';
6 import assert from 'node:assert/strict';
7 import { readFileSync } from 'node:fs';
8 import { join } from 'node:path';
9 import { fileURLToPath } from 'node:url';
10
11 import {
12 assertNoSecretLeakageInProjection,
13 parseGeneratedMarkerVersion,
14 MUSE_COMMIT_PILOT_EVIDENCE_REL,
15 } from '../lib/flow/muse-commit-pilot-evidence.mjs';
16
17 const REPO_ROOT = join(fileURLToPath(new URL('.', import.meta.url)), '..');
18 const WS = join(REPO_ROOT, MUSE_COMMIT_PILOT_EVIDENCE_REL, 'pilot-workspace');
19
20 describe('flow-muse-commit-pilot (stress, 7A-14)', () => {
21 it('1000 secret scans on both pilot projections stay clean', () => {
22 const runbook = readFileSync(join(WS, 'overseer.AGENTS.md'), 'utf8');
23 const cursor = readFileSync(join(WS, 'overseer.cursor.mdc'), 'utf8');
24 for (let i = 0; i < 1000; i += 1) {
25 assert.equal(assertNoSecretLeakageInProjection(runbook).ok, true);
26 assert.equal(assertNoSecretLeakageInProjection(cursor).ok, true);
27 assert.equal(parseGeneratedMarkerVersion(runbook), '0.2.0');
28 assert.equal(parseGeneratedMarkerVersion(cursor), '0.2.0');
29 }
30 });
31 });
File History 2 commits
sha256:b5f647cb9c409f563d4671fe3fc05ddea01fabfed9b41fc11cb923588e1c1baf mirror: GitHub Phase A durable MCP OAuth (#270) Human minor 10 days ago
sha256:d8c648b20a4d53b2673c5c082ee7edfa7b2fc9b11080832da1f38807b6bf940b fix(7C-L1b): route hosted delegation proposals through cani… Human minor 30 days ago