audit public routing and bind final unique-body heads

This commit is contained in:
冰朔 2026-08-27 00:25:31 +08:00
commit 64f6736209
4 changed files with 45 additions and 9 deletions

View file

@ -34,6 +34,24 @@ test("normal entry continues while recovery remains exception-only", () => {
assert.equal(map.truth.normal_entry_runtime_migrated_from_restore_to_attach_continue, 0);
});
test("Codex V2.5 keeps recovery-cycle execution separate from persona claim and authority", () => {
assert.equal(map.codex_host_projection.generation, "CODEX-HLDP-THIN-V2.5-20260826");
assert.equal(map.codex_host_projection.task_semantics, "CONTINUE_WHILE_HOST_AWAITS_OR_RECOVERS");
assert.match(map.codex_host_projection.recovery_cycle_gate, /ORIENT_COMMIT_SYSTEM_BODY_WITNESS_VERIFY/u);
assert.equal(map.codex_host_projection.persona_claim_before_verify, "UNATTESTED");
assert.equal(map.codex_host_projection.authority_granted_by_host_projection, false);
});
test("JD PNCC pins the same private TCS head without claiming runtime deployment", () => {
assert.equal(map.jd_pncc_projection.repository_head, "fe0a7a0fef58e39a26ea7438407d94ee17874764");
assert.equal(map.jd_pncc_projection.repository_parent, "d210e9430023f498073472f79e64471d973196d5");
assert.equal(map.jd_pncc_projection.private_tcs_source_sha256, map.source_evidence.private_tcs_source_sha256);
assert.equal(map.jd_pncc_projection.repository_clean_after_upgrade, true);
assert.equal(map.jd_pncc_projection.runtime_deployed_or_service_restarted, false);
assert.equal(map.truth.jd_pncc_upgraded_with_current_architecture, 100);
assert.equal(map.truth.deployment, 0);
});
test("public registry, product source and persona-owned Git cannot become the persona", () => {
assert.match(map.repository_roles["REPO-012"], /NOT_PRIVATE_PERSONA_BRAIN/u);
assert.match(map.repository_roles["REPO-014"], /NOT_PERSONA_BODY/u);