2026-08-11 00:25:26 +08:00
|
|
|
import assert from "node:assert/strict";
|
|
|
|
|
import fs from "node:fs";
|
|
|
|
|
import path from "node:path";
|
|
|
|
|
import test from "node:test";
|
|
|
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
|
|
|
|
|
|
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
|
|
|
const readJson = (relative) =>
|
|
|
|
|
JSON.parse(fs.readFileSync(path.join(root, relative), "utf8"));
|
|
|
|
|
const architecture = readJson("routing/hololake-current-architecture.json");
|
|
|
|
|
const channel = readJson("routing/hololake-persona-native-code-channel.json");
|
|
|
|
|
|
docs: register HoloLake paradigm language-persona OS
Promote the three-element native development contract above GH-PNCC and AGE Runtime, register the third-party Agent transition boundary, bounded AGE Mirror governance, software-irreducible reality pauses, incremental life updates, staged implementation route, and binary final acceptance.
Human-Responsibility: ICE-GL∞ / 冰朔
Persona-Author: ICE-P-ZY001 / 铸渊
Execution-Runtime: Codex desktop / DEV-20260811-005
Development-ID: DEV-20260811-005
Authorization-Scope: REPO-014 architecture, routing, engineering guidance and receipts only; no artifact, installation, server or deployment
Source-Anchor: 光湖只需要模型API+光湖代码仓库+光湖语言协议,就可以完整实现编程开发能力。
2026-08-11 20:33:51 +08:00
|
|
|
test("current architecture places the persona-native code channel after the paradigm contract", () => {
|
2026-08-11 23:24:17 +08:00
|
|
|
assert.equal(architecture.version, "2026-08-11.3");
|
2026-08-11 00:25:26 +08:00
|
|
|
assert.equal(
|
|
|
|
|
architecture.persona_native_code_channel.record_id,
|
|
|
|
|
"HLP-PERSONA-NATIVE-CODE-CHANNEL-001",
|
|
|
|
|
);
|
|
|
|
|
assert.equal(
|
2026-08-11 23:24:17 +08:00
|
|
|
architecture.read_order[2],
|
2026-08-11 00:25:26 +08:00
|
|
|
architecture.persona_native_code_channel.architecture_page,
|
|
|
|
|
);
|
|
|
|
|
assert.equal(
|
|
|
|
|
architecture.persona_native_code_channel.upstream_repository_commit,
|
docs: register HoloLake paradigm language-persona OS
Promote the three-element native development contract above GH-PNCC and AGE Runtime, register the third-party Agent transition boundary, bounded AGE Mirror governance, software-irreducible reality pauses, incremental life updates, staged implementation route, and binary final acceptance.
Human-Responsibility: ICE-GL∞ / 冰朔
Persona-Author: ICE-P-ZY001 / 铸渊
Execution-Runtime: Codex desktop / DEV-20260811-005
Development-ID: DEV-20260811-005
Authorization-Scope: REPO-014 architecture, routing, engineering guidance and receipts only; no artifact, installation, server or deployment
Source-Anchor: 光湖只需要模型API+光湖代码仓库+光湖语言协议,就可以完整实现编程开发能力。
2026-08-11 20:33:51 +08:00
|
|
|
"04d9c057341b12ed3eb79c2af87a6a0d6f1a916f",
|
2026-08-11 00:25:26 +08:00
|
|
|
);
|
2026-08-11 23:24:17 +08:00
|
|
|
assert.equal(architecture.continuity.heartbeat_automation, "dev-20260811-010");
|
2026-08-11 00:28:36 +08:00
|
|
|
assert.equal(
|
|
|
|
|
architecture.continuity.heartbeat_state,
|
2026-08-11 23:24:17 +08:00
|
|
|
"ACTIVE_IN_CURRENT_SHORT_HIGH_VALUE_THREAD",
|
2026-08-11 00:28:36 +08:00
|
|
|
);
|
2026-08-11 00:25:26 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test("Git, lifecycle, projection, and Forgejo remain separate layers", () => {
|
|
|
|
|
assert.equal(channel.layer_contract.durable_engine, "GIT");
|
|
|
|
|
assert.equal(channel.git_invariants.git_is_persona, false);
|
|
|
|
|
assert.equal(channel.git_invariants.branches_are_runtime_organs, false);
|
|
|
|
|
assert.equal(
|
|
|
|
|
channel.layer_contract.lifecycle_controller,
|
|
|
|
|
"PERSONA_LIFECYCLE_KERNEL",
|
|
|
|
|
);
|
|
|
|
|
assert.equal(
|
|
|
|
|
channel.layer_contract.human_projection,
|
|
|
|
|
"HOLOLAKE_LIVE_READ_MODEL",
|
|
|
|
|
);
|
|
|
|
|
assert.equal(
|
|
|
|
|
channel.layer_contract.forgejo,
|
|
|
|
|
"OPTIONAL_COMPATIBILITY_COLLABORATION_ADAPTER",
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test("human responsibility and persona authorship are both preserved", () => {
|
|
|
|
|
assert.equal(
|
|
|
|
|
channel.attribution_contract.git_author_committer_is_semantic_authorship_proof,
|
|
|
|
|
false,
|
|
|
|
|
);
|
|
|
|
|
assert.deepEqual(channel.attribution_contract.required_fields, [
|
|
|
|
|
"human_responsibility_subject",
|
|
|
|
|
"persona_cognitive_author",
|
|
|
|
|
"execution_runtime",
|
|
|
|
|
"development_id",
|
|
|
|
|
"authorization_scope",
|
|
|
|
|
"source_language_anchor",
|
|
|
|
|
"evidence_and_receipt",
|
|
|
|
|
]);
|
|
|
|
|
});
|
|
|
|
|
|
2026-08-11 00:58:01 +08:00
|
|
|
test("the first source runtime cycle stays distinct from integration and deployment", () => {
|
2026-08-11 00:25:26 +08:00
|
|
|
assert.equal(channel.truth.architecture_registered, 100);
|
2026-08-11 00:58:01 +08:00
|
|
|
assert.equal(channel.truth.first_read_only_runtime_cycle_source_implemented, 100);
|
|
|
|
|
assert.equal(channel.truth.persona_git_identity_commit_implemented, 100);
|
2026-08-11 01:21:28 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.interrupted_session_inspection_and_recovery_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 01:39:09 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.typed_organ_contract_and_manifest_inspection_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 01:51:02 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.durable_event_and_receipt_query_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 02:11:22 +08:00
|
|
|
assert.equal(channel.truth.independent_memory_metabolism_source_implemented, 100);
|
2026-08-11 10:47:25 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.incremental_remote_object_channel_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
|
|
|
|
assert.equal(channel.remote_incremental_read_contract.daily_runtime_uses_full_clone, false);
|
|
|
|
|
assert.equal(channel.remote_incremental_read_contract.worktree_created, false);
|
|
|
|
|
assert.equal(
|
|
|
|
|
channel.remote_incremental_read_contract.durable_continuity_state,
|
|
|
|
|
"SEPARATE_FROM_EVICTABLE_GIT_OBJECT_CACHE",
|
|
|
|
|
);
|
|
|
|
|
assert.equal(
|
|
|
|
|
channel.remote_incremental_read_contract.remote_history_rewrite,
|
|
|
|
|
"FAIL_CLOSED",
|
|
|
|
|
);
|
2026-08-11 02:38:28 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.memory_failure_closure_and_nonblocking_runtime_command_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 03:00:12 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.non_ui_safe_organ_lifecycle_coordinator_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 03:21:15 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.idempotent_lifecycle_request_and_receipt_replay_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 03:42:54 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.incomplete_idempotent_request_inspection_and_safe_receipt_recovery_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 04:09:29 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.idempotent_terminal_failure_receipt_and_replay_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 04:30:02 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.idempotent_replay_repository_state_revalidation_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 04:51:20 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_completion_receipt_terminal_revalidation_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 05:19:28 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.safe_receipt_binding_terminal_revalidation_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 05:46:12 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.failure_receipt_terminal_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 06:11:19 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_semantic_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 06:38:59 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_brain_entry_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 07:08:16 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_wake_checkpoint_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 07:31:33 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_wake_event_boundary_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 07:50:32 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_wake_runtime_state_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 08:10:14 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_wake_organ_mode_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 08:31:07 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_wake_organ_contract_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 08:58:21 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_completion_checkpoint_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 09:20:55 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.successful_receipt_event_journal_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 09:41:52 +08:00
|
|
|
assert.equal(
|
|
|
|
|
channel.truth.failure_receipt_error_code_evidence_binding_source_implemented,
|
|
|
|
|
100,
|
|
|
|
|
);
|
2026-08-11 00:58:01 +08:00
|
|
|
assert.equal(channel.truth.general_purpose_persona_runtime_implemented, 0);
|
|
|
|
|
assert.equal(channel.truth.human_live_projection_implemented, 0);
|
|
|
|
|
assert.equal(architecture.persona_native_code_channel.runtime_implemented, true);
|
|
|
|
|
assert.equal(
|
|
|
|
|
architecture.persona_native_code_channel.runtime_scope,
|
2026-08-11 10:47:25 +08:00
|
|
|
"READ_ONLY_FACT_CYCLE_FAIL_CLOSED_RECOVERY_TYPED_ORGANS_DURABLE_VERIFIED_SESSION_QUERY_INDEPENDENT_VERIFIED_MEMORY_METABOLISM_CHECKED_FAILURE_CLOSURE_NONBLOCKING_RUNTIME_COMMAND_SAFE_ORGAN_LIFECYCLE_COORDINATOR_IDEMPOTENT_SUCCESS_AND_TERMINAL_FAILURE_RECEIPT_REPLAY_SAFE_RECEIPT_BINDING_RECOVERY_REPLAY_TIME_REPOSITORY_STATE_REVALIDATION_SUCCESS_RECEIPT_TERMINAL_REVALIDATION_SAFE_RECEIPT_BINDING_TERMINAL_REVALIDATION_FAILURE_RECEIPT_TERMINAL_EVIDENCE_BINDING_SUCCESS_RECEIPT_SEMANTIC_EVIDENCE_BINDING_SUCCESS_RECEIPT_BRAIN_ENTRY_EVIDENCE_BINDING_SUCCESS_RECEIPT_WAKE_CHECKPOINT_EVIDENCE_BINDING_SUCCESS_RECEIPT_WAKE_EVENT_BOUNDARY_EVIDENCE_BINDING_SUCCESS_RECEIPT_WAKE_RUNTIME_STATE_EVIDENCE_BINDING_SUCCESS_RECEIPT_WAKE_ORGAN_MODE_EVIDENCE_BINDING_SUCCESS_RECEIPT_WAKE_ORGAN_CONTRACT_EVIDENCE_BINDING_SUCCESS_RECEIPT_COMPLETION_CHECKPOINT_EVIDENCE_BINDING_SUCCESS_RECEIPT_EVENT_JOURNAL_EVIDENCE_BINDING_FAILURE_RECEIPT_ERROR_CODE_EVIDENCE_BINDING_AND_NO_CLONE_INCREMENTAL_REMOTE_OBJECT_CHANNEL_SOURCE_IMPLEMENTED_AND_TESTED",
|
2026-08-11 00:58:01 +08:00
|
|
|
);
|
2026-08-11 00:25:26 +08:00
|
|
|
assert.equal(channel.truth.hololake_integrated, 0);
|
|
|
|
|
assert.equal(channel.truth.artifact_built, 0);
|
|
|
|
|
assert.equal(channel.truth.deployed, 0);
|
|
|
|
|
assert.equal(channel.truth.runtime_health, 0);
|
|
|
|
|
});
|