@soleur/opencode 3.410.3 → 3.411.0

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.410.3",
3
+ "version": "3.411.0",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,3 +28,4 @@ npm-publish.yml fires on release publication and after Version Bump and Release,
28
28
  board-status-sync.yml moves a project-board card when a pull request closes; bookkeeping, fires on every close, deploys nothing
29
29
  cleanup-unmerged-bot-branches.yml deletes the head ref of a closed unmerged bot pull request; repository hygiene, deploys nothing
30
30
  dev-ledger-reconcile.yml discards a closed pull request's applied-but-unmerged migrations from the dev ledger only; production is not touched
31
+ cf-account-migrate-alert.yml comments on issue 12931 when a dispatched CF account migrate run stops; its only parent is workflow_dispatch-only, so no merge's file list can fire it, and it deploys and applies nothing
@@ -43,6 +43,7 @@
43
43
  - When a plan asserts that middleware (or any global gate) "enforces X from ANY route" (T&C consent, auth, paywall), verify the claim against the gate's public-paths / exempt-paths early-return BEFORE relying on it. A consent/auth gate that lives AFTER a `PUBLIC_PATHS` short-circuit does NOT protect public routes. Concretely: if the plan newly routes an authenticated-but-not-fully-onboarded user TO a public route (e.g. `/invite/<token>`), the relied-upon gate does not fire there, and any page/route action reachable from it (accepting an invite) can bypass the gate. **Why:** PR #4638 — deepen-plan asserted `middleware.ts` redirects unaccepted-T&C users from "ANY route", but `/invite` is in `PUBLIC_PATHS` (`lib/routes.ts`) so middleware returns early at L129 and the T&C gate at L293-326 never runs; multi-agent review caught the would-be T&C bypass. Server-gated routes like `/callback` are safe (they enforce gates themselves); client `router.push` to a public route is not. See `knowledge-base/project/learnings/2026-05-29-middleware-tc-gate-does-not-fire-for-public-paths.md`.
44
44
  - When a plan prescribes dependency upgrades within a major version range, specify the npm version tag explicitly (e.g., `npm install next@15`, not `npm install next@latest`). The `@latest` tag resolves globally and may cross major version boundaries.
45
45
  - When a plan references specific dependency version ranges or peer constraints, verify them via `npm view <pkg> peerDependencies` before prescribing a fix approach. Plans have prescribed wrong version ranges that were only caught during implementation.
46
+ - **A plan that inserts a job into a shared workflow must name its position and grep for what depends on the neighbours.** Other suites' mutation rows anchor on a job's header and on literal `needs:` lists, so a job placed between two others moves their insertion point with no diff in those suites. Run `git grep -nE '<prev-job>|<next-job>|<comment line above next-job>' -- '*.test.*' 'tests/scripts/test-*' '.github/scripts/test/*'` before choosing the slot; an anchor can be the comment between two jobs and name neither. **Why:** #12941 — at least five sibling suites broke, and one stayed hidden until a later push because a failed step hides the later steps in its job. See `knowledge-base/project/learnings/2026-11-23-a-new-workflow-job-moved-other-suites-anchors-and-a-lint-fix-hid-sites-from-a-ratchet.md`.
46
47
  - When a plan adds a new required check to CI/branch protection rulesets, the plan MUST include an audit step that greps for ALL workflows creating PRs via `GITHUB_TOKEN` or `create-pull-request` action and lists each one requiring synthetic check updates. Plans that claim "only N workflows need updating" without showing the grep output are incomplete.
47
48
  - When a plan adds a **no-default Terraform variable** to an auto-applied infra root (`apps/web-platform/infra/` — `apply-web-platform-infra.yml` fires on any `infra/*.tf` merge), the variable's `TF_VAR_*` MUST already exist in Doppler `prd_terraform` at merge time: Terraform resolves every root variable before `-target` pruning, so an unprovisioned no-default var fails the WHOLE merge-triggered apply (not just its own resource). Do NOT classify the operator mint as a "post-merge" step. If the mint is **verified** operator-gated (a Playwright attempt reached a named human gate per the work Phase 4 attempt-evidence rule — NOT merely assumed operator-gated because it is a console/dashboard action; a vendor dashboard mint under an authenticated session is presumptively Playwright-automatable) and cannot run in-session, the plan MUST split: code (no `*.tf` change → workflow does not fire) merges first; the IaC lands in a follow-up PR that merges after the mint + `TF_VAR_*` provisioning. If automation feasibility is unverified at plan time, mark the mint `automation-status: UNVERIFIED` and require soleur:work to attempt Playwright before any split/handoff — do not pre-assume the split. Keeping the no-default var (per `hr-tf-variable-no-operator-mint-default`) is correct — only the sequencing changes. **Why:** #5468 — plan put `RESEND_RECEIVING_API_KEY` IaC + mint post-merge; CTO ruled split (ADR-065), IaC → #5480. See `knowledge-base/project/learnings/workflow-patterns/2026-06-17-operator-mint-tf-var-must-sequence-before-auto-applied-iac.md`.
48
49
  - When a plan prescribes Supabase/PostgREST query syntax (embedded resources, lateral joins, `.select()` with modifiers), include a verification note: "Confirm syntax against Supabase JS client docs before implementing." PostgREST embedded resource syntax is more limited than expected — chained `.limit().order().eq()` inside `select()` does not work.
@@ -97,6 +97,8 @@ Two lessons from #9448 belong in every fix-agent and review-seat brief (full acc
97
97
 
98
98
  - **A fix agent's "suite green" covers only the files it was given; brief it on the repo-global ratchets by name, and run the combined-tree gate BEFORE the fix-round panel.** Editing a floor means running `scripts/guard-vacuity-floor.test.sh` (its floor detector parses only `-lt|-le|-ge`, so a `-ne` rewrite drops the file from the promoted set); adding a test that reads outside `apps/web-platform` means registering it in `test/repo-wide-suites.ts` (`repo-wide-containment.test.ts`); refactoring a symbol another test pins as source text means `git grep` of the old literal across `test/`. The lead then runs the affected gate or those suites by name on the COMBINED tree before spawning seats, so the panel reviews a tree that already passes; an affected gate that prints `ran=- of=-` / `budget-deferred` (queued behind sibling runs) is no verdict. **Why:** #10892 — three disjoint-scope fix agents each reported green and together broke all three gates; two panel seats found them by running suites nobody had touched. See `knowledge-base/project/learnings/2026-10-23-fix-round-agents-reported-green-on-their-own-files-and-broke-three-repo-global-gates.md`.
99
99
 
100
+ - **A ratchet count that DROPS after a lint fix is a suspect, not a remediation: list the sites that disappeared before touching the baseline.** A site whose line is still in the file and no longer counted means the scanner was fooled. **Why:** #12941 — an SC2115 fix (`"${SB:?}/$X"`) made `fixture-scan.py` treat `:?` as a guard, hiding five `git -C "$SB"` writes (9 to 4); `:?` rejects an empty value, not a relative one. See `knowledge-base/project/learnings/2026-11-23-a-new-workflow-job-moved-other-suites-anchors-and-a-lint-fix-hid-sites-from-a-ratchet.md`.
101
+
100
102
  - **A PR that DELETES or rewrites content must merge `origin/main` and re-run the suites that read it before the evidence comment — `git merge-tree` sees no conflict when a sibling PR asserts the very line this PR removes.** A filename overlap cannot find it (the sibling never touched the deleted file; it only names it). The check is to merge `origin/main` and run the affected gate on the merged tree. A content search is only a fast pre-filter, because a sibling that reaches the file by a glob or a computed path never shows in it: for each old path from `git diff --no-renames --ignore-submodules=none --name-only --diff-filter=DMR origin/main...HEAD` (a rename is a deletion of the old path) and each removed literal such as an id, run `git diff HEAD...origin/main | grep -F -- '<path-or-literal>'` and run every suite a hit names. **Why:** #12932 — #12876 merged a test pinning the moved zone's ruleset id and requiring the `seo-config-rules.tf` import this PR deleted; only CI on the merge ref saw it, plus two new kb-consumers rows.
101
103
 
102
104
  - **A seat's remediation advice and the lead's own "X is undocumented / only / never" are claims: read the enforcing script and the whole source sentence before writing either into a document.** A fix that adds a procedure (a removal order, an apply order) names a gate; open the gate. A negative about a doc (`cut -c1-300` hides the end of the line) is not evidence of absence. **Why:** #10976 fix round — a removal-checklist order taken from a seat contradicted `sentry-alert-reference-gate.sh` (one PR, with `[ack-destroy]`), and a README row said the SDK "documents only four" key sources when the next clause calls the rest legacy members current CLIs never emit; two seats found each. See `knowledge-base/project/learnings/2026-10-25-a-diagnostic-that-can-go-blind-must-say-so-and-my-docs-claimed-more-than-the-sdk-said.md`.