Systems and executionIntermediate24 min read

More alerts do not mean better supervision of your robots

Turn robot logs and metrics into useful alerts. Design evidence, ownership, grouping and review with worked examples of freshness, delivery and missed incidents.

One illuminated amber beacon among several unlit blue glass beacons in a quiet interior
Conceptual photograph: a useful signal earns attention without making every observation urgent.

Two hundred messages and one unanswered question

Twenty research robots share a price feed. It stops updating, and each robot sends a warning every minute for ten minutes. The operator receives two hundred messages. Nothing in that volume explains whether the feed is genuinely stale, whether the market is expected to be open, which decisions used the old observation or who is checking the problem. The inbox records persistence, but the response is still undefined.

This is an invented example of a supervision problem, not an incident at TradeAndRoll. It captures a common design temptation: treat more notifications as more control. An alert is a request for attention with a purpose. If the recipient cannot identify the condition, inspect its evidence and take an appropriate next step, the message has moved information without creating a workable response.

The goal is not silence. A quiet system can be healthy, disconnected or incapable of reporting its own failure. The goal is a clear relationship between observations, conditions worth investigating and people who can investigate them. That relationship matters when studying a robot in historical replay, testing it in a demo environment or planning the supervision required for any later independent use.

We will build a small alert design from the shared-feed example. All counts, timings and thresholds below are hypothetical. They illustrate how to reason about monitoring, not universal settings for a broker or permission to automate financial decisions. The useful deliverable is an alert specification you can explain and test before depending on it.

Decide what question the notification should answer

A log entry preserves a particular event. A metric summarizes observations over a stated interval. A dashboard makes several measurements visible. An alert requests a response because a condition has been met. These objects can use the same underlying records without serving the same purpose. Sending every log entry to a phone does not turn the log into an effective supervision policy.

Start each alert with a sentence describing the uncertainty it should reduce. For example: the latest observation used by this research process may be older than the process permits. That is more useful than feed warning, because it identifies the relationship between data age and intended use. The operator can then inspect timestamps and the relevant rule instead of guessing what a generic label means.

Google’s SRE chapter on monitoring distinguishes symptoms from causes and discusses keeping human-facing alerts actionable. Applied here, a stale observation is a symptom; a network interruption is one possible explanation. The notification should not declare a cause that the evidence has not established. Our robot examples and numerical exercises are independent educational applications of that distinction.

Name the observed condition before naming a suspected cause. A process can receive old data through a healthy connection, or lose its connection while retaining a still-valid cached observation. If the message simply announces network failure, the operator may investigate the wrong layer while the actual question—what data informed the decision—remains unanswered.

Write the response before choosing the threshold

Suppose the proposed alert says that the data used by a demo research process are older than its documented maximum age. What should the recipient do? A bounded response might be to inspect the last source timestamp, compare it with the local receipt timestamp, check the expected market calendar and classify affected research observations. The alert can link to those records without instructing any trading action.

This response determines what evidence the alert needs. It also reveals whether interruption is justified. If the next useful action cannot occur until a scheduled data review, an immediate page may add little. If an active experiment is about to produce a misleading report, timely attention may matter. Urgency should follow the consequence and available response, not the emotional force of the word error.

Record an owner and a fallback. The owner is the person or role expected to investigate; the fallback applies when that person is unavailable. In a one-person project, the fallback may be a documented limitation on when the process can be supervised rather than an imaginary second operator. A notification cannot create staffing that does not exist.

If nobody can describe the next useful step, the alert specification is unfinished. Sometimes the right improvement is better logging, a clearer runbook or a smaller experiment rather than another notification channel. That decision makes the supervision design more realistic and keeps the alert focused on something a person can actually resolve.

Give an alert enough context to stand alone

A useful message identifies the environment, affected process, condition, first observation time, most recent observation and evidence location. It also distinguishes a newly opened condition from an update to an existing one. Without that distinction, every repeated message can look like a new incident and the recipient must reconstruct the timeline from an inbox.

For our hypothetical feed alert, the message might report a source age of 180 seconds against a documented research limit of 120 seconds, while the receipt age is only two seconds. That combination suggests the process is receiving recently delivered information whose underlying market timestamp is old. It does not by itself prove a provider fault; clock alignment and the market schedule still need checking.

Include the scope without exposing secrets. A stable research-run identifier and a public instrument label may be enough to locate the evidence. Credentials, account access tokens and full private datasets do not belong in notifications. The recipient should follow an appropriate local or authenticated reference to detailed records rather than receiving sensitive operational material in every message copy.

An example alert card separates observed condition, timing evidence, affected research run and the person responsible for investigation
Hypothetical research alert. Source age and receipt age answer different questions; the next step is to inspect evidence, not infer a cause automatically.

The first screen should support triage. Put the observed condition and scope before diagnostic detail. Keep a stable link to the full record, and preserve the original message when the condition later changes. An alert that becomes understandable only after searching five unrelated dashboards has outsourced its own explanation to the operator.

Freshness needs more than a heartbeat

A process heartbeat answers whether a particular component recently reported itself. It does not establish that its inputs are current, that its outputs were produced successfully or that the observer can reach the same dependencies as the process. A loop can remain alive while repeatedly reading the same stale file. A healthy heartbeat and unhealthy data can therefore coexist without contradiction.

Keep distinct clocks for the source observation, local receipt, completed processing and external observation of the process. Their differences describe different delays. In the 180-second example, a two-second receipt age does not erase the old source timestamp. Conversely, an old receipt timestamp may reflect a collector delay even if the source itself has continued publishing normally.

Expected silence matters. A market schedule, instrument-specific maintenance period or deliberately paused experiment can explain the absence of observations. The schedule must be part of the rule, with an explicit version and timezone. Inferring that everything is fine because there were no recent trades would confuse lack of activity with confirmed freshness.

Alive, current and correct are separate claims. A supervision view should show which claim each measurement supports. That avoids the seductive green indicator that means something narrower than the reader assumes. It also provides a path for investigation: check the clock and schedule first, then the source and delivery layers, then the process that consumed the observation.

Use thresholds that represent a documented tolerance

A threshold is a rule for classifying an observation, not a discovery of a natural boundary between safe and unsafe behavior. The hypothetical 120-second freshness limit should come from the research process’s stated tolerance, not from whichever value produces a conveniently quiet inbox. Different decision schedules and data sources can justify different limits.

Describe the measurement window. A single delayed observation and a sustained delay may have different implications. Requiring a condition to persist can reduce transient notifications, but it also delays detection. Record that trade-off explicitly. If a condition lasts ninety seconds and the persistence rule requires two minutes, the absence of a notification is the intended behavior of that rule, not evidence that the event never occurred.

Recovery requires a rule too. A value oscillating just above and below one threshold can repeatedly open and close an alert. A separate recovery threshold or a required stable period may reduce this flapping. Such choices change the recorded incident duration, so they belong in the specification and should not be adjusted retrospectively merely to improve a monthly summary.

Evaluate threshold changes on preserved observations. Replay a fixed sample with the old and proposed rules, compare which episodes each detects and inspect their timing. The result is a sensitivity study of a monitoring policy. It does not prove that the chosen threshold will identify every future failure or that a quiet backtest of alerts is sufficient supervision.

Group repeated symptoms without discarding the details

In the opening example, twenty robots produce two hundred notifications during one ten-minute shared-feed interruption. Grouping by feed and research environment could present one incident with twenty affected processes and a changing duration. The individual observations remain available underneath. The operator gains a manageable summary without losing the scope needed for investigation.

The Prometheus Alertmanager documentation describes grouping, inhibition and time-limited silences as distinct notification mechanisms. These concepts are useful references even if the research project uses a simpler implementation. They do not determine the correct grouping key for a robot portfolio or authorize suppressing an unrelated condition merely because it occurs at the same time.

A group should represent a meaningful shared question. Two robots with stale data from different sources may need separate investigations. Two alerts from one source may also differ if one concerns timestamp age and another concerns malformed prices. Grouping by convenience can hide independent failures. Keep the original conditions and make the grouping rule visible in the incident record.

Twenty robots each send ten repeated notifications, producing 200 messages; grouping preserves twenty affected processes within one shared-feed investigation
Invented example: 20 robots × 10 repetitions = 200 messages. One investigation can retain all affected-process records without sending every repetition as a new incident.

Grouping also needs an update policy. A change in affected scope or a newly observed condition can deserve a fresh notification, while an unchanged repetition may not. The summary should show what changed since the last message. Otherwise a single group becomes an opaque container that is quieter but no easier to understand.

Silence is a temporary workflow decision

A planned maintenance window can justify suppressing notifications for a known condition. It should have a scope, owner, reason and expiry. The underlying observations should remain recorded where feasible. Muting a notification is not the same as declaring the monitored system healthy, and it should not erase evidence that will matter when the experiment resumes.

Broad silences are especially difficult to review. A rule covering every alert from an environment may hide a separate issue that was not part of the maintenance plan. Prefer the narrow condition and expected duration that the plan actually supports. If the work takes longer, extend the silence deliberately with a reason rather than relying on an indefinite setting forgotten in a dashboard.

When one condition suppresses related notifications, document the dependency being assumed. A confirmed unavailable collector may explain why several downstream freshness checks lack observations, but it may not explain a previously observed price-integrity error. Suppression is a hypothesis about relevance. Preserve enough state to revisit that hypothesis after the incident.

The end of a silence deserves attention. Has the condition recovered, does it still exist, or is the monitoring state unknown? A research process that resumes while every relevant notification remains muted can look reassuring precisely because supervision is absent. Include active silences in the routine review rather than treating them as hidden administrative settings.

Distinguish severity from how often something happens

A rare event is not automatically urgent, and a frequent event is not automatically harmless. Severity concerns the consequence, scope, uncertainty and time available for a useful response. A minor formatting defect in a completed report can wait for an editorial check. An inability to determine which observations informed an active experiment may require prompt investigation even if the process has not crashed.

Use a small severity vocabulary that corresponds to real workflows. For example, immediate investigation, scheduled review and informational record can be enough for a research setup. Each class needs an owner and an expected handling process. Creating seven colors without seven distinct responses adds classification work but little clarity.

The same condition can change significance with context. A missing output file during a deliberately paused run differs from a missing output after a completed calculation that is about to be used in a decision. State the relevant context in the rule. Avoid asking the recipient to infer it from memory, especially when several robot versions or environments are in use.

Do not use recent profitability as the severity scale. A profitable period does not make data-integrity uncertainty unimportant, and a losing period does not prove an execution fault. Monitoring should assess the documented process and its observations. Strategy performance belongs in a separate research evaluation with its own horizon and uncertainty.

Delivery is part of the system being supervised

An alert can be correctly detected and never reach its recipient. The sender may fail, a routing rule may point to an obsolete address, or a delivery provider may accept a message that the operator never sees. Counting generated alerts therefore measures only one stage of the attention process. Record delivery and acknowledgement separately when the channel supports them.

For a hypothetical example, the condition begins at 10:00, is detected at 10:02, reaches the recipient at 10:05, is acknowledged at 10:09 and has an initial diagnosis at 10:14. Detection took two minutes. Delivery added three. Acknowledgement added four. Initial diagnosis added five more. One number called response time would conceal which part of the process needs improvement.

An illustrative timeline separates condition onset at 10:00, detection at 10:02, delivery at 10:05, acknowledgement at 10:09 and initial diagnosis at 10:14
Hypothetical timings. Acknowledgement means someone accepted the investigation; it does not mean the underlying condition has been resolved.

Acknowledgement is not recovery. An operator can acknowledge a condition and still be unable to determine its cause. Recovery of a metric is not always completion of the investigation either: affected research outputs may need classification or regeneration. Keep the state transitions explicit. This prevents an inbox action from being mistaken for restored process validity.

Test the complete path using a clearly labelled harmless synthetic alert. Confirm the intended recipient, evidence link and acknowledgement workflow. The test should not contain invented account results or impersonate an actual emergency. It checks communication behavior, not whether the robot itself is profitable or ready for independent execution.

Count incidents and attention, not just messages

Suppose a hypothetical review period contains eighteen grouped investigations initiated by alerts. Nine correspond to known incidents requiring the specified action; nine do not. The observed actionable share is fifty percent under that review definition. This is not a universal measure of alert quality, but it is more informative than reporting that the system sent three thousand messages.

Now suppose the retrospective incident review finds twelve relevant incidents in total, including three discovered by other means. The alert process identified nine of twelve, an observed detection share of seventy-five percent. These counts come from a small invented sample. They do not estimate future reliability with certainty, and unknown incidents may still be missing from the retrospective review.

A quieter inbox can improve one metric while worsening another. Tightening a threshold might reduce the nine unnecessary investigations but also miss additional relevant incidents. Compare the affected episodes and timing, not only the total notification count. A change should state which burden it reduces and which detection behavior it may sacrifice.

An invented review separates 18 alerted investigations into 9 actionable and 9 not actionable, while 12 known incidents include 9 detected and 3 missed
The two denominators answer different questions: 9/18 investigations were actionable; 9/12 known incidents were detected. These are sample counts, not reliability guarantees.

Attention also has duration. If nine useful investigations take fifteen minutes each and nine unnecessary ones take ten minutes each, the total is 225 minutes: 135 plus 90. That is three hours and forty-five minutes during this sample period. Record the workload before assuming that one person can supervise a much larger portfolio with the same process.

Missing observations deserve their own category

Many monitoring rules compare a measured value with a threshold. But what happens when the measurement itself is absent? Treating missing as zero can make a broken collector look healthy for a metric where low values are desirable. Treating every missing observation as an urgent failure can create noise during known inactive periods. Neither behavior should be an accidental default.

Specify expected observation schedules and distinguish valid zero, unavailable measurement, stale measurement and not-applicable state. A robot that intentionally produces no signals during an interval can have a valid count of zero. A process that failed to write its signal count has an unknown value. The numbers look similar only after someone has discarded the distinction.

An independent observer can help detect absence, but independence needs definition. A second check running on the same failed machine may disappear at the same time. A different process reading the same stale file may repeat the same mistaken conclusion. Record which dependencies the observer shares with the system it checks, and what failures remain outside its view.

The absence of an alert is evidence only when the observation and delivery paths are known to work. Even then it supports the narrower statement that no specified condition was detected. It does not prove that every relevant failure mode was monitored. This language keeps the supervision report aligned with what the system actually observed.

Review the runbook as a reader, not as its author

A runbook should let a reader determine what the alert means, what evidence to inspect, which boundaries apply and when to escalate or stop the investigation. The author often knows context that never reaches the page. A practical review therefore asks someone—or a later version of yourself—to follow the document using only its stated information and the accessible records.

Begin with a read-only investigation. Can the reader locate the affected version, distinguish source time from receipt time and identify the applicable calendar? Are the example screenshots current enough to be useful? Does the evidence link point to the specific run or merely to a general folder? These small details decide whether an alert saves time or creates another search task.

Separate diagnosis from authority to act. A monitoring document can describe what a condition means without granting permission to change financial exposure, credentials or production behavior. If a later response requires such an action, its authorization and validation belong in an explicit process. The educational alert specification here remains focused on observation and investigation.

Keep the runbook version alongside the alert rule version. If a field name or threshold changes, the response instructions may become misleading even though the notification still arrives. A functioning link is not enough; the linked explanation must correspond to the system that generated the alert. Review this relationship when changing robot versions, data sources or research environments.

Rehearse a small incident in a disposable research environment

Create a copied dataset or isolated research run in which one observation deliberately carries an old timestamp. State the expected detection behavior before running the exercise. The goal is to observe whether the freshness rule identifies the condition, whether the message contains the right evidence and whether recovery occurs according to the documented rule when current observations resume.

Repeat with a missing measurement rather than an old one. The two cases should remain distinguishable in the record. Then use an expected inactive period from the test calendar and check that the policy handles it as specified. These exercises do not need a trading account or real orders; they inspect the monitoring logic and its explanatory output.

Test one grouping boundary as well. Give two simulated processes the same stale source and a third process a separate malformed-input condition. A useful result groups the shared question without burying the independent one. Preserve the individual observations so that the test can demonstrate both reduced repetition and retained detail.

A rehearsal should prove that the response path is understandable, not merely that a notification appears. Record the expected and observed message, the time of each stage and any point where the reader had to guess. Correct those gaps before adding more alerts. A small, well-understood supervision process is easier to extend than a large collection of unexplained warnings.

Draw the dependencies that an alert cannot see

Before adding another check, sketch the path from the source observation to the final research output. In a simple project it might include the source, downloader, local file, parser, strategy process, report writer and notification sender. Put the observer beside that path and mark which components it shares. The drawing can reveal that apparently separate checks all depend on the same machine or the same timestamp field.

Consider two hypothetical freshness checks. One compares the current clock with the latest timestamp inside a CSV. Another checks when the CSV file was last modified. A downloader that rewrites old contents updates the file timestamp while leaving the market observation unchanged. The checks are not redundant: they answer different questions. Their disagreement is useful evidence about where freshness was lost.

Now suppose both checks use a local clock that has drifted. They may agree and still classify age incorrectly. An additional comparison with an appropriate independent time reference can help investigate that possibility, but it introduces its own availability and interpretation requirements. More checks help when they contribute different evidence, not merely when they repeat the same calculation in another place.

Keep the map small enough to maintain. Its purpose is to explain blind spots, not to document every software library in the project. When a new data source or execution adapter is introduced, review which observation paths changed. A monitoring policy that was adequate for a historical replay may no longer cover the dependencies of a demo environment, even if the robot’s decision rules are unchanged.

Use identifiers that make evidence retrievable

An alert for robot seven becomes ambiguous when robot seven has several versions, runs in two environments and reads different input files. Use stable identifiers for the logical system and separate identifiers for the particular run, version and environment. Human-friendly names can remain in the message, but they should not be the only way to locate the records supporting the condition.

The distinction matters during updates. If a new version produces a different field or changes its expected schedule, old and new observations should not silently enter the same alert population. Record when the monitored contract changed. A weekly count that mixes two definitions can suggest improving reliability when the later version simply stopped measuring the original condition.

Avoid putting every possible value into the grouping identity. A unique message identifier or constantly changing timestamp would prevent repeated observations from joining the same incident. Conversely, using only a broad project name could merge unrelated conditions. Separate event identity from incident identity. The former preserves individual observations; the latter expresses the shared question being investigated.

Evidence retention also deserves a rule. If the detailed records disappear before the scheduled review, the alert summary becomes an unsupported claim. Keep the minimum records needed to reconstruct the condition and response for the intended review period, subject to the project’s privacy and storage constraints. The useful unit is a reproducible incident packet, not an indefinitely growing collection of notification copies.

Review a period before tuning away its difficult cases

Return to the invented review with eighteen alerted investigations and twelve known relevant incidents. Do not begin by deleting the nine investigations judged unnecessary. Read what made each one unnecessary: an expected inactive period, an overly broad grouping rule, a stale runbook, a duplicate delivery or a measurement that did not support the stated consequence. Different causes require different changes, and some are not threshold problems at all.

Then examine the three missed incidents. Were their conditions never measured, measured but below the threshold, detected but undelivered, or delivered without recognition? These stages imply different remedies. A lower threshold cannot repair an obsolete recipient address. A new notification channel cannot recover a source field that the research process never recorded. The review should preserve the stage at which attention failed.

Choose a bounded change and state what would count as improvement on a later period or a held-out replay. For example, a calendar correction may remove known inactive-period warnings while preserving detection during expected activity. That is a more precise objective than reducing alert volume by half. Keep the original rule available for comparison so the effect can be distinguished from changes in the underlying workload.

Finally, record what remains unresolved. An incident with insufficient evidence should not be forced into the false-alert category merely because its cause cannot be established. Unknown is a legitimate review outcome. It identifies where instrumentation or retention needs work. Treating every ambiguous case as harmless makes the dashboard look cleaner while weakening the very evidence needed to supervise the next experiment.

Let AI assist the review without inventing operational facts

An AI assistant can turn a documented rule into a draft alert specification, compare a runbook with current field definitions or summarize a preserved incident record. Give it the actual schema and ask it to separate observed facts, plausible explanations and missing evidence. Require source references for every claimed timestamp, affected process and state transition.

A useful bounded prompt asks for a table containing condition, evidence, owner, first read-only check, grouping key and recovery rule. It should also ask which assumptions cannot be inferred from the supplied files. This is more productive than requesting an intelligent monitoring agent without defining what it is allowed to observe or decide.

A fluent incident narrative is not an incident record. If the assistant supplies a network outage that never appeared in the logs, it has filled a causal gap with a story. Keep the original observations visible and use the proposed explanation as a question to investigate. The same discipline applies when the assistant suggests thresholds based on a small historical sample.

The TradeAndRoll demo offers ten Forex systems with rules, source code and market CSVs for investigation. Alongside studying their logic, ask what observations you would need to understand their behavior in your own test environment. The guides to data drift and feed failures and testing a robot’s stop mechanism develop related questions. A useful alert leaves you knowing what was observed, where to verify it and who can take the next appropriate step.

Back to the Blog