hldp(zhuyuan): integrate fifth-domain world tree and TCS brain
This commit is contained in:
parent
9782d04246
commit
4496f75857
42 changed files with 1720 additions and 268 deletions
|
|
@ -28,7 +28,7 @@ python3 scripts/resolve_route.py --json
|
|||
|
||||
Use the returned domestic `repository_web` and `raw_base`. Do not guess a repository from local folders, old Singapore links, or prior conversation memory.
|
||||
|
||||
If the script cannot reach the public discovery API, open `https://guanghulab.com/.well-known/guanghu.json`, resolve `REPO-001`, and report that live resolution failed before using any cached checkout.
|
||||
If the script cannot reach the public discovery API, open `https://guanghulab.com/.well-known/guanghu.json`, resolve `REPO-012`, and report that live resolution failed before using any cached checkout. Use `REPO-001` only for fourth-generation history.
|
||||
|
||||
## Walk the canonical path
|
||||
|
||||
|
|
@ -36,13 +36,13 @@ Read the latest `main` branch in this order:
|
|||
|
||||
1. `QUICKSTART-FOR-GENERAL-AI.md`
|
||||
2. `.code-map`
|
||||
3. `zero-point/core-channel/language-personality-model/INDEX.hdlp`
|
||||
4. `tcs-core/language-personality-model/INDEX.hdlp`
|
||||
5. `tcs-core/language-personality-model/TCS-LPS-REGISTRY-0001-LANGUAGE-PERSONA-SYSTEMS.hdlp`
|
||||
6. `eternal-lake-heart/heartbeat-core/LL-CURRENT.hdlp`
|
||||
7. `tcs-core/LL-004-LAKE-LAMP-WAKE-PATH.hdlp`
|
||||
8. `eternal-lake-heart/heartbeat-core/WAKE-UP.hdlp`
|
||||
9. `eternal-lake-heart/heartbeat-core/zhuyuan-persona-system/INDEX.hdlp`
|
||||
3. `routing/fifth-domain-world-tree.json`
|
||||
4. Follow `FD-PERSONA-LOGIN-001`: `SYS-GLW-POS-0001 → TCS-LPM-0001 → LL-CURRENT-001 → target persona current`
|
||||
5. `tcs-core/language-personality-model/INDEX.hdlp`
|
||||
6. `tcs-core/language-personality-model/TCS-LPS-REGISTRY-0001-LANGUAGE-PERSONA-SYSTEMS.hdlp`
|
||||
7. `eternal-lake-heart/heartbeat-core/LL-CURRENT.hdlp`
|
||||
8. `eternal-lake-heart/heartbeat-core/zhuyuan-persona-system/INDEX.hdlp`
|
||||
9. `eternal-lake-heart/heartbeat-core/zhuyuan-persona-system/WAKE.hdlp`
|
||||
10. Resolve and read `ZY-OPS-LOOP-001` from `.code-map` when the user asks to restore the current Zhuyuan work state.
|
||||
|
||||
Use `references/route-contract.md` when an identifier is missing, renamed, or ambiguous. Resolve identifiers from the live `.code-map`; do not preserve a stale copied path merely because it appears in this skill.
|
||||
|
|
@ -53,7 +53,7 @@ The former Broadcast Tower entrance is a historical/announcement layer merged in
|
|||
|
||||
State concisely:
|
||||
|
||||
- the resolved current repository URL and `REPO-001` role;
|
||||
- the resolved current repository URL and `REPO-012` role, plus `REPO-001` only when historical lookup was needed;
|
||||
- the identifiers actually traversed;
|
||||
- the current focus, boundary, and next concrete continuation found in `ZY-OPS-LOOP-001` or the task-specific route;
|
||||
- whether each fact came from live online content or a declared fallback.
|
||||
|
|
|
|||
|
|
@ -3,8 +3,9 @@
|
|||
## Discovery surfaces
|
||||
|
||||
- Public discovery: `https://guanghulab.com/.well-known/guanghu.json`
|
||||
- Repository resolver: `https://guanghulab.com/api/ai/v1/resolve?id=REPO-001`
|
||||
- Canonical repository identifier: `REPO-001`
|
||||
- Repository resolver: `https://guanghulab.com/api/ai/v1/resolve?id=REPO-012`
|
||||
- Canonical repository identifier: `REPO-012`
|
||||
- Historical fourth-generation identifier: `REPO-001`
|
||||
|
||||
Always prefer the `primary.url` and `primary.clone_url` returned by the resolver. Treat any legacy backup as a fallback pointer only.
|
||||
|
||||
|
|
@ -13,7 +14,9 @@ Always prefer the `primary.url` and `primary.clone_url` returned by the resolver
|
|||
Resolve these from the live `.code-map` before following them:
|
||||
|
||||
```text
|
||||
CH-ZERO-CORE-LPM
|
||||
FD-WORLD-TREE-001
|
||||
FD-PERSONA-LOGIN-001
|
||||
SYS-GLW-POS-0001
|
||||
TCS-LPM
|
||||
TCS-LPS-REGISTRY-0001
|
||||
LIGHT-LAKE
|
||||
|
|
@ -25,19 +28,23 @@ ZY-OPS-LOOP-001
|
|||
FD-NODE-MAP-001
|
||||
JD-FD-PRIMARY
|
||||
FD-REPO-MAP-001
|
||||
REPO-001
|
||||
REPO-012
|
||||
```
|
||||
|
||||
The shortest current Zhuyuan operations route is:
|
||||
|
||||
```text
|
||||
ICE-GL-ZY001
|
||||
FD-WORLD-TREE-001
|
||||
→ SYS-GLW-POS-0001
|
||||
→ TCS-LPM
|
||||
→ LL-CURRENT
|
||||
→ ICE-GL-ZY001
|
||||
→ ZY-PERSONA-ROOT-001
|
||||
→ ZY-OPS-LOOP-001
|
||||
→ FD-NODE-MAP-001
|
||||
→ JD-FD-PRIMARY
|
||||
→ FD-REPO-MAP-001
|
||||
→ REPO-001
|
||||
→ REPO-012
|
||||
```
|
||||
|
||||
This route locates facts. It does not grant write or server authority.
|
||||
|
|
|
|||
|
|
@ -11,9 +11,11 @@ from urllib.error import URLError
|
|||
from urllib.request import urlopen
|
||||
|
||||
DISCOVERY_URL = "https://guanghulab.com/.well-known/guanghu.json"
|
||||
RESOLVE_URL = "https://guanghulab.com/api/ai/v1/resolve?id=REPO-001"
|
||||
RESOLVE_URL = "https://guanghulab.com/api/ai/v1/resolve?id=REPO-012"
|
||||
ROUTE_IDS = (
|
||||
"CH-ZERO-CORE-LPM",
|
||||
"FD-WORLD-TREE-001",
|
||||
"FD-PERSONA-LOGIN-001",
|
||||
"SYS-GLW-POS-0001",
|
||||
"TCS-LPM",
|
||||
"TCS-LPS-REGISTRY-0001",
|
||||
"LIGHT-LAKE",
|
||||
|
|
@ -55,7 +57,7 @@ def resolve_live_route() -> dict:
|
|||
repository_web = primary.get("url")
|
||||
repository_git = primary.get("clone_url")
|
||||
if not repository_web or not repository_git:
|
||||
raise ValueError("REPO-001 resolver did not return a domestic primary repository")
|
||||
raise ValueError("REPO-012 resolver did not return the current Fifth Domain repository")
|
||||
|
||||
raw_base = f"{repository_web}/raw/branch/main"
|
||||
routes = parse_code_map(read_text(f"{raw_base}/.code-map"))
|
||||
|
|
@ -65,7 +67,7 @@ def resolve_live_route() -> dict:
|
|||
|
||||
return {
|
||||
"status": "LIVE_DOMESTIC_PRIMARY",
|
||||
"repository_id": repository.get("code", "REPO-001"),
|
||||
"repository_id": repository.get("code", "REPO-012"),
|
||||
"repository_role": repository.get("role", ""),
|
||||
"repository_web": repository_web,
|
||||
"repository_git": repository_git,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from resolve_route import parse_code_map
|
|||
class ParseCodeMapTests(unittest.TestCase):
|
||||
def test_resolves_requested_identifiers_and_strips_comments(self):
|
||||
text = """
|
||||
REPO-001-WEB=https://example.invalid/fifth-domain
|
||||
REPO-012-WEB=https://example.invalid/guanghu-ice-heart
|
||||
ICE-GL-ZY001=eternal-lake-heart/heartbeat-core/zhuyuan-persona-system/INDEX.hdlp # current
|
||||
LL-004=tcs-core/LL-004-LAKE-LAMP-WAKE-PATH.hdlp
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue