@soleur/opencode 3.354.32 → 3.355.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.354.32",
3
+ "version": "3.355.0",
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`.
@@ -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`.