@soleur/opencode 3.387.1 → 3.387.3

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.387.1",
3
+ "version": "3.387.3",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -352,3 +352,5 @@ NEVER CODE! Just research and write the plan.
352
352
  - **Before a plan prescribes a new helper or subcommand because "the existing tool only does Y", run the existing tool once with the degenerate input** (a blank candidates entry, an empty filter, the identity value) and read the output. A sentence of the form "X cannot do Z" is a claim about behaviour, not a finding. **Why:** #12013/#12025 (PR #12103) - the plan said `glob-rate` only models a candidate edge set and prescribed `suite-rate` (code, a 235-line test, two manifest rows); a blank-entry candidates file reported the same rates, and the tool was removed before merge. See `knowledge-base/project/learnings/2026-11-05-a-new-tool-was-built-for-a-case-the-existing-one-already-handled-and-the-measurement-method-changed-the-mechanism.md`.
353
353
 
354
354
  - **A plan that waives, skips or reorders a gate step must grep for downstream steps whose own skip rests on "because X ran".** A sibling script's comment-level assumption (`grok-fidelity-gate.sh` skipping the AGENTS rule-budget lint because the affected gate ran test-all) silently loses coverage when X is waived, and the banner still says the other steps passed. **Why:** #12294 — found by one architecture seat, missed by design, plan review and the CTO ruling. See `knowledge-base/project/learnings/2026-11-07-a-waived-gate-step-took-a-sibling-steps-skip-optimization-with-it.md`.
355
+
356
+ - **A plan sentence about an open sibling PR (its base, its diff, its counts) is a time-stamped observation: re-read it with `gh` at every re-sync and write the date next to it.** A cleanup PR that waits in review also owes every pinned count to a full suite run on the merged tree after each `origin/main` move. **Why:** #12306 — "#12292 is on a pre-retirement base" was wrong when written, and the PR merged mid-review; main moved three more times before the push. See `knowledge-base/project/learnings/workflow-patterns/2026-11-07-a-cleanup-pr-owes-its-counts-to-the-merged-tree-and-its-premises-to-a-fresh-read.md`.
@@ -79,6 +79,7 @@ Two lessons from #9448 belong in every fix-agent and review-seat brief (full acc
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
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.
82
+ - **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).
82
83
  - **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).
83
84
  - **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`.
84
85
  - **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`.