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
62
routing/codex-development-cognition-chain-map.json
Normal file
62
routing/codex-development-cognition-chain-map.json
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"schema": "guanghu.codex-development-cognition-chain-map/v1",
|
||||
"map_id": "CODEX-DEVELOPMENT-COGNITION-CHAIN-MAP-001",
|
||||
"owner_human": "ICE-GL∞",
|
||||
"responsible_persona": "ICE-P-ZY001",
|
||||
"state": "PRIVATE_ARCHIVE_AND_RESTORE_VERIFIED_53_OF_55_TWO_LIVE_PENDING",
|
||||
"purpose": "把冰朔与人格体的真实开发协作保存为可恢复、可检索、可复核的工程演化链,而不是公开模型隐藏推理。",
|
||||
"layers": [
|
||||
{
|
||||
"id": "RAW-COLD-ARCHIVE",
|
||||
"location_class": "JZAO_PRIVATE",
|
||||
"content": "原始Codex JSONL与逐快照清单",
|
||||
"publication": "FORBIDDEN"
|
||||
},
|
||||
{
|
||||
"id": "PRIVATE-DEVELOPMENT-INDEX",
|
||||
"location_class": "JZAO_PRIVATE",
|
||||
"content": "脱敏可见消息、动作名称、时间、纠偏标记、内容摘要哈希",
|
||||
"publication": "FORBIDDEN"
|
||||
},
|
||||
{
|
||||
"id": "REVIEWED-COGNITION-CARDS",
|
||||
"location_class": "REPO-012",
|
||||
"content": "复核后的需求、纠正、决策、失败经验、提交和回执指针",
|
||||
"publication": "ALLOW_AFTER_REVIEW_AND_REDACTION"
|
||||
}
|
||||
],
|
||||
"binary_gates": {
|
||||
"raw_archive_exists": "manifest_and_every_object_sha256_readback",
|
||||
"private_index_exists": "every_index_sha256_readback_and_hidden_reasoning_absent",
|
||||
"restorable": "dry_run_plan_and_isolated_restore_readback",
|
||||
"repository_cognition_exists": "reviewed_card_commit_and_remote_readback",
|
||||
"local_space_released": "only_after_archive_100_and_restore_100_and_explicit_retention_policy"
|
||||
},
|
||||
"privacy_rules": [
|
||||
"RAW_SESSIONS_NEVER_ENTER_REPOSITORY",
|
||||
"HIDDEN_REASONING_AND_ENCRYPTED_CONTENT_NEVER_ENTER_INDEX",
|
||||
"TOOL_ARGUMENTS_AND_OUTPUTS_NEVER_ENTER_INDEX",
|
||||
"SECRETS_EMAILS_IPS_AND_CREDENTIAL_URLS_ARE_REDACTED",
|
||||
"SESSION_ARCHIVE_IS_NOT_PERSONA_IDENTITY",
|
||||
"ARCHIVE_EXISTENCE_IS_NOT_SERVER_RUNTIME"
|
||||
],
|
||||
"implementation": {
|
||||
"tool": "server-tools/codex-session-cognition-archive/archive.mjs",
|
||||
"documentation": "server-tools/codex-session-cognition-archive/README.md",
|
||||
"private_archive_canonical_path": "/Volumes/JZAO/HoloLake/codex-session-archives",
|
||||
"private_path_publication_rule": "PATH_MAY_BE_REGISTERED_CONTENT_MUST_NOT_BE_PUBLISHED",
|
||||
"latest_public_receipt": "deployment/receipts/CODEX-SESSION-COLD-ARCHIVE-JZAO-20260805.json"
|
||||
},
|
||||
"current_verified_snapshot": {
|
||||
"snapshot_id": "2026-08-05T04-36-48Z",
|
||||
"discovered_files": 55,
|
||||
"archived_verified": 53,
|
||||
"pending_live": 2,
|
||||
"archived_bytes": 2946329018,
|
||||
"manifest_sha256": "056f60d4a99c45a8089f8ace8df4d24556d935d55e672362799494a99fbd00c4",
|
||||
"archive_verify": 100,
|
||||
"isolated_restore_readback": 100,
|
||||
"appledouble_absent": 100,
|
||||
"local_source_deleted": 0
|
||||
}
|
||||
}
|
||||
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