Guides / Ferrum Anvil / Ferrum Diagnostics

Reading Ferrum Diagnostics

Anvil explains what happened to a request from evidence it actually observed. This guide covers the outcome model, how to read a finding, and exactly how far Ferrum Edge markers can be trusted.

Ferrum Anvil v0.1.9 is an unsigned preview. Verify downloads with SHA256SUMS. macOS installers are not Developer ID signed or notarized and Windows installers have no code-signing certificate. In-app updates use verified minisign signatures; this does not code-sign the installers. See the preview downloads and Anvil overview.

Results Reported Separately

Every execution keeps separate dimensions, so a 200 with a truncated body or a gRPC error inside HTTP 200 is not mistaken for success.

DimensionValuesQuestion it answers
Transportcompleted, failed, incomplete, canceled, unknownDid the exchange finish on the wire?
Applicationsuccess, failure, not evaluatedDid the protocol report success: HTTP status, gRPC status, SOAP fault, GraphQL errors?
Assertionspass, fail, not runDid your own checks pass?
Dispatchnot dispatched, sent, may have been sent, unknownCould the peer have acted on the request? Derived from bytes written and protocol signals, never from error text.

Anatomy of a Finding

Findings come from deterministic rules over typed evidence, and their wording comes from a fixed catalog. Text a server sends is never used as an instruction.

  • Confidence: confirmed, likely, unknown or conflicting
  • Scope: the leg the claim is about, such as your connection to the destination, gateway admission, or gateway to backend
  • Owner: who can act: you, the network, a proxy operator, the gateway operator or the backend owner
  • Evidence: the observed facts and where they came from
  • Does not prove, alternatives, remediation and confirm with
Ferrum Anvil diagnosis of a request to a closed local port: no response, transport failed, application not evaluated, dispatch not dispatched. The finding “The connection was refused” is marked Confirmed, scoped “Your connection to destination”, and states that the peer actively refused the TCP connection and nothing was sent. It lists what it does not prove, such as that a process crashed or that a gateway's backend failed, and other possibilities, such as nothing listening on that port or a firewall rejecting the connection.
Pre-release build. A refused connection is observed directly, so it is Confirmed.
ConfidenceMeaning
ConfirmedDirectly observed.
LikelyStrong but indirect, or based on evidence another party could forge.
UnknownThe evidence cannot separate the listed causes.
ConflictingThe evidence disagrees with itself.

Findings are ordered by severity, then specificity (hop-specific findings before generic status explanations), then confidence. Order is presentation only; read each card's own confidence. No finding guarantees a root cause.

Declare the Gateway First

Ferrum-specific findings appear only for destinations you declare in a Ferrum gateway integration profile.

  • Without a profile, a Ferrum-looking header is reported as an unverified marker (ferrum.marker.unverified), because any server can send it.
  • Each profile names its Ferrum Edge release, and Anvil matches responses only against that release's catalog, built from a source audit. Nine catalogs ship in v0.1.9: Ferrum Edge 0.9.20, the only supported release and the default for new profiles (620 outcomes and 17 headers), 0.9.15 (556 outcomes and 16 headers), 0.9.14, 0.9.11, 0.9.10 and 0.9.9 (553 outcomes and 16 headers each), 0.9.8 (540 outcomes and 15 headers), 0.9.7 (538 outcomes and 15 headers), and 0.9.5 (528 outcomes and 14 headers). Edge 0.9.13 and 0.9.12 have no catalog. 0.9.7 and 0.9.5 have seven public X-Gateway-Error tokens; 0.9.8 adds request_timeout, and the 0.9.20 catalog also has loop_detected.
  • A profile that names a release without a catalog never borrows another release's catalog. Anvil reports ferrum.catalog.unavailable (confidence unknown), matches no outcomes, and reads a token only with the coarse meaning every audited release shares. Such releases have not been validated.†
  • Marker-based claims are capped at likely, even for a declared gateway over verified TLS: on 0.9.7 and 0.9.5 a backend can inject X-Gateway-Error and X-Gateway-Upstream-Status on some paths, such as native gRPC responses and plugin reject maps. 0.9.8 and later strip backend marker copies, but a plugin rejection can carry any value and an intervening proxy can still inject them. The same cap applies to a release without a catalog.
  • A declared gateway used over plain HTTP, for example in a local lab, is also capped at likely.
  • The only path above likely is the gateway's own diagnostic record. Edge v0.9.9 and later can stamp the errors it authors with X-Ferrum-Diagnostic-Ref when diagnostic references are turned on. A profile's diagnostic reference lookup, which uses a dedicated, short-lived viewer token with the diagnostics:read scope, resolves that reference through the gateway's authenticated admin API. A record that binds to the exact response can confirm a finding only when both the request and the lookup use verified TLS or a direct loopback connection; the header alone is never evidence.

What Markers Can and Cannot Prove

The tokens are coarse: 0.9.7 and 0.9.5 have seven, 0.9.8 adds request_timeout, and the 0.9.20 catalog also has loop_detected. Anvil does not infer a precise cause from them.

TokenWhat Anvil saysNever claimed from the token alone
connection_failureThe gateway could not set up a connection to the configured backend (DNS, TCP, TLS, pool and similar).That TLS failed, that DNS failed, or that your client certificate is wrong.
backend_timeoutThe gateway's backend deadline elapsed. Other 504 responses can carry a different token, including request_timeout in 0.9.8 and later.That the backend received the request, or that it is slow rather than unreachable.
request_timeout (0.9.8 and later)The route deadline expired before a backend held the current attempt.That no earlier retry reached a backend, or which phase used the budget.
backend_errorThe backend path failed or the gateway refused locally.That the backend returned this error.
circuit_breaker_openThe gateway's breaker for this backend is open.That the backend is down right now.
overloadThe gateway shed load, was draining, or hit its response-transform ceiling.CPU pressure.
config_staleThe data plane's configuration fence is stale.Which configuration change is missing.
concurrency_limitA concurrency limit rejected the request.The limit value or the cause of the load.
loop_detected (0.9.20)The request reached the gateway's proxy hop limit and was refused before routing.That any backend was contacted, how many gateways the request passed through, or that a routing loop exists.

Absence is not evidence

A missing marker does not prove a response came from the backend. Gateway authentication rejections carry no X-Gateway-Error; their bodies can be reproduced by a backend, so they stay at likely at most.

A 403 is not a WAF verdict

The WAF and bot-detection default bodies are byte-identical, and a backend’s own 403 looks the same, so a 403 alone never proves a WAF block.

Ferrum Anvil diagnosis of an HTTP 502 Bad Gateway through a declared Ferrum Edge gateway. The finding “Gateway could not prepare a connection to the backend” is marked Likely, scoped “Gateway to backend”, owned by the gateway operator, and cites ferrum.token.connection_failure. Its “This does not prove” list includes that TLS failed, that DNS failed, that the caller's client certificate is wrong, and that the marker was authored by the gateway, because the connection to the gateway was not authenticated with verified TLS.
Pre-release build. A connection_failure token through a local Ferrum Edge 0.9.7 gateway, reported as Likely with its limits spelled out.

Safety Rules in Every Remediation

  • Disabling TLS verification or the WAF is never suggested as a default fix.
  • A request whose dispatch is may have been sent is never suggested for retry when its method is not idempotent, and the engine does not replay it automatically.
  • Remediation names an owner: gateway-to-backend problems go to the gateway operator or backend owner, not to your credentials.
  • Use Copy redacted support bundle to share a result; secrets are redacted by name, and by exact value when 4 bytes or longer.

How this is checked

A failure lab drives the real, checksum-pinned Ferrum Edge 0.9.20 release binary on loopback, the only release it runs; the trusted gateway profile names that release. Every scenario runs with and without a trusted gateway profile, lookalike backend responses must not be blamed on the gateway, and gateway logs serve only as ground truth for the checks. Skipped scenarios are never counted as passes.