feat: coordinate persona language shell planning

This commit is contained in:
冰朔 2026-08-12 03:09:48 +08:00
commit d9abf241a6
8 changed files with 357 additions and 3 deletions

View file

@ -211,6 +211,14 @@ The narrow behavior boundary supplied by the host to a UI package renderer. Vers
and one reality-boundary answer; evidence expansion remains local presentation state. The bridge never gives
the UI package direct repository, node, model, credential, permission, or deployment access.
## `PersonaLanguageShellController`
The source-level authority-order coordinator for one natural-language goal. It fails closed unless repository
discovery yields one clean persona binding and the configured provider/model matches that repository manifest.
Only then may it read the public node identity, compile the exact PNCC wake binding, and request B0 partner
deliberation. The result contains a plan and evidence binding only; it exposes no execution callback and performs
no reality action. Source implementation is distinct from desktop mounting and native acceptance.
Key abstractions and domain models in Tolaria.
## Design Philosophy

View file

@ -167,6 +167,14 @@ Activation is validate-then-swap and preserves the previous valid package for ro
not execute JavaScript and cannot request system-internal surfaces. Extending the host action bridge requires
a new reviewed contract version.
`src/lib/personaLanguageShellController.ts` is the source-level host coordinator beneath that presentation
boundary. It resolves exactly one manifest-valid persona repository before selecting the manifest-pinned
configured model, reads the public device-identity receipt only after those gates pass, compiles the wake
binding, and finally invokes B0 partner deliberation. Unavailable, unbound, ambiguous, model-missing, identity,
binding, and cognition failures stop at their own boundary; later stages are not invoked. Its successful result
is still a language-goal projection, not permission to perform a reality action. This controller is not yet
mounted into the desktop language shell and therefore does not establish runtime integration or acceptance.
Tolaria is a personal knowledge and life management desktop app. It reads a vault of markdown files with YAML frontmatter and presents them in a four-panel UI inspired by Bear Notes.
## Design Principles