@soleur/opencode 3.354.33 → 3.355.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.354.33",
3
+ "version": "3.355.1",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -329,3 +329,4 @@ NEVER CODE! Just research and write the plan.
329
329
  - **Write the guard-contract mutation table directly under a bold `**Mutation matrix.**` line.** `lint-guard-contract.py` counts rows only after that field marker, so an unlabelled table reads as 0 rows and the contract check fails for a reason the table does not show. **Why:** #10455 plan (2026-10-20).
330
330
  - **A causal attribution in a plan ("since #N, X happens", "PR #N introduced the capture") names what #N CONTAINS, not what it CHANGED — verify it with `git log -S <mechanism>` and read what the commit removed or moved before it is written, because the sentence then propagates into headers, ADRs and test comments.** The fix for an observation-channel loss is only as good as the date the channel changed: #10786 credited #8763 with introducing a per-suite capture that dates from #7423; #8763 only moved the rehearsal suite out of its own workflow step into that already-capturing runner. A sweep of the corrected claim must grep its PARAPHRASES across the touched files, not the one phrasing. **Why:** #10786 — six artifacts carried the wrong attribution until the history seat falsified it. See `knowledge-base/project/learnings/2026-10-22-a-probe-went-blind-when-its-suite-moved-into-the-capturing-runner-not-when-capture-began.md`.
331
331
  - **A canary plan names the OTHER jobs that will be red on its PR shape before it claims a run-level result.** A throwaway DRAFT PR carries the draft-light `test` leg, which concludes RED on every draft by design (ADR-276 Option R), so it can show how one job renders but never what the run concludes; either design the canary so nothing else is red, or state the claim at the level the canary can read. Verify the canary fixture trips the real check locally before pushing it. **Why:** #10851 — the `affected-index-ratchet` canary measured the job-level `failure` but its run conclusion was confounded, after four sites had asserted "continue-on-error keeps the run green" unmeasured. See `knowledge-base/project/learnings/2026-10-23-an-advisory-job-claimed-to-keep-the-run-green-before-anyone-measured-it-and-the-canary-could-not-isolate-it.md`.
332
+ - **A guard, envelope or sanitizer on a field protects only the paths where something WRITES that field — grep for the PRODUCER before planning the consumer, and enumerate the channel set from the tool/prompt definitions, not from the issue's list.** A plan that wraps `scrubbedContent` (or any field a template reads) can pass its own tests, a reviewer panel and an ADR while no production code ever sets the field; a consumer-side test that fixtures the field by hand cannot reveal it. Run `git grep -n '<field>' -- <server dirs>` and confirm a non-test, non-template writer exists; if none, say the guard is latent in the plan, not live. For a "frame every channel that carries X" feature, list the channels with a grep over the tool and prompt definitions for the data class (e.g. every MCP tool whose result includes issue/PR text), because an issue's own surface list is the author's memory. **Why:** #10194 — the leader-prompt envelope had no feeder (five review seats found it) and `workstream_issues_list`, which returns issue titles and descriptions to the agent, was missing from the issue, the plan and the first-pass panel. See `knowledge-base/project/learnings/2026-10-25-a-framing-guard-for-a-channel-nobody-feeds-ships-green-and-inert.md`.
@@ -85,6 +85,8 @@ Two lessons from #9448 belong in every fix-agent and review-seat brief (full acc
85
85
 
86
86
  - **A fix agent's "suite green" covers only the files it was given; brief it on the repo-global ratchets by name, and run the combined-tree gate BEFORE the fix-round panel.** Editing a floor means running `scripts/guard-vacuity-floor.test.sh` (its floor detector parses only `-lt|-le|-ge`, so a `-ne` rewrite drops the file from the promoted set); adding a test that reads outside `apps/web-platform` means registering it in `test/repo-wide-suites.ts` (`repo-wide-containment.test.ts`); refactoring a symbol another test pins as source text means `git grep` of the old literal across `test/`. The lead then runs the affected gate or those suites by name on the COMBINED tree before spawning seats, so the panel reviews a tree that already passes; an affected gate that prints `ran=- of=-` / `budget-deferred` (queued behind sibling runs) is no verdict. **Why:** #10892 — three disjoint-scope fix agents each reported green and together broke all three gates; two panel seats found them by running suites nobody had touched. See `knowledge-base/project/learnings/2026-10-23-fix-round-agents-reported-green-on-their-own-files-and-broke-three-repo-global-gates.md`.
87
87
 
88
+ - **A seat's remediation advice and the lead's own "X is undocumented / only / never" are claims: read the enforcing script and the whole source sentence before writing either into a document.** A fix that adds a procedure (a removal order, an apply order) names a gate; open the gate. A negative about a doc (`cut -c1-300` hides the end of the line) is not evidence of absence. **Why:** #10976 fix round — a removal-checklist order taken from a seat contradicted `sentry-alert-reference-gate.sh` (one PR, with `[ack-destroy]`), and a README row said the SDK "documents only four" key sources when the next clause calls the rest legacy members current CLIs never emit; two seats found each. See `knowledge-base/project/learnings/2026-10-25-a-diagnostic-that-can-go-blind-must-say-so-and-my-docs-claimed-more-than-the-sdk-said.md`.
89
+
88
90
  ## Dedup-before-fixing ledger
89
91
 
90
92
  §5 Step 1's "Remove duplicate or overlapping findings" becomes a required emitted artifact, produced **before any fix dispatch**:
@@ -71,3 +71,5 @@ already carries — see
71
71
  ## A mutation row is vacuous until a fixture distinguishes the mutant
72
72
 
73
73
  **A mutation row is vacuous until a fixture distinguishes the mutant — fabricate the discriminating state when the live corpus can't produce it.** Before writing a sed-and-diff mutation row, name the input on which the mutant's verdict differs; if the live tree can't supply it, inject synthetic module state (`o._TRACKED = (real | {synthetic}, …)` in an importlib-probed module) or build a scratch `git init`+`git add` index under TESTROOT (`rm -rf` after staging yields the index-dir-absent-on-disk shape). A mutant that lands and emits the same vector is the quietest green. Twin trap: a stale-expectation guard must assert the vector the OLD rule actually emits — a hand-extended "stale" string that no rule produces can never match, and `!=` on it passes vacuously on empty output; shape-pin instead (`=~ ^([01] ){N}[01]$`). **Why:** #10117's review found three mutation rows whose distinguishing fixtures could not exist in the live index. See `knowledge-base/project/learnings/test-failures/2026-10-14-a-mutation-row-is-vacuous-until-a-fixture-distinguishes-the-mutant.md`.
74
+
75
+ - **An empty `$(…)` file list handed to a test runner that defaults to "run everything" runs EVERYTHING.** `vitest run $(git grep -ln … -- test)` with no match is `vitest run`: the whole suite, which loads the machine and can void a concurrent mutation battery (its unmutated control reads red). Capture the list first, `[ -n "$files" ] || { echo none; exit 1; }`, then run. **Why:** #10194 — a stray full run turned a 7-row battery's control red and cost a re-run. See `knowledge-base/project/learnings/2026-10-25-a-framing-guard-for-a-channel-nobody-feeds-ships-green-and-inert.md`.