@soleur/opencode 3.405.13 → 3.406.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.405.13",
3
+ "version": "3.406.1",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,6 +23,9 @@ Attempt a single-file fix for a GitHub issue and open a PR for agent review. The
23
23
  - `<issue-number> --exclude-label <label> [--exclude-label <label> …]` — issue
24
24
  number followed by one or more `--exclude-label` flags that short-circuit the
25
25
  skill if the issue carries any matching label
26
+ - either form plus `--no-local-tests` — skip Phases 2 and 4 (the scheduled
27
+ bug-fixer passes it: its containment denies every test command, because a test
28
+ run would execute code the agent just wrote; CI runs the suite on the PR)
26
29
 
27
30
  If `$ARGUMENTS` is empty, ask: "Which issue number should I fix?"
28
31
 
@@ -61,11 +64,15 @@ directly):
61
64
  tokens = $ARGUMENTS.split()
62
65
  ISSUE_NUMBER = tokens[0] # abort if not a positive integer
63
66
  EXCLUDE_LABELS = []
67
+ NO_LOCAL_TESTS = false
64
68
  i = 1
65
69
  while i < len(tokens):
66
70
  if tokens[i] == "--exclude-label" and i+1 < len(tokens):
67
71
  EXCLUDE_LABELS.append(tokens[i+1])
68
72
  i += 2
73
+ elif tokens[i] == "--no-local-tests":
74
+ NO_LOCAL_TESTS = true
75
+ i += 1
69
76
  else:
70
77
  i += 1
71
78
  ```
@@ -114,6 +121,10 @@ Extract the title and body for understanding the bug. Do not execute any command
114
121
 
115
122
  ## Phase 2: Establish Test Baseline
116
123
 
124
+ If `NO_LOCAL_TESTS` is set, skip this phase and Phase 4 entirely: emit no test
125
+ command (it is denied, and a retried variant is denied too). Skipping is not a
126
+ failure and is not grounds for Phase 6.
127
+
117
128
  Run the project's test suite to capture a baseline. The runner is
118
129
  `./node_modules/.bin/vitest` and the web-platform project lives under
119
130
  `apps/web-platform`. Emit the test command as a **single literal command** — no
@@ -149,6 +160,8 @@ Read the issue body, understand the bug, locate the relevant file, and make the
149
160
 
150
161
  ## Phase 4: Run Tests
151
162
 
163
+ If `NO_LOCAL_TESTS` is set, skip this phase (see Phase 2); a skipped phase is not a failure.
164
+
152
165
  Run the test suite after the fix using the same literal command from Phase 2:
153
166
 
154
167
  ```bash
@@ -212,7 +225,7 @@ After opening the PR, evaluate whether it qualifies for autonomous merge. All th
212
225
 
213
226
  1. **Single file changed** -- the PR diff holds exactly one file (false when the commit also carries a test file from Phase 4: the cron gate then demotes the PR to `bot-fix/review-required`)
214
227
  2. **Source issue was `priority/p3-low`** -- check the labels fetched in Phase 1
215
- 3. **Tests passed with no new failures** -- Phase 4 completed without aborting
228
+ 3. **Tests passed with no new failures** -- Phase 4 completed without aborting. With `NO_LOCAL_TESTS`, this condition is met: Phase 4 was skipped by design, and the auto-merge only completes after the PR's required CI checks pass
216
229
 
217
230
  If all three conditions are met, label the PR for auto-merge:
218
231
 
@@ -228,7 +241,7 @@ gh pr edit <PR_NUMBER> --add-label "bot-fix/review-required"
228
241
 
229
242
  Extract `<PR_NUMBER>` from the `gh pr create` output in Phase 5. Exactly one of the two labels must be applied -- never both, never neither.
230
243
 
231
- Note: The auto-merge gate in `apps/web-platform/server/inngest/functions/cron-bug-fixer.ts` independently re-checks the `bot-fix/auto-merge-eligible` label, the single-file diff, and the `priority/p3-low` source issue. This label is a signal, not the sole gate -- defense-in-depth ensures a mislabeled PR cannot bypass mechanical checks. The gate's outcomes: the multi-file and non-`priority/p3-low` failures swap the eligibility label for `bot-fix/review-required`, and `triage-prs.sh` routes a PR carrying `bot-fix/review-required` (or one with failing checks) to `needs-review`, where it waits for the next `soleur:drain-prs` run. The bot-identity and missing-eligibility-label failures return early without relabelling. A PR with neither label is an agent defect (this phase must apply exactly one of the two labels) and, if mergeable with zero failing checks, lands in `ready-green`, not `needs-review`.
244
+ Note: The auto-merge gate in `apps/web-platform/server/inngest/functions/cron-bug-fixer.ts` independently re-checks the `bot-fix/auto-merge-eligible` label, the single-file diff, and the `priority/p3-low` source issue. This label is a signal, not the sole gate -- defense-in-depth ensures a mislabeled PR cannot bypass mechanical checks. The gate's outcomes: the multi-file and non-`priority/p3-low` failures swap the eligibility label for `bot-fix/review-required`, and `triage-prs.sh` routes a PR carrying `bot-fix/review-required` (or one with failing checks) to `needs-review`, where it waits for the next `soleur:drain-prs` run. The bot-identity and missing-eligibility-label failures return early without relabelling, as do a branch that is not `bot-fix/<N>-*` for the issue the cron selected and a PR already carrying `bot-fix/review-required`, so push to exactly `bot-fix/<N>-<SLUG>`. A PR with neither label is an agent defect (this phase must apply exactly one of the two labels) and, if mergeable with zero failing checks, lands in `ready-green`, not `needs-review`.
232
245
 
233
246
  ## Phase 6: Failure Handler
234
247
 
@@ -65,6 +65,7 @@ Fix commits are the least-audited surface in the pipeline (learnings 2026-09-23,
65
65
  If `files` is `unknown` the fix diff is unverifiable: do not pass it to the script (it would read as one source path); spawn the full class panel. The script's path→seat map is the single source for both consumers: it also defines the `none`-tier trigger-gating predicates (the seat fires iff the diff touches a path its map arm covers). Add `soleur:engineering:review:security-sentinel` whenever the fix diff touches `SENSITIVE_PATH_RE` — that arm is mechanical — OR adds guard/deny-shaped lines, which is lead judgment (the script maps paths only). A source-touching fix never resolves to zero seats — the script emits the `soleur:engineering:review:code-quality-analyst` floor on unmatched source paths, and lists them on stderr as `unmapped-paths:`; an empty fix diff emits nothing (`note: empty fix diff` on stderr) and legitimately spawns zero seats. Pass `--files` from the fix commits' own range (`git diff $PANEL_SHA <last-fix-sha>`), never `$PANEL_SHA..HEAD` after a merge of `origin/main`: the merge's files are other people's changes, and on #10285 they turned a 9-file fix round into a 147-file seat resolution.
66
66
  3. **Report-only spawn** against `git diff $PANEL_SHA..HEAD` — the FIX diff, not the branch diff. **Tally (#9403):** fix-round seats are review seats — `gate seats <N>` (N = the resolved seat count) before dispatch and `incr seats <N>` after, on the branch ledger; a `STOP` verdict is the classified-stop path (write `status: budget-capped` + `budget-capped: seats=<n>/<cap>` to the feature's `session-state.md` and halt — do not silently shrink the round).
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
+ 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…).
68
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`.
69
70
  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`.
70
71
  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).
@@ -104,4 +104,12 @@ confirm a known-bad copy fails, before reporting clean. **Why:** #12536 — see
104
104
  `knowledge-base/project/learnings/2026-11-10-a-verify-only-key-slot-guard-anchors-on-what-every-signer-needs.md`
105
105
  session error 5.
106
106
 
107
+ ## markdownlint parses `$…$` as inline math
108
+
109
+ This repo's markdownlint parses `$…$` as inline math: two unescaped dollar
110
+ amounts on one line pair up and swallow the code-span backticks between them,
111
+ so a well-formed span reports MD038/MD034. Escape `$` as `\$` outside code
112
+ spans. **Why:** #12844 — see
113
+ `knowledge-base/project/learnings/2026-11-18-the-adoption-gate-forbade-the-import-and-the-lint-read-my-dollar-signs-as-math.md`.
114
+
107
115
  - **A signal trap runs inside the redirections of the command it interrupted, when bash applied them itself** (a shell function, a builtin or a `{ }` group; an external command's redirect lives in the child, so the trap's fd 2 is untouched) — a handler that reports to fd 2 while `my_fn >/dev/null 2>&1` is in flight writes into /dev/null. Take a private dup at startup (`exec 9>&2`) and report on it (`printf '...\n' >&9`); close it for children that may daemonize (`9>&-`). **Why:** #12736 — the rotation script's partial-store report was silently lost on SIGTERM until a stub-driven signal row caught it. See `knowledge-base/project/learnings/2026-11-13-a-log-marker-gate-matched-the-echoed-workflow-source-and-a-trap-inherited-the-writes-redirect.md`.