Files
RuView/harness/wifi-densepose-privshield/__tests__/flywheel.test.ts
ruv 50bcf0e215 fix(privshield/wifi-veil): assert data_source on the replayBundle, not the top-level result
FlywheelResult has no dataSource field — @metaharness/flywheel stamps it
as replayBundle.data_source (snake_case). This test never actually ran in
CI here (nested .github/workflows/ under wifi-veil/ is inert on GitHub);
caught only once the wifi-veil/ tree was extracted to its own repo and its
own top-level Actions ran for real.
2026-08-09 15:25:04 -02:30

27 lines
1.1 KiB
TypeScript

// SPDX-License-Identifier: MIT
// Verifies the SYNTHETIC flywheel demo wires end-to-end: a non-empty lift curve
// and a replay bundle that verifies independently. Does NOT assert any real
// self-improvement — the proposer/evaluator are deterministic stand-ins.
import { describe, it, expect } from 'vitest';
import { runVeilFlywheelDemo, verifyVeilFlywheelDemo } from '../src/flywheel.js';
describe('wifi-densepose-privshield-harness — flywheel (SYNTHETIC)', () => {
it('produces a non-empty lift curve', async () => {
const result = await runVeilFlywheelDemo(3);
expect(result.liftCurve.length).toBeGreaterThan(0);
expect(result.generationsRun).toBeGreaterThan(0);
});
it('produces an independently verifiable replay bundle', async () => {
const result = await runVeilFlywheelDemo(3);
const verdict = verifyVeilFlywheelDemo(result);
expect(verdict.pass).toBe(true);
});
it('stamps the run as SYNTHETIC provenance', async () => {
const result = await runVeilFlywheelDemo(2);
expect(result.replayBundle.data_source).toBe('SYNTHETIC');
});
});