Z5.03.2Execution loggingdesignresearch

Without logs, diagnosis is impossible

Aliases: execution log · event log · smart-home observability

What it is

An intelligent environment without logs is a system whose failures can only be waited out: when an automation intermittently misfires, the user can neither reproduce it (no way to know when it recurs) nor query it (nothing was recorded). Diagnosis degenerates into stakeout — it works fine while you're watching, breaks after you leave, and every piece of evidence vanishes with the event.

The execution log is what freezes that transient evidence: when rules fired, what conditions held, whether commands were delivered, whether devices executed them — each link recorded, so failures become traceable. Its relation to the trigger record is single point versus whole chain: the trigger record answers "why this time", the log answers "what has this system actually been doing" — the first serves single-event interrogation, the second serves pattern discovery and fault localisation.

Why it happens

Missing logs are lethal because environmental failures stack three properties. Intermittency: misfires caused by races, lost signals, or condition-edge jitter follow no schedule, and active reproduction is nearly impossible. Delayed discovery: hours to days pass between the failure and the user noticing, by which time the scene has changed. Misattribution: with no machine evidence, users fill the gap with memory and folk models — remembering the automation-switched light as "broken bulb" and the unfired rule as "dead sensor". Wrong attribution leads directly to wrong repairs (replacing devices, deleting innocent rules).

Logging converts this from unobservable to replayable. In engineering tradition this is the old observability proposition — software established "events must be persisted to be diagnosable" decades ago, with audit logs and distributed tracing as mature forms. The smart home's peculiarity is only that event sources are scattered (cloud, hub, device each know a segment), so logs are natively fragmented — the cloud knows the rule fired, the hub knows the command was forwarded, the device knows the action executed; the full chain exists only when the three segments join, and wherever a segment is missing, localisation stops at that breakpoint.

The minimum useful set is three items: rule-firing events (which rule, when, on what matched condition), command-delivery outcomes (delivered / failed / suppressed), and device-execution confirmations (did it act, with what result). Fewer leaves holes in the chain; more runs into diminishing diagnostic returns against steeply rising privacy cost.

Studying it

  • In-situ deployment studies: longitudinal studies of real domestic deployments (stated generically) repeatedly report the same picture — users' explanations of intermittent misfires teem with misattributions, and their troubleshooting repertoire is on-the-spot trial and error. This is the most direct empirical basis for the logging need.
  • The observability tradition: operations and distributed systems bring mature methodology on the retention-to-localisation relationship (log-level design, correlation IDs, sampling strategies), usable as mechanism reference — noting the domestic constraints differ (no dedicated operator, privacy-sensitive).
  • Log-availability experiments: stage an intermittent fault (e.g. occasional non-firing from condition-edge jitter) and compare fault-localisation success and misattribution rates across full-log / partial-log / no-log groups. A direct measurement of logging's value.

One methodological caution: the dependent variable must include the repair action the user then takes — measuring only "did they find the cause" misses the "confidently fixed the wrong thing" class, which is precisely the largest cost of having no logs.

Where it stops holding

  • Logs do not solve real-time problems. They are post-hoc forensics, not pre-emptive protection — they cannot stop a failure, only keep it from getting away with it. Using logs as live monitoring (scanning anomalies and pushing alerts) is a different product shape, with different cost structure and privacy implications.
  • Retention is a privacy burden. A smart-home log is effectively a continuous record of household life (who was home, sleep times, which rooms were occupied) — more sensitive than ordinary software logs. Retention policy, export permissions, and visibility to other household members must treat it as household data; noted here, expanded under shared-space privacy.
  • The log itself must be diagnosable. Ten thousand raw events piled up equal none — an unstructured, unfilterable, time-unaligned log hands the diagnosis cost back to the user. Log readability is a component of diagnostic feasibility, not decoration.

Applying it

  • Land the minimum triple first: firing events, delivery outcomes, execution confirmations, each stamped and carrying a correlation ID (the three records of one execution must chain together).
  • Provide per-device filtering and time alignment in the log view: diagnosing "why didn't the light turn off" should line up that light's firing, delivery, and execution records in one time column — the breakpoint is the fault point.
  • Tier retention: recent detail plus long-term summaries (firing statistics, anomaly counts), balancing diagnostic depth against privacy exposure.
  • How to check: inject three fault classes (non-firing, lost command, failed execution) and measure time and accuracy from "symptom report" to "identifying the faulty link"; one injection per link. With full-chain logs users should localise to the specific link; the no-log group should fail en masse — that gap is the measured value of logging.

Related

  • Same group: Z5.03.1 Users must be able to find out what triggered an action · Z5.03.3 Automation history is the foundation of debugging
  • Nearby: Z7.02 From usability problems to collapse of trust · Z5.02.3 Conflict outcomes must be traceable to specific rules · Z2.05 Sensor drift and error
  • Search terms: execution log · observability · smart home troubleshooting · audit trail

Cards in the same group

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/handbook/Z5.03.2