@soleur/opencode 3.400.4 → 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.4",
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.
@@ -503,16 +503,17 @@ merge proves nothing about it. Otherwise record `Sole-copy read-back: SKIPPED (n
503
503
  (read-only, token on stdin, one word). Run exactly:
504
504
 
505
505
  ```bash
506
- doppler run -p soleur -c prd_terraform --only-secrets HCLOUD_TOKEN_READONLY --no-exit-on-missing-only-secrets -- sh -c '[ -n "$HCLOUD_TOKEN_READONLY" ] || { echo missing-token; exit 3; }; r=$(printf "header = \"Authorization: Bearer %s\"\n" "$HCLOUD_TOKEN_READONLY" | curl -sS --config - -w "\n%{http_code}" https://api.hetzner.cloud/v1/volumes/106903269) || { echo read-failed; exit 2; }; case "$(printf %s "$r" | tail -n 1)" in 200) w=$(printf %s "$r" | sed "\$d" | jq -r "if .volume.protection.delete == true then \"protected\" elif .volume.protection.delete == false then \"not-protected\" else \"read-failed\" end" 2>/dev/null);; 404) w=volume-gone;; *) w=read-failed;; esac; case "$w" in protected) echo protected;; not-protected) echo not-protected; exit 1;; volume-gone) echo volume-gone; exit 4;; *) echo read-failed; exit 2;; esac'
506
+ doppler run -p soleur -c prd_terraform --only-secrets HCLOUD_TOKEN_READONLY --no-exit-on-missing-only-secrets -- sh -c '[ -n "$HCLOUD_TOKEN_READONLY" ] || { echo missing-token; exit 3; }; r=$(printf "header = \"Authorization: Bearer %s\"\n" "$HCLOUD_TOKEN_READONLY" | curl --disable --noproxy "*" -sS --config - --max-time 30 -w "\n%{http_code}" https://api.hetzner.cloud/v1/volumes/106903269) || { echo read-failed; exit 2; }; case "$(printf %s "$r" | tail -n 1)" in 200) w=$(printf %s "$r" | sed "\$d" | jq -r "if .volume.protection.delete == true then \"protected\" elif .volume.protection.delete == false then \"not-protected\" else \"read-failed\" end" 2>/dev/null);; 404) w=volume-gone;; *) w=read-failed;; esac; case "$w" in protected) echo protected;; not-protected) echo not-protected; exit 1;; volume-gone) echo volume-gone; exit 4;; *) echo read-failed; exit 2;; esac'
507
507
  ```
508
508
 
509
509
  4. **Route on the word, compared with the expected one.** `protected` / `not-protected` equal to the expected word passes;
510
- a mismatch is a red status. `volume-gone` (HTTP 404) is not a read problem, and not proof of a loss: a token from
510
+ a mismatch is red. `volume-gone` (HTTP 404) is not a read problem, nor proof of a loss: a token from
511
511
  another Hetzner project also gets 404. Report it, then run the read-only server-name listing under
512
512
  `orphan_sweep_project_identity_unproven` in the 8209 runbook named below: unknown names mean a wrong-project token
513
- (re-mint it, step O5); only matching names route to the runbook's "After a total loss". `read-failed` (an HTTP error such as a 401, a network error, a non-JSON body or a missing field) and a
514
- **missing word** (nothing printed: `doppler` absent or unauthenticated, an error before the command ran) mean the read
515
- did not happen: report them, never dispatch on their account. `missing-token` means `HCLOUD_TOKEN_READONLY` is absent from
513
+ (re-mint it, step O5); only matching names route to the runbook's "After a total loss". `read-failed` (a 401 or other HTTP error, network error, non-JSON or missing field) and a
514
+ **missing word** (nothing printed: `doppler` absent or unauthenticated, an early error) mean the read
515
+ did not happen: report them, never dispatch on them. Proxy-only egress also reads `read-failed` (it bypasses
516
+ proxies): report no direct egress; never retry, drop `--noproxy`/`--disable` or add a proxy. `missing-token` means `HCLOUD_TOKEN_READONLY` is absent from
516
517
  `prd_terraform`; minting it is operator step O5 in `knowledge-base/engineering/operations/runbooks/infra-credential-tiers-8209.md`.
517
518
  Report `missing-token` and file an issue (the idiom of Phase 5.5, with the same label and the repo milestone):
518
519
 
@@ -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`.
@@ -27,3 +27,5 @@ gh api repos/{owner}/{repo}/actions/jobs/<job-id> \
27
27
  ```
28
28
 
29
29
  Both work **while the run is still in progress**, which `gh run view --log-failed` refuses to do — use that to start diagnosing early. But **an in-progress snapshot is not a verdict**: a run with jobs still `queued` can fail later for an unrelated reason, so re-run the classification once the run reaches `completed` and classify on THAT result before acting. Measured on one live run: 5 jobs completed, 2 in progress, 14 queued — two thirds of the run had not executed, so a "setup failure" read at that moment could be superseded by a real red. Note also that neither command returns log text, so the output test below is only decidable once the failing job completes.
30
+
31
+ - **A `test` job that is red over SKIPPED shards is not a test failure.** Before naming a cause, list every job with `gh api --paginate repos/{owner}/{repo}/actions/runs/<run-id>/jobs --jq '.jobs[] | "\(.name) \(.conclusion)"'`, then read each skipped shard's `needs:` and `if:` in `.github/workflows/ci.yml`; a shard skips only because of a job in its own `needs:`. On a draft run the draft-light-gated shards skip by design (the draft paragraph above), and `test`'s `Aggregate shard results` step then reds on its own. A red job that no shard lists in `needs:` (an advisory lint, say) caused no skip: it is a separate finding. **Why:** #12616/PR #12645 blamed the skipped shards on `lint-bot-statuses`, which no job needs; the shards had skipped because the PR was a draft.
@@ -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