@soleur/opencode 3.387.9 → 3.388.1
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/commands/go.md +2 -1
- package/lib/workflow-fidelity.ts +1 -0
- package/package.json +1 -1
- package/scripts/admin-merge-ready.test.sh +22 -22
- package/skills/cve-exposure/SKILL.md +91 -0
- package/skills/cve-exposure/references/component-map.md +60 -0
- package/skills/cve-exposure/references/disclosure-and-verdicts.md +60 -0
- package/skills/cve-exposure/scripts/file-gap-issue.sh +111 -0
- package/skills/cve-exposure/scripts/host-state.sh +352 -0
- package/skills/cve-exposure/test/file-gap-issue.test.sh +256 -0
- package/skills/cve-exposure/test/host-state.test.sh +747 -0
- package/skills/eval-harness/enums/go-routes.json +1 -0
- package/skills/eval-harness/prompts/go-skill.txt +3 -2
- package/skills/eval-harness/tasks/go-routing.jsonl +10 -0
- package/skills/eval-harness/test/eval-gate.test.sh +3 -3
- package/skills/eval-harness/test/parse-label.test.sh +3 -3
|
@@ -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 (
|
|
50
|
-
if [[ "$calls" == "
|
|
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
|
|
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"
|
|
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"
|
|
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"]'
|
|
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)"
|