Repository navigation
Improve gateway diagnostics export for support reports - #70324
Conversation
🔒 Aisle Security AnalysisWe found 5 potential security issue(s) in this PR:
1. 🟠 Symlink race/arbitrary file overwrite when writing stability bundle temp file
Description
If the process runs with elevated privileges (or as a more-privileged user than the attacker) and the attacker can create files in the target directory, they can pre-create Vulnerable code: const tmpFile = `${file}.${process.pid}.tmp`;
fs.writeFileSync(tmpFile, `${JSON.stringify(bundle, null, 2)}\n`, {
encoding: "utf8",
mode: 0o600,
});
fs.renameSync(tmpFile, file);RecommendationHarden file creation against symlink/hardlink attacks when writing into directories that may be attacker-controlled. Recommended approach:
Example (exclusive create + write via fd): import { openSync, writeFileSync, closeSync, renameSync } from "node:fs";
const fd = fs.openSync(tmpFile, "wx", 0o600); // fail if exists
try {
fs.writeFileSync(fd, `${JSON.stringify(bundle, null, 2)}\n`, "utf8");
} finally {
fs.closeSync(fd);
}
fs.renameSync(tmpFile, file);Additionally, consider generating the temp file name with 2. 🟠 Arbitrary file overwrite via symlink/path abuse in diagnostics export output path
Description
If the process runs with elevated privileges and an attacker can control Vulnerable code: fs.mkdirSync(path.dirname(outputPath), { recursive: true, mode: 0o700 });
fs.writeFileSync(outputPath, buffer, { mode: 0o600 });RecommendationDefend against writing through symlinks / overwriting arbitrary files:
Example (write to temp + atomic rename): const dir = path.dirname(outputPath);
fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
const tmp = path.join(dir, `.tmp-${process.pid}-${Date.now()}`);
const fd = fs.openSync(tmp, "wx", 0o600);
try {
fs.writeFileSync(fd, buffer);
} finally {
fs.closeSync(fd);
}
// Optional: refuse if outputPath exists and is a symlink
try {
if (fs.lstatSync(outputPath).isSymbolicLink()) {
throw new Error("Refusing to write diagnostics export to a symlink");
}
} catch (e) {
// ignore ENOENT
}
fs.renameSync(tmp, outputPath);Also consider rejecting 3. 🟡 Potential disk-fill DoS via repeated diagnostic stability bundle writes when retention pruning fails
Description
However, Additionally, the failure path forces Impact:
Vulnerable code (retention bypass on errors): function pruneOldBundles(dir: string, retention: number): void {
...
try {
const entries = fs.readdirSync(dir, { withFileTypes: true })
...
for (const entry of entries.slice(retention)) {
try {
fs.unlinkSync(entry.file);
} catch {
// Retention cleanup must not block failure handling.
}
}
} catch {
// Retention cleanup must not block failure handling.
}
}Failure writer always writes (even empty snapshot): const result = writeDiagnosticStabilityBundleSync({
...options,
reason,
error,
includeEmpty: true,
});RecommendationMitigate disk-fill risk by making bundle creation resilient to pruning failures and adding write throttling:
Example: simple time-based throttle (in-memory): let lastWriteAt = 0;
const MIN_INTERVAL_MS = 60_000;
export function writeDiagnosticStabilityBundleForFailureSync(reason: string, error?: unknown, options: WriteDiagnosticStabilityBundleForFailureOptions = {}) {
const now = Date.now();
if (now - lastWriteAt < MIN_INTERVAL_MS) {
return { status: "skipped", reason: "empty" as const };
}
lastWriteAt = now;
...
}And/or if 4. 🟡 Support export redaction misses sensitive URL query parameters (e.g., session_id) leading to info disclosure
DescriptionThe support bundle redaction only masks URL query parameter values when the parameter name is in a small allowlist ( In
As a result, a log message like:
will keep the Vulnerable code: .replace(URL_PARAM_RE, (match, prefix: string, key: string) =>
isSensitiveUrlQueryParamName(key) ? `${prefix}${key}=<redacted>` : match,
);RecommendationBroaden query-param redaction so common session/authorization parameters cannot slip through. Options (can be combined):
Example safer implementation (redact all query params in support export): function redactUrlSecretsForSupport(value: string): string {
return value
.replace(URL_USERINFO_RE, (_m, scheme: string, _u: string, p?: string) =>
p ? `${scheme}<redacted>:<redacted>@` : `${scheme}<redacted>@`,
)
.replace(URL_PARAM_RE, (_match, prefix: string, key: string) =>
`${prefix}${key}=<redacted>`,
);
}If full redaction is too aggressive, at minimum add 5. 🟡 Diagnostics opt-out default enables collection/logging of operational metadata by default
DescriptionDiagnostics were changed from opt-in to opt-out:
This is a privacy/security regression because diagnostic events include identifiers such as Vulnerable change: export function isDiagnosticsEnabled(config?: OpenClawConfig): boolean {
return config?.diagnostics?.enabled !== false;
}RecommendationRestore diagnostics to an explicit opt-in model, or gate all diagnostics emission behind both (1) a process-global flag defaulting to false until config is loaded, and (2) an explicit config enable. Example (opt-in): export function isDiagnosticsEnabled(config?: OpenClawConfig): boolean {
return config?.diagnostics?.enabled === true;
}
function getDiagnosticEventsState(): DiagnosticEventsGlobalState {
// default disabled until config is loaded
...
enabled: false,
}Also ensure early startup paths set the process-global flag before any potential diagnostic emission, and add regression tests asserting that events are not emitted when diagnostics are unset/disabled. Analyzed PR: #70324 at commit Last updated on: 2026-04-23T00:49:49Z |
Greptile SummaryThis PR adds a comprehensive gateway diagnostics export system — CLI commands ( Two P1 concerns need attention before merge:
Confidence Score: 3/5Needs fixes before merge: hostname is included in the support zip despite an explicit 'no hostnames' privacy claim, and the default-on diagnostic change lacks a migration notice. Two P1 findings: the hostname privacy guarantee is contradicted by the code, and the opt-in→opt-out flip for diagnostics could expose data for users who never consented. The TOCTOU on mtime is P2. The rest of the implementation is well-tested and carefully structured. src/logging/diagnostic-support-export.ts (hostname not redacted before zipping stability bundle), src/infra/diagnostic-events.ts (default-on change) Prompt To Fix All With AIThis is a comment left during a code review.
Path: src/logging/diagnostic-support-export.ts
Line: 773-775
Comment:
**Hostname written to zip contradicts stated privacy guarantee**
The PR description explicitly lists "no hostnames" as part of the conservative privacy posture, but `stability.bundle.host.hostname` is written directly from `os.hostname()` (set in `writeDiagnosticStabilityBundleSync`) into the zip without any redaction. In a corporate environment, hostnames are often sensitive (they can encode team, location, or user identity). The test only checks that `"support-host"` (a log-record field) is absent, but the real OS hostname from the stability bundle is a different value and is never checked for exclusion.
Either the bundle's `host.hostname` should be redacted (e.g., replaced with a hash or `<redacted-hostname>`) before being included, or the privacy notes in `summary.md` and the PR description should be corrected to acknowledge that hostnames are present.
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: src/infra/diagnostic-events.ts
Line: 237-238
Comment:
**Default-on change may surprise users who never opted in**
`isDiagnosticsEnabled` flipped from `=== true` (opt-in) to `!== false` (opt-out). Any user who never set `diagnostics.enabled` in their config will now have the stability recorder, memory sampler, and support-export machinery active automatically. The PR notes this is intentional, but the change has privacy implications: on upgrade, users who previously had diagnostics silently disabled will begin writing stability bundles (including hostname, PID, and event history) to disk under `$OPENCLAW_STATE_DIR/logs/stability/` without explicit consent. Consider at minimum adding a one-time migration notice or documenting the default-on behavior prominently in the upgrade notes.
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: src/logging/diagnostic-stability-bundle.ts
Line: 213-222
Comment:
**TOCTOU: `statSync` after `readFileSync` can return stale mtime**
`readFileSync` reads the file, then `statSync` is called separately for `mtimeMs`. If the file is replaced between the two calls (e.g., a new bundle written by another process), the returned `mtimeMs` will belong to the new file while `bundle` reflects the old content. For display-only use this is benign, but callers using `mtimeMs` to sort or de-duplicate bundles could see an inconsistency. Consider reading the stat *before* parsing (or deriving mtime from the filename timestamp as a fallback).
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "feat: add gateway diagnostics export" | Re-trigger Greptile |
There was a problem hiding this comment.
Pull request overview
Adds a support-ready diagnostics export (zip artifact) and a bounded “gateway stability” diagnostics pipeline (recorder + persisted bundles), wiring new memory/payload diagnostics events through the Gateway and CLI surfaces with updated docs/tests.
Changes:
- Add bounded diagnostic stability recorder, persisted stability bundles (including fatal/restart failure hooks), and a
diagnostics.stabilityGateway RPC +openclaw gateway stabilityCLI. - Add
openclaw gateway diagnostics exportto write a shareable diagnostics zip containing manifest/summary, sanitized log tail, config shape/sanitized config, status/health snapshots, and latest stability bundle. - Emit new diagnostics events for memory sampling/pressure and oversized payloads, and enable diagnostics by default with an opt-out (
diagnostics.enabled: false).
Reviewed changes
Copilot reviewed 49 out of 49 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/logging/diagnostic.ts | Gate diagnostic logging by process/config flags; heartbeat now drives memory sampling + stability recorder lifecycle. |
| src/logging/diagnostic.test.ts | Adds coverage for heartbeat lifecycle, recorder wiring, and disabled-diagnostics behavior. |
| src/logging/diagnostic-support-redaction.ts | New support-oriented redaction/sanitization utilities for text, paths, snapshots, and config. |
| src/logging/diagnostic-support-export.ts | New support export builder/writer producing a privacy-conscious diagnostics zip artifact. |
| src/logging/diagnostic-support-export.test.ts | Validates export contents and redaction behavior for secrets/payloads/identifiers/paths. |
| src/logging/diagnostic-stability.ts | New bounded stability recorder and snapshot/query logic for diagnostic events. |
| src/logging/diagnostic-stability.test.ts | Tests recorder projection, bounding, filtering, and summary aggregation. |
| src/logging/diagnostic-stability-bundle.ts | New on-disk stability bundle persistence + retention + fatal hook integration. |
| src/logging/diagnostic-stability-bundle.test.ts | Tests bundle writing/retention/reading and fatal-hook wiring. |
| src/logging/diagnostic-runtime.ts | Skip queue lane diagnostic events when diagnostics are disabled for the process. |
| src/logging/diagnostic-payload.ts | New helper to emit payload.large diagnostics + parse Content-Length. |
| src/logging/diagnostic-memory.ts | New memory sampling + threshold/growth pressure events with throttling. |
| src/logging/diagnostic-memory.test.ts | Tests memory sample and pressure emission/throttling behavior. |
| src/infra/unhandled-rejections.ts | Run fatal error hooks before exiting on unhandled rejections. |
| src/infra/unhandled-rejections.fatal-detection.test.ts | Ensures fatal hook state is reset for tests that install rejection handlers. |
| src/infra/fatal-error-hooks.ts | New minimal fatal hook registry with safe failure reporting. |
| src/infra/fatal-error-hooks.test.ts | Tests message collection and safe hook-failure reporting. |
| src/infra/diagnostic-events.ts | Adds new diagnostics event types; enables diagnostics by default; adds process-level enable switch. |
| src/infra/diagnostic-events.test.ts | Adds tests for process-level disable behavior + updated default-enabled semantics. |
| src/index.ts | Run fatal error hooks on uncaught exceptions and legacy CLI failures. |
| src/gateway/server/ws-connection/message-handler.ts | Emit payload.large when pre-auth WS frames exceed limits. |
| src/gateway/server/ws-connection.ts | Detect WS max-payload errors and emit payload.large with appropriate surface/reason. |
| src/gateway/server.preauth-hardening.test.ts | Asserts oversized pre-auth frames emit payload.large diagnostics. |
| src/gateway/server.impl.ts | Set per-process diagnostics enabled flag from config; start heartbeat if enabled. |
| src/gateway/server-methods/diagnostics.ts | New Gateway RPC method diagnostics.stability. |
| src/gateway/server-methods/diagnostics.test.ts | Tests stability RPC filtering and invalid param handling. |
| src/gateway/server-methods/chat.ts | Emit payload.large when chat history is truncated to fit size budget. |
| src/gateway/server-methods.ts | Registers new diagnostics handlers. |
| src/gateway/server-methods-list.ts | Adds diagnostics.stability to the method listing. |
| src/gateway/server-broadcast.ts | Emits payload.large once per slow client when outbound WS buffer exceeds cap. |
| src/gateway/method-scopes.ts | Adds diagnostics.stability to operator read scope. |
| src/gateway/method-scopes.test.ts | Adds scope coverage for diagnostics.stability. |
| src/gateway/http-common.ts | Emit payload.large when JSON body is rejected as too large (with Content-Length when present). |
| src/gateway/http-common.test.ts | Asserts oversized JSON body emits payload.large diagnostics. |
| src/gateway/gateway-stability.test.ts | New focused “stability lane” regression test for bounded recorder behavior. |
| src/gateway/gateway-misc.test.ts | Adds broadcaster test asserting outbound buffer diagnostics emission is de-duped. |
| src/config/schema.help.ts | Updates docs to reflect diagnostics default-enabled behavior. |
| src/config/schema.base.generated.ts | Updates generated schema help text for diagnostics default-enabled behavior. |
| src/cli/run-main.ts | Run fatal error hooks on CLI uncaught exceptions. |
| src/cli/gateway-cli/run.ts | Persist a stability bundle on gateway startup failure. |
| src/cli/gateway-cli/run-loop.ts | Persist stability bundles on restart failures and shutdown timeouts. |
| src/cli/gateway-cli/register.ts | Adds gateway stability and gateway diagnostics export CLI commands (plus bundle reading/export routing). |
| src/cli/gateway-cli.coverage.test.ts | CLI coverage for stability RPC, bundle output, and diagnostics export behavior. |
| package.json | Adds test:stability:gateway convenience script. |
| docs/help/testing.md | Documents the new stability test lane/script. |
| docs/gateway/protocol.md | Documents payload-limit behavior and payload.large diagnostics. |
| docs/gateway/health.md | Documents default-enabled diagnostics, stability recorder/bundles, and support export workflow. |
| docs/cli/gateway.md | Documents gateway stability and gateway diagnostics export commands/options. |
| docs/.generated/config-baseline.sha256 | Updates config baseline hashes due to schema/help changes. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db881537f1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
978912c to
5d7ce7f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d7ce7f013
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
7cb1b6c to
ab96802
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ab96802b87
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
2cc50ff to
40ad7e8
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40ad7e865f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4e9f895c0a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2ecd0d96c1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 171ded0369
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08d3a720db
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8da37ea281
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 255f5ce1fc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b36b1b76b0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| readObject(bundle.process, "process"); | ||
| readObject(bundle.host, "host"); | ||
| readStabilitySnapshot(bundle.snapshot); | ||
| return bundle as DiagnosticStabilityBundle; |
There was a problem hiding this comment.
Strip unknown fields when parsing stability bundles
parseDiagnosticStabilityBundle validates required fields but then returns the original object cast to DiagnosticStabilityBundle, so unvalidated extra fields are preserved. Because support exports later serialize the parsed bundle verbatim (stability/latest.json), a hand-edited/tampered bundle (or gateway stability --export --bundle <path>) can smuggle payload/secrets into a file that is advertised as share-safe. Construct and return a sanitized bundle object with only whitelisted fields instead of casting the original input.
Useful? React with 👍 / 👎.
| .replace(URL_PARAM_RE, (match, prefix: string, key: string) => | ||
| isSensitiveUrlQueryParamName(key) ? `${prefix}${key}=<redacted>` : match, |
There was a problem hiding this comment.
Redact sensitive URL params in fragments
URL secret redaction only handles query parameters that start with ?/&, so fragment-carried credentials like #access_token=... are not scrubbed. OAuth/magic-link style URLs frequently put bearer tokens in fragments, and those strings can flow into logs/status snapshots that are included in diagnostics exports, leaking credentials in bundles intended for sharing. Expand redaction to parse and sanitize sensitive key/value pairs in URL fragments as well.
Useful? React with 👍 / 👎.
Merged via squash. Prepared head SHA: 3d6ee85 Co-authored-by: gumadeiras <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
Merged via squash. Prepared head SHA: 3d6ee85 Co-authored-by: gumadeiras <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
Merged via squash. Prepared head SHA: 3d6ee85 Co-authored-by: gumadeiras <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
Merged via squash. Prepared head SHA: 3d6ee85 Co-authored-by: gumadeiras <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
Merged via squash. Prepared head SHA: 3d6ee85 Co-authored-by: gumadeiras <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
Merged via squash. Prepared head SHA: 3d6ee85 Co-authored-by: gumadeiras <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
Merged via squash. Prepared head SHA: 3d6ee85 Co-authored-by: gumadeiras <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
Merged via squash. Prepared head SHA: 3d6ee85 Co-authored-by: gumadeiras <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
Summary
Adds a support-ready gateway diagnostics export and strengthens the local
stability diagnostics pipeline around it.
This gives users one shareable artifact for bug reports while keeping the
default privacy posture conservative: no raw chats, webhook bodies, tool
outputs, credentials, cookies, hostnames, prompt text, or secret values.
What Changed
openclaw gateway stabilityopenclaw gateway stability --bundle latestopenclaw gateway stability --bundle latest --exportopenclaw gateway diagnostics export--output--jsonrestart-failure paths.
diagnostics.enabled: falseas the opt-out.
numeric IDs
Why
Problem reports should be actionable without requiring users to collect five
different command outputs or share unsafe local logs. The export should answer:
what failed, when, on which version/platform, under which gateway/plugin surface,
and whether there were recent stability or payload-pressure signals.
Testing
Validated on Blacksmith:
git diff --check && pnpm check:changedpnpm test src/logging/diagnostic-support-export.test.tsFull
pnpm testwas intentionally not rerun for this final pass.Follow-Ups
These are intentionally out of scope for this PR and will not be done here.
Add hard byte and entry-count caps for exported snapshot trees.
Current export has string/depth limits, but status/health/config snapshots
should also have total byte and object-entry ceilings so unexpected large
structures cannot bloat support zips.
Add per-section included/skipped/failed status plus byte counts in the
manifest and summary.
This will let maintainers quickly tell which evidence is present, missing, or
failed to collect.
Expand payload-free diagnostic highlights in
summary.md.Surface memory pressure, oversized payloads, restart/fatal bundles, and failed
snapshot collection in human-readable form.
Add plugin-level stability attribution.
Include payload-free per-plugin/channel lifecycle and failure breadcrumbs so
maintainers can quickly see which plugin or channel was active around a
crash, restart, or degraded gateway state.