flow-muse-commit-pilot-stress.test.mjs
31 lines 1.2 KB
Raw
sha256:87f84653ce4706be8c65b0c4494ed6fb891213cca82db2b1824772cddc41a752 feat(auth): durable MCP OAuth refresh via shared strong sto… Agent minor 56 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 3 commits
sha256:87f84653ce4706be8c65b0c4494ed6fb891213cca82db2b1824772cddc41a752 feat(auth): durable MCP OAuth refresh via shared strong sto… Agent minor 56 days ago
sha256:873e30b7fafe601346295f8f4289f388f21d8f715f28584d5481899ba2b714fc Merge pull request #249 from aaronrene/muse-mirror Agent 73 days ago
sha256:d8c648b20a4d53b2673c5c082ee7edfa7b2fc9b11080832da1f38807b6bf940b fix(7C-L1b): route hosted delegation proposals through cani… Human minor 76 days ago