@soleur/opencode 3.354.23 → 3.354.25

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.354.23",
3
+ "version": "3.354.25",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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:** This check is advisory. A Sentry API failure does not block the postmerge pipeline.
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 that needs no Sentry token:
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 it prominently in the Phase 7 report.
193
- - If empty: silent (no line needed).
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. (An optional deeper probe — `curl` the `/hooks/inngest-liveness` HMAC+CF-Access hook — is available for a live verdict but is not required here; the open-issue read is the cheap default.)
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. This phase
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 is REPORT-ONLY (Phase 5.5 is blocking in CI): it never blocks the "done" verdict; the signal is for immediate operator attention, not rollback.
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 rather than off the bare repo filesystem — but address them by the **merge commit SHA** (`git show <merge-sha>:<path>`), never by the local `main` ref. `main` is not fast-forwarded as a side effect of a merge, so in a worktree/bare layout it lags and a file the PR ADDED reads as absent. `git fetch origin main` FIRST: the merge SHA is correct but useless if the worktree does not have that object yet, and git reports the shortfall in wording (`exists on disk, but not in <sha>`) that looks like a verdict about the file. See Phase 4.
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 |