@soleur/opencode 3.374.3 → 3.375.1
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
|
@@ -78,6 +78,7 @@ Two lessons from #9448 belong in every fix-agent and review-seat brief (full acc
|
|
|
78
78
|
- **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`.
|
|
79
79
|
- **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`.
|
|
80
80
|
- **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`.
|
|
81
|
+
- **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.
|
|
81
82
|
- **A brief that asks a seat (or the lead's own battery) to flip a line inside a helper that sends signals or removes files carries the PID-namespace rule.** Run every mutant through `bash "$ROOT/scripts/soleur-sandbox.sh" run-isolated "$SBX" -- <command>` under `timeout -k 5 120` (a mutant that cannot start there, exit 125 with `RUN_IN_PID_NAMESPACE_REFUSED` or any missing script or verb, is `UNVERIFIED-NO-NAMESPACE`, never run on the host); a report-only seat reasons about the line and reports, and the lead mutation-tests the named gap through the verb. The command, the refusal rule and the limits: [work-scratch-sandboxes.md](../../work/references/work-scratch-sandboxes.md).
|
|
82
83
|
- **Verify the lead's own fix edits the way you verify a seat's.** After any splice or prune of a test file, run `git diff origin/main --numstat` and read the DELETED lines unfiltered (a `grep '^[-+]'` hides the context lines an enclosing marker-to-marker splice also removes, and a floor that moves by less than its itemisation is the tell). When a change adds a call inside an extracted unit, `grep -rln` every extractor of that unit by sentinel and by function name before writing "no edit expected". **Why:** #10210 — a splice deleted an unchanged job-budget arm that three seats then found, and a sibling loopback suite extracting the same unit lacked the new helper. See `knowledge-base/project/learnings/2026-10-13-my-review-fix-spliced-away-a-guard-i-never-read-and-a-wait-claimed-300-seconds-it-did-not-wait.md`.
|
|
83
84
|
- **A diff under `docs/legal/` or `knowledge-base/legal/` has no seat arm in `fix-round-seats.sh`, and a legal-wording fix needs the CLO agent, not a vote.** Add `soleur:legal:legal-compliance-auditor` to the panel and to every fix round by hand (the script prints `unknown-seat:` for it), brief the history seat to check published-baseline claims against `origin/main` rather than the panel SHA (a fix round that re-dates an entry reads as an overwrite against the panel SHA), and send every wording doubt to the CLO agent as one batched spawn with the seat reports attached. **Why:** PR #10326 -- see `knowledge-base/project/learnings/2026-10-15-my-correction-pr-wrote-only-and-no-where-the-code-read-showed-more.md`.
|