Guanghu Domestic Migration a27e87cb99 chore: import sanitized domestic snapshot for REPO-007
Source snapshot: 97d7f0fae96dc04b7ddad56fc1db6a108ed662cc

[SEC-CLEAN] · pre-push-clean v1.0 · 109处敏感信息已自动转乱码
2026-07-17 15:59:55 +08:00

7.9 KiB
Raw Blame History

🏗️ SYS-ARCH-QY-001 · 光湖用户服务模型 v1.0

SYS-ARCH-QY-001 · guanghu-user-service-model · v1.0 · 2026-04-21
├── meta
│   ├── anchor: 2026-04-21 T14:34 CST
│   ├── issued_by: AG-SY-01 霜砚
│   ├── source: ICE-GL-QY001 口述 2026-04-21 T14:22  User Requirements
│   ├── subject: QY-GH-D05-S05-ROOT-0001 ⇔ ICE-GL-QY001
│   ├── controller: TCS-0002∞ 冰朔
│   ├── language: HDLP
│   └── axioms_inherited: [AX-01, AX-02, AX-03, AX-SY-10, module-lending]
│
├── §0 scope
│   ├── applies_to: 所有光湖用户实例
│   ├── activation: guanghulab-core ∧ user_server_up ∧ local_secrets_dir_built
│   └── current_stage: stage-1 · 冰朔单用户 · BS-SVR-SG-001
│
├── §1 layers
│   ├── REPO-CORE · 母仓层
│   │   ├── identity: guanghulab-core @ github
│   │   ├── holds: qiyuan_memory  modules_source  registry  sync_scripts
│   │   ├── ⊥_holds: [real_secrets, user_data, runtime_instances]
│   │   └── dweller: 栖渊 ∧ modules · 合仓而居
│   │
│   ├── SEC-LOCAL · 本地密钥层
│   │   ├── path: /Users/bingshuolingdianyuanhe/Library/Application Support/GuanghuLab/secrets/
│   │   ├── index: index.hdlp.json
│   │   ├── naming: <subject>-<category>-<region>-<resource>-<seq>
│   │   ├── examples:
│   │   │   ├── ZY-SSH-SG-CORE-001
│   │   │   ├── ZY-API-LLM-PRIMARY-001
│   │   │   ├── ZY-DNS-ROOT-001
│   │   │   └── ZY-REPO-GH-CORE-001
│   │   ├── 冰朔_job: 按模板一次性填入
│   │   ├── 栖渊_job: 记路径 · 按编号自定位 · 冰朔 ⊥ 需知文件位置
│   │   └── isolation: ⊥ 进仓库 · .gitignore 必屏
│   │
│   └── SVR-USER · 服务器层
│       ├── cardinality: 1_user : 1_server
│       ├── spec: 低配 ok · 无并发 · AX-02 派生
│       ├── resident_min: BASE-SHELL-RUNTIME = frontend_chat_ui + minimal_backend_channel
│       ├── modules: on-demand_mount · via_lending
│       └── data_location: 用户 COS 桶 · ⊥ 服务器磁盘
│
├── §2 flows
│   ├── FLOW-CODE
│   │   ├── fwd: 母仓 → 服务器 · as export_pkg
│   │   ├── rev: ⊥
│   │   └── cn_branch: 母仓 → 国内镜像仓 · modules_code + manifest · 单向
│   │
│   ├── FLOW-SECRET
│   │   ├── fwd: 本地密钥目录 → 服务器 ENV · runtime_inject
│   │   ├── rev: ⊥
│   │   ├── allowed_at: [本地目录, 服务器 ENV]
│   │   └── forbidden_at: [仓库源码, 日志, COS 正文]
│   │
│   ├── FLOW-MODULE
│   │   ├── lifecycle: claim → install → activate → run → deactivate → uninstall
│   │   ├── trigger: semantic_judge · 人格体 ← 用户自然语言
│   │   ├── return: auto_by_persona · ⊥ user_operation
│   │   └── return_preserves: [母仓源码, COS 数据, 密钥]
│   │
│   └── FLOW-USER-DATA
│       ├── path: 用户 → 服务器内存 → COS 桶
│       ├── ownership: 用户 COS 桶 · 用户自有腾讯云账户
│       └── boundary: ⊥ 离用户 COS · ⊥ 回流母仓 · ⊥ 跨境至境外节点
│
├── §3 components
│   ├── HDLP-RECOVERY-CHAIN
│   │   ├── order: 恢复引导 → why_ledger → 身份锚点 → 时间快照 → 系统地图 → 记忆索引
│   │   └── rule: read_why ≫ read_what
│   │
│   ├── WHY-LEDGER
│   │   ├── records: [架构判断, 公理引用, 边界来处, 结论成因]
│   │   └── readers: 人格体 · ⊥ human
│   │
│   ├── SECRET-LOCATOR
│   │   ├── in: secret_code
│   │   └── out: [local_template_path, env_var_name, usage_constraint]
│   │
│   ├── MODULE-REGISTRY
│   │   ├── index: module_code → {version, entry, mirror_eligibility, cos_prefix}
│   │   └── complexity: O(1)
│   │
│   ├── BASE-SHELL-RUNTIME · 聊天门
│   │   ├── parts: [frontend_chat_ui, minimal_backend_channel]
│   │   └── ⊥_carries: [business_logic, persistence, module_capabilities]
│   │
│   ├── MODULE-LIFECYCLE-MANAGER
│   │   └── duties: [6_phase_exec, fail_rollback, state_bookkeeping]
│   │
│   ├── STORAGE-BINDING-LAYER
│   │   ├── duties: [模块 ⇔ cos_prefix/index/metadata 握手, 历史续接]
│   │   └── bind_at: after(install) ∧ before(activate)
│   │
│   └── REPO-SYNC-LAYER
│       ├── first_impl: github_adapter
│       ├── reserved: cn_tencent_repo_adapter
│       └── swap_policy: swap(adapter) ∧ ⊥ rewrite(module_system)
│
├── §4 invariants
│   ⊢ INV-01 · 光湖 ⊥ touch(user_data)
│   ⊢ INV-02 · 光湖 ⊥ bear(user_compute) · AX-02 派生
│   ⊢ INV-03 · real_secrets ⊥ in repo
│   ⊢ INV-04 · user_data ⊥ cross_border
│   ⊢ INV-05 · modules_source ⊂ 母仓 · ⊥ persist on user_server
│   ⊢ INV-06 · 栖渊 ⊥ reside on server · reside in 母仓 · land(short)
│   ⊢ INV-07 · internal_doc_lang = HDLP · 非人类可读 ≠ 缺陷
│   ⊢ INV-08 · module_claim_trigger = semantic_judge · ⊥ user_explicit_cmd
│
├── §5 roles
│   ├── TCS-0002∞ 冰朔
│   │   ├── does: [一次性填密钥, 说自然语言, 持最高主权]
│   │   └── sees: AG-SY-01 层 · ⊥ 栖渊内部细节
│   │
│   ├── QY-GH-D05-S05-ROOT-0001 栖渊
│   │   ├── does: [守架构, 记路径, 借/装/绑/用/卸/还/续, 自然语言 → 行动]
│   │   └── resides: 母仓
│   │
│   ├── AG-SY-01 霜砚
│   │   ├── does: [Notion 层将军, 协同栖渊记忆沉淀, 治理同步]
│   │   └── ⊥: 动栖渊密钥目录
│   │
│   └── 铸渊
│       └── does: [GitHub 执行层, 母仓工程落地]
│
├── §6 stages
│   ├── stage-1 · current · 新加坡单用户
│   │   ├── done: [本架构, User Requirements, 栖渊根身份]
│   │   └── todo: [母仓骨架, 恢复链文档, 密钥模板, 聊天门底座, 同步层占位]
│   │
│   └── stage-2 · 国内镜像启用
│       ├── trigger: 国内备案完成 ∧ 国内节点服务器就绪
│       └── activate: [REPO-SYNC-LAYER_cn_adapter, modules/manifest 单向同步]
│
├── §7 suspended
│   ├── §7.1 · chat_door_protocol ∈ {http, websocket, other} · defer_until stage-1_start
│   ├── §7.2 · module_claim_ux_detail · semantic_main_form_locked · defer_until 具体模块上场
│   └── §7.3 · AG-SY-WEB-001 ⇔ BASE-SHELL-RUNTIME adapter · channel_vs_persona_split_known · defer_until §7.1_decided
│
├── §8 xref
│   ├── User Requirements · 本架构源 · https://www.notion.so/349fb92f383180388698d4b8f8801ffc
│   ├── 栖渊根身份回执 · QY-GH-D05-S05-ROOT-0001 · https://www.notion.so/91b7d1c5854a44a680d4a6a8cbb1c3a1
│   ├── 架构决策 · 智库节点 + 模块借阅 · https://www.notion.so/1cfc258c4d2244bcbe5a85c330f3b361
│   ├── CN-DEV-HUB · AX-01/02/03 出处 · https://www.notion.so/c51263d89e804af7a4a9c6d6fde591ae
│   ├── 光湖商业架构 · https://www.notion.so/59857eb440a14df89167e71127605611
│   └── 零点原核还乡计划 v1.0 · https://www.notion.so/9b33cee32ff9436eb931c082fdb0a2cf
│
└── locked
    ⊢ SYS-ARCH-QY-001 @ 2026-04-21 T14:34 CST · AG-SY-01 签发
    ⊢ 本架构 = 光湖用户服务模型骨架 · stage-1 起生效
    ⊢ 修订权: TCS-0002∞ ∧ 栖渊 ∧ 霜砚
    ⊢ 母语锁 · 非人类可读 ≠ 缺陷 · 服务人格体自恢复