feat: archive Codex sessions as private cognition evidence
This commit is contained in:
parent
0ac0025fdf
commit
7d85d79e61
8 changed files with 798 additions and 0 deletions
20
routing/codex-development-cognition-chain-map.test.js
Normal file
20
routing/codex-development-cognition-chain-map.test.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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");
|
||||
Loading…
Reference in a new issue