docs(guanghu-os): register JD pre-root QEMU proof

This commit is contained in:
冰朔 2026-08-15 23:35:22 +08:00
commit fed0c73b04
6 changed files with 110 additions and 15 deletions

View file

@ -34,17 +34,21 @@ test("final topology makes Guanghu the master while preserving Linux as on-deman
test("current JD state stays transitional and cannot impersonate final master control", () => {
assert.equal(
contract.jd_fd_primary.observed_state,
"LANGUAGE_PRIMARY_ON_LINUX_HOSTED_GUANGHU_SUPERVISOR_BRIDGE",
"LANGUAGE_PRIMARY_WITH_QEMU_VERIFIED_PRE_ROOT_GUANGHU_SUPERVISOR",
);
assert.equal(contract.jd_fd_primary.guanghu_semantic_service_control, 100);
assert.equal(contract.jd_fd_primary.guanghu_final_boot_control, 0);
assert.equal(contract.jd_fd_primary.linux_on_demand_subcontrol, 0);
assert.equal(contract.jd_fd_primary.linux_rescue_preserved, 100);
assert.equal(contract.jd_fd_primary.final_guanghu_os_master, 0);
assert.equal(
contract.jd_fd_primary.next_engineering_gate,
"IMPLEMENT_AND_VERIFY_CROSS_SWITCH_ROOT_PERSISTENT_GUANGHU_SUPERVISOR_IN_ISOLATION",
);
});
test("the physical shadow and host QEMU cycles are registered without impersonating Guanghu-owned boot control", () => {
assert.equal(contract.version, "2026-08-15.10");
assert.equal(contract.version, "2026-08-15.11");
assert.equal(contract.implementation.guanghu_supervisor_lifecycle_contract_source, 100);
assert.equal(contract.implementation.target_readback_and_mandatory_reclaim_state_machine, 100);
assert.equal(contract.implementation.declared_supervisor_core_line_and_function_coverage, 100);
@ -74,7 +78,7 @@ test("the physical shadow and host QEMU cycles are registered without impersonat
assert.equal(contract.implementation.linux_code_bridge_under_guanghu_supervisor, 100);
assert.equal(contract.implementation.guanghu_pre_root_supervisor_contract_source, 100);
assert.equal(contract.implementation.guanghu_first_boot_initramfs_builder_source, 100);
assert.equal(contract.implementation.jd_host_qemu_pre_root_supervisor, 0);
assert.equal(contract.implementation.jd_host_qemu_pre_root_supervisor, 100);
assert.equal(contract.implementation.independent_guanghu_first_boot_supervisor, 0);
assert.equal(contract.implementation.jd_physical_deployment, 0);
assert.equal(contract.current_target_evidence.final_state, "DORMANT");
@ -82,6 +86,13 @@ test("the physical shadow and host QEMU cycles are registered without impersonat
assert.equal(contract.native_service_qemu_evidence.native_physical_residency, 0);
assert.equal(contract.native_service_qemu_evidence.public_native_service_equivalence, 0);
assert.match(contract.native_service_qemu_evidence.server_receipt_sha256, /^[0-9a-f]{64}$/);
assert.equal(contract.pre_root_supervisor_qemu_evidence.positive_pre_root_execution, 100);
assert.equal(contract.pre_root_supervisor_qemu_evidence.negative_authority_binding_hard_fail, 100);
assert.equal(contract.pre_root_supervisor_qemu_evidence.physical_boot_files_changed, false);
assert.equal(contract.pre_root_supervisor_qemu_evidence.physical_reboot_performed, false);
assert.equal(contract.pre_root_supervisor_qemu_evidence.cross_switch_root_persistent_supervisor, 0);
assert.equal(contract.pre_root_supervisor_qemu_evidence.final_guanghu_os_master, 0);
assert.match(contract.pre_root_supervisor_qemu_evidence.server_receipt_sha256, /^[0-9a-f]{64}$/);
assert.equal(contract.native_public_projection_shadow_evidence.synthetic_ready_shadow_readback, 100);
assert.equal(contract.native_public_projection_shadow_evidence.post_test_state, "DORMANT");
assert.equal(contract.native_public_projection_shadow_evidence.live_native_freshness_readback, 0);