Switch remediation worker to OpenCode Go longcat-2.5-preview-free #328

Closed
opened 2026-10-14 13:15:02 +01:00 by nimmo · 1 comment
Owner

Context

The auto-update remediation worker currently uses a local Ollama instance on Nova with qwen3.6:35b-a3b-q8_0. In practice, local quantized Qwen 35B frequently struggles with prompt compliance or fails to return acceptable structured JSON proposals within the 600s deadline, resulting in ambiguous diagnosis failures.

Objectives

  1. Update remediation/nova-policy.json to use OpenCode Go with model longcat-2.5-preview-free (1M context, temperature-compatible, free).
  2. Update scripts/nixos_update_remediation/model.py to copy OpenCode Go credentials into the Bubblewrap sandbox (/home/remediation/.local/share/opencode/auth.json) and configure enabled_providers for opencode-go.
  3. Update scripts/nixos_update_remediation/core.py, cli.py, and regression tests to validate the new model policy.
  4. Verify regression test suite passes.
### Context The auto-update remediation worker currently uses a local Ollama instance on Nova with `qwen3.6:35b-a3b-q8_0`. In practice, local quantized Qwen 35B frequently struggles with prompt compliance or fails to return acceptable structured JSON proposals within the 600s deadline, resulting in ambiguous diagnosis failures. ### Objectives 1. Update `remediation/nova-policy.json` to use OpenCode Go with model `longcat-2.5-preview-free` (1M context, temperature-compatible, free). 2. Update `scripts/nixos_update_remediation/model.py` to copy OpenCode Go credentials into the Bubblewrap sandbox (`/home/remediation/.local/share/opencode/auth.json`) and configure `enabled_providers` for `opencode-go`. 3. Update `scripts/nixos_update_remediation/core.py`, `cli.py`, and regression tests to validate the new model policy. 4. Verify regression test suite passes.
Author
Owner

Resolved by PR #329.

  • Switched policy remediation/nova-policy.json to OpenCode Go with model longcat-2.5-preview-free.
  • Implemented runner credential bridge with fail-closed security guarantees, bounded read, single provider filter (opencode-go), and secret leak detection.
  • Pre-flighted credential check at intake so configuration issues do not consume the per-incident single attempt budget.
  • Confirmed live Bubblewrap execution on runner nova and verified all regression tests, integration tests, and CI checks pass.
Resolved by PR [#329](https://git.nimmog.uk/nimmo/nixos-config/pulls/329). - Switched policy `remediation/nova-policy.json` to OpenCode Go with model `longcat-2.5-preview-free`. - Implemented runner credential bridge with fail-closed security guarantees, bounded read, single provider filter (`opencode-go`), and secret leak detection. - Pre-flighted credential check at intake so configuration issues do not consume the per-incident single attempt budget. - Confirmed live Bubblewrap execution on runner `nova` and verified all regression tests, integration tests, and CI checks pass.
nimmo closed this issue 2026-10-14 15:20:38 +01:00
Sign in to join this conversation.
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
nimmo/nixos-config#328
No description provided.