@soleur/opencode 3.402.0 → 3.404.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.402.0",
3
+ "version": "3.404.0",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,6 +9,7 @@
9
9
  apps/web-platform/infra/arm-heartbeats.test.sh P if [[ "$seen" -ge "$FAKE_CUT_AFTER" ]]; then kill -9 "$PPID" 2>/dev/null; exit 0; fi
10
10
  apps/web-platform/infra/git-data-luks-reopen.test.sh P [ -f "$FX/luksopen_kill" ] && kill -TERM "$PPID"
11
11
  apps/web-platform/infra/git-data-refs-assert.test.sh W p="$(awk '/^PPid:/ {print $2}' "/proc/$p/status")"
12
+ apps/web-platform/infra/kernel-currency.test.sh P c=$(tr '\0' ' ' < "/proc/$PPID/cmdline" 2>/dev/null) || c=; case "$c" in *"$KC_RUN"*) kill -KILL "$PPID" ;; *) echo "REFUSED reboot parent-not-run.sh" >> "$KC_CAP"; exit 65 ;; esac
12
13
  apps/web-platform/infra/run-registered-suites.test.sh P kill -9 "$_shim" 2>/dev/null
13
14
  apps/web-platform/infra/workspaces-boot-unlock.test.sh P [ -f "$FX/luksopen_kill" ] && kill -TERM "$PPID"
14
15
  apps/web-platform/infra/workspaces-luks-provision.test.sh P [ -f "$st/crash_after_luksFormat" ] && kill -9 "$PPID"
@@ -80,7 +80,7 @@ Two lessons from #9448 belong in every fix-agent and review-seat brief (full acc
80
80
  - **Two review-environment traps (#9505).** (1) The guardrail hook refuses writes into the shared git dir (`$(git rev-parse --git-dir)` resolves under the bare checkout) whenever other worktrees exist, so a fix brief cannot be persisted there: write it to the session scratchpad under a lead-unique name and re-derive from the PR if the session is lost. (2) a `TEST_GROUP=affected` run of `scripts/test-all.sh` queues behind every other worktree's full-gate run (`LOCK_WAIT_HEARTBEAT ... position=N of 7200s`) and the runner flags a commit made during its run as a suite writing to the repo: read the runner's `--capacity` verdict first and, if it is queued, stop it and rely on the targeted suites rather than let it race a fix commit. See `knowledge-base/project/learnings/2026-10-05-the-advice-i-added-to-the-abort-message-satisfied-the-assertions-written-against-it.md`.
81
81
 
82
82
  - **Re-attach before the first commit after a panel returns, and test the branch name for EMPTY.** Report-only seats still run `git checkout --detach`, and `git branch --show-current && git commit …` does not stop on a detached HEAD because the empty output exits 0 (#9584: a fix commit landed detached). Guard with `[ -n "$(git branch --show-current)" ] || { echo DETACHED; exit 1; }`; recover with `git branch -f <branch> HEAD && git switch <branch>`. See `knowledge-base/project/learnings/2026-10-06-a-truncated-sweep-blamed-the-nav-drawer-and-a-redundant-alternative-hid-a-regression.md`.
83
- - **A seat must never mutation-test the LIVE worktree, and a bare-root `git` call reviews the wrong tree.** On #6760's fix rounds one seat `sed`-mutated `run-scan.sh` in place (restored after probing) and a second seat reported the residue as an uncommitted P1; two other seats ran `git diff origin/main...HEAD` in the bare checkout where the branch isn't checked out and nearly read an empty diff. Brief every seat to (a) open with `cd <worktree> && pwd` and confirm `git rev-parse --show-toplevel` is the worktree, and (b) apply mutants to a scratch copy under `mktemp -d`, never the tree under review. See `knowledge-base/project/learnings/workflow-patterns/2026-10-12-fix-rounds-catch-the-regressions-the-fix-introduced.md`.
83
+ - **A seat must never mutation-test the LIVE worktree, and a bare-root `git` call reviews the wrong tree.** On #6760's fix rounds one seat `sed`-mutated `run-scan.sh` in place (restored after probing) and a second seat reported the residue as an uncommitted P1; two other seats ran `git diff origin/main...HEAD` in the bare checkout where the branch isn't checked out and nearly read an empty diff. Brief every seat to (a) open with `cd <worktree> && pwd` and confirm `git rev-parse --show-toplevel` is the worktree, and (b) apply mutants to a sandbox from the allocator (review/SKILL.md, the mutating-seat sandbox rule), never the tree under review. See `knowledge-base/project/learnings/workflow-patterns/2026-10-12-fix-rounds-catch-the-regressions-the-fix-introduced.md`. A failed `cd` into the sandbox falls through to the live tree, and a sandbox under a git-tracked directory (such as a home-directory repo) resolves to that repo, so every Bash call that runs git in the sandbox starts with the check in the same call: `cd "$SBX" || exit 1; [ "$(git rev-parse --show-toplevel 2>/dev/null)" = "$SBX" ] || { echo NOT-SBX; exit 1; }`. A Bash call's cwd does not carry to the next call, so a check in one call protects no git command in another. An allocated sandbox has no `.git`, so the check fails until the seat runs `(cd "$SBX" && git init -q && git add -A)` (work-scratch-sandboxes.md); a probe that needs no repo runs no git there. **Why:** #12705 — a seat's probe ran after a failed `cd` and switched the live worktree to an orphan branch.
84
84
  - **Never edit a script while a suite is still executing it — bash reads a running script incrementally.** During #10117's fix rounds the affected battery (`bash <plugin-root>/scripts/test-all-affected.test.sh`, ~13 min) was mid-run when fix edits landed twice; each edit shifted the file's byte offsets and the still-running process re-read corrupted text, forcing a kill and a full re-run. Check `pgrep -f <suite>` before editing a suite file, or hold edits until the run completes — the fix commits need a fresh battery either way. See `knowledge-base/project/learnings/workflow-patterns/2026-10-14-bash-reads-a-running-script-incrementally-mid-run-edits-corrupt-it.md`.
85
85
  - **Tell every seat to RETURN its report instead of parking on a Monitor.** A seat that ended its turn "waiting on its own monitor" sat idle about 4.5 hours on #10111 until the lead resumed it with `SendMessage`; its transcript showed only an interim line. Ask for the final report within the seat's own run (a bounded wait, then report what is verified and say what is not), and if a seat shows only an interim, resume it once rather than waiting on a notification that is not coming.
86
86
  - **Fix agents obey the same rule as seats: finish in the foreground.** Brief a fix agent to run its suites with `timeout` in the foreground and to report only after it has the exit code; one that ended a turn "waiting on its own monitor" left unfinished work and a stale exact floor (`EXPECTED_PASSES` 96, real 131) and sat idle about 45 minutes until the lead resumed it with `SendMessage`. Check the exact-floor constant against a green run before committing a fix batch. See `knowledge-base/project/learnings/2026-11-07-a-guard-must-equal-the-platforms-own-reader-not-yaml-semantics.md` (#12295).