test: freeze host-authoritative original Purge validation

This commit is contained in:
Agent Workbench Dev
2026-11-06 13:53:53 +08:00
parent 01e64f3fcf
commit a6830bbf50
16 changed files with 256 additions and 15 deletions
+6 -2
View File
@@ -80,8 +80,12 @@ try {
const store = (file, value) => save(prefix + '/' + file, value), startedAt = Date.now();
let own, session, worker, group, workerState, failure, result, route;
try {
const installation = resolveControlledInstallation(process.cwd(), frozen.installation.root);
const source = resolveOriginalPurgeSource(process.cwd(), frozen.source.root, installation);
const installation = frozen.availabilityAuthority === 'host-api'
? await api('/engines/deepseek/controlled-availability?root=' + encodeURIComponent(frozen.installation.root))
: resolveControlledInstallation(process.cwd(), frozen.installation.root);
const source = frozen.availabilityAuthority === 'host-api'
? await api('/engines/purge/source?kind=' + ORIGINAL_PURGE_KIND + '&root=' + encodeURIComponent(frozen.source.root) + '&harnessRoot=' + encodeURIComponent(installation.root))
: resolveOriginalPurgeSource(process.cwd(), frozen.source.root, installation);
assert.equal(installation.controlledSha256, frozen.installation.controlledSha256);
assert.equal(source.sourceSha256, frozen.source.sourceSha256); assert.equal(source.runtimeSha256, frozen.source.runtimeSha256);
const current = await api('/model-center');