flow-muse-commit-pilot-stress.test.mjs
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d
docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge
Human
14 hours 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
1 commit
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d
docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge
Human
14 hours ago