[GH-ISSUE #8929] [Issue]: Built-in decision model can't be reinstalled after its runtime goes out of date #8558

Closed
opened 2026-11-07 16:43:46 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8929

Originally assigned to: @kolacheee on GitHub.

Summary

When an update changes the built-in decision model's runtime pins (for example uv 0.12.0 to 0.13.5 in DECISION_RUNTIME_MANIFEST), an existing install stops working, and the UI gives no way to repair it. The Decision row turns orange and says "Not available right now", and the header counts it as "1 needs a model". The Built-in model (decisions) window still marks the model Installed and keeps Install selected disabled for it.

Expected behavior

When the model is downloaded but the runtime is out of date, the window offers Reinstall. That rebuilds the runtime and keeps the downloaded weights, which downloadModel already skips by size and hash. The Decision row's warning should also lead to that window.

Actual behavior

  • decisionRuntimeInstalled() is false because runtime-stamp.txt no longer matches serializeDecisionRuntimeManifestStamp(). describeDecisionSlot("decision") then returns not_installed.
  • DecisionModelModal disables Install whenever selected.id === installedId, without looking at runtimeInstalled.
  • In ConnectionDefaults, only the primary slot's no_model/not_installed gets a fix. The decision sidecar slot gets a plain "Unavailable" with no button.
  • The only way out in the UI is Remove and then installing again. That deletes and re-downloads the 4.6 GB of weights. The other way is to call POST /api/decision/sidecar/install by hand.

Steps to reproduce

  1. Install Open-Jev 2B from Add → Decisions → Built-in model (decisions) and pick it for the Decision job.
  2. Update to a build whose DECISION_RUNTIME_MANIFEST differs (or edit data/sidecar-runtime/decision/runtime-stamp.txt).
  3. Open Connections. Decision is orange, and the window shows Installed with Install disabled.

Environment

  • Marinara Engine version: staging / ui/kolacheee (Nov 2026)
  • Install type: source
  • OS + version: Linux, NVIDIA GPU
  • Browser or app shell: browser

Logs, screenshots, or video

The stamp on disk had "uv":{"version":"0.12.0",…}, while the manifest now pins 0.13.5.

Additional context

The workaround is to run fetch('/api/decision/sidecar/install', {method:'POST', headers:{'content-type':'application/json','x-marinara-csrf':'1'}, body: JSON.stringify({modelId:'open-jev-2b'})}) from the browser console. It rebuilds the runtime and keeps the weights.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8929 Originally assigned to: @kolacheee on GitHub. ## Summary When an update changes the built-in decision model's runtime pins (for example uv 0.12.0 to 0.13.5 in `DECISION_RUNTIME_MANIFEST`), an existing install stops working, and the UI gives no way to repair it. The Decision row turns orange and says "Not available right now", and the header counts it as "1 needs a model". The **Built-in model (decisions)** window still marks the model **Installed** and keeps **Install selected** disabled for it. ## Expected behavior When the model is downloaded but the runtime is out of date, the window offers **Reinstall**. That rebuilds the runtime and keeps the downloaded weights, which `downloadModel` already skips by size and hash. The Decision row's warning should also lead to that window. ## Actual behavior - `decisionRuntimeInstalled()` is false because `runtime-stamp.txt` no longer matches `serializeDecisionRuntimeManifestStamp()`. `describeDecisionSlot("decision")` then returns `not_installed`. - `DecisionModelModal` disables Install whenever `selected.id === installedId`, without looking at `runtimeInstalled`. - In `ConnectionDefaults`, only the `primary` slot's `no_model`/`not_installed` gets a fix. The decision sidecar slot gets a plain "Unavailable" with no button. - The only way out in the UI is **Remove** and then installing again. That deletes and re-downloads the 4.6 GB of weights. The other way is to call `POST /api/decision/sidecar/install` by hand. ## Steps to reproduce 1. Install Open-Jev 2B from **Add → Decisions → Built-in model (decisions)** and pick it for the Decision job. 2. Update to a build whose `DECISION_RUNTIME_MANIFEST` differs (or edit `data/sidecar-runtime/decision/runtime-stamp.txt`). 3. Open Connections. Decision is orange, and the window shows Installed with Install disabled. ## Environment - Marinara Engine version: staging / ui/kolacheee (Nov 2026) - Install type: source - OS + version: Linux, NVIDIA GPU - Browser or app shell: browser ## Logs, screenshots, or video The stamp on disk had `"uv":{"version":"0.12.0",…}`, while the manifest now pins `0.13.5`. ## Additional context The workaround is to run `fetch('/api/decision/sidecar/install', {method:'POST', headers:{'content-type':'application/json','x-marinara-csrf':'1'}, body: JSON.stringify({modelId:'open-jev-2b'})})` from the browser console. It rebuilds the runtime and keeps the weights. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-11-07 17:37:14 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8558
No description provided.