@soleur/opencode 3.399.1 → 3.399.3
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/agents/engineering/cto.md +1 -0
- package/package.json +1 -1
- package/skills/postmerge/SKILL.md +4 -2
- package/skills/review/references/risk-tier-and-fix-rounds.md +2 -0
- package/skills/verification-scaffold/references/guardrail-audit.md +2 -1
- package/skills/work/references/work-test-harness-sharp-edges.md +2 -0
|
@@ -71,6 +71,7 @@ Selected by rule 3 of the interface selector. You are asked for a binding techni
|
|
|
71
71
|
- **A "surface it" or "OPEN DECISION" brief is the trigger, not an exemption.** Rule on it. If the item mixes a technical part and an operator-only part, split it: rule the technical part and return the authorization as a separate line that names the ACTION.
|
|
72
72
|
- **Legal posture is not yours.** Name `soleur:legal:clo` as the owner and rule only the engineering part.
|
|
73
73
|
- **A live read-only check is technical.** When the evidence for a ruling is one read away, run it before you rule, under Class R (the standing-delegation reference, linked under Own the epic below). Do not return `unverified` for a read you could have run, and never return "run by the owner or a follow-up agent"; label only a read you could not run `unverified`, with the reason (the evidence bar above).
|
|
74
|
+
- **A named enforcement mechanism is a claim about its source.** Before a ruling names an existing sweeper, hook or gate as what enforces it ("the sweeper raises it"), read that mechanism's source and cite the line that makes it fire on this case; otherwise label it `unverified`. **Why:** #12563 ruling 20 → 28: a Date-shape follow-through closes PASS on `exit 0` (sweeper header) without reading the volume. See `knowledge-base/project/learnings/2026-11-10-a-closed-allow-list-that-pins-names-leaves-the-deny-list-one-level-down.md`.
|
|
74
75
|
- **Hold classification (go Step 1.5).** A read you can run is run now and returned as `technical: checked <what>: <result>, <ok|bad>, <time>`; one you could not run as `technical: unverified - <no-credential|no-session|no-tool|other>: <reason>`. The caller prints them as "I checked" and "I could not check" lines.
|
|
75
76
|
|
|
76
77
|
## Own the epic interface
|
package/package.json
CHANGED
|
@@ -507,8 +507,10 @@ doppler run -p soleur -c prd_terraform --only-secrets HCLOUD_TOKEN_READONLY --no
|
|
|
507
507
|
```
|
|
508
508
|
|
|
509
509
|
4. **Route on the word, compared with the expected one.** `protected` / `not-protected` equal to the expected word passes;
|
|
510
|
-
a mismatch is a red status. `volume-gone` (HTTP 404) is not a read problem
|
|
511
|
-
|
|
510
|
+
a mismatch is a red status. `volume-gone` (HTTP 404) is not a read problem, and not proof of a loss: a token from
|
|
511
|
+
another Hetzner project also gets 404. Report it, then run the read-only server-name listing under
|
|
512
|
+
`orphan_sweep_project_identity_unproven` in the 8209 runbook named below: unknown names mean a wrong-project token
|
|
513
|
+
(re-mint it, step O5); only matching names route to the runbook's "After a total loss". `read-failed` (an HTTP error such as a 401, a network error, a non-JSON body or a missing field) and a
|
|
512
514
|
**missing word** (nothing printed: `doppler` absent or unauthenticated, an error before the command ran) mean the read
|
|
513
515
|
did not happen: report them, never dispatch on their account. `missing-token` means `HCLOUD_TOKEN_READONLY` is absent from
|
|
514
516
|
`prd_terraform`; minting it is operator step O5 in `knowledge-base/engineering/operations/runbooks/infra-credential-tiers-8209.md`.
|
|
@@ -62,6 +62,7 @@ Fix commits are the least-audited surface in the pipeline (learnings 2026-09-23,
|
|
|
62
62
|
The script's path→seat map is the single source for both consumers: it also defines the `none`-tier trigger-gating predicates (the seat fires iff the diff touches a path its map arm covers). Add `soleur:engineering:review:security-sentinel` whenever the fix diff touches `SENSITIVE_PATH_RE` — that arm is mechanical — OR adds guard/deny-shaped lines, which is lead judgment (the script maps paths only). A source-touching fix never resolves to zero seats — the script emits the `soleur:engineering:review:code-quality-analyst` floor on unmatched source paths, and lists them on stderr as `unmapped-paths:`; an empty fix diff emits nothing (`note: empty fix diff` on stderr) and legitimately spawns zero seats. Pass `--files` from the fix commits' own range (`git diff $PANEL_SHA <last-fix-sha>`), never `$PANEL_SHA..HEAD` after a merge of `origin/main`: the merge's files are other people's changes, and on #10285 they turned a 9-file fix round into a 147-file seat resolution.
|
|
63
63
|
3. **Report-only spawn** against `git diff $PANEL_SHA..HEAD` — the FIX diff, not the branch diff. **Tally (#9403):** fix-round seats are review seats — `gate seats <N>` (N = the resolved seat count) before dispatch and `incr seats <N>` after, on the branch ledger; a `STOP` verdict is the classified-stop path (write `status: budget-capped` + `budget-capped: seats=<n>/<cap>` to the feature's `session-state.md` and halt — do not silently shrink the round).
|
|
64
64
|
4. **Cap two targeted rounds.** A third needed round escalates to the full class panel over the cumulative fix diff — an unbounded targeted loop is the treadmill this mechanism exists to prevent.
|
|
65
|
+
When a round's findings against a pin test are SIBLING shapes of the last round's, the defect is the test's claim, not its coverage: rule its contract (what it guards, what it leaves open) and state the residuals in its header before fixing more shapes; a later shape inside a stated residual is recorded as "covered by R<n>". **Why:** #12348/PR #12561 — three rounds each re-found "a prior step or the env replaces what the gate runs"; stating the residuals (plus two class fixes) let the final pass terminate. See `knowledge-base/project/learnings/2026-11-11-each-fix-round-found-the-next-sibling-until-the-test-stated-its-residuals.md`.
|
|
65
66
|
5. **One verification pass** after the last round: a single fresh-eyes verifier seat answers "does each fix commit close its finding, and did any fix introduce a defect in its own area?", plus the lead's affected-gate run (`scripts/test-all.sh --affected`; `TEST_GROUP=affected` is its deprecated alias, #8621).
|
|
66
67
|
6. **Invocation:** `soleur:review <PR> --fix-round --since <sha>` runs only the targeted round + verification pass — `soleur:one-shot` Step 5 calls this after its resolver-agent commits land. `--since` is the panel snapshot; when it is absent (a bare invocation, or a rebase invalidated it) recover the base as **the parent of the oldest `review:`/`fix`-subject commit since the merge-base, else the merge-base itself** — and report which base was used. The fix round attests via `emit-review-trailer.sh --fix-round --since <base>` (`Reviewed-Fix-Round:`/`Reviewed-Fix-Range:` keys — never `Reviewed-Coverage:`). The range's effective head is derived by attestation-TRAILER presence, never by `review:`-prefixed subjects — `review: <summary> (P<N>)` is this repo's prescribed fix-commit subject, so a subject filter silently excludes real fixes. A standalone/fresh-session invocation has no access to the prior session's dedup ledger — without it the round degrades to path-mapped seats only (no `--finding-seats` union); that is the known, fail-safe direction and should be reported. A fix round attests ONLY via `--fix-round` keys: the branch-level `Reviewed-By-Soleur`/`Reviewed-Coverage` trailer must already exist from the main panel — absent, that is the anomaly (a fix round without a panel), report it, never emit a main trailer for a targeted round. Its commit subject is `review-fix-round:`, deliberately NOT matching the merge gate's legacy `review:` evidence regex — a targeted round is not branch-level review evidence.
|
|
67
68
|
|
|
@@ -116,4 +117,5 @@ The canonical defect key is `defect-class + rolled-up root cause`, **not** file-
|
|
|
116
117
|
- **Brief every seat to stop its own processes by PID, and ban `pkill -x` as well as `pkill -f`.** The guard hook blocks only the `-f` form, so a seat that ran `pkill -x python3` could have killed another seat's mutation job on the same host; seats also share scratchpad file names unless each takes its own subdirectory. **Why:** #12148 — a code-quality seat's `pkill -x python3` plus a shared `mut.py` name, with seven parallel seats on a host at load 26. See `knowledge-base/project/learnings/2026-11-05-a-skip-keyed-on-the-record-not-on-the-success-made-a-false-sent-and-four-sibling-defects-the-review-found.md`.
|
|
117
118
|
- **A fix that changes how a probe calls a faked CLI keeps flags AFTER the endpoint.** Repo fake-`gh` fixtures read the endpoint positionally (`ep="$2"` right after `api`); a flag placed before it silently becomes the endpoint, every fixture arm misses, and the probe reports `fail`/CANNOT ESTABLISH — an upstream-outage signature for what is a fixture-contract break. The correct shape is `api "<endpoint>" --paginate --jq ...`. **Why:** #9323 fix round (PR #12439). See `knowledge-base/project/learnings/workflow-patterns/2026-11-08-escape-is-a-job-family-verdict-and-adopted-collects-verify-per-idx.md`.
|
|
118
119
|
- **Brief a fix agent with the ARM x LOOSENING table, not the instance the seat named.** A seat reports one arm of a multi-arm predicate (one RECOVERY shape, one stream, one consumer); the fix closes that arm and every later verification round re-finds the next sibling, while a count-style negative assertion cannot name which row failed. Before dispatch, list every arm of the predicate and every other consumer of the same input, require one negative row and one surviving-mutant check per cell, and for a hand-copied grammar require a drift row against its source. **Why:** #12476 — the pointer/`pending=`/`stale-row` arms and a single-pass sanitiser (nested NEL/LS/PS re-forms) were each found in a later round than the arm the first seat named. See `knowledge-base/project/learnings/2026-11-09-a-fix-round-closes-the-instance-the-reviewer-named-and-leaves-its-sibling-arms.md`.
|
|
120
|
+
- **A "closed allow-list" of key names, a step list or spellings leaves the same deny-list one level down; brief the fix to pin the EXACT value read from the current file and to answer "what does the harness compute differently from the runner?"** Inside each allowed item sits a value (an env value, a SHA, a whole `sh -c` body, a logged verdict that must EQUAL the published one), and a harness with a fixture `github` context, an unmodelled expression root or a different `!` precedence passes a mutant the runner executes differently. A fix touching a lifecycle SKILL.md also runs the repository's `lint-skill-body-budget.py` against the merge base before reporting. **Why:** #12563 — R1 names → F1-F3 step list/`if:`/env names → V1-V4 env values/checkout SHA/exact lines/verdict equality, one level per round; F11 prose took postmerge 50 bytes over its ceiling. See `knowledge-base/project/learnings/2026-11-10-a-closed-allow-list-that-pins-names-leaves-the-deny-list-one-level-down.md`.
|
|
119
121
|
- **Brief the SECOND fix-round seat on the CLASS, not on its first repro.** A fix for an adversary-controlled input usually closes the instance a seat measured (a depth-1 symlink scan, a two-name remote allowlist, a denylist of option names), and the next round finds the next member. Ask each seat "what other member of this family does the fix still miss" and require the guard to be proven by walking the mechanism (a bounded recursive walk, an allowlist) rather than by listing measured members. **Why:** #9601 host-git hardening — a redirect guard needed two rounds to go from `.git` to `refs/` to `refs/**` + `logs/**`, and the day-before learning on the same family had not prevented the repeat. See `knowledge-base/project/learnings/2026-11-10-a-redirect-guard-was-widened-one-level-at-a-time-and-reviewed-into-the-class-in-two-rounds.md`.
|
|
@@ -90,7 +90,7 @@ template rather than shipping the monolith.
|
|
|
90
90
|
| `supabase-loopback-warn.sh` | soleur-coupled | Supabase vendor stack check (ADR-153). |
|
|
91
91
|
| `worktree-write-guard.sh` | generic-after-extraction | Blocks writes to the main checkout while worktrees exist — repo-generic idea (v2); couplings = `incidents.sh`/`hook-input.sh` sourcing. |
|
|
92
92
|
|
|
93
|
-
## Census — `scripts/lint-*` (
|
|
93
|
+
## Census — `scripts/lint-*` (51)
|
|
94
94
|
|
|
95
95
|
| File | Verdict | Rationale |
|
|
96
96
|
|---|---|---|
|
|
@@ -104,6 +104,7 @@ template rather than shipping the monolith.
|
|
|
104
104
|
| `lint-bot-synthetic-statuses.sh` | generic-after-extraction | `[skip ci]` ban on bot PRs is generic (v2); same named exemptions. |
|
|
105
105
|
| `lint-conversations-update-callsites.sh` | soleur-coupled | `apps/web-platform/server` module boundary. |
|
|
106
106
|
| `lint-credential-path-literals.py` | soleur-coupled | SCAN_DIRS = `plugins/` + `knowledge-base/`. |
|
|
107
|
+
| `lint-cve-safe-status.py` | soleur-coupled | `SCAN_ROOT` = `knowledge-base/`, file-count floor sized to this repo; ADR-322. |
|
|
107
108
|
| `lint-diagnosis-claims.sh` | generic-after-extraction | "CI message may not name a cause the job did not measure" is generic (v2); scope names `apps/web-platform/infra/`. |
|
|
108
109
|
| `lint-distribution-content.sh` | soleur-coupled | `knowledge-base/marketing/distribution-content/` marker lint. |
|
|
109
110
|
| `lint-doppler-description-length.py` | soleur-coupled | Doppler description contract over `*.tf`. |
|
|
@@ -90,3 +90,5 @@ already carries — see
|
|
|
90
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`.
|
|
91
91
|
|
|
92
92
|
- **When a verification's VERDICT is the deliverable, do not bound its wall — a timeout kill is `unknown`, never pass or fail.** A `ratchet`/suite verify re-run under a self-imposed `timeout`/bounded exec was killed at 120 s mid-run and could have been misread either direction; re-run unbounded and let it finish. Bound the SUT's per-invocation calls (a `REPLAY_SUT_TIMEOUT`-style knob), never the verification harness itself. **Why:** PR #12419 — see `knowledge-base/project/learnings/performance-issues/mutant-side-runaway-read-as-pristine-site-cost-ci-replay-20261108.md` session error 4.
|
|
93
|
+
|
|
94
|
+
- **A suite run is evidence for the tree it ran on — re-run the touched suites after the LAST edit of the commit, comment-only edits included.** A comment can trip a strict substring pin: a test-all.sh comment naming an array that contains a refused prefix turned the lint's unit suite red at the pushed head, after the suite had run green one edit earlier. **Why:** #12348/PR #12561 — all 11 escalation seats found it; see `knowledge-base/project/learnings/2026-11-11-each-fix-round-found-the-next-sibling-until-the-test-stated-its-residuals.md`.
|