12 lines
1.3 KiB
JavaScript
12 lines
1.3 KiB
JavaScript
import fs from 'node:fs';
|
|
import assert from 'node:assert/strict';
|
|
import { createHash } from 'node:crypto';
|
|
const report = JSON.parse(fs.readFileSync('.qa/task-control-i-portable-task-control-original-validation.json', 'utf8')); assert.equal(report.success, true);
|
|
const selected = report.screenshots.filter(value => /html-desktop|diagnostic-390/.test(value.path)); assert.equal(selected.length, 2);
|
|
for (const row of selected) assert.equal(createHash('sha256').update(fs.readFileSync(row.path)).digest('hex'), row.sha256);
|
|
const review = { success: true, at: new Date().toISOString(), version: report.version, appRoot: report.appRoot, screenshots: selected,
|
|
observed: ['Actual view_image review: desktop applied HTML path, completed Task and explicit no-test statement are readable in the split pane.',
|
|
'Actual view_image review: 390px task pane is expanded, original goal and paused status remain visible, controls fit the viewport.'],
|
|
scope: 'Visual review of the two specified actual contained-runtime screenshots; fixed HTTP behavior is recorded separately and does not establish real-model reasoning.' };
|
|
fs.writeFileSync('.qa/task-control-i-ui-reviewed.json', JSON.stringify(review, null, 2) + '\n', { flag: 'wx' }); console.log(JSON.stringify({ success: true, reviewed: selected.length }));
|