@soleur/opencode 3.400.5 → 3.400.6

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.400.5",
3
+ "version": "3.400.6",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -364,3 +364,4 @@ NEVER CODE! Just research and write the plan.
364
364
 
365
365
  - **A copy sentence of the form "X cannot happen unless Y" is an enforcement claim: list every path that can do X before prescribing it.** Enumerate each runner, each flag state (on, off, read failed) and each missing-dependency state, and name the line that enforces Y on each; a path with no such line is a code task or a reworded sentence in the same plan. **Why:** #12197/PR #12567 — `PUSH_DISCLOSURE` said nothing is pushed without Owner approval; the legacy runner's in-memory card let a member approve their own push whenever the approval queue gave no verdict. See `knowledge-base/project/learnings/2026-11-10-a-copy-sentence-that-promises-enforcement-must-be-checked-on-every-runner-and-flag-state.md`.
366
366
  - **Before a plan names a shipped literal (a port, IP, hostname, token, sentinel URL), grep the repo's TEST FIXTURES for it — a value fixtures use as the deliberately-wrong constant poisons the suite when shipped.** `grep -rn '8444' apps/web-platform` showed the port is the assume-invalid sentinel in `apps/web-platform/infra/` firewall fixtures, so the receiver bound 8445 instead of the plan's first-draft "e.g. 8444". Same class for dispatch conditions that mirror an upstream SDK: route on the SDK's TRUTHINESS test (`get("probe")` falsy on `""`), never key presence — an empty `?probe=` is a run request, and `has()` vs `Boolean(get())` differ on exactly the input nobody hand-types. **Why:** #9137/PR #12554 — the presence-gate P1 was caught only by the sequential-fallback review's fix round; the fixture-collision was caught by the work phase's own grep. See `knowledge-base/project/learnings/logic-errors/2026-11-10-empty-probe-param-is-a-run-request-sdk-truthiness-parity.md`.
367
+ - **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.
@@ -6,3 +6,4 @@ Loaded from the Defect Classes list in [SKILL.md](../SKILL.md) (Defect Classes)
6
6
  - **A gate's WIRING is not pinned by regex over its workflow text: execute the extracted `run:` block against a stub that REFUSES any other argv, with a control case proving a changed selector flips the verdict, and keep `absent`/`unknown` apart from `skipped` when classifying run records.** Regex pins stayed green with a case arm replaced by `:`, a changed `--event`, a swapped `--jq` field order and a post-scan reassignment; a classifier that read an absent or conclusion-less step as "skipped" read the plan's own cited failed rotate (a pre-rename step name) as nothing-happened. **Why:** #10166/PR #10184. See `knowledge-base/project/learnings/2026-10-13-a-classifier-that-reads-absent-as-skip-fails-open-on-name-drift.md`.
7
7
 
8
8
  - **A guard whose property is CONTROL FLOW cannot be pinned by pattern greps over the body — pin the flow skeleton, and refuse substitution inside the lines you drop.** Pattern checks (`if ! cmd; then`, `exit 1`, a ban on `|| true`) are satisfied by dead branches, `echo ... # exit 1`, `trap 'exit 0' EXIT`, `if: ${{ false }}`, an early unconditional `exit 0`, and by `env:` (`BASH_ENV`, `NODE_OPTIONS`, `PATH`) at step, job or workflow level. Reduce the body to its flow (drop only inert `echo "..."` lines with no `$(`, `${`, backtick or backslash) and compare to a pinned golden, count publishes of every spelling (`pnpm publish`, a `\`-continued `npm publish`, a `uses:` action), and pin the env and `working-directory` of the step. **Why:** #11688 — ten distinct bypasses of a pattern-based `diagnose-on-failure` member, then two P1s in its first skeleton (an echo dropper that accepted `echo "$(printf x >> .npmrc)"`, unconstrained env). See `knowledge-base/project/learnings/2026-10-31-a-pattern-grep-guard-is-satisfied-by-dead-branches-pin-the-control-flow-skeleton.md`.
9
+ - **A leg that invokes a test battery DIRECTLY (not via `scripts/test-all.sh`) tees a capture carrying none of the runner's verdict tokens — check the leg's capture against the downstream classifier's token set per terminal state.** The issue filer's `cap_fail` gate recognizes only `"^RED "`, `"^UNACCOUNTED "`, a `=== N suites:` failed breakdown, or the `[FAIL]`+short-terminal pairing; a completed-but-failing direct-invocation leg contains none and files as "did not complete" (censored-leg semantics on a verdict-bearing capture). The fix is a CONDITIONAL verdict emit (`RED <path>` on `rc != 0`) at the step tail — an unconditional emit would file a censored leg as "tests failing" and erase the complete-vs-timeout split. **Why:** #12626/PR #12654 — P2 found in sequential-fallback review; the mut leg had to bypass `test-all.sh` because its `VITEST_SHARD`-gated `skip_suite` declines the registrations. See `knowledge-base/project/learnings/2026-11-11-a-completed-but-failing-leg-filed-as-did-not-complete.md`.
@@ -59,6 +59,7 @@ The transform is **one context-aware tokenizing pass**, not two string passes. S
59
59
  When wiring the converter, guard the call so a non-zero exit cannot fail the release: `if ! BODY=$(node scripts/md-to-mrkdwn.mjs --max 3000 < "$F"); then …sed-escape fallback…; fi`. The `if !` form is load-bearing — a bare `BODY=$(node …)` assignment masks the exit code under `bash -e`. The fallback is for **availability**, not safety (safety lives in the converter's escaping + the keystone invariant).
60
60
 
61
61
  - **A checkout gated on a lane output (`if: needs.<job>.outputs.<lane> == 'true'`) is unexercised until the first PR on that lane, so give it the depth its consumers need.** `actions/checkout` defaults to depth 1, where `origin/main` is not a ref and any `git diff origin/main...HEAD` in the job's scripts fails; set `fetch-depth: 0` and pin it with a test. **Why:** #12262 — the oracle-only lane's `oracle-index-check` first ran on a docs-only PR and went red on `undecidable-diff`. See `knowledge-base/project/learnings/2026-11-06-a-lane-gated-checkout-hid-a-shallow-clone-until-the-first-docs-only-pr.md`.
62
+ - **Adding a CI leg/job means mirroring every `test-webplat`-naming surface in the same diff — `git grep -n 'test-webplat' -- .github/workflows scripts plugins/soleur/test` enumerates the ~10 lockstep pin sites.** Aggregator `needs:`/`env:`/`entries:`/`oracle_re` grammar, push-dedupe GATED/DL/OR pinned sets, draft-light HEAVY/OR/LEGS census, oracle-lane SKIP_SET/leg grammar, monitor `LEG_JOBS`/`EXPECTED_LEGS`/`R_*` env/filer/closer arms, `ci.yml` comment censuses (re-read them — the diff is what falsifies them), and terraform-parity fixtures all pin leg membership; the guards make a miss loud, so grep first and mirror all of them. Two leg-shape rules ride along: a leg invoking a battery DIRECTLY (not via `scripts/test-all.sh`) must emit the runner's verdict token (`RED <path>`) into its teed capture CONDITIONALLY on `rc != 0` at the step tail, or the monitor filer files a completed-but-failing leg as "did not complete" (an unconditional emit erases the complete-vs-timeout split); and `timeout-minutes` derives as `roundup5(measured_max × 1.5)` with the monitor job ≥ step+15 floor — a dedicated leg with a derived ceiling beats raising a shared leg's fixed ceiling, which races the battery's growth (#12279's 25→35 went stale in ~4 days). **Why:** #12626/PR #12654 — the capture contract missed at implementation was a P2 review catch; the lockstep list spanned ~10 files. See `knowledge-base/project/learnings/2026-11-11-adding-a-ci-leg-means-mirroring-every-test-webplat-naming-surface.md` and `knowledge-base/project/learnings/2026-11-11-a-completed-but-failing-leg-filed-as-did-not-complete.md`.
62
63
 
63
64
  ## When to Load This File
64
65