okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-clean-3 (321794636): docs and history (cleanup step 3, items 3.0-3.10); release manifest and capability table with checks, history/ with pointers, link check, tools/ split, bench index; owner OK'd the wording 11-082b36e8a02

main
3.8 KiB47 linesraw

App developer docs

Current:

  • interaction-guidelines.md: motion, materials, navigation and contrast rules. scripts/audit-ui.mjs and the style sheets cite its sections.
  • design-system-notes.md: how the app uses the kit styles in src/styles/kit/.
  • BACKLOG.md: UI requirements from the October 2026 campaign that are still open or unchecked.
  • ../README.md: start here (build, preview, tests).

How the host is organised

This replaces the 14 October 2026 native-engine handover (kept in history; it was written against engine 0.1.38).

ModuleResponsibility
server/native-control.mjsThe bridge to Strata Control and the installed engine: catalog, status, install jobs, saved job state, per-instance config copies, process start and stop, benchmark, calibration and updates.
server/native-settings.mjsAllowed per-model settings, their bounds, MCP configuration validation and credential masking.
server/native-gateway.mjsForwards Chat Completions, Anthropic and Responses requests to the selected instance.
server/chat-images.mjsValidation of attached pictures.
src/lib/native.tsShared native state and polling.
src/components/NativeModels.tsxModel setup, device assignment, version management and load.
src/components/NativeSettings.tsx, NativeMcpEditor.tsxPer-model parameters, JSON and tool-server configuration.
src/components/NativeMonitor.tsxRates per instance, per-instance detail and host measurements.

Contracts that still hold:

  • Each loaded instance runs serve/server.py on its own private loopback port with a random API key, from a config copy in the app's data folder. The one public URL shown in Serving forwards to it; the public model id is an alias in that config, and unknown or ambiguous ids fail before streaming.
  • A source checkout finds a Strata installation through STRATA_NATIVE_REPO (it must contain setup.py, tools/strata_mcp.py and serve/server.py) and a Python through STRATA_PYTHON or STRATA_NATIVE_PYTHON (server/python-resolver.mjs). The installed app uses the Control that ships beside it instead.
  • Saving settings validates first, keeps unrelated keys and non-Strata environment values, writes a .bak and replaces the config atomically. New settings apply on the next load.

Moved to history

Pointer: history/README.md. The files, unchanged:

WasNow
audit-fixes/ (next to this folder)history/apps/host/audit-fixes
README-historical.mdhistory/apps/host/docs/README-historical.md
native-engine-handover.mdhistory/apps/host/docs/native-engine-handover.md
annotations-19-2026-10-09.md, annotations-32-2026-10-09.md, annotations-followup-2026-10-09.mdhistory/apps/host/docs/
chat-shell-2026-10-06.md, ui-followup-2026-10-06.mdhistory/apps/host/docs/
design-improvements-2026-10-05.md, dsh-recon.md, engine-models-onboarding-2026-10-05.mdhistory/apps/host/docs/
user-feedback-2026-10-05.md, user-feedback-2026-10-06.mdhistory/apps/host/docs/
persona-review-2026-10-05/history/apps/host/docs/persona-review-2026-10-05
plans/history/apps/host/docs/plans
1# App developer docs
2
3Current:
4
5- [interaction-guidelines.md](interaction-guidelines.md): motion, materials, navigation and contrast rules. `scripts/audit-ui.mjs` and the style sheets cite its sections.
6- [design-system-notes.md](design-system-notes.md): how the app uses the kit styles in `src/styles/kit/`.
7- [BACKLOG.md](BACKLOG.md): UI requirements from the October 2026 campaign that are still open or unchecked.
8- [../README.md](../README.md): start here (build, preview, tests).
9
10## How the host is organised
11
12This replaces the 14 October 2026 native-engine handover (kept in [history](../../../history/apps/host/docs/native-engine-handover.md); it was written against engine 0.1.38).
13
14| Module | Responsibility |
15| --- | --- |
16| `server/native-control.mjs` | The bridge to Strata Control and the installed engine: catalog, status, install jobs, saved job state, per-instance config copies, process start and stop, benchmark, calibration and updates. |
17| `server/native-settings.mjs` | Allowed per-model settings, their bounds, MCP configuration validation and credential masking. |
18| `server/native-gateway.mjs` | Forwards Chat Completions, Anthropic and Responses requests to the selected instance. |
19| `server/chat-images.mjs` | Validation of attached pictures. |
20| `src/lib/native.ts` | Shared native state and polling. |
21| `src/components/NativeModels.tsx` | Model setup, device assignment, version management and load. |
22| `src/components/NativeSettings.tsx`, `NativeMcpEditor.tsx` | Per-model parameters, JSON and tool-server configuration. |
23| `src/components/NativeMonitor.tsx` | Rates per instance, per-instance detail and host measurements. |
24
25Contracts that still hold:
26
27- Each loaded instance runs `serve/server.py` on its own private loopback port with a random API key, from a config copy in the app's data folder.
28  The one public URL shown in Serving forwards to it; the public model id is an alias in that config, and unknown or ambiguous ids fail before streaming.
29- A source checkout finds a Strata installation through `STRATA_NATIVE_REPO` (it must contain `setup.py`, `tools/strata_mcp.py` and `serve/server.py`) and a Python through
30  `STRATA_PYTHON` or `STRATA_NATIVE_PYTHON` (`server/python-resolver.mjs`). The installed app uses the Control that ships beside it instead.
31- Saving settings validates first, keeps unrelated keys and non-Strata environment values, writes a `.bak` and replaces the config atomically. New settings apply on the next load.
32
33## Moved to history
34
35Pointer: [history/README.md](../../../history/README.md). The files, unchanged:
36
37| Was | Now |
38| --- | --- |
39| `audit-fixes/` (next to this folder) | [history/apps/host/audit-fixes](../../../history/apps/host/audit-fixes/README.md) |
40| `README-historical.md` | [history/apps/host/docs/README-historical.md](../../../history/apps/host/docs/README-historical.md) |
41| `native-engine-handover.md` | [history/apps/host/docs/native-engine-handover.md](../../../history/apps/host/docs/native-engine-handover.md) |
42| `annotations-19-2026-10-09.md`, `annotations-32-2026-10-09.md`, `annotations-followup-2026-10-09.md` | [history/apps/host/docs/](../../../history/apps/host/docs) |
43| `chat-shell-2026-10-06.md`, `ui-followup-2026-10-06.md` | [history/apps/host/docs/](../../../history/apps/host/docs) |
44| `design-improvements-2026-10-05.md`, `dsh-recon.md`, `engine-models-onboarding-2026-10-05.md` | [history/apps/host/docs/](../../../history/apps/host/docs) |
45| `user-feedback-2026-10-05.md`, `user-feedback-2026-10-06.md` | [history/apps/host/docs/](../../../history/apps/host/docs) |
46| `persona-review-2026-10-05/` | [history/apps/host/docs/persona-review-2026-10-05](../../../history/apps/host/docs/persona-review-2026-10-05/decision-report.md) |
47| `plans/` | [history/apps/host/docs/plans](../../../history/apps/host/docs/plans/README.md) |