@soleur/opencode 3.397.0 → 3.399.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.
@@ -113,3 +113,5 @@ Always cite your sources and indicate the authority level:
113
113
  If you encounter conflicting advice, present the different viewpoints and explain the trade-offs.
114
114
 
115
115
  Your research should be thorough but focused on practical application. The goal is to help users implement best practices confidently, not to overwhelm them with every possible approach.
116
+
117
+ When you download a source file to read it (curl, wget, a raw GitHub URL), save it under the session scratchpad or a fresh temporary directory, never the current working directory: the working directory is usually a feature worktree, and a stray download there gets swept into the next commit.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.397.0",
3
+ "version": "3.399.0",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -265,7 +265,7 @@ If prior artifacts exist, read them and frame the research agent prompts as "giv
265
265
 
266
266
  **An "advisory-first, promote later per the <X> precedent" framing is a claim to MEASURE before it sets the new gate's posture.** When an issue cites a prior gate as calibration precedent, verify the precedent's promotion actually happened — the author is citing the *intent* they remember, not the *outcome*: (1) `grep -rl "<scanner>" .github/workflows/` — if it returns nothing, the "precedent" is a skill script, not a CI gate, and there was never an advisory stream to promote; (2) `gh issue view <calibration-issue> --json state,createdAt,comments` — compare age against the stated window and count ORGANIC findings (a window open past its deadline with only ship-day comments + a triage bot produced nothing); (3) ask whether ANY advisory gate in this repo was ever promoted to blocking — if zero-for-N, born-blocking is the only mechanism with a track record, and "advisory now, blocking later" is the option that reliably ships a warning stream with no reader and no expiry. A gate that cannot be scoped precisely enough to block is evidence the *detector* is wrong, not evidence it needs a calibration window. **Why:** #6517 — `tier1-scan.ts` is in zero workflows and calibration issue #4270 sat OPEN at 56 days against a stated 2-week window with 0 organic findings, while the arm that did ship blocking (#4646) was born blocking. See `knowledge-base/project/learnings/2026-07-16-advisory-first-precedent-is-a-claim-to-measure-and-a-coordinate-citation-carries-no-claim.md`.
267
267
 
268
- **Also check sibling/closed issues for prior framings of the same mechanism.** When the feature_description references `#N` with a parent (`Parent: #M` in the body or an umbrella issue), read the parent's child list AND run `gh issue list --state all -L 200 --search "<core-mechanism-keywords>"` to surface deferred or closed prior framings. **Why:** 2026-05-11 #2720 brainstorm — the issue was a re-framing of #421 (deferred Layer 2 of self-healing-workflow); without this check, the brainstorm would have produced a parallel spec orphaning #421. See `knowledge-base/project/learnings/2026-05-11-brainstorm-parallel-domain-and-research-fan-out-and-duplicate-issue-discovery.md`. When the inciting event is a vendor pricing/model/terms change, additionally grep OPEN issues for deferred work whose re-evaluation criteria name that event class (`gh issue list --state open -L 200 --search "deferred <pricing|model|vendor-keyword>"`) — deferred issues encode prior leader consensus plus re-open criteria, and the brainstorm's job may be certifying the trigger fired, not re-deriving the decision (2026-06-10: #3791's "pricing change" trigger sat dormant through the Fable 5 release). When the operator explicitly **overturns** a recorded deferral/validator verdict instead of certifying its trigger: state in the brainstorm which conditions are satisfied vs. overridden and why, comment the partial override on the deferred issue (keep it OPEN for the un-overridden remainder), and inherit its captured "if/when built" decisions verbatim into the new spec — never silently fork (2026-06-10: #5103 overrode #4788 condition 1 only; K6 decisions inherited).
268
+ **Prior framings (Phase 1.1, before accepting a "no prior evaluation" framing):** **Read [brainstorm-prior-framings.md](${CLAUDE_PLUGIN_ROOT}/skills/brainstorm/references/brainstorm-prior-framings.md) now** and run its sibling-issue, deferred-work and unmerged-branch checks.
269
269
 
270
270
  **External-framework/article brainstorms — audit existing primitives before framing greenfield.** When the request is "apply the technique(s) from this paper/article/framework to Soleur" (as opposed to a prior Soleur artifact), the first move is an existing-primitive audit, NOT a from-scratch design. First verify the source is real (WebSearch/WebFetch the paper + repo — fabricated frameworks are a live failure mode), then translate each concept in the source into Soleur's current primitive and its automation level, and prompt the research/leader agents to "MAP THE CURRENT STATE and find the ONE open gap — do not propose from scratch." The productive deliverable is a stage→primitive→automation→gap table that scopes the smallest zero-risk increment closing the open stage. **Why:** 2026-07-05 self-improving-harness brainstorm (#6037) — Soleur already implemented ~70% of Self-Harness/HarnessX (`cron-compound-promote`, `rule-metrics-aggregate`, `eval-gate`/ADR-069, #397 self-healing Layer 2, #5768 harness-L3) before the article existed; greenfield framing would have re-specced shipped infra. See `knowledge-base/project/learnings/2026-07-05-external-framework-brainstorm-audit-existing-primitives-before-greenfield.md`.
271
271
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  **Harness note:** the `gh issue view` verification inside each Task Prompt is orchestrator-side work when the spawned subagent profile has no shell (e.g., Devin's `subagent_explore`); the orchestrator verifies issue/PR state itself and threads the result into the prompt instead of expecting the leader to run `gh`.
4
4
 
5
+ **CTO interface note:** an assessment prompt to `soleur:engineering:cto` says `Structured advisory only` and never the sentence "Do NOT use AskUserQuestion". That sentence selects the CTO's Rule interface (see the interface list in [the CTO agent definition](../../../agents/engineering/cto.md)), and a subagent cannot ask the operator anyway (#12517).
6
+
5
7
  Read the user's message or feature description and assess relevance against each domain in the table below. For each relevant domain, spawn the domain leader as a Task agent using the Task Prompt column, substituting `{desc}` with context. The Routing Prompt and Options columns are retained for workshop reference only -- they are not used during standard routing.
6
8
 
7
9
  | Domain | Assessment Question | Leader | Routing Prompt | Options | Task Prompt |
@@ -0,0 +1,5 @@
1
+ # Brainstorm: prior framings of the same mechanism
2
+
3
+ Loaded by Phase 1.1 (Research) of `brainstorm/SKILL.md` before the brainstorm accepts that an idea has no prior evaluation.
4
+
5
+ **Also check sibling/closed issues for prior framings of the same mechanism.** When the feature_description references `#N` with a parent (`Parent: #M` in the body or an umbrella issue), read the parent's child list AND run `gh issue list --state all -L 200 --search "<core-mechanism-keywords>"` to surface deferred or closed prior framings. **Why:** 2026-05-11 #2720 brainstorm — the issue was a re-framing of #421 (deferred Layer 2 of self-healing-workflow); without this check, the brainstorm would have produced a parallel spec orphaning #421. See `knowledge-base/project/learnings/2026-05-11-brainstorm-parallel-domain-and-research-fan-out-and-duplicate-issue-discovery.md`. When the inciting event is a vendor pricing/model/terms change, additionally grep OPEN issues for deferred work whose re-evaluation criteria name that event class (`gh issue list --state open -L 200 --search "deferred <pricing|model|vendor-keyword>"`) — deferred issues encode prior leader consensus plus re-open criteria, and the brainstorm's job may be certifying the trigger fired, not re-deriving the decision (2026-06-10: #3791's "pricing change" trigger sat dormant through the Fable 5 release). When the operator explicitly **overturns** a recorded deferral/validator verdict instead of certifying its trigger: state in the brainstorm which conditions are satisfied vs. overridden and why, comment the partial override on the deferred issue (keep it OPEN for the un-overridden remainder), and inherit its captured "if/when built" decisions verbatim into the new spec — never silently fork (2026-06-10: #5103 overrode #4788 condition 1 only; K6 decisions inherited). **A sibling's decision can live only on an unmerged PR branch.** When a sibling epic or issue cites a brainstorm or spec path that does not resolve on `main`, list its open PRs (`gh pr list --state open -L 200 --search "<epic-slug>"`), find exact names with `git ls-tree -r --name-only origin/<branch>`, and read them with `git show origin/<branch>:<path>` before accepting a "no prior evaluation" framing. **Why:** #12517 claimed one prior managed-runtime evaluation; the gVisor epic's spec, on PR #9832's month-old branch, already recorded "Managed vendors: no". See `knowledge-base/project/learnings/2026-11-09-a-deciding-criterion-belongs-to-one-component-find-it-before-comparing-bundles.md`.
@@ -88,6 +88,8 @@ traced from the ACTUAL producer) route here too; record the decision and the rej
88
88
 
89
89
  A ruling that WIDENS a status, permission or approval guard needs the guard's history in the brief: `git log -S` of the guarded set and the tests that pin it, plus every writer of the status. **Why (guard widening):** #11303 — a ruling that let the abort finalize accept `waiting_for_user` re-opened the #3463 disconnect-after-result race and its test was rewritten to match; the next review round caught it. See `knowledge-base/project/learnings/security-issues/2026-10-27-the-allowlist-pre-approved-the-gated-tier-and-two-of-my-fixes-reopened-it.md`.
90
90
 
91
+ A fact the brief states about a dependency's or vendor's behaviour carries the `file:line` or measurement it was read from in this session; one stated from memory is labelled a hypothesis. **Why (brief facts):** #12517/PR #12518 — a brief said iron-proxy sends the hook the full body or fails the call; the CTO's own source read found `max_request_body_bytes` defaults to 1 MiB and cuts bodies with no error, which withdrew a recorded GO. See `knowledge-base/project/learnings/2026-11-10-the-hook-judged-a-cleaned-path-and-my-brief-stated-a-source-fact-i-had-not-read.md`.
92
+
91
93
  **Why:** #5325 — the plan's `action_sends`-reuse mechanism was structurally blocked and the substrate choice (dedicated
92
94
  WORM table vs gate-only vs full reuse) was first offered to the operator before the CTO ruled. See
93
95
  `knowledge-base/project/learnings/workflow-patterns/2026-06-15-architectural-fork-decisions-route-to-cto-not-operator.md`.
@@ -362,3 +362,4 @@ NEVER CODE! Just research and write the plan.
362
362
  - **A suite ledger's per-site cost is ARM cost (pristine + every mutant rep + the give_up boundary), not pristine cost — measure the pristine site before prescribing fixture surgery.** When the arm is expensive and pristine is cheap, the pathology is mutant-side runaway and the remedy is pacing (per-scan give_up that returns over-bound, cheapest-condemner ordering, a shrink-only per-invocation timeout), never smaller fixtures, which cut coverage to treat a cost the SUT never had. The same rule covers every bound a ruling asserts: derive caps/floors from a measured pristine rate, not arithmetic — a `12*len+5000` line-event cap was one event under pristine `hb`'s measured 485,001 events at 40,000 bytes (12.125/byte) and would have condemned the pristine run. **Why:** #12016/PR #12419 — `row_scan_ops` reported 47.3 s site cost; pristine was ~4.8 s. See `knowledge-base/project/learnings/performance-issues/mutant-side-runaway-read-as-pristine-site-cost-ci-replay-20261108.md`.
363
363
 
364
364
  - **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`.
365
+ - **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`.