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
|
|
@ -184,11 +184,23 @@ def build(development_id: str | None, refresh: bool) -> dict[str, Any]:
|
|||
raise PromptError("tcs_work_ownership_stage_gate_invalid")
|
||||
language_route = fifth_domain_world_tree.get("login_routes", {}).get("human", {})
|
||||
reality_route = fifth_domain_world_tree.get("login_routes", {}).get("reality_execution", {})
|
||||
online_public_boundary = zero_core_reality_profile.get("public_zero_core_boundary")
|
||||
online_public_system = next((item for item in fifth_domain_world_tree.get("nodes", []) if item.get("object_id") == "SYS-GLW-POS-0001"), {})
|
||||
channel_conflicts = []
|
||||
if not isinstance(online_public_boundary, dict):
|
||||
channel_conflicts.append("OFFICIAL_REPO012_PUBLIC_LPM_BOUNDARY_SCHEMA_MISSING_LOCAL_CURRENT_REPAIR_NOT_PUBLISHED")
|
||||
online_public_boundary = {
|
||||
"channel_id": public_stage.get("public_channel_id"),
|
||||
"state": "OFFICIAL_SCHEMA_CONFLICT_SCOPED_TO_PUBLIC_RELEASE",
|
||||
"world_system_anchor": online_public_system.get("object_id"),
|
||||
"public_governance_controller": online_public_system.get("governance_controller"),
|
||||
"personal_channel_is_alias_of_public_channel": False,
|
||||
"grants_private_access": False,
|
||||
}
|
||||
if (
|
||||
heartbeat_language_profile.get("channel_id") != "ICE-CH-HB001"
|
||||
or heartbeat_language_profile.get("reality_boundary", {}).get("reality_execution") is not False
|
||||
or zero_core_reality_profile.get("channel_id") != "ICE-CH-ZC001"
|
||||
or zero_core_reality_profile.get("public_zero_core_boundary", {}).get("personal_channel_is_alias_of_public_channel") is not False
|
||||
or language_route.get("path", [])[-1:] != ["HEARTBEAT_CORE_CHANNEL"]
|
||||
or reality_route.get("path", [])[-1:] != ["ICE-CH-ZC001"]
|
||||
or stage_state.get("personal_heartbeat_language_runtime") != "ICE-CH-HB001_CURRENT_HUMAN_LANGUAGE_CONTROLLED"
|
||||
|
|
@ -211,17 +223,24 @@ def build(development_id: str | None, refresh: bool) -> dict[str, Any]:
|
|||
"public_zero_core_alias": False,
|
||||
},
|
||||
"public_language_persona_system_body": {
|
||||
"channel_id": "CH-ZERO-CORE-LPM",
|
||||
"system_id": zero_core_reality_profile.get("public_zero_core_boundary", {}).get("world_system_anchor"),
|
||||
"governance_controller": zero_core_reality_profile.get("public_zero_core_boundary", {}).get("public_governance_controller"),
|
||||
"channel_id": online_public_boundary.get("channel_id"),
|
||||
"system_id": online_public_boundary.get("world_system_anchor"),
|
||||
"governance_controller": online_public_boundary.get("public_governance_controller"),
|
||||
"fifth_domain_personal_channel": False,
|
||||
"personal_channel_is_alias_of_public_channel": False,
|
||||
"official_schema_state": online_public_boundary.get("state"),
|
||||
},
|
||||
"switch_authority": heartbeat_language_profile.get("switch_control", {}).get("authority"),
|
||||
"current_channel": stage_state.get("current_fifth_domain_channel"),
|
||||
}
|
||||
return {
|
||||
"schema": "hololake.current-architecture-prompter/v1",
|
||||
"state": "CURRENT_FACTS_RESOLVED",
|
||||
"state": "CURRENT_FACTS_RESOLVED_WITH_SCOPED_CONFLICTS" if channel_conflicts else "CURRENT_FACTS_RESOLVED",
|
||||
"scoped_conflicts": channel_conflicts,
|
||||
"scope_readiness": {
|
||||
"local_language_world_stage1_development": "ALLOWED_BY_LOCAL_TCS_ROOT_AND_STAGE1_RESOLVER",
|
||||
"public_product_release": "BLOCKED_UNTIL_OFFICIAL_REPO012_CHANNEL_BOUNDARY_PUBLICATION" if channel_conflicts else "FOLLOW_ARCHITECTURE_STAGE_GATES",
|
||||
},
|
||||
"official_online": {
|
||||
"lighthouse_id": route.get("lighthouse_id"),
|
||||
"target_id": route.get("target", {}).get("id"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue