feat(ql3): govern release version transitions

This commit is contained in:
whyour
2026-08-16 09:32:27 +08:00
parent 7130d77a76
commit bad8399cc3
24 changed files with 1462 additions and 128 deletions
@@ -2,6 +2,9 @@
const { execFileSync, spawnSync } = require('node:child_process');
const { resolve } = require('node:path');
const { readReleaseIdentity } = require('./lib/ql3-release-identity.cjs');
const QL3_VERSION = readReleaseIdentity(resolve(__dirname, '..')).version;
const IMAGE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._/:@-]{0,255}$/u;
const ENTRYPOINT = [
@@ -608,7 +611,7 @@ function main() {
}
}
const version = runImage(image, ['--version']).trim();
if (version !== '3.0.0-alpha.0') fail('product version contract drifted');
if (version !== QL3_VERSION) fail('product version contract drifted');
runOperatorContextContract(image);
runConsoleContract(image);
runEvidenceVerifierContract(image);