@soleur/opencode 3.387.8 → 3.388.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.
@@ -1,4 +1,5 @@
1
1
  [
2
+ "cve-exposure",
2
3
  "fix",
3
4
  "drain",
4
5
  "drain-prs",
@@ -3,19 +3,20 @@ You are the Soleur /go router. Classify the user's request into EXACTLY ONE rout
3
3
  Routing table:
4
4
  | Intent | Trigger Signals | Routes To |
5
5
  |--------|----------------|-----------|
6
+ | cve-exposure | The user asks a QUESTION about exposure that names a CVE, GHSA or advisory (e.g. "are we subject to CVE-X on our prod hosts?", "are we affected by CVE-X?"). A Soleur-infrastructure cue (prod, hosts, Better Stack, Terraform, "our infra") is NOT required: the skill's Step 0 stops in a non-Soleur checkout and hands the asker to `default`. A bare CVE mention with no question goes to `default`. Three negatives: a remediation-only request with no question ("fix CVE-X in the base image") stays `fix`; a live outage with no exploitation question ("prod is down and logs mention CVE-X") stays `incident`, while active or suspected exploitation ("is CVE-X being exploited against us") goes to `legal-threshold`; a question that explicitly concerns another product the asker owns or the asker's customers ("my app's dependencies", "our customers' stack") goes to `default`; a question about Soleur's own dependencies or lockfile ("our dependencies") stays here. A mixed "are we affected, and if so fix it" request routes HERE first, then hands off to `fix` once exposure is confirmed. | `soleur:cve-exposure` |
6
7
  | fix | The user describes broken behavior, errors, regressions, or something that needs fixing | `soleur:one-shot` |
7
8
  | drain | "fix all issues labeled X", "drain the Y backlog", "close all label:Z", "clean up the X backlog" | `soleur:drain-labeled-backlog` |
8
9
  | drain-prs | "drain the open PRs", "review and merge all open PRs", "merge all the green PRs", "clear the PR queue/backlog", "triage open pull requests" — draining open PULL REQUESTS (not labeled issues, which is the `drain` row above; not a single named PR, which is the `review` row below) | `soleur:drain-prs` |
9
10
  | clo-attestation | The user input is `#N` (or a bare number) AND `gh issue view N` returns a body containing `clo_routable: true` OR matches ALL of: `type:\s*manual`, `manual_because:\s*subjective-design-call`, AND at least one external legal-source signal (`eur-lex\.europa\.eu`, `leginfo\.legislature\.ca\.gov`, `congress\.gov`, `federalregister\.gov`, `legislation\.gov\.uk`, `laws-lois\.justice\.gc\.ca`, OR a `Art\.\s*[0-9]+` / `§\s*[0-9]+` statute citation in the body). Must fire BEFORE the `review` row. | `soleur:legal:clo` agent (Task spawn; the agent's prompt receives the full issue body + the verification question(s) extracted from the body) |
10
11
  | review | "review PR", "check this code", PR number reference (when `#N` resolves via `gh pr view N` — confirm PR-vs-issue type before routing) | `soleur:review` |
11
- | legal-threshold | The user input mentions an inbound vendor MSA, DSAR (data subject access request) / right-to-be-forgotten / data deletion request / account deletion request / data export request / "what data do you have on me", AI vendor terms / vendor AI review, OSS license question (GPL/AGPL/SSPL/copyleft), OR a personal-data exposure / unauthorized access / PII leak that crosses a statutory clock (GDPR Art. 33 72h) — events that exceed founder-grade compliance helping and warrant a downstream specialist | `soleur:legal:clo` agent (Task spawn; the Assess phase emits the threshold catalog from `knowledge-base/legal/recommended-tools.md`) |
12
+ | legal-threshold | The user input mentions an inbound vendor MSA, DSAR (data subject access request) / right-to-be-forgotten / data deletion request / account deletion request / data export request / "what data do you have on me", AI vendor terms / vendor AI review, OSS license question (GPL/AGPL/SSPL/copyleft), OR a personal-data exposure / unauthorized access / PII leak that crosses a statutory clock (GDPR Art. 33 72h), OR suspected or active exploitation of a named vulnerability against our infrastructure (an independent trigger: the clock assessment is the CLO's, not the router's) — events that exceed founder-grade compliance helping and warrant a downstream specialist | `soleur:legal:clo` agent (Task spawn; the Assess phase emits the threshold catalog from `knowledge-base/legal/recommended-tools.md`) |
12
13
  | incident | The user describes a live or recent production incident (outage, customer-impact, Sentry alert) needing classification + PIR. NOTE: pure data breaches without an operational outage route to `legal-threshold` above (statutory clock takes precedence); use `incident` for ops-postmortem scope (uptime, latency, error-rate). | `soleur:incident` |
13
14
  | implement | User asks to **implement**, **build**, or **ship** a scoped feature, issue, or phase (e.g. "implement Phase F", "#6325 implement", "ship this feature") — concrete deliverables, not open-ended exploration | `soleur:one-shot` |
14
15
  | questionnaire | The user needs an ANSWER THEY DO NOT HOLD from a NAMED THIRD PARTY outside the company — an accountant, bookkeeper, lawyer, notary, auditor, insurer, bank, regulator, landlord, or a vendor — and the deliverable is a document to send them ("ask my accountant", "draft questions for the lawyer", "what do I need from the insurer", "I need to email our bookkeeper about"). The tell is a recipient plus a decision the founder is blocked on; a question the founder can answer, or one about this codebase, is NOT this row — those are `default` and `fix` respectively. Also reached without routing when `.claude/hooks/pre-ask-technical-fork-gate.sh` denies an external-expert `AskUserQuestion` | `soleur:questionnaire-generate` |
15
16
  | glossary | The user asks what a term MEANS inside this repository, reports that two agents or documents use one word for different things, or asks to record or sharpen the definition of a project term ("what do we mean by lane", "shard and shard mean two different things here", "write down what a rung is"). Scoped to the repository's own vocabulary — a question about a third-party product's terminology is `default` | `soleur:kb-glossary` |
16
17
  | default | Everything else — features, exploration, questions, generation, vague scope without implement/build/ship intent | `soleur:brainstorm` |
17
18
 
18
- Respond with ONLY the single route token (one of: fix, drain, drain-prs, clo-attestation, review, legal-threshold, incident, implement, questionnaire, glossary, default). No explanation, no punctuation, no extra words.
19
+ Respond with ONLY the single route token (one of: cve-exposure, fix, drain, drain-prs, clo-attestation, review, legal-threshold, incident, implement, questionnaire, glossary, default). No explanation, no punctuation, no extra words.
19
20
 
20
21
  User request: {{input}}
21
22
  Route:
@@ -6,3 +6,13 @@
6
6
  {"vars": {"input": "Can you review PR #4502 and check whether the auth changes are sound?", "golden_label": "review"}}
7
7
  {"vars": {"input": "I'd like to add a dark-mode toggle to the settings page — where should we start?", "golden_label": "default"}}
8
8
  {"vars": {"input": "#6325 implement Phase F", "golden_label": "implement"}}
9
+ {"vars": {"input": "Are we subject to CVE-2026-111497 on our prod hosts?", "golden_label": "cve-exposure"}}
10
+ {"vars": {"input": "A new advisory dropped for CVE-2026-98432 -- do the hosts we run on Hetzner or our Terraform-managed infra pull in the affected package, and is Better Stack showing anything?", "golden_label": "cve-exposure"}}
11
+ {"vars": {"input": "Does GHSA-abcd-1234-wxyz apply to anything we run in production?", "golden_label": "cve-exposure"}}
12
+ {"vars": {"input": "Are we affected by CVE-2026-111497 on our infra, and if so fix it.", "golden_label": "cve-exposure"}}
13
+ {"vars": {"input": "Fix CVE-2026-111497 in the base image.", "golden_label": "fix"}}
14
+ {"vars": {"input": "Prod is down and the logs mention CVE-2026-98432.", "golden_label": "incident"}}
15
+ {"vars": {"input": "Is CVE-2026-98432 being exploited against us right now?", "golden_label": "legal-threshold"}}
16
+ {"vars": {"input": "Does CVE-2026-1234 affect my app's dependencies?", "golden_label": "default"}}
17
+ {"vars": {"input": "Are we affected by CVE-2026-1234?", "golden_label": "cve-exposure"}}
18
+ {"vars": {"input": "Do our lockfile dependencies include a version affected by CVE-2026-1234?", "golden_label": "cve-exposure"}}
@@ -46,11 +46,11 @@ fi
46
46
  out=$(node "$GATE" --dry-run --target go-routing --repeat 5)
47
47
  if [[ "$(echo "$out" | jqget dry_run)" == "true" ]]; then
48
48
  calls=$(echo "$out" | jqget estimated_api_calls)
49
- # 2 (current+candidate) x 3 models x (8 corpus + 1 target) x 5 repeat = 270
50
- if [[ "$calls" == "270" ]]; then
49
+ # 2 (current+candidate) x 3 models x (18 corpus + 1 target) x 5 repeat = 570
50
+ if [[ "$calls" == "570" ]]; then
51
51
  pass "--dry-run estimate (go-routing, repeat 5) = $calls"
52
52
  else
53
- fail "--dry-run estimate" "estimated_api_calls=$calls (want 270)"
53
+ fail "--dry-run estimate" "estimated_api_calls=$calls (want 570)"
54
54
  fi
55
55
  else
56
56
  fail "--dry-run" "got: $out"
@@ -108,14 +108,14 @@ loadenum() {
108
108
 
109
109
  # promptfoo's file:// var handling is version-dependent: it may pass the literal
110
110
  # `file://...` ref OR the RESOLVED FILE CONTENTS (JSON array text). Both must work.
111
- loadenum "file://enums/go-routes.json" 11 "fix" "loadEnum file:// literal ref (one promptfoo shape)"
111
+ loadenum "file://enums/go-routes.json" 12 "cve-exposure" "loadEnum file:// literal ref (one promptfoo shape)"
112
112
  loadenum "file://enums/triage-levels.json" 3 "P1" "loadEnum file:// triage-levels"
113
- loadenum "enums/go-routes.json" 11 "fix" "loadEnum bare relative path"
113
+ loadenum "enums/go-routes.json" 12 "cve-exposure" "loadEnum bare relative path"
114
114
  # The resolved-contents shape — what promptfoo actually passes when it resolves a
115
115
  # defaultTest.vars file:// ref to the file's CONTENTS. Regression guard for the
116
116
  # gate-vacuous bug (loadEnum must JSON.parse a JSON-array-text string, not treat it
117
117
  # as a path). JSON array text as a string.
118
- loadenum '["fix","drain","drain-prs","clo-attestation","review","legal-threshold","incident","implement","questionnaire","glossary","default"]' 11 "fix" "loadEnum JSON-array-text contents (promptfoo file:// resolved-contents shape)"
118
+ loadenum '["cve-exposure","fix","drain","drain-prs","clo-attestation","review","legal-threshold","incident","implement","questionnaire","glossary","default"]' 12 "cve-exposure" "loadEnum JSON-array-text contents (promptfoo file:// resolved-contents shape)"
119
119
  loadenum '[ "a", "b", "c" ]' 3 "a" "loadEnum whitespaced JSON-array-text contents"
120
120
  loadenum "__ARRAY__" 3 "a" "loadEnum direct array passthrough"
121
121
  loadenum "file://enums/does-not-exist.json" 0 "null" "loadEnum unreadable file -> [] (gate fails closed)"
@@ -86,3 +86,5 @@ already carries — see
86
86
  - **Curl mock URL logs must record transfer targets, not URL-shaped option values.** Parse positional, `--url`/`--url=` operands across schemes; consume curl proxy selectors (`--proxy`, `--proxy1.0`, `--preproxy`, SOCKS4/4a/5/5-hostname, `-x`, and clustered `-sSx`), capture original argv before shifting, and test each selector/form alone and beside a real target. Pin exactly one `--noproxy '*'` per request, exact target counts, and the proxy-option deny check so proxy destinations cannot masquerade as requests or re-enable proxy routing.
87
87
 
88
88
  - **A suite deferred to a later phase is the suite the current edit needs.** When a task list schedules "run the named suites directly" but delegates one file's own suite to a later pipeline phase (affected-run delegation), re-check the deferred set against the files actually edited before moving on — `bash -n` plus green sibling suites cannot see a semantic break (a `#` line interposed inside a `\`-continuation splits the command; the file's argv-shape rows are what catch it). Run the edited file's suite WITH the edit, or record the gap in the deviation note so the next phase knows it is uncovered. **Why:** PR #11735 (#11553) — the exemption comment inside a curl continuation silently killed the Sentry cross-check while `anthropic-admin-key-6297.test.sh` sat deferred; shellcheck SC2215 caught it in review. See `knowledge-base/project/learnings/2026-10-31-a-comment-inside-a-backslash-continuation-splits-the-command-the-fold-thought-was-one.md`.
89
+
90
+ - **A bash regex RANGE follows the locale, and a probe that tests a LINE must prove the token is absent from that line's prose.** `[[ x =~ ^[0-9a-f]{40}$ ]]` accepted 39 hex digits plus an accented letter under `LC_ALL=en_US.utf8` (bash 5.3) and rejected it under `C`/`C.UTF-8`: pin `LC_ALL=C` function-locally for any security-relevant validation and fixture a non-ASCII letter under a collating locale (a mutant that deletes the pin is killable only where that locale exists, so fail rather than skip on CI). A follow-through probe grepping a command line for `headSha` returned PASS on the unfixed tree because the same line carries the prose "by headSha/createdAt": parse the `--json` field list, require exactly one matching line, and run the probe once against the real file expecting the UNFIXED verdict plus a lookalike and a decoy-comment fixture. **Why:** #12320/PR #12350 — see `knowledge-base/project/learnings/2026-11-08-a-locale-ordered-regex-range-and-a-probe-that-matched-the-prose-on-its-own-line.md`.