@soleur/opencode 3.379.2 → 3.379.4
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.
|
@@ -247,6 +247,11 @@ STOP_MARK_RE='^[*]*(paused|blocked)[*[:space:]]*:'
|
|
|
247
247
|
STOP_NOOP_RE='^[^:]*:[*[:space:]]*((no|none|nothing|n/?a)[[:punct:][:space:]]*)?$'
|
|
248
248
|
is_stop_mark() { grep -qiE "$STOP_MARK_RE" <<<"$1" && ! grep -qiE "$STOP_NOOP_RE" <<<"$1"; }
|
|
249
249
|
|
|
250
|
+
# AGENT-OWNED PIPELINE ACTS (2026-11-03). Marking a PR ready, editing its body, filing a follow-up issue and
|
|
251
|
+
# running compound/ship are the agent's own steps; "waiting for your go" on them parks finished work on the
|
|
252
|
+
# operator under the very label this hook offers as an exit. The object set is a CLOSED list of those acts and
|
|
253
|
+
# deliberately omits spawn, cost, budget and send, so the rule-mandated gates stay untouched.
|
|
254
|
+
PARKED_GO_RE='(your|the[[:space:]]+operator.?s?)[[:space:]]+(go|go-?ahead|approval|ok|okay|permission|say-?so|nod)([[:space:]]|[.,;:]|$)[^.]{0,80}(mark(ing)?[^.]{0,30}ready|pr[[:space:]]+ready|ready[[:space:]]+for[[:space:]]+review|(edit|update|editing|updating)[^.]{0,20}(pr[[:space:]]+)?body|follow-?up[[:space:]]+issue|remaining[[:space:]]+(items|steps|work)|compound|ship)'
|
|
250
255
|
PARKED_RE='(awaiting|waiting[[:space:]]+(on|for)|pending|needs?|requires?)[^.]{0,60}(your|operator|the[[:space:]]+operator|human|a[[:space:]]+human)[^.]{0,60}(merge|review|ship)|awaiting[[:space:]]+(review|merge)([[:space:]]|[.,;:]|$)|needs?[[:space:]]+a[[:space:]]+human([[:space:]]|[.,;:]|$)|ready[[:space:]]+(for[[:space:]]+(you|your)|to[[:space:]]+merge[[:space:]]+when[[:space:]]+you)|(yours|over[[:space:]]+to[[:space:]]+you|handing[[:space:]]+(it[[:space:]]+)?off[[:space:]]+to[[:space:]]+you)[^.]{0,40}(merge|review|ship)'
|
|
251
256
|
|
|
252
257
|
# The sanctioned pause survives: `hr-menu-option-ack-not-prod-write-auth` requires
|
|
@@ -259,7 +264,7 @@ PARKED_RE='(awaiting|waiting[[:space:]]+(on|for)|pending|needs?|requires?)[^.]{0
|
|
|
259
264
|
# a promise anywhere else in it"). Measured on the first revision: "I revoked the
|
|
260
265
|
# old token as part of cleanup. Paused: PR #8244 is green and awaiting
|
|
261
266
|
# your merge." ALLOWED, because `revoke` appeared in an unrelated sentence.
|
|
262
|
-
PARKED_AUTH_RE='(irreversible|destroy|destructive|wipe|revoke|cutover|host[[:space:]]+replace|replace[[:space:]]+the[[:space:]]+(production[[:space:]]+)?host|per-command|prod(uction)?[[:space:]]+(write|mutation|apply))'
|
|
267
|
+
PARKED_AUTH_RE='(spawn(ing)?[[:space:]]+[a-z -]{0,30}agents?|invoice|customer|irreversible|destroy|destructive|wipe|revoke|cutover|host[[:space:]]+replace|replace[[:space:]]+the[[:space:]]+(production[[:space:]]+)?host|per-command|prod(uction)?[[:space:]]+(write|mutation|apply))'
|
|
263
268
|
|
|
264
269
|
# ALL THREE TERMS ARE TESTED ON THE MARKER'S OWN SENTENCE, not on the window.
|
|
265
270
|
#
|
|
@@ -280,10 +285,16 @@ PARKED_AUTH_RE='(irreversible|destroy|destructive|wipe|revoke|cutover|host[[:spa
|
|
|
280
285
|
PARKED_SENTENCE=$(printf '%s\n' "$CLOSING" | grep -iE "$STOP_MARK_RE" | tail -n 1)
|
|
281
286
|
if [ -n "$PARKED_SENTENCE" ] &&
|
|
282
287
|
! grep -q '?' < <(printf '%s' "$PROSE" | sed 's/[[:space:]]*$//' | tail -c 2) &&
|
|
283
|
-
grep -qiE "$PARKED_RE" <<<"$PARKED_SENTENCE" &&
|
|
288
|
+
{ grep -qiE "$PARKED_RE" <<<"$PARKED_SENTENCE" || grep -qiE "$PARKED_GO_RE" <<<"$PARKED_SENTENCE"; } &&
|
|
284
289
|
! grep -qiE "$PARKED_AUTH_RE" <<<"$PARKED_SENTENCE"; then
|
|
285
|
-
PARKED_REASON="Your Paused/Blocked line hands finished work back
|
|
286
|
-
legitimate gate -- it defers to someone who
|
|
290
|
+
PARKED_REASON="Your Paused/Blocked line hands finished pipeline work back to the operator. That is not a
|
|
291
|
+
legitimate gate -- it defers to someone who should not be asked.
|
|
292
|
+
|
|
293
|
+
Marking a PR ready, editing its body, filing a follow-up issue, and running review, compound, ship or
|
|
294
|
+
merge on a green PR are YOURS. \"Waiting for your go\" on any of them is a violation: do the act now.
|
|
295
|
+
A Paused: or Blocked: line is for exactly two things: (a) an external event you cannot advance (a CI run in
|
|
296
|
+
progress, a queued lock, a vendor reply), or (b) an operator-reserved act (money, scope, legal, brand,
|
|
297
|
+
production-mutating authorization).
|
|
287
298
|
|
|
288
299
|
rf-never-skip-qa-review-before-merging: \"Carry every PR to MERGED in-session;
|
|
289
300
|
'awaiting review'/'needs a human' as an end state defers to an operator who
|
|
@@ -374,6 +385,12 @@ the label and says why (no markup, no sentence break inside it):
|
|
|
374
385
|
Paused: the one thing you are waiting on.
|
|
375
386
|
Blocked: the one thing that is blocking you.
|
|
376
387
|
|
|
388
|
+
A stop is legitimate ONLY when (a) an external event you cannot advance is pending (a CI run,
|
|
389
|
+
a queued lock, a vendor reply) or (b) the next step is an operator-reserved act (money, scope,
|
|
390
|
+
legal, brand, production-mutating authorization). Waiting for the operator's go or approval on
|
|
391
|
+
your own pipeline steps (mark a PR ready, edit its body, file a follow-up, run review, compound
|
|
392
|
+
or ship, merge a green PR) is not a legitimate stop: do the step.
|
|
393
|
+
|
|
377
394
|
Stopping is allowed. Stopping silently is not -- an operator who cannot see the
|
|
378
395
|
pipeline has no way to tell a finished task from an abandoned one."
|
|
379
396
|
|
package/package.json
CHANGED
|
@@ -577,7 +577,15 @@ if [[ -n "$RUNNER" ]]; then
|
|
|
577
577
|
echo "affected-tests: no CI test workflow detected — wall-clock budget not enforced; running to completion."
|
|
578
578
|
fi
|
|
579
579
|
rc=0
|
|
580
|
-
|
|
580
|
+
# (#12013, ADR-242 addendum) Hand the runner's parallel pool a width of 4 for a local --affected
|
|
581
|
+
# run: not --full, not under CI, not over a width the operator set (SOLEUR_TEST_JOBS=1 is the serial
|
|
582
|
+
# override), and only when the runner itself mentions the knob. The prefix scopes it to this call.
|
|
583
|
+
# Pinned by plugins/soleur/test/affected-tests-pool-default.test.sh.
|
|
584
|
+
if (( ! ARG_FULL )) && [[ -z "${CI:-}" ]] && grep -q SOLEUR_TEST_JOBS "$RUNNER"; then
|
|
585
|
+
SOLEUR_TEST_JOBS="${SOLEUR_TEST_JOBS:-4}" affected_bound bash "$RUNNER" "$_flag" || rc=$?
|
|
586
|
+
else
|
|
587
|
+
affected_bound bash "$RUNNER" "$_flag" || rc=$?
|
|
588
|
+
fi
|
|
581
589
|
# A delegated verdict is eligible for the content trigger unless the operator
|
|
582
590
|
# passed --full; finish() runs it only when this run passed.
|
|
583
591
|
(( ARG_FULL_REQUESTED )) || AFFECTED_CT_ELIGIBLE=1
|
package/skills/one-shot/SKILL.md
CHANGED
|
@@ -307,7 +307,7 @@ terminal and files the issue instead. A re-invocation is a step *within* an arm,
|
|
|
307
307
|
|
|
308
308
|
> **CONTINUATION GATE:** When ship finishes (including postmerge Step 3.8), proceed immediately to step 8 — do NOT ask "want me to monitor deploy?" or hand off to the operator.
|
|
309
309
|
|
|
310
|
-
> **The Step 8 closing is a carrier too (signage; the loop reminds):** never end it, or a `Blocked:`/`Paused:` label, with a technical question to the operator ("Decision for you:"); spawn `soleur:engineering:cto` (legal: `soleur:legal:clo`), record `Ruled by CTO agent`, ask only the authorization. [technical-ruling-delegation.md](${CLAUDE_PLUGIN_ROOT}/skills/brainstorm-techniques/references/technical-ruling-delegation.md).
|
|
310
|
+
> **The Step 8 closing is a carrier too (signage; the loop reminds):** never end it, or a `Blocked:`/`Paused:` label, with a technical question to the operator ("Decision for you:"); spawn `soleur:engineering:cto` (legal: `soleur:legal:clo`), record `Ruled by CTO agent`, ask only the authorization, never a "go". [technical-ruling-delegation.md](${CLAUDE_PLUGIN_ROOT}/skills/brainstorm-techniques/references/technical-ruling-delegation.md).
|
|
311
311
|
|
|
312
312
|
8. Run `bash "${CLAUDE_PLUGIN_ROOT}/scripts/pipeline-tally.sh" show` beside DONE. Output `<promise>DONE</promise>` **only when** PR is merged, release workflows passed, and **postmerge Phase 7** printed `postmerge verification complete!`. If ship returned without postmerge, invoke `soleur:postmerge <PR-number>` (Grok) or `soleur:postmerge` (Claude) before emitting DONE.
|
|
313
313
|
|
package/skills/ship/SKILL.md
CHANGED
|
@@ -355,8 +355,8 @@ For each new source file, check if a corresponding test file exists (e.g., `foo.
|
|
|
355
355
|
**Interactive mode:** Ask the user whether to write tests now or continue without them. Do not silently proceed.
|
|
356
356
|
|
|
357
357
|
Then run the affected-suite gate — the plugin entry point, wired the same in
|
|
358
|
-
`soleur:work` Phase 2 and `soleur:review`. Its rc contract (0/1/4/6/7),
|
|
359
|
-
`.soleur-test-gate.json` override schema,
|
|
358
|
+
`soleur:work` Phase 2 and `soleur:review`. Its rc contract (0/1/4/6/7),
|
|
359
|
+
`.soleur-test-gate.json` override schema, per-rc actions, pool wait live in
|
|
360
360
|
[affected-gate-contract.md](${CLAUDE_PLUGIN_ROOT}/skills/ship/references/affected-gate-contract.md). In THIS
|
|
361
361
|
repo the gate capability-probes and delegates [scripts/test-all.sh](../../../../scripts/test-all.sh), so the
|
|
362
362
|
always-on fast tier (#9763), ADR-262's PR-gated mutation batteries, and the
|
|
@@ -1759,7 +1759,7 @@ Replace `BRANCH_NAME` with the actual branch name.
|
|
|
1759
1759
|
**If an open PR exists:**
|
|
1760
1760
|
|
|
1761
1761
|
1. Likely the earlier draft.
|
|
1762
|
-
2.
|
|
1762
|
+
2. Auto-accept the generated PR title/body in both modes.
|
|
1763
1763
|
2.5. **Decision-challenges render (ADR-084).** Fold a non-empty `knowledge-base/project/specs/<branch>/decision-challenges.md` into the body under `## Model Dissents (informational)` by `Class` (technical rows: `### Ruled by CTO agent`, no issue; operator rows: one `action-required` + `decision-challenge` issue) per [decision-challenges-render.md](${CLAUDE_PLUGIN_ROOT}/skills/ship/references/decision-challenges-render.md); see [decision-principles.md](../brainstorm-techniques/references/decision-principles.md).
|
|
1764
1764
|
3. Update the PR. Pass the body as a multi-line string (no `$()` needed):
|
|
1765
1765
|
|
|
@@ -3012,7 +3012,7 @@ This detects `[gone]` branches (where the remote was deleted after merge), remov
|
|
|
3012
3012
|
- **Phase 2's probe decides whether compound runs.** Ask only on its interactive no-artifacts path.
|
|
3013
3013
|
- **Do not block on missing artifacts.** Not every change needs a brainstorm or plan.
|
|
3014
3014
|
- **A resume prompt's gate list must cite commands verified to RESOLVE** (`wg-end-of-work-emit-resume-prompt`). Before writing `<suite> -> N/0` into a handoff, re-run the command or at minimum `git ls-files | grep -E '<name>'` it — a remembered path is not a measured one. **Why:** #6730's RESUME.md reported two suites green whose paths did not exist (wrong extension, wrong directory), so the resuming session's first two gate commands both died on "No such file or directory".
|
|
3015
|
-
- **
|
|
3015
|
+
- **Never wait for the user to confirm the PR title/body or `gh pr ready`** (agent-owned); skipped draft-light tests mean proceed to ready. **Why:** #11998.
|
|
3016
3016
|
- **CI workflow edits:** When the PR touches `.github/workflows/*.yml` or `.github/actions/**`, load [ci-workflow-authoring.md](./references/ci-workflow-authoring.md) for known-buggy idioms, heredoc/YAML indentation traps, Doppler service-token naming, `claude-code-action` pin freshness, and `jq -e` guards for JSON polling. These were migrated out of AGENTS.md — review them before pushing CI changes.
|
|
3017
3017
|
- **Register / policy update PRs:** When the PR diff is bounded to `knowledge-base/legal/**` or `docs/legal/**` and documents controls introduced by an upstream PR (typical for follow-through register updates per Phase 7 Step 3.5), load [register-update-pr-pattern.md](./references/register-update-pr-pattern.md) before authoring the PR body. The pattern: cite by semantic identifier (function / RPC / migration anchor), not by plain-prose file path, to avoid the `Block PR body citing files not in diff` (#2905) gate firing on legitimate cross-references. Inline-backtick file references are exempt as of PR #3882's follow-up.
|
|
3018
3018
|
- **A commit gate that diffs against `origin/main`'s TIP can red on drift that isn't yours — re-merge before treating a base-side failure as yours, and when `git merge` refuses over staged overlap (no stash in worktrees), checkpoint `git diff --cached --binary` then `git reset --hard` + merge + `git apply --3way`.** The `test-all --affected` battery reads the moving tip, so a `.tf` file added on main after your last merge reads as a resource your branch deleted (G4c, PR #8904; merge-base now, #10053). Merge commits skip the battery (`lefthook.yml` `bun-test` `skip: merge`), so ordering is merge → reapply → commit. See `knowledge-base/project/learnings/workflow-issues/2026-09-27-a-blocking-gate-diffing-against-moving-main-fails-on-drift-and-staging-then-merging-deadlocks.md`.
|
|
@@ -170,3 +170,7 @@ gate). Its exit status is the only failure signal.
|
|
|
170
170
|
- Pytest repo without xdist → serial run with the reason printed; a pytest
|
|
171
171
|
rc-5 collection is treated as empty selection, never a pass.
|
|
172
172
|
- Empty native selection on a code diff → full command, `reason=empty-selection`.
|
|
173
|
+
|
|
174
|
+
## Parallel pool and live reds while waiting (#12013)
|
|
175
|
+
|
|
176
|
+
ADR-242 amendment. `affected-tests.sh` hands the runner `SOLEUR_TEST_JOBS=4` for a local `--affected` run (never `--full`, never under `CI`; `SOLEUR_TEST_JOBS=1` forces serial). Once the run holds the lock, the log carries `[parallel] mode engaged — width=4`; a `[parallel] serial fallback — reason=…` line says why it did not (`lock-not-held` follows budget expiry, a missing `flock` or a disabled session state, not a wait that ended in acquisition). While waiting on the rc file, read the log for a red as it happens — extend the wait loop, do not add a second one: `until [ -s "$RCF" ]; do grep -E '^\[run\] .* done \(rc=[1-9]' "$LOG" | sort -u; sleep 30; done`. A hit is provisional: do not kill or relaunch on it. Only the final exit code and the `affected-tests:` verdict line count; a red that shows up only under the pool is re-run alone with `SOLEUR_TEST_JOBS=1` before it is treated as a diff regression. A diff that edits the runner or the affected index selects the self-SUT batteries, which run one at a time at any width, so the pool does not make that run short.
|
package/skills/work/SKILL.md
CHANGED
|
@@ -1410,9 +1410,11 @@ This is the `soleur:work`-side mirror of `soleur:ship` Phase 5.5 Net-Issue-Flow
|
|
|
1410
1410
|
2. `skill: soleur:resolve-todo-parallel` — resolve any review findings (no `--headless` needed; this skill has no interactive prompts)
|
|
1411
1411
|
2.5. **Structural-UI visual gate (#4834 / ADR-049).** If the diff (`git diff --name-only origin/main...HEAD` — the branch-vs-main merge-base diff; do NOT use `origin/<branch>...HEAD`, which only sees unpushed commits and returns 0 files once the branch is pushed) touches `apps/web-platform/app/(dashboard)/**`, `apps/web-platform/components/dashboard/**`, or any `layout.tsx`, run `skill: soleur:qa` (or `--headless`; **Grok:** `soleur:qa`) BEFORE shipping — its auth-seeded headless Playwright nav-states gate catches the CSS-layout regressions jsdom structurally cannot (the #4810 class). This is the step whose absence let direct `soleur:work` skip the browser check that one-shot runs at its step 5.5 — wiring it here closes that asymmetry. Do NOT fire on leaf-component or content-only `.tsx` diffs. This is a scope boundary, not a stopping point: do not announce or return control here — continue executing the next step.
|
|
1412
1412
|
3. `skill: soleur:compound` (or `skill: soleur:compound --headless` if headless; **Grok:** `soleur:compound`) — capture learnings before committing
|
|
1413
|
-
3.5. Emit the end-of-work resume prompt (`wg-end-of-work-emit-resume-prompt`) — **unconditionally**, in a fenced block naming the skill to run next, the branch, the worktree path, the PR # and the issue #. Then, and only then, decide whether to recommend a fresh session: append "Two automatic compactions occurred in this session — run `/clear` and paste the block above to continue in a fresh one." when this session carries a `SOLEUR_COMPACTION_DIRECTIVE` marker with `recommend=true
|
|
1413
|
+
3.5. Emit the end-of-work resume prompt (`wg-end-of-work-emit-resume-prompt`) — **unconditionally**, in a fenced block naming the skill to run next, the branch, the worktree path, the PR # and the issue #. Then, and only then, decide whether to recommend a fresh session: append "Two automatic compactions occurred in this session — run `/clear` and paste the block above to continue in a fresh one." when this session carries a `SOLEUR_COMPACTION_DIRECTIVE` marker with `recommend=true` (`compaction-state.sh`, #8323). (No-marker rationale: [end-of-work-resume.md](./references/end-of-work-resume.md).) Closing messages: Phase 4 Final-report check.
|
|
1414
1414
|
4. `skill: soleur:ship` (or `skill: soleur:ship --headless` if headless; **Grok:** `soleur:ship`) — commit, push, create PR, merge
|
|
1415
1415
|
|
|
1416
|
+
- **After implementation the pipeline is yours end to end** (review through `gh pr ready`), no ask; `Paused:`/`Blocked:` only for an external event or operator-reserved act. **Why:** #11998.
|
|
1417
|
+
|
|
1416
1418
|
---
|
|
1417
1419
|
|
|
1418
1420
|
## Key Principles
|