@soleur/opencode 3.359.0 → 3.359.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
package/skills/review/SKILL.md
CHANGED
|
@@ -191,9 +191,9 @@ Spawned agents run only the suites targeting the files they were given — mecha
|
|
|
191
191
|
`bash "${CLAUDE_PLUGIN_ROOT}/scripts/affected-tests.sh"` — it delegates `--affected`
|
|
192
192
|
to a capability-positive [runner](../../../../scripts/test-all.sh) when present, else its
|
|
193
193
|
stack adapters select. A spawned agent handed an EXPLICIT file list may instead run
|
|
194
|
-
`TEST_GROUP=affected bash scripts/test-all.sh` — a
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
`TEST_GROUP=affected bash scripts/test-all.sh` — a deprecated compat ALIAS of
|
|
195
|
+
`--affected` (#8621; the #8591 heuristic it replaced was folded after its
|
|
196
|
+
decline set missed suites on every corpus diff).
|
|
197
197
|
**`SOLEUR_SUBAGENT=1` is a
|
|
198
198
|
convention a lead MAY export before spawning — the harness does not set it** (measured 2026-08-19:
|
|
199
199
|
UNSET inside spawned agents). When it IS exported, a plain `test-all.sh` invocation exits 4 while `affected`
|
|
@@ -62,7 +62,7 @@ Fix commits are the least-audited surface in the pipeline (learnings 2026-09-23,
|
|
|
62
62
|
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.
|
|
63
63
|
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).
|
|
64
64
|
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.
|
|
65
|
-
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-
|
|
65
|
+
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).
|
|
66
66
|
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.
|
|
67
67
|
|
|
68
68
|
## Briefing fix agents and seats
|
package/skills/ship/SKILL.md
CHANGED
|
@@ -483,7 +483,7 @@ contended after three hours; the one-script loop launched cleanly on its first `
|
|
|
483
483
|
- **A local `--affected` run is not, and is not meant to be, the full battery.** Suites the diff does not reach decline as counted `not-affected` skips — a healthy affected run reads `N-k/N` with a `not-affected` breakdown field, not `N/N`. Affected+ratchets does not exercise suite×suite interaction; the backstop for that class is CI's sharded full battery on the PR head, so a green affected run is not a full-coverage claim. Selection fails toward coverage: an undecidable diff, a missing declarations index, or a diff touching the runner or index itself degrades the run to the full battery and prints `AFFECTED_FALLBACK reason=…`. If the declined suites must execute, that is `--full` (or legacy `SOLEUR_TEST_FORCE_ALL=1`); `SOLEUR_INCIDENT_SKIP=1` drops the infra set while leaving this pin satisfied.
|
|
484
484
|
- **Push time runs a ratchet lane (#9400):** [scripts/pre-push-ratchet-lane.sh](../../../../scripts/pre-push-ratchet-lane.sh) — the diff-reachable ratchets on a scratch `origin/main` merge; supplemental only.
|
|
485
485
|
|
|
486
|
-
**The dispatch is pinned, and that pin is load-bearing.** This dispatch must run `affected-tests.sh` (or `affected-tests.sh --full` under `FULL_BATTERY`) — never a bare `test-all.sh` whose mode would silently be the operator's default, and never a `TEST_GROUP=` shard, which would delete the only *blocking* gate the registered infra suites have. It is asserted by `plugins/soleur/test/fullsuite-merge-gate.test.ts`, whose mutation is *sharding or de-flagging* the command rather than deleting it. `TEST_GROUP=affected`
|
|
486
|
+
**The dispatch is pinned, and that pin is load-bearing.** This dispatch must run `affected-tests.sh` (or `affected-tests.sh --full` under `FULL_BATTERY`) — never a bare `test-all.sh` whose mode would silently be the operator's default, and never a `TEST_GROUP=` shard, which would delete the only *blocking* gate the registered infra suites have. It is asserted by `plugins/soleur/test/fullsuite-merge-gate.test.ts`, whose mutation is *sharding or de-flagging* the command rather than deleting it. `TEST_GROUP=affected` survives only as a deprecated compat alias of `--affected` (#8621 — the #8591 heuristic was folded), and it is NOT a substitute for this checkpoint: substituting it would read a scoped run as the ship gate, which is the exact misreading the runner's scope notes warn against. Read the pin honestly, though: the mode selects the battery's breadth, and `_infra_in_diff`/the infra consumed edge decides whether the infra runner executes at all — so the pin is necessary and not sufficient, and the epilogue is what tells you which happened.
|
|
487
487
|
|
|
488
488
|
**A reaped run is UNRESOLVED — never ship on it, and rc=4 is not a reap.** The outcome space is four-way, not three: `rc=1` with `[FAIL]` lines is a red diff; `rc=3` with `[KILLED]` lines and a terminal marker means a suite's coverage was never obtained (re-run that suite in isolation); **`rc=4` is REFUSED — nothing ran at all**; and no marker with no rc file is a harness reap. Since #8322 an `--affected` run is exempt from both contention refusals (that is the point of the mode), so rc=4 on an affected dispatch means one of: the run DEGRADED to full (`AFFECTED_FALLBACK reason=…` in the log) and then hit `SOLEUR_SUBAGENT=1` or a sibling full-gate run (#7553) — both overridden by `SOLEUR_ALLOW_FULL_GATE=1`; or selection found literally nothing to run or a gutted declarations index (a `below-floor`/`zero-selected` refusal — investigate the index, do not force). An explicit `--full` dispatch keeps the original two refusal arms. The rc=4 case exits in under a second with no `[FAIL]` lines — the easiest verdict to misread as a reap. Ship reached from a spawned agent does **not** inherit `SOLEUR_SUBAGENT` — the harness does not set it; that path trips rc=4 only via the sibling condition. With one run left in the pipeline there is no second chance — "unresolved" under ship-time pressure resolves to "ship anyway" far more often than to a re-run. Read the **rc file**, never the background-task completion notification.
|
|
489
489
|
|
package/skills/work/SKILL.md
CHANGED
|
@@ -373,11 +373,11 @@ Run these checks before proceeding to Phase 1. A FAIL blocks execution with a re
|
|
|
373
373
|
|
|
374
374
|
**Standing constraint for EVERY tier — a spawned agent never runs the FULL gate.**
|
|
375
375
|
Spawned agents run only the suites targeting the files they were given — mechanically,
|
|
376
|
-
`test-all.sh --affected` (the #8322 declared-edge gate);
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
376
|
+
`test-all.sh --affected` (the #8322 declared-edge gate); the compat spelling
|
|
377
|
+
`TEST_GROUP=affected bash scripts/test-all.sh` also survives as a deprecated
|
|
378
|
+
ALIAS of the same axis (#8621 — the #8591 heuristic selector was folded after
|
|
379
|
+
its decline set missed 49-355 suites per diff against the declared index).
|
|
380
|
+
Both are exempt from both refusal arms, so the spawn prompt needs no hand-derived
|
|
381
381
|
suite list. What a spawned agent must not run is a
|
|
382
382
|
full-gate-shaped invocation: `test-all.sh --full`,
|
|
383
383
|
`apps/web-platform/infra/run-registered-suites.sh`, or any other full-battery runner —
|
|
@@ -1042,7 +1042,7 @@ State plainly which axes your battery did NOT edit. Two mechanical companions: r
|
|
|
1042
1042
|
|
|
1043
1043
|
The gate's rc contract (0/1/4/6/7), the `.soleur-test-gate.json` override schema, and per-rc actions live in [affected-gate-contract.md](${CLAUDE_PLUGIN_ROOT}/skills/ship/references/affected-gate-contract.md). In THIS repo it capability-probes and delegates [scripts/test-all.sh](../../../../scripts/test-all.sh) --affected — selection fails toward coverage (`AFFECTED_FALLBACK reason=…` on an undecidable diff or a touched runner/index); preview it via `bash scripts/test-all.sh --print-selection` (repo-local). A green affected run is the diff's coverage, not a full-coverage claim; CI's sharded battery is the backstop. A refusal (rc 4) names its cause and prints a `remedy:` line — never retry it blindly.
|
|
1044
1044
|
|
|
1045
|
-
A
|
|
1045
|
+
A deprecated compat spelling also exists (#8621): `TEST_GROUP=affected bash scripts/test-all.sh` is an alias of `--affected` — the #8591 heuristic it replaces was folded into the declared-edge axis after the decline-set measurement found misses on every corpus diff. It remains the substitute both rc=4 refusals prescribe; `TEST_GROUP=affected --affected` refuses rc=2. Either spelling is scoped evidence, not the ship gate.
|
|
1046
1046
|
|
|
1047
1047
|
**`TEST_GROUP=<g>` remains as an explicit cross-cut, not the default.** `TEST_GROUP=bun|scripts|scripts-heavy|webplat|infra bash scripts/test-all.sh` restricts the run to that group's registrations under the same affected-selection rules — a non-`all` ask force-selects its group. Use it to re-run one shard in isolation; it is no longer how the Phase 2 exit picks coverage — the affected index derives a finer set.
|
|
1048
1048
|
|
|
@@ -1129,7 +1129,7 @@ State plainly which axes your battery did NOT edit. Two mechanical companions: r
|
|
|
1129
1129
|
|
|
1130
1130
|
**The lead still owns this gate's verdict — but rc=4 no longer polices delegation.** Since #8322 an `--affected` run is exempt from BOTH refusal arms — that exemption is the point of the mode, so a spawned agent CAN run the affected gate. `rc=4` on an affected run now means one of two things, and both are yours to read: the run DEGRADED to full (`AFFECTED_FALLBACK reason=…` in the log — undecidable diff, missing index, runner/index touched, FORCE_ALL, or an `enumerate-unavailable` nested-enumerate failure, whose stderr the runner echoes) and then tripped `SOLEUR_SUBAGENT=1` or a measured sibling full-gate run (#7553), each overridden by `SOLEUR_ALLOW_FULL_GATE=1`; or selection produced nothing / a gutted index (the `zero-selected`/`below-floor` refusals — fix the index, do not force past them). An explicit `--full` keeps the original refusals unconditionally. `rc=4` is its own outcome: not a reap, not a pass.
|
|
1131
1131
|
|
|
1132
|
-
**A REFUSED gate also owes the repo-global RATCHETS — `TEST_GROUP=affected` reaches them mechanically; hand selection still cannot.** A ratchet counts a property across the whole tree and REFERENCES NOTHING, so every file- or token-derived query returns it zero times by construction. The `affected` selector closes that with a
|
|
1132
|
+
**A REFUSED gate also owes the repo-global RATCHETS — `TEST_GROUP=affected` reaches them mechanically; hand selection still cannot.** A ratchet counts a property across the whole tree and REFERENCES NOTHING, so every file- or token-derived query returns it zero times by construction. The `affected` selector closes that with a floor: every registered suite in `ALWAYS_ON_SUITES` runs on any selection (a static corpus-walk census lint enforces membership), and an unclassified suite selects anyway — a path match alone never proves a repo-wide subject unaffected. When you select suites BY HAND instead — the substitute recipes below — the blind spot returns in full: **select ratchets by SHAPE, not by name prefix.** The reachable set has TWO halves and a name filter finds neither. (a) Every [scripts/test-all.sh](../../../../scripts/test-all.sh) `run_suite` row whose invocation carries NO path argument — `grep -nE 'run_suite "[^"]+" (bash|python3|bun|npx) [^ ]+$' scripts/test-all.sh` (221 rows; the `lint-*-live` prefix filter returns 19). (b) Every suite registered by a GLOB rather than a row: the `SUITE_GLOBS` array near the top of that file auto-registers `plugins/soleur/test/*.test.sh` and six sibling globs, so those suites have NO `run_suite` line to grep and recipe (a) cannot see them — measured, it misses `fixture-relative-assert`, `fixture-dir-operand-assert` and `preflight-check10-suite-integrity`, three of the six that actually reddened. Expand the globs (`eval ls <glob>`) and run the census-shaped ones. Then run whatever FEEDS a baseline file (`ls scripts/*.baseline.txt plugins/soleur/test/*.baseline.txt`): a baseline is a ratchet whose name says nothing.
|
|
1133
1133
|
|
|
1134
1134
|
**When a ratchet fires, the edit that satisfies it can move a DIFFERENT one — re-measure both.** Ratchets read overlapping properties of the same bytes, so the second break is caused by the first fix and arrives with no diff of its own. **Why:** #8392/PR #8394 twice over. (i) A REFUSED gate's substitute set (seven consumer suites + the vocabulary sweep + four targeted shell suites) was fully green while `lint-shell-capture-exit-live` was RED on two lines the same session had just written. (ii) The CI round after that shipped SIX red suites, and only two carried `lint` in their name: `guard-vacuity-floor` (a new floor whose threshold was declared with the other constants, so the mutant died unbound under `set -u` and scored as a construction failure — the threshold has to sit on the line IMMEDIATELY above its `if`), `lint-trap-tempfile-ownership`, a `bun` backtick-reference census, a `credentials_required` corpus baseline, and two `fixture-*-assert` censuses. Then the trap that fixed `lint-trap-tempfile-ownership` — giving `mktemp -d` a destination under an owned root — cost the call its absoluteness proof and moved `fixture-relative-assert` from 3 to 20 sites; redirecting `TMPDIR` at the owned root instead keeps the binding byte-identical and owns the same directories.
|
|
1135
1135
|
|
|
@@ -50,7 +50,7 @@ produced six separate shard-discovered surfaces, one FAIL per cycle.
|
|
|
50
50
|
|
|
51
51
|
## A nested `test-all.sh` sandbox inherits the enclosing run's selection env
|
|
52
52
|
|
|
53
|
-
Under an outer `TEST_GROUP=affected`
|
|
53
|
+
Under an outer `TEST_GROUP=affected` run (a `--affected` alias since #8621), a suite's own
|
|
54
54
|
`bash sandbox/test-all.sh` inherits `TEST_GROUP`/`MODE`/`SCRIPTS_SHARD`/
|
|
55
55
|
`SOLEUR_TEST_FORCE_ALL`, takes the affected path against a sandbox diff that
|
|
56
56
|
selects zero suites, and exits 0 — reading as "the refusal arm never fired"
|