@soleur/opencode 3.397.0 → 3.398.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.398.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`.