Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer, web workflow engine and protocol, tooling, docs and task records. Large generated evidence, user-testing archives, build snapshots and imported test assets remain untracked. Co-Authored-By: Claude Code <noreply@anthropic.com>
21 lines
1002 B
JavaScript
21 lines
1002 B
JavaScript
import assert from "node:assert/strict";
|
|
import crypto from "node:crypto";
|
|
import fs from "node:fs";
|
|
import path from "node:path";
|
|
import test from "node:test";
|
|
import { assertLegacyManifestArtifacts } from "./legacy-manifest-integrity.mjs";
|
|
|
|
const root = path.resolve(import.meta.dirname, "../../..");
|
|
const manifest = JSON.parse(fs.readFileSync(path.join(root, "tests/golden/M12-02F/manifest.json"), "utf8"));
|
|
const sha256 = (file) => crypto.createHash("sha256").update(fs.readFileSync(path.join(root, file))).digest("hex");
|
|
|
|
test("M12-02F binds corrupt-payload quarantine and readable metadata evidence", () => {
|
|
assert.equal(manifest.task, "M12-02F");
|
|
assert.equal(manifest.enablingTask, true);
|
|
assert.equal(manifest.parityStateChange, false);
|
|
assert.equal(manifest.nextTask, "M12-02G");
|
|
assert.deepEqual(manifest.states, ["READY", "QUARANTINED", "REOPENED_QUARANTINED"]);
|
|
assert.equal(manifest.failureCode, "ASSET_SOURCE_HASH_MISMATCH");
|
|
assertLegacyManifestArtifacts(manifest);
|
|
});
|