@soleur/opencode 3.374.2 → 3.375.0
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/research/git-history-analyzer.md +1 -1
- package/package.json +1 -1
- package/skills/community/scripts/github-community.sh +1 -1
- package/skills/drain-labeled-backlog/SKILL.md +1 -1
- package/skills/drain-labeled-backlog/scripts/group-by-area.sh +1 -1
- package/skills/postmerge/SKILL.md +1 -1
- package/skills/product-roadmap/SKILL.md +2 -2
- package/skills/product-roadmap/scripts/roadmap-reconcile.sh +1 -1
- package/skills/provision-github/scripts/provision-github.sh +2 -2
- package/skills/review/references/review-todo-structure.md +2 -2
- package/skills/review/references/risk-tier-and-fix-rounds.md +1 -0
- package/skills/ship/SKILL.md +1 -1
- package/skills/ux-audit/SKILL.md +1 -1
|
@@ -48,6 +48,6 @@ Your insights should help developers understand not just what the code does, but
|
|
|
48
48
|
|
|
49
49
|
## Sharp Edges
|
|
50
50
|
|
|
51
|
-
- **A workflow's enabled/disabled state lives on GitHub's side, never in git — do not report it UNVERIFIABLE.** `gh api 'repos/{owner}/{repo}/actions/workflows?per_page=100' --jq '.workflows[] | "\(.state) \(.updated_at) \(.path)"'` returns `active` / `disabled_manually` with the change timestamp; `git log -- .github/workflows/<file>` cannot see a dashboard toggle. **Why:** #8149 — a ledger row claiming `claude-code-review.yml` was `disabled_manually` since 2026-02-12 was reported unverifiable from git; the Actions API confirmed it in one call.
|
|
51
|
+
- **A workflow's enabled/disabled state lives on GitHub's side, never in git — do not report it UNVERIFIABLE.** `gh api --paginate 'repos/{owner}/{repo}/actions/workflows?per_page=100' --jq '.workflows[] | "\(.state) \(.updated_at) \(.path)"'` returns `active` / `disabled_manually` with the change timestamp; `git log -- .github/workflows/<file>` cannot see a dashboard toggle. **Why:** #8149 — a ledger row claiming `claude-code-review.yml` was `disabled_manually` since 2026-02-12 was reported unverifiable from git; the Actions API confirmed it in one call.
|
|
52
52
|
- **Before concluding "the history does not contain X", check whether the clone is SHALLOW.** `git rev-parse --is-shallow-repository` → `true` means `git log` stops at a graft point and an *unfetched* commit is indistinguishable from an *absent* one. Retry with `--all` (and `--follow` for renames) before reporting a gap: the full history is often already in the object store, reachable from `refs/remotes/*` but not from the shallow first-parent line. **Why:** #6981 — `git log` on `cloud-init.yml` showed 21 commits starting 2026-07-11, so the agent-authored conclusion was "the March-era config is unknowable" plus a fabricated "March-vs-July image difference" hypothesis, which then shipped into a GitHub issue, a PR body, and a post-mortem. `git log --all` recovered **113 commits back to 2026-02-10** and the real answer was flatly available: the file was added ~28h *after* the host in question was created, so that host never ran it. See `knowledge-base/project/learnings/2026-07-27-my-assertion-pinned-the-text-not-the-shell-that-runs-it.md` §5.
|
|
53
53
|
- **Branch-vs-main comparisons MUST use three-dot diff (`origin/main...HEAD`), never two-dot (`origin/main..HEAD`).** Two-dot shows commits *main* gained since the fork point — a branch behind main will appear to have "reverted" everything main merged in the meantime, producing confidently-stated false-positive P0 findings ("branch contradicts merged PR #N", "branch deletes file X"). When asserting that a branch reverts, deletes, or contradicts work on main, ALWAYS verify via `git diff origin/main...HEAD --name-only` and `git log origin/main..HEAD --oneline` (the latter intentionally two-dot, but used for *commits this branch added*, not as a file-list source). Recurrence record: 2026-04-22 (PR #2795 review) and 2026-05-04 (PR #3123 review) both saw this fail-loud-blocker pattern from the same root cause; the prior prose-only prevention did not stick. See `knowledge-base/project/learnings/2026-04-22-markdown-table-parser-papercuts-and-review-diff-direction.md` §4.
|
package/package.json
CHANGED
|
@@ -254,7 +254,7 @@ cmd_activity() {
|
|
|
254
254
|
check_array_response "$issues_f" issues
|
|
255
255
|
check_cap "$(_json_len "$issues_f")" issues
|
|
256
256
|
|
|
257
|
-
prs=$(gh api "repos/${repo}/pulls?state=all&sort=updated&direction=desc&per_page=${PER_PAGE}" 2>&1) || {
|
|
257
|
+
prs=$(gh api --paginate "repos/${repo}/pulls?state=all&sort=updated&direction=desc&per_page=${PER_PAGE}" 2>&1) || {
|
|
258
258
|
_CAUSE="pulls-fetch-failed"
|
|
259
259
|
echo "GITHUB_COLLECTOR_CAUSE=pulls: $(echo "$prs" | head -c 200 | tr '\n' ' ')" >&2
|
|
260
260
|
echo "Error: Failed to fetch PRs ($(echo "$prs" | head -c 200))" >&2
|
|
@@ -127,7 +127,7 @@ After `one-shot` returns (PR merged), re-query the milestone using the same labe
|
|
|
127
127
|
|
|
128
128
|
```bash
|
|
129
129
|
gh issue list --label "${LABEL:-deferred-scope-out}" --state open \
|
|
130
|
-
--milestone "$MILESTONE" --json number --jq 'length'
|
|
130
|
+
--milestone "$MILESTONE" --limit 100 --json number --jq 'length'
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
Report: `Before: X, After: Y, Closed: Z` and the per-area drain.
|
|
@@ -70,7 +70,7 @@ else
|
|
|
70
70
|
# gh milestone flags take the title, not numeric ID — rule
|
|
71
71
|
# cq-gh-issue-create-milestone-takes-title.
|
|
72
72
|
if ! grep -Fxq "$MILESTONE" \
|
|
73
|
-
< <(gh api "repos/:owner/:repo/milestones?state=open&per_page=100" --jq '.[].title' 2>/dev/null); then
|
|
73
|
+
< <(gh api --paginate "repos/:owner/:repo/milestones?state=open&per_page=100" --jq '.[].title' 2>/dev/null); then
|
|
74
74
|
echo "Error: milestone title '$MILESTONE' not found (open milestones only)" >&2
|
|
75
75
|
exit 2
|
|
76
76
|
fi
|
|
@@ -185,7 +185,7 @@ fi
|
|
|
185
185
|
Surface any OPEN inngest-down alarm so the operator is never told "prod is healthy" while the durable trigger layer (armed reminders + all `server/inngest/functions/` crons) is dark. The external watchdog (`scheduled-inngest-health.yml`) files `[ci/inngest-down]` on a confirmed down (deeper probe: `/hooks/inngest-liveness`); this is a cheap read needing no Sentry token:
|
|
186
186
|
|
|
187
187
|
```bash
|
|
188
|
-
gh issue list --label ci/inngest-down
|
|
188
|
+
gh issue list --label ci/inngest-down -s open -L 100 \
|
|
189
189
|
--json number,title,createdAt --jq '.[] | "#\(.number) \(.title) (opened \(.createdAt))"'
|
|
190
190
|
```
|
|
191
191
|
|
|
@@ -146,7 +146,7 @@ gh issue list --state open --limit 100 --json number,title,labels,milestone
|
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
|
-
gh api repos/{owner}/{repo}/milestones --jq '.[] | {title, open_issues, closed_issues, due_on}'
|
|
149
|
+
gh api --paginate repos/{owner}/{repo}/milestones --jq '.[] | {title, open_issues, closed_issues, due_on}'
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
**Present Context Summary.** Display a table of what was found and what is missing. If an existing `roadmap.md` was found, ask whether to update it or start fresh. In headless mode: default to "Update existing" if found, "Start fresh" if not.
|
|
@@ -288,7 +288,7 @@ git commit -m "docs(product): generate product roadmap"
|
|
|
288
288
|
List existing milestones, then create any that are missing:
|
|
289
289
|
|
|
290
290
|
```bash
|
|
291
|
-
gh api repos/{owner}/{repo}/milestones --jq '.[].title'
|
|
291
|
+
gh api --paginate repos/{owner}/{repo}/milestones --jq '.[].title'
|
|
292
292
|
```
|
|
293
293
|
|
|
294
294
|
For each phase not already present:
|
|
@@ -175,7 +175,7 @@ filter_frontier() {
|
|
|
175
175
|
|
|
176
176
|
# --- CLI entrypoint (only when executed directly, never when sourced) ---
|
|
177
177
|
_milestones_json() {
|
|
178
|
-
gh api 'repos/{owner}/{repo}/milestones?state=all&per_page=100' \
|
|
178
|
+
gh api --paginate 'repos/{owner}/{repo}/milestones?state=all&per_page=100' \
|
|
179
179
|
--jq '[ .[] | {title, state, open_issues, closed_issues} ]'
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -61,7 +61,7 @@ cleanup() {
|
|
|
61
61
|
fi
|
|
62
62
|
echo ""
|
|
63
63
|
echo "IMPORTANT: After deleting the App installation, sweep bypass_actors for ghost entries:"
|
|
64
|
-
echo " gh api /repos/${TENANT_ORG}/${SLUG}/rulesets --jq '.[].bypass_actors'"
|
|
64
|
+
echo " gh api --paginate /repos/${TENANT_ORG}/${SLUG}/rulesets --jq '.[].bypass_actors'"
|
|
65
65
|
echo ""
|
|
66
66
|
echo "Bootstrap cleanup: Revoke the GitHub PAT used for bootstrapping — it is no longer needed."
|
|
67
67
|
exit "$exit_code"
|
|
@@ -208,7 +208,7 @@ if $DRY_RUN; then
|
|
|
208
208
|
echo "--- Teardown ---"
|
|
209
209
|
echo " gh api -X DELETE /app/installations/<install-id>"
|
|
210
210
|
echo " cd ${PROVISIONING_DIR} && terraform destroy"
|
|
211
|
-
echo " Sweep bypass_actors: gh api /repos/${TENANT_ORG}/${SLUG}/rulesets --jq '.[].bypass_actors'"
|
|
211
|
+
echo " Sweep bypass_actors: gh api --paginate /repos/${TENANT_ORG}/${SLUG}/rulesets --jq '.[].bypass_actors'"
|
|
212
212
|
echo ""
|
|
213
213
|
echo "All provisioning complete. Run runbook Steps 5-10 manually."
|
|
214
214
|
exit 0
|
|
@@ -75,7 +75,7 @@ P1 findings get the current active milestone. P2/P3 findings get `Post-MVP / Lat
|
|
|
75
75
|
Detect the active milestone:
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
gh api repos/:owner/:repo/milestones --jq '[.[] | select(.state=="open") | select(.title | startswith("Phase"))] | sort_by(.due_on) | .[0].title // "Post-MVP / Later"'
|
|
78
|
+
gh api --paginate repos/:owner/:repo/milestones --jq '[.[] | select(.state=="open") | select(.title | startswith("Phase"))] | sort_by(.due_on) | .[0].title // "Post-MVP / Later"'
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
## Duplicate Detection
|
|
@@ -152,7 +152,7 @@ For reviews with 15+ findings, create issues sequentially to avoid GitHub API ra
|
|
|
152
152
|
|
|
153
153
|
## Sharp Edges
|
|
154
154
|
|
|
155
|
-
- `gh issue create --milestone <value>` resolves against milestone **title**, not number. `--milestone 6` fails with `could not add to milestone '6': '6' not found` even when milestone 6 exists. Retrieve the title via `gh api /repos/<owner>/<repo>/milestones --jq '.[] | {number, title}'` and pass the title. The `number` field is REST-API-only. **Why:** filing #2272 retried with `--milestone "Post-MVP / Later"` to succeed.
|
|
155
|
+
- `gh issue create --milestone <value>` resolves against milestone **title**, not number. `--milestone 6` fails with `could not add to milestone '6': '6' not found` even when milestone 6 exists. Retrieve the title via `gh api --paginate /repos/<owner>/<repo>/milestones --jq '.[] | {number, title}'` and pass the title. The `number` field is REST-API-only. **Why:** filing #2272 retried with `--milestone "Post-MVP / Later"` to succeed.
|
|
156
156
|
|
|
157
157
|
## Cost-of-Filing Gate Rationale (relocated from review/SKILL.md §5)
|
|
158
158
|
|
|
@@ -78,6 +78,7 @@ Two lessons from #9448 belong in every fix-agent and review-seat brief (full acc
|
|
|
78
78
|
- **Re-attach before the first commit after a panel returns, and test the branch name for EMPTY.** Report-only seats still run `git checkout --detach`, and `git branch --show-current && git commit …` does not stop on a detached HEAD because the empty output exits 0 (#9584: a fix commit landed detached). Guard with `[ -n "$(git branch --show-current)" ] || { echo DETACHED; exit 1; }`; recover with `git branch -f <branch> HEAD && git switch <branch>`. See `knowledge-base/project/learnings/2026-10-06-a-truncated-sweep-blamed-the-nav-drawer-and-a-redundant-alternative-hid-a-regression.md`.
|
|
79
79
|
- **A seat must never mutation-test the LIVE worktree, and a bare-root `git` call reviews the wrong tree.** On #6760's fix rounds one seat `sed`-mutated `run-scan.sh` in place (restored after probing) and a second seat reported the residue as an uncommitted P1; two other seats ran `git diff origin/main...HEAD` in the bare checkout where the branch isn't checked out and nearly read an empty diff. Brief every seat to (a) open with `cd <worktree> && pwd` and confirm `git rev-parse --show-toplevel` is the worktree, and (b) apply mutants to a scratch copy under `mktemp -d`, never the tree under review. See `knowledge-base/project/learnings/workflow-patterns/2026-10-12-fix-rounds-catch-the-regressions-the-fix-introduced.md`.
|
|
80
80
|
- **Never edit a script while a suite is still executing it — bash reads a running script incrementally.** During #10117's fix rounds the affected battery (`bash <plugin-root>/scripts/test-all-affected.test.sh`, ~13 min) was mid-run when fix edits landed twice; each edit shifted the file's byte offsets and the still-running process re-read corrupted text, forcing a kill and a full re-run. Check `pgrep -f <suite>` before editing a suite file, or hold edits until the run completes — the fix commits need a fresh battery either way. See `knowledge-base/project/learnings/workflow-patterns/2026-10-14-bash-reads-a-running-script-incrementally-mid-run-edits-corrupt-it.md`.
|
|
81
|
+
- **Tell every seat to RETURN its report instead of parking on a Monitor.** A seat that ended its turn "waiting on its own monitor" sat idle about 4.5 hours on #10111 until the lead resumed it with `SendMessage`; its transcript showed only an interim line. Ask for the final report within the seat's own run (a bounded wait, then report what is verified and say what is not), and if a seat shows only an interim, resume it once rather than waiting on a notification that is not coming.
|
|
81
82
|
- **A brief that asks a seat (or the lead's own battery) to flip a line inside a helper that sends signals or removes files carries the PID-namespace rule.** Run every mutant through `bash "$ROOT/scripts/soleur-sandbox.sh" run-isolated "$SBX" -- <command>` under `timeout -k 5 120` (a mutant that cannot start there, exit 125 with `RUN_IN_PID_NAMESPACE_REFUSED` or any missing script or verb, is `UNVERIFIED-NO-NAMESPACE`, never run on the host); a report-only seat reasons about the line and reports, and the lead mutation-tests the named gap through the verb. The command, the refusal rule and the limits: [work-scratch-sandboxes.md](../../work/references/work-scratch-sandboxes.md).
|
|
82
83
|
- **Verify the lead's own fix edits the way you verify a seat's.** After any splice or prune of a test file, run `git diff origin/main --numstat` and read the DELETED lines unfiltered (a `grep '^[-+]'` hides the context lines an enclosing marker-to-marker splice also removes, and a floor that moves by less than its itemisation is the tell). When a change adds a call inside an extracted unit, `grep -rln` every extractor of that unit by sentinel and by function name before writing "no edit expected". **Why:** #10210 — a splice deleted an unchanged job-budget arm that three seats then found, and a sibling loopback suite extracting the same unit lacked the new helper. See `knowledge-base/project/learnings/2026-10-13-my-review-fix-spliced-away-a-guard-i-never-read-and-a-wait-claimed-300-seconds-it-did-not-wait.md`.
|
|
83
84
|
- **A diff under `docs/legal/` or `knowledge-base/legal/` has no seat arm in `fix-round-seats.sh`, and a legal-wording fix needs the CLO agent, not a vote.** Add `soleur:legal:legal-compliance-auditor` to the panel and to every fix round by hand (the script prints `unknown-seat:` for it), brief the history seat to check published-baseline claims against `origin/main` rather than the panel SHA (a fix round that re-dates an entry reads as an overwrite against the panel SHA), and send every wording doubt to the CLO agent as one batched spawn with the seat reports attached. **Why:** PR #10326 -- see `knowledge-base/project/learnings/2026-10-15-my-correction-pr-wrote-only-and-no-where-the-code-read-showed-more.md`.
|
package/skills/ship/SKILL.md
CHANGED
|
@@ -2101,7 +2101,7 @@ dispatches, while `pull_request_target` jobs (CLA) run against the *base*, dispa
|
|
|
2101
2101
|
green. `gh pr checks` then reports "all checks settled, zero failures" over zero relevant checks.
|
|
2102
2102
|
**"No failures" and "the checks ran" are different claims**, and a conflicting PR silently
|
|
2103
2103
|
produces the first without the second. Assert the checks you *expect* are **present**, not merely
|
|
2104
|
-
non-failing: `gh api "repos/<o>/<r>/actions/runs?head_sha=$(git rev-parse HEAD)" --jq '[.workflow_runs[].name]'`.
|
|
2104
|
+
non-failing: `gh api --paginate "repos/<o>/<r>/actions/runs?head_sha=$(git rev-parse HEAD)" --jq '[.workflow_runs[].name]'`.
|
|
2105
2105
|
(That ref also used to red AC17 on `INDEX.md`'s count, #8137 / #8370; #8377 untracked the file and
|
|
2106
2106
|
retired both the driver and AC17.)
|
|
2107
2107
|
|
package/skills/ux-audit/SKILL.md
CHANGED
|
@@ -69,7 +69,7 @@ Read [route-list.yaml](./references/route-list.yaml). Each route has `{path, aut
|
|
|
69
69
|
### 2. Global-cap check
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
|
-
OPEN_COUNT=$(gh issue list --label ux-audit --state open --json number --jq 'length')
|
|
72
|
+
OPEN_COUNT=$(gh issue list --label ux-audit --state open --limit 100 --json number --jq 'length')
|
|
73
73
|
if [ "$OPEN_COUNT" -ge 20 ]; then
|
|
74
74
|
echo "::warning::Global ux-audit cap reached ($OPEN_COUNT open). Refusing to file new issues."
|
|
75
75
|
exit 0
|