Nine conflicts, one hunk each, all of the kind "ds-out removes DeepSeek next to a line that
main's fixes bundle (c1ff07f1a) or f-agent-turn changed". Resolved by keeping the other side's
addition and ds-out's removal (resolutions a-i accepted by the coordinator):
- apps/host/src/lib/native-fit.ts FitInput, apps/host/src/lib/native.ts NativeSize: ds-out's line
(no DeepSeek fields or note) plus main's context_fit field.
- apps/host/src/components/GuidedSetup.tsx, NativeModels.tsx imports: contextCacheGb kept,
deepseekContexts / OLD_DEEPSEEK_CONTEXT out.
- apps/host/tests/ui-r3.test.mjs: ds-out's first assert, main's second (context_fit).
- serve/server.py READY line: f-agent-turn's can_hold kept, the DeepSeek self.multi read out.
- strata_cli/launch/cmd.py: ds-out's suppressed --speed / --full-quality, main's new --gpu help.
- strata_cli/launch/screens.py: ds-out's STEP_LABELS, main's middle_shorten kept,
speed_choice_available out.
- data/settings-register.json: the 39 STRATA_DS4_* entries out.
The register's stale "line" values are not regenerated here.
Commit 5 cleared the remembered model with store.update(), which writes data/state.json. The product changes
nothing of the person's, so the rule moves into server/autostart.mjs: it reads the remembered model, and for a
DeepSeek one logs the approved refusal and returns nothing to start; the value stays in state.json as it was.
Test: tests/autostart-deepseek.test.mjs (the real store on a temporary STRATA_HOME: not started, the line logged,
state.json byte-identical; a Qwen model still starts).
plain-errors.ts: the DeepSeek refusal's sentences are marked [DRAFT] for translation (English in every language
until the owner has the wording list).
- apps/host: the DeepSeek card, note, Speed (DeepSeek) setting, context list, picture tower, engine options, the
"DeepSeek" engine family and its update line go (server/dsv41-context.mjs, server/native-ds-args.mjs,
src/lib/deepseek-context.ts, src/lib/deepseek-speed.ts deleted; native-control, native-settings, engine-library,
native-vision, GuidedSetup, NativeModels, NativeSettings, VersionPicker, EngineUpdateCard, PcFitCard, engine-list,
native-catalog, default-context, native.ts edited). withoutVisionFlag, used by the Qwen path, moves into
native-control.mjs unchanged.
- A model Control lists as retired (strata_control/models.py, commit 2) shows on the Models screen with its line
(the owner's D2) and cannot be loaded: loadEngine stops with Control's refusal (D1) before any fetch, file write or
start; the Manage list and Settings > Storage leave it out (their delete removes files). plain-errors.ts shows the
refusal as Control wrote it, with the approved next step (English; translations come with the owner's word).
The host's autostart clears a remembered DeepSeek model and logs the refusal instead of trying to load it.
- The "DeepSeek speed-ups" switch leaves strata_control/speed_switches.py (a DeepSeek config gets no switch);
app_policy.py loses the DeepSeek rows; policy-generated.mjs and tests/data/policy-vectors.json regenerated with
`python -m strata_control.app_policy`.
- Locales: the 16 DeepSeek-only keys leave all nine languages (fx62-fx69, fx72, fx75, fx77, fx78, fx80, fx81,
vp03). DeepSeek as a cloud provider / search key and the DeepSeek Harness are untouched (owner).
- Tests: the six DeepSeek-only app test files go; the DeepSeek cases of the shared ones become "listed as retired,
refused, nothing saved or started"; test_speed_switches.py loses the DeepSeek switch rows.
- one more switch in strata_control/speed_switches.py (picture_reader): llama.cpp's writes STRATA_VISION_TOWER=mtmd into the model's run config "env", the default writes nothing; the server hands that env to strata-vision, and an older reader ignores it
- shown for a Qwen run config that reads pictures (a "vision" section), never for DeepSeek (its pictures are read inside its own engine)
- a switch can name its group and its two options: the app shows this one inside the existing Image reading group with the two option names; the other switches stay in Speed with On / Off, unchanged
- label, options and help line approved by the owner 11-11 morning (par/OWNER-WORDING-1111.md); the help line is 275 characters, so the 260 limit of the switch texts is 300 for this one row
- [DRAFT] the Terminal row's frame "Picture reader (Strata's own by default; set mtmd to use llama.cpp's). <help line>" (not yet seen by the owner); its Default cell says auto
- policy-generated.mjs and policy-vectors.json regenerated (python -m strata_control.app_policy; vectors gain Qwen, Qwen3.6 and DeepSeek configs with pictures); English strings in fix-en.json; the other eight languages in the next commit
- tests: tests/terminal/test_speed_switches.py (PictureReader: where it shows, the group and words, one entry written and none by default, --set and off, the Terminal row), apps/host/tests/speed-switches.test.mjs and policy-generated.test.mjs
strata_control/own_path_fit.py holds the inputs of the context-fit rule for
Qwen3.6-35B-A3B, in one place:
- 47,104 bytes per token, derived from the engine's allocations (not
measured): each session's fp32 K and V of the 10 attention layers and the
MTP block (45,056 B, alloc_session; setup.py's kv_bytes_per_token) plus
the fp16 copy of K and V the engine keeps at the full context (2,048 B,
Engine::init k16 / v16), which setup's figure left out.
- base 8.55 GiB before the context: derived from the #5715 log (RTX 5070
12 GB, Windows, engine 0.1.59, UD-Q4_K_XL at 64K: 0.45 GiB free after the
session). One field log, the strict end against 7.2-7.65 GiB in the other
logs. A measured start replaces this one number.
- the hybrid mode's minimum after the session: UD-Q4_K_XL 1256 MiB (#5715
log), UD-Q6_K_XL 1760 MiB (#3687 log), Q8_0 taken as UD-Q6_K_XL.
The app's design catalog said 20 KB per token for Qwen3.6; it is 46.
Tests: tests/terminal/test_own_path_fit.py (the figure against the engine
source, the field logs) and apps/host/tests/own-path-fit.test.mjs.
Found by the item 1 gate on l620 (0.2.13 TEST app -> 0.2.14 TEST app): the app came back by itself in 9 s, but
- the update job read "cancelled": the old host's close() marks running jobs cancelled when its shell stops it, and the new host
settled only "running" records. A job with appUpdateFrom saved as cancelled is now settled the same way ("Strata is updated to
<v>", or the "did not finish" error when the same version came back), and this host's close() leaves such a job running.
- each restarted AppImage runtime inherited an fd (1023) into the previous /tmp/.mount_*, so the old runtime and mount stayed until
the app quit. The restarter now closes inherited fds before it starts Strata again.
An Arc user who had just installed the AppImage needed Control 0.1.59.1 and had to find Settings > Updates (ARCFIX 0213). The card's
size line says " (with the Strata setup update)" when the download includes the Control; the job updates the engine, then the
Control, then switches the host to it at once while nothing else runs (no model, job or Control call). Any failure keeps today's
behaviour (it takes effect at the next start). Wording owner-approved 11-09.
The install used the host's own rule (DFlash2 wherever it is served), so on a card where Auto means the MTP (a 12 GB CUDA card
streaming IQ3_S, gfx1201) setup skipped the MTP layer and the first load ran undrafted (QAGUI 0213). One decider now: Control's
drafting plan, at the install and the load; the load right after a setup fetches a still-missing layer. Tests pin that the setup,
the first load and the start agree on 12 GB (MTP) and 24 GB (DFlash2).
Control reports failed-before for a version that failed its test start here (held back a day); the app showed "The engine is up to
date." Now: "Engine <v> didn't start correctly on this computer, so Strata kept engine <old>. Press Update engine to try again."
(the reason behind Details), and the app's Update engine passes --force. Wording owner-approved 11-09.
Setup writes the bundled Control's absolute paths (cwd, --expert-profile) into the run config; the AppImage mounts its Control at a new
/tmp/.mount_<random> at every start. The host repaired them only at a status read, so the engine update's test start ran first with a
dead path, failed, and marked the new engine failed (QAGUI-LIN 0213). The host now repairs before every component job and every load,
and Control's update test start repoints such paths to its own folder (strata_control/control_paths.py).
Control exits 7 both when an engine serves and when another update or check holds the update lock; the app read every exit 7 as
"A model is running" (QAGUI 0213 finding 3: the first-run Download met the app's own start-up check). The lock is now told by its text
(code update_busy), and a component job waits up to 60 s for the lock ("Waiting for the update check to finish…") before it says so.
Control's consent refusal says "the update needs it stopped" instead of "an engine update" (only Control may be pending, ARCFIX E5).
Wording owner-approved 11-09.
Item 6 (owner 11-08, after 0.2.13). engine_library.list_engines adds one family per installed shape engine (shape:<shape>, an id never
shown; title None), after the Qwen and DeepSeek families; a PC without one lists what it did before. use_engine pins within the shape's
own folder (engine.pinned in its .updates/state.json, which every start of that shape's model reads), the newest unpinned;
delete_engine refuses the one in use and one a running program uses with the existing lines and drops a stale pin. The Strata engine's
files and state are untouched. The app titles the group with the model's catalog title (qwen4exp_<shape>), the shape's name without
one; the Terminal prints the shape's name. --family takes shape:<shape> (help and errors unchanged). No new words.
ecccc359d left no reserve on a uma card whose config had none of setup's. On Windows the engine then applies its own 2560 MiB floor,
which hung UD-Q4_K_XL on Strix Halo (G16). The hardware report (tools/strata_mcp.py) now carries setup_reserve_mib on a Windows gfx1151
unified-memory chip, from strata_control/setup_config.UMA_WIN_RESERVE_MIB under setup's own condition; the app uses it on a one-card
run, and without it (Linux, an older Control) keeps 1024 / 2048 with pictures as before (#3510 host test back to 2048).
QAGUI-STRIX 11-09: the app's resource profiles rewrote setup's --vram-reserve-mib 700 to 1024 (2048 with pictures): the display-card
floor (#2065, a card whose driver pages its memory to RAM) was applied to a chip whose memory is the RAM. On a uma card the reserve
is now the one setup wrote (the profile baseline), on both profiles and with pictures on or off; none when setup wrote none (the
engine's default). --pool-workers stays with "Leave room for my work".
tests/snapshot/test_strix_app_reserve.py: the Models-screen Load (work and performance) and strata launch start the same engine line
on Windows Strix Halo from setup's config, apart from --pool-workers. app_driver.mjs takes STRATA_SNAPSHOT_APP_ARGS for it (goldens unchanged).
QAGUI-STRIX 11-09 finding 4: the off was saved (ui_vision_enabled false), but the page honoured a saved off only when the picture
files were prepared (the guard for the off 0.2.9 saved while the engine had no reader), so the box came back ticked and Load
fetched the 866 MB picture reader. A load with a picture choice now also writes ui_vision_chosen (not when the engine has no
reader); the host reports it as visionChosen; openingVision() honours an off when the files are prepared or the marker is there.
A file without the marker behaves exactly as before. server/native-control.mjs: two short edits (visionPreferences, installedInfo),
run-config-check.mjs: the key.
/run/media/<user>/<drive> (udisks) sat inside /run, which was refused whole, so the AppImage, the Terminal and the AI-tool installer all said "is a system folder" for a
drive the person plugged in. A path strictly inside /run/media is not a system folder now (strata_control/folders.py, tools/strata_mcp.py, the chat project folder in
apps/host/server/chat-files.mjs); whether the drive is theirs is the existing write test. /run, /run/media itself, /run/user, /run/systemd, /usr, /etc, /var/lib and the
rest are still refused, /media/<user> and /mnt stay allowed when writable.
The refusal from setup's data folder said "Nothing was downloaded or changed." twice (the folder words end with it and setup added its own sentence); the first is dropped
for that caller only.
On macOS (Node 24.12) child.kill() on a child whose spawn failed (no pid, the 'error' event not yet delivered) sends the signal to pid 0, which is the
caller's whole process group. folder-dialog.test.mjs's Linux case let the real portalFolder spawn a missing gdbus and end it, so on a Mac the SIGTERM
reached the test runner and every file after it was cancelled ('Promise resolution is still pending'). Linux and Windows do nothing for such a child.
- process-tree.endTree only calls child.kill() when the child has a pid; a new test runs a never-started child through endTree/endTreeThenKill in a
group of its own and checks the caller survives (fails on the Mac without the fix, passes with it).
- folder-dialog.test.mjs: the Linux cases pass portal: async () => null like external-env.test.mjs does, so no real gdbus is started.
- load-pictures, packaged-control and the native fixture build their temp folders under the resolved temp path (/private/var on a Mac), as chat-files
already does; the host reports resolved paths.
m1001 (M4 Mini, macOS 27.2, Node 24.12.0): npm test went from killed after 2 s (722 of 1632 run, 172 cancelled) to 1632 tests, 1522 pass, 0 fail, 110 skipped.
The time-skip tests (timeskip-real, time-skip, timeskip-fork, timeskip-compare-server, tune-and-timeskip-routes, process-tree) passed 20 of 20 runs
before the change and 20 of 20 after.
strata_control/app_policy.py writes apps/host/server/policy-generated.mjs (the four app speed switches with their words, defaults and environment entries, from
speed_switches.py; the Drafting families and the model-name rule, from drafting.py). native-settings.mjs imports it instead of carrying its own copy
(byte-identical values, checked against the old table). tests/terminal/test_app_policy.py fails when the committed file or the vectors are out of date; the host test
runs speedSwitchApplies / resolveDrafter (host and screen) over policy-vectors.json, which the Python writes from its own answers (240 switch cases, 12 names, 7 families).
GPU roles already run shared vectors (tests/data/gpu_roles_vectors.json); the request-slot default stays the app's own (recorded in tests/snapshot/README.md).
No default changes.
fetchAutoDrafter and the plain-Load step gate on the plan's `needed` (the Auto decision's drafter is not on this computer) instead of `tuned_needed`, so the
stock-drafter cases (Intel Arc, UD-Q4_K_XL on NVIDIA 72 GB / 12 GB and the Spark) get the drafter the Terminal's Auto uses. The decision stays Control's.
Snapshot: the app_plain goldens are re-made (18 cells changed against the stored main goldens: the 12 tuned cells the df2ux commit fixed and the 6 stock-drafter cells
this one fixes) and test_entry_points_agree.py pins app_plain == launch and app_models == launch + `drafting: auto` in all 32 cells apart from the allow-list in
tests/snapshot/allowlist.py. With DFlash2 the NVIDIA 72 GB plain Load writes no `parallel` and no --batch-mtp (request slots: recorded in the README).
- drafting plan --model (+ tuned, drafter_gb, tuned_needed, file); mtp or nothing needed says so; launch --plan sees a model not installed yet and a stock pack from 0.2.11
- drafting fetch --throttle (12 h rule, silent when the feed is not there); a bare fetch uses the one installed model's run config
- app: plain load, restart of stopped models and tuning run fetch the tuned drafter when Auto resolves to it; install plan passes the model; Drafting hint number from the plan
- launch plan text shows 0.34 / 0.52 GB, not 0.3 / 0.5
The preview kept a file's first content: openPreview dropped the freshly read item when its id was already a tab, the panel's loading effect had no
content version, and the effect that re-adds a message's artifacts put the stored first copy back. All three change together, through pure rules in
lib/preview-merge.ts: opening a changed file replaces its tab in place; a message's artifact only adds a missing tab or replaces an older, different
copy (each copy carries the time it was read or made) and never overwrites a newer one; both return the same array when nothing changed, so no update
and no loop follows. The panel reloads when (id, content version) changes: a hash of the text, or the host's mtime and size for pictures and PDFs
(/api/files/preview now sends mtime). The reading view is reset by the file, not by its content. Tests: stale case, 2000 alternations without a
change, one load per real change. Real Edge 156 with the real panel: the old rules keep Version One, the new ones show Version Two through 300
sync/render alternations with 0 Markdown renders. No visible text.
A reload does not stop an agent turn, but the page that came back showed "Network error. Try sending the message again."
with no Stop button, and a new message was refused with "This chat is still working". The host now answers GET /api/chat/active
(the chats with a turn running) and POST /api/chat/attach: a running turn sends one catch-up (the start, the text and thinking
so far as a resync frame, every tool card as it is now with the approvals waiting for a yes, the open questions) and then its
live frames; a turn that ended while the page was away is shown whole once, named by the request id of the cut-off reply.
At start the page asks for the running turns, takes each over in the reply it already has (running, Stop button, the
failure it wrote is cleared), and asks once about cut-off replies of the other recent chats; nothing to take over leaves the
reply as it was. Existing states and texts only.
The things that used to run at bootOnce from the chats in memory (follow time-skip runs, end loops the last window left running,
mark tool cards of vanished turns) now run once the chats have been read from the host (resumeSessions), because the chats are
no longer in the page at that moment. The save retry waits a little longer each time (up to a minute) and never keeps a closing
page alive. Also: tests for a second window's changes (applyChatChange) in the parallel-chats test.
The app host saves each chat as its own file (data/chats/<id>.json, an index, a version and a revision in
every file), written to a temporary file, flushed and renamed over the chat, so a crash or a full disk in
the middle keeps the older version whole. The folder and files are owner-only. The page talks to the host
through /api/chats (the page must name itself with x-strata-client; other sites are refused), sends only the
chats that changed, never cuts anything, and keeps a chat the host cannot write whole in memory, retries it,
and says so with the notice and the "Copy unsaved chats" button in all nine languages. A save from an older
copy (a second window) keeps the version it displaces in chats/conflicts. The browser's two older layouts
(the 0.2.10 list and the per-chat entries) are handed to the host once at start and left untouched as a
fallback for one release; a last-moment copy covers a page that is closed before the host confirmed a save.
Other windows are told by an event and take over what changed.
Two chats in one workspace folder: the end-of-turn sweep of chat A listed the files chat B had just written as
chat A's deliverables, and the other way round. A registry shared by the turns of the host (FolderClaims) now
records which chat's file tool wrote which file; the sweep skips files another chat claimed, and for turns that
overlapped in the same folder it also leaves out files nobody claimed (a script's output cannot be told apart),
rather than give them to the wrong chat. A turn that ran alone behaves as before. Chat records, tool cards and
approvals were already keyed by chat id and session id; a store-level test with two interleaved live chats and
the same call id in both pins that down. The per-folder bucket, the shared model cache and the approval-policy
notice described in the issue are Harness and engine behaviour, not changed here.
- gpu_roles.describe(card_numbers=True) prints "GPU <n+1> (--gpu <n>)"; the two test_launch.py assertions are back on the old digits plus the hint. The Terminal has no translation catalog for this line.
- split_engine: the refusal sentence ends "has 7 GiB free)" when the free memory was read (the size, as before, when it was not).
- the desktop app asked `drafting plan` / `drafting fetch` before it unloads the running model, so its own engine counted as busy memory on a model switch and the plan could pick DFlash2 and fetch the 1.2 GB drafter. New flag --engines-unloading (hidden from --help), sent by native-control.mjs for a load that unloads the running instances (not for a model added beside them); same effect as Runner.card_probe. Logic only, no text.
- tests: python (drafting plan with and without the flag), node split-app.test.mjs (flag on the argv, a 2-card model switch, a model added beside).
An integrated GPU cannot report how much room is left (the pool reads 0 MiB free on a start that works). With a chunk above the 16384 default that the person or the environment names (STRATA_PREFILL_AUTO_MAX=32768, --prefill auto:32768) and a UD-Q4_K_XL cache that fills the pool, the driver could not create a stream (PAL failed to submit CMD) and the first launch after the prompt buffers died with HIP 719. Once the prompt path's own buffers are in place the engine now tries one stream, fill and wait; if that fails it prints one line naming the chunk, the cache and the 16384 alternative and ends with exit code 2, before any prompt is read (HIP builds, integrated GPU, own buffers, chunk above 16384 only; the 16384 default, CUDA and Metal are untouched; STRATA_PF_OWN_PROBE_OFF=1 skips it). The failed context cannot be reused, so the engine cannot step down in the same process.
The #1630 warning about a named chunk of 8192 or more no longer prints on gfx1151 (it said a bare --prefill auto stops at 6144, stale since 0.2.8); it is printed once the device is known. STRATA_TRACE marks around the prompt path and the buffer size of the chunk.
setup: the bench tip for --prefill auto:32768 is not said on an APU (apu_hides_chunk_tip). The tuner's prefill_32k arm needs a discrete GPU. The app's saferStart does not retry a start that ended with the chunk refusal (the same chunk would fail again, and a memory setting is not the cause). Tests for all three.
- drafting.blocked_by(named=True): only --pipeline-windows still blocks; Metal keeps the old rule (no per-request drafters there)
- apply/launcher/plan pass the choice; the all-cards split engine runs --draft dflash2 --draft-model PACK only for DFlash2 by name AND --split-engine on
- the split engine's own DFlash2 start line counts as "DFlash2 on"; a split run config with --draft dflash2 is left as it is
- app Drafting hint and Terminal --drafting help say it (owner-approved wording, English only)
- tests: terminal drafting/single/split-parallel, split engine, serve parallel, node parallel-default
Host: draftingPlan/draftingFetch no longer pass --no-split (only when told noSplit, after the draft layer for the split could not be downloaded); the start asks Control
(splitEngine) to turn the run config into the split engine's before the profile is saved, the second try after a failed start is never split, the load waits at least 10 minutes
for a split start, and the Details line says what runs (or that the server started the layer split). A failed MTP layer fetch ends in one plain note and the 0.2.10 layer split
plan. Screen: the split word counts with two or more cards; the download note and the Drafting hint say Auto is the split with the MTP draft layer (text only, two new strings in nine languages).
Tests: tests/split-app.test.mjs (fake Control, 13 tests); drafting.test.mjs and ui-r3.test.mjs updated.