feat(guanghu-os): add cross-root supervisor slice

This commit is contained in:
冰朔 2026-08-15 23:49:28 +08:00
commit 9db3ecd2e7
10 changed files with 317 additions and 5 deletions

View file

@ -1,7 +1,7 @@
{
"schema": "guanghu.os-control-architecture/v1",
"record_id": "HLP-GUANGHU-OS-CONTROL-001",
"version": "2026-08-15.11",
"version": "2026-08-15.12",
"state": "CURRENT_CANONICAL",
"final_topology": "GUANGHU_MASTER_WITH_ON_DEMAND_LINUX_SUBCONTROL_AND_RESCUE",
"control_ownership": {
@ -39,7 +39,7 @@
"linux_on_demand_subcontrol": 0,
"linux_rescue_preserved": 100,
"final_guanghu_os_master": 0,
"next_engineering_gate": "IMPLEMENT_AND_VERIFY_CROSS_SWITCH_ROOT_PERSISTENT_GUANGHU_SUPERVISOR_IN_ISOLATION"
"next_engineering_gate": "BUILD_AND_VERIFY_CROSS_SWITCH_ROOT_PERSISTENT_GUANGHU_SUPERVISOR_IN_JD_HOST_QEMU"
},
"implementation": {
"guanghu_supervisor_lifecycle_contract_source": 100,
@ -73,6 +73,10 @@
"guanghu_pre_root_supervisor_contract_source": 100,
"guanghu_first_boot_initramfs_builder_source": 100,
"jd_host_qemu_pre_root_supervisor": 100,
"guanghu_root_supervisor_contract_source": 100,
"guanghu_root_supervisor_systemd_unit_source": 100,
"guanghu_cross_root_fixture_builder_source": 100,
"jd_host_qemu_cross_switch_root_supervisor": 0,
"independent_guanghu_first_boot_supervisor": 0,
"jd_physical_deployment": 0
},
@ -155,5 +159,6 @@
"independent_forgejo_continuity_contract": "product-source/hololake-platform/guanghu-os/standards/jd-independent-forgejo-continuity-contract.json",
"architecture_page": "product-source/hololake-platform/architecture/HOLOLAKE-GUANGHU-OS-MASTER-AND-ON-DEMAND-LINUX-SUBCONTROL-20260810.md",
"adr": "product-source/hololake-platform/docs/adr/0175-guanghu-os-master-and-on-demand-linux-subcontrol.md",
"development_id": "DEV-20260810-012"
"development_id": "DEV-20260815-001",
"refines_development_id": "DEV-20260810-012"
}

View file

@ -43,12 +43,12 @@ test("current JD state stays transitional and cannot impersonate final master co
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",
"BUILD_AND_VERIFY_CROSS_SWITCH_ROOT_PERSISTENT_GUANGHU_SUPERVISOR_IN_JD_HOST_QEMU",
);
});
test("the physical shadow and host QEMU cycles are registered without impersonating Guanghu-owned boot control", () => {
assert.equal(contract.version, "2026-08-15.11");
assert.equal(contract.version, "2026-08-15.12");
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);
@ -79,6 +79,10 @@ test("the physical shadow and host QEMU cycles are registered without impersonat
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, 100);
assert.equal(contract.implementation.guanghu_root_supervisor_contract_source, 100);
assert.equal(contract.implementation.guanghu_root_supervisor_systemd_unit_source, 100);
assert.equal(contract.implementation.guanghu_cross_root_fixture_builder_source, 100);
assert.equal(contract.implementation.jd_host_qemu_cross_switch_root_supervisor, 0);
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");