@soleur/opencode 3.407.1 → 3.407.2
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
|
@@ -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
|
|
|
@@ -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
|