@soleur/opencode 3.400.3 → 3.400.5

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.
@@ -154,6 +154,8 @@ Attestation-writing RPCs MUST verify the caller has `role = 'owner'` on the targ
154
154
 
155
155
  The schema does not currently define an `'admin'` role; only `'owner'` and `'member'` exist. If a future migration adds intermediate roles, this check expands to enumerate which roles authorize attestation writes — verify against `workspace_members.role` at review time.
156
156
 
157
+ **Check scope equals action scope.** For any role or membership check that gates a tool or action, name the workspace the check reads the role in, then enumerate every action site the gated tools reach and confirm each acts in that SAME workspace id (not a fresh `current_workspace_id` read, and not a per-user resource with no workspace at all). A fail-closed check over the wrong scope is a `critical` finding. **Why:** #12597 — the Owner check read `activeWorkspaceId` while the GitHub resolvers, `kb_share_create` and `workspace_set_autonomous` re-resolved the workspace, and `email_send` is per user, so the check excluded nobody (#12669).
158
+
157
159
  ### Known gaps as of 2026-05-22
158
160
 
159
161
  Until each closes, surface an `info`-severity finding naming the deferral issue on every identity-touching PR.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.400.3",
3
+ "version": "3.400.5",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -503,16 +503,17 @@ merge proves nothing about it. Otherwise record `Sole-copy read-back: SKIPPED (n
503
503
  (read-only, token on stdin, one word). Run exactly:
504
504
 
505
505
  ```bash
506
- doppler run -p soleur -c prd_terraform --only-secrets HCLOUD_TOKEN_READONLY --no-exit-on-missing-only-secrets -- sh -c '[ -n "$HCLOUD_TOKEN_READONLY" ] || { echo missing-token; exit 3; }; r=$(printf "header = \"Authorization: Bearer %s\"\n" "$HCLOUD_TOKEN_READONLY" | curl -sS --config - -w "\n%{http_code}" https://api.hetzner.cloud/v1/volumes/106903269) || { echo read-failed; exit 2; }; case "$(printf %s "$r" | tail -n 1)" in 200) w=$(printf %s "$r" | sed "\$d" | jq -r "if .volume.protection.delete == true then \"protected\" elif .volume.protection.delete == false then \"not-protected\" else \"read-failed\" end" 2>/dev/null);; 404) w=volume-gone;; *) w=read-failed;; esac; case "$w" in protected) echo protected;; not-protected) echo not-protected; exit 1;; volume-gone) echo volume-gone; exit 4;; *) echo read-failed; exit 2;; esac'
506
+ doppler run -p soleur -c prd_terraform --only-secrets HCLOUD_TOKEN_READONLY --no-exit-on-missing-only-secrets -- sh -c '[ -n "$HCLOUD_TOKEN_READONLY" ] || { echo missing-token; exit 3; }; r=$(printf "header = \"Authorization: Bearer %s\"\n" "$HCLOUD_TOKEN_READONLY" | curl --disable --noproxy "*" -sS --config - --max-time 30 -w "\n%{http_code}" https://api.hetzner.cloud/v1/volumes/106903269) || { echo read-failed; exit 2; }; case "$(printf %s "$r" | tail -n 1)" in 200) w=$(printf %s "$r" | sed "\$d" | jq -r "if .volume.protection.delete == true then \"protected\" elif .volume.protection.delete == false then \"not-protected\" else \"read-failed\" end" 2>/dev/null);; 404) w=volume-gone;; *) w=read-failed;; esac; case "$w" in protected) echo protected;; not-protected) echo not-protected; exit 1;; volume-gone) echo volume-gone; exit 4;; *) echo read-failed; exit 2;; esac'
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, and not proof of a loss: a token from
510
+ a mismatch is red. `volume-gone` (HTTP 404) is not a read problem, nor proof of a loss: a token from
511
511
  another Hetzner project also gets 404. Report it, then run the read-only server-name listing under
512
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
514
- **missing word** (nothing printed: `doppler` absent or unauthenticated, an error before the command ran) mean the read
515
- did not happen: report them, never dispatch on their account. `missing-token` means `HCLOUD_TOKEN_READONLY` is absent from
513
+ (re-mint it, step O5); only matching names route to the runbook's "After a total loss". `read-failed` (a 401 or other HTTP error, network error, non-JSON or missing field) and a
514
+ **missing word** (nothing printed: `doppler` absent or unauthenticated, an early error) mean the read
515
+ did not happen: report them, never dispatch on them. Proxy-only egress also reads `read-failed` (it bypasses
516
+ proxies): report no direct egress; never retry, drop `--noproxy`/`--disable` or add a proxy. `missing-token` means `HCLOUD_TOKEN_READONLY` is absent from
516
517
  `prd_terraform`; minting it is operator step O5 in `knowledge-base/engineering/operations/runbooks/infra-credential-tiers-8209.md`.
517
518
  Report `missing-token` and file an issue (the idiom of Phase 5.5, with the same label and the repo milestone):
518
519
 
@@ -27,3 +27,5 @@ gh api repos/{owner}/{repo}/actions/jobs/<job-id> \
27
27
  ```
28
28
 
29
29
  Both work **while the run is still in progress**, which `gh run view --log-failed` refuses to do — use that to start diagnosing early. But **an in-progress snapshot is not a verdict**: a run with jobs still `queued` can fail later for an unrelated reason, so re-run the classification once the run reaches `completed` and classify on THAT result before acting. Measured on one live run: 5 jobs completed, 2 in progress, 14 queued — two thirds of the run had not executed, so a "setup failure" read at that moment could be superseded by a real red. Note also that neither command returns log text, so the output test below is only decidable once the failing job completes.
30
+
31
+ - **A `test` job that is red over SKIPPED shards is not a test failure.** Before naming a cause, list every job with `gh api --paginate repos/{owner}/{repo}/actions/runs/<run-id>/jobs --jq '.jobs[] | "\(.name) \(.conclusion)"'`, then read each skipped shard's `needs:` and `if:` in `.github/workflows/ci.yml`; a shard skips only because of a job in its own `needs:`. On a draft run the draft-light-gated shards skip by design (the draft paragraph above), and `test`'s `Aggregate shard results` step then reds on its own. A red job that no shard lists in `needs:` (an advisory lint, say) caused no skip: it is a separate finding. **Why:** #12616/PR #12645 blamed the skipped shards on `lint-bot-statuses`, which no job needs; the shards had skipped because the PR was a draft.