For the technical audience

Decisions ADR-151 to ADR-160

Every architecture decision record (ADR) behind TelltaleDNS: what we knew, what we chose, and what it costs. This page is built from the specification on every change, so it's always the current record.

ADR-151 Failover drills: a maintenance window with a drop, a federated coverage reportProposedCLUFLTOBSOPSCLU-014 (owner request 2026-10-18).

Context

CLU-014 (owner request 2026-10-18). Routers hand devices two DNS servers (the Pi and the homelab's .112), but a stub resolver uses its first server until it stops answering, so on a healthy network nothing shows whether the second one works for every device; a passive "single-homed" finding would be guesswork. Design: docs/design/failover-drills.md.

Decision

  • A drill is a maintenance window with a drop (reuses OPS-010/ADR-118: readiness off, alerts muted, out of elections and the health level, the window file, forwarding, handover on the primary). For its targets (addresses or names, a group, or everyone) the node discards UDP queries after client identification and before rate limiting, and closes TCP, DoT, DoH and DoQ connections without an answer: the nearest thing to a dead node. Each counts as a new query status drilled.
  • Query path: one relaxed load of the drill's end time (0: none); only during a drill, one ArcSwap load of the target set and a lookup. Never dropped: [clients] infrastructure, loopback, the node's own and other cluster nodes' addresses, and excluded devices (OBS-022).
  • Bounds: 15 to 300 s, default 60; the cap is not configurable (a long drill is an outage). Ends on expiry or DELETE. A restart cancels a drill (unlike maintenance, which resumes).
  • Preconditions (409 drill_refused with the reason): another node ready and answering in the last 5 minutes; no maintenance on the node and no drill anywhere in the cluster in the last 10 minutes; no pinned or baking rollout (CLU-013); health not severe; targets that resolve to a device seen on the node in the last hour (unless everyone). Not a configuration change: allowed under GitOps authority, audited, operator role; agents need the scope ops:drill (not in the defaults) and a reason.
  • Coverage: a per-client seen table on the telemetry thread (baseline, affinity; 4,096 cap, persisted); a per-client window map on every node while any node drills (learned from the heartbeat's new drill_id), frozen 60 s after the end; the drilled node merges the parts (federated read, retried 5 minutes) into a saved report (last 50 kept) with verdicts followed (answered elsewhere after the first drop, by 5 s after the end) / stuck (≥ 3 dropped, no such answer) / quiet / elsewhere, time to failover, and returned vs sticky after 15 minutes.
  • Interfaces: POST/DELETE/GET /api/v1/nodes/{id}/drill (dryRun), GET /api/v1/drills[/{id}], GET /api/v1/clients/affinity; MCP plan_failover_drill, drill_report; the Cluster page's Drill… and Drills list; metrics; annotations drill.started/drill.ended. Never a health reason.

Consequences

  • The first real drill should be on the owner's own laptop for 30 s, then a group, then everyone; never run against the live Pi without the owner's go.
  • Scheduled drills and a REFUSED mode were open questions; the owner said yes to both (below), and both are built.
  • Devices that never queried during the window are quiet: a drill can't tell an idle device from one without DNS.

Amendments at implementation (T15.2, 2026-10-19):

  • Closing connections: a new Response::Close in telltale-net. TCP and DoT close the connection; UDP drops; DoH and DoQ answer nothing but keep the connection, because HTTP/2 and QUIC multiplex other queries on it.
  • "Loopback" is the node itself: 127.0.0.1 and ::1 are never dropped, nor held by FLT-017's analytics hold. Other 127.0.0.0/8 addresses are ordinary clients: the cluster e2e's stub resolvers bind them. Masking's infrastructure list (which has all of 127/8) is used without its loopback entries.
  • Who's in the report: the targets seen on the node in the hour before (the baseline's targets), any device the node dropped, and any device another node answered during the window. A non-target the drilled node answered as usual is left out. A target with 1 or 2 unanswered queries and nothing elsewhere is quiet: too little to tell.
  • The window starts at once: the drilled node calls every peer (drill peer call, 1 s deadline) before it drops anything, and the heartbeat's drill_id is the fallback. A new heartbeat flag drills tells an older peer (missing) from one that recorded nothing.
  • Returned: checked from the drilled node's seen table (to the second) 15 minutes after the end.
  • Seen table size: each entry keeps 7 daily counts for the affinity view, about 70 bytes rather than the design's 40 (under 300 KB at the 4,096 cap).
  • Markers: drill.started and drill.ended are new marker kinds; a drill's maintenance window leaves no maintenance.* markers of its own.
  • Test hooks: TELLTALE_DRILL_GAP_SECS, TELLTALE_DRILL_RETURN_SECS, and TELLTALE_DRILL_RETRY_SECS shorten the 10-minute gap, the 15-minute check, and the 5-minute retry for the cluster e2e. TELLTALE_DRILL_IGNORE_HEALTH passes the health check (shown as ignored in the checks): the e2e's nodes have no working upstream, so their health is severe.
  • CLI: telltale ctl drill start|stop|report over the API (the design's local telltale drill subcommands are the same calls; only ctl is built).

Owner decisions (2026-10-19, the open questions):

  • Scheduled drills: yes. [drill] schedule = "monthly" with nodes (the nodes that drill themselves), the targets (group or clients, else everyone), for_secs (default 30), hour (default 3) and tz, and mode. The day is in the first week, picked from the node's label and the month (FNV-1a), so it moves from month to month; the node tries once a minute through the hour, skips the month if a precondition fails all hour, and never drills within 7 days of another drill. The report goes out through a new one-off alert kind drill_report (any drill, scheduled or not, reports ended in the last 2 hours) to whatever destinations the rule names, email included. Shared configuration, so nodes says where it runs.
  • REFUSED mode: yes. mode: "refused" (API, form, MCP, ctl --refused, [drill] mode): the node answers REFUSED with extended error 14 (Not Ready, "failover drill") at once, still counted as drilled. Drop stays the default; the preview says the REFUSED drill is faster but less realistic.
  • The live Pi: yes, laptop first for 30 s, then a group, then everyone.

After the first live drills (2026-10-19, owner go):

  • What ran: the laptop was skipped: on Wi-Fi its only DNS server is the homelab's 192.168.5.112, so the Pi never sees it (only the agent's own test lookups). The IOT group for 30 s; then everyone except the homelab server 192.168.5.2, for 30 s. The homelab server was left out because its only DNS server is the Pi and k3s's CoreDNS forwards through it, so dropping it would cut external DNS for the host and its pods.
  • Two verdict rules were too loose, and are tightened (owner yes): an answer elsewhere counts as following only by 5 s after the end (FOLLOW_GRACE_MS): after that the drilled node answers again, so it proves nothing (the IOT drill had a "48.6 s failover" in a 30 s drill). And a target with nothing dropped is quiet, not followed, even when it asked another node (the second drill dropped nothing at all, yet said 5 followed and 100 % coverage). A device that asked the other node both before and after its first drop still follows, with no time. The windows still record 60 s after the end.
  • A drill on a resolver pod (owner go): the pod left the EndpointSlice about 14 s after the start (balancerSwitchMs 12,652; 3 of the first 13 probes on .112 timed out, none after). Two changes (owner yes): the chart's readiness probe is every 2 s with 2 failures (about 4 s, for maintenance and real failures too), and the primary relays: a node reaches only the peers it has a stream to (a resolver pod only the primary; the Pi no resolver pod), so the report had missed every node but the drilled one and the primary, on the Pi's drills too. A new peer call relay on the primary passes a window notice or a read (part, list, report, active, seen) on to its peers that the caller didn't reach, and answers with theirs; never a start or end, never a relay. A node that learns of a drill this way has no heartbeat from the drilled node, so its window runs to the drill's end (the cutoff comes from the drilled node's own end), and it holds the one-drill-at-a-time rule until then plus the gap. An older primary refuses the call: the report is as before.

Requirements CLU-013 CLU-014 FLT-017 OBS-022 OPS-010

Builds on ADR-118

Referenced by ADR-136

ADR-152 Internal names: their own top list, not hiddenProposedFLTOBSOBS-037.

Context

OBS-037. Once the kubelet points every pod at TelltaleDNS (FLT-017), the dashboard's top lists fill with the cluster's own names: Services asked constantly, and a pod's ndots: 5 search list turns one lookup of api.github.com into three NXDOMAINs under cluster.local first. Reverse lookups of private addresses are the same kind of noise on any network. The only way to hide names was [exclusions] (OBS-022), which also drops them from the query log and exports, and so from the workload view's point. The owner chose a separate list, with private reverse lookups included (2026-10-19).

Decision

  • An internal name is a reverse name in the RFC 6303 private and local ranges (the same as [special] private_ptr_nxdomain), a name at or under cluster.local when [kubernetes] enabled, or one under a suffix in [telemetry] internal_names (at most 100; node-local like the rest of [telemetry], so a replica one version behind never sees it).
  • The aggregator counts an internal name in the hour's internal Space-Saving list (and the group's) instead of domains and nxdomain. The blocked list, the bad-answer lists, a device's own top domains, the time series, the query log, the live view, exports, and /metrics are unchanged: this sorts, it hides nothing.
  • The check runs on the aggregator thread before privacy hashes the name (Aggregates::record_private): a few suffix lookups, no allocation. Top lists rebuilt from a privacy-hashed query log after a restart can't tell and count those names as domains.
  • GET /api/v1/stats/top?kind=internal (with group; not with client), MCP top_items kind: internal, hour_top kind internal. A peer one version behind refuses the kind and is listed in missingNodes.
  • The dashboard's Top domains card switches between Internet (the default) and Internal; the switch asks for one list at a time.

Consequences

The domains and NXDOMAIN lists change meaning for existing installs (less noise); history from before keeps both kinds in domains. A cluster domain other than cluster.local needs [telemetry] internal_names on each node: the chart doesn't write it, so a new chart still works with the previous image.

Requirements FLT-017 OBS-022 OBS-037

Referenced by ADR-186

ADR-153 Stub zones: a recursive upstream with per-zone hints, a health check its servers answerAcceptedDNSDNS-022 (community request 2026-11-14).

Context

DNS-022 (community request 2026-11-14). Conditional forwarding (DNS-017) asks the configured servers with RD=1 and returns their reply as is. A zone's own authoritative-only servers (BIND with recursion no, NSD, Knot, PowerDNS, internal AD-integrated or departmental masters) answer only their zones: for a delegated sub-domain they return a referral, which reaches the client as an empty NOERROR, and they REFUSE the active health check's . NS, so the upstream is benched and upstream_down flaps while every real lookup works. BIND solves this with stub zones; Unbound with stub-zone. The iterative resolver (ADR-074) already follows referrals with bailiwick and glue rules but always starts at the root, and the spec's health_check_name (spec/04 §5) was never built.

Decision

  • A stub zone is a recursive:// upstream with [upstream.recursive] stub_zone and stub_servers (IP addresses, port 53). It sits in a group and is reached through a [[route]] like any upstream, so groups, strategies, breakers, views, the cache, and the API's forward model need nothing new.
  • The resolver's start() picks, in order: the deepest cached cut strictly below the stub zone (a delegation its servers gave), else the stub's servers, else the root. A cached cut at or above the stub zone is the outside (public) view and never wins: the configured servers are used whatever the public delegation says (split horizon). A DS for the stub apex still goes to the parent.
  • The servers are used as listed (BIND static-stub, Unbound's default stub-prime: no): the zone's NS set isn't fetched from them. Conservative: a NS set listing public or unreachable addresses can't take over, and nothing is learned that the operator didn't write. Priming the NS set (BIND type stub) is deferred until asked for.
  • Stub names never trigger root priming, so a network with no route to the root still answers them at once. Names an answer leads outside the zone (a CNAME target, an out-of-zone server name) are resolved from the root by the same resolver, as recursive:// does; the root never sees the stub zone's own names.
  • Health: Upstream::health_check() probes a stub upstream for liveness only: its servers are asked the zone's SOA directly and any reply except SERVFAIL counts as up, REFUSED included (servers that host only the zones below a stub apex, such as per-/24 reverse zones under a /16 stub, refuse the apex itself; a server that answers SERVFAIL for its own zone is failing, so it doesn't count). Upstream::stub_liveness() is the one rule: the draft-upstream check POST /checks/upstream applies it too. Other upstreams ask Upstream::health_question() (. NS). Client lookups keep their usual accounting: a failed iterative resolution is a failed exchange, so serve-stale still applies to it.
  • Managed forwards (ADR-040) take stub: true: the entry becomes one upstream forward:<domain>#stub (url recursive://, the stub fields) in the group forward:<domain>, with the same route and NTA as a forward. Servers must be IP addresses (udp:// + address is accepted); anything else is refused with a hint. GET /forwards reports stub and the addresses. MCP plan_forward_domain takes stub; the UI's "Send a domain to another server" has a checkbox, named by what it means ("these servers only know this domain").

Consequences

Authoritative-only servers become usable as targets and stop flapping, and delegated sub-domains resolve. Ports other than 53, TSIG, and NS priming aren't supported. A stub zone's out-of-zone CNAME targets are resolved from the root rather than through the default group, which bypasses an encrypted forwarder for those names (documented). Plain forwards still health-check with . NS; making their check ask the route's apex is a separate change. A node one version behind refuses a configuration with the new keys (deny_unknown_fields), as with any new key: in a cluster, upgrade replicas first.

Requirements DNS-017 DNS-022

Builds on ADR-040 ADR-074

ADR-154 A Git-managed node takes over from an emergency primary through the electionAcceptedGitHub issue #3 (v0.6.0; a Kubernetes controller that is Git-managed plus native replicas, automatic failover, config_authority = gitops).

Context

GitHub issue #3 (v0.6.0; a Kubernetes controller that is Git-managed plus native replicas, automatic failover, config_authority = gitops). While the controller is down a replica is elected and becomes an emergency primary (ADR-056, ADR-048): it coordinates on the last version and publishes nothing new. When the controller came back nothing moved the role: the takeover loop (ADR-048, review 05 q2) required promote_plan(..).is_ok(), and promote_plan refuses under automatic failover on purpose (ADR-056: a manual promote would bypass the votes). So the documented "takes over by itself after a minute" never happened with failover = auto, and a GitOps cluster stayed on an emergency primary that can't publish until someone ran a command that was also refused. The owner first accepted letting the takeover bypass that refusal (2026-11-14), then changed course the same day: a bare bypass leaves a primary that can't publish, because under auto a primary writes only while its election lease holds (Cluster::may_publish, ADR-056) and promote creates no election phase; the voters would also keep the lease they granted to the emergency primary.

Decision

under automatic failover the takeover is a handover plus an election, so ADR-056's rules (one vote per epoch, voter-granted leases, pre-vote, fencing) decide who is primary, as for any other failover.

  • The ask. A node that can stand (not the primary, eligible, not a witness, holding the cluster key) and is Git-managed (config_source = "gitops") sends the emergency primary the new elect.handover RPC once it has seen that primary up for the same 60 s as before. The asker is the stream's certificate, as for votes.
  • The answer. The emergency primary agrees only if automatic failover runs, the authority is gitops, it is an emergency primary, and the asker is in the signed registry as eligible and not a witness, is Git-managed (from its Hello, ADR-049), and is up. Otherwise it says why. Agreeing starts the ADR-118 handover without a maintenance window: it stops renewing its lease and keeps serving DNS, stays ready, and keeps its alerts; it follows the new primary after the step-down. The ADR-118 give-up applies: no new primary within 60 s and it renews again (handover_failed). The asker waits 120 s before asking again.
  • The hold-back. Under the gitops authority a node that isn't Git-managed doesn't stand while an eligible, Git-managed node is up (Elector::standing, the ADR-118 switch; it still votes). So when the controller is back, the election goes to it, and when the controller is down for good the replicas stand as before and one becomes the emergency primary. The hold-back is bounded: with no primary up for 60 s it ends and the node stands (an emergency primary beats none, e.g. when the Git-managed node is up but can't win).
  • Manual failover, and fewer than three voters, are unchanged: the takeover is promote (ADR-048), as is a person's promotion.
  • Wire and state. One new RPC kind on the existing stream; no new frame fields, nothing persisted. A node one version behind answers an unknown kind with an error, so the asker logs it and tries again later; the cluster is no worse off than before.
  • Trust. Only a cluster member over mTLS can ask, and the registry (signed by the CA) decides whether it counts. A node that is eligible already holds the cluster key, so the ask widens nothing; the worst a misbehaving eligible node can do is make an emergency primary stop renewing for up to 60 s, which is an election and a re-election, and DNS never waits for it.

Verification

a simulation test (clu_005_a_git_node_is_elected_when_the_emergency_primary_hands_over) with one emergency primary, one Git-managed node and one that holds back: the Git-managed node is elected within one lease window, never while the old primary can write, the other node votes and never asks, and the old primary steps down. The randomized partition simulator already moves nodes in and out of standing (ADR-118), which is the switch the hold-back uses. Unit tests cover when a node defers, how long, when the primary agrees, and when a node can stand to take over. Not tested: a live cluster of Git-managed and native nodes (the failover drill in deploy/cluster/ doesn't set the GitOps authority).

Consequences

with failover = auto and the gitops authority, a returning Git-managed node becomes primary again by itself about a minute after it is seen, plus an election (15 to 25 s of no config writes, DNS unaffected). If it can't win (no cluster key yet), the emergency primary keeps the role and is asked again every two minutes. A node that isn't Git-managed waits up to a minute longer to stand when the primary is lost while a Git-managed node is up. An emergency primary can still keep a cluster coordinated through a long Git-managed outage (certificate renewal waits for a primary), which manual doesn't do; the docs say so and let the owner of the cluster choose.

Amends

ADR-048 (the takeover under auto) and ADR-056 ("under a gitops authority an elected node that isn't Git-managed becomes an emergency primary": now only while no eligible, Git-managed node is up, or after the 60 s bound). Accepted by the owner on 2026-11-15.

Builds on ADR-048 ADR-049 ADR-056 ADR-118

Referenced by ADR-178

ADR-155 Removing a node: a registry change plus a removed list that travels with every versionAcceptedAGTGitHub issue #5 (v0.6.0).

Context

GitHub issue #5 (v0.6.0). spec/07 lists DELETE /cluster/nodes/{id}, but it was never built, and the registry (the primary's nodes.json) only dropped ephemeral members. A Pi replica rejoined from scratch got a new node ID and left its old record behind as a down, eligible voter: the Cluster page listed it (even as primary, its last state from a period as emergency primary), failover.voters counted it (four voters, three reachable), and TelltaleDNSClusterPeerDown fired for it for good. Two facts make removal more than deleting a row. A node removed while it still runs reconnects with its certificate (valid for up to 90 days), and record_member re-adds an unknown member as an ephemeral one. And an eligible node holds a copy of the cluster key (ADR-051), which no registry change can recall.

Decision

  • The operation: DELETE /api/v1/cluster/nodes/{id} (admin; agents cluster:admin), telltale ctl remove-node <id> and a Remove action on the Cluster page. The ID is the Cluster page's node ID, not a site or pod name (a destructive operation by a name that can match several nodes is a hazard). It runs on the primary; a replica's request goes there over the cluster channel (cluster.remove) and is audited as cluster.node.remove with the user and the entry node. It is allowed under a GitOps authority: membership isn't configuration (as maintenance, ADR-118). ?dryRun=true runs every check and says what would happen (AGT-002).
  • Refused: the primary (409 node_is_primary: promote another node first), an ID nobody has (404 node_unknown), a node that is up unless force (409 node_is_up), and, under automatic failover, a primary without its lease (503, like any publish).
  • What it does: the ID goes onto the removed list first, then the record leaves the registry, and the member and stream entries are dropped. A crash between the two leaves a refused node that is still listed, and removing it again finishes. Voters are the registry's eligible nodes and witnesses, so the removed node stops voting at once.
  • The removed list (removed.json, at most 512 IDs, oldest dropped first: node certificates last 90 days) travels in the signed manifest as a new optional field, omitted when empty and ignored by N−1. Every node refuses a stream from a listed ID: at its Hello, and for a stream that was open before, at its next frame. Replicas adopt it with the registry (an empty list from an older primary leaves theirs alone), and a promoted node keeps the one it has. So removal holds for a node that is still running, on every upgraded node, for as long as its certificate would have lasted; it can't renew without a stream.
  • The cluster key is not recalled. The answer says when the node was eligible (heldClusterKey, and a note) and points at telltale cluster rotate-ca (T5.4c) for a node that is lost or can't be trusted. Removal doesn't rotate the CA: that is a multi-step change on every node, and for the usual case (a record whose machine is gone) there is nothing to protect. Rotating on every removal of an eligible node was rejected as heavy and surprising; a certificate revocation list was rejected because the removed list is the same thing keyed by what the stream authenticates (the node ID).
  • Failover: removing a voter can leave fewer than three, which turns automatic failover into manual (ADR-056). The answer and the dry run say so (automaticFailoverAfter, a note); it isn't refused.
  • Agents: not an MCP tool, like cluster_promote (spec/13): it needs cluster:admin and human approval. The REST route with its dry run is the agent surface.

Consequences

a node that rejoins needs a fresh token and an empty cluster directory (a new ID), as before. A removed node that still runs keeps dialing and being refused; the primary's event list says so (disconnected: this node was removed from the cluster), and its own log says the stream closed. A node one version behind doesn't know the list and accepts the removed node until it is upgraded: upgrade replicas first, as always. IDs are random from the node's key and never reused, so nothing needs undoing. Not covered: a removed node that holds the cluster key can still mint certificates for itself until the CA is rotated, as the answer says. Accepted by the owner on 2026-11-15, with the choices above: removal by ID only through telltale ctl remove-node (not telltale cluster remove), force for a node that is up, no CA rotation by removal, no MCP tool, and the Cluster view listing registry members that haven't connected since the node started.

Requirements AGT-002

Builds on ADR-051 ADR-056 ADR-118

Referenced by ADR-221

ADR-156 Support package: redaction that fails closed, keyed pseudonyms that keep structure, and a small log of the process's ownAcceptedOPSOPS-011 (owner request 2026-11-15, GitHub issue #50).

Context

OPS-011 (owner request 2026-11-15, GitHub issue #50). A person who hits a problem hand-copies configuration, logs, and cluster state and hand-redacts each, so they send too little to help or too much to be comfortable. Owner decisions: the default level is strict and fuller logs and the query-log sample are opt-in; the query-log sample is offered; it is not an MCP tool for now. What the code shows: the process writes its log to stderr only (TELLTALE_LOG, default INFO) and keeps none; the systemd unit runs as telltale without the journal group, container logs are outside the container, and the Helm chart's root filesystem is read-only, so no platform lets it read its own log back, while data_dir is writable everywhere. Secrets sit in the configuration two ways: *_file paths (credentials, passwords, tokens, the bootstrap secret) and inline values (an OIDC client_secret, DoH extra headers). On the Pi the INFO log was 232 lines, about 21 KB, in 24 hours (restarts included).

Decision

  • The package. telltale-support-<node>-<UTC time>.tar.gz (GitHub takes it as an attachment), built in memory and capped at 20 MiB (the largest files are truncated first, and the manifest says so). It uses our own ustar writer, miniz_oxide's deflate, and a small CRC-32: no new dependency. MANIFEST.json and README.txt (what it is, the level, how to read it) at the root; node/, config/, cluster/, health/, metrics/, stats/, logs/, and queries/ (only when asked).
  • Collectors. Each section is a collector with a 5 s deadline and a byte cap; a slow or failing one shows as missing in the manifest instead of failing the package; the whole run is capped at 30 s. They read the running state through the readers the API uses, from a low-priority thread, never from the query path. No collector can reach the user, token, session, TOTP, or key stores: they take typed views only.
  • Secrets are removed by classification and fail closed. Every configuration field has a class (plain, address, name, url, path, secret) in one table keyed by schema path. The configuration section is built by walking the config's JSON Schema (schemars, already a dependency) with the value. A field with no class is treated as secret, dropped, and listed in the manifest as unclassified, and a test walks the generated schema and fails when any property has no class, so a new field can't ship unclassified. secret fields are removed at every level, none included; a *_file field keeps its path but never the file's content; request headers and any key that looks like a credential are dropped as a second net.
  • Free text (log lines, error strings, the event timeline, the query sample) goes through a redactor in two passes. First the known values from the configuration and the cluster registry (every name, zone, client, group, host name, URL host, address, node and cluster name, e-mail address, and every secret held inline) are replaced exactly, longest match first, with regex-automata (already a dependency). Then hand-written scanners catch the shapes: IPv4 and IPv6, MAC, e-mail, URLs, host-name-like tokens, home paths, PEM blocks, and long hex or base64 runs (24 or more characters, mixed) become <token>. This is best effort, and the package says so.
  • Pseudonyms. A random 256-bit key per package, kept in memory (written, with the map, only to the --keep-map file). Names become device-N, group-N, node-N, pod-N, ns-N, host-N, zone-N.example, user-N@example.invalid, numbered by first encounter in a fixed traversal order, so the same input is the same pseudonym within a package; public domain names keep their last label (site-N.com). Addresses: loopback, unspecified, link-local, multicast, and a short list of well-known public resolvers stay as they are; the rest are permuted prefix-preservingly with a keyed BLAKE3 function (Crypto-PAn style), so addresses that share a /24 (or /64) still share one, and a private address (RFC 1918, ULA, CGNAT) keeps the bits that make it private. A MAC keeps its OUI (the make, not a person) and has the rest permuted.
  • Levels. strict (default): the pseudonyms above, no query names anywhere (counts only), no local zone contents, no free text, WARN and ERROR log lines only. standard: the same, plus INFO log lines, top lists with pseudonymized names, and the query sample (--query-sample N, up to 1,000 rows, never at strict). none: real values (secrets still removed). --reveal NAME keeps one name readable. The manifest records the level, and per file the collector, size, truncation, and the redactions per category (counts, never values).
  • The log. A tracing layer (SupportLog, in the telltale crate) takes events at INFO and above whatever TELLTALE_LOG says into a ring of 2,000 lines and, through a bounded channel (1,024) to a writer thread, into two files under <data_dir>/logs/ of at most 1 MiB each (rotated when full; directory 0750, files 0640). A full channel drops and counts (the manifest reports the count); a failing write turns the files off and logs it once; with a read-only data directory only the ring remains. The files are on by default (owner, 2026-11-15); [support] persist_logs = false keeps only the ring. The lines are not redacted on disk (they carry client addresses): the redactor runs when a package is made, and the documentation says where they are.
  • Surfaces. telltale support-package [--level strict|standard|none] [--reveal NAME]... [--query-sample N] [--keep-map FILE] [--list] [-o FILE]. POST /api/v1/system/support-package (admin; the options as the body; ?dryRun=true returns the manifest only; the answer is the archive as an attachment; audited as support.package with the level, never the content). On the System page a section with the three levels explained, a preview of the manifest, and the download. The pseudonym map is a second, short-lived download (owner, 2026-11-15): with keepMap: true the answer carries the package's ID, and GET /api/v1/system/support-package/{id}/map (admin) returns it as plain text, one pseudonym<TAB>original pair per line. The node holds the map in memory only, never writes it to disk, removes it after the first download or after 10 minutes, and keeps one map at a time (a new package replaces it); the page tells the person it holds the real names and isn't for attaching to the issue; the download is audited like the package. The CLI's --keep-map FILE writes it to a file the person chooses. No agent scope and no MCP tool.
  • Cluster (a later phase). --cluster asks each node over the cluster channel (support.collect; the entry node sends its key over the mTLS stream and each node redacts before answering), so unredacted data never leaves the node it is on.

Alternatives rejected

pattern-only redaction (fails open: a secret in a shape nobody listed leaks); an unredacted dump to review by hand (what people do now); uploading to a server (no infrastructure, and the privacy question); tar and flate2 crates (a dependency for about 100 lines); reading the journal or the container log (not readable); random address pseudonyms (they lose the subnet structure triage needs); encrypting to a maintainer key (key custody; possible later).

Consequences

a small amount of disk writing for the log files (about 21 KB a day on the Pi at INFO, measured 2026-11-15; none with persist_logs = false); a classification table to keep current, enforced by a test; none still holds real names, so the page says so; free-text redaction is a best effort, not a guarantee, and the person is told to look the package over; the log files hold client addresses unredacted, mode 0640, which the documentation states. Verification (planned): a fixture with every kind of secret planted, scanned for in raw, decompressed, base64, and URL-encoded forms at each level; the classification-completeness test; a fuzz target for the redactor (never panics, planted values never survive); determinism (same key and input, same bytes); a prefix-preservation property test for addresses; the size cap and truncation; the manifest's counts against a recount; log layer tests (ring bound, rotation, lines surviving a restart, a full channel dropping instead of blocking); make bench-smoke unchanged, since nothing runs on the query path. Decided by the owner (2026-11-15): the UI offers the name map as a short-lived second download; the log files default to on. Accepted 2026-11-16: the owner asked for issue #50 to be built ("address issue 38 and issue 50") after being told that would be read as accepting this ADR as written; the decisions above stand. Built in phases: the log layer first, then the archive, redaction and pseudonyms, then the collectors and the three surfaces; --cluster stays a later phase.

Requirements OPS-011

Referenced by ADR-163 ADR-172

ADR-157 A calmer dashboard, with the previous one an address awayAcceptedDNSOBSowner request 2026-11-15 after a user called the dashboard graphs "a tad cluttered" and liked Technitium's smoothed graphs with the exact number on hover, and the wide tables at the bottom on a small screen.

Context

owner request 2026-11-15 after a user called the dashboard graphs "a tad cluttered" and liked Technitium's smoothed graphs with the exact number on hover, and the wide tables at the bottom on a small screen. The shipped page was 2,577 px tall on a phone: six tiles with rings, sparklines and change pills, a legend that wrapped into a table, a donut, and three full-width lists. A read-only look at the live query logs (2026-11-16) showed why the lists widen: on the homelab primary 358 distinct names over 30 characters carry 45k of the 61k queries of a day (Kubernetes services, pods' search-list expansions of one real name, 64-hex labels), and none on the Pi. Ten local variants were built on the real data and compared at desktop and phone width; the owner chose "Calm". Decision (proposed):

  • Layout. The six tiles become a row of plain numbers (queries, blocked %, cache hits, upstream p90, active clients, each with its change against the previous period) and a line for NXDOMAIN and SERVFAIL; the chart is the one card; the three lists sit open on the page. Advanced adds, without adding cards: the service level (OBS-016) as a strip under the numbers; the chart's other views, Groups and Upstream, beside Totals and Status; where time goes (OBS-030) and the upstreams as plain sections; devices by type (OBS-025) as a line under the clients; the cache number split into fresh and refreshed (DNS-007).
  • The chart. Smoothed for the eye, exact for the reader: the range is cut into at most one bucket per 6 px (120 at most), each bucket's counts are the exact sums for its interval, drawn through as a monotone curve (it never overshoots); the newest, still-filling bucket is left off so the line doesn't dip. The legend is a row of range totals; hovering shows the interval and each series' exact value (a compact tooltip on a short chart); charts can share a cursor. The Table view (spec/07 §3) and the change markers (OBS-033) stay. The value axis uses compact numbers (10K).
  • The lists. Every row is one line, and what doesn't fit is a tap away: the count opens the full name with a Copy button and, where the display differs from the name, one sentence saying how. The display reads the name (heuristics on the name alone): service.namespace.svc.cluster.local is the service with its namespace as a tag; a pod's search-list expansions of one real name (<real>.<ns>.svc.cluster.local, <real>.svc.cluster.local, <real>.cluster.local) are one row tagged search suffix ×N whose detail lists the variants and whose link searches the real name; hash and UUID labels are shortened; in-addr.arpa and ip6.arpa names show as the address; a pod's own name shows as its workload's. A name that is still too long gives up its subdomain first, a single long label keeps its end, and a tag gives way before the name. The lists ask the API for 25 and show 10 after merging.
  • Loading. The same calls as before, except the Advanced-only measures (latency by path and stage, the service level) are fetched only in the Advanced view, independently of the rest and one fetch at a time: the service level took about 12 s on a slow node, and the page must not wait for it.
  • The previous dashboard stays, unchanged, as DashboardLegacy: #/?view=legacy shows it and remembers the choice in this browser (localStorage, dashboard.view); #/?view=new goes back. The only link to it is a quiet "Switch to the new dashboard" on the old page itself. It is not documented for users yet and is meant to be removed once nobody asks for it (the owner decides when).
  • No API change.

Alternatives rejected

the other nine variants (Sentence, Lens, Share, Multiples, Console, Sections, Rail, Hero, Glance: kept in the lab branch for reference); a visible toggle between two dashboards (it publicises the old one and doubles what we maintain); wrapping long names onto two lines or scrolling the lists sideways (rows of different heights; a scroll bar inside a card on a phone); showing the full name in a tooltip only (a phone has no hover); normalising cluster search suffixes in the server's top lists (they waste three of the top-100 slots per real name; a data-quality improvement for a later ADR); the per-device status bar of issue #30 (it waits for the reporter's backend change, and the row is designed to take a thin bar under the name).

Consequences

a UI-only change (bundle 229.8 KiB gzipped, budget 400); about 600 lines of the old page stay until it is removed; the name rules are heuristics, so a namespace named like a top-level domain (io, dev) reads as part of the name, and the full name is always one tap away; the README and site screenshots are regenerated; the e2e suite is updated to the new structure and gains a test for the old page's address.

Verification

the e2e suite (the dashboard, service level, cache tile, groups, device naming, change markers, internal names, and the legacy address); npm run check clean; the size budget; no sideways scroll at 360 px; the demo network and the live cluster's name shapes looked at.

Requirements DNS-007 OBS-016 OBS-025 OBS-030 OBS-033

ADR-158 The Clients page's list is the last hour, not the clock hourAcceptedAGTThe Clients page's first tab, Seen this hour, read /stats/top?kind=clients, whose Space-Saving list starts again on the clock hour.

Context

The Clients page's first tab, Seen this hour, read /stats/top?kind=clients, whose Space-Saving list starts again on the clock hour. A minute past the hour it held a minute of clients, and the label didn't say so: the owner found "seen this hour" meaningless and asked for "last hour" (2026-11-15). "Last hour" over the clock-hour list would have been wrong in the same way.

Decision

  • The aggregator keeps per client its queries in 5-minute slots over the last 13 (telltale-telemetry::last_hour): the slot in progress and the 12 before it, so the window always holds the full last hour (60–65 minutes) and a device seen 59 minutes ago is never left out. Updated on the telemetry thread with the other analytics (one hash update per query), never on the query path. At most 4,096 clients; a client leaves once its newest slot leaves the window, checked once per slot, and the table shrinks when a burst of clients has aged out.
  • A live query a whole window older than the newest means the clock was set back: what was counted is dated in the future, so it is dropped and counting starts again (otherwise every new query would be ignored until the clock caught up). Not saved: after a restart the query-log replay that rebuilds the hourly lists (T6.16) refills it, through a path that never moves the window back.
  • GET /api/v1/stats/top?kind=clients&hour=rolling reads it (a new TopHour for /stats/top; /stats/latency keeps Hour). Counts are exact (errorBound 0). hour=rolling with another kind is a 400. With group, the clients whose settings come from that group (their first group), so a group-restricted agent (AGT-004 adds its group) reads its own devices. MCP top_items takes hour: rolling.
  • In a cluster every node sends all its clients (not just its top limit), so the merged counts stay exact; the list is cut afterwards. A peer one version behind doesn't know the read and is listed in missingNodes, and the Clients page says which nodes are left out.
  • The tab is Last hour (heading "Seen in the last hour"); its id stays seen, so #/clients?tab=seen links keep working. The Traffic map's hour picker says previous hour (not "last hour") for the previous clock hour, so "last hour" means one thing in the UI.

Consequences

at the 4,096-client cap about 0.65 MB (80 bytes per client in a table of 8,192 buckets), given back as they age out; a home network's 50 devices take a few KB. In a large cluster each page load moves every node's client list (up to 4,096 rows each). This is a clients-only window: a rolling hour for the other top lists would need a Space-Saving sketch per slot (13 times their memory), so they stay per clock hour, as do the dashboard's active clients and a group's device count, which say "this hour".

Requirements AGT-004

ADR-159 Top clients split by status: a payload on the Space-Saving entryAcceptedOBSOBS-004 (community request 2026-11-15).

Context

OBS-004 (community request 2026-11-15). The dashboard's Top clients bar shows how many queries a device made, not what happened to them: a TV in second place could be mostly blocked telemetry or mostly cache hits, and finding out means a query-log search per device. The status chart already colours blocked, cached, and forwarded queries for the whole network.

Decision

  • SpaceSaving<K, T = ()> carries a payload per entry. offer_with updates it; an entry that replaces the minimum starts a fresh T::default(), so the payload covers the count - error occurrences since the key entered the list. Every other list keeps T = () (zero-sized, no change in memory or work).
  • The hour's client list and each group's client list carry ClientStatus { blocked, cached, forwarded } (three u64; 24 KB per hour for 1,000 clients). Cached takes in stale and refreshed, as the dashboard's status chart does. Other statuses aren't counted: they're the rest of count.
  • TopItem.byStatus (kind=clients, with or without group); absent for other kinds. Federated reads add the splits per key; a peer one version behind sends none, and its queries stay in count only.
  • Each closed hour's split is stored in hour_top as three more kinds, clients_blocked, clients_cached, and clients_forwarded, keyed like clients (its 100 kept clients; zero counts skipped; none at privacy level 2 and above, like clients), so a read over stored hours can add them per client. Today's top-list reads use the current or previous hour from memory; the stored rows are for range reads.
  • The dashboard draws a top client's bar as segments in the status colours (--s-blocked, --s-cached, --s-forwarded, --s-other for the rest), with a legend and the numbers on hover.

Consequences

Up to 300 more hour_top rows an hour, usually far fewer (most clients have no blocked queries). One more field update on the aggregator thread per query (no hot-path change: workers only emit events). The hours rebuilt from the query log at start (privacy level 0) get the split too, since the replay goes through the same path. Grey can include the Space-Saving error bound, which on networks under 1,000 devices is zero.

Requirements OBS-004

ADR-160 Top lists and active clients follow the dashboard's time range, by whole hoursAcceptedOBSOBS-004 (community request 2026-11-15).

Context

OBS-004 (community request 2026-11-15). The dashboard's range picker (15 min to 30 days) changes the charts and totals, but Top domains, Top blocked, Top clients, and the Active clients tile always showed the current clock hour, so they emptied every time the hour turned and never matched the range above them. Each closed hour's top lists are already stored in hour_top for 400 days.

Decision

  • GET /stats/top takes from (and to), parsed like the summary's. The window is every hour it overlaps, counted whole: the stored hours from hour_top (top_range) plus the current hour (and the previous one until it's stored) from memory, summed per key, counts and error bounds alike, reading twice the limit (at least 20) from each source, as the SLO attribution lists do (ADR-127). Hour granularity is said in the UI ("since 14:00") rather than hidden.
  • from doesn't combine with hour, client (per-device domains live in memory only), or group (groups' lists aren't stored): 400 with a hint. The dashboard sends from unless a group is picked, and then says "this hour".
  • Summary.activeClients is the length of the same list over the summary's range (limit 1000), so the tile and its change follow the range. Stored hours hold their busiest 100 clients, so past the last two hours it undercounts on networks with more than 100 devices an hour (documented).
  • Federated: a TopRange read; each node sums its own hours and the lists merge by key (OBS-012). A peer one version behind doesn't know the read and is listed in missingNodes.
  • MCP top_items takes from and to.

Consequences

One SQL aggregate over at most 720 hours × 100 rows per list and dashboard poll (three lists, plus two for the summary and its comparison). The meaning of activeClients changes from "this hour" to "the range's hours"; a client that wants this hour asks with from=-1s. Names that never reached an hour's top 100 don't add up across hours.

Requirements OBS-004 OBS-012

Builds on ADR-127