mirror of
https://github.com/ruvnet/RuView.git
synced 2026-08-26 02:04:55 +00:00
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.
27 lines
1.1 KiB
TypeScript
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');
|
|
});
|
|
});
|