feat(ql3): add read-only cluster context readiness

This commit is contained in:
whyour
2026-08-13 02:14:17 +08:00
parent a83b4c5e8d
commit a6ad636251
18 changed files with 1529 additions and 391 deletions
@@ -29,6 +29,7 @@ test('accepts the reviewed native CI and digest release contracts', () => {
clusterAdminProductFacade: true,
clusterAdminOperatorContext: true,
clusterAdminContextPreflight: true,
clusterAdminContextReadiness: true,
ociAttestations: true,
osVulnerabilityScan: {
scanner: 'trivy@0.70.0',
@@ -145,6 +146,24 @@ test('rejects a Cluster Admin live gate that omits offline context preflight', (
);
});
test('rejects a Cluster Admin live gate that omits read-only context readiness', () => {
const contract = fs.readFileSync(
path.join(root, 'scripts/ql3-cluster-admin-product-live-contract.cjs'),
'utf8',
);
assert.throws(
() =>
auditClusterImageCiWorkflow(
ciSource,
contract.replace(
'contextPreflight: true,\n contextReadiness: true',
'contextPreflight: true,\n contextReadiness: false',
),
),
/read-only readiness/,
);
});
test('rejects removal of the native cluster-admin image gate', () => {
const mutated = ciSource.replace(
'image_arch: arm64\n image: admin',
+2 -2
View File
@@ -340,10 +340,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
rootSourceFileRoles: clusterAdmin.rootSourceFileRoles,
},
{
sourceFiles: 97,
sourceFiles: 99,
rootSourceFiles: 1,
rootSourceLines: 61,
nestedSourceFiles: 96,
nestedSourceFiles: 98,
rootSourceFileRoles: {
'modelInvocationMigrationCli.ts': 'binary_entry',
},