@soleur/opencode 3.354.22 → 3.354.24
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/lib/heartbeat-manifest.ts +5 -0
- package/package.json +1 -1
- package/scripts/scan-ancestor-signal-helpers.test.sh +3 -3
- package/skills/community/test/community-argv.test.sh +3 -8
- package/skills/drain-prs/test/argv-ceiling.test.sh +1 -1
- package/skills/git-worktree/test/stale-lock-sweep.test.sh +4 -5
- package/skills/postmerge/SKILL.md +15 -11
- package/skills/postmerge/references/alert-channel-sweep.md +59 -0
- package/skills/postmerge/references/graceful-degradation.md +1 -0
- package/skills/skill-security-scan/test/argv-ceiling.test.sh +1 -1
|
@@ -340,6 +340,11 @@ export const MANIFEST: ManifestEntry[] = [
|
|
|
340
340
|
// #8516 — the dead-probe sibling of logtail_exploration_alert.inngest_luks_wrong_volume:
|
|
341
341
|
// a pusher beats it only while a fresh host_role=dedicated inngest-server-probe row
|
|
342
342
|
// reaches the warehouse (hourly emission cadence; period 3600 + grace 1800). FED and ARMED.
|
|
343
|
+
// Since #10390 a beat certifies TWO properties of that same freshest row — freshness AND the
|
|
344
|
+
// serving verdict: the feeder grades the row's server_active/http_code/cutover_flag through the
|
|
345
|
+
// shared classify_dedicated_host def and beats <url>/fail on not-serving (verdict fail_beat, an
|
|
346
|
+
// intended immediate incident), beats normally on healthy/stopped-by-brake, and withholds
|
|
347
|
+
// (serving_unavailable, exit 3) when the verdict cannot be established.
|
|
343
348
|
// No `arming_pending` (record PR for #9703). This row carried `arming_pending: { tracking_issue: 9703 }`
|
|
344
349
|
// while the monitor was paused-yet-fed. On 2026-10-12 the runbook arm block unpaused it; its read-back
|
|
345
350
|
// was `status=up paused=false`, and the feeder (scripts/inngest-probe-heartbeat-feeder.sh) then reported
|
package/package.json
CHANGED
|
@@ -85,10 +85,10 @@ selftest_instrument() {
|
|
|
85
85
|
}
|
|
86
86
|
selftest_instrument || { printf '[FATAL] instrument self-test: pass, fail and check did not each move their counters as expected\n' >&2; exit 1; }
|
|
87
87
|
|
|
88
|
-
# --- preconditions: a missing scanner is RED, a missing python3 is
|
|
88
|
+
# --- preconditions: a missing scanner is RED, a missing python3 is UNRESOLVED ---
|
|
89
89
|
if ! command -v python3 >/dev/null 2>&1; then
|
|
90
|
-
printf '
|
|
91
|
-
exit
|
|
90
|
+
printf 'UNRESOLVED: python3 missing — this suite asserted nothing; install python3\n'
|
|
91
|
+
exit 3
|
|
92
92
|
fi
|
|
93
93
|
if [[ ! -f "$SCAN" ]]; then
|
|
94
94
|
printf '[FATAL] scanner missing at %s\n' "$SCAN" >&2
|
|
@@ -119,14 +119,9 @@ fi
|
|
|
119
119
|
# python3: ONLY the test uses it (the independent RFC 5849 percent-encoder of the OAuth oracle); the
|
|
120
120
|
# scripts under test never do, and the hosted runner image has none.
|
|
121
121
|
for dep in jq openssl python3; do
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
exit 1
|
|
126
|
-
fi
|
|
127
|
-
echo "SKIP: $dep not installed"
|
|
128
|
-
exit 0
|
|
129
|
-
fi
|
|
122
|
+
# #8773: a missing tool is UNRESOLVED (exit 3) in every environment — honest
|
|
123
|
+
# both locally and under CI, so the old local-SKIP/CI-FAIL split is gone.
|
|
124
|
+
command -v "$dep" >/dev/null 2>&1 || { echo "UNRESOLVED: $dep missing — this suite asserted nothing; install $dep"; exit 3; }
|
|
130
125
|
done
|
|
131
126
|
|
|
132
127
|
SANDBOX="$(mktemp -d -t community-argv.XXXXXXXX)" || { echo "FAIL: mktemp" >&2; exit 1; }
|
|
@@ -37,7 +37,7 @@ FAIL=0
|
|
|
37
37
|
pass() { echo " PASS: $1"; PASS=$((PASS + 1)); }
|
|
38
38
|
fail() { echo " FAIL: $1"; FAIL=$((FAIL + 1)); }
|
|
39
39
|
|
|
40
|
-
command -v jq >/dev/null 2>&1 || { echo "
|
|
40
|
+
command -v jq >/dev/null 2>&1 || { echo "UNRESOLVED: jq missing — this suite asserted nothing; install jq"; exit 3; }
|
|
41
41
|
[[ -f "$TARGET" ]] || { echo "ERROR: target not found: $TARGET" >&2; exit 1; }
|
|
42
42
|
|
|
43
43
|
WORK="$(mktemp -d)"
|
|
@@ -38,12 +38,11 @@ TMP=$(mktemp -d)
|
|
|
38
38
|
trap 'rm -rf "$TMP"' EXIT
|
|
39
39
|
|
|
40
40
|
# GNU coreutils preflight — the sweep + this test use GNU `stat -c%Y` and
|
|
41
|
-
# `touch -d '<rel>'` (Linux/CI ubuntu target).
|
|
42
|
-
# (
|
|
43
|
-
# "invalid date format".
|
|
41
|
+
# `touch -d '<rel>'` (Linux/CI ubuntu target). A host that cannot measure is
|
|
42
|
+
# UNRESOLVED (exit 3), never a green SKIP — the suite asserted nothing (#8773).
|
|
44
43
|
if ! stat -c%Y "$TMP" >/dev/null 2>&1 || ! touch -d '1 second ago' "$TMP/.probe" 2>/dev/null; then
|
|
45
|
-
echo "
|
|
46
|
-
exit
|
|
44
|
+
echo "UNRESOLVED: GNU coreutils missing (stat -c%Y / touch -d relative unsupported) — non-GNU host; this suite asserted nothing"
|
|
45
|
+
exit 3
|
|
47
46
|
fi
|
|
48
47
|
rm -f "$TMP/.probe"
|
|
49
48
|
|
|
@@ -178,21 +178,21 @@ fi
|
|
|
178
178
|
- If any monitor reports `error` or `missed`: flag with monitor name and status. This is a WARNING, not a blocker — the monitor may have been unhealthy before this deploy.
|
|
179
179
|
- If Sentry API is unreachable or returns non-200: warn and skip (do not block on Sentry outages).
|
|
180
180
|
|
|
181
|
-
**Graceful degradation:**
|
|
181
|
+
**Graceful degradation:** advisory; a Sentry API failure does not block the pipeline.
|
|
182
182
|
|
|
183
183
|
### Inngest liveness awareness (#6374)
|
|
184
184
|
|
|
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; this is a cheap read
|
|
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
188
|
gh issue list --label ci/inngest-down --state open \
|
|
189
189
|
--json number,title,createdAt --jq '.[] | "#\(.number) \(.title) (opened \(.createdAt))"'
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
- If it prints an open issue: surface a one-line advisory — "ADVISORY: inngest reports down (`#<n>`) — armed reminders and scheduled crons may not be firing; the external watchdog is auto-restarting / escalating. Do not assume scheduled work ran." Include
|
|
193
|
-
- If empty: silent
|
|
192
|
+
- If it prints an open issue: surface a one-line advisory — "ADVISORY: inngest reports down (`#<n>`) — armed reminders and scheduled crons may not be firing; the external watchdog is auto-restarting / escalating. Do not assume scheduled work ran." Include in the Phase 7 report.
|
|
193
|
+
- If empty: silent.
|
|
194
194
|
|
|
195
|
-
**Advisory only — never hard-block the turn.** inngest-down does not block all work; the operator retains agency.
|
|
195
|
+
**Advisory only — never hard-block the turn.** inngest-down does not block all work; the operator retains agency.
|
|
196
196
|
|
|
197
197
|
## Phase 3.6: Sentry Error-Count Delta (Fix Efficacy)
|
|
198
198
|
|
|
@@ -308,6 +308,10 @@ drafted — note in the Phase 7 report that other eligible PRs need the standalo
|
|
|
308
308
|
catch-up path. `soleur:merge-pr`-only flows bypass this hook by design; the
|
|
309
309
|
recovery is standalone `soleur:feature-tweet #N`.
|
|
310
310
|
|
|
311
|
+
## Phase 3.9: Alert-Channel Sweep (advisory)
|
|
312
|
+
|
|
313
|
+
After the deploy verdict, read [references/alert-channel-sweep.md](./references/alert-channel-sweep.md) and run it — a point read of `ci/` issues opened since the merge commit plus Better Stack open incidents, in the Phase-3.5 advisory idiom: report, never hard-block (epic #10390; the always-on arm is `scheduled-betterstack-incident-mirror.yml`, ADR-298). Report vocabulary: `Alert-channel sweep: <clean|verbatim rows|SKIPPED (<cause>)>`.
|
|
314
|
+
|
|
311
315
|
## Phase 4: Verify File Freshness
|
|
312
316
|
|
|
313
317
|
Read key files from the merged commit to verify they match expectations -- NOT from the bare repo filesystem which may contain stale content.
|
|
@@ -475,15 +479,13 @@ gh api --paginate --slurp "repos/jikig-ai/soleur/issues/<number>/comments?per_pa
|
|
|
475
479
|
|
|
476
480
|
`deliver=false` (a registration-only or comment-only push) and a green run with no verdict is
|
|
477
481
|
the expected case. Any `kind=` other than none is reported verbatim with the runbook's next
|
|
478
|
-
action (`knowledge-base/engineering/operations/runbooks/registry-host-replace-dispatch.md`)
|
|
479
|
-
this phase reports, it does not block "done".
|
|
482
|
+
action (`knowledge-base/engineering/operations/runbooks/registry-host-replace-dispatch.md`).
|
|
480
483
|
|
|
481
484
|
## Phase 5.7: Sole-copy protection read-back (path-triggered, REPORT-ONLY)
|
|
482
485
|
|
|
483
486
|
When the merged PR touched `apps/web-platform/infra/inngest-redis-luks.tf` (`gh pr diff <number> --name-only`), the merge's
|
|
484
487
|
per-merge apply is what delivers the Hetzner delete protection on the Inngest sole-copy volume (#9879, ADR-282), so a green
|
|
485
|
-
merge proves nothing about it. Otherwise record `Sole-copy read-back: SKIPPED (no triggering paths)` and continue.
|
|
486
|
-
reports; it never dispatches a production apply on its own.
|
|
488
|
+
merge proves nothing about it. Otherwise record `Sole-copy read-back: SKIPPED (no triggering paths)` and continue.
|
|
487
489
|
|
|
488
490
|
1. **Derive the expected word** (never hard-code it): `git fetch origin main`, then
|
|
489
491
|
`git show <merge-sha>:apps/web-platform/infra/inngest-redis-luks.tf` and read `delete_protection` on
|
|
@@ -574,7 +576,7 @@ git mv <row-path> knowledge-base/project/<root>/archive/$(date +%Y%m%d-%H%M%S)-<
|
|
|
574
576
|
then open a follow-up PR — archival cannot ride a PR that already merged. **M-row caveat:** an `M` on `specs/<dir>/` can be a
|
|
575
577
|
drive-by edit to a SIBLING feature's in-flight spec — verify the dir belongs to the merged feature first; if not, revert the
|
|
576
578
|
edit (`git checkout origin/main -- <path>` then commit) rather than `git mv`-ing another feature's dir. Like Phases 5.6/5.7
|
|
577
|
-
it
|
|
579
|
+
it never blocks the "done" verdict; the signal is for immediate operator attention, not rollback.
|
|
578
580
|
|
|
579
581
|
## Phase 6: Update Issue and Compound
|
|
580
582
|
|
|
@@ -587,6 +589,7 @@ gh issue comment <issue-number> --body "Post-merge verification complete for PR
|
|
|
587
589
|
- Production health: <PASSED/SKIPPED/FAILED>
|
|
588
590
|
- Sentry monitors: <HEALTHY/WARNING/SKIPPED>
|
|
589
591
|
- Sentry error-count delta: <AUTO-RESOLVED/STOPPED/STILL-FIRING/SKIPPED>
|
|
592
|
+
- Alert-channel sweep: <clean/verbatim rows/SKIPPED> (advisory, #10390)
|
|
590
593
|
- File freshness: <PASSED/N files checked>
|
|
591
594
|
- Browser verification: <PASSED/SKIPPED/DELEGATED-TO-LIVE-VERIFY>
|
|
592
595
|
- Live verification: <PASS/FAIL/CANT-RUN:reason/SKIPPED/UNVERIFIED:capability> (blocking in CI, #5463)
|
|
@@ -614,6 +617,7 @@ CI on main: PASSED
|
|
|
614
617
|
Production health: <PASSED/SKIPPED/FAILED>
|
|
615
618
|
Sentry monitors: <HEALTHY/WARNING/SKIPPED>
|
|
616
619
|
Sentry error-count delta: <AUTO-RESOLVED/STOPPED/STILL-FIRING/SKIPPED>
|
|
620
|
+
Alert-channel sweep: <clean/verbatim rows/SKIPPED> (advisory, #10390)
|
|
617
621
|
File freshness: <N files verified>
|
|
618
622
|
Browser verification: <PASSED/SKIPPED/DELEGATED-TO-LIVE-VERIFY>
|
|
619
623
|
Live verification: <PASS/FAIL/CANT-RUN:reason/SKIPPED/UNVERIFIED:capability> (blocking in CI, #5463)
|
|
@@ -630,7 +634,7 @@ per-prerequisite behaviour (skip / warn / poll).
|
|
|
630
634
|
|
|
631
635
|
## Notes
|
|
632
636
|
|
|
633
|
-
- Always read merged files out of git
|
|
637
|
+
- Always read merged files out of git by **merge commit SHA** (`git show <merge-sha>:<path>`), never the local `main` ref — and `git fetch origin main` FIRST (the merge object may be absent locally, and git's `exists on disk, but not in <sha>` wording reads like a file verdict). See Phase 4 for the full doctrine.
|
|
634
638
|
- MCP tools resolve paths from the repo root. Use absolute paths when in a worktree.
|
|
635
639
|
- This skill is designed to run after `soleur:merge-pr` completes. It can also be invoked standalone with a PR number.
|
|
636
640
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Alert-Channel Sweep — postmerge Phase 3.9
|
|
2
|
+
|
|
3
|
+
A green deploy verdict says production serves the merge; it says nothing about what the alert
|
|
4
|
+
channels reported while it landed. On 2026-10-22 the two inngest heartbeat monitors paged
|
|
5
|
+
correctly into an unwatched email inbox — detection was timely, notice was late (epic #10390,
|
|
6
|
+
ADR-298). This phase reads the two watched alert surfaces once, after the deploy verdict — the
|
|
7
|
+
same advisory idiom as the Phase-3.5 inngest-down read: report, never hard-block. The always-on
|
|
8
|
+
arm is `scheduled-betterstack-incident-mirror.yml`; this phase is the merge-time point read, and
|
|
9
|
+
`scripts/followthroughs/post-deploy-incident-soak.sh` is the enrollable time-windowed
|
|
10
|
+
complement.
|
|
11
|
+
|
|
12
|
+
**(a) `ci/` GitHub issues opened since the merge commit.** Every watchdog and standing alarm
|
|
13
|
+
files under a `ci/*` label (`ci/inngest-down`, `ci/betterstack-incident`, `ci/zot-restart-loop`,
|
|
14
|
+
… — the whole family, not only `ci/inngest-*`). Two Bash calls (no command substitution): first
|
|
15
|
+
the merge commit's timestamp, then the windowed list filtered to the `ci/` label family:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
gh api repos/{owner}/{repo}/commits/<full-merge-sha> --jq '.commit.committer.date'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
gh issue list --state all --search "created:>=<committer-date-from-above>" --limit 100 \
|
|
23
|
+
--json number,title,createdAt,labels \
|
|
24
|
+
--jq '[.[] | select([.labels[].name | startswith("ci/")] | any)] | .[] | "#\(.number) [\(.labels | map(.name) | join(","))] \(.title) (opened \(.createdAt))"'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**(b) Better Stack open incidents.** `BETTERSTACK_API_TOKEN_READONLY` from Doppler
|
|
28
|
+
`prd_terraform`; project each incident to `{id,name,started_at}` — the raw objects carry
|
|
29
|
+
`acknowledged_by` and screenshot URLs, and the Phase-6 comment republishes printed lines
|
|
30
|
+
(public-comment discipline; `scripts/betterstack-query.sh` is the Logs path, not this one —
|
|
31
|
+
incidents live on the uptime API):
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
BS_TOKEN=$(doppler secrets get BETTERSTACK_API_TOKEN_READONLY -p soleur -c prd_terraform --plain 2>/dev/null)
|
|
35
|
+
# argv shows in /proc/<pid>/cmdline, so the token rides curl's stdin config. Bash only; `bash -x` would print the token.
|
|
36
|
+
# Advisory phase: a missing or malformed token SKIPS (exit 0), it never fails the run.
|
|
37
|
+
if ! (LC_ALL=C; case "$BS_TOKEN" in ''|*[!A-Za-z0-9._~+/=-]*) exit 1;; esac); then
|
|
38
|
+
echo "WARNING: BETTERSTACK_API_TOKEN_READONLY (Doppler prd_terraform) unset or not [A-Za-z0-9._~+/=-] (refused, not sent). Better Stack incidents: SKIPPED."
|
|
39
|
+
else
|
|
40
|
+
curl --disable --noproxy '*' -g --proto '=https' --max-redirs 0 -m 30 -fsS --config - \
|
|
41
|
+
"https://uptime.betterstack.com/api/v2/incidents?resolved=false&per_page=50" \
|
|
42
|
+
< <(printf 'header = "Authorization: Bearer %s"\n' "$BS_TOKEN") \
|
|
43
|
+
| jq '[.data[] | {id, name: .attributes.name, started_at: .attributes.started_at}]'
|
|
44
|
+
fi
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
- Both reads empty → `Alert-channel sweep: clean`.
|
|
48
|
+
- Any rows → `Alert-channel sweep: <verbatim rows>` — a `ci/` filing or an open vendor incident
|
|
49
|
+
in the report is a real page to name, never a merge blocker; the filing watchdog owns its own
|
|
50
|
+
remediation. An incident that predates the merge still counts: `resolved=false` is a point
|
|
51
|
+
read of what is open NOW, not a window read — the deploy-window caveat applies to the `ci/`
|
|
52
|
+
half only.
|
|
53
|
+
- Token/Doppler unavailable, or the API unreadable → `Alert-channel sweep: SKIPPED (<cause>)` —
|
|
54
|
+
the mirror workflow is the always-on arm, so a skipped point read loses nothing continuous.
|
|
55
|
+
The `ci/` half needs no token and always runs.
|
|
56
|
+
|
|
57
|
+
**Graceful degradation:** advisory end to end — a Better Stack API failure or absent token does
|
|
58
|
+
not block the pipeline (see [graceful-degradation.md](./graceful-degradation.md)).
|
|
59
|
+
**Advisory only — never hard-block the turn.**
|
|
@@ -17,4 +17,5 @@ carried in every `soleur:postmerge` body (ADR-229).
|
|
|
17
17
|
| CI run not found | Poll up to 5 minutes, then warn and proceed |
|
|
18
18
|
| No UI files in diff | Skip browser verification entirely |
|
|
19
19
|
| No linked issue | Skip issue comment |
|
|
20
|
+
| No `doppler`, no `BETTERSTACK_API_TOKEN_READONLY` in `prd_terraform`, or Better Stack API unreachable (Phase 3.9) | Report `Alert-channel sweep: SKIPPED (<cause>)` — advisory; the `ci/` issue half needs no token and always runs |
|
|
20
21
|
| No `doppler`, or no `HCLOUD_TOKEN_READONLY` in `prd_terraform`, or no `apply-web-platform-infra.yml` run for the merge SHA (Phase 5.7) | Report `Sole-copy read-back: <missing-token / no word / not delivered>`; never dispatch an apply on a missing read; `missing-token` also files the O5 issue; no run within about 50 min is "not delivered or superseded": read back anyway |
|
|
@@ -42,7 +42,7 @@ FAIL=0
|
|
|
42
42
|
pass() { echo " PASS: $1"; PASS=$((PASS + 1)); }
|
|
43
43
|
fail() { echo " FAIL: $1"; FAIL=$((FAIL + 1)); }
|
|
44
44
|
|
|
45
|
-
command -v jq >/dev/null 2>&1 || { echo "
|
|
45
|
+
command -v jq >/dev/null 2>&1 || { echo "UNRESOLVED: jq missing — this suite asserted nothing; install jq"; exit 3; }
|
|
46
46
|
[[ -f "$CHECK_FS" ]] || { echo "ERROR: not found: $CHECK_FS" >&2; exit 1; }
|
|
47
47
|
|
|
48
48
|
WORK="$(mktemp -d)"
|