feat(collab): launch JZAO-only HoloLake stage one
This commit is contained in:
parent
01e8c2ec5c
commit
1dd4a6a39e
17 changed files with 492 additions and 21 deletions
|
|
@ -15,6 +15,8 @@ CONTROL = ROOT / "eternal-lake-heart/heartbeat-core/office-building-current/cont
|
|||
REGISTRY = CONTROL / "HOST-REGISTRY.json"
|
||||
CONTRACT = CONTROL / "EVENT-CONTRACT.json"
|
||||
TASKS = CONTROL / "TASK-BOARD.json"
|
||||
DEVENV = CONTROL / "DEVELOPMENT-ENVIRONMENT.json"
|
||||
CLEANING = CONTROL / "CLEANING-HANDOFF.json"
|
||||
OFFICE_COMPUTER = ROOT / "eternal-lake-heart/heartbeat-core/office-building-current/offices/HB-OFFICE-HOLOLAKE-0001/smart-computer/office_computer.py"
|
||||
MODEL_ROUTER = ROOT / "server-tools/persona-model-smart-router/openlux_router.py"
|
||||
|
||||
|
|
@ -195,6 +197,8 @@ def panel() -> dict[str, Any]:
|
|||
"autonomous_host_decisions": decisions[-40:],
|
||||
"invalid_events": scanned["invalid_events"],
|
||||
"event_count": len(events),
|
||||
"development_environment": load(DEVENV),
|
||||
"cleaning_handoff": load(CLEANING),
|
||||
"panel_persisted": False,
|
||||
"authority_granted": False,
|
||||
}
|
||||
|
|
@ -232,6 +236,7 @@ def mentions(development_id: str) -> dict[str, Any]:
|
|||
|
||||
def audit() -> dict[str, Any]:
|
||||
registry, contract, task_board = load(REGISTRY), load(CONTRACT), load(TASKS)
|
||||
devenv, cleaning = load(DEVENV), load(CLEANING)
|
||||
errors = []
|
||||
ids = [item["development_id"] for item in registry.get("hosts", [])]
|
||||
if ids != ["HLP-TDEV-CODEX-0001", "HLP-TDEV-ZCODE-0001", "HLP-TDEV-QWEN-0001", "HLP-TDEV-DOUBAO-0001"]:
|
||||
|
|
@ -242,6 +247,10 @@ def audit() -> dict[str, Any]:
|
|||
errors.append("TRANSPORT_TRUTH_MISMATCH")
|
||||
if task_board.get("shared_file_is_definition_not_live_mutation_target") is not True:
|
||||
errors.append("TASK_BOARD_MULTIWRITER_RISK")
|
||||
if any(not str(value).startswith("/Volumes/JZAO/") for value in [*devenv.get("source_roots", {}).values(), *devenv.get("generated_output_roots", {}).values()]):
|
||||
errors.append("DEVELOPMENT_ROOT_OUTSIDE_JZAO")
|
||||
if cleaning.get("direct_delete_allowed") is not False or cleaning.get("whole_disk_discovery") is not False:
|
||||
errors.append("CLEANING_HANDOFF_DESTRUCTIVE_OR_DISCOVERY_ENABLED")
|
||||
scanned = scan()
|
||||
if scanned["invalid_events"]:
|
||||
errors.append("INVALID_HOST_EVENTS_PRESENT")
|
||||
|
|
|
|||
|
|
@ -67,6 +67,14 @@ class MultipathConsoleTest(unittest.TestCase):
|
|||
self.assertTrue(any(item.startswith("AUTONOMOUS_DECISION_FIELDS_REQUIRED") for item in errors))
|
||||
self.assertIn("AUTONOMOUS_DECISION_BRAIN_READBACK_INVALID", errors)
|
||||
|
||||
def test_all_development_roots_are_on_jzao_and_cleanup_is_reviewed(self):
|
||||
panel = MODULE.panel()
|
||||
devenv = panel["development_environment"]
|
||||
roots = [*devenv["source_roots"].values(), *devenv["generated_output_roots"].values()]
|
||||
self.assertTrue(all(path.startswith("/Volumes/JZAO/") for path in roots))
|
||||
self.assertFalse(panel["cleaning_handoff"]["direct_delete_allowed"])
|
||||
self.assertFalse(panel["cleaning_handoff"]["whole_disk_discovery"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Reference in a new issue