feat: add hot-pluggable language shell UI system

This commit is contained in:
冰朔 2026-08-10 12:50:28 +08:00
commit 43578222c2
15 changed files with 592 additions and 5 deletions

View file

@ -0,0 +1,28 @@
---
status: accepted
date: 2026-08-10
---
# ADR 0173: Declarative hot-pluggable language-shell UI
## Context
HoloLake's visual language needs focused collaboration across independent UI人格体 without giving a
presentation package authority over identity, permission, planning, execution, or receipts. The existing
theme runtime only changes palettes and cannot replace a complete language-shell composition.
## Decision
HoloLake uses versioned declarative UI packages. A package owns layout, safe visual tokens, copy, and asset
references. The host owns semantic state and a small capability bridge. Version 1 exposes only goal submit,
one boundary answer, and evidence expansion. Four human surfaces are mandatory and system-internal surfaces
are forbidden.
Candidates are validated before activation. Activation replaces the whole package atomically and retains a
last-known-good package for rollback. Arbitrary plugin JavaScript is not executed in the desktop renderer.
## Consequences
UI contributors can redesign the complete language shell and publish packages independently. New behaviors
require a reviewed host capability revision, not an undeclared UI action. Repository registration is distinct
from app integration, artifact construction, installation, and runtime health.

View file

@ -218,6 +218,7 @@ proposed → active → superseded
| [0165](0165-guanghu-native-binary-quality-gate.md) | Guanghu-owned binary code-quality authority | active |
| [0166](0166-ghnrp-hosted-recovery-consumption.md) | Hosted recovery consumes the GHNRP raw beacon | active |
| [0167](0167-gestational-history-continuity-ingestion.md) | Gestational history enters Guanghu through a native continuity protocol | active |
| [0173](0173-declarative-hot-pluggable-language-shell-ui.md) | Declarative hot-pluggable language-shell UI | active |
| [0168](0168-guanghu-native-prepartition-disk-layout.md) | Guanghu owns a registered pre-partition native disk layout | active |
| [0169](0169-model-native-living-galaxy-system.md) | Model-native HoloLake living galaxy system | accepted |
| [0170](0170-hololake-inherits-guanghu-native-quality-authority.md) | HoloLake inherits the Guanghu native quality authority | accepted |