Prepare verified laboratory 4 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:31:17 +03:00
parent ec540a1a72
commit 4fc1f40099
172 changed files with 15646 additions and 38 deletions
+22
View File
@@ -0,0 +1,22 @@
import { resolve } from "node:path";
const root = resolve(import.meta.dir, "..");
const before = await Bun.file(
resolve(root, "evidence/k3s/restart-before.json"),
).json();
const after = await Bun.file(
resolve(root, "evidence/k3s/restart-after.json"),
).json();
if (
!before.run_id ||
before.run_id !== after.run_id ||
!Array.isArray(before.pods) ||
!before.pods.length ||
!Array.isArray(after.pods) ||
!after.pods.length
)
throw new Error("Incomplete or mismatched restart evidence");
if (after.pods.some((p: any) => before.pods.some((b: any) => b.uid === p.uid)))
throw new Error(
"Restart returned while an original workload Pod UID still existed",
);
console.log("PASS: every recorded original workload Pod UID was replaced");