@soleur/opencode 3.407.1 → 3.407.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.407.1",
3
+ "version": "3.407.3",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -390,6 +390,12 @@ ops_check() {
390
390
  for unit in "${units[@]}"; do
391
391
  is_denied "$unit" && fail_invalid non-delegable-command "A command in the envelope's checks, abort, rollback or stop text is on the list of things that are never delegated." # mut:ops-deny
392
392
  cmd_word "$unit" "$OPS_TOOLS" && fail_invalid non-delegable-command "The envelope's checks, abort, rollback or stop text runs a tool that is never delegated." # mut:ops-tools
393
+ # The Review-Evidence arm check's first statement is exempt ONLY from the read-only token parse
394
+ # (ops_readonly cannot tokenize its multi-arg read); denylist + tools already ran above.
395
+ if [[ "$unit" == *"merge-base --is-ancestor"* ]] && [[ "$unit" == *"rev-list --first-parent"* ]]; then
396
+ [ "$key" = verification ] && ARM_CHECK_SEEN=1
397
+ [ "$key" = rollback ] || continue
398
+ fi
393
399
  [ "$key" = rollback ] || ops_readonly "$unit"
394
400
  done
395
401
  [ "$key" = rollback ] || return 0
@@ -603,6 +609,16 @@ do_verify() {
603
609
  # EVERY line of every Command block must be an allowed, scope-covered act, whether or not it is asked for.
604
610
  while IFS= read -r c || [ -n "$c" ]; do check_command "$c" "$SCOPE_TEXT"; done < "$WORK/cmds"
605
611
  while IFS=$'\t' read -r okey okind otxt || [ -n "$okey" ]; do ops_check "$okey" "$okind" "$otxt" "$SCOPE_TEXT"; done < "$WORK/ops"
612
+ HAS_AUTO_MERGE=0
613
+ while IFS= read -r _c || [ -n "$_c" ]; do
614
+ case "$_c" in *" --auto"*) case "$_c" in "gh pr merge "*) HAS_AUTO_MERGE=1 ;; esac ;; esac
615
+ done < "$WORK/cmds"
616
+ for _c in ${CMDS[@]+"${CMDS[@]}"}; do
617
+ case "$_c" in "gh pr merge "*"--auto"*) HAS_AUTO_MERGE=1 ;; esac
618
+ done
619
+ if [ "$HAS_AUTO_MERGE" = 1 ]; then
620
+ [ "${ARM_CHECK_SEEN:-0}" = 1 ] || fail_invalid arm-check-missing "A delegated merge --auto requires the Review-Evidence arm check's first statement in the Verification section." # mut:arm-check
621
+ fi
606
622
  for c in ${CMDS[@]+"${CMDS[@]}"}; do
607
623
  check_command "$c" "$SCOPE_TEXT"
608
624
  cmd_in_block "$c" "$WORK/cmds" || fail_invalid command-not-in-envelope "That command is not, word for word, a line of the envelope." # mut:cmd-match
@@ -161,6 +161,14 @@ gh pr create --fill [--head <branch>] [--base <branch>]
161
161
  `k` is `[A-Za-z0-9_.-]+`, `v` is `[A-Za-z0-9._/:@+,-]+`, `branch` is `[A-Za-z0-9._/-]+`. A revert is a `gh pr create --fill`
162
162
  of a revert branch. Everything else stays with the operator: the grammar is the whole list, not a sample.
163
163
 
164
+ ### Review-Evidence arm check for delegated auto-merge
165
+
166
+ A delegated `gh pr merge ... --auto` arms auto-merge on a PR whose head must already be covered by a passing
167
+ `Review-Evidence:` comment. The verifier cannot run that check (it has no PR state), so the envelope's `Verification`
168
+ section must carry the arm check's first statement as a backticked span. See
169
+ `plugins/soleur/skills/review/references/review-evidence-comment.md` §"Arm check". An envelope that arms auto-merge
170
+ without it is rejected with reason `arm-check-missing`.
171
+
164
172
  ### Scope binding
165
173
 
166
174
  The cited Scope item's own words must name the command's target as a whole token: for merge and ready, the pull request
@@ -396,6 +404,7 @@ source of these sentences; other documents point here and do not restate them.
396
404
  | `ran-in-future` | The record says this step already ran at a time that has not happened yet, so I cannot accept it. |
397
405
  | `no-answer` | I did not get an answer when I checked your standing approval, so I am waiting and have not done anything. |
398
406
  | `verifier-error` | The check of your standing approval gave an answer I could not understand, so I am waiting and have not done anything. |
407
+ | `arm-check-missing` | A delegated merge that arms auto-merge needs the review evidence arm check in its verification, so I have paused and done nothing. |
399
408
 
400
409
  ## 8. The execution receipt
401
410
 
@@ -371,4 +371,5 @@ NEVER CODE! Just research and write the plan.
371
371
  - **A plan that adds a rule to a gate which reads text another interpreter will expand (a Bash PreToolUse hook, a CI shell lint) must list that interpreter's whole expansion and quoting set first, and close each class in one place rather than deny-listing spellings.** For bash: brace, tilde, parameter/`$[…]`, command, process substitution, pathname/extglob, backslash and `$'…'` quoting, and the target tool's own argv parsing (git long-option prefixes, commit pathspecs). Brief the first fix-round security seat to sweep that whole list, not to find one more instance. **Why:** #12806 — seven fix rounds each found the next form the cron hook read differently from bash; see `knowledge-base/project/learnings/2026-11-16-seven-fix-rounds-each-found-the-next-bash-expansion-the-hook-read-differently.md`.
372
372
  - **A test scenario that checks a discriminator with a live stand-in must keep the production filter and vary only the data. Never invert the filter.** Swapping `= 'Object'` for `= 'String'` measures a different predicate over the rows that do match it. Conjoin the production filter with an impossible clause to get the empty-window value, and use a split count (`countIf` in ClickHouse, `COUNT(*) FILTER (WHERE …)` in Postgres) to show what the discriminator excludes. **Why:** #12726/PR #12865 — the inverted stand-in window held 42 string rows and read value 0 where the plan expected 1. See `knowledge-base/project/learnings/2026-11-18-the-guard-lexer-kept-desyncing-until-the-guarded-file-was-confined-to-the-subset-it-models.md`.
373
373
  - **An acceptance criterion that says "additions only" / "no `-` line" must be checked against every edit the plan itself prescribes in that file: an in-cell table append or an in-field frontmatter change is a one-line rewrite, so `git diff` shows a `-` line and the AC is unsatisfiable as written.** Write the carve-out into the AC by naming each rewritten line's content anchor (the table row's first cells, the frontmatter key), with the exact grep that drops only those lines, e.g. `git diff -U0 origin/main...HEAD -- <file> | grep -E '^-' | grep -vE '^--- (a/|/dev/null)' | grep -vF '<row anchor>'` printing nothing. Do not state it as "the `-` line is a prefix of its `+` line": a table row's closing pipe (space then `|`) and a replaced frontmatter value both break that. Do not match `^-[^-]` either: it misses a deleted `- item` line, which the diff shows as `-- item`. **Why:** #12742/PR #12884 — AC7 forbade any `-` line while Phase 4 step 2 prescribed an in-cell append to the runbook's #10538 row; the task was ticked anyway and review flagged it. See `knowledge-base/project/learnings/2026-11-18-an-ac-that-contradicts-the-prescribed-edit.md`.
374
+ - **A plan that adds agent-prompt text on a degraded path must check each clause against the tool list the SDK receives on that path, and must prescribe its positive (`toContain`) asserts on that section's body, not the whole prompt; absence asserts may read the whole prompt.** Read `mcpServers`/`allowedTools`/`disallowedTools` where the prompt is built, not only the sibling prompt text; and grep every fragment you prescribe for `toContain` against the base prompt, because a composite prompt already carries common words. **Why:** #12598/PR #12957 — "no GitHub claim" left the agent told it had no web access while its `github_*` read tools stayed registered, and `toContain("failed to start")` matched `BASH_UNAVAILABLE_PROMPT_DIRECTIVE`, so a body-gutting mutation stayed green. See `knowledge-base/project/learnings/2026-11-19-a-prompt-line-is-a-claim-about-the-tool-list-and-its-asserts-must-read-its-own-body.md`.
374
375
  - **A plan that revokes a grant (a toggle-off, a consent withdrawal, a token revoke) must list every await between the point where the grant is READ and the point where the resource is REGISTERED, and every path that tears the resource down. The revocation check (an epoch, a flag) is read at the grant read, not at the start of the spawn helper. Every abort sets the revoked state, and every new attempt clears it.** **Why:** #12585/PR #12897 — the R4 epoch was read inside `spawnEgressForwarder`, which missed about 22 dispatcher awaits (the repo clone included). Aborts during the gateway probe were never marked, a stale mark hid a real spawn failure, and the warm re-resolve's teardown never marked. A targeted fix round found all four. See `knowledge-base/project/learnings/2026-11-18-a-revocation-fix-closed-the-window-i-named-not-the-windows-between-grant-read-and-register.md`.
@@ -44,6 +44,9 @@ the queue past the evidence head, and their P3 findings had to be fixed forward
44
44
 
45
45
  ## Arm check
46
46
 
47
+ A delegated `gh pr merge ... --auto` (standing-delegation envelope) requires this check's first statement in its
48
+ `Verification` section; see `standing-delegation.md` §"Review-Evidence arm check for delegated auto-merge".
49
+
47
50
  Ship's arm and CI-fix re-arm, merge-pr's merge gate, drain-prs §4's arm, product-roadmap's locked arm,
48
51
  merge-queue-dequeue.md's step 3 re-arm and settle-then-admin-merge.md's step 2 run this one check, and the
49
52
  re-arm instructions printed by sync-pr-behind.sh and merge-queue-jump.sh point here; it is the only copy. Never