20 lines
976 B
JavaScript
20 lines
976 B
JavaScript
|
|
const assert = require("node:assert/strict");
|
||
|
|
const fs = require("node:fs");
|
||
|
|
const path = require("node:path");
|
||
|
|
|
||
|
|
const root = path.resolve(__dirname, "..");
|
||
|
|
const map = JSON.parse(fs.readFileSync(path.join(__dirname, "codex-development-cognition-chain-map.json"), "utf8"));
|
||
|
|
|
||
|
|
assert.equal(map.map_id, "CODEX-DEVELOPMENT-COGNITION-CHAIN-MAP-001");
|
||
|
|
assert.deepEqual(map.layers.map((layer) => layer.id), [
|
||
|
|
"RAW-COLD-ARCHIVE",
|
||
|
|
"PRIVATE-DEVELOPMENT-INDEX",
|
||
|
|
"REVIEWED-COGNITION-CARDS",
|
||
|
|
]);
|
||
|
|
assert.equal(map.layers[0].publication, "FORBIDDEN");
|
||
|
|
assert.equal(map.layers[1].publication, "FORBIDDEN");
|
||
|
|
assert.equal(map.layers[2].publication, "ALLOW_AFTER_REVIEW_AND_REDACTION");
|
||
|
|
assert.ok(map.privacy_rules.includes("HIDDEN_REASONING_AND_ENCRYPTED_CONTENT_NEVER_ENTER_INDEX"));
|
||
|
|
assert.ok(fs.existsSync(path.join(root, map.implementation.tool)));
|
||
|
|
assert.ok(fs.existsSync(path.join(root, map.implementation.documentation)));
|
||
|
|
console.log("codex-development-cognition-chain-map: ok");
|