feat(hololake): define native stage one modules
This commit is contained in:
parent
458ead4e43
commit
1da52a61a1
43 changed files with 1332 additions and 111 deletions
|
|
@ -51,7 +51,19 @@ class MultipathConsoleTest(unittest.TestCase):
|
|||
def test_product_source_stays_blocked(self):
|
||||
value = MODULE.status()
|
||||
self.assertFalse(value["product_source_write_allowed"])
|
||||
self.assertEqual(value["reason"], "ONLINE_ARCHITECTURE_AND_LOCAL_PRODUCT_LINE_GUARDS_NOT_READY")
|
||||
self.assertTrue(value["language_world_development_allowed"])
|
||||
self.assertEqual(value["reason"], "LANGUAGE_WORLD_STAGE1_READY_PRODUCT_SOURCE_REMAINS_SEPARATELY_BLOCKED")
|
||||
|
||||
def test_autonomous_pause_requires_cause_and_brain_readback(self):
|
||||
contract = MODULE.load(MODULE.CONTRACT)
|
||||
event = {
|
||||
"schema": contract["event_schema"], "event_id": "X", "console_id": "HB-MPC-0001",
|
||||
"event_type": "PAUSE", "from_development_id": "HLP-TDEV-CODEX-0001", "mentions": ["@ALL"],
|
||||
"emitted_at": "2026-09-09T20:00:00+08:00", "payload": {"reason":"quota"}, "evidence": [], "authority_granted": False,
|
||||
}
|
||||
errors = MODULE.validate_event(event, "HLP-TDEV-CODEX-0001", contract)
|
||||
self.assertTrue(any(item.startswith("AUTONOMOUS_DECISION_FIELDS_REQUIRED") for item in errors))
|
||||
self.assertIn("AUTONOMOUS_DECISION_BRAIN_READBACK_INVALID", errors)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Reference in a new issue