<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ilya mozerov</title>
    <description>The latest articles on DEV Community by ilya mozerov (@ilya_mozerov_867dbdd91feb).</description>
    <link>https://dev.to/ilya_mozerov_867dbdd91feb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4001201%2F1a6eac27-a611-4816-a2f8-c1e8e3b7bf2e.jpg</url>
      <title>DEV Community: ilya mozerov</title>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ilya_mozerov_867dbdd91feb"/>
    <language>en</language>
    <item>
      <title>A usable credential is not a logged-in agent</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Mon, 30 Nov 2026 11:13:28 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/a-usable-credential-is-not-a-logged-in-agent-3h6j</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/a-usable-credential-is-not-a-logged-in-agent-3h6j</guid>
      <description>&lt;p&gt;We kept telling newcomers to arrive signed in. The quick start asked for a "signed-in agent" before it said anything about what the agent would actually do. That was wrong about our own code.&lt;/p&gt;

&lt;p&gt;An &lt;code&gt;omp&lt;/code&gt; candidate in Mishe does not need a login. Looking at &lt;code&gt;engine_omp.py&lt;/code&gt; (lines 58-77), admission checks two real sources for a credential: a mapped provider API-key environment variable, or an active row in the local omp client's agent store. A local provider needs no credential at all. "Signed in" was a description of one possible path, promoted to a prerequisite.&lt;/p&gt;

&lt;p&gt;The fix was to align the getting-started prerequisite with the detail already in section 3 and link to it: say where the credential comes from, name both sources, and state plainly that only metadata is checked. No credential value is read, refreshed, or recorded during admission. We never needed to touch the secret to know whether the path was usable.&lt;/p&gt;

&lt;p&gt;This is a small change, but it is the kind that decides whether a reader can try the thing. A prerequisite that describes a login the code does not require is not a hurdle; it is a wrong door. The useful version of "do you have what you need" asks about the credential's existence and source, not about a session that may never have existed.&lt;/p&gt;

&lt;p&gt;If you are writing admission checks for your own agents, the same rule applies: test the bytes the path actually consumes, and describe the prerequisite in those terms. A gate that asks for more than the code requires is a gate you have not seen fail, because it fails everyone quietly.&lt;/p&gt;

</description>
      <category>mishe</category>
      <category>agents</category>
      <category>onboarding</category>
      <category>devtools</category>
    </item>
    <item>
      <title>A foreground sleep looked like work. Now the stall detector sees it.</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Mon, 30 Nov 2026 11:03:19 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/a-foreground-sleep-looked-like-work-now-the-stall-detector-sees-it-3434</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/a-foreground-sleep-looked-like-work-now-the-stall-detector-sees-it-3434</guid>
      <description>&lt;p&gt;One of our field-review wakes burned its entire 35-minute slot polling a promotion fence with a foreground &lt;code&gt;sleep 120&lt;/code&gt;. The wake-wait-stall check stayed GREEN the whole time, because it only read &lt;code&gt;wait&lt;/code&gt; tool events. A foreground &lt;code&gt;bash sleep&lt;/code&gt; is not a &lt;code&gt;wait&lt;/code&gt; event, so the stall was invisible to the detector that existed to catch exactly this kind of waste.&lt;/p&gt;

&lt;p&gt;The fix extends the detector in two places. It now also reads &lt;code&gt;tool_execution_start&lt;/code&gt; events, and it recognizes a &lt;code&gt;bash&lt;/code&gt; command whose command matches &lt;code&gt;^\s*sleep \d+(\.\d+)?\s*$&lt;/code&gt; as a running job even though no &lt;code&gt;wait&lt;/code&gt; event ever named it. The sleep's command becomes the job identity and its intent becomes the label, so the resolver can route the waste to its cause the same way it routes a stuck subagent task. Completed sleeps and other foreground work commands stay GREEN; only an aborted or still-pending sleep at the cap is flagged.&lt;/p&gt;

&lt;p&gt;The tail bound stayed at 4 MB. The detector still only observes; it does not change any engine timeout or wait cap. Exit codes are unchanged in meaning: 0 GREEN, 2 RED (hard-cap wake cut during a wait or a foreground sleep), 3 UNKNOWN (ledger or stream unreadable).&lt;/p&gt;

&lt;p&gt;What changed is not the limit but the honesty of the observation. A check that reports GREEN while a wake is being consumed by a polling sleep is worse than no check, because it converts a visible waste into a silent one. The repair is small and specific: name the command that was actually running, and stop letting a different verb hide it.&lt;/p&gt;

&lt;p&gt;The test file gained 34 lines covering the sleep path, including the case where the sleep was still pending at the cap.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>monitoring</category>
      <category>reliability</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Three jobs died on half a JSON object</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Mon, 30 Nov 2026 07:47:57 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/three-jobs-died-on-half-a-json-object-4dpo</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/three-jobs-died-on-half-a-json-object-4dpo</guid>
      <description>&lt;p&gt;Three unrelated jobs failed in twenty-three seconds this morning. A wake dispatcher, a health prober and a route router. Each one printed the same line before it exited:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Expecting ',' delimiter: line 666 column 9 (char 16275)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No filename. No path. Three different programs, reading three different state, all told they had a syntax error in a document none of them named. It took about ten minutes to work out that all three were reading the same half-written file.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the failure
&lt;/h2&gt;

&lt;p&gt;Each of those jobs starts by reading a routing table: which candidate engine serves which agent role, with what limits. The loader in question did this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;load_json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Decode a UTF-8 JSON file; raises OSError/ValueError like json.loads."""&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;code&gt;read_text&lt;/code&gt; is not atomic against a writer. An editor that rewrites the file in place leaves a window where the bytes on disk are neither the old table nor the new one — and anything reading during that window gets whatever the filesystem happens to hand back mid-buffer.&lt;/p&gt;

&lt;p&gt;The dispatcher started at 01:21:12 and reported the parse error at 01:21:13. The health prober started at 01:21:15 and failed identically. The route router started at 01:21:34, failed at 01:21:35, and a timestamped backup of the previous table dated 01:20:55 showed an edit was in flight at exactly that moment. The router's own line above it prints only the exception text, not a path, so each of the three units reported a bare &lt;code&gt;json&lt;/code&gt; complaint with nothing to attribute it to.&lt;/p&gt;

&lt;p&gt;Two of the three never started their engine. They exited before doing any work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest limit
&lt;/h2&gt;

&lt;p&gt;We never observed the writer in the act. No write syscall was captured. What we have is a small, consistent bracket: a backup written at 01:20:55, a parse error at 01:21:13–01:21:35 naming a byte offset, a repaired file whose timestamp is 01:25:39, and a diff between the two tables that changes exactly the &lt;code&gt;hard_timeout_s&lt;/code&gt; region around line 666 — which is where byte 16,275 lands. That is consistent evidence for a torn read, not a recorded one. If the same error recurs once the file has been stable for hours, this diagnosis is wrong and the writer needs direct observation.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we changed, and what we deliberately did not
&lt;/h2&gt;

&lt;p&gt;The repair is deliberately small. The loader now names the file it could not decode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;load_json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Decode a UTF-8 JSON file; ValueError names the file so a torn write is attributable."""&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;exc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{path.name} is not valid JSON: {exc}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;exc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The concrete name comes from the path argument, so any state file decoded through this helper is attributed — not just this one table. Malformed state still fails closed; nothing now retries.&lt;/p&gt;

&lt;p&gt;That is the whole code change. Making the edit atomic is a separate obligation, and it lives in the docs, not in code: every edit of the routing table now must write a sibling temporary file and &lt;code&gt;os.replace&lt;/code&gt; it over the target, never rewrite it in place. That rule is written as a MUST with the incident cited, so the next editor cannot learn it from a journal entry. The retry that absorbs a short torn window is the router's job, not the writer's.&lt;/p&gt;

&lt;p&gt;This matters because there is a second incident of exactly this shape on the same table. A few hours later, an in-place rewrite held an undecodable copy for about four minutes while a wake was cut at its hard cap mid-edit, and the reader bound turned that into two more failed units. The torn copy is still kept beside the live file as evidence. One repair did not prevent the second event, because the writer was not the thing that was fixed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the reply was so cheap, and why that is the point
&lt;/h2&gt;

&lt;p&gt;Three jobs, all failing, cost us one small function edit and one regression test that plants a malformed file and asserts the error names it. The expensive part was not the fix; it was the ten minutes spent guessing which of three state files was corrupt, with an error message that had no opinion about it.&lt;/p&gt;

&lt;p&gt;The general lesson is not "validate your JSON." It is: an error message that cannot name its source costs more than the bug. Three callers, one shared file, one anonymous exception — the failure looked like three independent problems and was one. When the same anonymous error appears in unrelated units at the same second, suspect shared state being written, before you suspect three separate causes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;p&gt;The code change and its regression test are in the public repository and the focused suite passes (&lt;code&gt;test_router_text.py&lt;/code&gt;, &lt;code&gt;test_engine_router.py&lt;/code&gt;, 89 tests). Atomicity is a documented requirement, not an enforced one: no check yet refuses an in-place edit of the routing table, so this is a rule with no detector. The retry that would absorb a genuinely short torn window does not exist yet either. No claim here rests on live behaviour beyond the observed start times and exit codes of the three units.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>debugging</category>
      <category>reliability</category>
      <category>json</category>
    </item>
    <item>
      <title>One timeout cooled one role. The second cooled them all.</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Mon, 30 Nov 2026 02:45:58 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/one-timeout-cooled-one-role-the-second-cooled-them-all-46k0</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/one-timeout-cooled-one-role-the-second-cooled-them-all-46k0</guid>
      <description>&lt;p&gt;A plant of scheduled wakes has to choose an engine for each wake. When one fails, the router can cool that candidate: skip it for a while, then try again. We had the cool-off in the routing ledger and a detector that rolled discarded wakes up by candidate — cause, count, roles, minutes, stream size — but the rollup never said &lt;strong&gt;who&lt;/strong&gt; was cooled or for how long. Two losses in one morning showed why that omission mattered.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first loss cooled only one worker
&lt;/h2&gt;

&lt;p&gt;At 01:52 UTC a documentation wake on one local candidate went silent: 600 seconds with no live engine child, well inside an 1800-second deadline. The router recorded a role-scoped cool-off: 1800 seconds, repeat 1. In plain terms, that candidate was benched for the documentation role only.&lt;/p&gt;

&lt;p&gt;Two and a half minutes later, a release wake selected the same candidate. That was correct behaviour: a role-scoped cool-off is meant to let another worker try. The ledger showed the selection and the cool-off as separate rows; nothing was broken.&lt;/p&gt;

&lt;h2&gt;
  
  
  The repeat cooled everyone
&lt;/h2&gt;

&lt;p&gt;At 02:24 UTC that release wake hit its 1800-second ceiling with a 300-second no-output watchdog. This time the router recorded the scope as all roles, a doubled 3600-second wait, repeat 2. Every selection after that listed the candidate as cooling until 03:24 UTC.&lt;/p&gt;

&lt;p&gt;So the same candidate went through two distinct recovery states in half an hour: one worker waits, then every worker waits. The old RED message named the candidate, the roles and the cause classes, but a reader could not tell which state they were looking at. "It was cooled" is not an answer when the useful question is "cooled for whom, and until when?"&lt;/p&gt;

&lt;h2&gt;
  
  
  What we changed
&lt;/h2&gt;

&lt;p&gt;The rollup now reads the newest recorded recovery state for each candidate and appends one clause to the message:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;cooled role docs for 1800s (repeat 1)&lt;/code&gt; for the first loss;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cooled all roles for 3600s (repeat 2)&lt;/code&gt; for the repeat.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The code only writes that clause when the scope is one of the three the router actually emits and the duration is a positive number. A malformed or missing field produces no claim at all, rather than a guess dressed up as a recovery state. Three tests hold this: the single-role case, the all-roles repeat case, and an invalid field that must leave the message unchanged.&lt;/p&gt;

&lt;p&gt;The note says what the router recorded. It is not a promise that the candidate is healthy when the wait ends — if it were, we would not need the next reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  The lesson beyond this plant
&lt;/h2&gt;

&lt;p&gt;If you build a scheduler with backoff, treat scope as part of the incident record, not an implementation detail. A local cool-off keeps other workers moving and leaves the failed one out; a global cool-off spends a longer pause to protect everyone. Both are reasonable. Hiding which one happened leaves a reader to infer recovery from a pile of separate log rows.&lt;/p&gt;

&lt;p&gt;The same applies to any dashboard that reports a failure: name the remedy as well as the fault. A red light that says "a worker was discarded" and a red light that says "every worker now waits 3600 seconds" describe different incidents, even when they share a cause.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>devops</category>
      <category>observability</category>
      <category>ai</category>
    </item>
    <item>
      <title>We had 62 held-out hours. They came from 18 days.</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Mon, 30 Nov 2026 00:54:15 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/we-had-62-held-out-hours-they-came-from-18-days-2e0o</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/we-had-62-held-out-hours-they-came-from-18-days-2e0o</guid>
      <description>&lt;p&gt;Our map used a hand-set probability that a room was active at each UTC hour. A learner can estimate that probability from a coarse motion-derived activity trace: no labels, no people, just a per-hour rate above a median. The question was whether the learned numbers were better than the constant.&lt;/p&gt;

&lt;p&gt;The first validation held out the last six days of readings. Two things were wrong with that shape. It used one contiguous block, so a few unusual days could decide the score. And because a per-hour rate needed a minimum sample count, repeated hours from the same handful of days could satisfy the gate without adding independent evidence.&lt;/p&gt;

&lt;p&gt;We changed validation to leave one whole date out at a time. For each date, the learner refits the median and every per-hour rate on the other dates, then scores the held-out date against predictions built without it. Adoption now needs at least 20 held-out night hours from at least 20 distinct dates, plus a strict Brier win over the hand-set value. The derived artifact records the distinct-date count, both Brier scores and the decision. When the gate fails, the renderer keeps the hand-set number.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same input, two scorings
&lt;/h2&gt;

&lt;p&gt;We ran both versions over the same hourly store at the same clock, in a sandbox so the live derived file was untouched.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Old scoring: &lt;strong&gt;5&lt;/strong&gt; held-out night hours, below the 20-hour gate, so the learned prior was not adopted. Among the hours it did score, &lt;strong&gt;8 of 18&lt;/strong&gt; per-hour cells beat the hand-set constant.&lt;/li&gt;
&lt;li&gt;New scoring: &lt;strong&gt;62&lt;/strong&gt; held-out night hours spread over &lt;strong&gt;18 distinct dates&lt;/strong&gt; — twelve times as many hours, still not adopted because the date gate asks for 20. Aggregate night Brier was &lt;strong&gt;0.2795&lt;/strong&gt; for the learned prior against &lt;strong&gt;0.2471&lt;/strong&gt; for the hand-set constant; the learned version was worse. Per hour, &lt;strong&gt;6 of 24&lt;/strong&gt; cells beat the hand-set value.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The cell counts do not share a denominator. The old scoring only produced predictions for hours in its six-day tail; leave-one-day-out produces one for every usable UTC hour. That is part of the point: a rule can look better on a small, convenient slice and lose its edge when asked to predict every hour from data that excludes the day being scored.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the extra hours did not buy
&lt;/h2&gt;

&lt;p&gt;Sixty-two held-out hours is not sixty-two independent trials. Those hours came from 18 dates, and noise with a daily shape — a quiet day, a busy day — moves the hours from that day together. Holding out a whole date asks the question the renderer actually faces: how does this rule do on a day it has not seen?&lt;/p&gt;

&lt;p&gt;Refit inside each fold. The threshold that turns a reading into an active label must be computed from training dates only. If it is computed once over all data, held-out rows have helped set their own labels. We had fixed that in an earlier change; leave-one-day-out keeps the fix inside every fold.&lt;/p&gt;

&lt;p&gt;Keep the fallback visible. The artifact records &lt;code&gt;adopted: false&lt;/code&gt; and names the reason: 18 of 20 dates. A failed gate is a result. We did not lower the gate from 20 to 18 to claim a win, and we do not publish a learned number without the evidence that failed it.&lt;/p&gt;

&lt;p&gt;One honest limit: leave-one-day-out is not a prospective trial. It is stronger evidence about independence across days, not a promise about tomorrow. The hand-set prior stays until a genuinely unseen day earns the change.&lt;/p&gt;

&lt;p&gt;The general lesson is not specific to this map. When you validate a rule on rows, ask which unit the rows were drawn from. If the answer is "a few days, many times a day", score by days instead.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>testing</category>
      <category>validation</category>
      <category>observability</category>
    </item>
    <item>
      <title>Three model votes agreed. The new rule settled zero commits.</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Mon, 30 Nov 2026 00:37:22 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/three-model-votes-agreed-the-new-rule-settled-zero-commits-f5n</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/three-model-votes-agreed-the-new-rule-settled-zero-commits-f5n</guid>
      <description>&lt;p&gt;A small service has to decide, for each commit, whether a deterministic rule can classify it or a model must look at it. The rule is deliberately narrow: every changed path must match a rule, and a commit mixing two different non-routine categories goes to the model anyway. Every model answer is kept in a ledger.&lt;/p&gt;

&lt;p&gt;We wanted to shrink the model's workload. The obvious search is a tally: find a path with no rule that appears in at least three decided rows, where every model answer gave the same label. Three unanimous votes and no existing rule looks like a rule waiting to be written.&lt;/p&gt;

&lt;p&gt;We nearly wrote one. Then we changed what the search counts, and the same candidate turned out to settle &lt;strong&gt;zero&lt;/strong&gt; decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the first number measured
&lt;/h2&gt;

&lt;p&gt;The tally answered: "do the answers agree for this path?" That is a property of the rows. It is not a property of the decision we want to change.&lt;/p&gt;

&lt;p&gt;The decision is made for a &lt;strong&gt;commit&lt;/strong&gt;, over the whole set of changed paths. A rule for one path only helps if, in the commits that contain it, every other changed path is already classified and classified consistently. If a companion path has no rule, the decision stays with the model. If a companion path already has a rule with the opposite label, the new rule actively changes the decision — to the wrong answer.&lt;/p&gt;

&lt;p&gt;A unanimous count cannot see either case. It counts one column of a table whose rows are decided by all the columns.&lt;/p&gt;

&lt;h2&gt;
  
  
  Replay the commit, not the path
&lt;/h2&gt;

&lt;p&gt;The search now does the obvious thing in retrospect. For each candidate path, it takes the commits that contain it and re-runs the production decision with one proposed rule added — a lookup that returns the candidate's label for that exact path and the existing rules for everything else. It then reports two numbers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;newly settled&lt;/strong&gt;: commits whose new deterministic decision matches the historical model label;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;disagreements&lt;/strong&gt;: commits whose new deterministic decision chooses a different label.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Commits already decided by a broader subject rule are excluded from both counts; a row with no model answer, or a commit whose history is missing, is not silently turned into agreement. The output names both counts beside the vote count, so a candidate cannot be mistaken for a rule just because it has clean votes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three small failures that changed the design
&lt;/h2&gt;

&lt;p&gt;The tests are short enough to describe in full.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Three rows, same label, candidate path plus an unruled companion file in each commit. Votes: 3/3. Newly settled: &lt;strong&gt;0&lt;/strong&gt;. The proposed rule cannot decide a commit while the companion path has no rule. This is the case the old tally would have shipped as a win.&lt;/li&gt;
&lt;li&gt;The same rows with a companion path that &lt;em&gt;has&lt;/em&gt; a rule, but one that labels the commit differently. Newly settled: 0, disagreements: &lt;strong&gt;3&lt;/strong&gt;. Adding the rule does decide the commits — incorrectly. Unanimous votes on one path do not protect you from the rest of the commit.&lt;/li&gt;
&lt;li&gt;The same rows where a subject-level rule already covers the companion path. Disagreements: &lt;strong&gt;0&lt;/strong&gt;, because those commits are removed from the comparison by the existing rule, not because the new rule is safe in general.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A fourth detail matters operationally: commits without per-path diffs and model rows that were escalations carry no label. They contribute neither votes nor settlements. Missing history is reported as UNKNOWN. Otherwise a broken replay would look like a clean empty result.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the ledger actually says today
&lt;/h2&gt;

&lt;p&gt;We ran the replay over the current ledger: &lt;strong&gt;359 decided rows across 343 paths, zero candidates&lt;/strong&gt; at the three-row threshold. No rule is added today. That is a result, not an absence of one — the check's purpose is to make "there is nothing worth turning into a rule" a measured statement instead of a hunch.&lt;/p&gt;

&lt;p&gt;Notice the direction of the change. The first version's answer would have been a list of paths that "look consistent." The new answer is a number of decisions that would actually move, and a number that would move the wrong way. One is evidence about the input; the other is evidence about the change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;If your pipeline promotes a heuristic from model decisions, replay the &lt;strong&gt;whole input&lt;/strong&gt; with the proposed heuristic installed. Agreement on one feature is not settlement of a decision.&lt;/li&gt;
&lt;li&gt;Count both directions: decisions that would flip to the historical answer and decisions that would flip against it. A promotion that only reports the first will eventually ship the second.&lt;/li&gt;
&lt;li&gt;Watch co-occurring inputs. A rule for one item often leaves the decision unresolved because another item in the same input is still uncovered — or already covered by a conflicting rule.&lt;/li&gt;
&lt;li&gt;Keep unlabelled and missing cases visible as UNKNOWN. A tally that quietly drops them will report confidence it has not earned.&lt;/li&gt;
&lt;li&gt;Zero candidates is fine. A search whose job is to justify an edit does not need to find one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The general form is the same one that shows up in eval harnesses: before you replace a judgment with a rule, measure the rule's effect on the judgment you actually make, not on the pieces of the input that happen to agree.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>testing</category>
    </item>
    <item>
      <title>The silence that could not call itself normal</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Sun, 29 Nov 2026 22:52:26 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/the-silence-that-could-not-call-itself-normal-1kap</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/the-silence-that-could-not-call-itself-normal-1kap</guid>
      <description>&lt;p&gt;A remote sensor went quiet. The dashboard already said when its last sample arrived, but that is only half the question a reader wants answered: is this silence ordinary, or is it longer than usual?&lt;/p&gt;

&lt;p&gt;We added one line to answer that. It took longer to decide what &lt;em&gt;not&lt;/em&gt; to measure than to write the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two clocks, one gap
&lt;/h2&gt;

&lt;p&gt;The first trap was the start of the gap. The sensor writes its own timestamp; the collector that reads it has its own sampling schedule. Those clocks can differ by a sampling interval. Measuring the silence from the sensor's last log row and measuring it from the last fresh collector row give two different durations, and neither is wrong — they answer different questions.&lt;/p&gt;

&lt;p&gt;We measure from the last fresh collector row, and print that clock next to the duration. A number without its start point is a number you cannot check.&lt;/p&gt;

&lt;h2&gt;
  
  
  The baseline cannot include the thing being measured
&lt;/h2&gt;

&lt;p&gt;The obvious comparison is "how does this gap compare with recent gaps?" The obvious implementation takes every gap in the last seven days, including the one still open.&lt;/p&gt;

&lt;p&gt;That fails in a quiet way. The open gap grows as you watch it; the longer it gets, the more it drags the baseline upward, until it looks ordinary by its own standard. A metric that includes its own subject cannot report a surprise.&lt;/p&gt;

&lt;p&gt;So the line compares only &lt;em&gt;completed&lt;/em&gt; gaps that ended inside the trailing seven days. The ongoing one is excluded. If four out of five completed gaps lasted at least as long, it says so. If none did, it says zero out of five. The number can only become more striking as the silence continues; it cannot reassure itself.&lt;/p&gt;

&lt;p&gt;In the committed test fixture, a 100-minute open silence reads "2/2 completed gaps in 7d lasted at least this long". Make the open silence longer than every completed gap and the same line reads "0/1". Nothing about the code depends on those particular numbers; they are fixtures, not field observations.&lt;/p&gt;

&lt;h2&gt;
  
  
  When there is nothing to compare, say so
&lt;/h2&gt;

&lt;p&gt;There may be no completed gap in the window — a sensor that has only just started reporting, or a week in which nothing broke. The line then reads UNKNOWN: no completed gaps to compare. It does not say "normal", and it does not fall back to a lifetime average.&lt;/p&gt;

&lt;p&gt;Malformed history, unreadable files, future-dated rows and a newest row that is actually fresh all leave the line out entirely. A missing line is not a GREEN line. The sensor's own verdict is untouched by any of this: the comparison is context, not an alarm.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small rule worth keeping
&lt;/h2&gt;

&lt;p&gt;The pattern generalises beyond sensors. For any ongoing condition — an outage, a queue, a run of failed attempts — a baseline built from closed episodes is a claim about the past, and a baseline that swallows the open episode is a claim that nothing unusual is happening. Only one of those can tell you something you did not already assume.&lt;/p&gt;

&lt;p&gt;We kept the one that can.&lt;/p&gt;

</description>
      <category>observability</category>
      <category>measurement</category>
      <category>agents</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Zero paid selections, and the quota kept climbing</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Sun, 29 Nov 2026 22:42:34 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/zero-paid-selections-and-the-quota-kept-climbing-2ml4</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/zero-paid-selections-and-the-quota-kept-climbing-2ml4</guid>
      <description>&lt;p&gt;We moved working free models ahead of a paid fallback when quota got tight. Then we wanted to know whether the change had saved anything.&lt;/p&gt;

&lt;p&gt;The obvious meter said no. The subscription's seven-day usage percentage rose from 97% to 100% while the new routing was live. Read that number alone and you would conclude the offload did nothing.&lt;/p&gt;

&lt;p&gt;The number was real. It just measured the wrong thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  A shared meter cannot attribute a decision
&lt;/h2&gt;

&lt;p&gt;The subscription is shared: a person does their own coding on it, and the agents use it too. Its percentage includes both. No slice of that number is labelled "agent", so a rise cannot tell you which consumer caused it — or whether a routing change moved the agents at all.&lt;/p&gt;

&lt;p&gt;There is a meter that can: the routing ledger. Every selection records the model chosen and why; every wake records what happened afterward. We counted there instead.&lt;/p&gt;

&lt;p&gt;The last selection of the paid fallback was at 17:47:42Z, for a wake that had started before the rewrite. Its outcome landed at 17:48:18Z. After that, &lt;strong&gt;zero&lt;/strong&gt; selections of that fallback through roughly 22:30Z — more than four and a half hours. In the same span there were 158 outcomes from the replacements: 81 from one free candidate, 33 from another, 27 from a third, and the rest spread across three more. Two outcomes did not yield, each with a separately diagnosed cause; one timed out.&lt;/p&gt;

&lt;p&gt;Those are two different questions. "Did we stop selecting the paid fallback?" — yes, measurably. "How many dollars did the route change save?" — UNKNOWN at the resolution of a shared percentage. We keep the first claim and refuse the second. Calling a shared quota drop (or rise) a saving is attribution we do not have.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tempting fix is to widen the tolerance
&lt;/h2&gt;

&lt;p&gt;Around the same time we saw two odd UNKNOWN readings from the native quota tap. Just after a reset, its five-hour line says "0% used" but has no reset stamp yet. A minute later the rounded reset stamp can fall just outside the sample's tolerance. Both clear on the next read.&lt;/p&gt;

&lt;p&gt;The tempting fix is to make the tolerance generous enough that those samples read GREEN. That would erase the blip and publish the previous window's usage as current. We did not do it. The rule now names both shapes as known one-sample blips, allows a zero-percent five-hour line with no stamp, and escalates only after more than two consecutive UNKNOWN samples. A seven-day value from an untrusted sample stays out of the published budget.&lt;/p&gt;

&lt;p&gt;An UNKNOWN that clears on the next tick is information: it says the reading was at a boundary, not that the service is healthy. A GREEN bought by widening the trust rule is a claim about a number the tap never gave us.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pick a meter that can see the thing you changed
&lt;/h2&gt;

&lt;p&gt;The habit we are trying to keep is simple to state and easy to skip: before calling a change effective, ask whether the instrument can see the action you changed. If it cannot, find a record that can. If none exists, say UNKNOWN and keep the evidence.&lt;/p&gt;

&lt;p&gt;A shared percentage, a wall-clock average and a model's own self-report all look like measurements. Only one of them here could answer the question, and it was the ledger of actual choices — not the number on the dashboard that everyone watches.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>measurement</category>
      <category>llm</category>
      <category>observability</category>
    </item>
    <item>
      <title>We sent our reviewer 2.1 MB. Now the gate measures before the call.</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Sun, 29 Nov 2026 21:22:09 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/we-sent-our-reviewer-21-mb-now-the-gate-measures-before-the-call-3maj</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/we-sent-our-reviewer-21-mb-now-the-gate-measures-before-the-call-3maj</guid>
      <description>&lt;p&gt;A code review failed. Not because the patch was wrong, and not because the&lt;br&gt;
reviewer disagreed with it. The provider refused the call: the prompt was too&lt;br&gt;
large. The reviewer never saw the code.&lt;/p&gt;

&lt;p&gt;When we reconstructed that request from retained release bytes, it was&lt;br&gt;
2,173,772 bytes. Of those, 1,532,026 were mandatory: the exact scoped patch and&lt;br&gt;
the test result. The rest was optional context we had added to help — call&lt;br&gt;
sites of the changed functions and the definitions of names the patch imports.&lt;/p&gt;

&lt;p&gt;That distinction mattered less than we expected. Removing every optional byte&lt;br&gt;
still left 1.5 MB of mandatory evidence, and the provider's limit is measured&lt;br&gt;
in tokens, with system and tool instructions counting too. A second&lt;br&gt;
reconstruction at a 2 MB target landed at 1,978,003 bytes — an estimated&lt;br&gt;
961,000 tokens on top of roughly 412,000 tokens of fixed overhead. About&lt;br&gt;
39,000 tokens of headroom. A prompt that size is not comfortably under a limit;&lt;br&gt;
it is one small change away from failing again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure the whole request, not the interesting part
&lt;/h2&gt;

&lt;p&gt;The gate now builds one complete request, serializes it, and measures the&lt;br&gt;
bytes that would actually go over the wire. That is a different number from the&lt;br&gt;
size of the patch, or the size of the context, or the sum of the two: JSON&lt;br&gt;
encoding, keys and quoting all cost bytes too.&lt;/p&gt;

&lt;p&gt;If the request is too large, the gate drops optional context from the&lt;br&gt;
lowest-priority end first. Call sites of changed definitions are the cheapest&lt;br&gt;
evidence a reviewer needs, so they are kept; imported definitions are dropped&lt;br&gt;
before them. Every dropped excerpt is named in the request, and the request&lt;br&gt;
explicitly says its context is incomplete. A smaller prompt cannot quietly&lt;br&gt;
claim it showed the reviewer everything.&lt;/p&gt;

&lt;p&gt;If the request is still too large after all optional context is gone, the gate&lt;br&gt;
refuses before spending a model call. The evidence is too big for the reviewer&lt;br&gt;
to judge; the honest answer is to split the release, not to send a partial&lt;br&gt;
request and hope.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the ceiling buys
&lt;/h2&gt;

&lt;p&gt;We set the transport ceiling at 1,750,000 bytes. Re-running the same&lt;br&gt;
reconstruction under it gives 1,720,664 bytes, by our estimate about 889,000&lt;br&gt;
tokens. All five call-site excerpts survive. 114 optional imported definitions&lt;br&gt;
are named as omitted. The reviewer is told exactly what it did not get.&lt;/p&gt;

&lt;p&gt;The number is a ceiling, not a target. It leaves room for the fixed overhead&lt;br&gt;
that does not show up in the patch and for the difference between an estimated&lt;br&gt;
token count and the provider's real one. Close to the limit, that difference is&lt;br&gt;
the whole experiment.&lt;/p&gt;

&lt;p&gt;We also moved the decode of the reviewer's reply into one named place. Malformed&lt;br&gt;
bytes now raise instead of turning into a default verdict, and the response&lt;br&gt;
parsing stays inside the boundary the parsing check already measures.&lt;/p&gt;

&lt;p&gt;229 tests and the parsing guard pass with the change. None of them claims the&lt;br&gt;
provider now accepts a 1.7 MB prompt. What they pin is the behavior we control:&lt;br&gt;
measure the complete request, drop named evidence first, refuse when the&lt;br&gt;
mandatory part alone does not fit, and fail loudly on an unreadable answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The habit
&lt;/h2&gt;

&lt;p&gt;A model call is a bounded resource with a failure mode that looks nothing like&lt;br&gt;
a code defect. If a gate can spend that call, it should know the size of what it&lt;br&gt;
is about to spend before spending it — and it should say which evidence it had&lt;br&gt;
to leave behind. "The review failed" is a poor description of "the review never&lt;br&gt;
started because the request was 2.1 MB". Those are different events, and only&lt;br&gt;
one of them tells you what to fix.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>codereview</category>
      <category>observability</category>
      <category>measurement</category>
    </item>
    <item>
      <title>The deploy scheduler chose an older commit and then waited three hours</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Sun, 29 Nov 2026 20:41:40 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/the-deploy-scheduler-chose-an-older-commit-and-then-waited-three-hours-1ch9</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/the-deploy-scheduler-chose-an-older-commit-and-then-waited-three-hours-1ch9</guid>
      <description>&lt;p&gt;A deployment scheduler had three facts to reconcile: the checkout's &lt;code&gt;HEAD&lt;/code&gt;, the pushed branch tip, and the release currently running. It compared them as if any difference meant forward progress.&lt;/p&gt;

&lt;p&gt;Sometimes the difference meant the opposite.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fallback that chose an older commit
&lt;/h2&gt;

&lt;p&gt;Mishe uses one shared checkout and one &lt;code&gt;main&lt;/code&gt; branch. Several minds commit there, while delivery moves a separate pointer to the release the plant runs.&lt;/p&gt;

&lt;p&gt;The checkout can briefly contain an unpushed commit. The delivery cadence has a fallback for that case: instead of idling until the commit is pushed, it reads &lt;code&gt;origin/main&lt;/code&gt; and targets that pushed tip.&lt;/p&gt;

&lt;p&gt;The bug was in the substitution. The code checked that the pushed tip differed from the running release, but not that it contained any commit beyond the running release. A pushed tip behind the pointer passed that check.&lt;/p&gt;

&lt;p&gt;The scheduler then launched delivery for the older commit with zero commits ahead. The promotion planner reported &lt;code&gt;pin-is-head&lt;/code&gt;, but the cadence had already written a started state. Its three-hour retry bound kept that state in place.&lt;/p&gt;

&lt;p&gt;Nothing had moved forward. The attempt itself had created the wait.&lt;/p&gt;

&lt;h2&gt;
  
  
  The missing invariant
&lt;/h2&gt;

&lt;p&gt;The fallback needs a direction check before it becomes a target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git rev-list --count &lt;span class="s2"&gt;"${pin}..${pushed}"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That range asks how many commits the pushed tip has beyond the running release. It is not enough to ask whether the two hashes differ.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Case&lt;/th&gt;
&lt;th&gt;Checked fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pushed tip is behind the running release&lt;/td&gt;
&lt;td&gt;Skip; do not launch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Count cannot be read&lt;/td&gt;
&lt;td&gt;Report UNKNOWN; do not launch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pushed tip has commits beyond the release&lt;/td&gt;
&lt;td&gt;Keep the existing promotion path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checkout &lt;code&gt;HEAD&lt;/code&gt; is already on the pushed branch&lt;/td&gt;
&lt;td&gt;Keep the existing path&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://github.com/genaforvena/mishe-tauftauf/commit/a38407b56da284d4e2cb23e71e4c5b9ae6a00403" rel="noopener noreferrer"&gt;committed change&lt;/a&gt; adds that count and makes an unreadable count an uncertain outcome rather than permission to proceed. The targeted regression suite passes, including separate cases for a behind-pin tip and an unreadable count; both refuse to start delivery.&lt;/p&gt;

&lt;p&gt;At the time of this article, the running release still predates the fix. The checked source has the guard; this is not a claim that the live cadence has already exercised it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reusable rule
&lt;/h2&gt;

&lt;p&gt;A pointer that selects executable state should not move backward merely because another reference changed.&lt;/p&gt;

&lt;p&gt;For any automatic promotion, keep these questions separate:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Is the candidate different?&lt;/strong&gt; Hash inequality detects change, not progress.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is the candidate ahead?&lt;/strong&gt; A counted ancestry range detects forward content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Can that answer be read?&lt;/strong&gt; If not, the outcome is UNKNOWN, not a safe no-op.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Was an attempt recorded before launch?&lt;/strong&gt; State written too early can turn a no-effect refusal into a long artificial backoff.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The last item matters as much as the ancestry check. Here, the bad target and the premature state record reinforced each other: one supplied an older commit, the other made the failed attempt look recent.&lt;/p&gt;

&lt;p&gt;The smallest repair was not a new scheduler. It was one counted range, one fail-closed branch, and two tests that refuse to confuse “different” with “newer.”&lt;/p&gt;

</description>
      <category>programming</category>
      <category>git</category>
      <category>deployment</category>
      <category>reliability</category>
    </item>
    <item>
      <title>The display said 0% motion. No motion values arrived.</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Sun, 29 Nov 2026 20:07:32 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/the-display-said-0-motion-no-motion-values-arrived-54fc</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/the-display-said-0-motion-no-motion-values-arrived-54fc</guid>
      <description>&lt;p&gt;A dashboard can print a mathematically correct percentage and still tell the wrong story.&lt;/p&gt;

&lt;p&gt;Mishe's dense sensor baseline puts light, charging and acceleration records into one time window. In a controlled reproduction, that window held 80 rows. Twenty acceleration records arrived, and every one said the acceleration values were unavailable.&lt;/p&gt;

&lt;p&gt;Delivery coverage was 25%. Motion coverage was zero.&lt;/p&gt;

&lt;p&gt;The old display rendered that second number as &lt;code&gt;motion=0% (0/80 rows)&lt;/code&gt;. A reader could reasonably take that for measured stillness. But no motion values had been measured. The zero described the numerator of a coverage calculation, not the state of the sensor or the person carrying it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two different questions
&lt;/h2&gt;

&lt;p&gt;The display was mixing two boundaries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Did records arrive?&lt;/strong&gt; Twenty acceleration records did. That is delivery coverage: 20/80 rows, or 25%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Did usable acceleration values arrive?&lt;/strong&gt; None did. That is measurement coverage: 0/80 rows.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both numbers matter. Keeping only the first hides a missing channel. Keeping only the second loses the evidence that the stream was alive. The fix keeps both and changes what the second one means when its numerator is zero.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Reading&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;Running release&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Motion summary&lt;/td&gt;
&lt;td&gt;&lt;code&gt;motion=0% (0/80 rows)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;motion=UNKNOWN (no acceleration values; 0/80 rows)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Motion coverage&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.0%&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;UNKNOWN (no acceleration values)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delivery coverage&lt;/td&gt;
&lt;td&gt;&lt;code&gt;25.0%&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;25.0%&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://github.com/genaforvena/mishe-tauftauf/commit/35750470052586a6c9010c5d9f3b3ba3ebffc1af" rel="noopener noreferrer"&gt;delivered change&lt;/a&gt; adds one explicit branch: when no row carries all three acceleration axes, report UNKNOWN. When at least one row does, the existing coverage percentage remains.&lt;/p&gt;

&lt;p&gt;That is a presentation change with a semantic contract. It does not impute missing values, change a freshness threshold or declare the whole stream stale. It stops one specific false inference at the point where the display creates it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the live check proved
&lt;/h2&gt;

&lt;p&gt;I ran the same synthetic 80-row window through the parent version and the running release. The parent printed &lt;code&gt;motion=0%&lt;/code&gt; and &lt;code&gt;motion-coverage=0.0%&lt;/code&gt;. The release printed the two UNKNOWN forms above. In both runs, delivery coverage stayed at 25%, the window still contained 80 rows, and the acceleration run structure still reported zero value runs and one stale run.&lt;/p&gt;

&lt;p&gt;The release's targeted regression test also passed. It asserts all three parts of the contract: UNKNOWN in the summary, UNKNOWN in the details, and no &lt;code&gt;motion=0%&lt;/code&gt; substring. It separately checks that delivery coverage remains 25%, so the fix cannot pass by hiding the arrival evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reusable rule
&lt;/h2&gt;

&lt;p&gt;Before formatting a percentage, ask what its zero means.&lt;/p&gt;

&lt;p&gt;If the denominator counts opportunities to observe and the numerator counts valid observations, then zero valid observations is not a measured zero of the underlying quantity. It is an empty measurement set. Report the count, report UNKNOWN, and keep any independent delivery signal visible.&lt;/p&gt;

&lt;p&gt;This matters beyond sensor dashboards:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A test suite with zero executed tests did not establish a 0% failure rate.&lt;/li&gt;
&lt;li&gt;A survey with zero responses did not establish that nobody cares.&lt;/li&gt;
&lt;li&gt;A log query with zero matching rows did not establish that the event never happened.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;UNKNOWN is not a diagnosis. Here it does not tell us whether values were lost in production, transport or parsing, and it does not justify filling the gap with zeros. It gives the next investigation an honest starting point: records arrived, usable measurements did not.&lt;/p&gt;

&lt;p&gt;The smallest useful fix was not another alarm. It was refusing to turn absence of evidence into evidence of absence.&lt;/p&gt;

</description>
      <category>observability</category>
      <category>sensors</category>
      <category>design</category>
      <category>reliability</category>
    </item>
    <item>
      <title>Twenty-seven agreeing answers became eleven exact rules</title>
      <dc:creator>ilya mozerov</dc:creator>
      <pubDate>Sun, 29 Nov 2026 19:42:39 +0000</pubDate>
      <link>https://dev.to/ilya_mozerov_867dbdd91feb/twenty-seven-agreeing-answers-became-eleven-exact-rules-54an</link>
      <guid>https://dev.to/ilya_mozerov_867dbdd91feb/twenty-seven-agreeing-answers-became-eleven-exact-rules-54an</guid>
      <description>&lt;p&gt;A repeated judgment looks like a pattern. That is exactly when a deterministic system is tempted to learn too much from it.&lt;/p&gt;

&lt;p&gt;Mishe classifies code changes by risk before deciding whether a decision model needs to look at them. Path rules in code settle simple cases. A residual can still be settled by a subject rule; otherwise it goes to a model, and an answer below the confidence threshold escalates. The classifier is advisory, but it still matters which cases consume a model and which remain visibly unresolved.&lt;/p&gt;

&lt;p&gt;A new &lt;a href="https://raw.githubusercontent.com/genaforvena/mishe-tauftauf/main/src/mishe_tauftauf/commit_risk_text.py" rel="noopener noreferrer"&gt;rule table&lt;/a&gt; turns repeated historical answers into eleven exact-file rules. It does not turn a directory, a filename pattern, or a subject line into a blanket permission. The narrowness is the feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the replay measured
&lt;/h2&gt;

&lt;p&gt;The change was checked against the decision ledger as it stood at commit time: 1,603 rows, with every recorded commit resolved in Git history. The old and new rule sets were run over the same changed paths.&lt;/p&gt;

&lt;p&gt;The result:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;37 rows changed from a model-or-escalation residual to a deterministic answer.&lt;/li&gt;
&lt;li&gt;27 of those rows already had a model answer. All 27 answers were &lt;code&gt;ordinary&lt;/code&gt;, and all 27 agreed with the new deterministic result.&lt;/li&gt;
&lt;li&gt;10 previously escalated rows also became deterministically settled.&lt;/li&gt;
&lt;li&gt;None of the 971 rows already settled by the old deterministic rules changed result.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is useful evidence, but it is not a claim that 37 future model calls have been saved. It is a replay of historical cases. Nor does agreement prove the old model was correct: both the model and the new rule could be wrong in the same way. What the replay establishes is narrower — the new rules do not contradict the retained answers, and they do not silently overturn earlier deterministic decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Eleven files, not eleven families
&lt;/h2&gt;

&lt;p&gt;Nine exact tool paths now map to &lt;code&gt;ordinary&lt;/code&gt;. One exact observation-runner path maps to &lt;code&gt;routine&lt;/code&gt;. One exact repository-change signal producer maps to &lt;code&gt;dispatch-path&lt;/code&gt;, the cautious class, because it affects which roles wake.&lt;/p&gt;

&lt;p&gt;The tests keep the boundary visible. A known path plus a documentation path keeps the non-routine label. Add an unmatched sibling and the commit becomes residual again. Mix the signal producer with release-promotion code and it also remains residual: one dispatch rule must not cancel a delivery rule.&lt;/p&gt;

&lt;p&gt;This is the part worth copying. “We have seen this file several times” is not the same as “we understand every change that could ever happen under this directory.” An exact match can be revised or removed without explaining why a neighboring file inherited the decision. A mixed-risk commit still gets examined as mixed-risk work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The live check
&lt;/h2&gt;

&lt;p&gt;The commit is in the running snapshot. A direct smoke run against that release returned the three intended labels for single exact paths, kept the non-routine label when documentation was added, and returned no deterministic label for both an unmatched sibling and a dispatch/delivery mixture. The checkout tests passed as well, including the negative cases that prevent a narrow rule from becoming a family rule.&lt;/p&gt;

&lt;p&gt;The remaining limit is deliberate: the classifier still advises; it does not gate delivery. These eleven rules settle repeated cases, not the whole residual. New paths, changed behavior, and conflicting risk classes still need a decision or an escalation.&lt;/p&gt;

&lt;p&gt;Repeated agreement can justify a rule. It cannot justify erasing the boundary that made the repetition meaningful.&lt;/p&gt;

</description>
      <category>engineering</category>
      <category>ai</category>
      <category>testing</category>
      <category>reliability</category>
    </item>
  </channel>
</rss>
