test: freeze unrestricted original Purge comparison driver

This commit is contained in:
Agent Workbench Dev
2026-11-06 13:40:29 +08:00
parent af9a1a2a45
commit e3fbf034f1
13 changed files with 626 additions and 0 deletions
+8
View File
@@ -7,6 +7,14 @@ import { Agent, fetch } from 'undici';
export let root = path.resolve('.qa/live-validation-ad'), origin = 'http://127.0.0.1:4318';
export function engineeringEvidence() { root = path.resolve('.qa/live-engineering-ae'); }
let purgeFixture;
export function purgeEvidence() { root = purgeFixture?.root ?? path.resolve('.qa/live-purge-af'); if (purgeFixture) origin = purgeFixture.origin; }
export function configurePurgeFixture(options) {
const target = path.resolve(options.root), url = new URL(options.origin);
assert.equal(path.dirname(target), path.resolve('.qa')); assert.match(path.basename(target), /^af-driver-[a-f0-9-]{36}$/);
assert.equal(url.hostname, '127.0.0.1'); assert.notEqual(url.port, '4318'); assert.ok(url.port);
purgeFixture = { root: target, origin: url.origin }; purgeEvidence();
}
// Used only by the isolated local driver verifier, never by a real batch.
export function configureFixture(options) {
const target = path.resolve(options.root), url = new URL(options.origin);