Files
Agent-Workbench/docs/messages-m-evidence/drivers/messages-m-bind-probe.mjs
T

10 lines
1016 B
JavaScript

import fs from 'node:fs';
import assert from 'node:assert/strict';
const read = p => JSON.parse(fs.readFileSync(p));
const original = read('.qa/messages-m/product-freeze-release.json'), final = read('.qa/messages-m/product-freeze-final.json');
const files = original.files.filter(f => f.path.startsWith('src/')).map(f => { const current = final.files.find(c => c.path === f.path); assert.deepEqual(current, f, f.path); return f; });
const result = { passed: true, fixtureSourceCommit: original.sourceCommit, finalSourceCommit: final.sourceCommit, files,
scope: 'All product src/ input bytes are identical between the tested probe driver build and final build; only the retained-host upgrade version whitelist and documentation changed. The real preflight still executes the final installed original Provider.' };
fs.writeFileSync('.qa/messages-m/probe-source-binding.json', JSON.stringify(result, null, 2), { flag: 'wx' });
console.log(JSON.stringify({ passed: true, identicalProductSourceFiles: files.length }));