@soleur/opencode 3.406.1 → 3.406.2

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.406.1",
3
+ "version": "3.406.2",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -369,4 +369,5 @@ NEVER CODE! Just research and write the plan.
369
369
  - **A plan that proposes a flag or argv as an implementation lever on a repo script must read the script's actual argv first — "the flag that should exist" is a capability claim verified against the parser, not inferred from the suite's shape.** Grep the script's argument handling (`--only`, `getopts`, the `usage`/help text) or run `--help`; it settles in seconds what a wrong claim costs a ruling cycle to catch. **Why:** #12626 — the plan prescribed a `--rows` row-splitting lever on `approval-guard1-mutation`; the battery's argv is `[--only|--list|--check-anchors]`, and only the batched CTO ruling caught it. See `knowledge-base/project/learnings/2026-11-11-a-completed-but-failing-leg-filed-as-did-not-complete.md` SE#4.
370
370
  - **A plan that pins a Terraform forget (`removed { destroy = false }`) must state the property in the provider's DELETE key (an email, a name) and pin a CLOSED SET over every file Terraform would load — every tracked `.tf`/`.tf.json` in the repo, minus dotfiles Terraform ignores, with heredocs found by a raw scan — never a search for the bad label or literal.** When the property is "no managed resource of type T", the set is the allowed occurrences of the type token (only the forget's `from` line); when other instances of T stay managed, enumerate the allowed addresses instead. Reuse the `FIX B handed` describe in `plugins/soleur/test/terraform-target-parity.test.ts` and its mirror, Guard G4a in `tests/scripts/test-infra-privileged-tier-census.sh`, rather than rebuilding the scan from prose. Labels miss `import`, `local.`/`var.` values, case, unquoted labels, modules and other roots; and a second guard that shares the first one's file reader and string stripper shares its blind spots. **Why:** #12813 — a dotfile `.tf` and a quote-confused heredoc each kept the test and that census guard green while Terraform planned a DELETE of the sole Better Stack Admin. See `knowledge-base/project/learnings/2026-11-16-my-forget-pin-checked-labels-while-the-provider-deletes-by-email.md`.
371
371
  - **A plan that adds a rule to a gate which reads text another interpreter will expand (a Bash PreToolUse hook, a CI shell lint) must list that interpreter's whole expansion and quoting set first, and close each class in one place rather than deny-listing spellings.** For bash: brace, tilde, parameter/`$[…]`, command, process substitution, pathname/extglob, backslash and `$'…'` quoting, and the target tool's own argv parsing (git long-option prefixes, commit pathspecs). Brief the first fix-round security seat to sweep that whole list, not to find one more instance. **Why:** #12806 — seven fix rounds each found the next form the cron hook read differently from bash; see `knowledge-base/project/learnings/2026-11-16-seven-fix-rounds-each-found-the-next-bash-expansion-the-hook-read-differently.md`.
372
+ - **A test scenario that checks a discriminator with a live stand-in must keep the production filter and vary only the data. Never invert the filter.** Swapping `= 'Object'` for `= 'String'` measures a different predicate over the rows that do match it. Conjoin the production filter with an impossible clause to get the empty-window value, and use a split count (`countIf` in ClickHouse, `COUNT(*) FILTER (WHERE …)` in Postgres) to show what the discriminator excludes. **Why:** #12726/PR #12865 — the inverted stand-in window held 42 string rows and read value 0 where the plan expected 1. See `knowledge-base/project/learnings/2026-11-18-the-guard-lexer-kept-desyncing-until-the-guarded-file-was-confined-to-the-subset-it-models.md`.
372
373
  - **An acceptance criterion that says "additions only" / "no `-` line" must be checked against every edit the plan itself prescribes in that file: an in-cell table append or an in-field frontmatter change is a one-line rewrite, so `git diff` shows a `-` line and the AC is unsatisfiable as written.** Write the carve-out into the AC by naming each rewritten line's content anchor (the table row's first cells, the frontmatter key), with the exact grep that drops only those lines, e.g. `git diff -U0 origin/main...HEAD -- <file> | grep -E '^-' | grep -vE '^--- (a/|/dev/null)' | grep -vF '<row anchor>'` printing nothing. Do not state it as "the `-` line is a prefix of its `+` line": a table row's closing pipe (space then `|`) and a replaced frontmatter value both break that. Do not match `^-[^-]` either: it misses a deleted `- item` line, which the diff shows as `-- item`. **Why:** #12742/PR #12884 — AC7 forbade any `-` line while Phase 4 step 2 prescribed an in-cell append to the runbook's #10538 row; the task was ticked anyway and review flagged it. See `knowledge-base/project/learnings/2026-11-18-an-ac-that-contradicts-the-prescribed-edit.md`.
@@ -67,6 +67,7 @@ Fix commits are the least-audited surface in the pipeline (learnings 2026-09-23,
67
67
  4. **Cap two targeted rounds.** A third needed round escalates to the full class panel over the cumulative fix diff — an unbounded targeted loop is the treadmill this mechanism exists to prevent.
68
68
  When a fix touches a deny gate on a CLI flag, the fix commit must cover every spelling the CLI's parser accepts (`--long v`, `--long=v`, `-s v`, `-sv`, `-s=v`, `-xs v`), with one reason-asserting row each, and a later relaxation of that gate (an over-deny fix) gets the security seat too. A skip keyed on token position over a flag parser is chainable. **Why:** #12847 — `--body-file` was fixed and `-F` was not; the round-3 value-flag skip reopened it via `--title --label -F<path>` (learning 2026-11-17-my-body-file-fix-closed-one-spelling…).
69
69
  When a round's findings against a pin test are SIBLING shapes of the last round's, the defect is the test's claim, not its coverage: rule its contract (what it guards, what it leaves open) and state the residuals in its header before fixing more shapes; a later shape inside a stated residual is recorded as "covered by R<n>". **Why:** #12348/PR #12561 — three rounds each re-found "a prior step or the env replaces what the gate runs"; stating the residuals (plus two class fixes) let the final pass terminate. See `knowledge-base/project/learnings/2026-11-11-each-fix-round-found-the-next-sibling-until-the-test-stated-its-residuals.md`.
70
+ When the sibling shapes are desyncs between a hand-written lexer and the language it reads (a comment, string, heredoc or interpolation the lexer models differently), and the guarded input is one file the repo owns, the class fix at the second sibling round is to confine that file to the subset the lexer models exactly, with file-wide refusal rows (test rows that fail if the file anywhere uses a construct outside that subset), and to rewrite the contract to quantify over that subset. Stating residuals alone still leaves a contract that claims the whole language. **Why:** #12726/PR #12865 — the residuals were stated in round 2 and the escalated panel still found four more shapes; rows S1-S5 (no `/*`, closed simple interpolations, canonical heredoc openers and headers, ASCII outside comments and strings) ended the class. See `knowledge-base/project/learnings/2026-11-18-the-guard-lexer-kept-desyncing-until-the-guarded-file-was-confined-to-the-subset-it-models.md`.
70
71
  When the pinned artifact is gate text an agent pastes or runs (a fenced check, a refusal line, a tie), require the whole block (indent-stripped, line for line, plus a cardinality check) in the first fix: a substring or per-line pin is satisfied by a commented or neutered copy of the text it looks for, and each finer grain only moves the bypass one level out. **Why:** #12656/PR #12706 — two consecutive rounds found a commented-out tie, then a commented-out refusal. See `knowledge-base/project/learnings/2026-11-13-a-pin-on-gate-text-was-satisfied-by-a-commented-out-line-twice.md`.
71
72
  5. **One verification pass** after the last round: a single fresh-eyes verifier seat answers "does each fix commit close its finding, and did any fix introduce a defect in its own area?", plus the lead's affected-gate run (`scripts/test-all.sh --affected`; `TEST_GROUP=affected` is its deprecated alias, #8621).
72
73
  6. **Invocation:** `soleur:review <PR> --fix-round --since <sha>` runs only the targeted round + verification pass — `soleur:one-shot` Step 5 calls this after its resolver-agent commits land. `--since` is the panel snapshot; when it is absent (a bare invocation, or a rebase invalidated it) recover the base as **the parent of the oldest `review:`/`fix`-subject commit since the merge-base, else the merge-base itself** — and report which base was used. The fix round attests via `emit-review-trailer.sh --fix-round --since <base>` (`Reviewed-Fix-Round:`/`Reviewed-Fix-Range:` keys — never `Reviewed-Coverage:`). The range's effective head is derived by attestation-TRAILER presence, never by `review:`-prefixed subjects — `review: <summary> (P<N>)` is this repo's prescribed fix-commit subject, so a subject filter silently excludes real fixes. A standalone/fresh-session invocation has no access to the prior session's dedup ledger — without it the round degrades to path-mapped seats only (no `--finding-seats` union); that is the known, fail-safe direction and should be reported. A fix round attests ONLY via `--fix-round` keys: the branch-level `Reviewed-By-Soleur`/`Reviewed-Coverage` trailer must already exist from the main panel — absent, that is the anomaly (a fix round without a panel), report it, never emit a main trailer for a targeted round. Its commit subject is `review-fix-round:`, deliberately NOT matching the merge gate's legacy `review:` evidence regex — a targeted round is not branch-level review evidence.