Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

docs/work: Phase A implementation status, qualification kit and evidence text

Niko1221e424cc940dee
diff --git a/docs/work/ACCEPTANCE-EVIDENCE.md b/docs/work/ACCEPTANCE-EVIDENCE.md
new file mode 100644
index 000000000..3fdd4c3fc
--- /dev/null
+++ b/docs/work/ACCEPTANCE-EVIDENCE.md
@@ -0,0 +1,114 @@
+# Acceptance evidence matrix
+
+Generated by `packaging/acceptance_matrix.py` at 2026-10-15T06:11:47Z for revision `e0951ce243511597eb243018191f194af9d5f8bc`.
+
+Every row of `strata-acceptance-checklist.md` appears exactly once, with an explicit result. `--check` fails if a row is missing, so a gap is a build error rather than an oversight.
+
+| Result | Count |
+| --- | --- |
+| passed | 46 |
+| failed | 0 |
+| pending-hardware | 15 |
+| pending-release | 1 |
+| unsupported | 3 |
+| not-implemented | 2 |
+| **total** | **67** |
+
+## Packaging and reuse
+
+| ID | Result | Observation | Evidence |
+| --- | --- | --- | --- |
+| P01 | **passed** | The macOS .app builds, launches, serves the supplied UI from the host's origin and passes its own 8-step self-test from inside the mounted DMG. No global Node, Python, npm, pip or compiler is required: the bundle carries a pinned Node runtime. Real generation through it is NOT proven -- no Strata pack fits this Mac (16 GiB RAM, ~21 GiB free); that leg is pending hardware. | `docs/work/evidence/tauri-selftest-from-dmg.json, tauri-artifact.txt` |
+| P02 | **pending-hardware** | The NSIS per-user installer target and policy are configured and the config validates against this Tauri version, but a Windows installer must be produced on Windows. Not built here. | `packaging/README.md` |
+| P03 | **pending-hardware** | The AppImage target is configured; an AppImage must be built on Linux. Not built here. | `packaging/README.md` |
+| P04 | **passed** | The terminal distribution is self-contained: it carries a pinned standalone CPython 3.12.15 and its dependencies. Verified from a moved directory with a PATH whose only Python is macOS's 3.9, which the launcher correctly rejects as below the 3.10 floor. Serving, status, timeskip and tune all ran on the bundled interpreter. Only the darwin-arm64 archive is built; Linux/Windows archives need a pin plus a build there. | `docs/work/evidence/terminal-dist.txt` |
+| P05 | **unsupported** | No Metal/CUDA/SYCL/HIP target row is delivered as a package yet. One engine is built and qualified as a *source build* on this Mac (macos-arm64-metal); the other families have recipes only. No blanket cross-platform claim is made. | `packaging/README.md` |
+| P06 | **passed** | A component's cache key is the digest of its artifact bytes, not its version label, so a rebuilt artifact with an unchanged version is a different entry and a cached payload is never reused on the strength of a string. The cache is never consumed by activation (the active directory is a copy), so a compatible application update reuses the installed engine instead of downloading it again. `prune_cache` keeps whatever the active and rollback versions refer to. | `strata_control/components.py, tests/tuning/test_components.py` |
+| P07 | **passed** | Components are acquired by kind: the manifest declares `application`, `runtime`, `agent-runtime`, `tuning`, `engine` or `prepared-data`, each with its own platform and backend gates, and `strata components plan` reports whether a package may be used here without fetching anything. The backend families are held to the packet's own matrix, so a Windows SYCL or Intel-Mac Metal package is refused as unsupported rather than attempted. | `strata_control/components.py, `strata components backends`` |
+| P08 | **passed** | Desktop and Terminal read the same owner state and the same model directory; the terminal's `models list` reads the setup-written configs that Desktop's model surfaces use. Imported files are never copied (import is preview-only by design). | `docs/work/evidence/serve-suite.txt, terminal-suite.txt` |
+| P09 | **not-implemented** | No offline bundle format exists yet. The engine build and model preparation are documented as commands, not as a signed bundle. | `docs/work/QUALIFICATION-KIT.md 3.2` |
+| P10 | **pending-hardware** | Uninstall retention is designed in (data lives outside the install directory, and the Windows installer does not delete app data), but uninstall/reinstall cannot be exercised without an installed Windows or a signed macOS build. | `packaging/README.md` |
+| P11 | **passed** | Every artifact is verified against its manifest SHA-256 and declared size before anything is unpacked, and unpacking validates every member first, so a refusal writes nothing. Refused: parent segments (including backslash and nested forms), absolute paths, Windows drive letters, UNC paths, NUL bytes, symlinks and hard links, device and FIFO members, an artifact name that is a path, and any member whose resolved destination leaves the target. Setuid/setgid bits from an archive are never trusted. Each refusal is asserted to leave the destination empty. | `tests/tuning/test_components.py (TestSafeExtraction)` |
+| P12 | **passed** | An interrupted transfer keeps its partial bytes for a resume; a range request that the server ignores restarts rather than appending to a prefix; a partial larger than the declared size is discarded as stale; a completed download that is short is an error with the bytes retained; and nothing is promoted to the cache until its digest has been verified, with the `.complete` marker written last so an interrupted install is never mistaken for a finished one. | `tests/tuning/test_components.py (TestInterruptedTransfer)` |
+| P13 | **passed** | Activation moves the displaced version aside rather than deleting it, and the rollback record is written *before* the activation so a crash between the two cannot leave it pointing at the new version. `rollback` restores the previous version exactly and refuses when there is nothing to restore, so 'rollback succeeded' and 'the component is gone' are never the same outcome. An incompatible component is refused before anything is written or activated. | `tests/tuning/test_components.py (TestActivation)` |
+
+## Runtime, models and control
+
+| ID | Result | Observation | Evidence |
+| --- | --- | --- | --- |
+| R01 | **passed** | Serving with installed inputs invokes no downloader, package manager, git or compiler: the server's import graph is stdlib plus relative modules, and the server starts and answers from the bundled runtime with no network access attempted. | `docs/work/evidence/terminal-dist.txt` |
+| R02 | **passed** | Pure serving and the read-only CLI run with no agent runtime, no tuning packages, no Textual and no UI present. Verified by running the server from the standalone bundle and by importing strata_control.management and strata_cli.cli on a bare interpreter. | `docs/work/evidence/terminal-dist.txt` |
+| R03 | **passed** | One owner per installation is enforced by an O_EXCL state file plus an flock held for the host's lifetime; a second client attaches over the private channel; a stale owner is only recovered after the socket is proven dead. Fifteen transport tests cover it. | `docs/work/evidence/owner-transport-suite.txt` |
+| R04 | **unsupported** | **The Windows owner transport is not a named pipe with an ACL.** The Python standard library cannot create one, so Windows uses a loopback-only TCP listener whose authority rests on a 256-bit control token plus a private state directory. That is weaker than the checklist's stated condition and is recorded as such. Console stop and process-tree cleanup for engine children ARE implemented (serve/winjob.py, tested). The Windows branch of the transport is exercised on macOS but has never run on Windows. | `strata_control/owner_transport.py, docs/work/evidence/owner-transport-suite.txt` |
+| R05 | **passed** | Preflight refuses before load: the engine rejects a model whose metadata geometry differs from the compiled shape, naming the differing key; the GGUF preflight checks shard naming, magic, version and tokenizer identity; the tuning plan refuses a dimension whose flag the engine does not accept. | `docs/work/evidence/tuning-suite.txt, docs/work/IMPLEMENTATION_STATUS.md 1.12` |
+| R06 | **pending-hardware** | The catalog refuses unknown selections and reports a reason, and the plan refuses unsupported dimensions. Whether Qwen3.6 runs at all on this backend is answerable only with the model present: the engine documents that Qwen3.6 does not run on the Mac engine, and NVFP4 is NVIDIA-only. | `docs/MAC.md, docs/work/evidence/tuning-plan.txt` |
+| R07 | **pending-hardware** | The reviewed downloader is resumable and keeps verified bytes, and import is preview-only so it never moves files. The cancel/resume behaviour cannot be exercised without a model large enough to interrupt, which does not fit here. | `docs/work/QUALIFICATION-KIT.md 3.2` |
+| R08 | **passed** | Saving settings preserves unknown fields and masks secrets (the reviewed NATIVE_FIELDS table with `••••••••` round-tripping), writes atomically via a temp file and rename, and reports restartNeeded rather than applying silently. The tuning job refuses to touch the active profile at all. | `docs/work/evidence/serve-suite.txt, docs/work/IMPLEMENTATION_STATUS.md 1.12` |
+| R09 | **passed** | Readiness requires the engine's own READY line: max_context stays 0 until it arrives, so a pre-READY 'ready' is impossible, and a timeout is reported as uncertain rather than as success. Verified against a stub engine. | `docs/work/evidence/tuning-suite.txt` |
+| R10 | **pending-hardware** | Stop and unload handle active and queued work explicitly in the reviewed server, and the ten-cycle orphan check is an executable procedure. It cannot be run without a loadable model. | `docs/work/QUALIFICATION-KIT.md 5` |
+| R11 | **passed** | All three dialects are served and their documented behaviour is covered by the reviewed server suite: 801 tests pass, including streams, tool fragments, telemetry and error shapes. | `docs/work/evidence/serve-suite.txt` |
+| R12 | **passed** | The agent bridge cancels per session and the host owns request cancellation for serving; the queue releases only the affected slot. The end-to-end cancellation *turn* assertion is inconclusive against the instant mock engine and is reported as such rather than as a pass. | `docs/work/evidence/serve-suite.txt, docs/work/IMPLEMENTATION_STATUS.md 1.8` |
+| R13 | **pending-hardware** | Group allocation, reservations and readiness-before-routing are reviewed features of the server, and multi-device behaviour cannot be exercised on a single-GPU machine. | `docs/work/QUALIFICATION-KIT.md 6` |
+| R14 | **pending-hardware** | Vision and image-generation paths exist in the reviewed server and refuse when unavailable; neither can be exercised without a real model and its mmproj. | `docs/work/QUALIFICATION-KIT.md 6` |
+
+## Agent, session and permissions
+
+| ID | Result | Observation | Evidence |
+| --- | --- | --- | --- |
+| A01 | **passed** | The supplied UI drives a turn through the pinned Harness against the local Strata API worker on loopback, with no cloud route declared in the profile and therefore no DeepSeek account required. The model is the built-in mock: this proves the route, not inference quality. | `docs/work/evidence/bridge-e2e.txt, integrations/harness/profile/cordis.patch.yml` |
+| A02 | **passed** | Framing is verified at the byte level: a multi-byte character split across reads survives intact with no replacement character, an SSE line split mid-JSON is reassembled, a stream ending without a trailing newline still yields its last delta, a malformed frame is skipped without losing its neighbours, and an error frame reaches the caller in the provider's own words. Content, reasoning, usage, finish and error are all carried. | `apps/host/tests/stream-framing.test.mjs` |
+| A03 | **passed** | Verified end to end, and only after four defects were cleared. A scripted Strata worker emits a bash tool call; the test's own peer opens the gateway's `$events` stream on `/api/remote.mux` and grants the escalation with `allowed-once`. Asserted: the turn completes, the tool ran exactly once (`marker_lines == 1`, so a replayed effect would fail), an approval was both asked and answered with the recorded outcome `allowed-once`, and the worker recorded two requests while executing nothing itself -- so the tool ran in the Harness and the transcript, not the tool, went to the API. The defects cleared to get here: the session-title request consumed the scripted tool call; the call was missing a required `description`; the launch-URL `interactions` parameter is decorative and the default is answerable; and a workspace-write command is not gated, so the call now requests a sandbox escalation, which is the only path that consults the approval gate. | `docs/work/evidence/tool-flow.txt, integrations/harness/tool_flow_e2e.py` |
+| A04 | **passed** | Verified with the denial observed, not assumed. Same scripted call as A03, but the peer answers `next` (do not decide, delegate), which is this vocabulary's way of saying no answerer is available. Asserted: the escalation reached the gate (`approval/asked` present), every recorded decision is the fail-closed `unavailable`, zero grants were recorded, the turn settled `completed`, and the marker does not exist. Each assertion fails for a different way the flow could otherwise pass while proving nothing -- the tool never reaching the gate, the gate granting, or the turn hanging with the request left pending. An earlier version of this row was marked passed and has been withdrawn: in that run the approval was never consulted at all, the tool failed argument validation for an unrelated reason, and the mechanism it relied on does not exist. | `docs/work/evidence/tool-flow.txt, integrations/harness/tool_flow_e2e.py` |
+| A05 | **passed** | Verified end to end against a live turn. The scripted worker runs with a token delay so the turn is still running when Stop is sent, and the test waits for turn/start and fails if the turn was not live -- without that it passed trivially on the first attempt, because the scripted turn finished in milliseconds and Stop arrived after turn/end. Stop is acknowledged as `{accepted: true}`, which is admission only; the turn then settles as `aborted` in the durable record, which is what actually settles it, and the tool does not run. Also asserts the marker the tool would have written does not exist, so a turn that reported cancellation while letting the tool finish would fail. | `docs/work/evidence/tool-flow.txt, integrations/harness/tool_flow_e2e.py` |
+| A06 | **passed** | Sessions are durable in the Harness format, and resume re-reads them rather than replaying effects: the interrupted-turn repair synthesises closers instead of re-running tools. Verified by reading the durable session file across its concatenated frames. | `integrations/harness/bridge_e2e.py, strconv note in docs/work/IMPLEMENTATION_STATUS.md 1.8` |
+| A07 | **passed** | The same durable session is reachable from the App Host and from a CLI-started Harness with the same DSH_HOME, sharing history, model identity and workspace. The bridge reads the identical file the UI's host would. | `docs/work/evidence/bridge-e2e.txt` |
+| A08 | **pending-hardware** | Two sessions run independently in the bridge (each gets its own session), but the cross-session isolation assertions (no shared tool results, no credential leakage, no shared-runtime kill) need a real model and a tool that runs. | `docs/work/QUALIFICATION-KIT.md 7` |
+| A09 | **pending-hardware** | Subagents are a reviewed Harness feature with real depth and concurrency bounds; the UI already renders child-agent frames. Nothing has been observed end to end, and the supplied UI's agent events are not emitted by the host yet. | `docs/work/QUALIFICATION-KIT.md 7` |
+| A10 | **pending-hardware** | Bounded goals are a reviewed Harness feature (maxGoalRounds, round-limit blocking). Not exercised in this integration. | `docs/work/QUALIFICATION-KIT.md 7` |
+| A11 | **pending-hardware** | Compaction and long-context handling are reviewed Harness features. The route declares the real local window (32K) rather than inheriting a cloud default, and refuses a request that does not fit rather than truncating silently -- observed. The compaction-preserves-tool-pairing assertion needs a real model. | `docs/work/IMPLEMENTATION_STATUS.md 1.8` |
+| A12 | **passed** | The reviewed task service validates schedules with DST-correct nextRun, prevents overlapping runs, and has no catch-up burst or duplicate scheduler. Covered by the reviewed test suite and by route tests. | `docs/work/evidence/serve-suite.txt` |
+| A13 | **pending-hardware** | Skills resolve against the reviewed workspace/policy roots. That prompts and inference keys cannot invoke installer or owner actions needs an adversarial test against a running agent, which needs a real model. | `docs/work/QUALIFICATION-KIT.md 7` |
+| A14 | **passed** | The Strata profile declares exactly one route, on loopback, and no cloud route at all, so a local failure cannot fall back to a hosted model -- there is nothing to fall back to. The host additionally refuses to simulate in a packaged build. | `integrations/harness/profile/cordis.patch.yml, docs/work/IMPLEMENTATION_STATUS.md 1.7` |
+| A15 | **passed** | Conversations live in the browser store by design, and browser-origin export/import is idempotent with attachments and preferences retained; historical tool records are data and are never executed. Covered by the reviewed UI suite. | `docs/work/evidence/serve-suite.txt` |
+
+## Time-skip and tuning
+
+| ID | Result | Observation | Evidence |
+| --- | --- | --- | --- |
+| S01 | **passed** | Real baseline and candidate directories with content-addressed checkpoints replace the timer entirely. Every checkpoint and decision persists by SHA-256 digest of its file inventory, not by a label. | `tests/time_skip/test_time_skip.py, docs/work/evidence/timeskip-harness.txt` |
+| S02 | **passed** | A previously passing deterministic check that regresses rejects the candidate and the last good checkpoint stays selected; verified end to end, where the attempt was rejected and the baseline retained. | `docs/work/evidence/timeskip-harness.txt` |
+| S03 | **passed** | An unevaluable check is `unknown` and never a pass; a run whose checks cannot justify a change ends `inconclusive` with `needsUserReview`, and a model's opinion is declared advice and cannot gate. | `tests/time_skip/test_time_skip.py` |
+| S04 | **passed** | Open/Compare/Keep/Restore operate on the actual retained checkpoint; applying previews, keeps a rollback copy, refuses with 409 when the destination changed, and restores. | `docs/work/evidence/timeskip-http.txt` |
+| S05 | **passed** | Cancellation and failure retain the last complete checkpoint, attempts are bounded, and no revision can touch the workspace, so there is no tool replay or external side effect from a rejected attempt. | `tests/time_skip/test_time_skip.py` |
+| T01 | **passed** | Tuning is optional and pinned: it lives in a separate module, the CLI imports it only for its own commands, and serving, status and monitor run without it. Nothing is installed by the tuning path. | `docs/work/evidence/terminal-dist.txt` |
+| T02 | **passed** | The sweep uses only flags the selected engine binary accepts, holds an exclusive device lease, fixes the workload (greedy, seed 1) for every candidate, and never writes the active profile. | `docs/work/evidence/tuning-sweep.txt` |
+| T03 | **passed** | Boot failure, timeout, no-tokens and correctness failure are each recorded with a status and excluded from selection; the lease is released even when the job fails; cancellation stops new trials and keeps the evidence collected. | `docs/work/evidence/tuning-suite.txt` |
+| T04 | **passed** | Two measurement modes, labelled so neither can stand in for the other. `protocol` reads the engine's own serve protocol; `api` starts the real worker from the candidate's configuration and measures a streamed chat completion over HTTP -- the full path a user waits for -- with a required expectation so a fast wrong answer cannot win. Both record peak resident memory of the process tree, so a speed win bought by spilling is visible. Repeats, a paired baseline re-measurement and drift grading are unchanged. 11 tests cover the API mode, including that a reasoning-only stream, a missing usage block and a non-matching answer are refused rather than scored. Runs against the mock worker are labelled as harness tests, never as performance results. | `strata_control/tune_api.py, tests/tuning/test_tune_api.py` |
+| T05 | **passed** | Benchmark-only levers are measured but stripped from the exported args, and verify_exported() re-measures the configuration as it would actually be written; a configuration whose advantage came from a stripped lever is withdrawn. | `tests/tuning/test_tuning.py` |
+| T06 | **passed** | Identity is a content digest, so a re-quantised model with the same name is a different model. The plan records the engine digest, the model digest, the digest method, the backend, the workload, the context and the machine; a completed sweep records itself and its report states how many earlier sweeps are comparable and, for each that is not, the reason in plain words. An unknown identity is never treated as a match, and incomparable history is retained rather than deleted. Twenty-one tests cover each element of the key separately. | `tests/tuning/test_tune_history.py, strata_control/tune_history.py` |
+| T07 | **passed** | `strata tune apply` revalidates the report hash, re-checks the sweep's artifact identity against what is installed, refuses an incomplete sweep, a no-change result, material drift or a report edited after review, snapshots the previous bytes, and writes atomically; `strata tune rollback` restores those exact bytes and refuses if the configuration was edited since. Nothing applies automatically. The one gap is stated by the command itself: the candidate start is not verified against a running model because no supported model fits this Mac, so `--verify` is wired and tested but the CLI passes None and says so. 31 tests, and a refused apply is asserted to leave the file byte-identical. | `tests/tuning/test_tune_apply.py, docs/work/evidence/tuning-apply.txt` |
+| T08 | **unsupported** | No real tuning qualification exists for any backend, because no supported model fits this Mac. Stub-engine results are labelled as stub results everywhere they appear and are never presented as a backend qualification. | `docs/work/evidence/tuning-sweep.txt` |
+
+## Interface, security and evidence
+
+| ID | Result | Observation | Evidence |
+| --- | --- | --- | --- |
+| U01 | **passed** | The supplied UI is used unmodified: 54 components, 10 screens, 8 locales, the design kit's tokens and motion. The tuning panel added this round uses the kit's own primitives and tokens rather than introducing a parallel style. | `docs/work/evidence/serve-suite.txt, apps/host/src/components/TunePanel.tsx` |
+| U02 | **pending-hardware** | Keyboard and focus behaviour, reduced motion, long translations and OS file/font permission flows are designed in and the UI suite covers parts of them. Verifying them in a *packaged* Desktop on multiple OS versions needs those hosts. | `docs/work/evidence/tauri-selftest.json` |
+| U03 | **passed** | The terminal's six views render and the operator flows work at full width; the reviewed monitor suite covers compact fallbacks and the terminal is restored on exit. Verified against a live worker. | `docs/work/evidence/terminal-suite.txt, serve-suite.txt` |
+| U04 | **passed** | The monitor attaches over HTTP read-only, with an allow-list of exactly four read-only endpoints, refuses redirects, caps the body and never starts or stops anything; detaching leaves work alive. | `docs/work/evidence/terminal-suite.txt` |
+| U05 | **passed** | Telemetry carries a sample age and a source; a missing or stale reading renders as a dash rather than as zero, unified memory is counted once, and the packaged build refuses to fabricate readings at all. | `docs/work/evidence/serve-suite.txt, docs/work/IMPLEMENTATION_STATUS.md 1.7` |
+| U06 | **passed** | Rendered artifacts cannot reach renderer or owner privileges: the window is confined to the host origin, navigation elsewhere is handed to the system browser, permissions are denied by default, and the renderer runs sandboxed with context isolation and no Node integration. | `apps/desktop/src-tauri/src/main.rs, docs/work/evidence/tauri-selftest.json` |
+| U07 | **passed** | A non-loopback bind requires an API key (the reviewed server enforces it and the test suite covers the refusal); management stays on the private channel; secrets are masked in projections and never written to logs or URLs. | `docs/work/evidence/serve-suite.txt` |
+| U08 | **passed** | The two claims are separated and tested separately, because a passing runtime-only test says nothing about the strict one. `runtime_only_no_download` is that the server fetches nothing while serving; `strict_offline` is that nothing in the process tree reaches the network. Strict offline is enforced through the environment every child receives (HF_HUB_OFFLINE, TRANSFORMERS_OFFLINE, PIP_NO_INDEX, DO_NOT_TRACK, emptied proxy variables and NO_PROXY=*), applied last so a profile cannot remove it by naming the same variable; through one `check_url` predicate for our own fetches, which allows local schemes and loopback because talking to this machine is not a download; and through a preflight that refuses a profile declaring MCP servers, a before_load command or remote image sources, naming which. Verified against a real child process. A test asserts every child_env call site passes the policy -- which caught a real leak in the engine's own environment. `limits()` states what is not enforced: a child that opens a socket directly is not stopped, because that needs an OS sandbox this product does not have on all three platforms. | `tests/tuning/test_offline.py, docs/work/evidence/offline.txt` |
+| U09 | **not-implemented** | Connector operations exist in the reviewed host (Cloudflare tunnel, LAN share) but the explicit-only and never-widen-on-failure assertions are not tested. | `apps/host/server/cloudflare.mjs, local-share.mjs` |
+| U10 | **pending-hardware** | A thirty-minute real soak needs a running model. The reviewed suite has shorter monitor soak evidence from the terminal handover, which is not a substitute. | `docs/work/QUALIFICATION-KIT.md 5` |
+| U11 | **pending-release** | No signing or notarization, no SBOM, no notices bundle and no font/asset redistribution evidence. Signing credentials and rights evidence must come from the owner; the artifacts produced here are explicitly labelled unsigned internal candidates. | `packaging/README.md, docs/work/evidence/tauri-artifact.txt` |
+| U12 | **passed** | A packaged build has no success path that uses demo responses or demo metrics: the host refuses to simulate when STRATA_PACKAGED is set and returns a typed error instead, the monitor reports `none` rather than invented readings, and this matrix records every failure, skip and remaining item. | `docs/work/IMPLEMENTATION_STATUS.md 1.7, this file` |
+
+## Reading this table
+
+* `passed` means the check ran on this Mac and its evidence is retained. It does not mean the feature works on a machine this is not.
+* `failed` is an implementation gap. It is never recorded as `pending-hardware`: deferring a defect to another machine is how defects become permanent.
+* `unsupported` names a combination that is not implemented, with the reason.
+* Nothing here is a support claim. The macOS candidate is an **unsigned internal development candidate** and is **real-model validation pending**.
diff --git a/docs/work/IMPLEMENTATION_STATUS.md b/docs/work/IMPLEMENTATION_STATUS.md
new file mode 100644
index 000000000..f7e854f82
--- /dev/null
+++ b/docs/work/IMPLEMENTATION_STATUS.md
@@ -0,0 +1,1260 @@
+# Strata rebuild — implementation status
+
+Requirement/checklist IDs follow the handoff packet in
+`/Users/nikoveit/Documents/deepseek-harness/ENDING PLAN` (work plan M0–M8, acceptance checklist
+P/R/A/S/T/U rows). This file is the resume point: it records what is implemented, what is proven,
+what is **not** proven, and the exact commands.
+
+**Phase:** A (Mac-first). **Host tested on:** Apple M4, 16 GiB, macOS 26 (Darwin 25.5.0), 228 GiB
+volume with ~22 GiB free at the time of writing.
+
+---
+
+## 0. Where everything is
+
+| Path | What it is |
+| --- | --- |
+| `/Users/nikoveit/Documents/deepseek-harness/ENDING PLAN` | The handoff packet (authoritative inputs). Manifest verified: `shasum -a 256 -c MANIFEST.sha256` → all OK. |
+| `…/deepseek-harness/strata-work/strata-rebuild` | **The integration checkout.** Branch `strata/rebuild-2026-10`. This is where implementation happens. |
+| `…/strata-work/Strata` | Pristine reference checkout of `Niko1221/Strata` at `main` (= reviewed pin `296b59d2`). Do not edit. |
+| `…/strata-work/deepseek-harness` | Pristine clone of `deepseek-ai/deepseek-harness` at `57190202` (= reviewed pin). |
+| `…/strata-work/HyperCore-Tune` | Pristine clone at `4f9ab7fa` (= reviewed pin). |
+| `…/strata-work/handover/ui` | Extracted authoritative UI ZIP (14 Oct). |
+| `…/strata-work/handover/tui` | Extracted terminal ZIP. The older UI it contains is parked in `ui/legacy-tui-ui-snapshot/old-ui-2026-10-11` and **must not** replace the 14 Oct UI. |
+| `…/strata-work/toolchain` | Build toolchain: `venv` (cmake 4.4.4, ninja 1.13.2), `llama.cpp` at pinned `3cf03257`, `metal-cpp` (SHA-256 verified against `metal/setup_mac.py`'s pin). |
+| `…/strata-work/python311` | Python 3.11.15 venv with runtime + test dependencies. The system `python3` is 3.9.6, below Strata's 3.10 floor. |
+| `…/strata-work/evidence` | Retained raw evidence (logs, results). |
+
+### Source revisions actually selected
+
+| Input | Reviewed pin | Selected revision | Note |
+| --- | --- | --- | --- |
+| Strata | `296b59d2f73c8f04a805df29c2fa97655adace78` | same (HEAD of `main`, no drift) | Base of `strata/rebuild-2026-10`. |
+| DeepSeek Harness | `571902028a75c64c1d767f4ae5fd099485f0ddf0` | same (HEAD of `master`, no drift) | |
+| HyperCore-Tune | `4f9ab7fa689771b0f44a251475d8911ef42057ac` | same (HEAD of `main`, no drift) | |
+| Terminal checkpoint | `29b577b2` (not an upstream branch) | reconstructed (`2a9e0024`) | See §2. |
+| llama.cpp (ggml) | `3cf03257f219afbe7334045ff7c6a06ac68c627d` | same | Pinned by `metal/CMakeLists.txt` and `setup.py`. |
+| metal-cpp | `metal-cpp_26.zip`, SHA-256 `4df3c078…85a3a4` | same, hash verified | |
+
+Upstream drift check (re-run with `git ls-remote`): all three repositories were still at the
+reviewed commits, so **no newer upstream change had to be reconciled**. Only the terminal
+checkpoint is behind.
+
+---
+
+## 1. Completed and proven
+
+### 1.1 The macOS Metal engine builds from source and runs (R02, R05, P01 groundwork)
+
+This was the largest unknown and it is now closed: the engine is **not** aspirational. It builds
+from the pinned sources on this Mac and the binary runs.
+
+```
+cd …/strata-work/strata-rebuild
+…/toolchain/venv/bin/cmake -S metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_MAKE_PROGRAM=…/toolchain/venv/bin/ninja \
+ -DMETAL_CPP_DIR=…/toolchain/metal-cpp \
+ -DSTRATA_GGML_DIR=…/toolchain/llama.cpp
+…/toolchain/venv/bin/ninja -C build-metal strata -j 6
+./build-metal/strata --version # -> strata 0.1.44.1-metal
+file ./build-metal/strata # -> Mach-O 64-bit executable arm64
+```
+
+* ggml version 0.24.0, commit `3cf03257f` (matches the pin).
+* The kernel-parity tree builds separately with `-DSTRATA_METAL_ENGINE=OFF` and needs no model.
+
+**Evidence:** `…/strata-work/evidence/metal-parity/*.log`.
+
+### 1.2 Metal kernel parity on real GPU hardware (M0.2)
+
+`metal/tests/*` run on the **real Metal device** (not a simulator). 27 of 28 suites pass on
+Apple M4:
+
+| Suite | Result |
+| --- | --- |
+| `gemv_parity` | 100 PASS, 0 fail |
+| `mma_parity` | 91 PASS |
+| `dense_mm_parity` | 67 PASS |
+| `gdn_prompt_parity` | 29 PASS |
+| `pair_parity` | 26 PASS |
+| `fuse_parity` | 17 PASS |
+| `gr2_parity` | 13 PASS |
+| `gr_parity` | 7 PASS |
+| `qsa_prompt_parity` | 6 PASS |
+| `gdn_parity`, `qsa_parity`, `prompt_parity` | 5 PASS each |
+| `expert_parity`, `route_parity`, `sample_parity` | 1 PASS each |
+| `arena_budget_test`, `coop_layout` | exit 0 |
+| **`moe_mm_parity`** | **FAILS — see §3.1** |
+
+`rt_bench` reports the real device: `device: Apple M4 apple9 … metal4 … working set 11.8 GiB`,
+measured device read bandwidth up to **96.1 GB/s**.
+
+### 1.3 Terminal layer integrated onto current Strata (M0.1)
+
+The supplied terminal checkpoint is **not** an upstream branch, so it was reconstructed exactly
+from the supplied cumulative patch rather than copied:
+
+1. `git checkout -b terminal/reconstructed 61b3fb5d` (the patch's declared merge base).
+2. `git apply --index` of `Handover/tui/patches/strata-terminal-current-29b577b2-from-61b3fb5.patch`
+ → applied clean, 380 files.
+3. **Verified byte-identical** to the extracted snapshot: `diff -rq --exclude=.git` against
+ `handover/tui/source/strata-terminal-current-29b577b2` reported only the two build directories
+ I had created. Commit `2a9e0024`.
+4. Merged onto current `main` as `05bfff68`.
+
+The numeral patch was **not** applied: the cumulative patch already contains it (handoff rule
+"never apply both").
+
+**The merge is a real reconciliation, not a copy.** 24 upstream commits had touched
+`serve/server.py`, producing 8 overlapping hunks. Each was resolved as a *union* of both sides
+because in every case the two sides had added different things:
+
+| # | Resolution |
+| --- | --- |
+| 1 | Keep HEAD's per-request `_last_done` reset **and** the terminal's queue-deadline guard. |
+| 2 | Keep HEAD's slot admission (`ask()`/`on_quiet` + the #1994 `BGEN` refusal retry) **and** restore the terminal's live `prompt_read` reporting that HEAD had dropped. |
+| 3 | Keep HEAD's `image_generation` status; use the terminal's finer `running` count for `activity`; keep `last_request_at`. |
+| 4 | Keep both the client-gone check and the offline image-URL refusal. |
+| 5 | One `_json` signature carrying both `headers` and `retry_after`. |
+| 6 | Emit the caller's headers, then `Retry-After`. |
+| 7 | Keep HEAD's `FAMILY_MODEL_NAMES` (incl. `qwen35moe`) **and** the terminal's richer `main()` signature. |
+| 8 | Keep the terminal's ready-file removal and exit-code accounting, with HEAD's opt-in cache drop inside the same `try/finally`. |
+
+`src/program/generate.cpp` conflicted only on two includes (both kept). `README.md` conflicted on
+two documentation sections (both kept).
+
+**Note on merge mechanics:** `git merge-file` emitted *both* sides' `def _json` and *both* `def
+main` signatures because each branch had edited the same base line differently; those were
+rewritten into single definitions before committing. The final file compiles (`py_compile`) and
+passes the full suite below.
+
+### 1.4 Test suites pass on the merged tree (M0.2 gate)
+
+| Suite | Command | Result |
+| --- | --- | --- |
+| Terminal | `…/python311/bin/python -m unittest discover -s tests/terminal -t tests/terminal -p 'test_*.py'` | **Ran 222 tests — OK** |
+| Server/API | `…/python311/bin/python -m unittest discover -s serve -p 'test_*.py'` | **Ran 801 tests in 304.819s — OK (skipped=11)** |
+
+These run without a GPU or model weights (the server suite uses `MockEngine`). They are contract
+and behaviour tests, **not** inference evidence.
+
+**Evidence:** `…/strata-work/evidence/terminal-suite.txt`, `…/strata-work/evidence/serve-suite.txt`.
+
+### 1.5 The real Strata engine is reachable end to end (M1.1 groundwork)
+
+The App Host, the Strata API worker and the terminal client were exercised against each other:
+
+* `serve/server.py` starts, serves `/health`, `/v1/status`, `/v1/telemetry`, `/v1/chat/completions`
+ (SSE) and the three dialects.
+* `strata.py status` in the terminal renders the six-view monitor against that live worker
+ (`Sample age 0.0 s Source server-v1`), i.e. the terminal layer and the server layer agree on
+ the telemetry contract after the merge.
+* The App Host's inference bridge was pointed at that worker and detected it correctly
+ (`kind: "strata"`, `modelId: "qwen3.8-flash-next"`, `context: 32768`, three dialects), then
+ streamed a completion through it and reported real usage
+ (`usageSource: "reported"`, 249 prompt / 34 completion tokens).
+
+This proves the Python worker ↔ Node App Host contract. It does **not** prove real inference: the
+worker was driven by its built-in `MockEngine` because no model fits this machine (§3.2).
+
+### 1.6 The supplied UI runs as a macOS application — **Tauri** (Desktop, M4.1/M7.1 groundwork)
+
+The desktop shell is **Tauri 2**, not Electron. This is a direct product decision and it supersedes
+the architecture plan's "Electron is the recommended baseline" line; the plan marks Tauri as the
+accepted alternative if a spike shows it can carry the design without duplicating the host, and it
+does.
+
+```text
+apps/desktop/
+ src-tauri/ Rust shell — a carrier only
+ src/main.rs starts the host, opens one window on its origin, stops the host on exit
+ tauri.conf.json bundle config (resources, macOS bundle settings)
+ resources/node/node the private Node runtime (pinned standalone Node 24.12.0)
+ icons/ generated from the supplied brand masters by `tauri icon`
+ package.json build scripts only; no runtime dependencies
+apps/host/ App Host + the supplied UI, carrier-neutral and shared with Terminal
+ server/ the Node host (as supplied, plus STRATA_DIST)
+ dist/ the built supplied UI
+```
+
+Why Tauri is the better carrier here, in evidence:
+
+* **The shell cannot own anything.** `main.rs` starts the host, opens a window, stops the host.
+ There is no natural place for a second supervisor, a second conversation store or an agent loop
+ to appear by accident — which is exactly the ownership boundary the architecture demands.
+* **The webview is the system WKWebView**, so there is no bundled Chromium. The artifact is much
+ smaller and the renderer is the same code the browser build already ships.
+* **The private runtime is an explicit sidecar.** `resources/node/node` is a pinned standalone Node
+ runtime, so an end user needs no development checkout, no global Node, no npm, no pip and no
+ compiler — without depending on a shell's own embedded Node.
+* **The UI is not re-platformed.** The window loads `http://127.0.0.1:<port>` from the host, so the
+ renderer and the API share an origin exactly as in the browser build, and the supplied UI's
+ relative `/api/...` calls work unchanged. Layout, components, themes, localization, animations and
+ accessibility behaviour are untouched.
+
+### 1.6a The macOS artifact (internal development candidate, **unsigned**)
+
+| Artifact | Path | Size | SHA-256 |
+| --- | --- | --- | --- |
+| DMG | `apps/desktop/src-tauri/target/release/bundle/dmg/Strata_0.1.0_aarch64.dmg` | 43 MiB | `` |
+| `.app` | `apps/desktop/src-tauri/target/release/bundle/macos/Strata.app` | | — |
+
+`hdiutil verify` reports the checksum **VALID**, the image mounts read-only, and it contains
+`Strata.app` plus the `Applications` drop link.
+
+**The app was verified from inside the mounted DMG** — a read-only install path, which is the
+closest thing to a clean-user launch available without a second machine. The shell's self-test
+passed all eight steps there:
+
+| Step | What it proves |
+| --- | --- |
+| `resources-packaged` | the shell found `Contents/Resources` in a real bundle |
+| `host-entry-present` | the App Host shipped |
+| `ui-dist-present` | the built supplied UI shipped |
+| `private-node-runtime` | the bundled Node runs (`node --version` succeeds) |
+| `host-spawned` | the host starts from the bundle with that Node |
+| `host-healthy` | `/api/health` answered 2xx |
+| `ui-served` | `/` served the UI |
+| `api-reachable-on-same-origin` | the renderer's API is on the same origin |
+
+A real GUI launch was also exercised: `open -a Strata.app` started both the shell process and the
+sidecar host listening on loopback, and quitting removed **both** processes with none left behind.
+
+**Headless DMG builds.** Tauri's default DMG step runs an AppleScript that asks Finder to arrange
+the window; Finder AppleEvents time out outside a GUI session (`AppleEvent timed out. (-1712)`).
+`apps/desktop/scripts/make-dmg.sh` therefore calls the vendored `create-dmg` with
+`--skip-jenkins`, which is upstream's supported path for exactly this case and produces a plain,
+correct image. Use it rather than `cargo tauri build --bundles dmg` in automation.
+
+**Not signed or notarized.** It must not be published or advertised as a release. D04/D05 (signing
+access; font and asset redistribution evidence) still need owner input. The icon is generated from
+the supplied brand masters by `cargo tauri icon`, so it is the real design rather than a default.
+
+The Electron implementation was **removed, not left behind**: `main.cjs`, `preload.cjs`,
+`build-resources/`, `scripts/smoke.mjs` and the Electron dependency tree are gone. The UI host
+moved from `apps/desktop/renderer` to `apps/host` so Desktop and Terminal can share one runtime
+rather than one per client, which is what the architecture's artifact rules ask for.
+
+
+### 1.7 No demo path in a packaged build (U12)
+
+The supplied host fabricates monitor readings (randomised GPU utilisation, temperature, VRAM, and
+`promptTps = 1400 + rand*500`) whenever `STRATA_REAL_ENGINE !== '1'` — and that was the **default**.
+It also fell back to a token-streaming "demo engine" for chat.
+
+That is a production success path built from simulated data, which acceptance row U12 forbids. It
+is now closed at three points:
+
+1. `server/inference.mjs` probes **Strata's own API worker first** and adopts an endpoint only after
+ `/v1/status` identifies it (`service === "strata"`) — an unrelated OpenAI-compatible listener is
+ no longer adopted just because it holds a port.
+2. `requiresRealEngine()` returns true for a packaged build unconditionally. When no engine
+ answers, the backend becomes `kind: "unavailable"` with a typed, actionable error; the demo
+ branch is unreachable. `STRATA_FORCE_DEMO=1` can only select demo mode in an **unpackaged**
+ run.
+3. The Tauri shell sets `STRATA_PACKAGED=1` and `STRATA_REAL_ENGINE=1` on the host process, so the
+ monitor's derived fields report `none` rather than invented numbers.
+
+Verified behaviour:
+
+| Condition | Backend kind |
+| --- | --- |
+| `STRATA_PACKAGED=1`, no engine running | `unavailable` + typed error (no simulation) |
+| development, no engine running | `demo` (labelled `simulated: true`) |
+| `STRATA_PACKAGED=1`, Strata worker live | `strata` (real, with model/context/dialects) |
+
+### 1.8 The agent bridge works end to end (A01/A03 groundwork)
+
+`integrations/harness/` carries the pinned Harness integration. `profile/cordis.patch.yml` is a
+patch layer over the shipped `base` + `web-app` bundles that points the agent at a **local** route
+and declares no cloud route at all, so local use needs no DeepSeek account and cannot silently fall
+back to a hosted model.
+
+`integrations/harness/bridge_tests.py` proves the path without model weights. Against the pinned,
+installed Harness CLI (`0.2.0-rc.2`, from the DeepSeek Harness app bundle):
+
+| Case | Result |
+| --- | --- |
+| `completion` | **PASS** — one turn reached the Strata worker and completed; the durable assistant message records `provider: strata-local`, `model: qwen3.8-flash-next`; the worker independently recorded the requests |
+| `cancel` | **INCONCLUSIVE on this host** — see below |
+| `approval` | **NOT EXERCISED** — no tool in this session's set required approval |
+
+```
+python311/bin/python integrations/harness/bridge_tests.py --all
+```
+
+**Four real integration defects were found and fixed by this test, none of which a config review
+would have caught.** They are recorded because they will recur on the real machines:
+
+1. **The provider schema is nested.** `llm-pi-ai`'s config is `{ providers: { "<route>": {...} } }`,
+ not route keys at the top level. A top-level route key is *silently ignored*, and the failure
+ appears much later as `no adapter registered for provider "strata-local"`.
+2. **Naming a credential reference is not the same as needing a credential.**
+ `apiKeyEnv: STRATA_LOCAL_API_KEY` fails with `no credential for provider route` when the
+ variable is unset, *before* the request reaches the worker.
+3. **But omitting the credential entirely also fails.** pi-ai's OpenAI-compatible client insists on
+ a key before it will send anything (`No API key for provider`, `PI_AI_ERROR`). The route
+ therefore carries a literal loopback placeholder `Authorization: Bearer strata-local` — not a
+ secret, scoped to `127.0.0.1` by `baseURL`, and it must become an `apiKeyEnv` reference if the
+ worker is ever started with `--api-key`.
+4. **The output budget must fit the *whole* request.** The Harness system prompt plus its tool
+ definitions is already ~29K tokens of a 32K window, so the 8K default made every turn fail with
+ the worker's `request exceeds the context window … requests are never truncated`. The worker is
+ right not to truncate silently; the route declares `maxTokens: 2048` so it fits. On a real
+ machine, either raise the engine's context or set the engine config's `fit_max_tokens` so the
+ server trims *with a label* instead of refusing.
+
+**Why `cancel` is inconclusive here, stated plainly.** `session/cancel` returns
+`{"accepted": true}` immediately, which is admission and not settlement. Against the built-in
+`MockEngine` a turn finishes in milliseconds, so the cancel arrives after the turn has already
+completed — the test reports that rather than claiming a pass or a failure. A decisive test needs a
+model whose decode takes long enough to observe, which is exactly the real-model machine. The
+assertion is already written against the *durable* terminal state (`turn/end`), not against the
+acknowledgement, so it will be meaningful there.
+
+**Why `approval` was not exercised.** The session's tool set raised no approval request, so the
+outbound `approval/request` waterfall was never used. The case asserts the vocabulary of any
+decision it does see (`allowed-once | rejected | cancelled | unavailable`) and reports honestly
+when nothing was asked. Covering it needs a tool the policy actually gates; the qualification kit
+lists this as a required Phase B observation.
+
+### 1.9 Real Time-skip replaces the scripted flow (S01–S05 groundwork)
+
+The supplied Time-skip was a 28-second scripted animation: nine fixed moments, three sample
+documents chosen by regex, and a text table labelled "Simulated comparison checks". It is now a real
+state machine in `strata_control/time_skip.py`, driven from the CLI and shared by Desktop and
+Terminal:
+
+ queued -> checkpointing -> generating -> checking -> decision -> completed
+ plus cancelled | failed | interrupted | needs_user_review
+
+```
+strata timeskip run --workspace DIR --prompt "..." [--attempts N] [--revise-command CMD]
+strata timeskip list
+strata timeskip status RUN_ID
+strata timeskip apply RUN_ID [--dry-run] [--restore]
+python -m unittest discover -s tests/time_skip -t tests/time_skip # 24 tests, OK
+```
+
+**The rules that make it honest, and the test that holds each one:**
+
+| Rule | Why it matters | Test |
+| --- | --- | --- |
+| A check that did not run is `unknown`, never `passed` | A missing check must not become evidence of success | `test_missing_program_is_unknown_not_passed` |
+| A check that cannot be *launched* is unknown too | Blaming a candidate for a declaration mistake is wrong; passing it would be worse | shell exits 126/127 map to `unknown` |
+| A previously passing check that now fails **rejects** the candidate | This is the specification's non-regression gate | `test_regression_rejects_and_keeps_last_good` |
+| Nothing improved → `inconclusive`, not success | Absence of evidence is not evidence | `test_unchanged_candidate_is_inconclusive` |
+| A model's opinion never gates | Critique can advise but cannot assert objective correctness | `test_advice_alone_cannot_keep_a_candidate` |
+| The workspace is never written during a run | Speculative work must be isolated | `test_the_workspace_is_never_written_during_a_run` |
+| Cancel/crash retains the last complete checkpoint | "Preserve the last good result" | `test_cancel_retains_checkpoint` |
+| A concurrent user edit makes apply **refuse**, exit 6 | Never overwrite someone's work silently | `test_apply_is_refused_after_a_concurrent_user_edit` |
+| Apply is explicit, previewable and reversible | Applying is a separate, verified step | `--dry-run`, rollback copy, `--restore` |
+| A rejected candidate stays on disk | The user must be able to inspect what was tried | `test_rejected_candidate_stays_inspectable` |
+| Attempts are bounded and each starts from the *retained* checkpoint | A rejected candidate must not seed the next attempt | `test_later_attempt_starts_from_a_kept_candidate` |
+
+Demonstrated end to end on a fixture workspace: the baseline failed a declared `grep -q three`
+check, the revision added the line, attempt 1 was `keep` with reason *"every deterministic check
+passed; newly passing: has-three"*, the decision was `accepted`, `--dry-run` reported `would write:
+doc.txt` without touching anything, apply wrote it (keeping a rollback copy), `--restore` put the
+original back, and a subsequent apply on a user-edited workspace was refused.
+
+### 1.10 The Time-skip revision step is a real, bounded Harness turn
+
+`integrations/harness/revise_once.py` is the `--revise-command` that turns one Time-skip attempt into
+one bounded agent turn:
+
+```
+strata timeskip run --workspace DIR --prompt "..." --attempts 1 \
+ --revise-command "<python> <abs>/integrations/harness/revise_once.py --deadline 200"
+```
+
+It runs with the **candidate directory** as its cwd, takes the prompt from `STRATA_TIMESKIP_PROMPT`
+and the attempt number from `STRATA_TIMESKIP_ATTEMPT`, and returns when the turn reaches a terminal
+state. Its contract with Time-skip is narrow on purpose: **exit 0 means an attempt was made, not that
+it succeeded.** Whether it improved anything is decided by the checks, never by the runner.
+
+"Bounded" means all three of: a wall-clock deadline, a per-attempt Harness home (so a crashed
+attempt cannot corrupt the next one), and a Harness that is stopped when the deadline passes — a
+stuck agent cannot hold a run open.
+
+**Demonstrated end to end** with the real Harness CLI driving the real worker:
+
+| Observation | Value |
+| --- | --- |
+| baseline checkpoint | `cp1-baseline` digest `75069f85862a`, `has-status=failed, has-title=passed` |
+| attempt 1 | **reject** — `deterministic check(s) failed: has-status` |
+| decision | `inconclusive` — every candidate was rejected, the baseline is retained |
+| retained | `cp1-baseline`, flagged `needs user review` |
+| the user's workspace | **unchanged** (`title: notes / owner: nik`) |
+| the rejected candidate | kept on disk for inspection |
+| worker | 2 requests served by the local Strata worker |
+
+The candidate was correctly rejected because the engine on this Mac is the built-in `MockEngine`,
+which returns a fixed reply and cannot actually edit a file. **That is the point of the result**: a
+revision that achieved nothing was rejected and the good version was kept, rather than a plausible
+summary being presented as progress. On a machine with a real model the same run becomes a real
+revision attempt, and nothing about the gate changes.
+
+**Evidence:** `docs/work/evidence/timeskip-harness.txt`.
+
+**What remains:** wiring this into the App Host's `/api/chat/stream` and the supplied `TimeSkipPanel`
+so the UI drives it, and replacing the panel's scripted moments with the real event stream. The
+backend contract the UI needs is the `timeskip` CLI's JSON output and `run.json`.
+
+### 1.11 Windows owner transport (R03/R04 groundwork)
+
+`strata_control/runtime.py` was POSIX-only: `_supported()` raised on Windows, so `strata runtime`
+refused everything there and the terminal had no managed-owner mode at all. That is now a real
+transport with an explicit, honest difference between the platforms.
+
+`strata_control/owner_transport.py` provides the two operations the runtime needs (listen, connect)
+plus addressing and state-file validation:
+
+| Platform | Mechanism | What the channel's security rests on |
+| --- | --- | --- |
+| macOS / Linux | `AF_UNIX` stream socket in the owner's `0700` runtime directory, socket at `0600` | the filesystem: another user cannot open the path |
+| Windows | loopback-only TCP listener (`127.0.0.1`, OS-assigned port) | the owner's 256-bit control token compared in constant time, plus a `0700`-equivalent private state directory |
+
+**The Windows path is weaker and is recorded as such.** The Python standard library cannot create a
+named pipe with a security descriptor (`CreateNamedPipe` is not exposed), so an owner-only pipe ACL
+is not available without a native extension. A loopback port is reachable by another local user who
+guesses it *and* has the token. Three things narrow that: the listener never binds anything but
+`127.0.0.1`, the token is 256 bits and compared with `compare_digest`, and the state file is
+validated (regular file, owned by this user, no group/world bits, size-bounded) before a client will
+use it. This is the same security model as any loopback-authenticated local service. A native
+`CreateNamedPipe` implementation with an SDDL restricting the pipe to the owner is a scoped
+improvement and is tracked as the remaining difference, not presented as already done.
+
+`serve/winjob.py` already solves the *other* half of Windows process ownership — engine children are
+placed in a kill-on-close job object so they cannot outlive the server, and `test_winjob.py` covers
+it.
+
+**15 transport tests pass, and the Windows branch is exercised on macOS**: the loopback listener,
+the round trip, the "a second owner cannot share the port" check and the "it must not be reachable
+off-loopback" check are ordinary Python and run everywhere, so the platform branch is verified
+rather than deferred. The state-file validation tests cover symlink, wrong-mode, directory and
+oversized inputs. The POSIX stale-socket recovery keeps its existing checks unchanged.
+
+**Evidence:** `python -m unittest discover -s tests/terminal -t tests/terminal` → 237 tests, OK.
+
+### 1.12 Engine tuning: the job contract, and the HyperCore-Tune decision (T01–T08 groundwork)
+
+`strata_control/tuning.py` implements the tuning job: a bounded search over runtime configuration
+that produces a **recommendation**, never an automatic change. `strata tune plan|status|list` is the
+interface, shared by Desktop and Terminal. **31 tests pass.**
+
+**Decision D07 — HyperCore-Tune is a candidate optimizer, not the optimizer.** The handoff asks for
+it to be adapted and tested rather than assumed portable. The evidence, from the pinned checkout
+(`4f9ab7fa`) and this machine's engine:
+
+| Finding | Evidence |
+| --- | --- |
+| Its search space is CUDA/HIP engine flags | `search_space.py` names `--vram-reserve-mib`, `--pcie-frac`, `--pool-workers`, `--host-core`, `--pool-affinity`, `--ple-io`, `--kv`, `--kv-grow`, `--prompt-cache-tail`, `--spec-min-p` |
+| Two of those do not exist on Apple Silicon | the Metal engine's `--help` lists neither `--vram-reserve-mib` nor `--pcie-frac` — they are NVIDIA/AMD device concepts, so a HyperCore sweep on Metal could only record `FAIL_BOOT` rows |
+| It finds Strata by walking up from its own directory | `strata_env.py`; unacceptable for a packaged app, where the component registry must name an exact engine build |
+| It writes deliverables next to that root | `max_run_<model>.json/.sh/.bat`; the active profile must not be mutated by a search |
+| Its README claims Linux/Windows, its tests use stub engines | a claim about the harness, not a qualification of any GPU |
+
+So Strata owns the job, the lease, the evidence and the apply step, and HyperCore-Tune remains a
+candidate optimizer behind that job for the backends whose flags it actually targets. If it is later
+qualified on CUDA, it plugs in where the measurement function is; nothing about the contract below
+changes.
+
+**The dimension table is what makes a sweep safe.** A dimension is offered only when *every* flag it
+drives is both a concept of the selected backend and accepted by the actual engine binary —
+`engine_flag_inventory()` runs `strata --help` and the result decides. Anything else is excluded
+**with its reason**, so a sweep can never "measure" a configuration the engine would refuse. For this
+machine's Metal engine the plan reports exactly that:
+
+```
+searches: ple_io, kv, kv_grow, spec_min_p
+excluded: vram_reserve, pcie_frac, expert_cache (not Apple Silicon concepts)
+ host_core, pool_affinity, pool_workers (flag parses, kernel unported)
+ prompt_cache_tail (not a Metal setting)
+```
+
+**What the contract guarantees, each held by a test:**
+
+* A candidate that failed to boot, timed out, produced no tokens, or failed a **correctness** check is
+ recorded with its status and excluded from selection. Tokens/s alone is never acceptance.
+* Selection compares the candidate's **worst** run against the baseline's **worst** run, so a
+ candidate whose best run is faster but whose bad runs are worse cannot win on noise.
+* The baseline is measured again *after* the sweep, and the drift is reported. A report never claims
+ a comparison it cannot support.
+* The sweep holds an **exclusive device lease** (`O_EXCL` marker) and a second job is refused by
+ name; a crashed job's stale lease is reported rather than ignored; the lease is released even when
+ the job fails.
+* A cancelled sweep recommends **nothing**, however good its partial numbers look.
+* A benchmark-only lever (`prompt_cache_tail`) is measured but never exported, and
+ `verify_exported()` re-measures the configuration *as it would actually be written* — if the
+ advantage came from a lever that gets stripped, the recommendation is withdrawn.
+* Applying is a separate step. The sweep never writes the active profile.
+
+### 1.12a The measurement harness (T04 groundwork)
+
+`strata_control/tune_engine.py` is the `measure` callable the job needs: it boots the engine with one
+candidate's flags, sends the declared workload, reads the engine's own protocol output, and returns
+measurements. **26 tests pass against a stub engine that speaks the real protocol.**
+
+The protocol it reads is the engine's, not an invention — `READY <ctx>`, `PP <processed> <total>
+<ms> [<tok_s>]`, `T <id>`, and `DONE <produced> <prompt_tokens> <prompt_ms> <decode_ms> <finish> …`
+from `src/program/generate.cpp`. Rates come from the engine's **own** prompt/decode milliseconds;
+client-observed timings are recorded separately and labelled, because they answer a different
+question.
+
+What it refuses to score, each held by a test:
+
+| Case | Why it is not a measurement |
+| --- | --- |
+| `finish` is `cancel` or `nonfinite` | the run did not complete |
+| `produced` is 0 | a configuration that generates nothing is broken, not slow |
+| the streamed token count disagrees with `DONE` | neither number can be trusted for a rate |
+| the engine reports `ERR` | the engine's own words are the result |
+| the engine exits before `READY` | reported with its exit code |
+| the boot or request deadline passes | reported as a timeout, not as a slow result |
+
+A missing metric stays **missing** rather than becoming zero, so an unmeasurable prompt rate cannot
+be mistaken for a very slow one. The workload is fixed (greedy, seed 1) so every candidate does the
+same work — a "faster" configuration that quietly did less is the classic tuning failure.
+
+**One real defect the tests caught, worth recording because of how it presented.** The harness read
+the engine with `readline()` inside a `while time.monotonic() < deadline` loop. `readline()` on a
+pipe has no timeout, so **the deadline bounded nothing**: an engine that started and then said
+nothing would hang the measurement forever, and the boot-timeout path was unreachable. It surfaced
+as a test hanging rather than failing, and the first two attempts to fix it (blaming the stub's
+`sleep` child, then a shell quoting detail) were wrong — the instrumented reproduction showed the
+hang was in `start()` itself. The fix is a daemon reader thread and a queue the caller polls with a
+deadline it actually enforces, plus reaping the exit status before reporting it, because a reader can
+observe end-of-stream before `poll()` has reaped and "exited with code None" is useless exactly when
+the code matters.
+
+**What is still not done:** no sweep has been run against a real model, because no supported pack
+fits this Mac. The harness is now complete enough that a sweep is a configuration step on a machine
+that has one; `docs/work/QUALIFICATION-KIT.md` section 9 lists the observations to make there.
+
+### 1.13 Time-skip reaches the UI, without redesigning it
+
+The supplied Time-skip design is preserved exactly. What changed is where its numbers come from.
+
+`apps/host/src/lib/time-skip.ts` already exported `timeSkipResultState(run, now)`, and
+`TimeSkipPanel` renders from what that returns. A run now optionally carries a `job` — the App Host's
+projection of Strata Control's durable record — and when it is present the result state is derived
+from the **job's phase, decision and check outcomes** instead of from elapsed time:
+
+| Value | Preview run | Real run |
+| --- | --- | --- |
+| `status` | a scripted caption | the job's actual phase, and it says "the checks were inconclusive" when they were |
+| `kept` | the scripted `'a'`/`'b'` choice | the job's `decision.improvements` |
+| `frame.index` | elapsed milliseconds | the job's phase |
+
+The scripted `moments` are still used — for motion and layout — but they no longer *decide*
+anything. That is what keeps the delivered design intact while removing the fake result: the
+animation is the design, the verdict is the job's.
+
+**Absent `job` is what makes a run a preview.** There is no mode flag a caller can forget to clear,
+so a production run cannot accidentally render as a demo.
+
+**The App Host never invents a status.** `/api/timeskip*` starts the job, follows it and applies its
+result; the projection is copied from `run.json`. It does not compute a percentage, a score or a
+progress fraction — the job's phases are coarse and a check can take minutes with nothing to say, so
+the UI shows a phase. `needsUserReview` and `unknown` check outcomes survive the round trip
+unchanged, because a caller that renders either as a pass would be the bug they exist to prevent.
+
+Verified over HTTP: a run started and completed, its attempt was rejected with the reason and
+per-check outcomes recorded, `needsUserReview` was true, a dry-run reported nothing to write, and an
+apply after a user edit returned **409** and left the workspace byte-identical. The revision command
+is a configured path rather than an HTTP parameter, so a remote caller cannot request command
+execution.
+
+### 1.14 One pre-existing flaky UI test (found, not caused, not yet fixed)
+
+`apps/host/tests/request-flow.test.mjs` — *"Serving cancellation stops active and queued demo
+requests"* — fails consistently on this machine: 187 pass, 1 fail. It is **pre-existing**, proven by
+stashing the only file this round touched (`apps/host/server/index.mjs`) and re-running: the same
+187/1. The assertion that fails is `assert.ok(active)` after two chat streams start 100 ms apart and
+the test then waits another 100 ms.
+
+It is a race in the test, not in the product: the demo stream emits chunks on a ~26 ms cadence, so
+by the time the test looks, the first request can already have moved past `generating`. A reliable
+version would poll for the two states with a deadline instead of assuming 200 ms is inside the
+window. Recorded here rather than papered over, because "one test is red" is exactly the kind of
+thing that becomes permanent when it is not written down.
+
+### 1.15 Tuning reaches the UI, as a review surface (item 6's UI leg)
+
+`apps/host/src/components/TunePanel.tsx` renders the tuning job contract inside the supplied design
+system — the kit's `Panel`, `Metric`, `Pill`, `Select`, `Empty` and tokens, with a new
+`styles/tuning.css` written against those tokens so themes, localization and reduced-motion all
+follow. `#/tuning` now renders it instead of the model-run screen; the route is unchanged, so
+existing navigation keeps working.
+
+**It is a review surface, not a run button, and that is deliberate.** The plan is fetched from
+`/api/tune/plan`, computed from the selected engine binary's own flags, and every excluded dimension
+is shown **with its reason** — a dimension missing silently would be a defect, so the panel makes the
+exclusions as visible as the search. `/api/tune/engine` reports whether a binary exists at all, so
+the panel says "install a model first" rather than offering a plan about a guessed path.
+
+**There is no Start button.** A sweep boots the engine once per candidate and needs the measurement
+harness wired to the UI; that wiring does not exist, so a Start button would be exactly the kind of
+fake affordance this rebuild exists to remove. The panel says what is missing instead. The report
+view is complete for when a job does exist: baseline median with its repeat count, the recommendation
+with the exported args, an explicit **"no change recommended"** when that is the outcome (the most
+common honest result of a tuning run, and not something to render as a blank), the drift warning, and
+the candidates that could not be measured with their reasons.
+
+**Seven new route tests pass**, covering both features as contracts rather than as numbers:
+
+| Test | What it holds |
+| --- | --- |
+| unconfigured engine | reported unavailable rather than guessed at |
+| the plan comes from the binary | a stub engine accepting exactly `--kv` and `--ple-io` yields exactly those two dimensions, and every NVIDIA-only dimension is excluded **with a reason** |
+| a plan without engine/backend | 400 with a reason |
+| unknown or malformed job id | 404, and `../../etc/passwd` cannot escape the store |
+| an empty Time-skip list | honest, and reports where the store is |
+| applying an unknown run | refused, never reported as success |
+| **an HTTP caller cannot supply a revision command** | the injected command is never run — `reviseCommand` is configured, not requested |
+
+UI suite: **194 pass / 1 fail** (195 total); the single failure is the pre-existing
+`request-flow` flake recorded in §1.14, unchanged by this work.
+
+### 1.16 `strata tune run` — a real sweep, end to end
+
+`strata tune run` performs the whole job: it plans from the engine binary's own flags, measures the
+baseline, enumerates candidates, measures each with paired repeats, re-measures the baseline, and
+writes a report. **63 tuning tests pass.** Verified end to end against a stub engine that speaks the
+real serve protocol and makes its decode speed depend on one flag:
+
+```
+$ strata tune run --engine tests/tuning/stub_engine.sh --backend metal --model stub \
+ --trials 4 --repeats 3 --hold ple_io --hold kv_grow --hold spec_min_p
+sweeping kv
+ baseline median 20.0 over 3 runs
+ trials 4 of 4
+ recommend index 2: --kv int8
+ median 24.0 against a baseline of 20.0
+```
+
+Nothing was written to any profile, and the command says so.
+
+**Two honesty defects surfaced while testing this, and both are now held by tests.**
+
+1. **A bounded sweep looked like a complete one.** The report said "trials 4 of 4" while the grid had
+ 96 combinations — so *"no candidate beat the baseline"* read as a conclusion when it was an
+ artefact of stopping early. The report now carries `combinations_total` and
+ `trials_are_a_prefix`, and the CLI prints *"6 of 6 allowed, from 96 possible combinations (a
+ prefix of the enumeration)"*. This is the difference between a partial search and a complete one.
+2. **The drift warning fired at +0.0%.** Printing *"the comparison is weaker than the repeat count
+ suggests"* when nothing drifted trains a reader to ignore the warning. Drift is now graded
+ (`drift_material` at a 2% threshold) and negligible drift prints "within noise".
+
+**Stated limitations, printed with every sweep rather than buried:**
+
+* the winner is measured through the engine's **own serve protocol**, not through the full HTTP API
+ the agent uses, so the exported-configuration retest in `QUALIFICATION-KIT.md` §9 is still required
+ before a recommendation is trusted;
+* the stub's numbers say nothing about any hardware. No sweep has run against a real model because
+ no supported pack fits this Mac, and the strings that would have to be fabricated to pretend
+ otherwise are exactly what the handoff forbids.
+
+**Evidence:** `docs/work/evidence/tuning-sweep.txt`.
+
+### 1.17 Acceptance evidence matrix, and tuning history (T06)
+
+**`docs/work/ACCEPTANCE-EVIDENCE.md`** now maps all **67 requirement rows** of the handoff's
+acceptance checklist to an explicit result. `packaging/acceptance_matrix.py --check` fails if a row
+is missing, so a gap is a build error rather than an oversight. Current standing:
+
+| Result | Count |
+| --- | --- |
+| passed | 35 |
+| failed | 9 |
+| pending-hardware | 15 |
+| pending-release | 1 |
+| unsupported | 3 |
+| not-implemented | 4 |
+
+The statuses are deliberately conservative, and the rule that matters is: **`failed` is an
+implementation gap and is never recorded as `pending-hardware`.** Deferring a defect to another
+machine is how a defect becomes permanent. The nine failures are named in the matrix with what is
+missing.
+
+**T06 closed — tuning history.** `strata_control/tune_history.py` makes identity a content digest
+rather than a label: a re-quantised model with the same filename is a different model. The comparison
+key is the engine digest, model digest, digest method, backend, workload, context and machine; a
+completed sweep records itself, and its report states how many earlier sweeps are comparable and, for
+each that is not, **the reason in plain words** — a report has to be able to say "the model changed",
+not merely "no". An unknown identity is never treated as a match, and incomparable history is
+retained rather than deleted, because an earlier sweep may still answer a question. **21 new tests**,
+each element of the key covered separately.
+
+Hashing a multi-gigabyte pack on every CLI invocation would be its own bug, so identity is sampled
+(head, middle, tail plus exact size) by default and the **method travels with the digest** — two
+records hashed differently can never be compared as though they were the same. `--full-digests` is
+available where the cost is acceptable.
+
+Also this round: **A02 verified** with byte-level stream-framing tests
+(`apps/host/tests/stream-framing.test.mjs`) — a multi-byte character split across reads survives with
+no replacement character, an SSE line split mid-JSON is reassembled, a stream ending without a
+trailing newline still yields its last delta, a malformed frame is skipped without losing its
+neighbours, and an error frame reaches the caller in the provider's own words.
+
+### 1.18 `strata tune apply` and `rollback` — explicit, verified, reversible (T07 closed)
+
+The sweep recommends and never writes; applying is now a separate deliberate command. **115 tuning
+tests pass.** Verified end to end:
+
+```
+$ strata tune apply <job> --config strata-demo.json # no model identity -> REFUSED
+strata: the sweep recorded no model digest, so its recommendation cannot be matched to the
+ installed weights; re-run the sweep with --model-path and apply that result instead
+config byte-identical: yes
+
+$ strata tune apply <job> --config strata-demo.json --model-path model.gguf --state-dir state
+applied to strata-demo.json
+ + --kv int8
+ - --kv fp16
+ rollback: strata tune rollback 20261015T052436Z-aa873d11c569
+
+$ strata tune rollback 20261015T052436Z-aa873d11c569
+restored strata-demo.json # exact previous bytes
+```
+
+`env.STRATA_TOKEN` and `aliases` survive the edit — an apply that dropped a user's token would be
+worse than no apply at all. Every refusal leaves the configuration **byte-identical**, which the
+tests assert directly rather than inferring from a return value.
+
+**The real defect testing found, and it was the dangerous shape.** A sweep planned without
+`--model-path` records `model_digest: null`. The library refused that correctly — but the CLI
+re-derived its own identity, whose model digest was *also* null, and `null == null` matched. So the
+apply **proceeded**, on a recommendation that could never be matched to the installed weights, and the
+output looked completely normal. Two unknowns compared equal.
+
+That is exactly the failure mode the identity work exists to prevent, arriving through the one door
+the library did not control. The fix keys the refusal on the *recorded sweep* carrying a real digest,
+before anything else is considered. Three tests pin it down, including one that asserts an identity
+with a null model digest is never treated as the same model.
+
+**The one honest gap, printed by the command itself:** the candidate start is not verified against a
+running model, because no supported model fits this Mac. `--verify` is implemented and tested (a
+verification failure or a zero-token candidate writes nothing), but the CLI passes `None` and says
+so rather than implying a verification that did not happen.
+
+**Evidence:** `docs/work/evidence/tuning-apply.txt`.
+
+### 1.19 Two measurement modes, and memory (T04 closed)
+
+Checklist T04 asks for the full API/Harness workload plus memory, not only engine tokens/s. There are
+now two modes, deliberately separate because they answer different questions:
+
+| Mode | What it measures | Cost |
+| --- | --- | --- |
+| `protocol` | the engine's own serve protocol (`READY`/`PP`/`T`/`DONE`) | cheap; every candidate in a sweep |
+| `api` | the real worker, started from the candidate's configuration, driven over HTTP with a streamed chat completion | the full path a user waits for; the confirmation |
+
+Neither is presented as the other: every measurement carries its `mode`, and the CLI says which one
+produced the numbers and that a `protocol` result should be confirmed with `--mode api` before it is
+trusted. **126 tuning tests pass.**
+
+Both modes now record **peak resident memory** of the process tree, so a speed win bought by spilling
+is visible rather than hidden. Memory is summed over the tree because a backend may spawn workers,
+and an unreadable value is absent — never a zero, which would look like a measurement.
+
+`--mode api` requires `--api-expect`, and refuses without it: *"without an expectation a fast wrong
+answer cannot be told from a fast right one."* That refusal is the point of the mode.
+
+**Three real defects this found, all in code I had just written:**
+
+1. **The worker never started.** I passed `--profile`, which is the *terminal launcher's* flag. The
+ worker's own spelling is `--engine {mock,strata} --config <path>`. It exited 2 with a usage
+ message — and my first instinct was to blame the config file rather than read the flag list.
+2. **Reasoning streams were measured as nothing.** The worker streams reasoning into
+ `reasoning_content` and the answer into `content`; I read only `content`, so a reasoning model
+ reported "no content". Worse, had I read only `content` *after* reasoning, first-token time would
+ have been whenever the thinking finished — **a configuration that thinks longer would have looked
+ faster**. Both fields are now treated as output, and the first of either is the wait.
+3. **A reasoning-only stream must not be a rate.** An engine that only thinks has not generated.
+ That case is now refused with a reason rather than scored.
+
+The third is the same class as the `null == null` defect from §1.18: the harness was happy, the
+output looked normal, and the number was meaningless.
+
+**Labelled honestly:** the API mode's tests run against a scripted fixture and against the real
+worker's `--engine mock`. They prove the harness, not any hardware's performance. A real
+API-mode sweep needs a model that fits a machine, which this one is not.
+
+### 1.20 Component packages: manifests, safe unpacking, atomic activation (P06, P07, P11, P12, P13)
+
+Five requirement rows shared one missing root: there was no component package system. There is now —
+`strata_control/components.py`, **47 tests** — and the rows are closed together because they are one
+mechanism seen from five angles.
+
+**What a component is.** A manifest declares its kind (`application`, `runtime`, `agent-runtime`,
+`tuning`, `engine`, `prepared-data`), its platform list, its backend, its artifacts with a SHA-256 and
+byte count each, and what it requires. Parsing is strict: a missing digest, an unknown kind, a
+non-hex digest, an artifact name that is a path, or **a manifest that does not state its platforms**
+is refused. That last one matters — an unstated platform would read as *every* platform.
+
+**The backend matrix is the packet's own, and it is a refusal gate:**
+
+```
+cpu macos-arm64, macos-x86_64, windows-x86_64, linux-x86_64
+cuda windows-x86_64, linux-x86_64
+hip windows-x86_64, linux-x86_64
+metal macos-arm64
+sycl linux-x86_64
+```
+
+So Windows SYCL and Intel-Mac Metal are refused *as unsupported*, not attempted and not left
+ambiguous — which is what the packet asks for.
+
+**Unpacking cannot escape.** The attack shapes are refused individually, with the real shapes rather
+than a generic bad path: `../`, nested `a/b/../../../`, a leading `/`, `C:\Windows`, `..\` with a
+backslash, `//server/share`, a NUL byte, symlinks and hard links, device and FIFO members. A symlink
+matters most because its *name* is innocent — only refusing links catches it. Every member is
+validated **before any is written**, so a refusal leaves the destination empty, and the tests assert
+emptiness rather than trusting the exception. Setuid bits from an archive are never trusted; the
+executable bit is preserved because a bundled runtime needs it.
+
+**Identity is the bytes, not the version.** The cache key is the digest of the artifact set, so a
+rebuilt artifact with an unchanged version number is a different entry, and a cache hit is a
+statement about content. Activation **copies** rather than consuming the cache — a compatible
+application update reusing an installed engine depends on that payload still being there.
+
+**Reversal is exact.** Activation moves the displaced version aside rather than deleting it, and the
+rollback record is written *before* the activation, so a crash between the two cannot leave it
+pointing at the version being installed. `rollback` refuses when there is nothing to restore, so
+*"rollback succeeded"* and *"the component is gone"* are never the same outcome.
+
+**Interrupted transfers are normal.** Partial bytes are kept for a resume; a range request the server
+ignores restarts rather than appending to a prefix (which would produce a corrupt file that only
+fails at verification, much later); a partial larger than the declared size is discarded as stale; and
+the `.complete` marker is written last so an interrupted install is never mistaken for a finished one.
+
+**Two CLI surfaces, both read-only:** `strata components plan <manifest>` says whether a package may
+be used here, and `strata components backends` prints the matrix. Verified that a Metal engine
+manifest is *usable* on this Mac and refused for `linux-x86_64` with both reasons named.
+
+### 1.21 Offline policy: two claims, tested separately (U08)
+
+The checklist asks for two things that are easy to conflate, so `strata_control/offline.py` keeps
+them apart and they are tested separately — because a passing runtime-only test says **nothing** about
+the strict one. The first is about the server's own code paths; the second is about every process it
+can start.
+
+| Claim | Meaning | How |
+| --- | --- | --- |
+| `runtime_only_no_download` | serving fetches nothing; downloads elsewhere are permitted | the server runs from local files |
+| `strict_offline` | nothing in the process tree reaches the network | environment + one predicate + preflight |
+
+**Strict offline reaches children through the environment**, applied *last* so a profile cannot remove
+the policy by naming the same variable:
+
+```
+offline=True: HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 PIP_NO_INDEX=1 NO_PROXY=* STRATA_OFFLINE=1
+ HTTP_PROXY/HTTPS_PROXY emptied so an accidental call fails fast rather than hanging
+profile asked HF_HUB_OFFLINE=0 -> '1' (the policy wins)
+```
+
+Verified against a **real child process**, not by reading the dict.
+
+**One predicate decides every fetch.** `check_url` allows local schemes and loopback — talking to this
+machine is not a download, and forbidding it would break the local API the product is built on — and
+refuses anything else with the host named in the reason.
+
+**A preflight refuses before the server starts.** A profile declaring MCP servers, a `before_load`
+command or remote image sources cannot be strict-offline, and saying so up front beats failing on the
+first request. The refusal names which part of the profile is the problem.
+
+**A test that asserts the wiring caught a real leak.** `test_every_child_environment_call_passes_the_policy`
+checks that *every* `child_env` call passes the server's offline state — and it found one that did
+not: **the engine's own environment**. The flag was being honoured for replicas but not for the
+engine, so a model loader could have fetched a missing shard under a flag that promised it would not.
+A guard that is not wired in is decoration; asserting the wiring is what makes it real.
+
+**The limit is stated, not hidden.** `limits()` records what this does *not* enforce: a child that
+ignores the environment and opens a socket directly is not stopped, because that needs an OS sandbox
+this product does not have on all three platforms. The qualification kit asks for the
+network-isolated run that would settle it. Claiming enforcement we do not have would be exactly the
+kind of thing this rebuild exists to remove.
+
+**26 tests**, and the serve suite is unchanged at **801 pass / 11 skip**.
+
+**Evidence:** `docs/work/evidence/offline.txt`.
+
+### 1.22 Tool execution and approval, end to end (A04 closed; A03/A05 in progress)
+
+`integrations/harness/tool_flow_e2e.py` drives the real path: a scripted Strata worker emits a bash
+tool call, the Harness agent loop executes it against a real workspace, and the turn is recorded in a
+durable session. The model is scripted — writing a file via bash is deterministic, and a scripted tool
+call exercises the same code as a model-chosen one (the worker's parser, the Harness tool executor,
+the approval gate, the durable record). It does **not** prove a real model chooses tools well, and the
+script says so.
+
+**A04 passes — an unanswerable approval fails closed.** The agent is started *without*
+`interactions=answer`, so no peer can answer; the approval resolves to `unavailable` (the Harness
+vocabulary is `allowed-once | rejected | cancelled | unavailable`, and callers fail closed on the
+last), the tool does not run, the marker file does not exist, and the turn still reaches a terminal
+state instead of hanging.
+
+**A05 also passes, and it took a second attempt to make it mean anything.** The first run passed
+trivially: the scripted turn finished in milliseconds, Stop arrived *after* `turn/end`, and the run
+proved nothing while printing PASS. The fix was to make the window real — `--script-delay` was added
+to `serve/server.py` so the mock waits between tokens (it already honoured cancellation between
+them), and the test now waits for `turn/start` and **fails if the turn was not live** before
+cancelling. With a live turn: Stop is acknowledged as `{accepted: true}` (admission only, as
+documented), the turn settles as **`aborted`** in the durable record, and the tool does not run.
+
+That is the second time in this build that a check passed for the wrong reason, and both times the
+tell was the same: the assertion would have held even if the feature were absent.
+
+**A03 is implemented and not yet passing.** The tool call is recognised — tool events appear in the
+session — but the tool does not execute. It is the last open requirement row.
+
+**Four defects were found and fixed in the test harness itself. Every one of them had produced a
+run that looked fine:**
+
+1. **A stale worker was answering.** A mock worker left over from the Time-skip round an hour earlier
+ was holding port 8095 — the port the *profile* names — so every request went to it and its
+ scripted reply ("I made the change you asked for") came back as if the agent had produced it. The
+ first A03 run "passed" the turn and failed only on the marker, which is what a real tool failure
+ would look like. Fixed: the profile is rewritten per run with that run's worker port, and
+ `start_worker` now refuses a port already in use.
+
+2. **`urllib` followed the agent's 303 and discarded the `set-cookie` on it**, so the next request
+ 401'd. That reads as an authentication bug rather than a client one. Fixed: `http.client`, which
+ returns the response as sent.
+
+3. **The gateway needs its own envelope** (`type: client-request`, `rpcId`, `method`,
+ `payload.args`). Posting `args` directly is answered with a schema-issue list that reads like a
+ malformed *session*.
+
+4. **The scripted reply must close its thinking block.** Without `</think>` the server treats the
+ whole reply as reasoning, so the tool-call block lands in the reasoning field and is never
+ executed — while the turn completes normally. Silent.
+
+**And one hazard that cost the most time, now a supported option.** The worker's scripts are consumed
+in order, one per request, and the Harness makes requests the script author does not plan for: a
+session *title* request before the turn, and a re-ask after a tool result. One extra request shifts
+every later reply, and the symptom is a run that looks like **a model which chose not to use a
+tool** — indistinguishable from the real failure being investigated. `--script-cycle` was added to
+`serve/server.py` so a scripted sequence is chosen by request position instead of a counter; the
+serve suite is unchanged at **801 pass / 11 skip**.
+
+**Evidence:** `docs/work/evidence/tool-flow.txt`.
+
+### 1.23 A04's pass was vacuous; the row is reopened
+
+**A04 was marked passed on evidence that did not support it.** The run asserted that an unanswerable
+approval fails closed, but nothing in it was actually unanswerable. Three findings, each verified in
+the DSH source rather than inferred:
+
+| Claim | Where | Consequence |
+| --- | --- | --- |
+| `interactions` defaults to `'answer'` | `packages/client/connection/src/peer.ts:40` | omitting the launch-URL parameter removed **no** answerer |
+| it is parsed only on `/connect` | `browser-auth.ts:309,321` | the launch-URL parameter was **decorative** |
+| approval is consulted only for a sandbox escalation | `shell/tool-bash/src/index.ts:218,241` | a plain workspace-write command is **not gated at all** |
+
+So the tool did not run in that earlier A04 run because **the scripted tool call was malformed** — a
+missing required `description` argument — and not because approval denied it. Every line of output
+looked right, and the row was written into the matrix as verified.
+
+**And the mechanism A04 assumed does not exist.** What genuinely makes an approval unanswerable is
+that no client holds the `$events` stream. With an escalating call and no peer, the request does not
+fail closed: it stays **pending indefinitely**, the session records `approval/asked` with no
+`approval/decided`, and the turn never ends. The documented `unavailable` fall-through happens in
+`ApprovalService.decide()` only once the waterfall actually runs.
+
+The rewritten test uses an escalating call and a peer that receives the approval and answers `next`
+("no available answerer"), then asserts the recorded decision is the fail-closed `unavailable`, the
+turn completes, no grant is recorded and the marker does not exist. Same scripted call as A03; only
+the peer's decision differs.
+
+**This is the third time in this build that a check passed for a reason unrelated to the feature, and
+the first one that was mine rather than a harness defect.** The pattern is consistent: the output
+looks right, the assertion is about the *absence* of something, and nothing forces the mechanism to
+have been exercised. The discipline that catches it is asking, of every passing check, *"would this
+also pass if the feature did nothing?"*
+
+A03 now passes for a real reason — `PASS A03`, with the peer's own record that it answered one
+approval as `allowed-once`, the marker written exactly once, and the worker recording two requests
+while executing nothing itself.
+
+### 1.24 A03 and A04 pass with the mechanism actually exercised — no failed rows remain
+
+All three agent-integration flows pass, each `--only` exits 0, and the combined run exits 0.
+
+```
+[A03] turn completed; 2 tool events; marker has 1 line; peer answered 1 of 1 approval(s):
+ ['allowed-once']; worker recorded 2 request(s) and executed nothing itself PASS A03
+[A04] turn completed; marker exists: False; escalation asked 1 time(s), decided ['unavailable']
+ PASS A04
+[A05] cancel acknowledged {accepted: true}; turn ended 'aborted' PASS A05
+```
+
+**A03's assertions** make a replayed effect impossible to hide: the marker has **exactly one** line,
+an approval was **asked and answered** with the recorded outcome `allowed-once`, and the worker
+recorded two requests while **executing nothing itself** — so the tool ran in the Harness and the
+transcript, not the tool, went to the API.
+
+**A04 does not assume the denial; it observes it.** The peer answers `next` (do not decide,
+delegate), which is this vocabulary's "no available answerer", and the test asserts the escalation
+reached the gate, every recorded decision is the fail-closed `unavailable`, **zero grants** were
+recorded, the turn settled, and the marker does not exist. Each assertion fails for a different way
+the flow could otherwise pass while proving nothing: the tool never reaching the gate, the gate
+granting, or the turn hanging with the request pending.
+
+**Four defects had to be cleared, each hiding the next.** The session-title request consumed the
+scripted tool call, so the turn never emitted one; then the call failed argument validation for a
+missing required `description`; then it emerged that the launch-URL `interactions` parameter is
+decorative (parsed only on `/connect`, and the peer default is answerable); and finally that a plain
+workspace-write command **is not gated at all** — approval is consulted only for a sandbox
+escalation, so the scripted call now requests one. That is what makes A03 and A04 about the approval
+gate rather than about a malformed call.
+
+**A correction to my own record.** §1.23 reopened A04 after its first pass was found vacuous. This
+section closes it again on evidence that names the mechanism, and the earlier reasoning was wrong in
+a way worth keeping: `--script-cycle` does **not** fix a request the script author did not plan for —
+with two scripts an inserted request swaps the replies. Removing the unplanned request is what aligns
+the sequence. I had that backwards, and it cost a round.
+
+**A process note.** While fixing this I committed the subagent's in-progress edit to the *product*
+profile with a `git add -A`, which put a test's need into a shipped file. It is reverted: the
+title-model row now lives in a separate test-only overlay
+(`integrations/harness/profile/scripted-worker.cordis.patch.yml`) applied as a second `--patch`, and
+the product profile is unchanged. `git add -A` while another agent is editing the tree is the cause;
+staging explicitly is the fix.
+
+**Evidence:** `docs/work/evidence/tool-flow.txt`.
+
+---
+
+## 2. Deviations and decisions (material)
+
+**D01 — Merge strategy for the terminal checkpoint.** The handoff says to port terminal changes
+"in small commits" onto current Strata. The terminal branch is not fetchable upstream, so the
+only faithful reproduction is to rebuild it from the supplied cumulative patch at its declared
+merge base and merge that. This is recorded here because it is a deviation from the literal
+"small commits" instruction, made to avoid copying an old engine tree over current Strata.
+*Preserved:* all current engine/server behaviour — verified by the 801-test server suite.
+
+**D02 — Python interpreter.** The system `python3` is 3.9.6; Strata requires 3.10+. `setup.sh`
+downloads a pinned standalone CPython 3.12 into `.python` on macOS for exactly this case. For
+development and testing I used the Homebrew `python3.11` in a venv. The shipped runtime must use
+the setup path (bundled interpreter), not a developer interpreter — that work is still open (§4).
+
+**D03 — Harness embedding surface is the Gateway, not the SDK.** Reconnaissance
+(`…/strata-work/RECON-HARNESS.md`, every claim cited to `file:line`) shows the handoff's two
+stated gaps are **scoped to the SDK wire only**:
+
+| Surface | cancel | approval out/in |
+| --- | --- | --- |
+| Gateway / remote (`dsh web` + `/api` + WS `/api/remote.mux`) | **yes** (`session/cancel`) | **yes** (`approval/request` waterfall + `POST /api/$events/result`) |
+| ACP (`dsh --profile acp`) | yes (`session/cancel`) | yes (`session/request_permission`) |
+| SDK (`dsh --profile sdk`) | **no** | **no** |
+
+So the App Host will drive the Gateway surface, which satisfies integration spec §2 without a
+custom bridge plugin. `session/cancel` returns `{accepted:true}` as *admission only*; quiescence
+must be waited for via `api-session/status(sessionId, running:false)` or the durable aborted
+`turn/end`. The answering peer must be `principal.kind === 'owner'` **and**
+`interactions === 'answer'` — `/connect?...&interactions=answer` is required because it defaults
+to `none`.
+
+**D04 — Private Node runtime.** The App Host needs a Node runtime, and the packaging requirement is
+that an end user supplies none. The shell therefore ships a **pinned standalone Node** as a sidecar
+(`apps/desktop/src-tauri/resources/node/node`, Node 24.12.0 — matching the host's own
+`engines.node >= 24.12.0`). This is deliberately a real Node binary rather than a desktop shell's
+embedded one: the runtime is then explicit, version-pinned, recorded in the artifact manifest, and
+independent of the carrier. (An earlier Electron attempt used the shell's embedded Node with
+`ELECTRON_RUN_AS_NODE`; it worked, but the runtime was implicit in the shell version, and the
+carrier has since been replaced anyway.) The Harness monorepo is *not* built: the agent backend is
+consumed as a pinned external dependency over its Gateway surface (D03).
+
+---
+
+## 3. Blockers and known failures
+
+### 3.1 `moe_mm_parity` fails on the M4 — a real defect, not a packaging issue
+
+```
+mtl: no function mm_gu_42_16_64_16_2 Function mm_gu_42_16_64_16_2 was not found in the library
+device Apple M4; Q2_0/Q2_0, T 256, 64 experts, tile TM 16 TN 64 TK 16 SG 2
+exit=3
+```
+
+The `mm_gu_*` kernel family is templated over (format, M, N, K, SG) and this (42 = Q2_0, 16, 64,
+16, 2) instantiation is missing from the Metal library that the test requests. **Status: open.**
+It must be diagnosed before any claim of Q2_0 MoE support on Metal. Every other kernel family
+passes, so this is a narrow gap rather than a broken backend.
+
+### 3.2 No real-model inference is possible on this machine — **hardware limitation**
+
+This is the precise limitation the goal anticipates. The evidence:
+
+* **The Mac engine runs exactly one model family.** `include/strata/core/geometry.hpp` fixes the
+ shape the kernels are *compiled* for — `n_embd 2560`, `n_layers 48`, `n_expert 512`,
+ `n_vocab 248320`, `n_ff 640` — and a model file of another shape is refused at load with the
+ differing metadata key. There is no smaller-model fallback to substitute, and substituting a
+ different engine to get a passing demo is explicitly forbidden by the goal.
+* **The smallest supported pack does not fit.** `metal/setup_mac.py` offers Q2_0 (37.6 GB mapped
+ file) as the floor; `docs/MAC.md` tabulates 37.6–114.8 GB packs plus a 28.8 GB n-gram table,
+ with a 66–84 GB download. This Mac has **~22 GiB free of 228 GiB**. The repack step alone needs
+ the download plus the repacked copy plus 10 GB headroom.
+* **The memory floor is below the tested minimum.** `docs/MAC.md` measures a 32 GB M4 Mac mini
+ streaming experts from SSD as the smallest tested configuration (`arena_budget_test` even has a
+ "16 GB Mac" row). 16 GiB is *untested*, not supported.
+* **A synthetic tiny model is not possible without an engine change** (see the first point), so
+ "real Metal inference on a toy model" is not an available shortcut.
+
+**Consequence:** no real-model, no TTFT/tokens-per-second, and no end-to-end agent-quality
+evidence can be produced here. Everything in §1 is model-independent and is labelled as such.
+The tests that need a real model are prepared in the qualification kit (§5) and must run on a
+machine with ≥64 GB unified memory and ≥200 GB free disk (or a 32 GB M4 with the streaming path).
+
+### 3.3 ~~The packaged app's host does not start yet~~ — **RESOLVED by the Tauri carrier**
+
+Under Electron the packaged bundle started but its host never ran, with no output anywhere. The
+investigation is kept here because the lessons are carrier-independent and cost real time:
+
+1. **A packaged macOS GUI app has no attached stdout.** Adding a boot trace that writes to a file
+ (`STRATA_BOOT_TRACE`) was the prerequisite for every later finding. Before it the app simply
+ hung with no evidence at all. Any future packaging work should make the packaged app
+ self-report first.
+2. **The host cannot be a child process of a packaged Electron bundle, but it can be loaded
+ in-process.** `utilityProcess.fork` would not start the host from `app.asar`; unpacking the host
+ fixed the path but the child still never ran; `spawn(process.execPath, …)` with
+ `ELECTRON_RUN_AS_NODE` reported `ENOTDIR` for the packaged executable. Loading the host in the
+ main process resolved it, and the packaged app then passed its full self-test.
+3. **`ElectronAsarIntegrity` did not match the asar electron-builder produced** (recorded
+ `30dca368…`, actual `b6faa7b9…`). Ruled out as the cause, but worth re-checking whenever a
+ carrier validates its own archive.
+4. **`utilityProcess.fork` must not receive `ELECTRON_RUN_AS_NODE`** (the opposite of a plain
+ `spawn`), because it starts a Node service process that then rejects the shell's own switches.
+
+None of this carries over to Tauri: the shell starts the host as an ordinary child process with an
+explicit Node binary, so there is no archive-internal entry point and no carrier-specific runtime
+mode. The Tauri build is verified in §1.6a.
+
+### 3.4 `ELECTRON_RUN_AS_NODE` (superseded carrier — kept for the record)
+
+With the Electron carrier, a launching shell that exported `ELECTRON_RUN_AS_NODE=1` (easy to
+inherit after running the App Host's Node) turned Electron into plain Node *before* `main.cjs`
+loaded, so `require('electron')` yielded the npm shim and the app died with
+`Cannot read properties of undefined (reading 'requestSingleInstanceLock')`. It could not be undone
+from user code. This no longer applies now that the carrier is Tauri, but the general lesson holds
+for any future child-process work: **do not inherit a runtime-mode variable into a spawned
+runtime.**
+
+### 3.4b ~~The terminal distribution has no bundled runtime~~ — **RESOLVED**
+
+`release/artifacts/strata-terminal-0.1.44.1-darwin-arm64.tar.gz` (42 MB, sha256
+`fafa0076fd30f9fa3d3f1250d8afbf39225bddb80e07a3d818bae2b01e2814d8`, 42480892 bytes) is a **self-contained** terminal distribution: it carries a pinned standalone CPython
+3.12.15 and its runtime dependencies, so a user needs no Python, pip, Node, compiler or checkout.
+
+Built reproducibly by `packaging/package_terminal.py`, which:
+
+* downloads the same pinned interpreter `setup.sh` uses and **refuses to package it if the SHA-256
+ does not match** — one pin, two consumers, so the terminal and the installer cannot drift;
+* installs `requirements.txt` *into* that interpreter;
+* ships the application and only the `tools/` modules the terminal paths import, keeping engine
+ installation and preparation code out of the serving import graph;
+* deliberately excludes the engine (a separate, independently versioned component), model weights,
+ prepared data and the UI;
+* writes a manifest next to the archive with the bundle and interpreter digests.
+
+**Verified as a clean user would experience it**: extracted to an unrelated path, moved *again* to a
+different path, and run with `env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin HOME=/Users/nikoveit`. The only
+Python on that PATH is macOS's own 3.9, which the launcher correctly rejects as below the 3.10 floor
+— so everything below ran on the **bundled** interpreter:
+
+| Command | Result |
+| --- | --- |
+| `./bin/strata --help` | the full command set, including `timeskip` and `tune` |
+| `./bin/strata status --url <dead>` | exit **3**, the documented "control unreachable" code |
+| `./bin/strata timeskip list` | `{"schema_version":1,"ok":true,"runs":[]}` |
+| `./bin/strata tune plan --engine <metal>` | read the real engine's flags and planned the sweep |
+| `./python/bin/python3 -m serve.server --engine mock` | `/health` ok, a chat completion returned, and the bundled CLI showed it LIVE |
+
+That last row is also the R02 evidence asked for: pure serving ran with **no agent runtime, no
+Tuning packages, no Textual and no UI present**. The import graph of `serve/` remains stdlib plus
+relative `serve.*` modules, verified both by inspection and by importing
+`strata_control.management` and `strata_cli.cli` on a bare interpreter.
+
+One defect was found and fixed by this test: the launcher looked for the bundled runtime at
+`/python/bin/python3` while the distribution puts it at `/../python/bin/python3`. That
+failure is *silent* — the launcher simply falls through to whatever Python is on PATH and the bundle
+quietly stops being self-contained — which is exactly why the clean-environment test exists.
+
+**Evidence:** `docs/work/evidence/terminal-dist.txt`.
+
+### 3.5 Not yet done
+
+* **Fix §3.3**, then produce the DMG (`npm run package:mac:unsigned`).
+* App Host ↔ Harness Gateway bridge (the vertical slice's agent half).
+* Time-skip: replace the scripted 28-second flow with a real checkpoint/candidate/check/decision
+ state machine (S01–S05).
+* Tuning: the Strata job contract plus a bounded search adapter, and a HyperCore-Tune evaluation
+ (T01–T08).
+* Acquisition/component/update ownership per M3 (the reuse contract: app-only update transfers
+ zero engine/model bytes).
+* Windows and Linux package preparation (installer and AppImage recipes, dependency locks,
+ Windows named-pipe owner transport — none of which exists upstream yet).
+
+---
+
+## 4. Next actions (ordered)
+
+1. Build the App Host bridge onto the Harness Gateway (`integrations/harness/`), proving:
+ prompt → stream → tool approval/denial → per-run cancel → persisted session → terminal resume
+ without replaying completed tool effects (A01–A08). Use a stub OpenAI-compatible endpoint for
+ the model-independent contract tests; the real-model leg belongs to Phase B.
+2. Give the Host a **server-side tool executor** so `useTools` is real rather than a UI affordance,
+ with the approval policy in the backend (A03/A04), and prove a denial never executes.
+3. Replace Time-skip's scripted flow (S01–S05).
+4. Implement the tuning job contract with a Strata-owned bounded search adapter and evaluate
+ HyperCore-Tune against it (T01–T08).
+5. Windows/Linux packaging recipes and dependency locks.
+6. Signing/notarization and a compiled `.icns` from the supplied brand masters (blocked on owner
+ credentials and font/asset redistribution evidence — D04/D05).
+
+---
+
+## 5. Phase B qualification kit
+
+Written: **[QUALIFICATION-KIT.md](QUALIFICATION-KIT.md)** — prerequisites, exact commands,
+assertions with requirement IDs, the result-record template, and the evidence rules.
+
+**Headline prerequisite** (from §3.2): an Apple Silicon Mac with macOS ≥15 and either ≥64 GiB
+unified memory and ≥200 GiB free disk for a resident pack, or ≥32 GiB accepting the SSD-streaming
+path. This development Mac (16 GiB, ~22 GiB free) is below the tested floor.
+
+---
+
+## 6. Reproducing everything in §1 from scratch
+
+```sh
+ROOT=/Users/nikoveit/Documents/deepseek-harness/strata-work
+cd "$ROOT/strata-rebuild"
+
+# 1. Engine (needs the toolchain venv, llama.cpp at the pin, metal-cpp)
+"$ROOT/toolchain/venv/bin/cmake" -S metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_MAKE_PROGRAM="$ROOT/toolchain/venv/bin/ninja" \
+ -DMETAL_CPP_DIR="$ROOT/toolchain/metal-cpp" \
+ -DSTRATA_GGML_DIR="$ROOT/toolchain/llama.cpp"
+"$ROOT/toolchain/venv/bin/ninja" -C build-metal strata -j 6
+./build-metal/strata --version
+
+# 2. Metal kernel parity (no model needed)
+"$ROOT/toolchain/venv/bin/cmake" -S metal -B build-metal-kern -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM="$ROOT/toolchain/venv/bin/ninja" \
+ -DSTRATA_METAL_ENGINE=OFF
+"$ROOT/toolchain/venv/bin/ninja" -C build-metal-kern -j 8
+for t in gemv_parity mma_parity dense_mm_parity expert_parity gdn_parity gdn_prompt_parity \
+ qsa_parity qsa_prompt_parity prompt_parity gr_parity gr2_parity fuse_parity \
+ pair_parity route_parity sample_parity arena_budget_test coop_layout; do
+ ./build-metal-kern/$t > /dev/null || echo "FAILED: $t"
+done
+
+# 3. Python suites (need the python311 venv with jinja2 regex pyyaml tqdm requests pillow psutil numpy textual rich)
+"$ROOT/python311/bin/python" -m unittest discover -s tests/terminal -t tests/terminal -p 'test_*.py'
+"$ROOT/python311/bin/python" -m unittest discover -s serve -p 'test_*.py'
+```
diff --git a/docs/work/PHASE-A-RETURN-PACKET.md b/docs/work/PHASE-A-RETURN-PACKET.md
new file mode 100644
index 000000000..cd16cea56
--- /dev/null
+++ b/docs/work/PHASE-A-RETURN-PACKET.md
@@ -0,0 +1,84 @@
+# Phase A return packet
+
+**Outcome: Phase A ready for hardware qualification.**
+**The macOS candidate is real-model validation pending, not fully validated.**
+
+## Source revisions actually selected
+
+| Repository | Revision | Role |
+| --- | --- | --- |
+| Strata (integration checkout) | branch `strata/rebuild-2026-10`, HEAD `e0951ce243511597eb243018191f194af9d5f8bc` | the product |
+| Strata (pristine reference) | `296b59d2` (`main`) | unchanged baseline |
+| DeepSeek Harness | `57190202` | agent loop and durable sessions |
+| HyperCore-Tune | `4f9ab7fa` | evaluated for tuning; decision D07 |
+| ggml (llama.cpp) | `3cf03257` | engine host sources |
+| metal-cpp | `4e6c9a1a…` SHA-256 `4df3c078…85a3a4` verified | Metal host bindings |
+
+No upstream drift: every pin above is the revision that was reviewed.
+
+## Artifacts
+
+ DMG apps/desktop/src-tauri/target/release/bundle/dmg/Strata_0.1.0_aarch64.dmg
+ sha256 e18c2f4ca60e0142177dc67789b63469f4365bca46860c284173d55b603766fd
+ hdiutil verify VALID; packaged self-test 8/8 from inside the mounted image
+ Terminal release/artifacts/strata-terminal-0.1.44.1-darwin-arm64.tar.gz
+ bytes 42480892
+ sha256 fafa0076fd30f9fa3d3f1250d8afbf39225bddb80e07a3d818bae2b01e2814d8
+ self-contained: bundled CPython 3.12.15, verified with no usable system Python
+ Engine build-metal/strata
+ sha256 aef25be339b60ad56d34c192847bd59e4351779eed6a1de9166f81836041ee3f
+ built from source on this Mac; Metal kernel parity 17/17 with one known defect
+
+Install and run, migration and recovery, and every evidence path are in
+`docs/work/evidence/artifact.txt` and `docs/work/QUALIFICATION-KIT.md`.
+
+## Acceptance standing
+
+Every one of the 67 requirement rows of the handoff's acceptance checklist has an explicit
+result. `python packaging/acceptance_matrix.py --check` fails if a row is missing.
+
+| Result | Count |
+| --- | --- |
+| passed | 46 |
+| failed | 0 |
+| pending-hardware | ? |
+| pending-release | ? |
+| unsupported | 3 |
+| not-implemented | ? |
+
+**No requirement row is recorded as failed.** Denying a defect by deferring it to another machine is
+the one thing this matrix refuses to do; `failed` means the implementation is wrong and is never
+written as `pending-hardware`.
+
+## Exact limitations
+
+1. **Real-model inference has not run and cannot on this machine.** `include/strata/core/geometry.hpp`
+ fixes the compiled shape (n_embd 2560, 48 layers, 512 experts, vocab 248320), so no small or
+ synthetic model is possible; the smallest pack is 37.6 GB mapped plus a 28.8 GB n-gram table, and
+ `docs/MAC.md` measures 32 GB as the smallest tested Mac against this host's 16 GiB with ~21 GiB
+ free. Everything downstream of inference is exercised against the mock and scripted workers, and
+ every such result is labelled as a harness test rather than a performance result.
+2. **A tuning sweep has never run against a real model.** The measurement harness, job, report,
+ apply and rollback are all exercised, but against a stub engine whose numbers mean nothing.
+3. **The Windows and Linux packages are recipes, not builds.** The NSIS and AppImage targets are
+ configured and validate; neither has been produced. Windows SYCL and Intel-Mac Metal are refused
+ as unsupported combinations rather than attempted.
+4. **The Windows owner transport is not a named pipe with an ACL.** The Python standard library
+ cannot create one, so Windows uses a loopback-only TCP listener with a 256-bit control token. That
+ is weaker than the checklist's stated condition and is recorded as such rather than claimed.
+5. **No signing, notarization, SBOM or font/asset rights evidence.** The artifacts are explicitly
+ labelled unsigned internal development candidates. This blocks public release and does not block
+ this milestone.
+6. **One open engine defect:** `moe_mm_parity` fails with `mtl: no function mm_gu_42_16_64_16_2`.
+7. **Two acceptance rows are not implemented:** the offline bundle format (P09) and connector
+ operation assertions (U09). Both are real gaps, both are outside Phase A's implementation scope,
+ and both are listed rather than hidden.
+
+## What a Phase B run must do
+
+`docs/work/QUALIFICATION-KIT.md` has executable procedures, exact prerequisites and expected
+assertions for every machine-dependent check, covering installation, shared UI/CLI sessions, real
+inference and tools, cancellation and recovery, Time-skip, tuning baseline/search/apply/rollback,
+offline reuse, updates and uninstall retention. Section 10 is the one to read first: it is how to
+tell a real pass from a vacuous one, written because three checks in this build passed for reasons
+unrelated to the feature they named.
diff --git a/docs/work/QUALIFICATION-KIT.md b/docs/work/QUALIFICATION-KIT.md
new file mode 100644
index 000000000..684b9fa19
--- /dev/null
+++ b/docs/work/QUALIFICATION-KIT.md
@@ -0,0 +1,359 @@
+# Strata Phase B qualification kit
+
+**Purpose.** This Mac cannot run a real Strata model (see `IMPLEMENTATION_STATUS.md` §3.2 for the
+exact reason and evidence). Everything that *can* be verified without weights has been verified
+here. This document is the executable procedure for the checks that need a machine with enough
+memory and disk to hold a pack, so that work can continue without this conversation.
+
+Read `IMPLEMENTATION_STATUS.md` first. Requirement IDs below are from the handoff packet's
+acceptance checklist (`P##`, `R##`, `A##`, `S##`, `T##`, `U##`).
+
+---
+
+## 1. Prerequisites on the qualifying machine
+
+| Item | Requirement | Why |
+| --- | --- | --- |
+| Machine | Apple Silicon, **M1 or newer** | Intel Macs are not supported by the Metal engine. |
+| macOS | **≥ 15.0** | The engine keeps buffers resident through `MTLResidencySet`, introduced in macOS 15. |
+| Unified memory | **≥ 64 GiB recommended** for a resident pack; **32 GiB** is the smallest *tested* configuration (experts stream from SSD); **16 GiB is untested** | `docs/MAC.md` measures a 128 GB M5 Max and a 32 GB M4 mini. See the pack table below. |
+| Free disk | **≥ 200 GiB** for a resident pack, **≥ 120 GiB** for a streaming 32 GB Mac | Download 66–84 GB + repacked pack + (on streaming Macs) the experts' copy 34–40 GB + the n-gram table 28.8 GB. |
+| Internal SSD | Required | External-disk streaming is untested and expected to be much slower. |
+| Xcode Command Line Tools | `xcode-select --install` | Needed **once** to build the engine. End users of the packaged app must not need it (that is P01's point). |
+
+Pack sizes (`metal/setup_mac.py`, `docs/MAC.md`):
+
+| Pack | Mapped file | Needs about | Recommended from |
+| --- | --- | --- | --- |
+| `Q2_0` | 37.6 GB | 46 GB | 64 GB |
+| `IQ3_XXS` | 47.0 GB | 55 GB | 74 GB |
+| `IQ3_S` (default where it fits) | 54.8 GB | 63 GB | 96 GB |
+| `UD-Q4_K_XL` (higher quality) | 82.6 GB | 91 GB | 128 GB |
+| `UD-Q5_K_XL`, `UD-Q6_K_XL` | 103.9 / 114.8 GB | streams from SSD | 128 GB, streamed |
+
+**Pick the smallest pack that fits and record which one was used.** Do not silently change packs
+between baseline and candidate measurements.
+
+---
+
+## 2. Environment bootstrap
+
+```sh
+ROOT=/path/to/strata-work
+cd "$ROOT/strata-rebuild"
+
+# Python 3.10+ is required. macOS ships 3.9, so use setup.sh's bundled interpreter or a 3.11+
+# (this checkout was developed against a Homebrew python3.11 venv).
+python3 --version
+
+# Runtime + test dependencies
+"$ROOT/python311/bin/pip" install -r requirements.txt
+"$ROOT/python311/bin/pip" install -r requirements-monitor.txt # optional TUI only
+
+# Build toolchain for the engine (never needed by an end user of the packaged app)
+"$ROOT/python311/bin/pip" install -r requirements-build.txt
+```
+
+Record: `sw_vers`, `uname -m`, `sysctl -n machdep.cpu.brand_string hw.memsize`, `df -h`,
+`python3 --version`, and the output of `git -C . rev-parse HEAD`.
+
+---
+
+## 3. Build the engine and capture its identity
+
+```sh
+cd "$ROOT/strata-rebuild"
+
+# metal-cpp (Apple's headers), pinned by SHA-256 in metal/setup_mac.py
+curl -sSL -o /tmp/metal-cpp.zip https://developer.apple.com/metal/cpp/files/metal-cpp_26.zip
+shasum -a 256 /tmp/metal-cpp.zip # MUST be 4df3c078b9aadcb516212e9cb03004cbc5ce9a3e9c068fa3144d021db585a3a4
+unzip -q /tmp/metal-cpp.zip -d "$ROOT/toolchain/"
+
+# llama.cpp's ggml at the pinned commit
+git -C "$ROOT/toolchain/llama.cpp" checkout 3cf03257f219afbe7334045ff7c6a06ac68c627d
+
+cmake -S metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_MAKE_PROGRAM="$(command -v ninja)" \
+ -DMETAL_CPP_DIR="$ROOT/toolchain/metal-cpp" \
+ -DSTRATA_GGML_DIR="$ROOT/toolchain/llama.cpp"
+ninja -C build-metal strata -j 6
+
+./build-metal/strata --version # expect: strata 0.1.44.1-metal
+shasum -a 256 ./build-metal/strata # RECORD THIS — it is the engine build hash
+```
+
+**Assertion E1:** `strata --version` prints `strata 0.1.44.1-metal`.
+**Assertion E2:** the SHA-256 of `build-metal/strata` is recorded in the result record.
+
+### 3.1 Kernel parity (no model needed — run this first on any new machine)
+
+```sh
+cmake -S metal -B build-metal-kern -G Ninja -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_MAKE_PROGRAM="$(command -v ninja)" -DSTRATA_METAL_ENGINE=OFF
+ninja -C build-metal-kern -j 8
+for t in gemv_parity mma_parity dense_mm_parity expert_parity gdn_parity gdn_prompt_parity \
+ qsa_parity qsa_prompt_parity prompt_parity gr_parity gr2_parity fuse_parity \
+ pair_parity route_parity sample_parity arena_budget_test coop_layout; do
+ ./build-metal-kern/$t > /dev/null || echo "FAILED: $t"
+done
+./build-metal-kern/moe_mm_parity; echo "moe exit=$?"
+```
+
+**Known failure to re-check:** on an M4, `moe_mm_parity` exits 3 with
+`mtl: no function mm_gu_42_16_64_16_2` (the Q2_0 expert matmul tile is not instantiated). Whether
+this also fails on the qualifying GPU is a required observation — record it either way.
+
+### 3.2 Prepare the model
+
+```sh
+./setup.sh --yes --model Q2_0 --no-start # or the smallest pack that fits; see §1
+```
+
+This is the only step that downloads. After it completes, record every produced file's SHA-256
+(they live under the data dir `setup.py` reports, plus `strata-<model>.json`).
+
+**Assertion M1 (offline reuse, P06/P07/P09):** after preparation, re-running
+
+```sh
+./setup.sh --yes --model Q2_0 --no-start
+```
+
+must transfer **zero** model/engine bytes. Prove it by capturing a transfer trace (byte counts
+from the downloader's log) or by running with egress blocked and confirming it still starts.
+
+---
+
+## 4. Real inference
+
+```sh
+python3 -m serve.server --config strata-Q2_0.json --port 8095
+```
+
+**Assertion I1 (R09):** `/health` reports ready **only** after the engine prints
+`READY <ctx>`; `max_context` is 0 until then, so a "ready" that precedes it is a bug.
+**Assertion I2 (R11):** `/v1/models`, `/v1/status`, `/props` answer, and `/v1/status` carries
+`"service": "strata"`, the model id, the context and the three dialects.
+**Assertion I3:** a non-streaming `/v1/chat/completions` returns real text with a `usage` block.
+**Assertion I4:** a streaming one (`"stream": true`) emits SSE chunks and terminates with
+`data: [DONE]`, heartbeats appear as `: keep-alive` comments.
+**Assertion I5 (A02):** force a multi-byte UTF-8 character across a chunk boundary and a
+fragmented tool-call argument; neither may corrupt the assembled output.
+**Assertion I6:** record **engine TTFT**, **prefill tok/s** and **decode tok/s** separately from
+client-observed timings. State the exact prompts and `max_tokens`.
+
+```sh
+Rscript -e '...' # no: use the terminal client instead
+python3 strata.py status --url http://127.0.0.1:8095
+python3 strata.py monitor --url http://127.0.0.1:8095
+```
+
+**Assertion I7 (A07/U03):** the six monitor views render, `q` detaches **without stopping** the
+server or its jobs, and the terminal is restored on exit.
+**Assertion I8 (U05):** stale or missing telemetry renders as `—`/gap, never as `0` or a
+continuing trend line.
+
+---
+
+## 5. Cancellation and recovery
+
+**Assertion C1 (R12):** start two conversations, cancel one. Only the targeted request stops; the
+other completes. Record both.
+**Assertion C2 (R10):** ten cycles of load → generate → cancel → unload. Afterwards: no orphaned
+engine process (`pgrep -f 'strata --serve'`), no orphaned work in `/v1/status`, and memory returns
+to the pre-cycle level.
+**Assertion C3 (R09):** kill the engine process mid-generation. Readiness must go false, the
+affected request must report a typed failure, and unrelated workers must survive.
+**Assertion C4 (P12):** interrupt a download and a preparation step (SIGINT); the previous working
+state must remain usable, and a resumed download must keep only bytes of the same artifact
+identity.
+
+---
+
+## 6. Desktop and Terminal against real inference
+
+```sh
+cd apps/desktop && npm install && npm run build:ui && npm start
+```
+
+**Assertion D1 (A01):** the supplied UI drives a real turn against the local engine, with **no
+DeepSeek account and no cloud fallback**. Verify with `lsof`/Little Snitch that no external
+connection is made during a chat turn.
+**Assertion D2 (R14/U12):** no demo path is reachable. The banner must not read
+`simulated (design iteration)`, and Monitor must not show randomised throughput.
+**Assertion D3 (P01 — the packaging gate):** the *packaged* app
+(`npm run package:dir`, then `npm run smoke:packaged`) must pass all six self-test steps and then
+serve a real generation. **This currently fails on the development Mac** — see
+`IMPLEMENTATION_STATUS.md` §3.3. Fix that first; until it passes, P01 is not met.
+
+---
+
+## 7. Agent integration (Harness)
+
+The App Host must drive the Harness **Gateway** surface, not the SDK (see D03 in
+`IMPLEMENTATION_STATUS.md`, and `…/strata-work/RECON-HARNESS.md` for the file:line evidence).
+
+Launch and connect:
+
+```sh
+dsh web --port 0 --no-open # prints an authenticated URL
+# then: GET /connect?token=<launchToken>&interactions=answer
+# `interactions=answer` is REQUIRED (it defaults to 'none'); without it the peer cannot answer
+# approvals and every ask fails closed as 'unavailable'.
+```
+
+| Assertion | What to prove |
+| --- | --- |
+| A1 (A01/A03) | Prompt → streamed answer, then a controlled read/edit/test tool round trip in a fixture workspace. The tool executes **once**, in Harness — not again in the Strata API. |
+| A2 (A04) | Deny a tool: it must not execute, and the agent must receive an explicit denial it can handle. Also test an unavailable answerer and an expired approval. |
+| A3 (A05) | `session/cancel` returns `{accepted:true}` immediately; the run is only actually stopped when `api-session/status(sessionId, running:false)` arrives or the durable `turn/end {kind:'aborted'}` is committed. **Wait for quiescence before reporting Stopped.** |
+| A4 (A08) | Two sessions run independently; cancelling one must not disturb the other. |
+| A5 (A06/A07) | A session started in Desktop resumes in Terminal with the same history, model and workspace, and **without replaying completed tool effects**. |
+| A6 (A09) | Subagents are real child sessions, bounded by `maxDepth`/`maxActiveSubagents`, cancellable. |
+| A7 (A10) | A bounded goal (`maxGoalRounds`) stops at its limit with `round-limit`; resume re-arms it explicitly. |
+
+---
+
+## 8. Time-skip
+
+Time-skip is **implemented** (`strata_control/time_skip.py`, `strata timeskip`). The state machine,
+the non-regression gate and the apply/restore safety are covered by 24 tests that pass on this Mac.
+What those tests cannot show is whether a *real model* produces a candidate worth keeping, which is
+what this section qualifies.
+
+### 8.1 The command
+
+```sh
+# Declare checks for the workspace first: .strata/checks.json
+cat > .strata/checks.json <<'JSON'
+{"checks": [
+ {"id": "tests", "command": "python -m pytest -q", "timeout_s": 900},
+ {"id": "lint", "command": "ruff check .", "timeout_s": 300},
+ {"id": "readme", "file": "README.md", "sha256": "<expected hex>"}
+]}
+JSON
+
+strata timeskip run --workspace "$PWD" --prompt "make the failing test pass" \
+ --attempts 2 --revise-command "<python> <repo>/integrations/harness/revise_once.py --deadline 300"
+strata timeskip status <run-id>
+strata timeskip apply <run-id> --dry-run
+strata timeskip apply <run-id> # refuses if the workspace changed; exit 6
+strata timeskip apply <run-id> --restore
+```
+
+`--revise-command` is what makes the revision a real agent turn. **Exit 0 from it means an attempt
+was made, not that it succeeded** — the checks decide that. Omit it and the run is inconclusive by
+construction.
+
+### 8.2 Observations to record
+
+| ID | Observation |
+| --- | --- |
+| S01 | The baseline and candidate are real files on disk with recorded digests, and the retained checkpoint is identified by hash, not by the word "updated". |
+| S02 | Run it against a workspace with a genuinely failing check: the candidate that fixes it is **kept**, and `decision.outcome` is `accepted`. |
+| S03 | Break a previously passing check in the candidate: it is **rejected**, `decision.regressions` names it, and the workspace still holds the original. |
+| S04 | Run with a check whose command does not exist: `outcome` is `unknown`, `decision.outcome` is `inconclusive`, and `needs_user_review` is true. It must **not** read as a pass. |
+| S05 | Run twice with an unchanged workspace: the second run must not report an improvement. |
+| S06 | `strata timeskip apply <id> --dry-run` writes nothing; the real apply keeps a rollback copy; a subsequent apply after you edit a file yourself exits **6** and leaves your edit alone. |
+| S07 | Send SIGINT during the `generating` phase: the run ends `cancelled`, the baseline stays selected, and the workspace is unchanged. |
+| S08 | Kill the Harness mid-attempt: the run ends `failed`, the baseline stays selected, and the reason is recorded. |
+| S09 | Compare cost honestly: report the baseline's and the revision's token or time cost and the total wall-clock latency. **Do not infer a speed or quality gain from the name "Time-skip."** |
+
+**Fixture results do not qualify a model.** Every S-row above must be run with the real local model
+selected, and the run id, digests and raw `run.json` retained as evidence.
+
+## 9. Engine tuning
+
+The job contract is implemented (`strata_control/tuning.py`, `strata tune`), with 31 tests covering
+the selection rule, failure recording, the exclusive lease and the exported-configuration retest.
+**The measurement harness is not written**, so no sweep has run against a real model — on this Mac
+there is no runnable workload, and inventing one would defeat the point. This section is what to do
+on a machine that has one.
+
+### 9.1 See what a sweep would search, and why not
+
+Always start here. The plan is the review surface, and it is safe to run anywhere:
+
+```sh
+strata tune plan --engine /path/to/strata --backend metal \
+ --model qwen3.8-flash-next --objective generation --trials 16 --repeats 3
+```
+
+It reads the engine's own `--help` to decide which dimensions are real. **Assertion T00:** every
+dimension in `searches:` names a flag the binary accepts, and every entry in `excluded:` gives a
+reason. A dimension silently missing is a defect. For reference, on the Metal engine built here the
+answer is `ple_io`, `kv`, `kv_grow`, `spec_min_p` searched, and seven dimensions excluded with
+reasons (`vram_reserve`, `pcie_frac`, `expert_cache` are not Apple Silicon concepts; `host_core`,
+`pool_affinity`, `pool_workers` parse but their kernels are unported, per
+`metal/src/engine/stubs.cpp`; `prompt_cache_tail` is CUDA/HIP-only).
+
+### 9.2 Wire the measurement harness
+
+One callable, `measure(candidate) -> dict`, must boot the engine with `candidate.args`, run the
+declared workload, and return at least `tokens_per_s`, optionally `ttft_ms`,
+`prefill_tokens_per_s`, `decode_tokens_per_s`, `memory_mib`, `power_w`, and `correct`. Raising means
+the candidate could not be measured; the message becomes its recorded status. `correct` must come
+from a **task check**, not from a comparison against the baseline's text.
+
+### 9.3 Observations to record
+
+| ID | Observation |
+| --- | --- |
+| T01 | The tuner is optional: with it removed, serving and manual settings still work. |
+| T02 | Every candidate's argv contains only flags the engine accepts; the sweep never mutates the active profile (`strata-<model>.json` is byte-identical before and after). |
+| T03 | Trigger a boot failure, an OOM, a timeout and a cancellation. All four are retained in the report with their status; only the sweep's own devices are affected. |
+| T04 | At least three paired repeats per candidate plus a baseline rerun. The report's `drift` section shows the baseline's two medians. Include the decode, a prompt-heavy and a multi-turn/tool workload. |
+| T05 | Take a winner whose advantage came from `prompt_cache_tail`; confirm it is **not** in the exported args and that the exported configuration is re-measured before the recommendation stands. |
+| T06 | Change the model file or the driver and confirm the previous history is not reused as if comparable. |
+| T07 | Applying is separate: it revalidates the report and profile digests, snapshots, reloads, verifies, and rolls back on failure. Cancel before apply leaves the saved config unchanged. |
+| T08 | Repeat the whole qualification per advertised backend. **Stub-engine or fixture results are labelled as such and never count as a backend qualification.** |
+
+### 9.4 The HyperCore-Tune position, for whoever qualifies CUDA
+
+HyperCore-Tune is not the optimizer; it was evaluated at pin `4f9ab7fa` and is documented in
+`IMPLEMENTATION_STATUS.md` §1.12 as a *candidate* adapter behind the Strata job. If you qualify it on
+CUDA, it supplies the search and the per-candidate boot; the Strata job still owns the lease, the
+evidence, the dimension validation and the exported retest. Two things to check first: its
+`strata_env.py` locates Strata by walking up from its own directory (pass `--strata-root` instead),
+and it writes `max_run_<model>.{json,sh,bat}` next to that root — make sure that is not your active
+profile.
+
+## 10. Reading a result: would this pass if the feature did nothing?
+
+This section exists because of a specific class of mistake made repeatedly during Phase A, and it is
+written as an instruction rather than an anecdote because a Phase B run will meet it again.
+
+**Three separate checks in this build passed for reasons unrelated to the feature they named.** Each
+printed plausible output and asserted something that was *also* true when the feature was absent:
+
+* the tuning sweep reported "trials 4 of 4" out of 96 combinations, so "no candidate beat the
+ baseline" read as a conclusion when it was an artefact of stopping early;
+* the cancellation check passed while the scripted turn finished in milliseconds, so Stop arrived
+ after the turn had already ended;
+* the approval-denial check passed while the tool failed for an unrelated reason — a malformed
+ scripted call — and the launch-URL parameter it relied on turned out to be decorative.
+
+All three were green. None of them exercised what they claimed to.
+
+**So, for every check in this kit, answer one question before recording a pass:**
+
+> Would this assertion also hold if the feature did nothing at all?
+
+If the answer is yes, the check is not evidence. The usual causes, in the order they were met here:
+
+1. **An assertion about an absence.** "The tool did not run", "no file was created", "no candidate
+ won" are all satisfied by a run that never got that far. Pair every absence with a positive
+ control: the same setup where the feature *does* act, asserting that it acted (A03 beside A04).
+2. **A window that is too short to be tested.** A cancellation test against a turn that finishes in
+ milliseconds proves nothing. Make the window real — a token delay, a held lock — and *assert that
+ the window was open* before acting, not merely that the action succeeded.
+3. **A parameter that is inert.** Read where a flag is actually parsed before relying on it. The
+ launch-URL `interactions` parameter was read only on `/connect`, so on `GET /?token=` it did
+ nothing; the check passed for a reason that had nothing to do with the code under test.
+4. **A count that does not say what it counted.** "4 of 4" without the size of the space is not a
+ completion claim. Report the denominator and whether the sample was the whole space or a prefix.
+
+**And for the harness around a check, not just the check:** three of the defects found in Phase A were
+in the *test* rather than the product — a stale worker answering on the port a profile hardcoded, a
+client that followed a redirect and discarded the credential carried on it, and a client that posted
+a request without the envelope the gateway requires. Each produced a run that looked normal. When a
+result is surprising, suspect the harness first: it is the part that has not been exercised before.
diff --git a/docs/work/evidence/VERIFICATION-MATRIX.txt b/docs/work/evidence/VERIFICATION-MATRIX.txt
new file mode 100644
index 000000000..f2c2b3131
--- /dev/null
+++ b/docs/work/evidence/VERIFICATION-MATRIX.txt
@@ -0,0 +1,31 @@
+# Phase A verification matrix -- 2026-10-15T05:19:20Z
+# repo: 0a8bf4c235dfe4b5ad88ed7cd02a8cb82cf87976 branch: strata/rebuild-2026-10
+# host: Apple M4, 16 GiB unified memory, macOS 26.5.2, ~21 GiB free
+
+CHECK RESULT EVIDENCE
+----------------------------------------------------------------------------------------------
+Engine build (Metal, from source) PASS engine-build.txt
+Metal kernel parity (real GPU) 17/17 + 1 known metal-parity.md
+ moe_mm_parity (real defect, open) FAIL metal-parity/moe_mm_parity.log
+Serve suite 801 PASS (11 skip) serve-suite.txt
+Terminal suite (incl. 15 transport) 237 PASS owner-transport-suite.txt
+Time-skip suite 24 PASS timeskip-suite.txt
+Tuning suite (job/measure/sweep) 63 PASS tuning-suite.txt
+UI build + typecheck PASS -
+UI suite (incl. 7 route tests) 194/195 (1 pre-existing flake) STATUS 1.14
+Tauri .app; packaged self-test 8/8 PASS tauri-selftest.json
+DMG verify + self-test inside DMG 8/8 PASS tauri-artifact.txt
+Terminal distribution self-contained PASS in a clean env terminal-dist.txt
+ serving from the bundled runtime PASS (no agent/TUI) terminal-dist.txt
+Agent bridge: turn completes locally PASS bridge-e2e.txt
+Agent bridge: cancellation INCONCLUSIVE (mock) STATUS 1.8
+Agent bridge: approval/denial NOT EXERCISED STATUS 1.8
+Time-skip: Harness-driven revision PASS (rejected a no-op) timeskip-harness.txt
+Time-skip over the client API PASS (409 on user edit) timeskip-http.txt
+Tuning: plan API + UI surface PASS tuning-http.txt
+Tuning: measurement harness PASS vs a stub engine tuning-suite.txt
+Tuning: sweep end to end PASS (found --kv int8) tuning-sweep.txt
+Tuning: sweep vs a real model NOT RUN (no pack fits) STATUS 1.16
+Windows owner transport PASS (branch ran on macOS) owner-transport-suite.txt
+Windows/Linux package recipes PRESENT, NOT BUILT packaging/README.md
+Real-model inference NOT RUN (hardware) STATUS 3.2
diff --git a/docs/work/evidence/artifact.txt b/docs/work/evidence/artifact.txt
new file mode 100644
index 000000000..43a92ddbd
--- /dev/null
+++ b/docs/work/evidence/artifact.txt
@@ -0,0 +1,29 @@
+Artifact record -- Phase A internal development candidate (UNSIGNED)
+repo revision: 6c757783ea17c7dfa460a389a83e9fe081d1ba88 branch: strata/rebuild-2026-10
+
+Desktop (Tauri 2, macOS arm64)
+ DMG /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/dmg/Strata_0.1.0_aarch64.dmg
+ sha256 e18c2f4ca60e0142177dc67789b63469f4365bca46860c284173d55b603766fd
+ hdiutil verify: checksum VALID; packaged self-test 8/8 from inside the mounted image
+ APP /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/macos/Strata.app (129 MiB)
+ bundled private runtime: Node v24.12.0
+ Install: hdiutil attach <dmg>; cp -R "/Volumes/Strata 0.1.0/Strata.app" /Applications/
+ Run: open -a /Applications/Strata.app
+ Self-test: /Applications/Strata.app/Contents/MacOS/strata-desktop --self-test=/tmp/report.json
+
+Terminal (self-contained, macOS arm64)
+ /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/release/artifacts/strata-terminal-0.1.44.1-darwin-arm64.tar.gz
+ bytes 42480892
+ sha256 fafa0076fd30f9fa3d3f1250d8afbf39225bddb80e07a3d818bae2b01e2814d8
+ bundled private runtime: CPython 3.12.15 (python-build-standalone, digest-verified pin)
+ Install: tar xzf <file> -C <dir>
+ Run: <dir>/strata-terminal-0.1.44.1-darwin-arm64/bin/strata --help
+ Verified with `env -i PATH=/usr/bin:/bin` (no usable system Python): --help, status,
+ timeskip list, tune plan/run, components backends and serve all run on the bundled interpreter.
+
+Engine (built from source on this Mac; a separate, independently versioned component)
+ /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/build-metal/strata
+ sha256 aef25be339b60ad56d34c192847bd59e4351779eed6a1de9166f81836041ee3f
+
+Not included, deliberately: model weights and prepared data (no supported pack fits this Mac),
+signing or notarization (no credentials), and any Windows or Linux package (those need their hosts).
diff --git a/docs/work/evidence/bridge-e2e.txt b/docs/work/evidence/bridge-e2e.txt
new file mode 100644
index 000000000..959dad6c1
--- /dev/null
+++ b/docs/work/evidence/bridge-e2e.txt
@@ -0,0 +1,21 @@
+strata agent bridge — end to end
+ profile : /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/integrations/harness/profile/cordis.patch.yml
+ dsh : /Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh
+ temp : /var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/strata-bridge-e2e-jbt_ts2f
+
+[1/5] Strata API worker
+ ready: model=qwen3.8-flash-next context=32768
+[2/5] DeepSeek Harness with the Strata profile
+ ready on 127.0.0.1:50100
+[3/5] Operator session with approval answering enabled
+ authenticated as owner with interactions=answer
+[4/5] Session, then one agent turn
+ session session-2cf26b19-15bc-4c20-ac60-90696082617b
+ prompt accepted
+[5/5] Waiting for the turn to reach a terminal state
+
+PASS
+ turn : completed
+ provider/model : strata-local / qwen3.8-flash-next
+ worker requests : 2
+ turn statements : turn/start, turn/end
diff --git a/docs/work/evidence/desktop-smoke-packaged.txt b/docs/work/evidence/desktop-smoke-packaged.txt
new file mode 100644
index 000000000..770b3f2f2
--- /dev/null
+++ b/docs/work/evidence/desktop-smoke-packaged.txt
@@ -0,0 +1,14 @@
+ "windowOpen": true
+}
+
+ PASS host-spawned
+ PASS host-healthy
+ PASS renderer-loaded
+ PASS ui-rendered
+ PASS renderer-can-reach-api
+ PASS preload-bridge-present
+
+ app 0.1.0 · electron 44.7.0 · packaged=true
+ platform darwin/arm64
+
+RESULT: PASS
diff --git a/docs/work/evidence/desktop-smoke-unpackaged.txt b/docs/work/evidence/desktop-smoke-unpackaged.txt
new file mode 100644
index 000000000..4ab92ed31
--- /dev/null
+++ b/docs/work/evidence/desktop-smoke-unpackaged.txt
@@ -0,0 +1,14 @@
+ "windowOpen": true
+}
+
+ PASS host-spawned
+ PASS host-healthy
+ PASS renderer-loaded
+ PASS ui-rendered
+ PASS renderer-can-reach-api
+ PASS preload-bridge-present
+
+ app 0.1.0 · electron 44.7.0 · packaged=false
+ platform darwin/arm64
+
+RESULT: PASS
diff --git a/docs/work/evidence/engine-build.txt b/docs/work/evidence/engine-build.txt
new file mode 100644
index 000000000..cbbe4404f
--- /dev/null
+++ b/docs/work/evidence/engine-build.txt
@@ -0,0 +1,6 @@
+# Engine build — Apple Silicon Metal, from the pinned sources
+# repo: 04cedad9d4f0a78492596b1a180626781dbbdad7
+strata 0.1.44.1-metal
+/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/build-metal/strata: Mach-O 64-bit executable arm64
+ggml: 0.24.0 @ 3cf03257f (matches metal/CMakeLists.txt and setup.py's pin)
+metal-cpp: metal-cpp_26.zip sha256 4df3c078b9aadcb516212e9cb03004cbc5ce9a3e9c068fa3144d021db585a3a4 (matches metal/setup_mac.py)
diff --git a/docs/work/evidence/metal-parity.md b/docs/work/evidence/metal-parity.md
new file mode 100644
index 000000000..d0d0bab3f
--- /dev/null
+++ b/docs/work/evidence/metal-parity.md
@@ -0,0 +1,40 @@
+# Metal kernel parity suite — Apple M4, real Metal device
+# repo: 04cedad9d4f0a78492596b1a180626781dbbdad7
+# device: Apple M4 apple9 metal4, recommended working set 11.8 GiB, measured read BW up to 96.1 GB/s
+# command: cmake -S metal -B build-metal-kern -DSTRATA_METAL_ENGINE=OFF && ninja -C build-metal-kern && ./build-metal-kern/<suite>
+
+gemv_parity PASS ( parity lines)
+100 PASS ( parity lines)
+mma_parity PASS ( parity lines)
+91 PASS ( parity lines)
+dense_mm_parity PASS ( parity lines)
+67 PASS ( parity lines)
+gdn_prompt_parity PASS ( parity lines)
+29 PASS ( parity lines)
+pair_parity PASS ( parity lines)
+26 PASS ( parity lines)
+fuse_parity PASS ( parity lines)
+17 PASS ( parity lines)
+gr2_parity PASS ( parity lines)
+13 PASS ( parity lines)
+gr_parity PASS ( parity lines)
+7 PASS ( parity lines)
+qsa_prompt_parity PASS ( parity lines)
+6 PASS ( parity lines)
+gdn_parity PASS ( parity lines)
+5 PASS ( parity lines)
+qsa_parity PASS ( parity lines)
+5 PASS ( parity lines)
+prompt_parity PASS ( parity lines)
+5 PASS ( parity lines)
+expert_parity PASS ( parity lines)
+1 PASS ( parity lines)
+route_parity PASS ( parity lines)
+1 PASS ( parity lines)
+sample_parity PASS ( parity lines)
+1 PASS ( parity lines)
+moe_mm_parity FAIL: 'no function mm_gu_42_16_64_16_2' (exit 3) -- Q2_0 expert matmul tile not instantiated
+arena_budget_test PASS (25 ok, includes a 16 GB Mac row)
+coop_layout PASS
+
+SUMMARY: 27 of 28 suites pass on real Metal hardware.
diff --git a/docs/work/evidence/offline.txt b/docs/work/evidence/offline.txt
new file mode 100644
index 000000000..1bce3f8d7
--- /dev/null
+++ b/docs/work/evidence/offline.txt
@@ -0,0 +1,21 @@
+# Strict offline, verified against a real child process (checklist U08)
+# repo: f48650a020394c59b640dc2cdd5b3ff9f42b93b9
+
+# The claim: under --offline, nothing in the process tree reaches the network. The test spawns an
+# actual Python child with the environment child_env() builds and asks the child what it sees.
+
+ offline=False:
+ HF_HUB_OFFLINE None
+ TRANSFORMERS_OFFLINE None
+ PIP_NO_INDEX None
+ NO_PROXY None
+ STRATA_OFFLINE None
+ offline=True:
+ HF_HUB_OFFLINE '1'
+ TRANSFORMERS_OFFLINE '1'
+ PIP_NO_INDEX '1'
+ NO_PROXY '*'
+ STRATA_OFFLINE '1'
+
+ A profile cannot remove the policy by naming the same variable:
+ profile asked HF_HUB_OFFLINE=0 -> '1' (the policy is applied last)
diff --git a/docs/work/evidence/owner-transport-suite.txt b/docs/work/evidence/owner-transport-suite.txt
new file mode 100644
index 000000000..f19951d6a
--- /dev/null
+++ b/docs/work/evidence/owner-transport-suite.txt
@@ -0,0 +1,5 @@
+...............
+----------------------------------------------------------------------
+Ran 15 tests in 0.718s
+
+OK
diff --git a/docs/work/evidence/serve-suite.txt b/docs/work/evidence/serve-suite.txt
new file mode 100644
index 000000000..28db9afdb
--- /dev/null
+++ b/docs/work/evidence/serve-suite.txt
@@ -0,0 +1,1255 @@
+.....[strata] done: 12 tokens in 0 s (120989.5 tok/s) (stop, cancel=False)
+..[strata] other apps now use the Chat settings: temperature=0.5
+.[strata] done: 12 tokens in 0 s (294337.1 tok/s) (stop, cancel=False)
+.....[strata] done: 12 tokens in 0 s (314572.8 tok/s) (stop, cancel=False)
+.[strata] other apps now use the Chat settings: temperature=0.5
+[strata] other apps now use the Chat settings: temperature=0.5
+[strata] other apps now use the Chat settings: temperature=0.5
+..[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) + max tokens (16) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 0 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] 400 invalid request: request exceeds the context window: prompt (1024 tokens) + max tokens (131072) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 130040 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) + max tokens (16) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 0 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] 400 invalid request: request exceeds the context window: prompt (1024 tokens) + max tokens (131072) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 130040 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) + max tokens (16) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 0 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] 400 invalid request: request exceeds the context window: prompt (1024 tokens) + max tokens (131072) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 130040 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] 400 invalid request: request exceeds the context window: prompt (150722 tokens) + max tokens (16) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 0 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] 400 invalid request: request exceeds the context window: prompt (1024 tokens) + max tokens (131072) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 130040 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+.[strata] done: 1 tokens in 0 s (76260.1 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] 400 invalid request: request exceeds the context window: prompt (131064 tokens) + max tokens (1) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 0 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] done: 1 tokens in 0 s (82241.3 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] 400 invalid request: request exceeds the context window: prompt (131064 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] done: 1 tokens in 0 s (79137.8 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] 400 invalid request: request exceeds the context window: prompt (131064 tokens) + max tokens (1) exceeds the context (131072); requests are never truncated. Send a smaller max_tokens (at most 0 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] done: 1 tokens in 0 s (72315.6 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] 400 invalid request: request exceeds the context window: prompt (131064 tokens) leaves no room to answer in the context (131072); requests are never truncated
+[strata] done: 1 tokens in 0 s (41527.8 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 1 tokens in 0 s (49932.2 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+....sssss....[strata] 400 invalid request: unknown reasoning effort 'huge': use none, low, medium or high
+.[strata] done: 24 tokens in 0 s (288433.5 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (333322.2 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (311651.1 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (311651.1 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (320583.7 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (343560.7 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (333322.2 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (333322.2 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (348315.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (304118.7 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (347114.8 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (353204.5 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (347114.8 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (242562.2 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (351969.6 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (348315.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (267011.4 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (351969.6 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (343560.7 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (261463.1 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (299593.1 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (315558.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (264208.1 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (358232.4 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (324720.3 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (319566.0 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (315558.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (347114.8 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (354448.2 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (354448.2 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (353204.5 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (353204.5 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (348315.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (299593.1 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (363405.4 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (356962.0 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (363405.4 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (354448.2 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (363405.4 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (353204.5 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (319566.0 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (319566.0 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (311651.1 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (272800.3 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (257450.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (278845.7 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (275789.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (275789.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (276547.5 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (351969.6 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (343560.7 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (276547.5 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (316551.2 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (311651.1 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (276547.5 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (358232.4 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (358232.4 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (319566.0 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (358232.4 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (332222.1 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (338933.7 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (275789.9 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (315558.9 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (109061.0 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (127745.3 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (157041.0 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (142179.8 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (304118.7 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (307838.8 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (315558.9 tok/s) (stop, cancel=False)
+.................[strata] the engine stopped unexpectedly (exit code -15). Unrecoverable native verification failure: verify: timed out at layer 18; its GPU waits were released and the GPU finished (#267) The next request starts the engine again.
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -15); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 1 tokens in 0 s (19599.6 tok/s) (length, cancel=False)
+...[strata] the engine stopped unexpectedly (exit code -15). Unrecoverable native verification failure: verify: timed out at layer 18; its GPU waits were released and the GPU finished (#267) The next request starts the engine again.
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -15); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 1 tokens in 0 s (25731.9 tok/s) (length, cancel=False)
+................................[strata] image: 512x768, n=2, 8 steps, seed 11
+/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/serve/server.py:6159: ResourceWarning: unclosed file <_io.TextIOWrapper name=9 encoding='UTF-8'>
+ images, figures = gen.run(job, cancel)
+ResourceWarning: Enable tracemalloc to get the object allocation traceback
+[strata] image done in 0.2 s (keep)
+.[strata] 400 invalid request: size 999x999: each side a multiple of 32 from 256 to 2048
+[strata] image: 1024x1024, n=1, 8 steps, seed 1110634191
+[strata] image job failed: sd-cli exited with code 1
+[INFO ] loading tensors completed, taking 0.10s
+[ERROR] ggml_vulkan: ErrorDeviceLost
+/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/serve/server.py:6163: ResourceWarning: unclosed file <_io.TextIOWrapper name=9 encoding='UTF-8'>
+ return
+ResourceWarning: Enable tracemalloc to get the object allocation traceback
+.[strata] image: 1024x1024, n=1, 8 steps, seed 468962749
+[strata] image done in 1.7 s (keep)
+[strata] done: 8 tokens in 0 s (38304.1 tok/s) (length, cancel=False)
+...[strata] image: 1024x1024, n=1, 8 steps, seed 0
+[strata] image done in 0.2 s (keep)
+[strata] image: 1024x1024, n=1, 8 steps, seed 1
+[strata] image done in 0.2 s (keep)
+[strata] image: 1024x1024, n=1, 8 steps, seed 2
+[strata] image done in 0.2 s (keep)
+[strata] image: 1024x1024, n=1, 8 steps, seed 3
+[strata] image done in 0.2 s (keep)
+.[strata] image job: the conversation (123 tokens) saved; unloading the model
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] the conversation from before the image job is back (123 tokens)
+...[strata] image job: the engine's expert cache gave VRAM back (9000 MiB free)
+.[strata] image job: the conversation (123 tokens) saved; unloading the model
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] the conversation from before the image job is back (123 tokens)
+.........[strata] done: 3 tokens in 0 s (110376.4 tok/s) (stop, cancel=False)
+[strata] done: 1 tokens in 0 s (59074.7 tok/s) (disconnect, cancel=False)
+.[strata] loading the model again (it was unloaded) ...
+.[strata] model unloaded; the next request loads it again
+.....[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 7 tokens in 0 s (131072.0 tok/s) (stop, cancel=False)
+[strata] done: 7 tokens in 0 s (143220.1 tok/s) (stop, cancel=False)
+[strata] model unloaded; the next request loads it again
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 7 tokens in 0 s (40496.7 tok/s) (stop, cancel=False)
+.[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+....[strata] 400 invalid request: logit_bias: expected an object or a list of [token_id, bias] pairs
+[strata] 400 invalid request: logit_bias: this engine does not support token biases; use a supporting CUDA/HIP build
+[strata] 400 invalid request: logit_bias: biases must be finite numbers between -100 and 100; false is a pair-list ban
+...[strata] MCP server 'missing' did not start: could not start 'strata-no-such-program': [Errno 2] No such file or directory: 'strata-no-such-program'. Its tools are left out; the chat works without them.
+[strata] MCP server 'paged': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+...[strata] MCP server 'solo': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'solo' had stopped; starting it again
+[strata] MCP server 'solo': 6 tools (echo, fail, sleep, big, die, add)
+........[strata] MCP server 'down' did not start: could not reach http://127.0.0.1:9/mcp: <urlopen error [Errno 61] Connection refused>. Its tools are left out; the chat works without them.
+[strata] MCP server 'web': 6 tools (echo, fail, sleep, big, die, add)
+..[strata] done: 13 tokens in 0 s (152733.8 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 83 tokens in 0 s (127100.1 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 120 tokens in 0 s (142865.9 tok/s) (stop, cancel=False)
+[strata] tool fake__echo: ok, 5 characters in 0.0 s
+[strata] done: 120 tokens in 0 s (141819.2 tok/s) (stop, cancel=False)
+[strata] tool fake__echo: ok, 5 characters in 0.0 s
+[strata] done: 120 tokens in 0 s (149975.1 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 141 tokens in 0 s (156165.0 tok/s) (stop, cancel=False)
+[strata] tool fake__add: ok, 1 characters in 0.0 s
+[strata] done: 13 tokens in 0 s (275383.6 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] refused an API request from the web page 'http://evil.example' (no API key; add its host to "allowed_hosts" or its origin to "cors_origins" in the config)
+[strata] done: 13 tokens in 0 s (200463.1 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 109 tokens in 0 s (140239.0 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 116 tokens in 0 s (135564.0 tok/s) (stop, cancel=False)
+[strata] done: 16 tokens in 0 s (192841.6 tok/s) (stop, cancel=False)
+[strata] done: 16 tokens in 0 s (202745.8 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 120 tokens in 0 s (132731.1 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 134 tokens in 0 s (130980.4 tok/s) (stop, cancel=False)
+[strata] tool fake__echo: ok, 19 characters in 0.0 s
+[strata] done: 31 tokens in 0 s (144150.1 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 84 tokens in 0 s (150179.7 tok/s) (stop, cancel=False)
+[strata] tool fake__fail: error, 27 characters in 0.0 s
+[strata] done: 21 tokens in 0 s (169385.4 tok/s) (stop, cancel=False)
+.[strata] MCP server 'fake': 6 tools (echo, fail, sleep, big, die, add)
+[strata] MCP server 'broken' did not start: the server stopped (exit code 2): cannot start: missing configuration. Its tools are left out; the chat works without them.
+[strata] done: 115 tokens in 0 s (144285.1 tok/s) (stop, cancel=False)
+[strata] tool fake__big: ok, 3,000 characters in 0.0 s (truncated for the model)
+[strata] done: 16 tokens in 0 s (205225.9 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (195462.7 tok/s) (stop, cancel=False)
+....[strata] 400 invalid request: request exceeds the context window: prompt (183 tokens) + max tokens (20000) exceeds the context (16384); requests are never truncated. Send a smaller max_tokens (at most 16193 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] done: 50 tokens in 0 s (130908.4 tok/s) (stop, cancel=False)
+.[strata] done: 50 tokens in 0 s (134003.3 tok/s) (stop, cancel=False)
+[strata] done: 50 tokens in 0 s (68512.0 tok/s) (stop, cancel=False)
+[strata] done: 50 tokens in 0 s (144134.2 tok/s) (stop, cancel=False)
+[strata] done: 50 tokens in 0 s (74738.1 tok/s) (stop, cancel=False)
+..[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 50 tokens in 0 s (84596.7 tok/s) (stop, cancel=False)
+[strata] done: 50 tokens in 0 s (93832.3 tok/s) (stop, cancel=False)
+.[strata] done: 7 tokens in 0 s (152125.0 tok/s) (stop, cancel=False)
+..[strata] "parallel" must be a whole number of requests (2..8), not '4': ignored
+[strata] "parallel" must be a whole number of requests (2..8), not True: ignored
+[strata] "parallel": 12 - the engine runs at most 8 requests together; it will use 8
+.[strata] done: 8 tokens in 0 s (29.6 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (31.4 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 1 s (29.7 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 1 s (29.7 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 1 s (29.3 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 1 s (28.7 tok/s) (length, cancel=False)
+[strata] answering: 3 of max 8 tokens, 22.3 tok/s, 1 s
+[strata] answering: 3 of max 8 tokens, 33.7 tok/s, 1 s
+[strata] done: 8 tokens in 1 s (28.2 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 1 s so far
+[strata] done: 8 tokens in 1 s (28.2 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 1 s so far
+[strata] done: 8 tokens in 1 s (29.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 1 s so far
+[strata] done: 8 tokens in 1 s (29.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 2 s so far
+[strata] done: 8 tokens in 2 s (29.2 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 2 s so far
+[strata] done: 8 tokens in 2 s (29.3 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 2 s so far
+[strata] done: 8 tokens in 2 s (30.1 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 2 s so far
+[strata] done: 8 tokens in 2 s (29.9 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 45 tokens, 2 s so far
+[strata] done: 8 tokens in 2 s (28.9 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 2 s so far
+[strata] done: 8 tokens in 2 s (29.8 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 2 s so far
+[strata] done: 8 tokens in 3 s (31.4 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 3 s so far
+[strata] done: 8 tokens in 3 s (31.3 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 3 s so far
+[strata] done: 8 tokens in 3 s (29.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 3 s so far
+[strata] done: 8 tokens in 3 s (29.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 45 tokens, 3 s so far
+[strata] done: 8 tokens in 3 s (31.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 3 s so far
+[strata] done: 8 tokens in 3 s (30.7 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 3 s so far
+[strata] done: 8 tokens in 3 s (28.1 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 3 s so far
+[strata] done: 8 tokens in 3 s (28.1 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 3 s so far
+[strata] done: 8 tokens in 4 s (29.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 4 s so far
+[strata] done: 8 tokens in 4 s (29.1 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 4 s so far
+[strata] done: 8 tokens in 4 s (29.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 4 s so far
+[strata] done: 8 tokens in 4 s (29.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 4 s so far
+[strata] done: 8 tokens in 4 s (28.9 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 4 s so far
+[strata] done: 8 tokens in 4 s (29.4 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 4 s so far
+[strata] done: 8 tokens in 5 s (30.4 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 5 s so far
+[strata] done: 8 tokens in 5 s (30.4 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 5 s so far
+[strata] done: 8 tokens in 5 s (29.3 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 5 s so far
+[strata] done: 8 tokens in 5 s (29.2 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 45 tokens, 5 s so far
+[strata] done: 8 tokens in 5 s (30.1 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 5 s so far
+[strata] done: 8 tokens in 5 s (30.1 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 5 s so far
+[strata] done: 8 tokens in 5 s (29.0 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 5 s so far
+[strata] done: 8 tokens in 5 s (29.7 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 5 s so far
+[strata] done: 8 tokens in 6 s (31.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 45 tokens, 6 s so far
+[strata] done: 8 tokens in 6 s (31.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 6 s so far
+[strata] done: 8 tokens in 6 s (29.8 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 6 s so far
+[strata] done: 8 tokens in 6 s (28.9 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 6 s so far
+[strata] done: 8 tokens in 6 s (28.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 6 s so far
+[strata] done: 8 tokens in 6 s (28.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 45 tokens, 6 s so far
+[strata] done: 8 tokens in 7 s (31.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 7 s so far
+[strata] done: 8 tokens in 7 s (31.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 7 s so far
+[strata] done: 8 tokens in 7 s (28.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 7 s so far
+[strata] done: 8 tokens in 7 s (28.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 7 s so far
+[strata] done: 8 tokens in 7 s (29.7 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 45 tokens, 7 s so far
+[strata] done: 8 tokens in 7 s (29.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 7 s so far
+[strata] done: 8 tokens in 7 s (29.0 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 7 s so far
+[strata] done: 8 tokens in 7 s (29.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 45 tokens, 7 s so far
+[strata] done: 8 tokens in 8 s (29.6 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 8 s so far
+[strata] done: 8 tokens in 8 s (30.0 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 8 s so far
+[strata] done: 8 tokens in 8 s (30.3 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 8 s so far
+[strata] done: 8 tokens in 8 s (29.5 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 8 s so far
+[strata] done: 8 tokens in 8 s (29.3 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 8 s so far
+[strata] done: 8 tokens in 8 s (29.2 tok/s) (length, cancel=False)
+[strata] reading the prompt: 32 of 46 tokens, 8 s so far
+[strata] done: 8 tokens in 9 s (29.0 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 9 s (35.0 tok/s) (length, cancel=False)
+.[strata] done: 10 tokens in 1 s (39.0 tok/s) (stop, cancel=False)
+[strata] thinking: 23 of max 200 tokens, 25.5 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (30.4 tok/s) (stop, cancel=False)
+.[strata] the engine stopped unexpectedly (exit code 1). The engine exited (code 1) after it reported: verify batch: layer 34 never rang (graph finished) - please report it at github.com/Niko1221/Strata/issues with the log. The next request starts the engine again.
+[strata] done: 4 tokens in 0 s (19.4 tok/s) (error, cancel=False)
+[strata] the engine stopped unexpectedly (exit code 1). The engine exited (code 1) after it reported: verify batch: layer 34 never rang (graph finished) - please report it at github.com/Niko1221/Strata/issues with the log. The next request starts the engine again.
+[strata] done: 1 tokens in 0 s (14.5 tok/s) (error, cancel=False)
+.[strata] parallel: slot(s) 0, 1 were marked busy with no request using them (issue #1603); freed, the waiting request goes on
+[strata] reading the prompt: 32 of 52 tokens, 1 s so far
+[strata] done: 10 tokens in 1 s (36.3 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 1 s (19.1 tok/s) (stop, cancel=False)
+[strata] reading the prompt: 1,824 of 3,037 tokens, 1 s so far
+[strata] done: 10 tokens in 2 s (36.4 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (36.0 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (34.3 tok/s) (stop, cancel=False)
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 10 tokens in 0 s (37.9 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (34.9 tok/s) (stop, cancel=False)
+[strata] answering: 33 of max 200 tokens, 33.3 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (33.6 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (29.0 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (35.0 tok/s) (stop, cancel=False)
+.[strata] parallel requests: 4 asked, the engine runs 2 (its log says why)
+[strata] done: 10 tokens in 0 s (35.9 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 1 s (17.9 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (18.7 tok/s) (stop, cancel=False)
+[strata] reading the prompt: 1,792 of 3,037 tokens, 1 s so far
+[strata] done: 10 tokens in 2 s (38.9 tok/s) (stop, cancel=False)
+.[strata] reading the prompt: 2,560 of 3,037 tokens, 1 s so far
+[strata] answering: 1 of max 64 tokens, 167772.2 tok/s, 1 s
+[strata] answering: 5 of max 60 tokens, 2.1 tok/s, 2 s
+[strata] reading the prompt: 2,560 of 3,037 tokens, 2 s so far
+[strata] answering: 2 of max 64 tokens, 1.7 tok/s, 2 s
+[strata] done: 10 tokens in 3 s (6.2 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 3 s (36.3 tok/s) (stop, cancel=False)
+[strata] answering: 33 of max 60 tokens, 9.7 tok/s, 3 s
+[strata] done: 55 tokens in 4 s (13.7 tok/s) (stop, cancel=False)
+.[strata] parallel: slot(s) 0 were marked busy with no request using them (issue #1603); freed, the waiting request goes on
+..[strata] done: 10 tokens in 0 s (35.3 tok/s) (stop, cancel=False)
+[strata] done: 3 tokens in 0 s (41.9 tok/s) (disconnect, cancel=True)
+[strata] thinking: 20 of max 512 tokens, 24.1 tok/s, 1 s
+[strata] thinking: 16 of max 512 tokens, 36.7 tok/s, 1 s
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 55 tokens in 2 s (31.0 tok/s) (stop, cancel=False)
+[strata] thinking: 54 of max 512 tokens, 37.0 tok/s, 2 s
+[strata] done: 55 tokens in 2 s (37.1 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (38.5 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (36.1 tok/s) (stop, cancel=False)
+[strata] thinking: 5 of max 256 tokens, 48.6 tok/s, 1 s
+[strata] done: 10 tokens in 1 s (37.8 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (38.0 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (35.2 tok/s) (stop, cancel=False)
+[strata] thinking: 14 of max 512 tokens, 15.9 tok/s, 1 s
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (disconnect, cancel=True)
+[strata] thinking: 47 of max 512 tokens, 24.8 tok/s, 2 s
+[strata] done: 55 tokens in 2 s (25.7 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (37.6 tok/s) (stop, cancel=False)
+.[strata] parallel: the engine refused slot 1 (BGEN: no such free slot (--batch 2) or a bad max_new); trying another slot (1/6) (issue #1994)
+[strata] done: 10 tokens in 1 s (37.4 tok/s) (stop, cancel=False)
+[strata] answering: 34 of max 64 tokens, 33.8 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (35.4 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (35.6 tok/s) (stop, cancel=False)
+.[strata] parallel: the engine refused slot 1 (BGEN: no such free slot (--batch 2) or a bad max_new); trying another slot (1/6) (issue #1994)
+[strata] parallel: the engine refused slot 1 (BGEN: no such free slot (--batch 2) or a bad max_new); trying another slot (2/6) (issue #1994)
+[strata] parallel: the engine refused slot 1 (BGEN: no such free slot (--batch 2) or a bad max_new); trying another slot (3/6) (issue #1994)
+[strata] parallel: the engine refused slot 1 (BGEN: no such free slot (--batch 2) or a bad max_new); trying another slot (4/6) (issue #1994)
+[strata] parallel: the engine refused slot 1 (BGEN: no such free slot (--batch 2) or a bad max_new); trying another slot (5/6) (issue #1994)
+[strata] parallel: the engine refused slot 1 (BGEN: no such free slot (--batch 2) or a bad max_new); trying another slot (6/6) (issue #1994)
+[strata] parallel: the engine refused slot 1 (BGEN: no such free slot (--batch 2) or a bad max_new); trying another slot (7/6) (issue #1994)
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (length, cancel=False)
+[strata] answering: 34 of max 64 tokens, 33.9 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (35.2 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (37.7 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (35.7 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (35.0 tok/s) (stop, cancel=False)
+[strata] answering: 32 of max 64 tokens, 31.8 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (34.1 tok/s) (stop, cancel=False)
+.[strata] answering: 34 of max 64 tokens, 34.2 tok/s, 1 s
+[strata] answering: 33 of max 64 tokens, 36.2 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (35.2 tok/s) (stop, cancel=False)
+[strata] done: 55 tokens in 2 s (36.7 tok/s) (stop, cancel=False)
+.[strata] starting the engine: reading the model's weights ...
+.[strata] parallel requests: 4 asked, the engine runs 2 (its log says why)
+.[strata] parallel requests: 4 asked, the engine runs one at a time (its log says why)
+[strata] done: 10 tokens in 0 s (35.6 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (36.4 tok/s) (stop, cancel=False)
+[strata] answering: 35 of max 200 tokens, 35.1 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (35.0 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (35.4 tok/s) (stop, cancel=False)
+[strata] answering: 33 of max 200 tokens, 33.4 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (34.1 tok/s) (stop, cancel=False)
+.[strata] reading the prompt: 2,304 of 3,037 tokens, 1 s so far
+[strata] answering: 1 of max 64 tokens, 1.4 tok/s, 2 s
+[strata] reading the prompt: 32 of 3,037 tokens, 3 s so far
+[strata] answering: 8 of max 64 tokens, 4.7 tok/s, 3 s
+[strata] done: 10 tokens in 3 s (5.5 tok/s) (stop, cancel=False)
+[strata] reading the prompt: 2,336 of 3,037 tokens, 4 s so far
+[strata] done: 10 tokens in 4 s (35.0 tok/s) (stop, cancel=False)
+.[strata] reading the prompt: 2,560 of 3,037 tokens, 1 s so far
+[strata] answering: 1 of max 64 tokens, 0.9 tok/s, 2 s
+[strata] reading the prompt: 2,560 of 3,037 tokens, 4 s so far
+[strata] answering: 3 of max 64 tokens, 1.2 tok/s, 4 s
+[strata] done: 10 tokens in 4 s (3.5 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 4 s (35.4 tok/s) (stop, cancel=False)
+.[strata] the engine's logits became non-finite before the first token (#879); it dropped its cached state: sending the request again once
+[strata] done: 10 tokens in 0 s (38.6 tok/s) (stop, cancel=False)
+[strata] the engine's logits became non-finite before the first token (#879); it dropped its cached state: sending the request again once
+[strata] done: 10 tokens in 0 s (36.4 tok/s) (stop, cancel=False)
+[strata] answering: 34 of max 64 tokens, 33.7 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (34.4 tok/s) (stop, cancel=False)
+[strata] the engine's logits became non-finite after 2 tokens (#879): the reply ends here as "length"; the engine dropped its cached state, so the next request reads its prompt from the start
+[strata] done: 2 tokens in 0 s (24.6 tok/s) (length, cancel=False)
+[strata] answering: 34 of max 64 tokens, 33.9 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (35.2 tok/s) (stop, cancel=False)
+.[strata] starting the engine: reading the model's weights ...
+[strata] answering: 36 of max 64 tokens, 35.5 tok/s, 1 s
+[strata] answering: 35 of max 64 tokens, 37.5 tok/s, 1 s
+[strata] done: 55 tokens in 2 s (35.1 tok/s) (stop, cancel=False)
+[strata] done: 55 tokens in 2 s (36.4 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (37.7 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (37.6 tok/s) (stop, cancel=False)
+.[strata] parallel requests: 1 asked, the engine runs one at a time (its log says why)
+[strata] done: 10 tokens in 0 s (36.4 tok/s) (stop, cancel=False)
+.[strata] done: 9 tokens in 0 s (34.9 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (37.3 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (37.4 tok/s) (stop, cancel=False)
+.[strata] reading the prompt: 2,560 of 3,037 tokens, 1 s so far
+[strata] reading the prompt: 2,560 of 3,037 tokens, 2 s so far
+[strata] answering: 2 of max 64 tokens, 1.7 tok/s, 2 s
+[strata] done: 10 tokens in 3 s (6.3 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 3 s (37.5 tok/s) (stop, cancel=False)
+.[strata] reading the prompt: 768 of 3,037 tokens, 1 s so far
+[strata] reading the prompt: 32 of 3,037 tokens, 2 s so far
+[strata] answering: 2 of max 64 tokens, 23.4 tok/s, 2 s
+[strata] done: 10 tokens in 3 s (18.8 tok/s) (stop, cancel=False)
+[strata] reading the prompt: 2,304 of 3,037 tokens, 3 s so far
+[strata] reading the prompt: 32 of 43 tokens, 3 s so far
+[strata] done: 10 tokens in 3 s (36.9 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 3 s (31.8 tok/s) (stop, cancel=False)
+.........[strata] answering: 36 of max 64 tokens, 36.9 tok/s, 1 s
+[strata] answering: 37 of max 64 tokens, 37.5 tok/s, 1 s
+[strata] answering: 38 of max 64 tokens, 38.2 tok/s, 1 s
+[strata] done: 51 tokens in 1 s (38.4 tok/s) (stop, cancel=False)
+[strata] done: 51 tokens in 1 s (37.8 tok/s) (stop, cancel=False)
+[strata] done: 51 tokens in 1 s (36.9 tok/s) (stop, cancel=False)
+.[strata] done: 22 tokens in 0 s (167772.2 tok/s) (stop, cancel=False)
+.....[strata] done: 3 tokens in 0 s (10672.5 tok/s) (stop, cancel=False)
+...[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 0 s (7145.3 tok/s) (length, cancel=False)
+.[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 1 s (5622.4 tok/s) (length, cancel=False)
+.[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 0 s (7307.1 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 1 s (5592.4 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 0 s (6932.7 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 1 s (5915.8 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 0 s (5745.6 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] answering: 1 of max 1 tokens, 161319.4 tok/s, 1 s
+[strata] done: 1 tokens in 1 s (4424.4 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 1 s (6017.7 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 0 s (6668.2 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] answering: 1 of max 1 tokens, 161319.4 tok/s, 1 s
+[strata] done: 1 tokens in 1 s (4401.2 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] done: 1 tokens in 0 s (12052.6 tok/s) (length, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+[strata] answering: 1 of max 1 tokens, 199728.8 tok/s, 1 s
+[strata] done: 1 tokens in 1 s (4922.9 tok/s) (length, cancel=False)
+...[strata] loading the model again (it was unloaded) ...
+[strata] the engine did not start (try 1 of 3); again in 0 s
+[strata] the engine did not start (try 2 of 3); again in 0 s
+.[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 1 tokens in 0 s (20068.4 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] the engine did not start (try 1 of 3); again in 0 s
+[strata] the engine did not start (try 2 of 3); again in 0 s
+..[strata] repeated reasoning detected at 2048 tokens (coverage=1.000); resuming the same output with the low-effort instruction (reasoning_loop_recovery)
+[strata] done: 2086 tokens in 0 s (256300.1 tok/s) (stop, cancel=False)
+.[strata] repeated reasoning detected at 2048 tokens (coverage=1.000); resuming the same output with the low-effort instruction (reasoning_loop_recovery)
+[strata] done: 2071 tokens in 0 s (361301.2 tok/s) (stop, cancel=False)
+.[strata] done: 1 tokens in 0 s (38479.9 tok/s) (cancel, cancel=True)
+.[strata] done: 16384 tokens in 0 s (504418.7 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] done: 28001 tokens in 0 s (516326.7 tok/s) (stop, cancel=False)
+.[strata] repeated reasoning detected at 2048 tokens (coverage=1.000); resuming the same output with the low-effort instruction (reasoning_loop_recovery)
+[strata] done: 2082 tokens in 0 s (232026.3 tok/s) (stop, cancel=False)
+.[strata] done: 28001 tokens in 0 s (493975.7 tok/s) (stop, cancel=False)
+.[strata] repeated reasoning detected at 2048 tokens (coverage=1.000); resuming the same output with the low-effort instruction (reasoning_loop_recovery)
+[strata] done: 2106 tokens in 0 s (480274.3 tok/s) (stop, cancel=False)
+.[strata] repeated reasoning detected at 2048 tokens (coverage=1.000); resuming the same output with the low-effort instruction (reasoning_loop_recovery)
+[strata] done: 2086 tokens in 0 s (460611.6 tok/s) (stop, cancel=False)
+..[strata] repeated reasoning detected at 2048 tokens (coverage=1.000); resuming the same output with the low-effort instruction (reasoning_loop_recovery)
+[strata] done: 16384 tokens in 0 s (490629.1 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] done: 28001 tokens in 0 s (426810.9 tok/s) (stop, cancel=False)
+..[strata] the thinking repeated the same passages (coverage=1.000) at 2560 tokens: ended as "length" (reasoning_loop_recovery: "stop" in strata-<model>.json; remove it to turn this off)
+[strata] done: 2560 tokens in 0 s (480916.3 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] the thinking repeated the same passages (coverage=1.000) at 2048 tokens: ended as "length" (reasoning_loop_recovery: "stop" in strata-<model>.json; remove it to turn this off)
+[strata] done: 2048 tokens in 0 s (467148.9 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+..................[strata] done: 116 tokens in 0 s (212555.4 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 116 tokens in 0 s (153627.8 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 116 tokens in 0 s (215569.0 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 116 tokens in 0 s (171075.7 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 116 tokens in 0 s (212092.1 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 116 tokens in 0 s (159155.8 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+.[strata] done: 133 tokens in 0 s (95619.2 tok/s) (stop, cancel=False)
+[strata] done: 133 tokens in 0 s (59477.8 tok/s) (stop, cancel=False)
+[strata] done: 133 tokens in 0 s (109380.9 tok/s) (stop, cancel=False)
+[strata] done: 133 tokens in 0 s (71692.9 tok/s) (stop, cancel=False)
+[strata] done: 133 tokens in 0 s (110006.4 tok/s) (stop, cancel=False)
+[strata] done: 133 tokens in 0 s (72007.5 tok/s) (stop, cancel=False)
+[strata] done: 117 tokens in 0 s (95977.6 tok/s) (stop, cancel=False)
+[strata] done: 117 tokens in 0 s (55556.8 tok/s) (stop, cancel=False)
+[strata] done: 117 tokens in 0 s (105852.8 tok/s) (stop, cancel=False)
+[strata] done: 117 tokens in 0 s (68991.1 tok/s) (stop, cancel=False)
+[strata] done: 117 tokens in 0 s (105898.5 tok/s) (stop, cancel=False)
+[strata] done: 117 tokens in 0 s (70609.1 tok/s) (stop, cancel=False)
+[strata] done: 150 tokens in 0 s (107915.2 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 150 tokens in 0 s (83055.5 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 150 tokens in 0 s (118193.8 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 150 tokens in 0 s (89596.4 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 150 tokens in 0 s (124165.3 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 150 tokens in 0 s (96096.8 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 108 tokens in 0 s (120957.2 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 108 tokens in 0 s (100551.6 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 108 tokens in 0 s (121346.1 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 108 tokens in 0 s (111903.4 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 108 tokens in 0 s (134816.9 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 108 tokens in 0 s (110998.5 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 97 tokens in 0 s (128505.2 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 97 tokens in 0 s (114766.6 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 97 tokens in 0 s (146085.3 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 97 tokens in 0 s (135300.1 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 97 tokens in 0 s (144221.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 97 tokens in 0 s (143711.6 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] tool calls inside the thinking: 0 read as calls, 1 kept as reasoning (quoted, or the turn did not end on a stop)
+.[strata] done: 134 tokens in 0 s (98103.8 tok/s) (stop, cancel=False)
+[strata] done: 134 tokens in 0 s (59765.7 tok/s) (stop, cancel=False)
+[strata] done: 134 tokens in 0 s (107381.9 tok/s) (stop, cancel=False)
+[strata] done: 134 tokens in 0 s (73143.8 tok/s) (stop, cancel=False)
+[strata] done: 134 tokens in 0 s (114235.1 tok/s) (stop, cancel=False)
+[strata] done: 134 tokens in 0 s (73029.7 tok/s) (stop, cancel=False)
+[strata] done: 121 tokens in 0 s (101848.4 tok/s) (stop, cancel=False)
+[strata] done: 121 tokens in 0 s (64429.5 tok/s) (stop, cancel=False)
+[strata] done: 121 tokens in 0 s (116374.9 tok/s) (stop, cancel=False)
+[strata] done: 121 tokens in 0 s (76872.3 tok/s) (stop, cancel=False)
+[strata] done: 121 tokens in 0 s (116135.2 tok/s) (stop, cancel=False)
+[strata] done: 121 tokens in 0 s (73562.9 tok/s) (stop, cancel=False)
+[strata] done: 116 tokens in 0 s (111336.2 tok/s) (stop, cancel=False)
+[strata] done: 116 tokens in 0 s (94934.5 tok/s) (stop, cancel=False)
+[strata] done: 116 tokens in 0 s (119572.2 tok/s) (stop, cancel=False)
+[strata] done: 116 tokens in 0 s (95008.6 tok/s) (stop, cancel=False)
+[strata] done: 116 tokens in 0 s (120311.4 tok/s) (stop, cancel=False)
+[strata] done: 116 tokens in 0 s (95794.3 tok/s) (stop, cancel=False)
+.....[strata] done: 121 tokens in 0 s (124634.3 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 121 tokens in 0 s (108142.1 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 121 tokens in 0 s (139387.7 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 121 tokens in 0 s (114821.4 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+[strata] done: 121 tokens in 0 s (78769.3 tok/s) (stop, cancel=False)
+[strata] tool calls inside the thinking: 1 read as calls, 0 kept as reasoning (quoted, or the turn did not end on a stop)
+.............[strata] done: 119 tokens in 0 s (117440.5 tok/s) (length, cancel=False)
+[strata] done: 119 tokens in 0 s (89065.3 tok/s) (length, cancel=False)
+[strata] done: 119 tokens in 0 s (131209.8 tok/s) (length, cancel=False)
+[strata] done: 119 tokens in 0 s (103124.4 tok/s) (length, cancel=False)
+.[strata] done: 120 tokens in 0 s (96550.3 tok/s) (stop, cancel=False)
+[strata] done: 120 tokens in 0 s (78790.9 tok/s) (stop, cancel=False)
+[strata] done: 120 tokens in 0 s (110279.7 tok/s) (stop, cancel=False)
+[strata] done: 120 tokens in 0 s (85264.5 tok/s) (stop, cancel=False)
+.[strata] done: 147 tokens in 0 s (78184.5 tok/s) (stop, cancel=False)
+[strata] done: 147 tokens in 0 s (71386.2 tok/s) (stop, cancel=False)
+[strata] done: 147 tokens in 0 s (89904.2 tok/s) (stop, cancel=False)
+[strata] done: 147 tokens in 0 s (83296.8 tok/s) (stop, cancel=False)
+........[strata] done: 10 tokens in 0 s (37.8 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (37.3 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (36.7 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (37.5 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (36.6 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 0 s (36.8 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (36.1 tok/s) (stop, cancel=False)
+..[strata] done: 10 tokens in 0 s (34.8 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (14.9 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (14.2 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (25.9 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (38.6 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (24.3 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (35.2 tok/s) (stop, cancel=False)
+..........[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (103221.7 tok/s) (stop, cancel=False), expert cache 88.9% hit
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (65371.8 tok/s) (stop, cancel=False), expert cache 88.9% hit
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 98 tokens in 0 s (48945.2 tok/s) (cancel, cancel=True), expert cache 88.9% hit
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] the continuation ended without a DONE line. The next request starts the engine again.
+[strata] done: 95 tokens in 0 s (53794.9 tok/s) (error, cancel=False), expert cache 90.0% hit
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (96878.1 tok/s) (stop, cancel=False), expert cache 88.9% hit
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (57873.9 tok/s) (stop, cancel=False), expert cache 88.9% hit
+.[strata] thinking capped at 200 of max_tokens 400 to leave room for the answer (budget 10000)
+[strata] done: 211 tokens in 0 s (68530.1 tok/s) (stop, cancel=False), expert cache 90.0% hit
+....[strata] done: 8 tokens in 0 s (139810.1 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+...[strata] done: 8 tokens in 0 s (163680.2 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 8 tokens in 0 s (159025.7 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 8 tokens in 0 s (127100.1 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] done: 8 tokens in 0 s (195083.9 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+...[strata] done: 8 tokens in 0 s (177536.7 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+...............s......[strata] 400 invalid request: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
+.....................[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
+.[strata] the engine reported an error: refused: images are not enabled
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+[strata] 400 invalid request: refused: images are not enabled
+[strata] done: 10 tokens in 0 s (36.8 tok/s) (stop, cancel=False)
+.[strata] the engine reported an error: refused: images are not enabled
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+[strata] 400 invalid request: refused: images are not enabled
+[strata] done: 10 tokens in 0 s (35.1 tok/s) (stop, cancel=False)
+..[strata] the engine stopped unexpectedly (exit code -9). The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 10 tokens in 0 s (34.3 tok/s) (stop, cancel=False)
+.[strata] the engine stopped unexpectedly (exit code -9). The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine stopped unexpectedly (exit code -9). The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] done: 2 tokens in 0 s (10.7 tok/s) (error, cancel=False)
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 10 tokens in 0 s (38.8 tok/s) (stop, cancel=False)
+.[strata] parallel requests: 4 asked, the engine runs one at a time (its log says why)
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] parallel requests: 4 asked, the engine runs one at a time (its log says why)
+[strata] the engine is running again
+[strata] done: 10 tokens in 0 s (37.5 tok/s) (stop, cancel=False)
+.[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 10 tokens in 0 s (35.9 tok/s) (stop, cancel=False)
+.[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine stopped while this request waited; it was not sent. The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again.
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
+[strata] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 10 tokens in 0 s (37.5 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 1 s (36.0 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (31.3 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (34.1 tok/s) (stop, cancel=False)
+.[strata] done: 10 tokens in 1 s (27.3 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (35.4 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 1 s (30.6 tok/s) (stop, cancel=False)
+.......................................[strata] model unloaded; the next request loads it again
+..[strata] refused a request for Host 'rebind.example.com' from 127.0.0.1: not a name this server answers to (add it to "allowed_hosts" in the config or STRATA_ALLOWED_HOSTS, or set an API key)
+....[strata] model unloaded; the next request loads it again
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+...........[strata] done: 10 tokens in 0 s (117487.5 tok/s) (length, cancel=False)
+[strata] done: 10 tokens in 0 s (131896.4 tok/s) (length, cancel=False)
+[strata] done: 10 tokens in 0 s (158875.2 tok/s) (length, cancel=False)
+..........[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+.[strata] done: 0 tokens in 1 s (0.0 tok/s) (cancel, cancel=True)
+.[strata] 400 invalid request: tools[0] (f): "parameters" must be an object (the JSON schema of its parameters), not str
+[strata] 400 invalid request: tools[0] (f): "parameters" must be an object (the JSON schema of its parameters), not list
+[strata] 400 invalid request: tools[0] (f): "parameters" must be an object (the JSON schema of its parameters), not int
+[strata] 400 invalid request: tools[0] (f): "input_schema" must be an object (the JSON schema of its parameters), not str
+[strata] 400 invalid request: tools[0] (f): "input_schema" must be an object (the JSON schema of its parameters), not list
+[strata] 400 invalid request: tools[0] (f): "input_schema" must be an object (the JSON schema of its parameters), not bool
+[strata] done: 8 tokens in 0 s (151146.1 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (159783.0 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (173857.2 tok/s) (length, cancel=False)
+.[strata] done: 12 tokens in 0 s (245520.2 tok/s) (stop, cancel=False)
+..[strata] 400 invalid request: tools must be a list of tool objects, each {"type": "function", "function": {"name": ..., "parameters": {...}}}
+[strata] 400 invalid request: tools must be a list of tool objects, each {"type": "function", "function": {"name": ..., "parameters": {...}}}
+[strata] 400 invalid request: tools[0] has no name: each tool must be {"type": "function", "function": {"name": ..., "parameters": {...}}}
+[strata] 400 invalid request: tools must be a list of tool objects, each {"type": "function", "function": {"name": ..., "parameters": {...}}}
+[strata] 400 invalid request: tools[0] has no name: each tool must be {"type": "function", "function": {"name": ..., "parameters": {...}}}
+[strata] 400 invalid request: tools[0] has no name: each tool must be {"type": "function", "function": {"name": ..., "parameters": {...}}}
+[strata] 400 invalid request: tools must be a list of tool objects, each {"name": ..., "input_schema": {...}}
+[strata] 400 invalid request: tools must be a list of tool objects, each {"name": ..., "input_schema": {...}}
+[strata] 400 invalid request: tools[0] has no name: each tool must be {"name": ..., "input_schema": {...}}
+[strata] 400 invalid request: tools must be a list of tool objects, each {"name": ..., "input_schema": {...}}
+[strata] 400 invalid request: tools[0] has no name: each tool must be {"name": ..., "input_schema": {...}}
+[strata] 400 invalid request: tools[0] has no name: each tool must be {"name": ..., "input_schema": {...}}
+[strata] done: 8 tokens in 0 s (250406.2 tok/s) (length, cancel=False)
+.[strata] done: 12 tokens in 0 s (294337.1 tok/s) (stop, cancel=False)
+[strata] 400 invalid request: messages must be a list of objects
+[strata] done: 12 tokens in 0 s (272063.0 tok/s) (stop, cancel=False)
+[strata] 400 invalid request: messages must be a list of objects
+..[strata] 400 invalid request: No user query found in messages.
+[strata] done: 12 tokens in 0 s (284359.6 tok/s) (stop, cancel=False)
+.[strata] done: 12 tokens in 0 s (292625.9 tok/s) (stop, cancel=False)
+.[strata] done: 12 tokens in 0 s (266305.0 tok/s) (stop, cancel=False)
+[strata] done: 12 tokens in 0 s (316551.2 tok/s) (stop, cancel=False)
+[strata] done: 12 tokens in 0 s (266305.0 tok/s) (stop, cancel=False)
+...[strata] done: 8 tokens in 0 s (258111.0 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (277309.4 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (264208.1 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (332222.1 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (319566.0 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (266305.0 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (335544.3 tok/s) (length, cancel=False)
+........[strata] done: 13 tokens in 0 s (354064.6 tok/s) (stop, cancel=False)
+.[strata] done: 13 tokens in 0 s (232025.3 tok/s) (stop, cancel=False)
+....[strata] done: 10 tokens in 0 s (137068.8 tok/s) (length, cancel=False)
+[strata] done: 10 tokens in 0 s (158875.2 tok/s) (length, cancel=False)
+[strata] done: 10 tokens in 0 s (145131.6 tok/s) (length, cancel=False), expert cache 90.0% hit
+.........[strata] the engine reported an error: verify: layer 31 never rang (an illegal memory access was encountered)
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+[strata] the engine reported an error: verify: layer 31 never rang (an illegal memory access was encountered)
+[strata] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
+.[strata] the engine stopped unexpectedly (exit code -9). The next request starts the engine again.
+[strata] done: 5 tokens in 0 s (45491.4 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code None); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 50 tokens in 0 s (137789.2 tok/s) (length, cancel=False)
+.[strata] done: 50 tokens in 0 s (139624.0 tok/s) (length, cancel=False)
+.[strata] done: 1 tokens in 0 s (91180.5 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] 400 invalid request: request exceeds the context window: prompt (4088 tokens) leaves no room to answer in the context (4096); requests are never truncated
+.[strata] done: 2011 tokens in 0 s (19299.7 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (21506.2 tok/s) (stop, cancel=False)
+.[strata] done: 5 tokens in 0 s (153076.8 tok/s) (length, cancel=False)
+.[strata] done: 120 tokens in 0 s (73476.9 tok/s) (stop, cancel=False)
+[strata] done: 120 tokens in 0 s (62461.7 tok/s) (stop, cancel=False)
+.[strata] done: 272 tokens in 0 s (63578.4 tok/s) (stop, cancel=False)
+[strata] done: 272 tokens in 0 s (56581.4 tok/s) (stop, cancel=False)
+[strata] done: 272 tokens in 0 s (76382.6 tok/s) (stop, cancel=False)
+[strata] done: 272 tokens in 0 s (65551.1 tok/s) (stop, cancel=False)
+[strata] done: 203 tokens in 0 s (106844.5 tok/s) (stop, cancel=False)
+[strata] done: 203 tokens in 0 s (78286.5 tok/s) (stop, cancel=False)
+[strata] done: 203 tokens in 0 s (122369.0 tok/s) (stop, cancel=False)
+[strata] done: 203 tokens in 0 s (79790.4 tok/s) (stop, cancel=False)
+[strata] tool_choice {"type": "tool", "name": "nope"} is not supported here (or names no tool of the request): the model decides, as with "auto"
+[strata] done: 203 tokens in 0 s (116269.8 tok/s) (stop, cancel=False)
+[strata] tool_choice {"type": "tool", "name": "nope"} is not supported here (or names no tool of the request): the model decides, as with "auto"
+[strata] done: 203 tokens in 0 s (81759.5 tok/s) (stop, cancel=False)
+.[strata] done: 203 tokens in 0 s (69687.7 tok/s) (stop, cancel=False)
+[strata] done: 203 tokens in 0 s (79574.2 tok/s) (stop, cancel=False)
+[strata] done: 203 tokens in 0 s (88269.1 tok/s) (stop, cancel=False)
+.[strata] done: 272 tokens in 0 s (62246.3 tok/s) (stop, cancel=False)
+[strata] done: 272 tokens in 0 s (52624.7 tok/s) (stop, cancel=False)
+[strata] done: 272 tokens in 0 s (74702.1 tok/s) (stop, cancel=False)
+[strata] done: 272 tokens in 0 s (61402.1 tok/s) (stop, cancel=False)
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 181 tokens in 0 s (78499.5 tok/s) (stop, cancel=False)
+.[strata] done: 272 tokens in 0 s (60378.4 tok/s) (stop, cancel=False)
+.[strata] tool_choice {"type": "function", "function": {"name": "nope"}} is not supported here (or names no tool of the request): the model decides, as with "auto"
+[strata] done: 203 tokens in 0 s (81720.3 tok/s) (stop, cancel=False)
+[strata] tool_choice {"type": "function"} is not supported here (or names no tool of the request): the model decides, as with "auto"
+[strata] done: 203 tokens in 0 s (89119.1 tok/s) (stop, cancel=False)
+[strata] tool_choice "required" is not supported here (or names no tool of the request): the model decides, as with "auto"
+[strata] done: 203 tokens in 0 s (98058.7 tok/s) (stop, cancel=False)
+[strata] tool_choice {"type": "banana"} is not supported here (or names no tool of the request): the model decides, as with "auto"
+[strata] done: 203 tokens in 0 s (94636.4 tok/s) (stop, cancel=False)
+[strata] tool_choice "sometimes" is not supported here (or names no tool of the request): the model decides, as with "auto"
+[strata] done: 203 tokens in 0 s (99120.3 tok/s) (stop, cancel=False)
+.[strata] done: 64 tokens in 0 s (138869.9 tok/s) (stop, cancel=False)
+[strata] done: 64 tokens in 0 s (114033.8 tok/s) (stop, cancel=False)
+[strata] done: 56 tokens in 0 s (165292.8 tok/s) (stop, cancel=False)
+[strata] done: 56 tokens in 0 s (126688.8 tok/s) (stop, cancel=False)
+.[strata] layer split: card order 2,0 (the faster card last; "gpu_order": "as_given" keeps 0,2, #1352)
+[strata] layer split: card order 2,0 (the faster card last; "gpu_order": "as_given" keeps 0,2, #1352)
+[strata] layer split: card order 2,0 (the faster card last; "gpu_order": "as_given" keeps 0,2, #1352)
+[strata] layer split: card order 0,2,1 (the faster card last; "gpu_order": "as_given" keeps 0,1,2, #1352)
+[strata] layer split: keeping card order 0,1 - the faster card has less VRAM than the one the split ends on (12288 vs 22528 MiB, #1576)
+[strata] layer split: card order 1,0 (the faster card last; "gpu_order": "as_given" keeps 0,1, #1352)
+[strata] layer split: card order 1,0 (the faster card last; "gpu_order": "as_given" keeps 0,1, #1352)
+[strata] layer split: card order 1,0 (the faster card last; "gpu_order": "as_given" keeps 0,1, #1352)
+[strata] layer split: keeping card order 0,1,2 - the faster card has less VRAM than the one the split ends on (12288 vs 24576 MiB, #1576)
+.../Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/serve/server.py:2880: ResourceWarning: unclosed file <_io.TextIOWrapper name='/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmpjprfvv4t/0/properties' mode='r' encoding='UTF-8'>
+ props = dict(line.split() for line in open(os.path.join(root, str(n), "properties")) if len(line.split()) == 2)
+ResourceWarning: Enable tracemalloc to get the object allocation traceback
+/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/serve/server.py:2880: ResourceWarning: unclosed file <_io.TextIOWrapper name='/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmpjprfvv4t/1/properties' mode='r' encoding='UTF-8'>
+ props = dict(line.split() for line in open(os.path.join(root, str(n), "properties")) if len(line.split()) == 2)
+ResourceWarning: Enable tracemalloc to get the object allocation traceback
+/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/serve/server.py:2880: ResourceWarning: unclosed file <_io.TextIOWrapper name='/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmpjprfvv4t/2/properties' mode='r' encoding='UTF-8'>
+ props = dict(line.split() for line in open(os.path.join(root, str(n), "properties")) if len(line.split()) == 2)
+ResourceWarning: Enable tracemalloc to get the object allocation traceback
+/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/serve/server.py:2880: ResourceWarning: unclosed file <_io.TextIOWrapper name='/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmpjprfvv4t/3/properties' mode='r' encoding='UTF-8'>
+ props = dict(line.split() for line in open(os.path.join(root, str(n), "properties")) if len(line.split()) == 2)
+ResourceWarning: Enable tracemalloc to get the object allocation traceback
+..[strata] done: 54 tokens in 0 s (173159.3 tok/s) (stop, cancel=False)
+.[strata] done: 3 tokens in 0 s (187804.7 tok/s) (stop, cancel=False)
+..strata serve: AMD: HIP_PATH=Z:\definitely\not\here does not exist: not passed to the engine
+.strata serve: AMD: HIP_PATH=/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmpf3q7dk5o/TheRock/build does not exist: not passed to the engine
+strata serve: AMD: HIP_DEVICE_LIB_PATH=/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmpf3q7dk5o/TheRock/build does not exist: not passed to the engine
+.strata serve: AMD: TEMP=/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmp439y3i92/no/such/dir is not writable: using /private/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmp439y3i92/tmp
+.[strata] a picture a tool returned was left out of the prompt: this server has no image encoder
+[strata] a picture a tool returned was left out of the prompt: this server has no image encoder
+[strata] a picture a tool returned was left out of the prompt: this image format needs Pillow
+[strata] a picture a tool returned was left out of the prompt: the image URL could not be read
+....[strata] refused an API request from the web page 'https://evil.example' (no API key; add its host to "allowed_hosts" or its origin to "cors_origins" in the config)
+[strata] 400 invalid request: a web page of another origin cannot have a file on this computer read as an image: send it as a data: URL (or add the page's origin to the config's trusted_origins)
+[strata] 400 invalid request: a web page of another origin cannot have a file on this computer read as an image: send it as a data: URL (or add the page's origin to the config's trusted_origins)
+[strata] 400 invalid request: a web page of another origin cannot have a file on this computer read as an image: send it as a data: URL (or add the page's origin to the config's trusted_origins)
+[strata] 400 invalid request: a web page of another origin cannot have a file on this computer read as an image: send it as a data: URL (or add the page's origin to the config's trusted_origins)
+[strata] done: 8 tokens in 0 s (322638.8 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (345922.0 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (332222.1 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (364722.1 tok/s) (length, cancel=False)
+...........................[strata] the engine stopped unexpectedly (exit code -9). The next request starts the engine again.
+[strata] done: 3 tokens in 0 s (33288.1 tok/s) (error, cancel=False)
+..[strata] done: 30 tokens in 1 s (38.4 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] the engine said nothing for 1 s during the request; the server ended the engine. The engine and the server lost step (issue #481; a very slow PC can raise "engine_silence_s" in the config, 0 = wait forever). If it happens again, please add the end of the engine log to github.com/Niko1221/Strata/issues/481. The next request starts the engine again.
+[strata] done: 1 tokens in 1 s (1.9 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 2 tokens in 0 s (26630.5 tok/s) (length, cancel=False)
+.[strata] the engine said nothing for 1 s during the request; the server ended the engine. The engine and the server lost step (issue #481; a very slow PC can raise "engine_silence_s" in the config, 0 = wait forever). If it happens again, please add the end of the engine log to github.com/Niko1221/Strata/issues/481. The next request starts the engine again.
+[strata] done: 1 tokens in 1 s (1.9 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 2 tokens in 0 s (20360.7 tok/s) (length, cancel=False)
+.[strata] the engine did not finish the request after it was stopped (STOP) within 0 s; the server ended the engine. The engine and the server lost step (issue #481; a very slow PC can raise "engine_silence_s" in the config, 0 = wait forever). If it happens again, please add the end of the engine log to github.com/Niko1221/Strata/issues/481. The next request starts the engine again.
+[strata] done: 2 tokens in 1 s (3.9 tok/s) (error, cancel=False)
+[strata] the engine had stopped (exit code -9); starting it again (a minute or two) ...
+[strata] the engine is running again
+[strata] done: 2 tokens in 0 s (26296.6 tok/s) (length, cancel=False)
+..[strata] done: 8 tokens in 0 s (174762.7 tok/s) (length, cancel=False)
+..[strata] done: 50 tokens in 0 s (277768.5 tok/s) (length, cancel=False)
+[strata] done: 50 tokens in 0 s (274856.1 tok/s) (length, cancel=False)
+[strata] done: 50 tokens in 0 s (277768.5 tok/s) (length, cancel=False)
+[strata] done: 50 tokens in 0 s (274856.1 tok/s) (length, cancel=False)
+[strata] done: 1500 tokens in 0 s (28221.5 tok/s) (length, cancel=False)
+[strata] done: 1500 tokens in 0 s (27466.9 tok/s) (length, cancel=False)
+.[strata] 400 invalid request: request exceeds the context window: prompt (246 tokens) + max tokens (4096) exceeds the context (4096); requests are never truncated. Send a smaller max_tokens (at most 3842 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+[strata] 400 invalid request: request exceeds the context window: prompt (246 tokens) + max tokens (4096) exceeds the context (4096); requests are never truncated. Send a smaller max_tokens (at most 3842 here), or add "fit_max_tokens": true to the model's strata-<model>.json to shorten it to the room left (#545)
+..[strata] done: 2011 tokens in 0 s (21369.3 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (21225.6 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (21048.8 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (21424.1 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (21260.9 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (21122.8 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (20995.6 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (21279.0 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (20948.1 tok/s) (stop, cancel=False)
+[strata] done: 2011 tokens in 0 s (21201.2 tok/s) (stop, cancel=False)
+.[strata] done: 1 tokens in 0 s (174762.7 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 1 tokens in 0 s (167772.2 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 5 tokens in 0 s (327680.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] 400 invalid request: request exceeds the context window: prompt (4088 tokens) leaves no room to answer in the context (4096); requests are never truncated
+[strata] done: 1 tokens in 0 s (161319.4 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] done: 5 tokens in 0 s (355449.5 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+[strata] 400 invalid request: request exceeds the context window: prompt (4088 tokens) leaves no room to answer in the context (4096); requests are never truncated
+..[strata] done: 8 tokens in 0 s (234646.4 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (277309.4 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (268435.5 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (275036.3 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (286790.0 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (129055.5 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (160547.5 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (170327.1 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (170327.1 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (156796.4 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (173857.2 tok/s) (length, cancel=False)
+[strata] done: 8 tokens in 0 s (172961.0 tok/s) (length, cancel=False)
+.........[strata] the config has a "vision" section but no --vision in its args: added --vision and --vram-reserve-mib 700 (run setup again with --vision to write them)
+[strata] the config has a "vision" section but no --vision in its args: added --vision (run setup again with --vision to write them)
+[strata] the config has a "vision" section but no --vision in its args: added --vision (run setup again with --vision to write them)
+........[strata] done: 10 tokens in 0 s (175493.9 tok/s) (length, cancel=False)
+[strata] done: 10 tokens in 0 s (203607.0 tok/s) (length, cancel=False)
+.[strata] done: 40 tokens in 0 s (90297.2 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] done: 40 tokens in 0 s (63191.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+....[strata] done: 18 tokens in 0 s (177641.1 tok/s) (stop, cancel=False)
+.[strata] done: 28 tokens in 0 s (301903.6 tok/s) (stop, cancel=False)
+.[strata] done: 36 tokens in 0 s (160632.9 tok/s) (stop, cancel=False)
+.[strata] the reply ended inside its thinking with no answer: closing the thinking once and continuing (reasoning_close_retry)
+[strata] done: 64 tokens in 0 s (194518.4 tok/s) (stop, cancel=False)
+....[strata] done: 13 tokens in 0 s (190650.2 tok/s) (stop, cancel=False)
+/opt/homebrew/Cellar/[email protected]/3.11.15/Frameworks/Python.framework/Versions/3.11/lib/python3.11/unittest/case.py:579: ResourceWarning: unclosed <socket.socket fd=3, family=2, type=1, proto=0, laddr=('127.0.0.1', 51562)>
+ if method() is not None:
+ResourceWarning: Enable tracemalloc to get the object allocation traceback
+..[strata] the engine did not start (try 1 of 3); again in 0 s
+...........[strata] other apps now use the Chat settings: temperature=0.3
+[strata] done: 16 tokens in 0 s (291777.7 tok/s) (stop, cancel=False)
+.[strata] other apps use their own settings again
+.[strata] other apps now use the Chat settings: temperature=0.3
+[strata] other apps use their own settings again
+[strata] done: 16 tokens in 0 s (319566.0 tok/s) (stop, cancel=False)
+.[strata] other apps now use the Chat settings: temperature=1.0
+.[strata] other apps now use the Chat settings: temperature=0.3, top_p=0.9, top_k=10, seed=7, max_tokens=77, reasoning_effort=low, experimental_speed_projection=False
+[strata] done: 16 tokens in 0 s (327360.3 tok/s) (stop, cancel=False)
+[strata] done: 5 tokens in 0 s (249661.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+..[strata] other apps now use the Chat settings: temperature=1.0
+.[strata] model unloaded; the next request loads it again
+[strata] before loading: /Users/nikoveit/Documents/deepseek-harness/strata-work/python311/bin/python -c import sys; sys.exit(1)
+[strata] the before_load command failed (it exited with code 1); loading anyway
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (188020.5 tok/s) (stop, cancel=False)
+.[strata] model unloaded; the next request loads it again
+[strata] before loading: /Users/nikoveit/Documents/deepseek-harness/strata-work/python311/bin/python -c open('/var/folders/jr/5sbp8w_97bgdkv1n_tr64_840000gn/T/tmpb0hq1fdv/ran', 'w').close()
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (160370.4 tok/s) (stop, cancel=False)
+.[strata] model unloaded; the next request loads it again
+[strata] before loading: /Users/nikoveit/Documents/deepseek-harness/strata-work/python311/bin/python -c import sys; sys.exit(7)
+[strata] the before_load command failed (it exited with code 7); the model stays unloaded and this request is answered 503 - try again (before_load_strict)
+.[strata] model unloaded; the next request loads it again
+[strata] before loading: /Users/nikoveit/Documents/deepseek-harness/strata-work/python311/bin/python -c import time; time.sleep(30)
+[strata] the before_load command failed (it did not finish in 0.5 s (before_load_timeout_s)); the model stays unloaded and this request is answered 503 - try again (before_load_strict)
+.[strata] model unloaded; the next request loads it again
+[strata] before loading: /Users/nikoveit/Documents/deepseek-harness/strata-work/python311/bin/python -c import sys; sys.exit(7)
+[strata] the before_load command failed (it exited with code 7); checking the free VRAM
+[strata] the before_load command failed (it exited with code 7), but 20000 MiB of VRAM is free: loading
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (194042.5 tok/s) (stop, cancel=False)
+.[strata] model unloaded; the next request loads it again
+[strata] before loading: /Users/nikoveit/Documents/deepseek-harness/strata-work/python311/bin/python -c import sys; sys.exit(3)
+[strata] the before_load command failed (it exited with code 3); checking the free VRAM
+[strata] the before_load command failed (it exited with code 3) and only 2000 MiB of VRAM is free (the model needs 8000): not loading; 503
+[strata] before loading: /Users/nikoveit/Documents/deepseek-harness/strata-work/python311/bin/python -c import sys; sys.exit(3)
+[strata] the before_load command failed (it exited with code 3); checking the free VRAM
+[strata] the before_load command failed (it exited with code 3), but 20000 MiB of VRAM is free: loading
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (128598.9 tok/s) (stop, cancel=False)
+.[strata] model unloaded; the next request loads it again
+[strata] before loading: /Users/nikoveit/Documents/deepseek-harness/strata-work/python311/bin/python -c import sys; sys.exit(7)
+[strata] the before_load command failed (it exited with code 7); loading anyway (set min_free_vram_mib to have the free VRAM checked, or before_load_strict to refuse)
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (199728.8 tok/s) (stop, cancel=False)
+.[strata] the model unloads after 1 s without requests
+[strata] model unloaded after 1 s idle; the next request loads it again
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (48858.4 tok/s) (stop, cancel=False)
+.[strata] model unloaded; the next request loads it again
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+.[strata] model unloaded; the next request loads it again
+[strata] model unloaded after 1 s idle; the next request loads it again
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (86003.1 tok/s) (stop, cancel=False)
+.[strata] model unloaded; the next request loads it again
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (171465.3 tok/s) (stop, cancel=False)
+...[strata] model unloaded; the next request loads it again
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (180549.5 tok/s) (stop, cancel=False)
+..[strata] model unloaded; the next request loads it again
+.[strata] model unloaded; the next request loads it again
+[strata] starting the vision encoder ...
+[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+[strata] done: 13 tokens in 0 s (169335.3 tok/s) (stop, cancel=False)
+.[strata] the engine has said nothing for 1 s but is still working; it is not ended (the limit is engine_silence_s). If it is stuck, "engine_silence_s" can be set lower.
+...[strata] the engine has said nothing for 1 s but is still working; it is not ended (the limit is engine_silence_s). If it is stuck, "engine_silence_s" can be set lower.
+...................[strata] done: 15 tokens in 0 s (63294.3 tok/s) (disconnect, cancel=False)
+[strata] done: 20 tokens in 0 s (181571.6 tok/s) (length, cancel=False)
+..[strata] done: 36 tokens in 0 s (128725.4 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (73015.0 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (142313.8 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (75762.6 tok/s) (stop, cancel=False)
+.[strata] 400 invalid request: stop takes at most 4 strings
+[strata] 400 invalid request: stop must be a string or a list of strings
+[strata] 400 invalid request: stop_sequences must be a list of strings
+[strata] 400 invalid request: stop_sequences must be a list of strings
+.[strata] done: 19 tokens in 0 s (184471.7 tok/s) (stop, cancel=False)
+[strata] done: 19 tokens in 0 s (81567.8 tok/s) (stop, cancel=False)
+[strata] done: 19 tokens in 0 s (182779.3 tok/s) (stop, cancel=False)
+[strata] done: 19 tokens in 0 s (86340.0 tok/s) (stop, cancel=False)
+..[strata] done: 36 tokens in 0 s (181921.6 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (179116.2 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (168145.8 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (85259.7 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (97040.5 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (85939.1 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (196608.0 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (196608.0 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (182581.6 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (120314.7 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (118800.1 tok/s) (stop, cancel=False)
+[strata] done: 36 tokens in 0 s (82964.3 tok/s) (stop, cancel=False)
+.[strata] done: 29 tokens in 0 s (205464.2 tok/s) (stop, cancel=False)
+.[strata] done: 24 tokens in 0 s (198156.1 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (121281.1 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (196992.8 tok/s) (stop, cancel=False)
+[strata] done: 24 tokens in 0 s (131242.9 tok/s) (stop, cancel=False)
+...[strata] 400 invalid request: reasoning_budget_tokens='lots': expected a whole number of tokens (0: no budget)
+[strata] 400 invalid request: reasoning_budget_tokens=2.5: expected a whole number of tokens (0: no budget)
+[strata] 400 invalid request: reasoning_budget_tokens=True: expected a whole number of tokens (0: no budget)
+[strata] 400 invalid request: reasoning_budget_tokens=[1]: expected a whole number of tokens (0: no budget)
+..[strata] thinking capped at 200 of max_tokens 400 to leave room for the answer (budget 10000)
+[strata] done: 211 tokens in 0 s (76306.1 tok/s) (stop, cancel=False)
+....[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (102478.6 tok/s) (stop, cancel=False)
+[strata] done: 211 tokens in 0 s (77204.8 tok/s) (stop, cancel=False)
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 108 tokens in 0 s (102369.5 tok/s) (stop, cancel=False)
+.[strata] thinking budget reached (30 tokens): wrapping up the thinking
+[strata] done: 122 tokens in 0 s (60902.8 tok/s) (stop, cancel=False)
+.[strata] done: 20 tokens in 0 s (109511.9 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] done: 211 tokens in 0 s (76122.3 tok/s) (stop, cancel=False)
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (102568.1 tok/s) (stop, cancel=False)
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (60771.3 tok/s) (stop, cancel=False)
+[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (102300.1 tok/s) (stop, cancel=False)
+.[strata] thinking budget reached (20 tokens): wrapping up the thinking
+[strata] done: 112 tokens in 0 s (102211.1 tok/s) (stop, cancel=False)
+[strata] done: 211 tokens in 0 s (76922.9 tok/s) (stop, cancel=False)
+..[strata] done: 17 tokens in 0 s (163539.4 tok/s) (stop, cancel=False)
+......................[strata] done: 119 tokens in 0 s (153340.1 tok/s) (length, cancel=False)
+[strata] done: 119 tokens in 0 s (112465.6 tok/s) (length, cancel=False)
+[strata] done: 119 tokens in 0 s (161007.2 tok/s) (length, cancel=False)
+[strata] done: 119 tokens in 0 s (126841.7 tok/s) (length, cancel=False)
+.[strata] done: 120 tokens in 0 s (85293.4 tok/s) (stop, cancel=False)
+[strata] done: 120 tokens in 0 s (68609.1 tok/s) (stop, cancel=False)
+[strata] done: 120 tokens in 0 s (108379.9 tok/s) (stop, cancel=False)
+[strata] done: 120 tokens in 0 s (87335.8 tok/s) (stop, cancel=False)
+.[strata] done: 147 tokens in 0 s (75735.5 tok/s) (stop, cancel=False)
+[strata] done: 147 tokens in 0 s (71919.1 tok/s) (stop, cancel=False)
+[strata] done: 147 tokens in 0 s (89694.9 tok/s) (stop, cancel=False)
+[strata] done: 147 tokens in 0 s (83285.5 tok/s) (stop, cancel=False)
+.......[strata] done: 13 tokens in 0 s (131072.0 tok/s) (stop, cancel=False), expert cache 90.0% hit
+...[strata] done: 5 tokens in 0 s (216201.2 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+.[strata] done: 13 tokens in 0 s (67734.1 tok/s) (stop, cancel=False), expert cache 90.0% hit
+.[strata] done: 13 tokens in 0 s (63035.8 tok/s) (stop, cancel=False), expert cache 90.0% hit
+..[strata] done: 13 tokens in 0 s (73386.2 tok/s) (stop, cancel=False), expert cache 90.0% hit
+.[strata] done: 13 tokens in 0 s (109051.9 tok/s) (stop, cancel=False), expert cache 90.0% hit
+.............[strata] done: 5 tokens in 0 s (249661.0 tok/s) (length, cancel=False)
+[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-<model>.json for every request) leaves room to answer
+............[strata] SAVE waiting for RAM after cache reclaim: need=1125 MiB, limit=30s; floor unchanged
+.[strata] SAVE waiting for RAM after cache reclaim: need=1125 MiB, limit=30s; floor unchanged
+..............................................[strata] done: 255 tokens in 0 s (63941.4 tok/s) (stop, cancel=False)
+[strata] done: 282 tokens in 0 s (67758.6 tok/s) (stop, cancel=False)
+.ss[strata] 400 invalid request: response_format must be an object
+[strata] 400 invalid request: response_format.type must be text, json_object or json_schema
+[strata] 400 invalid request: response_format.json_schema needs a name
+[strata] 400 invalid request: response_format.json_schema.strict must be boolean
+[strata] 400 invalid request: structured response_format with tools/MCP is not supported
+[strata] 400 invalid request: structured response_format with tools/MCP is not supported
+[strata] 400 invalid request: send a JSON object
+.[strata] done: 13 tokens in 0 s (145791.3 tok/s) (stop, cancel=False)
+[strata] done: 3 tokens in 0 s (136770.8 tok/s) (stop, cancel=False)
+[strata] done: 10 tokens in 0 s (184771.1 tok/s) (stop, cancel=False)
+[strata] done: 14 tokens in 0 s (187007.2 tok/s) (stop, cancel=False)
+[strata] done: 12 tokens in 0 s (187804.7 tok/s) (stop, cancel=False)
+[strata] done: 15 tokens in 0 s (210416.6 tok/s) (stop, cancel=False)
+[strata] done: 6 tokens in 0 s (187804.7 tok/s) (stop, cancel=False)
+[strata] done: 15 tokens in 0 s (197224.3 tok/s) (stop, cancel=False)
+[strata] done: 32 tokens in 0 s (191466.1 tok/s) (stop, cancel=False)
+[strata] done: 5 tokens in 0 s (171897.7 tok/s) (length, cancel=False)
+[strata] done: 7 tokens in 0 s (201096.8 tok/s) (stop, cancel=False)
+.[strata] 400 invalid request: response_format.json_schema needs a schema object
+[strata] done: 21 tokens in 0 s (166818.9 tok/s) (stop, cancel=False)
+.[strata] done: 40 tokens in 0 s (145006.2 tok/s) (stop, cancel=False)
+[strata] done: 7 tokens in 0 s (166818.9 tok/s) (stop, cancel=False)
+[strata] done: 40 tokens in 0 s (150468.3 tok/s) (stop, cancel=False)
+[strata] done: 7 tokens in 0 s (159565.9 tok/s) (stop, cancel=False)
+[strata] done: 40 tokens in 0 s (153356.6 tok/s) (stop, cancel=False)
+[strata] done: 7 tokens in 0 s (170698.4 tok/s) (stop, cancel=False)
+[strata] done: 40 tokens in 0 s (169466.8 tok/s) (stop, cancel=False)
+[strata] done: 7 tokens in 0 s (162210.7 tok/s) (stop, cancel=False)
+[strata] done: 40 tokens in 0 s (167270.3 tok/s) (stop, cancel=False)
+[strata] done: 7 tokens in 0 s (180123.5 tok/s) (stop, cancel=False)
+.[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+[strata] 400 invalid request: response_format schema must accept only JSON objects at its root (type object, or anyOf/oneOf of object schemas)
+..[strata] done: 255 tokens in 0 s (65284.0 tok/s) (stop, cancel=False)
+[strata] done: 26 tokens in 0 s (179067.2 tok/s) (stop, cancel=False)
+[strata] done: 7 tokens in 0 s (175809.1 tok/s) (stop, cancel=False)
+[strata] done: 13 tokens in 0 s (206537.7 tok/s) (stop, cancel=False)
+.......[strata] VRAM: 4000 MiB free, expert cache 2000 of 6000 MiB (100 experts)
+[strata] images: the expert cache keeps 2048 MiB free for the image encoder (500 of 6000 MiB left)
+[strata] images: the image encoder started in 0.0 s
+[strata] VRAM: 3048 MiB free, expert cache 2952 of 6000 MiB (952 experts)
+[strata] images: the image encoder stopped after 60 s without a picture; the expert cache took its VRAM back (5000 of 6000 MiB)
+.[strata] images: the expert cache did not make room for the image encoder (VRAM needs an engine started with --vram-elastic (one NVIDIA GPU, --serve)); starting it anyway
+[strata] images: the image encoder started in 0.0 s
+.[strata] images: the expert cache keeps 2048 MiB free for the image encoder (3952 of 6000 MiB left)
+[strata] images: the image encoder started in 0.0 s
+[strata] images: the image encoder stopped after 60 s without a picture; the expert cache took its VRAM back (6000 of 6000 MiB)
+[strata] images: the expert cache keeps 2048 MiB free for the image encoder (3952 of 6000 MiB left)
+[strata] images: the image encoder started in 0.0 s
+.[strata] images: the expert cache keeps 2048 MiB free for the image encoder (3952 of 6000 MiB left)
+[strata] images: the image encoder started in 0.0 s
+[strata] model unloaded; the next request loads it again
+..[strata] images: the expert cache keeps 2048 MiB free for the image encoder (3952 of 6000 MiB left)
+[strata] images: the image encoder started in 0.0 s
+.....[strata] 400 invalid request: VRAM needs an engine started with --vram-elastic (one NVIDIA GPU, --serve)
+.[strata] 400 invalid request: reserve_mib: a whole number of MiB (0 or more), or null for the start's
+[strata] 400 invalid request: reserve_mib: a whole number of MiB (0 or more), or null for the start's
+[strata] 400 invalid request: reserve_mib: a whole number of MiB (0 or more), or null for the start's
+[strata] 400 invalid request: reserve_mib: a whole number of MiB (0 or more), or null for the start's
+[strata] refused an API request from the web page 'https://other.example' (no API key; add its host to "allowed_hosts" or its origin to "cors_origins" in the config)
+.[strata] VRAM: 4000 MiB free, expert cache 2000 of 6000 MiB (100 experts)
+[strata] VRAM: 700 MiB free, expert cache 5300 of 6000 MiB (3300 experts)
+.[strata] loading the model again (it was unloaded) ...
+[strata] the engine is running again
+.sss
+----------------------------------------------------------------------
+Ran 801 tests in 316.284s
+
+OK (skipped=11)
diff --git a/docs/work/evidence/tauri-artifact.txt b/docs/work/evidence/tauri-artifact.txt
new file mode 100644
index 000000000..027c177e9
--- /dev/null
+++ b/docs/work/evidence/tauri-artifact.txt
@@ -0,0 +1,21 @@
+Tauri macOS candidate (internal development candidate, UNSIGNED)
+
+DMG: /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/dmg/Strata_0.1.0_aarch64.dmg
+ bytes: 45379455
+ sha256: f9bd581b63254abf57a9603c73e17cd41af84ac337a0cdbdd4540a5b29afbb55
+
+APP: /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/macos/Strata.app
+ size: 129M /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/macos/Strata.app
+
+Engine: /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/build-metal/strata
+ sha256: aef25be339b60ad56d34c192847bd59e4351779eed6a1de9166f81836041ee3f /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/build-metal/strata
+
+Bundled private runtime: Node v24.12.0
+
+Terminal: /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/release/artifacts/strata-terminal-0.1.44.1-darwin-arm64.tar.gz
+ sha256: 6e08b101d47551e5e2ae2de2cdc5fd2b5560f13087f09bcce19c48f88eed0a14 /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/release/artifacts/strata-terminal-0.1.44.1-darwin-arm64.tar.gz
+
+Install/run:
+ hdiutil attach '/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/dmg/Strata_0.1.0_aarch64.dmg'; cp -R '/Volumes/Strata 0.1.0/Strata.app' /Applications/
+ open -a /Applications/Strata.app
+ '/Applications/Strata.app/Contents/MacOS/strata-desktop' --self-test=/tmp/report.json
diff --git a/docs/work/evidence/tauri-selftest-from-dmg.json b/docs/work/evidence/tauri-selftest-from-dmg.json
new file mode 100644
index 000000000..7421562c8
--- /dev/null
+++ b/docs/work/evidence/tauri-selftest-from-dmg.json
@@ -0,0 +1,49 @@
+{
+ "carrier": "tauri",
+ "error": "",
+ "kind": "strata-desktop-self-test",
+ "ok": true,
+ "schemaVersion": 1,
+ "steps": [
+ {
+ "detail": "/Volumes/Strata 0.1.0/Strata.app/Contents/Resources",
+ "name": "resources-packaged",
+ "ok": true
+ },
+ {
+ "detail": "/Volumes/Strata 0.1.0/Strata.app/Contents/Resources/host/server/index.mjs",
+ "name": "host-entry-present",
+ "ok": true
+ },
+ {
+ "detail": "/Volumes/Strata 0.1.0/Strata.app/Contents/Resources/host/dist",
+ "name": "ui-dist-present",
+ "ok": true
+ },
+ {
+ "detail": "/Volumes/Strata 0.1.0/Strata.app/Contents/Resources/node/node",
+ "name": "private-node-runtime",
+ "ok": true
+ },
+ {
+ "detail": "pid 8175",
+ "name": "host-spawned",
+ "ok": true
+ },
+ {
+ "detail": "http://127.0.0.1:49782/api/health answered 2xx",
+ "name": "host-healthy",
+ "ok": true
+ },
+ {
+ "detail": "http://127.0.0.1:49782/",
+ "name": "ui-served",
+ "ok": true
+ },
+ {
+ "detail": "GET /api/health",
+ "name": "api-reachable-on-same-origin",
+ "ok": true
+ }
+ ]
+}
\ No newline at end of file
diff --git a/docs/work/evidence/tauri-selftest.json b/docs/work/evidence/tauri-selftest.json
new file mode 100644
index 000000000..09cd69fb7
--- /dev/null
+++ b/docs/work/evidence/tauri-selftest.json
@@ -0,0 +1,49 @@
+{
+ "carrier": "tauri",
+ "error": "",
+ "kind": "strata-desktop-self-test",
+ "ok": true,
+ "schemaVersion": 1,
+ "steps": [
+ {
+ "detail": "/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/macos/Strata.app/Contents/Resources",
+ "name": "resources-packaged",
+ "ok": true
+ },
+ {
+ "detail": "/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/macos/Strata.app/Contents/Resources/host/server/index.mjs",
+ "name": "host-entry-present",
+ "ok": true
+ },
+ {
+ "detail": "/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/macos/Strata.app/Contents/Resources/host/dist",
+ "name": "ui-dist-present",
+ "ok": true
+ },
+ {
+ "detail": "/Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/apps/desktop/src-tauri/target/release/bundle/macos/Strata.app/Contents/Resources/node/node",
+ "name": "private-node-runtime",
+ "ok": true
+ },
+ {
+ "detail": "pid 6759",
+ "name": "host-spawned",
+ "ok": true
+ },
+ {
+ "detail": "http://127.0.0.1:49613/api/health answered 2xx",
+ "name": "host-healthy",
+ "ok": true
+ },
+ {
+ "detail": "http://127.0.0.1:49613/",
+ "name": "ui-served",
+ "ok": true
+ },
+ {
+ "detail": "GET /api/health",
+ "name": "api-reachable-on-same-origin",
+ "ok": true
+ }
+ ]
+}
\ No newline at end of file
diff --git a/docs/work/evidence/terminal-dist.txt b/docs/work/evidence/terminal-dist.txt
new file mode 100644
index 000000000..116443555
--- /dev/null
+++ b/docs/work/evidence/terminal-dist.txt
@@ -0,0 +1,36 @@
+# Standalone terminal distribution — verified in a clean environment
+# repo: 6c757783ea17c7dfa460a389a83e9fe081d1ba88
+
+artifact : /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/release/artifacts/strata-terminal-0.1.44.1-darwin-arm64.tar.gz
+bytes : 42480892
+sha256 : fafa0076fd30f9fa3d3f1250d8afbf39225bddb80e07a3d818bae2b01e2814d8
+bundled : python-build-standalone CPython 3.12.15 (pin verified against setup.sh's SHA-256)
+deps : requirements.txt installed into the bundled interpreter
+
+# Test: extracted to an unrelated path, moved again, and run with
+# env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin HOME=$HOME
+# The only Python on that PATH is macOS's own 3.9, which the launcher correctly rejects as
+# below the 3.10 floor — so every command below ran on the BUNDLED interpreter.
+
+strata --help -> full command set, including timeskip and tune
+strata status -> exit 3 on a dead URL (the documented 'control unreachable' code)
+strata timeskip list -> {"schema_version":1,"ok":true,"runs":[]}
+strata tune plan -> read the real Metal engine's flags and planned the sweep
+serve (bundled python) -> /health ok, chat completion returned, CLI status showed LIVE
+
+# A second defect found by the same clean-environment work: the launcher's dependency probe ran for
+# --help as well as serve, so `strata --help` refused to run on an interpreter that could have
+# answered it. The CLI imports serve.* lazily, so --help, status, monitor, timeskip and tune plan
+# are stdlib-only and must work on a bare interpreter. The probe now covers only the API server.
+# Re-verified: --help exit 0 on a bare interpreter, serve exit 5 on the same one.
+
+# Rebuilt after was added. Re-verified in the clean environment: the run
+# subcommand is present and performs a real sweep (plan -> baseline -> candidates -> report) using
+# only the bundled interpreter.
+
+# Rebuilt after the offline policy, component packages and the tool-flow work. Re-verified in the
+# clean environment: --help, and all run on the bundled interpreter.
+
+# Rebuilt after the offline policy, the component packages and the tool-flow work.
+# Re-verified in the clean environment: --help, `components backends` and `tune` all run on
+# the bundled interpreter.
diff --git a/docs/work/evidence/terminal-suite.txt b/docs/work/evidence/terminal-suite.txt
new file mode 100644
index 000000000..023fc46ef
--- /dev/null
+++ b/docs/work/evidence/terminal-suite.txt
@@ -0,0 +1,5 @@
+# Terminal + server test evidence
+# command: python -m unittest discover -s tests/terminal -t tests/terminal -p 'test_*.py'
+# python: Python 3.11.15 on Darwin arm64
+# repo: 05bfff689e31843e06f4db3fe6e537fc9fde1649
+# result: Ran 222 tests ... OK
diff --git a/docs/work/evidence/timeskip-harness.txt b/docs/work/evidence/timeskip-harness.txt
new file mode 100644
index 000000000..13d93309f
--- /dev/null
+++ b/docs/work/evidence/timeskip-harness.txt
@@ -0,0 +1,25 @@
+# Real Time-skip driven by a real Harness revision attempt
+# repo: 12432d29f48bd86954d3715f36c785d6614546ad
+# worker: Strata API worker, MockEngine on 127.0.0.1:8095 (no weights fit this Mac)
+# agent: DeepSeek Harness CLI 0.2.0-rc.2 with the Strata profile
+# command:
+# strata timeskip run --workspace /tmp/ts-harness-demo \
+# --prompt 'Add a status line with the value draft. Keep everything else exactly as it is.' \
+# --attempts 1 --revise-command '<python> integrations/harness/revise_once.py --deadline 200'
+
+run ee1f8ab4c2ae4833b114ae32f6d52957
+state completed
+workspace /tmp/ts-harness-demo
+prompt Add a status line with the value draft. Keep everything else exactly as it is.
+ cp1-baseline 75069f85862a has-status=failed, has-title=passed
+ attempt 1: reject - deterministic check(s) failed: has-status
+decision inconclusive (every candidate was rejected; the retained version is the baseline)
+retained cp1-baseline
+ needs user review: the evidence does not justify an automatic choice
+
+# worker activity at the end: {'requests': 2, 'in_flight': 0, 'last_request_at': 1792037442}
+# workspace after the run (the run must not write to it):
+# title: notes
+# owner: nik
+# rejected candidate kept for inspection at:
+# /tmp/ts-harness-runs/ee1f8ab4c2ae4833b114ae32f6d52957/candidates/attempt1/
diff --git a/docs/work/evidence/timeskip-http.txt b/docs/work/evidence/timeskip-http.txt
new file mode 100644
index 000000000..48c548b5b
--- /dev/null
+++ b/docs/work/evidence/timeskip-http.txt
@@ -0,0 +1,16 @@
+# Time-skip through the App Host HTTP API
+# repo: bac3f829e92ace1ddd080e502d1f1191d3374c41
+# The job is Strata Control's (strata_control/time_skip.py); the Host only starts, follows
+# and applies it, and never computes a status of its own.
+
+GET /api/timeskip -> run list
+GET /api/timeskip/status?id=<run> -> one durable record
+POST /api/timeskip/start -> start a job; returns immediately with the run
+POST /api/timeskip/apply -> apply or preview; 409 on a concurrent user edit
+
+# Observed:
+# start -> phase completed, attempt 1 rejected ('deterministic check(s) failed: has-three')
+# checks recorded per checkpoint: has-three=failed, nonempty=passed
+# status -> needsUserReview true, decision inconclusive
+# apply --dry-run -> applied false, would_write []
+# apply after a user edit -> HTTP 409, conflict true, workspace preserved verbatim
diff --git a/docs/work/evidence/timeskip-suite.txt b/docs/work/evidence/timeskip-suite.txt
new file mode 100644
index 000000000..1029f9b66
--- /dev/null
+++ b/docs/work/evidence/timeskip-suite.txt
@@ -0,0 +1,5 @@
+........................
+----------------------------------------------------------------------
+Ran 24 tests in 0.598s
+
+OK
diff --git a/docs/work/evidence/tool-flow.txt b/docs/work/evidence/tool-flow.txt
new file mode 100644
index 000000000..135901d61
--- /dev/null
+++ b/docs/work/evidence/tool-flow.txt
@@ -0,0 +1,56 @@
+# Tool execution, approval and cancellation (checklist A03, A04, A05)
+# repo: f7980024bf203512ad12d702b68a0d5a85cb889a
+# command: python integrations/harness/tool_flow_e2e.py --dsh <dsh> --base-port <p>
+
+working in <tmp>
+[A03] a read/edit/test workflow: the tool runs once, in the Harness
+ turn ended as 'completed'; 2 tool-related event(s)
+ the workspace marker has 1 line(s)
+ the peer answered 1 of 1 approval(s): ['allowed-once']
+ the worker recorded 2 request(s) and executed nothing itself
+ PASS A03
+
+[A04] with no answerer that decides, the approval fails closed and the tool does not run
+ turn ended as 'completed'
+ the marker file exists: False
+ the escalation was asked 1 time(s) and decided ['unavailable']
+ PASS A04 (the escalation was decided 'unavailable' and the tool did not run)
+
+[A05] Stop settles the turn without the tool having run
+ cancel acknowledged as {"accepted": true}
+ turn ended as 'aborted'
+ PASS A05 (a live turn was stopped and settled as 'aborted')
+
+PASS
+{
+ "A03": {
+ "approval_outcomes": [
+ "allowed-once"
+ ],
+ "approvals_answered": 1,
+ "approvals_asked": 1,
+ "executions": 1,
+ "marker_lines": 1,
+ "tool_events": 2,
+ "turn_end": "completed",
+ "worker_requests": 2
+ },
+ "A04": {
+ "answerer": false,
+ "approval_outcomes": [
+ "unavailable"
+ ],
+ "approvals_asked": 1,
+ "grants": 0,
+ "marker_created": false,
+ "turn_end": "completed"
+ },
+ "A05": {
+ "acknowledgement": {
+ "accepted": true
+ },
+ "marker_created": false,
+ "turn_end": "aborted",
+ "turn_was_live": true
+ }
+}
diff --git a/docs/work/evidence/tuning-apply.txt b/docs/work/evidence/tuning-apply.txt
new file mode 100644
index 000000000..aaf3d38ce
--- /dev/null
+++ b/docs/work/evidence/tuning-apply.txt
@@ -0,0 +1,27 @@
+# Applying and rolling back a tuning recommendation (checklist T07)
+# repo: bfbe5cae5f0796f2c019f418b6a265aa67ee8670
+
+# A sweep recommends; it never writes. The apply is a separate command that re-checks the
+# sweep's artifact identity, snapshots the previous bytes, and verifies before writing.
+
+1. An apply whose identity cannot be re-checked is REFUSED and nothing is written:
+
+ $ strata tune apply <job> --config strata-demo.json
+ strata: the sweep recorded no model digest, so its recommendation cannot be matched to
+ the installed weights; re-run the sweep with --model-path and apply that result
+ config byte-identical: yes
+
+2. With an identity, the apply writes the recommendation and retains the previous bytes:
+
+ $ strata tune apply <job> --config strata-demo.json --model-path model.gguf
+ applied to strata-demo.json
+ + --kv int8
+ - --kv fp16
+ before c7b5a4970be860d2 after da90fb62b8c3e7e5
+ rollback: strata tune rollback 20261015T052436Z-aa873d11c569
+
+ env.STRATA_TOKEN and aliases survive untouched. The command states plainly that the
+ candidate was not verified against a running model, because no supported model fits this
+ machine.
+
+3. Rollback restores the exact previous bytes, and refuses to run twice.
diff --git a/docs/work/evidence/tuning-http.txt b/docs/work/evidence/tuning-http.txt
new file mode 100644
index 000000000..45ce33a5a
--- /dev/null
+++ b/docs/work/evidence/tuning-http.txt
@@ -0,0 +1,23 @@
+# Tuning through the App Host HTTP API
+# repo: 79ead84224f6b6d982b9ca71b02f6a4174cb55e3
+# The job contract is Strata Control's (strata_control/tuning.py), driven through 'strata tune'.
+# The plan is computed from the SELECTED ENGINE BINARY's own --help output, so a sweep cannot
+# be offered a dimension the engine would refuse.
+
+POST /api/tune/plan {engine, backend, model, objective?, trials?, repeats?}
+GET /api/tune/jobs recorded jobs, newest state
+GET /api/tune/job?id=<id> one job's durable record and report
+
+# Observed, metal backend against the real built engine:
+# searches: ple_io, kv, kv_grow, spec_min_p
+# excluded: 7 dimensions, each with a reason
+# flags read from the binary: true
+
+# Observed, cuda backend against the SAME (Metal) binary:
+# vram_reserve -> the engine binary does not accept --vram-reserve-mib
+# pcie_frac -> the engine binary does not accept --pcie-frac
+# (the remaining CUDA dimensions are offered because this binary does accept their flags,
+# which is the check doing its job rather than trusting the backend label)
+
+# There is deliberately no run route: a sweep needs a measurement harness that boots the
+# engine per candidate, and a fabricated measurement is worse than none.
diff --git a/docs/work/evidence/tuning-plan.txt b/docs/work/evidence/tuning-plan.txt
new file mode 100644
index 000000000..a17e73010
--- /dev/null
+++ b/docs/work/evidence/tuning-plan.txt
@@ -0,0 +1,44 @@
+# Engine tuning: the plan for this machine's real Metal engine
+# repo: 3044521c760a860df74f36304bb936a80a041fbd
+# command: strata tune plan --engine build-metal/strata --backend metal --model qwen3.8-flash-next
+
+engine /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/build-metal/strata
+flags read from the binary
+backend metal objective generation repeats 3
+bounds at most 16 trials, 1800s total
+searches:
+ ple_io --ple-io values ['direct', 'mmap', 'ram']
+ kv --kv values ['fp16', 'int8', 'q4_0', 'k8v4']
+ kv_grow --kv-grow values [False, True]
+ spec_min_p --spec-min-p values [0.001, 0.1, 0.5, 0.9]
+excluded:
+ expert_cache the Apple Silicon engine does not parse this flag; it is an NVIDIA/AMD device concept, so a sweep could only record a boot failure
+ host_core the Metal build's CPU-side pool is not exposed; the flag parses but its entry point is one of the unported kernels (metal/src/engine/stubs.cpp)
+ pool_affinity the Metal build's CPU-side pool is not exposed; the flag parses but its entry point is one of the unported kernels (metal/src/engine/stubs.cpp)
+ pool_workers the Metal build's CPU-side pool is not exposed; the flag parses but its entry point is one of the unported kernels (metal/src/engine/stubs.cpp)
+ vram_reserve the Apple Silicon engine does not parse this flag; it is an NVIDIA/AMD device concept, so a sweep could only record a boot failure
+ pcie_frac the Apple Silicon engine does not parse this flag; it is an NVIDIA/AMD device concept, so a sweep could only record a boot failure
+ prompt_cache_tail not a metal setting
+
+Applying a result is a separate step; a sweep never writes the active profile.
+
+# The same command for a CUDA backend, showing the NVIDIA-only dimensions it may search:
+engine /Users/nikoveit/Documents/deepseek-harness/strata-work/strata-rebuild/build-metal/strata
+flags read from the binary
+backend cuda objective generation repeats 3
+bounds at most 16 trials, 1800s total
+searches:
+ ple_io --ple-io values ['direct', 'mmap', 'ram']
+ kv --kv values ['fp16', 'int8', 'q4_0', 'k8v4']
+ kv_grow --kv-grow values [False, True]
+ expert_cache --expert-cache values [0, 1024, 2048, 4096, 8192, 12288, 16384]
+ host_core --host-core values ['first', 'last']
+ pool_affinity --pool-affinity values ['all', 'p-cores', 'auto']
+ pool_workers --pool-workers values [0, 2, 4, 8, 12, 16]
+ spec_min_p --spec-min-p values [0.001, 0.1, 0.5, 0.9]
+ prompt_cache_tail --prompt-cache-tail values [False, True] (benchmark only: never exported)
+excluded:
+ vram_reserve the engine binary does not accept --vram-reserve-mib, so a candidate using this dimension could not start
+ pcie_frac the engine binary does not accept --pcie-frac, so a candidate using this dimension could not start
+
+Applying a result is a separate step; a sweep never writes the active profile.
diff --git a/docs/work/evidence/tuning-suite.txt b/docs/work/evidence/tuning-suite.txt
new file mode 100644
index 000000000..df675343d
--- /dev/null
+++ b/docs/work/evidence/tuning-suite.txt
@@ -0,0 +1,5 @@
+..............................................................................................................................
+----------------------------------------------------------------------
+Ran 126 tests in 6.423s
+
+OK
diff --git a/docs/work/evidence/tuning-sweep.txt b/docs/work/evidence/tuning-sweep.txt
new file mode 100644
index 000000000..b0015c905
--- /dev/null
+++ b/docs/work/evidence/tuning-sweep.txt
@@ -0,0 +1,36 @@
+# A real tuning sweep, end to end, against a stub engine
+# repo: 64fca7e172daa6ec3f811ff4e6a5dfc573b6fe16
+
+# The stub speaks the real serve protocol (READY/PP/T/DONE) and makes its decode speed depend
+# on one flag, so the sweep has something real to find. It is NOT a model: its numbers say
+# nothing about any hardware. It exists so the sweep machinery is exercised without weights,
+# which do not fit this Mac.
+
+$ strata tune run --engine tests/tuning/stub_engine.sh --backend metal --model stub \
+ --trials 4 --repeats 3 --prompt-tokens 16 --max-new 6 \
+ --hold ple_io --hold kv_grow --hold spec_min_p
+
+sweeping kv
+backend metal · objective generation · repeats 3 · at most 4 trials / 1800s
+job 0bd6141d39d94c9fa9aad22957d14d4d -> completed
+ baseline median 20.0 over 3 runs
+ trials 4 of 4
+ drift baseline 20.0 -> 20.0 (+0.0%) — within noise
+ recommend index 2: --kv int8
+ median 24.0 against a baseline of 20.0
+
+ measured through the engine's own serve protocol. Before trusting a recommendation,
+ re-measure the exported configuration through the full API the agent uses, and apply
+ it as a separate reviewed step. No profile has been changed.
+ report: strata tune status 0bd6141d39d94c9fa9aad22957d14d4d
+
+# And a bounded sweep that did NOT find the winner, to show the search space is disclosed:
+
+sweeping ple_io, kv, kv_grow, spec_min_p
+backend metal · objective generation · repeats 2 · at most 6 trials / 1800s
+job 6e0ffef942374f6994fb4e7003693787 -> completed
+ baseline median 20.0 over 2 runs
+ trials 6 of 6 allowed, from 96 possible combinations (a prefix of the enumeration)
+ drift baseline 20.0 -> 20.0 (+0.0%) — within noise
+ recommend none — no candidate beat the baseline outside its own spread; keeping the current configuration
+