Skip to content

Sensor temporal checks

Status: implemented in the deterministic sensor-quality rules (services/model-router/app/sensor_quality.py) with fault-replay coverage. Tested on synthetic faults and replayed third-party logs only; not field-tested. The sections "Detection sketch" and "Implementation order" below are the original design notes, kept for history.

Pattern peer: Makeph/plexus (startup-baseline drift, stuck/flatline). Pomona keeps SQLite in pomona-core as system of record; do not adopt Plexus as an ingest hub.

Prerequisite: trustworthy dual-time and zone-identity hygiene (RELIABILITY_HARDENING.md, SENSOR_QUALITY_INPUT_CONTRACT.md).

Goal

Stream faults that packet-level rules alone miss. The last column is the fault-replay gap: the old figures are historical (2026-09-06), the current ones come from make fault-replay run 2026-11-07:

Fault Symptom Current fault-replay gap
Stuck value Same numeric reading across samples, fresh timestamps Was 0/6 detected (2026-09-06). Now 5 detected, 0 missed (the first frame is before a detector can fire and is not counted)
Flatline Near-zero variance over a window related to stuck
Startup-baseline drift Slow walk away from values seen at stream start Was 0/6 (2026-09-06). Now 3 detected, 0 missed (earlier frames are before the baseline delta is reached and are not counted)
Dropout (temporal) No new samples; last packet ages Was 3 of 6 detected (2026-09-06). Now 3 detected, 0 missed, same counting rule; replayed with a frozen last-packet timestamp, not a broker failure

See SENSOR_FAULT_REPLAY.md.

Gaps in a series

A packet that lacks a field (a probe that stopped reporting: absent or null) ends a run. Stuck and frozen runs (_trailing_run, _longest_run, the flatline window, the adaptive stuck run) restart after it, so a gap never joins two runs of one value and old readings never count as "latest" when the newest packet has none. Step and noise checks skip only the step that crosses the gap (no difference is taken between the readings either side, and the interval across it is not a sample interval); the noise window keeps its normal length over the remaining steps. rules.js (sensor-data-checker and demo copies) and persistent.js mirror this and the parity cases cover it.

Sample times ahead of the clock

A sample time more than MAX_FUTURE_SAMPLE_S ahead of the router's clock (default 300 s, the same setting as Core's ingest limit, so a sample Core accepts is not called a doubtful clock a second later; 0 means 60 s) is flagged insufficient_context ("verify device clock"). derive_sensor_quality keeps its own default of 60 s for callers that pass nothing (the browser demos mirror that default and their parity cases use it); the service passes the setting.

Placement

MQTT / HTTP ingest → core (store raw) → deterministic temporal SQI
  → sensor-quality labels / human_review
  → risk reasoners (only if usable)
  • Deterministic rules first; learned SQI later if needed.
  • Emit labels and review flags; never rewrite stored raw packets.
  • Dashboard / automation may surface WARN/FAULT suggestions only.

Proposed labels (additive)

Extend the allowlist in SENSOR_QUALITY_REASONER.md:

[
  "stuck_value",
  "flatline_possible",
  "baseline_drift_possible"
]

Keep existing sensor_drift_possible until these are sharper; avoid duplicate labels on the same frame without a merge rule.

Implemented behaviour (2026-09-27)

services/model-router/app/sensor_quality.apply_temporal_checks, using up to 11 prior packets (the dashboard's window) plus the current packet:

Check Fires when Why this shape
stuck_value The latest value has repeated ≥ 3 times and ≥ 2× the longest earlier repeat, after the field had varied; for water and substrate temperature the repeat must also span ≥ 3 h of sample time, for soil/substrate moisture ≥ 2 min (so 30 s sampling needs 5 identical readings to flag, 7 to raise a card; 1-minute and slower sampling is unchanged) Continuous sensors are caught after 3 identical samples; quantized probes (DS18B20 0.0625 °C steps) that legitimately repeat 2–3 times need a longer freeze. Thermal mass holds a DS18B20 step for hours (real pond: 99th percentile 2.25 h, longest 4.75 h), so at 5-minute samples and an 11-packet window this cannot fire for those two fields; their probe error codes are still caught by range checks
flatline_possible The last 6 samples span ≤ epsilon (0.05 °C / 0.25 %) but not exactly zero, and the field's median step before that was ≥ epsilon Slow, healthy signals at 5-minute steps often stay within epsilon for 3 samples; the old 3-sample rule flagged them
noisy_signal_possible pH/EC has ≥ 6 samples in the window and their median step is ≥ the drift threshold (pH 0.35, EC 0.4 mS/cm); drift is not evaluated for that field Real unshielded PH-4502C jumps ~0.5 pH per 5-minute sample; commercial greenhouse drain probes stay ≤ 0.1. Noise that large cannot be told apart from drift
baseline_drift_possible pH/EC stays ≥ threshold away from the median of the first 3 plausible values in the window (pH 3–11, EC 0–12) for 3 samples; no judgement until 3 plausible values exist An impossible reading must not become the baseline, and one outlier first reading must not make a steady probe look drifted

Packet-level range checks added alongside: water_temperature_c outside 0–50 °C and substrate_temperature_c outside −10–60 °C give impossible_temperature (catches the DS18B20 error values −127 °C and 85 °C).

Real-data replay (2026-09-28, make real-replay, see SENSOR_FAULT_REPLAY.md) set the 3 h thermal-mass window and the noise label.

Normal controls covered by services/model-router/tests/test_sensor_temporal_checks.py: stable pH plateau, quantized probe flicker, slow noisy climb. The browser checker in spaces/sensor-data-checker mirrors these rules (make test-checker): rules.js the 11-packet checks, persistent.js Core's trusted stream reference (stream_baseline) and the persistent checks that use it, run over a whole uploaded log (the greenhouse demo Space sees one reading at a time and has neither history nor a reference, so it runs neither).

Detection sketch (original design, implemented above)

Inputs per (farm_id, zone_id, device_id, measurement):

  • Ordered history of (sample_time, value) from core (not receipt-only).
  • Stream baseline = first N valid samples after boot / reconnect (fixed; not a sliding window that absorbs drift).
  • Configurable windows and thresholds via env (no hard-coded crop magic).

Stuck / flatline

Flag when, over K consecutive samples with fresh sample times:

  • exact equality, or
  • max - min <= epsilon for that measurement.

Require enough samples; do not flag single repeats after reconnect.

Startup-baseline drift

Flag when recent median (or mean) moves beyond delta from the startup baseline for longer than T, while timestamps remain fresh.

Normal controls (required before enabling)

Flat or slow change can be legitimate. Acceptance fixtures must include:

  • stable climate plateau (no review),
  • quantized probes (1-decimal steps),
  • expected day/night moisture/temperature change,
  • post-irrigation step change (not stuck).

Do not feed evaluator fault annotations into the detector.

Acceptance

  1. Extend make fault-replay sequences for stuck / slow drift until they fail closed honestly, then until they pass with the new rules.
  2. Unit tests for window edges, reconnect baseline reset, and normal plateaus.
  3. No network, actuators, or model downloads in the harness.

Out of scope

  • Replacing core storage with Gorilla compression.
  • Calibration budget / corrected readings (see CALIBRATION_PROVENANCE.md).
  • Silent “fixing” of live values.

Implementation order (original plan, done)

  1. History API or in-process window feed into deterministic SQI.
  2. Stuck + flatline rules + normal controls.
  3. Startup-baseline drift.
  4. Update fault-replay baseline table and SENSOR_QUALITY docs.

Longer memory in Core's feed

The 11-packet window above absorbs a step or a frozen run within minutes. Core's outcome feed adds a sticky trusted reference per probe (median of the readings the pipeline did not veto, plus when the value last changed) so those faults stay flagged. See SENSOR_QUALITY_REASONER.md.

A flagged level stays "can't confirm" until a calibration for that probe is recorded (the default, TRUST_BASELINE_MAX_AGE_S=0); the reference is anchored at the newest trusted reading, so even a probe broken for hours is judged against the readings from before it broke. A lapse is opt-in.

Why the unattended rates are high on historical logs. make real-replay replays the real third-party logs (aquaponic pond, 6 greenhouse compartments) through this check. Those logs have no operator, so nobody can ever record a calibration: every real level shift of a drain pH or EC probe (and they move for good over a crop cycle) stays flagged for the rest of the log. The "unattended: no operator to calibrate" rates (EC 13 to 27 % of readings in the greenhouse compartments, pH 2 to 13 %) are therefore a statement about the logs, not about the check, and are reported as information only. With the opt-in 2 h lapse the same logs flag EC on 0.8 to 1.9 % and pH on 0.1 to 1.1 % of readings, about what the 11-packet drift check flags on its own. The thresholds were not loosened to make the unattended numbers look smaller: what is guarded is what must not regress (the legacy pass, the persistent stuck rates both ways, the drift rate with the lapse, and the fields that had no persistent flags at all). In a live deployment each flagged level is a card that asks someone to confirm the probe, and the confirmation ends it.

Stream-habit checks in Core's feed (2026-11-02, widened 2026-11-05)

The "Try to fool Pomona" game (FAKE_GREENHOUSE.md) showed sensor lies the checks above missed. These checks now close most of them. All need Core's stream_baseline (they judge a reading against its own stream, so they run in the Core feed and the in-process engine, not in the 11-packet rules the browser checker mirrors in JavaScript) and every threshold was set on the real logs (make real-replay, 5-minute samples, budget about 0.15 % of readings per stream).

Check Fires when Real-data share flagged (worst compartment)
stuck_value for pH and EC (adaptive) The value repeats for longer than 5 minutes and 4 times the longest hold the stream showed in its last 200 trusted readings, and it is at least 3 readings in a row (at 10 or 15-minute sampling one pair of equal readings is already longer than 5 minutes), and the stream changed in at least 70 % of those steps (15 steps minimum). Core sends change_share, change_steps, longest_run_s for pH and EC pH: 0 of 7 real streams. EC: 0.02 % (IUACAAS, no-lapse replay only), 0.004 % (Automatoes), 0 elsewhere. The floor was 15 minutes; 5 minutes (one real 5-minute sample: a pair of equal readings never counts) flags exactly the same real readings
sensor_drift_possible (step) for air temperature, humidity, substrate moisture and substrate temperature The reading differs from the newest trusted reading (last_value, last_at) by more than max(smallest allowance, speed x minutes since that reading). Air 3 C and 1 C/min; humidity 12 %RH and 4 %RH/min; moisture 8 % and 2 %/min; substrate temperature 1.5 C and 0.3 C/min. A flagged reading is vetoed, so the reference stays put and the step stays flagged until the allowance has grown to cover it (4 minutes for +4 C air, 4 for +15 %RH, 8 for +15 % moisture, 13 for +4 C substrate), then the new level is accepted air 0.054 % (the Reference compartment holds 17 C glitches), 0.002 % elsewhere; humidity 0.021 % (Reference glitches), 0.010 % (IUACAAS), 0.008 % (Digilog), about 0 elsewhere; moisture 0.017 % (Digilog, one 79 % glitch held until the allowance covers it), 0 elsewhere; substrate temperature 0.006 % (Digilog, one 2.4 C glitch), 0 elsewhere
noisy_signal_possible for humidity, air temperature, pH, substrate moisture and substrate temperature The median step over the last 12 readings is at least the limit and the window has not simply moved in one direction (its net movement is at most half of the distance it travelled). The 5-minute limits are 10 %RH, 2 C, 0.5 pH, 1 % moisture and 0.4 C; they shrink with the square root of the sample interval, never below the floors 3 %RH, 0.4 C, 0.1 pH, 2.5 % and 0.5 C. EC has one fixed limit, 0.20 mS/cm, used as it is (no scaling), and is judged only when the median sample interval of the window is 90 seconds or less humidity: 0.084 % (AICU), 0.056 % (IUACAAS), 0.025 % (Digilog), about 0 elsewhere; air: 0.029 % (Reference), about 0 elsewhere; pH: 0.061 % (AICU), 0 elsewhere (the unshielded pond pH is noisy on purpose and already flagged by the 11-packet rule); moisture and substrate temperature: 0. At 30 seconds, on 3 months of real 10-second data (see the last section): air, humidity and pH 0 of 308,285 windows each; EC at 0.20, 0 of about 0.92 million windows per probe at every rate from 10 to 90 seconds
baseline_drift_possible for pH, now also for a slow drift As before, but a pH stream that normally changes every sample (the same 70 % test) is judged against the spread of its trusted readings older than half an hour (Core's spread_lag) instead of the spread of the whole window. A drift in progress is trusted until it is a threshold away, which widens the whole-window spread until 3 x spread hides it; the lagged spread has not seen the newest half hour no change in the real logs: no real drain stream changes every sample, so they keep the full spread. Only the pond pH is judged this way: 0.49 % to 0.64 % of its readings (with the 2 h lapse), inside the 2 % guard. EC is not judged this way (see below)
baseline_drift_possible as a pair check for air temperature, humidity and substrate moisture (both moisture names), in a zone with two or more devices Core compares the probe with the other probes of the same zone that report the same field (their median, if there are several). It keeps the usual difference, the median of that difference over the last 2 hours, from at least 12 readings, and flags the reading when the difference has moved from the usual by the limit: air 3 C, humidity 10 %RH, moisture 8 %. A probe is judged only when it reports at least every 5 minutes. A partner's reading counts when it is earlier than the probe's and recent enough for the judged probe (2.5 of that probe's intervals, 60 to 750 seconds), so give both probes the same cadence, 5 minutes or faster. A flagged reading is vetoed and no longer serves as a partner or as part of the usual difference, so the flag lasts while the difference stays over the limit. A reading that is itself a step of a third of the limit or more (air 1 C, humidity 3.3 %RH, moisture 2.7 %) is not judged, because the partner has not reported a shared change yet. A calibration of the field on any device of the zone restarts the pair. Details: SENSOR_QUALITY_REASONER.md UF chamber (4 probes, 30 s, about 107 days; measured when the check was designed): 0 flagged readings with three partners; the worst single pair flags 28 to 45 air readings (1 to 3 cards) and one or two pairs flag 3 to 7 humidity readings (1 card each); every other pair 0. AGC2 slab 1 against slab 2 (5 min): 0 in 5 of 6 compartments; Digilog 47 to 48 of 45,311 readings (0.10 %, 4 cards), from real slab glitches. Those few cards are accepted (the owner's decision) and ask to check both probes. The limits come from one chamber and one greenhouse

Why each shape:

  • pH/EC cannot have a fixed stuck limit. Real drain probes hold one value for hours (80 % of readings are beyond 20 minutes; the longest hold is 6 days). A limit tuned to the longest real plateau would miss every freeze, a short one would flag the drain probe most of the time. A history-only variant (limit = a multiple of the longest hold in the last 2 to 72 hours) was tried on the real logs and flags 0.4 to 20 % of readings, because plateaus are heavy-tailed and every new record plateau looks like a freeze. What does separate the two kinds of probe is how often the value changes at all: the real drain probes change in 3 to 18 % of their steps, the pond pH in 99 % and the pond EC in 77 %, the simulator's pH and EC in 83 to 93 %. Only a stream that normally changes almost every sample can be "stuck"; one that is quiet by habit is left alone, and the longest-hold factor (4) keeps a probe that rests for up to an hour (the pond EC) quiet too. Only the factor and the habit judge real streams: the floor (5 minutes) matters only to a probe whose longest hold is under 75 seconds, which no real stream is.
  • Humidity, moisture and substrate temperature have no level check (humidity varies 20 %RH a day, moisture follows irrigation, and a flagged level of substrate temperature could never be confirmed: Core has no calibration for it), so a jump is judged by speed, like air temperature: how far the field can really move since the last reading Pomona trusted. The allowances are the largest steps the real logs make (5-minute steps: humidity 8 to 15 %RH on 0.1 % of readings and 15 to 20 on 0.01 %, moisture 4.3 to 7.1 % at most, substrate temperature 0.4 to 0.8 C at most, each apart from isolated glitches), so a real ramp, an irrigation pulse or a heat spike (about 0.5 C per minute) stays well inside. A smaller offset than the allowance (+10 %RH humidity, +5 % moisture, +1 C substrate temperature) cannot be told from a real change in one sample and is not caught.
  • Air temperature has no level check (it varies 10 C a day, so a distance from the 2 h median would flag every morning), so the step is judged by speed too. In 5-minute logs the allowance is 5 C, so only glitches trip it.
  • Noise needs the sample interval, and has to go nowhere. Real humidity at 5 minutes swings a lot (the median step over 12 readings reaches 8 %RH in 0.2 % of windows), which is why the limit at 5 minutes is 10 %RH. A legitimate swing is spread over more samples when readings come faster, so the limit shrinks with the square root of the interval, down to a floor above what a healthy simulated probe's windows reach (fake greenhouse, normal runs of seeds 1 to 80: the largest window median step is humidity 2.5 %RH, air 0.32 C, pH 0.06, moisture 1.5 %, substrate temperature 0.31 C). None of the real logs above is sampled faster than 5 minutes, so the scaling at 30 seconds (limit 3.2 %RH, 0.63 C, 0.16 pH; the floors 2.5 % and 0.5 C for moisture and substrate temperature) was argued from the physics and checked against the simulator's normal runs (0 flags in seeds 1 to 80). Air, humidity and pH have since also been checked against one real fast log, see Real data at 30 seconds. A fast ramp has large steps too (the quick scenario's dry zone loses 3 to 4 % moisture per sample), so a window that mostly moved in one direction is not called noisy.
  • Slow drift is judged against the lagged spread only for a steady pH stream. A pH probe that moves every sample (the simulator, the pond) has a spread that is its own noise, so the threshold may follow the older readings. For the real drain probes the same lagged spread flagged 2.2 to 2.3 % of the EC readings with the 2 h lapse (guard 2 %, 1.7 to 1.9 % today): they swing with every irrigation and the full spread is what keeps them quiet. EC never uses it, even when it changes every sample (Core still sends spread_lag for both): substrate EC really rises as the substrate dries (the fake greenhouse's dry zone: +0.4 or more), and the lagged threshold turned that into a "check the probe" card for about an hour around the real event in demo.json, which a real probe that changes every sample would get as well.
  • Moisture rewetting is exempt from the step check. A rise from a trusted level below 15 % is not judged by speed: a dried-out slab is rewetted by one irrigation (the dry zone shows +40 % in one sample), and the real logs never get that dry (lowest 54 %, apart from one 0 % glitch), so they neither support nor contradict it. A fall and a rise from any wetter level keep the allowance.

Limits that remain:

  • A pH or EC freeze shorter than about 8 to 10 minutes is not caught (the floor is 5 minutes, the stream's 4 x longest hold is usually 8 to 14 minutes in the simulator, and a card needs 3 flagged readings), and a stream with fewer than 15 trusted steps before the freeze has no habit to judge.
  • A second freeze of the same probe soon after the first needs more than 4 x the first freeze's trusted minutes: the first freeze's first 5 to 14 minutes were still trusted, so that stream now "rests" for that long and the second freeze must last 20 to 56 minutes (about 21 minutes in the scenario the game uses: a second 30-minute freeze 10 minutes after the first is caught after 20 to 24 minutes) for the 100 minutes (200 readings) the first one stays in the habit window. A percentile of the holds instead of the longest one would fix it and flags 3 to 30 times more real readings, so the longest hold stays. A probe that was already frozen before Pomona started watching it has no earlier habit and is not judged.
  • A step is flagged for as long as it is physically impossible and then accepted as the new level without a calibration (a heat spike must not be held back): +4 C air for about 4 minutes, +15 %RH for about 4 minutes, +15 % moisture for about 8, +4 C substrate temperature for about 13. Removing a long drift snaps the reading back and trips the same check, so a 40-minute drift of a probe that is alone in its zone raises a sensor card only when it ends. The scorer does not credit that: a sensor card whose label run began after the fault's last reading is scored "MISSED (noticed only when it ended)" (verdict caught_at_recovery), in the game and in make fake-greenhouse-score.
  • A slow drift of air temperature, humidity or substrate moisture is caught with a second device in the zone, and still MISSED with one. The drifts of the game (0.1 C, 0.5 %RH, 0.5 % per minute, 40 minutes) are caught while they last when another device of the zone reports the same field and the probe itself reports at least every 5 minutes (the pair check, row above). In the fake greenhouse's slow_drift.json (a layout with two climate probes and two moisture probes, one seed) the cards came after about 32 minutes (air), 21.5 (humidity) and 17.5 (moisture). A probe that is alone in its zone is judged only against its own past, and then the drift is noticed only when it ends and the reading snaps back, which is scored as missed (caught_at_recovery). A probe can only be told from the real thing by its level against its own recent past, and the real logs do not leave room for a level that catches these while they last. Real readings leave their trusted 2 h median by (1 % of readings / 0.01 % of readings): air 3.3 to 8.7 C / 6.5 to 14 C, humidity 12.6 to 16.3 %RH / 27 to 50. The drifts reach 4 C and 20 %RH at their end, so a limit that fires while they last is crossed by 1 % of real readings. Moisture leaves its median by 2 to 7 % / 7.4 to 12.7 %, so a limit near 13 % would fit the real logs, but the dry-zone event is a moisture fall of 1.2 %/min with the same signature at a different speed (a drift of 0.5 %/min is its slow version), and a level check would turn that event into "can't confirm the probe" and withhold its water-level card, which is worse than missing a drift. Two probes see the same weather and the same irrigation, so their difference barely moves in a real event, which is why the pair check can use a much tighter limit.
  • Substrate temperature drift stays MISSED, with or without a second probe. Real readings leave the 2 h median by 1.1 to 2.1 C / 6 to 10 C, and a flagged level could never be confirmed: Core has no calibration for substrate temperature, so a flagged pair could never be cleared. It is left out of the pair check.
  • The pair check has limits of its own. It needs a second device with the same field, and judges a probe only when that probe reports at least every 5 minutes. A zone with one probe, or a probe that reports less often than every 5 minutes, keeps the old behaviour; a slower partner still works when its reading is recent enough. Both probes drifting alike is not caught. A drift slower than about the limit over 2 hours (air 0.025 C per minute) moves the reference before it crosses the limit, and is caught late or not at all. With only two probes it is close to a coin flip which one takes the flag, so the card may land on the good probe; it asks for a meter on both. The limits come from one hydroponic chamber and one greenhouse; revisit them when a real greenhouse with two air probes in one zone appears. A pH drift is different: it is steep against a steady probe's own noise and is caught on its own (0.02 pH per minute after about 18 minutes, 0.01 after about 36), while 0.005 per minute over two hours stays inside the window and is not.
  • EC slow drift is partly missed. EC is judged against the whole-window spread (see above), which a drift in progress widens. A steep drift is caught (0.05 mS/cm per minute for 40 minutes, and 0.1), but 0.025 and 0.0125 per minute over 80 to 120 minutes are caught in 2 of 3 seeds and otherwise noticed only when the drift ends, and demo.json's EC drift (0.05 per minute for only 15 minutes) is noticed only when it ends, as before this change.
  • Caught for fast streams, still MISSED for slow ones: a noisy EC probe. The Automatoes drain EC (5-minute samples) really jumps (1.0 % of its windows have a median step of 0.4 mS/cm or more, 0.29 % of 2 mS/cm), so no EC noise limit that real 5-minute data allows is below what a noisy simulated probe shows (median step about 0.29). A stream sampled every 90 seconds or faster is different, see the last section: a noisy EC probe there is flagged, and a card follows. A slower stream (a 5-minute drain probe) is not judged; it is caught only now and then when the noise pushes the level check over its threshold, which is luck, not detection.
  • A frozen substrate-temperature probe (3 h of thermal mass; real slab probes hold one value for up to 9 h) is still missed, and so are jumps smaller than the allowances above.

Real data at 30 seconds, and the fixed EC noise limit

Every real log the limits above were set on is sampled every 5 minutes, so the 30-second jump and noise limits were scaled guesses. One public log is much faster: a University of Florida lettuce growth chamber, four recirculating nutrient-solution loops with pH and EC probes, and air temperature and humidity at four positions, logged every 10 seconds for 3 months (926,903 rows, 2022-03-03 to 2022-09-27; "Identifying Uncertainties In Air Temperature Data Of An Indoor Farming System", Mendeley Data, CC BY 4.0, see LICENSE_AND_ATTRIBUTION.md). It has no fault labels. It is not part of make real-replay (that is built for 5-minute data); scripts/analyze_fast_sensor_log.py <dataset folder> prints the numbers below.

  • Air, humidity and pH at 30 seconds (every third row, 12-reading windows): no flags with the scaled limits, 0 of 308,285 windows each. The largest real window median step is 0.21 to 0.42 C (limit 0.63), 1.9 to 2.4 %RH (limit 3.2) and 0.05 to 0.10 pH (limit 0.16). The step allowances (3 C, 12 %RH) are passed only by single-reading glitches (air 64.6 C, humidity 25 to 70 %RH and back); real humidity drops of about 10 %RH within 30 seconds do happen, so 12 %RH is about right. No limit changed. This is one closed chamber; a greenhouse with vents and doors can move faster.
  • EC at every rate and phase (10, 30, 60 and 90 seconds, every starting offset): the largest real 12-reading window median step is 0.143 mS/cm (60 seconds, one probe); 0 windows reach 0.20 at any rate or offset. Healthy tank EC (about 1.2 mS/cm, with active dosing) barely moves when sampled fast.
  • So EC has a fixed noise limit: 0.20 mS/cm, only for a window whose median sample interval is 90 seconds or less. It is used as it is, without the square-root scaling. A noisy simulated EC probe (median step about 0.29) is caught: at least 6 of the 11 steps in the window must be noisy before the median crosses the limit (about 3 minutes at 30 seconds, more in practice because a noisy step is only about 2 in 3 likely to reach the limit), then 3 flagged readings in a row make the sensor_check card. In the fake greenhouse (noise on EC multiplied by 10, a reading every 30 seconds) the card came 8 and 6 minutes after the fault began in the two zones tried. A one-way move (a dose) is excluded by the same direction rule as the other fields, and a single glitch moves only 1 or 2 of the 11 steps.
  • Limits of this evidence: all four probes sit in recirculating tanks at about 1.2 mS/cm. There is no public fast-sampled drain EC (tomato substrate, 2 to 6 mS/cm, where a probe may also see intermittent drain flow), so the check applies to every stream at 90 seconds or faster and can be revisited when real drain data arrives. A false EC flag has a cost: the trust gate stops the specialists from reasoning on a flagged reading. Streams slower than 90 seconds are unchanged.