@soleur/opencode 3.404.0 → 3.405.1
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 +1 -1
- package/scripts/ancestor-signal-helpers.baseline.txt +2 -0
- package/scripts/cloudflare-readonly.sh +8 -13
- package/scripts/inngest-alerts-push-probe.ts +4 -2
- package/skills/plan/references/plan-sharp-edges.md +1 -0
- package/skills/postmerge/SKILL.md +2 -2
- package/skills/postmerge/references/graceful-degradation.md +3 -2
- package/skills/postmerge/references/sentry-error-count-delta.md +12 -1
- package/skills/review/references/wfs.md +1 -0
- package/skills/work/references/work-test-harness-sharp-edges.md +4 -0
package/package.json
CHANGED
|
@@ -20,3 +20,5 @@ plugins/soleur/test/ship-battery-refusal-wait.test.sh P if (( n > 400 )); then k
|
|
|
20
20
|
plugins/soleur/test/ship-battery-refusal-wait.test.sh P if [[ -f "$d/die_after" && "$n" -ge "$(cat "$d/die_after")" ]]; then kill -KILL "$PPID"; exit 0; fi
|
|
21
21
|
scripts/followthroughs/pr-battery-gate-saving-9323.test.sh P [[ "$wp" =~ ^[0-9]+$ && "$wp" != "$SOLEUR_TEST_SUITE_PID" ]] && kill -KILL "$wp" 2>/dev/null
|
|
22
22
|
scripts/followthroughs/pr-battery-gate-saving-9323.test.sh W hops=$((hops + 1)); wp="$(cut -d' ' -f4 "/proc/$wp/stat" 2>/dev/null)"
|
|
23
|
+
scripts/rotate-sentry-actions-ro-token.test.sh P kill -TERM "$PPID"
|
|
24
|
+
scripts/rotate-sentry-actions-ro-token.test.sh P kill -TERM "$spid"
|
|
@@ -102,21 +102,16 @@
|
|
|
102
102
|
# with a non-null ssl) and per rule ref, enabled, ssl and two host booleans. The host booleans are
|
|
103
103
|
# LITERAL SUBSTRING figures only and are not a verdict input: a wildcard such as
|
|
104
104
|
# ends_with(http.host, ".soleur.ai") or an expression of true defeats them. Records ok ONLY when
|
|
105
|
-
#
|
|
106
|
-
#
|
|
107
|
-
# recorded not ok with the figures.
|
|
108
|
-
# two ALWAYS-PRESENT ORIGIN-TLS rules (ADR-321: the canary and the strict flip; present but disabled
|
|
109
|
-
# while their Doppler switches ENABLE_ORIGIN_TLS_CANARY_RULE / ENABLE_ORIGIN_TLS_STRICT are off, so the
|
|
110
|
-
# count never changes when a switch flips). enabled_ssl_rules is 2 PLUS one for each of those switches that is
|
|
111
|
-
# on: 2 with both off, 3 with the canary on, 4 with both on; read it against the switches' Doppler state.
|
|
112
|
-
# The wrapper CANNOT verify that
|
|
105
|
+
# enabled_ssl_rules is 2 AND one of those rules has ref dcb85b75bc3c4f4aa2a8c13a080bf854 with ssl=strict (the
|
|
106
|
+
# other is the `ssl = "full"` rule on soleur.ai and www) AND rule_count is 3; anything else is
|
|
107
|
+
# recorded not ok with the figures. The wrapper CANNOT verify that
|
|
113
108
|
# the rule's expression is host-scoped (it never prints the expression), so Records ok does not depend
|
|
114
109
|
# on the host booleans; the owner compares the live expression with
|
|
115
|
-
# apps/web-platform/infra/seo-config-rules.tf
|
|
116
|
-
#
|
|
117
|
-
#
|
|
118
|
-
#
|
|
119
|
-
#
|
|
110
|
+
# apps/web-platform/infra/seo-config-rules.tf (the adopted rule is `(http.host eq "app.soleur.ai")`).
|
|
111
|
+
# The 3, the 2, the ref and the ssl value are a DATED SNAPSHOT (2026-11-13, the ADR-321 item 13
|
|
112
|
+
# cleanup, #10479; history in git and ADR-321): they are re-derived from that file at read time, and
|
|
113
|
+
# the wrapper test fails when the counts or the adopted rule's ssl value here drift from it (a
|
|
114
|
+
# reviewed rollback to flexible edits this header only).
|
|
120
115
|
# C pagerules-ssl figures active_rule_count, ssl_rule_count and per rule the matches_app_host substring figure. Records
|
|
121
116
|
# ok ONLY when ssl_rule_count is 0. Any SSL page rule is recorded not ok with the figures and flagged
|
|
122
117
|
# for CTO review even when matches_app_host is false (a wildcard pattern defeats that boolean).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
// Discoverability probe for #11068: do
|
|
2
|
+
// Discoverability probe for #11068: do the seven TARGETS below (Inngest-serving Better Stack alert resources)
|
|
3
3
|
// declare `push = true` in SOURCE? The flip is the measured-acceptance convention (#9168,
|
|
4
4
|
// #11001): email stays on, push is additive, and a vendor refusal at apply reverts the
|
|
5
5
|
// attribute — a silent source-level revert is exactly what this probe exists to catch.
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
// plan's discoverability command inside a sandbox behind a shell-active-token reject —
|
|
16
16
|
// the inngest-luks-alert-armed-probe.ts precedent.
|
|
17
17
|
//
|
|
18
|
-
// Exit 0 + "PUSH_ARMED" when all
|
|
18
|
+
// Exit 0 + "PUSH_ARMED" when all seven declare `push = true` (the seventh, inngest_registry_empty,
|
|
19
|
+
// joined with #10538); exit 1 +
|
|
19
20
|
// "PUSH_MISSING <resource>" naming the first one that does not (or is absent).
|
|
20
21
|
import { closeSync, constants, fstatSync, openSync, readFileSync } from "node:fs";
|
|
21
22
|
import { join } from "node:path";
|
|
@@ -32,6 +33,7 @@ const TARGETS: readonly (readonly [string, string])[] = [
|
|
|
32
33
|
["betteruptime_heartbeat", "inngest_prd"],
|
|
33
34
|
["betteruptime_heartbeat", "inngest_consumer"],
|
|
34
35
|
["logtail_exploration_alert", "inngest_luks_key_probe_fail"],
|
|
36
|
+
["logtail_exploration_alert", "inngest_registry_empty"],
|
|
35
37
|
];
|
|
36
38
|
|
|
37
39
|
const seen = new Set<string>();
|
|
@@ -226,6 +226,7 @@ NEVER CODE! Just research and write the plan.
|
|
|
226
226
|
- **A plan that changes what an Inngest step RETURNS (or renames its id) must say how the new code reads the OLD memoized value.** Step output is persisted state that outlives the code that wrote it: a run memoized under the old code resumes on the new code after the deploy (the deploy drain waits only for a live child process), so a reader that assumes the new shape crashes outside every catch. Specify a shape-tolerant reader plus a harness test that seeds the old memo. **Why:** #8726 — both returned-verdict migrations would have crashed the in-flight cron runs of their own deploy; caught only by the review panel. See `knowledge-base/project/learnings/integration-issues/2026-09-24-changing-a-step-return-shape-strands-in-flight-runs-and-a-boundary-redaction-blinds-the-detector.md`.
|
|
227
227
|
- **An AC that sweeps the repo for a retired phrase must exclude the plan that quotes it** (`git grep -n '<phrase>' -- ':!knowledge-base/project/plans'`), or the AC is unsatisfiable by construction. **Why:** #8630 — AC10 matched the plan's own reconciliation table and its own AC line.
|
|
228
228
|
- **A plan that changes a Terraform resource must enumerate EVERY workflow that can apply it — not only the one it routes through.** For each push-triggered workflow whose `paths:` include a file the diff edits, ask whether its `-target` graph reaches the resource (dependencies are pulled in transitively) and whether its guard counts that change class. A comment-only edit to a shared `.tf` file can trigger a second apply workflow whose plan performs the change without the intended gate. **Why:** #8705 — a "required" `server.tf` comment edit would have let `apply-deploy-pipeline-fix.yml` (which reaches `hcloud_server.web` and, through its user_data, the rotated token) rotate the credential with no `[ack-destroy]` and no installer re-fire. See `knowledge-base/project/learnings/security-issues/2026-09-24-a-second-apply-workflow-could-perform-the-rotation-without-its-gate.md`.
|
|
229
|
+
- **A gate on a change to a resource's boot payload (`user_data`, an image, a cloud-init arg) must cover every path that BOOTS that payload, not only the workflow you edited.** List the replace job, the birth/create job and any operator-local untargeted `terraform apply` (OPERATOR_APPLIED_EXCLUSIONS break-glass); gate each workflow path with one shared script, and document an abort for the path no workflow can gate. **Why:** #10479/PR #12737 — the `PUBLIC-SDK-URL` confirm sat on `inngest_host_replace` only, while `inngest_host` birth and an untargeted apply both boot the public sdk_url (`hcloud_server.inngest` has no `ignore_changes=[user_data]`). See `knowledge-base/project/learnings/2026-11-15-a-gate-on-one-boot-path-and-a-stripper-that-ate-live-claims.md`.
|
|
229
230
|
- **A privacy/sanitization claim worded "X never appears in the event" is about the WHOLE event, so the plan must enumerate the event's contributors before naming where the guarantee lives.** Contributors: the call's own args, middleware scope extras (`sentry-correlation`'s `inngest.event_data`), breadcrumbs, and free-text fields that embed other values (`err.message`). Prefer enforcing at the boundary every event passes (`server/sentry-scrub.ts`) over one call-site field, and write the AC's test against every sink, not the call args. **Why:** #8719/PR #8794 — the test checked `captureMessage` args while the founder id reached Sentry via the middleware extra and an error message, and a sanitized `extra.tool` sat beside the raw name in `err.message`. See `knowledge-base/project/learnings/security-issues/2026-09-25-a-no-raw-id-claim-tested-at-the-call-args-missed-three-sinks-on-the-same-event.md`.
|
|
230
231
|
- **A gate's refusal message is an instruction the operator will execute in the TRANSITION state the change creates — plan it against that state.** When the change can refuse the value production currently uses (a pinned tag, an existing row, a live config), the message must branch on "is this the live value?" and never prescribe deleting or re-using it. **Why:** #8747 — "delete the tag and re-cut it" named main's own pinned tag right after merge. See `knowledge-base/project/learnings/2026-09-25-my-ancestry-gate-was-sound-and-its-harness-and-its-recovery-text-were-not.md`.
|
|
231
232
|
- **A gate that picks WHICH object to check from a command string must bind to the real invocation, not to text.** Enumerate spellings that name the target without invoking it (`echo`, a `#` comment, a `||`/`;` sibling, a quoted or suffixed argument) and spellings that retarget it (short/attached/combined flags, env vars, a `cd`); require the parse to agree between the raw and quote-stripped command. **Why:** #8778/PR #8779 — "first digits after `gh pr merge`" let a MERGED donor PR's evidence approve a different merge; see `knowledge-base/project/learnings/2026-09-24-the-gate-resolved-its-target-from-text-that-was-not-the-invocation.md`.
|
|
@@ -159,7 +159,7 @@ Query cron monitors:
|
|
|
159
159
|
```bash
|
|
160
160
|
SENTRY_TOKEN=$(doppler secrets get SENTRY_AUTH_TOKEN -p soleur -c prd --plain 2>/dev/null || \
|
|
161
161
|
doppler secrets get SENTRY_API_TOKEN -p soleur -c prd --plain)
|
|
162
|
-
SENTRY_ORG=$(doppler secrets get SENTRY_ORG -p soleur -c prd --plain 2>/dev/null || echo "jikigai")
|
|
162
|
+
SENTRY_ORG=$(doppler secrets get SENTRY_ORG -p soleur -c prd --plain 2>/dev/null || echo "jikigai-eu")
|
|
163
163
|
API_HOST="${SENTRY_ORG}.sentry.io"
|
|
164
164
|
|
|
165
165
|
# argv shows in /proc/<pid>/cmdline, so the token rides curl's stdin config. Bash only; `bash -x` would print the token.
|
|
@@ -644,6 +644,6 @@ per-prerequisite behaviour (skip / warn / poll).
|
|
|
644
644
|
## Production Debugging
|
|
645
645
|
|
|
646
646
|
- **A deploy-arm database step failing on an auth/connect timeout is a production database signal, not an isolated flake: read readiness before rerunning.** `/health` returns HTTP 200 `status: ok` whatever the database state (only `.supabase` flips to `error`), the Management API project `status` can read `ACTIVE_HEALTHY` while Postgres is down, and a rerun's `migrate` can go green through the pooler. Read `curl -sS <prod>/health | jq -r .supabase` and `GET /v1/projects/<ref>/health?services=db&services=auth&services=rest&services=pooler` first — the latter carries the account-level admin PAT, so call it the way [supabase-logs-query.sh](../../../../scripts/supabase-logs-query.sh) does (header on stdin via `--header @-`, `--disable --noproxy '*'`, under `doppler run`), never with the token in argv. **Why:** 2026-09-15 — prd Postgres was unreachable 89 min; a rerun looped on health verification and `/health` was read directly only ~16 min later (post-mortem `prd-supabase-database-unreachable-2026-09-15-postmortem.md`).
|
|
647
|
-
- For production debugging use Sentry API (`
|
|
647
|
+
- For production debugging use Sentry API (`SENTRY_ISSUE_RO_TOKEN` in Doppler `prd`), Better Stack, or `/health` — never SSH for logs. SSH is for infra provisioning only. (ex-`cq-for-production-debugging-use`) To read a Sentry issue/event by id inline, use `doppler run -p soleur -c prd -- scripts/sentry-issue.sh <id>` (runbook `knowledge-base/engineering/operations/runbooks/sentry-issue-read.md`); for host/app logs use [betterstack-query.sh](../../../../scripts/betterstack-query.sh) (runbook `betterstack-log-query.md`).
|
|
648
648
|
- For deploy webhook debugging, fetch `WEBHOOK_DEPLOY_SECRET`/`CF_ACCESS_CLIENT_ID`/`CF_ACCESS_CLIENT_SECRET` from Doppler `prd_terraform` (not `prd`). GET `https://deploy.soleur.ai/hooks/deploy-status` with CF Access headers + HMAC-sha256 over empty body, all on curl's stdin config. Full runbook: [deploy-status-debugging.md](./references/deploy-status-debugging.md). (ex-`cq-deploy-webhook-observability-debug`)
|
|
649
649
|
- Doppler env values on prd are baked into the container at start via `--env-file` (cloud-init.yml). Flipping a flag in Doppler does NOT affect the running container — POST-X gates that depend on a freshly-flipped flag must redeploy the current image tag (POST to `/hooks/deploy`) between the flip and the verification smoke. Full context: [2026-05-19-doppler-env-hot-reload-limitation.md](../../../../knowledge-base/project/learnings/2026-05-19-doppler-env-hot-reload-limitation.md).
|
|
@@ -8,8 +8,9 @@ carried in every `soleur:postmerge` body (ADR-229).
|
|
|
8
8
|
| Missing Prerequisite | Behavior |
|
|
9
9
|
|---------------------|----------|
|
|
10
10
|
| No production URL | Skip health check with warning |
|
|
11
|
-
| No `SENTRY_AUTH_TOKEN` | Skip Sentry cron monitor check
|
|
12
|
-
| No `SENTRY_ISSUE_RW_TOKEN` | Skip the
|
|
11
|
+
| No `SENTRY_AUTH_TOKEN` and no `SENTRY_API_TOKEN` | Skip the Sentry cron monitor check with warning (Phase 3.5 reads `SENTRY_AUTH_TOKEN`, falling back to `SENTRY_API_TOKEN`; both are monitors-only — the error-count delta does not use them, their issue GET 403s, re-measured 2026-11-13) |
|
|
12
|
+
| No `SENTRY_ISSUE_RW_TOKEN` | Skip the auto-resolve PUT only; the error-count-delta GET still runs on `SENTRY_ISSUE_RO_TOKEN`. With neither RO nor RW set, the error-count delta is `SKIPPED`; recommend manual resolution as today |
|
|
13
|
+
| No `SENTRY_ISSUE_RO_TOKEN` (RW set) | The error-count-delta GET falls back to `SENTRY_ISSUE_RW_TOKEN`, GET-only; the auto-resolve PUT still runs on RW |
|
|
13
14
|
| Sentry API unreachable | Skip Sentry cron monitor check with warning |
|
|
14
15
|
| No Sentry issue identified in PR/linked issue | Skip error-count delta silently (nothing to measure) |
|
|
15
16
|
| Sentry issue not found via API | Skip error-count delta with warning |
|
|
@@ -23,6 +23,17 @@ Loaded by [postmerge SKILL.md](../SKILL.md) Phase 3.6 when the PR body or linked
|
|
|
23
23
|
> least-privilege credential for it is `SENTRY_ISSUE_RO_TOKEN`
|
|
24
24
|
> (`event:read`, `org:read`, Doppler `soleur/prd`), and [scripts/sentry-issue.sh](../../../../../scripts/sentry-issue.sh)
|
|
25
25
|
> already implements the RO → RW ladder for this same URL.
|
|
26
|
+
>
|
|
27
|
+
> **Measured 2026-11-13 — which token reads issues.** HTTP codes only (bodies
|
|
28
|
+
> discarded) on `GET https://jikigai-eu.sentry.io/api/0/organizations/jikigai-eu/issues/?query=is:unresolved`,
|
|
29
|
+
> every token from Doppler `soleur/prd`: `SENTRY_ISSUE_RO_TOKEN` 200,
|
|
30
|
+
> `SENTRY_ISSUE_RW_TOKEN` 200, `SENTRY_IAC_AUTH_TOKEN` 200, `SENTRY_AUTH_TOKEN` 403,
|
|
31
|
+
> `SENTRY_API_TOKEN` 403; on `/monitors/` all five returned 200. So `SENTRY_AUTH_TOKEN`
|
|
32
|
+
> is the Phase 3.5 monitors-only token. This phase's GET stays on the RO → RW ladder
|
|
33
|
+
> below and is `SKIPPED` without them (the clarification above still holds: never widen it
|
|
34
|
+
> to an admin-scoped token). For a MANUAL org-level issue search outside this phase, use
|
|
35
|
+
> `SENTRY_ISSUE_RO_TOKEN` first; `SENTRY_IAC_AUTH_TOKEN` (admin-scoped, ADR-031) is the
|
|
36
|
+
> last-resort read only, never a write.
|
|
26
37
|
|
|
27
38
|
```bash
|
|
28
39
|
# ISSUE_ID = the Sentry issue short-id or numeric id from the PR/issue body
|
|
@@ -32,7 +43,7 @@ Loaded by [postmerge SKILL.md](../SKILL.md) Phase 3.6 when the PR body or linked
|
|
|
32
43
|
ISSUE_ID="<sentry-issue-id-from-pr-body>"
|
|
33
44
|
DEPLOY_TS=$(git show -s --format=%cI "<merge-commit-sha-from-phase-1>" 2>/dev/null || true)
|
|
34
45
|
# Same resolution as Phase 3.5 — this block runs on its own.
|
|
35
|
-
SENTRY_ORG=$(doppler secrets get SENTRY_ORG -p soleur -c prd --plain 2>/dev/null || echo "jikigai")
|
|
46
|
+
SENTRY_ORG=$(doppler secrets get SENTRY_ORG -p soleur -c prd --plain 2>/dev/null || echo "jikigai-eu")
|
|
36
47
|
API_HOST="${SENTRY_ORG}.sentry.io"
|
|
37
48
|
# GET: least-privilege RO token, RW as a GET-only fallback (scripts/sentry-issue.sh's
|
|
38
49
|
# ladder). The prd SENTRY_AUTH_TOKEN 403s on /issues/<id>/ (#7797) — never use it here.
|
|
@@ -7,3 +7,4 @@ Loaded from the Defect Classes list in [SKILL.md](../SKILL.md) (Defect Classes)
|
|
|
7
7
|
|
|
8
8
|
- **A guard whose property is CONTROL FLOW cannot be pinned by pattern greps over the body — pin the flow skeleton, and refuse substitution inside the lines you drop.** Pattern checks (`if ! cmd; then`, `exit 1`, a ban on `|| true`) are satisfied by dead branches, `echo ... # exit 1`, `trap 'exit 0' EXIT`, `if: ${{ false }}`, an early unconditional `exit 0`, and by `env:` (`BASH_ENV`, `NODE_OPTIONS`, `PATH`) at step, job or workflow level. Reduce the body to its flow (drop only inert `echo "..."` lines with no `$(`, `${`, backtick or backslash) and compare to a pinned golden, count publishes of every spelling (`pnpm publish`, a `\`-continued `npm publish`, a `uses:` action), and pin the env and `working-directory` of the step. **Why:** #11688 — ten distinct bypasses of a pattern-based `diagnose-on-failure` member, then two P1s in its first skeleton (an echo dropper that accepted `echo "$(printf x >> .npmrc)"`, unconstrained env). See `knowledge-base/project/learnings/2026-10-31-a-pattern-grep-guard-is-satisfied-by-dead-branches-pin-the-control-flow-skeleton.md`.
|
|
9
9
|
- **A leg that invokes a test battery DIRECTLY (not via `scripts/test-all.sh`) tees a capture carrying none of the runner's verdict tokens — check the leg's capture against the downstream classifier's token set per terminal state.** The issue filer's `cap_fail` gate recognizes only `"^RED "`, `"^UNACCOUNTED "`, a `=== N suites:` failed breakdown, or the `[FAIL]`+short-terminal pairing; a completed-but-failing direct-invocation leg contains none and files as "did not complete" (censored-leg semantics on a verdict-bearing capture). The fix is a CONDITIONAL verdict emit (`RED <path>` on `rc != 0`) at the step tail — an unconditional emit would file a censored leg as "tests failing" and erase the complete-vs-timeout split. **Why:** #12626/PR #12654 — P2 found in sequential-fallback review; the mut leg had to bypass `test-all.sh` because its `VITEST_SHARD`-gated `skip_suite` declines the registrations. See `knowledge-base/project/learnings/2026-11-11-a-completed-but-failing-leg-filed-as-did-not-complete.md`.
|
|
10
|
+
- **A gate that greps a run's LOG for a marker must be run against a real green AND a real red log first — GitHub prints each step's `run:` script into the log, so a marker that is also a literal in the workflow source matches on every run.** Fetch one of each (`gh run list -w <wf> -s success -L1` and `-s failure -L1`, then `gh run view <id> --log | grep -cE '<marker>'`) and require a non-zero count on only the log it should match. Match errors only in their rendered `##[error]…` form, require a positive line rather than an absence, and prefer strings built from a variable (`"… in $STACK_NAME"`): the echoed source shows it unexpanded, so the expanded text appears only when the line really runs. **Why:** #12736 — a runbook revoke gate blocked on `sentry_iac_token_absent`, which the echoed `echo "::error::…"` line put in every log. See `knowledge-base/project/learnings/2026-11-13-a-log-marker-gate-matched-the-echoed-workflow-source-and-a-trap-inherited-the-writes-redirect.md`.
|
|
@@ -93,6 +93,8 @@ already carries — see
|
|
|
93
93
|
|
|
94
94
|
- **A suite run is evidence for the tree it ran on — re-run the touched suites after the LAST edit of the commit, comment-only edits included.** A comment can trip a strict substring pin: a test-all.sh comment naming an array that contains a refused prefix turned the lint's unit suite red at the pushed head, after the suite had run green one edit earlier. **Why:** #12348/PR #12561 — all 11 escalation seats found it; see `knowledge-base/project/learnings/2026-11-11-each-fix-round-found-the-next-sibling-until-the-test-stated-its-residuals.md`.
|
|
95
95
|
|
|
96
|
+
- **A mutation copy must assert the mutant's own failure line, not a non-zero rc — and must carry every file the original resolves.** A scratch copy that resolves `REPO` from its own location loses any lib extracted after it was written; it then fails for the missing file and stays green on rc alone. Rewrite `REPO` in the copy, pass each lib path, and grep for the specific line (`[FATAL] assertion floor`) plus the absence of unrelated `[FAIL]` rows. **Why:** #10479/PR #12737 — `mutate_floor_red` measured nothing after `logtail-pair-census.awk` was extracted. See `knowledge-base/project/learnings/2026-11-15-a-gate-on-one-boot-path-and-a-stripper-that-ate-live-claims.md`.
|
|
97
|
+
|
|
96
98
|
## `0 issues in 0 files` is a skipped lint, not a clean one
|
|
97
99
|
|
|
98
100
|
`markdownlint-cli2` never reads a path matched by `.markdownlintignore` (for
|
|
@@ -101,3 +103,5 @@ Lint a `/var/tmp` copy with the pinned binary and `-c .markdownlint.json`, and
|
|
|
101
103
|
confirm a known-bad copy fails, before reporting clean. **Why:** #12536 — see
|
|
102
104
|
`knowledge-base/project/learnings/2026-11-10-a-verify-only-key-slot-guard-anchors-on-what-every-signer-needs.md`
|
|
103
105
|
session error 5.
|
|
106
|
+
|
|
107
|
+
- **A signal trap runs inside the redirections of the command it interrupted, when bash applied them itself** (a shell function, a builtin or a `{ }` group; an external command's redirect lives in the child, so the trap's fd 2 is untouched) — a handler that reports to fd 2 while `my_fn >/dev/null 2>&1` is in flight writes into /dev/null. Take a private dup at startup (`exec 9>&2`) and report on it (`printf '...\n' >&9`); close it for children that may daemonize (`9>&-`). **Why:** #12736 — the rotation script's partial-store report was silently lost on SIGTERM until a stub-driven signal row caught it. See `knowledge-base/project/learnings/2026-11-13-a-log-marker-gate-matched-the-echoed-workflow-source-and-a-trap-inherited-the-writes-redirect.md`.
|