<?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: Yoseph Eikelman</title>
    <description>The latest articles on DEV Community by Yoseph Eikelman (@yussieik).</description>
    <link>https://dev.to/yussieik</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%2F1923144%2Fc10008cd-a03d-4e9e-bf98-a6f38f308cb0.png</url>
      <title>DEV Community: Yoseph Eikelman</title>
      <link>https://dev.to/yussieik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yussieik"/>
    <language>en</language>
    <item>
      <title>A backtest leak, and two date filters that quietly kept every row</title>
      <dc:creator>Yoseph Eikelman</dc:creator>
      <pubDate>Thu, 19 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/yussieik/a-backtest-leak-and-two-date-filters-that-quietly-kept-every-row-47ga</link>
      <guid>https://dev.to/yussieik/a-backtest-leak-and-two-date-filters-that-quietly-kept-every-row-47ga</guid>
      <description>&lt;p&gt;A stock-market specialist I worked with looks for one chart shape, the flagpole: a sharp run up, a short pause, then a break higher. The specialist spots it by eye, and an eye has two limits. One person can watch a handful of charts, and the shape forms and breaks inside a single trading day. And an eye cannot be tested: nobody can ask it how it would have judged fifteen years of charts. My job was to turn that eye into rules a machine applies the same way every time, to test them on years the tuning never touched, and to run them while the market is open.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure:&lt;/strong&gt; Simulated data. The shape and the order of the levels follow the detector that ran live; the prices and volumes are invented. &lt;a href="https://yussieik.com/notes/specialist-eye-to-live-scanner/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The calls I made
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;The specialist decides what to look for; the data decides the numbers.&lt;/strong&gt; I sat with the specialist and turned each part of the shape into a setting: how far and how fast the run up, how straight it climbs, how far the pause may drift and for how long, how far the break must go, how much of the day must be left, how volume compares with its recent normal. Fourteen settings in all. [1] The optimiser only chooses their values. It cannot invent a rule, so every rule stays one the specialist can read and argue with. The obvious alternative is a model trained on charts the specialist labels. It would find its own rules, and the specialist could not read them or argue with them.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Hold back two sets of years, not one.&lt;/strong&gt; Fourteen settings tuned on history will fit history, so years are held back. In June I tuned on 2010 to 2022 and kept 2023 on for one forward test. It found 17 patterns in the held-back years, and all 17 had already helped choose the settings, so the test was grading what the tuning had seen. [1] The story of that leak, and of two fixes that failed quietly, is below. Since August the years split three ways: training years to tune on, validation years to choose between candidates, and test years no code optimises against. One set of held-back years cannot both choose between candidates and give the final check. [2]&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Prefer settings that behave the same on years they saw and years they didn’t.&lt;/strong&gt; Until August the search chased one score. A set that shines in training and fades on new years is what overfitting looks like, so now the optimiser scores training and validation apart and prefers candidates whose two scores are close. [2] I accepted the price: once validation steers the choice, it is no longer unseen. And the test years are unseen only by code. The screen used to pick a set for live showed its test score too, so the last guard is the person choosing.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Levels, not one alarm.&lt;/strong&gt; Live, the scanner raises each stock through three levels as the shape builds: a pole, a pause that holds, a complete pattern. Higher levels are rechecked more often, and the dashboard draws the shape on the stock’s chart, so the specialist sees why a stock was flagged, not just that it was.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;On 9 September 2025 the scanner was set to watch 39 stocks during market hours, on settings from a tuning run of 28 August, after the leak was closed. [3] The specialist’s eye, which could follow a handful of charts, was now set to run on 39 at once, the same way every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;The detector takes the day’s turning points and treats every earlier-to-later pair as a candidate pole. Its first cut, verbatim from the version that ran live:&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="n"&gt;price_pct_increases&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dst_prices&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;src_prices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;src_prices&lt;/span&gt;

&lt;span class="n"&gt;time_valid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time_diffs&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;increase_max_time&lt;/span&gt;

&lt;span class="n"&gt;min_increase_valid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;price_pct_increases&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;min_percent_increase&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="no"&gt;FP_TOLERANCE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;max_percent_increase&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"inf"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;max_increase_valid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ones&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;price_pct_increases&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;max_increase_valid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;price_pct_increases&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;max_percent_increase&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="no"&gt;FP_TOLERANCE&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;valid_mask&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time_valid&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;min_increase_valid&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;max_increase_valid&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each later filter narrows the list: the closes must stay near a straight line fitted through the pole, the pause must hold, the break must come with enough of the day left, and volume must beat the average of a set number of past days times a multiplier.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The held-out years were already scored.&lt;/strong&gt; In June 2025 the optimiser trained on 2010 to 2022 and kept January 2023 to April 2025 for a forward test. The cut-off date travelled down to the function that runs the detector, whose docstring promised “Only flagpoles starting before this date will be included”. The only code that used it was a debug print. In the run of 18 June the best set was scored on 107 patterns, and 17 were dated after 1 January 2023. The forward test then found 17 patterns in the held-out years: the same 17 dates. [1] It reloads the patterns the optimiser stored, by design. What made it worthless is that all 17 had already helped choose the settings.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://yussieik.com/notes/specialist-eye-to-live-scanner/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Two fixes then failed quietly. On 2 July the score got a real date filter. It expected a timestamp column, and no code in the repository wrote one:&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;if&lt;/span&gt; &lt;span class="s2"&gt;"Datetime"&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warning&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"No Datetime column, cannot filter by date"&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;df&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On 13 July the filter was rewritten to read the date out of the pattern’s name, and it still kept every row: it looked for the name in the table’s index, but the loader read the file back with the name as an ordinary column. The filter first cut on 31 July, when the statistics files moved to a format that keeps the index. [4] For about four weeks the code had a filter and the scores had a leak, and the only trace was a warning in a log.&lt;/p&gt;

&lt;p&gt;Since 30 July each pattern is also stamped training, validation or test when it is saved. [5] The stamp needs both boundary dates to reach the detector; without them every pattern from an optimiser trial is stamped training. What it changes is that a mistake is visible: a 2024 pattern marked training is caught by opening one file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The search.&lt;/strong&gt; Until 11 August it was Bayesian optimisation chasing one score. On 11 August it got two scores, training and validation, and became NSGA-II, a genetic algorithm that keeps the set of trade-offs where neither score can rise without the other falling. From 13 August the pick from that set gives closeness of the two scores 40% of the weight. [2]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live.&lt;/strong&gt; During market hours per-second price and volume arrive over one WebSocket for every stock in the live set. [3]&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In market hours&lt;/p&gt;

&lt;p&gt;Per-second bars for every ticker in the live set arrive over one WebSocket.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Every minute&lt;/p&gt;

&lt;p&gt;Each ticker’s seconds are rolled into a minute candle.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Own process&lt;/p&gt;

&lt;p&gt;The scanner runs the detector in a separate process, so a slow scan never stalls the stream.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Three levels&lt;/p&gt;

&lt;p&gt;Level 1 is a pole, level 2 a pause that holds, level 3 a complete pattern; higher levels are rechecked more often.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On screen&lt;/p&gt;

&lt;p&gt;The dashboard marks the ticker’s level and draws the pole, the pause and the break on its chart.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Market dataper-second bars&lt;/p&gt;

&lt;p&gt;Minute candlesone series per ticker&lt;/p&gt;

&lt;p&gt;Detectorin codesettings from the live set&lt;/p&gt;

&lt;p&gt;Levelpole · pause · complete&lt;/p&gt;

&lt;p&gt;Alertticker marked on screen&lt;/p&gt;

&lt;p&gt;In January 2026 I made streaming start itself at 09:35 New York time, five minutes after the open. That code was never committed. [3]&lt;/p&gt;

&lt;h2&gt;
  
  
  What transfers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;The expert decides which rules exist; the data decides their values.&lt;/strong&gt; Rules a domain expert can read stay rules they can argue with.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Make the split part of the data, not an argument.&lt;/strong&gt; A date passed through several layers can be dropped at any of them. A period written on each record can be checked by opening it.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A filter that cannot run should stop the run.&lt;/strong&gt; Warn-and-continue turned a leak into a log line for four weeks.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Check that your test can disagree.&lt;/strong&gt; If the test reads what the optimiser stored, count the overlap before trusting the agreement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run of 18 Jun 2025, 14 settings, trained on 2010–2022: 17 of the top set's 107 scored patterns came from 2023 on; the forward test found the same 17&lt;/li&gt;
&lt;li&gt;From 30 Jul 2025 the years split three ways; from 11 Aug a genetic search scores training and validation apart; from 13 Aug it favours close scores&lt;/li&gt;
&lt;li&gt;9 Sep 2025: 39 tickers set for live scanning, all on settings from an optimiser run of 28 Aug. Jan 2026: a 09:35 New York auto-start, never committed&lt;/li&gt;
&lt;li&gt;Date filter added 2 Jul 2025 looked for a column no code wrote and kept every row; a 13 Jul rewrite kept every row too. It first cut on 31 Jul 2025&lt;/li&gt;
&lt;li&gt;Since 30 Jul 2025 a pattern saved with both boundary dates set carries its period: training, validation or test&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yussieik.com/notes/specialist-eye-to-live-scanner/" rel="noopener noreferrer"&gt;yussieik.com&lt;/a&gt;, where the figures are animated.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>programming</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>An AI checks a medical product's servers from counts, not log lines, and code overrules it on anything critical</title>
      <dc:creator>Yoseph Eikelman</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/yussieik/an-ai-checks-a-medical-products-servers-from-counts-not-log-lines-and-code-overrules-it-on-542m</link>
      <guid>https://dev.to/yussieik/an-ai-checks-a-medical-products-servers-from-counts-not-log-lines-and-code-overrules-it-on-542m</guid>
      <description>&lt;p&gt;ClinicLog, my practice-management product for therapists, runs in two regions, Israel and the US. Its server logs are where personal data hides: user names, IP addresses, the text of an error. Its privacy policy promises that error logs are stripped of personal data before any outside service sees them. Plain threshold alerts either flood a small team or miss the slow problems: a disk that fills a little every day, an error count that doubles overnight.&lt;/p&gt;

&lt;p&gt;An AI model is good at reading slow signals. The obvious build hands it the logs and lets it say whether all is well. That breaks two things: the logs leave our servers, and a model gets to decide that nothing is wrong.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure:&lt;/strong&gt; Example. The names and IP addresses are invented. The rules follow the health gate's code; the model's PASS is supposed, to show what the rule in code does with it. &lt;a href="https://yussieik.com/notes/llm-health-gate/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The calls I made
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The model gets counts, not log lines.&lt;/strong&gt; Before anything goes to the model, the lines are dropped. It gets numbers instead, such as how many logins by users nobody expected, how many server errors, how many malware hits, along with what the checks in code found. The lines stay in a private file on our servers, and an alert email points there instead of quoting them. I turned down sending the lines with the names masked: a mask has to recognise every name it will ever meet, and a count has nothing to mask. The model loses little: to see a disk filling or errors doubling, it needs the numbers and the last seven runs, not the words.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code has the last word on anything critical.&lt;/strong&gt; Plain checks in code run first and give each finding a severity. The model reads the counts and those findings and answers PASS or ALERT. Then one rule in code: if any finding is critical, the answer is ALERT, whatever the model said, and if the model had said PASS, the email says it was overridden. If the model is down, the checks decide alone. The obvious alternative is to leave it to the instructions the model gets, which say the same thing. It fails because an instruction is a request, and a rule in code runs every time. Below critical, the model does decide, and it may play a warning down. Code guarantees the floor; the model filters the noise above it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Email only on an alert.&lt;/strong&gt; A run that passes sends no email, only one routine message to a chat channel, and slow trends wait for a weekly report. The obvious alternative is an all-clear email after every run. It fails because four a day teaches you to stop opening them, and the one that matters goes unread with the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;The gate runs at 01:00, 07:00, 13:00 and 19:00 UTC. The last run before I wrote this, 1 November 2026 at 07:00, was all clear: no email. [1] Five tests plant a patient name or an IP address in the input and check it never reaches the model. [2]&lt;/p&gt;

&lt;p&gt;One false alarm taught me the most. On 22 July the gate emailed a critical: the certificate had expired. It hadn’t. A check had failed, the code stored the failure as minus one days, and the model read minus one as expired. No rule in code had raised it, so there was nothing to overrule. Worse, the certificate check in code had a hole: it would have missed a certificate that really had expired. Both were fixed that day. [3]&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;About forty shell commands per host, over ssh for the remote region, collect disk, memory, containers, backups (local and offsite), certificate dates, failed logins, intrusion-detection events, database errors. Plain threshold checks turn those into findings, each with a severity. The model receives the metrics, the findings and the previous seven runs, and returns a fixed shape: &lt;code&gt;PASS&lt;/code&gt; or &lt;code&gt;ALERT&lt;/code&gt;, a summary, and findings with evidence. [4] The history matters most: thresholds can’t see “this has grown at each of the last seven runs”, a model reading a trend can.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://yussieik.com/notes/llm-health-gate/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The barrier is an &lt;code&gt;if&lt;/code&gt; statement, right after the model’s answer is parsed:&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="c1"&gt;# SAFETY BARRIER: override verdict if deterministic checks found CRITICAL&lt;/span&gt;
&lt;span class="n"&gt;has_critical&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;any&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"severity"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"CRITICAL"&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;deterministic_findings&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;has_critical&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"verdict"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"ALERT"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"verdict"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ALERT"&lt;/span&gt;
    &lt;span class="n"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"summary"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&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;"[OVERRIDDEN] AI said PASS but deterministic checks found "&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"CRITICAL issues. {verdict.get('summary', '')}"&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Log lines carry bound SQL parameters, exception messages, user names in auth logs. Any field ending in &lt;code&gt;_samples&lt;/code&gt; is dropped, and a finding’s “first matching line” is cut before it is sent. That is a naming convention, not a detector: a new field that carries text has to follow it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure:&lt;/strong&gt; Invented names and documentation IP ranges. &lt;a href="https://yussieik.com/notes/llm-health-gate/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The model learns that there were &lt;em&gt;three&lt;/em&gt; SSH logins by users nobody expected. Which users, and the lines themselves, stay in a private history file on the server that runs the gate. One of the five privacy tests checks that raw findings from earlier runs never reach the model either.&lt;/p&gt;

&lt;p&gt;The false alarm of 22 July, in full: one of the forty ssh connections the gate opened back to back was reset during the handshake, the certificate check came back empty, and the code stored “check failed” as &lt;strong&gt;minus one&lt;/strong&gt; days. The threshold only looked at 0 to 7 days, so it never fired. Replay it in the diagram above, under 2026-07-22.&lt;/p&gt;

&lt;p&gt;Two fixes went in that day. The gate’s metric commands now share one multiplexed ssh connection. And a certificate check that fails is reported as unknown, a warning, never as minus one, while a negative number is now its own critical. In October the same rule reached the login and malware counts: a failed count of logins isn’t “no logins”, it’s “I couldn’t look”. I am still applying it check by check.&lt;/p&gt;

&lt;h2&gt;
  
  
  What transfers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Let code set the floor; let the model read the trend.&lt;/strong&gt; Thresholds for what must never be missed, a model for what moves slowly.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Send counts, keep text.&lt;/strong&gt; Most of the judgment survives without a single raw line.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A failed measurement is not a measurement.&lt;/strong&gt; “Unavailable” has to be a value the whole pipeline understands.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Runs at 01:00, 07:00, 13:00 and 19:00 UTC; last run 1 Nov 2026, 07:00: all clear, no email sent&lt;/li&gt;
&lt;li&gt;14 tests; 5 plant a name or IP and check it never reaches the model&lt;/li&gt;
&lt;li&gt;A false alarm on 22 Jul 2026 and its fix, documented in the code&lt;/li&gt;
&lt;li&gt;The gate script: 1,721 lines, 51 commits since 22 Mar 2026&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yussieik.com/notes/llm-health-gate/" rel="noopener noreferrer"&gt;yussieik.com&lt;/a&gt;, where the figures are animated.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>devops</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>An AI reviews each offer developers make to a group of home buyers. When it invents a discount, its review is thrown away.</title>
      <dc:creator>Yoseph Eikelman</dc:creator>
      <pubDate>Thu, 12 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/yussieik/an-ai-reviews-each-offer-developers-make-to-a-group-of-home-buyers-when-it-invents-a-discount-its-1c98</link>
      <guid>https://dev.to/yussieik/an-ai-reviews-each-offer-developers-make-to-a-group-of-home-buyers-when-it-invents-a-discount-its-1c98</guid>
      <description>&lt;p&gt;On Groupliv, people who want to buy a new apartment form a group, and developers send that group private offers. The members compare them and vote. When an offer arrives, Liv, the product’s AI advisor, writes one review into the group’s feed: is it cheap or expensive for the area, and what is weak about it. Every member who opens it reads the same review. [1]&lt;/p&gt;

&lt;p&gt;One mistake there is worse than all the others: a false sentence about money. Writing “after the discount” about an offer with no discount misleads a whole group about the thing it is negotiating. Telling the model not to was the obvious fix. It held on one run and broke on the next, from the same facts. [2]&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure:&lt;/strong&gt; Example. The offer, the wording and the numbers are invented. The steps and the rule (one retry, then drop, only for an offer with no discount and a price per m² computed in code) follow the code that runs in production. &lt;a href="https://yussieik.com/notes/ai-review-invented-discount/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The calls I made
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The AI writes sentences; code does the sums.&lt;/strong&gt; I could have handed the model the prices and the area’s market data and let it compare. The first version did roughly that, without the offer’s floor area. Given a benchmark and nothing to divide, it said nothing about price at all. [3] Now the price comparison arrives finished, computed in code, and the same figure sits on the offer card on its own, so a buyer sees it whether or not the AI mentions it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A check in code, not firmer wording.&lt;/strong&gt; When the AI described a list price as discounted, the tempting fix was a stronger instruction. But the same facts produced the right sentence on one run and the wrong one on the next. Wording can lower the odds of a sentence like that; it cannot remove them. So when an offer has no discount and code has priced it, code reads the review and refuses it if it uses any of ten phrases that present the price as net of a discount. The list is narrow on purpose: a review that says the offer has no discount must pass, or the retry would fail the same way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An empty slot over a wrong sentence.&lt;/strong&gt; A review that fails the check is regenerated once. If the retry says it again, the review is dropped instead of posted. I chose a gap over a guess: the card still shows the measured price, and the group can still read the offer itself. A false claim about a discount, once members have read it, cannot be taken back.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What every member reads gets only what every member may see.&lt;/strong&gt; On 29 September a one-member group’s review quoted that member’s budget back to the group. The AI stopped receiving budgets that day. [4] A review is a shared document, so personal numbers stay out of it, even when they would make it sharper.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;Eleven offers have reached groups with real buyers, and all eleven carry a review. [1] Five of those reviews were of offers with no discount. All five were written on 19 and 20 August, before the check existed, and every one of them contains a phrase it now refuses. [5] The four reviews written since were all of offers that did carry a discount, so the check has not yet had to fire in production. It was built for the next offer without one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;The AI here is a single structured call that returns a review and a confidence. It has no tools. Everything it knows is gathered before the call and rendered into a block of facts appended to the prompt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The numbers.&lt;/strong&gt; Code loads the apartments the offer covers and computes their price per square meter net of the offer’s discount, as a median so that one penthouse in the set barely moves it. The benchmark is a median of recent new-build deals in the same neighborhood or city, quoted only when at least 20 deals stand behind it; below that the facts say there is no reliable benchmark and tell the model not to rule on cheap or expensive. [3] Every line of the facts that carries the gap names its scope, city or neighborhood, because a city median read as “the area” is a different claim.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The failure.&lt;/strong&gt; For an offer with no discount, the facts block carries the developer’s list price unchanged. On 21 August the facts block gained an explicit line for that case: this is the list price, do not describe it as after a discount. Measured the same day, with that line in place, on an offer with no discount: one generation said the offer carried no group discount; the next, from identical facts, wrote “after the discount from the developer’s price list”. [2] Those facts were not clean. An older line, written for offers that do carry a discount, still went out with every offer: the discount is off the developer’s list price, and the actual price is lower. The model was holding two instructions that pull apart, and on 21 August it followed each one once. That line should only appear when there is a discount. But the check does not depend on the prompt being right: the next contradiction will not announce itself.&lt;/p&gt;

&lt;p&gt;So the check went in the same day, right after the model answers. This is the code as it runs:&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;if&lt;/span&gt; &lt;span class="nf"&gt;_claims_a_discount_that_does_not_exist&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warning&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"advisor_claimed_absent_discount"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;offer_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;offer_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;deps&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;usage_limits&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;UsageLimits&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request_limit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;agent_max_request_limit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;_claims_a_discount_that_does_not_exist&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"advisor_verdict_dropped"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;offer_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;offer_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Narrow on purpose.&lt;/strong&gt; The check fires only when the offer has no discount, and only on ten phrases, six Hebrew and four English, that present a price as net of one: “after the discount”, “before the discount”, “post-discount” and their kin. [2] The word “discount” alone is not on the list. A review saying “the offer includes no discount, and the group should ask for one” is correct and must pass, or the retry would fail the same way and every honest review of such an offer would be dropped. A false positive costs a regeneration, at worst the review, never a wrong number.&lt;/p&gt;

&lt;p&gt;Four tests pin the check: a false claim is caught in both languages, naming the absence passes, an offer with a discount may describe it freely, and an offer with no computed price is left alone. [2] Nothing re-runs a dropped review: the drop is logged as an error, and the group sees no review for that offer. The retry-and-drop around the check has no test of its own yet. That is the gap I would close next.&lt;/p&gt;

&lt;h2&gt;
  
  
  What transfers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Give the model finished numbers.&lt;/strong&gt; If it has to do the division, it can get it wrong; here it said nothing.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A prompt instruction is a request.&lt;/strong&gt; For the one false statement you cannot afford, put a check in code on every output, and keep it narrow enough that the honest answer passes.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Prefer a visible gap to a confident error.&lt;/strong&gt; Drop the output, and keep the measured number on screen on its own, where it never depended on the AI.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Checked 1 Nov 2026: 11 developer offers published to 3 groups with real buyers since 11 Aug 2026; all 11 carry an AI review&lt;/li&gt;
&lt;li&gt;21 Aug 2026: from identical facts, one run said 'no discount', the next 'after the discount'. The check went in that day: 10 phrases, 4 tests&lt;/li&gt;
&lt;li&gt;12 Aug 2026: given an area price per m² and no figure for the offer, the AI said nothing on price. Now code computes it; under 20 deals, no benchmark&lt;/li&gt;
&lt;li&gt;29 Sep 2026: a one-member group's review quoted that member's budget. Budgets left the AI's facts that day; a test checks both languages&lt;/li&gt;
&lt;li&gt;Checked 1 Nov 2026: all 5 reviews of offers with no discount date from 19–20 Aug and hold a phrase the check now refuses; the 4 written since are of discounted offers&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yussieik.com/notes/ai-review-invented-discount/" rel="noopener noreferrer"&gt;yussieik.com&lt;/a&gt;, where the figures are animated.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>programming</category>
      <category>production</category>
    </item>
    <item>
      <title>A therapy scribe where a model may add the commas, but code decides whether it may change a word</title>
      <dc:creator>Yoseph Eikelman</dc:creator>
      <pubDate>Tue, 10 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/yussieik/a-therapy-scribe-where-a-model-may-add-the-commas-but-code-decides-whether-it-may-change-a-word-47pl</link>
      <guid>https://dev.to/yussieik/a-therapy-scribe-where-a-model-may-add-the-commas-but-code-decides-whether-it-may-change-a-word-47pl</guid>
      <description>&lt;p&gt;A therapist who sees clients back to back writes the notes afterwards, often in the evening, from memory. ClinicLog gives that evening back. With the client’s consent, the therapist records the session on a phone. An hour in Hebrew, English or both becomes a transcript, then a draft note in the therapist’s own template. The therapist reads both, fixes what is wrong, and &lt;a href="https://dev.to/work/cliniclog/"&gt;signs the note&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A speech recognizer plus a model told to tidy up fails twice here. Israelis switch language mid-sentence, and on the first day a recognizer set to Hebrew turned the English half into nonsense. And a tidied transcript is a falsified record: told not to tidy, a model still turned “not especially” into “especially”.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure:&lt;/strong&gt; Example. The lines and the model’s edits are invented; the verdicts are what ClinicLog’s checks return for these exact lines. The English under each line translates it. &lt;a href="https://yussieik.com/notes/hebrew-therapy-scribe/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The calls I made
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Code, not the prompt, decides what the model may change.&lt;/strong&gt; A stricter prompt was the easy answer, and I turned it down: the prompt already said not to tidy, and the model dropped the “not” anyway. So the model writes, and plain code with no model in it checks every line it returns. The punctuation pass may add marks but not change a word. The repair pass may fix a misheard word, but not drop a word on its negation list. A line that fails goes back to the words that were heard, on its own; the other lines keep their edits. A repair that passes stays marked, so the therapist can see what was heard.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I measured on real voices, and went against my own test data.&lt;/strong&gt; On that first day I switched to a multilingual recognizer, because a Hebrew-only one cannot hear the English half. My synthetic Hebrew clips then said Hebrew-speaking practices would do better on the Hebrew-only model. Public recordings of real voices said the opposite: it was worse on three of four Hebrew clips and tied on the fourth. For English, the single-language model did cut word errors by about a third. [1] So a practice that declares English gets the English model, and one that declares Hebrew keeps the multilingual one. Trusting the synthetic answer would have sent Hebrew practices to the worse recognizer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More context, fewer guesses.&lt;/strong&gt; The repair model works out what a garbled word meant from the lines around it. Given 20 turns at a time, it proposed seven repairs on the public test recordings and turned “compassmented” into “compartmentalized”. Given 60, it proposed two and wrote “compos mentis”, which is what was said. Less context made it guess more, not less, so repairs travel 60 turns at a time. [2]&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;Recording the session itself has been on in Israel since 24 August 2026, and stays off in the US; dictated notes came first, in November 2025. [3] I am ClinicLog’s only engineer. Synthetic evals of the note and the speaker roles, on short invented exchanges in Hebrew and English, pass 14 of 14. [4] Those are synthetic and say nothing about clinical accuracy. That is what the therapist’s review and signature are for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;A language model makes four passes over a session, and code decides what each may produce: punctuation, repairs, speaker roles, and the note.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In the room&lt;/p&gt;

&lt;p&gt;The phone records the session and uploads it in pieces while it runs.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Speech service&lt;/p&gt;

&lt;p&gt;The voices are separated and Hebrew and English are transcribed in the same sentence. Our copy of the audio is deleted once the service accepts it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Model, then code&lt;/p&gt;

&lt;p&gt;A model adds punctuation. Code compares the words before and after, and a turn that changed goes back to what was heard.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Model, then code&lt;/p&gt;

&lt;p&gt;A second pass may fix a misheard word. A change that drops a listed negation is refused; every change that passes is marked.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Who is who&lt;/p&gt;

&lt;p&gt;A model reads the opening of the session and says which voice is the therapist. It answers with roles, never names.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The draft&lt;/p&gt;

&lt;p&gt;The note is written from the text, into each section of the therapist's own template, in one call.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The therapist&lt;/p&gt;

&lt;p&gt;They fix lines and voices, edit the draft, and approve. The note stays a draft until they finalize it.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Recorduploaded as it runs&lt;/p&gt;

&lt;p&gt;Recognizevoices separated · he + en&lt;/p&gt;

&lt;p&gt;↑ audio↓ text only&lt;/p&gt;

&lt;p&gt;Punctuatein codeevery turn checked&lt;/p&gt;

&lt;p&gt;Repairin codeevery repair marked&lt;/p&gt;

&lt;p&gt;Speaker rolestherapist · client&lt;/p&gt;

&lt;p&gt;Draft noteone field per section&lt;/p&gt;

&lt;p&gt;Reviewthe therapist signs&lt;/p&gt;

&lt;p&gt;How the pipeline survives a lost worker &lt;a href="https://dev.to/notes/deploy-lost-recording/"&gt;is its own note&lt;/a&gt;. This one is about the words.&lt;/p&gt;

&lt;h3&gt;
  
  
  The punctuation check
&lt;/h3&gt;

&lt;p&gt;Both versions of a turn are split into words, everything Unicode classes as punctuation or spacing is removed, and the two word lists must match. A space inside a word fails; a new paragraph does not. The check, and its caller:&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;is_insertion_only&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;original&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;revised&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""True when `revised` differs from `original` only in punctuation/spacing.

    One character of difference in the compared stream returns False, which
    the caller must treat as a rejection and fall back to the raw text.
    """&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;fidelity_tokens&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;original&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nf"&gt;fidelity_tokens&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;revised&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;candidate&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;zip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;candidates&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;strict&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;is_insertion_only&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;refined&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warning&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"verbatim_readability_rejected"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="n"&gt;refined&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="n"&gt;rejections&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first version ignored invisible formatting characters. A review before the pass went live wrapped a number in a Hebrew sentence in a direction override: the check passed it, and a browser shows the digits reversed. Models add direction marks of their own unasked, so invisible characters are compared now. And on the first real recording the model deleted the dashes that mark a measured pause; to Unicode a dash is punctuation. Pauses are now compared like words.&lt;/p&gt;

&lt;h3&gt;
  
  
  The repair guards
&lt;/h3&gt;

&lt;p&gt;Negations, from a Hebrew and English list, are counted before and after and must match. A repair may change at most half of a turn’s words, or two in a short one, and never all of them. The changes are computed from the text, never self-reported, and each one reaches the therapist and the note model with the word that was heard. [2]&lt;/p&gt;

&lt;h3&gt;
  
  
  Language, roles and the template
&lt;/h3&gt;

&lt;p&gt;On go-live day a synthetic mixed clip scored 2.4% word errors on the multilingual model against 26.8% Hebrew-only, and I switched that evening. [3] Automatic language detection is no answer: it picks one language per file. On a two-person interview from the public set, multilingual scored 5.7% against 8.7% Hebrew-only. [1]&lt;/p&gt;

&lt;p&gt;The speech service separates voices without knowing whose they are. A model reads the first 40 turns, each cut to 240 characters, and may answer &lt;code&gt;therapist&lt;/code&gt;, &lt;code&gt;client&lt;/code&gt; or &lt;code&gt;other&lt;/code&gt;, never a name. [5] Two therapists or two clients is hedging, and the answer is dropped. The therapist flips a wrong voice with a tap.&lt;/p&gt;

&lt;p&gt;The note is written from the transcript, never the audio. Audio costs more than text, and when I gave the repair pass the audio too, it stopped repairing and started transcribing again: word errors on a public clip went up, not down. Until 21 August a structured template got the whole note in its first section. Now the response schema is built at run time with one property per section, described by the template’s own guidance for that section, so the plan lands in the plan section in the same call.&lt;/p&gt;

&lt;h3&gt;
  
  
  The roles failure that looked like a cautious model
&lt;/h3&gt;

&lt;p&gt;Speaker roles shipped on 24 August. The next day the worker log showed they had never run. I had declared the answer as a mapping of voice to role, and the model provider’s library refuses that schema shape before sending anything. My code caught the error, as designed, returned nothing, and the screen showed “Voice 1” and “Voice 2”: exactly what a model that could not tell looks like. Every test faked the call.&lt;/p&gt;

&lt;p&gt;The answer is now a list of pairs, and a test checks the schema for the shape the provider refuses. The working call then exposed two holes the broken one had hidden: the recognizer’s bucket for unattributed words could be labeled &lt;code&gt;client&lt;/code&gt;, and the hedging check caught two therapists but not two clients. Both were closed that night. [5]&lt;/p&gt;

&lt;h2&gt;
  
  
  What transfers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Check the model’s output in code, item by item.&lt;/strong&gt; A prompt is a request; a check runs every time, and a line that fails reverts alone.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Measure on real voices before trusting synthetic ones.&lt;/strong&gt; The synthetic clips would have sent Hebrew practices to the worse recognizer.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A fallback that degrades to nothing needs a test of its own.&lt;/strong&gt; Otherwise the failure looks like a model being careful.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Measured 30 Aug 2026 on public recordings: English 9–23% word errors fell to 6–17% English-only; Hebrew-only was worse on 3 of 4 Hebrew clips, 5.7% to 8.7% at most&lt;/li&gt;
&lt;li&gt;102 tests on the punctuation check, repairs, speaker roles and template split, passing 1 Nov 2026. Repair batch, 30 Aug: 7 edits with 20 turns of context, 2 with 60&lt;/li&gt;
&lt;li&gt;Dictated notes since 9 Nov 2025; session recording on in Israel since 24 Aug 2026, off in the US. That day a mixed clip: 2.4% word errors multilingual, 26.8% Hebrew-only&lt;/li&gt;
&lt;li&gt;Synthetic evals, re-run 1 Nov 2026: 7 invented exchanges of 3 to 5 turns, Hebrew and English, each with name masking off and on: 14 of 14 passed, 1.2 to 3.5 s a call&lt;/li&gt;
&lt;li&gt;Speaker roles read the first 40 turns, 240 characters each. Shipped 24 Aug 2026, never ran on two voices until the next evening's fix; a test now checks the schema&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yussieik.com/notes/hebrew-therapy-scribe/" rel="noopener noreferrer"&gt;yussieik.com&lt;/a&gt;, where the figures are animated.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>machinelearning</category>
      <category>healthcare</category>
    </item>
    <item>
      <title>An LLM read the same page four times: 18 departures, 18, 18, then 1</title>
      <dc:creator>Yoseph Eikelman</dc:creator>
      <pubDate>Thu, 05 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/yussieik/an-llm-read-the-same-page-four-times-18-departures-18-18-then-1-507d</link>
      <guid>https://dev.to/yussieik/an-llm-read-the-same-page-four-times-18-departures-18-18-then-1-507d</guid>
      <description>&lt;p&gt;My Trip is a group-travel company. Its operations staff need to know when a competitor adds a departure, sells one out or changes it, and nobody has time to open every competitor’s site twice a week. So a pipeline does it and mails the changes. An AI model does the reading, because most pages are free-form Hebrew, not tables. The line it must never get wrong is “sold out”: a false one says a competitor’s trip is full when it is still open. Trusting a single reading did not survive measurement: the same page, read four times, gave answers that did not all match.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure:&lt;/strong&gt; Example. The trip, dates and statuses are invented; the rules are the pipeline's: a departure is kept when two readings contain it, the version of it most readings gave is reported, and a third reading is skipped when the first two match in every field. &lt;a href="https://yussieik.com/notes/two-readings-must-agree/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The calls I made
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Measure the model before blaming the sites.&lt;/strong&gt; On 8 August I captured each page once and had the model read the same bytes four times. One page read 18, 18, 18, then 1 departure, another 15, 15, 1, 1, and on a third a row’s status flipped to “waitlist” and back, which the feed counts as sold out. [1] The bytes had not changed. The noise was the model’s.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No table parser in place of the model.&lt;/strong&gt; Taking the model out was the obvious fix. I checked first: the two collapsing pages had no departures table at all. A day later a count across all sources found real tables on other sites, so a parser now reads those and checks the model against them. It does not replace the model, because on some of those sites the status is free text, not a table cell, and the status is the line that matters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pay three times, believe two.&lt;/strong&gt; From that day each page was read three times, and a departure was reported only when two readings contained it; where they disagreed on a detail, the version most readings gave won. I did not wait for a better single reading, a sharper prompt or a structured read: that is the real fix, and it is still owed. The vote made the feed survivable in the meantime and roughly tripled the cost of a run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Buy the third reading only when it can change the answer.&lt;/strong&gt; Three days later: if the first two readings are identical, a third cannot change a two-of-three vote, so it is skipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;The same 45 sources, same bytes, before and after: [2]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;2 of 45&lt;/strong&gt; sources still varied on identical bytes, down from 4&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;0&lt;/strong&gt; false "sold out" lines that day, down from 1&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3×&lt;/strong&gt; the cost of a run, accepted&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Single readings totaled 165, 165, 151 and 135 departures; the vote gave 165, 166 and 164, where the healthy readings had landed. It absorbs noise rather than quietly reporting less. In the run of 1 November, 178 of the 383 pages it read stopped after two identical readings. [3]&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;The pipeline captures each page once, then reads it with the same model up to three times. A departure is identified by its dates, not its price, guide or status, because those are exactly the fields that wobble: keying on them would turn every wobble into a new departure and defeat the vote. Where a date holds several departures, which happens on catalog pages, its position among them is part of the key. The winning version is the one most readings produced, and ties go to the earliest reading, so the same readings always give the same answer.&lt;/p&gt;

&lt;p&gt;The rule I care about most came from a failing test. If two of three readings fail outright, demanding two votes throws away everything the third read, and the page reports zero departures. Zero is also what a competitor with nothing on sale looks like. So the bar is capped at the readings that survived:&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="c1"&gt;# Never require more agreement than there were passes. With two of three&lt;/span&gt;
    &lt;span class="c1"&gt;# passes failing outright, demanding two votes drops every departure the&lt;/span&gt;
    &lt;span class="c1"&gt;# survivor read, and the page reports zero — indistinguishable from a&lt;/span&gt;
    &lt;span class="c1"&gt;# competitor who publishes nothing, which is the confusion 045 is about.&lt;/span&gt;
    &lt;span class="c1"&gt;# A bad day must not be able to impersonate a competitor's empty shelf.&lt;/span&gt;
    &lt;span class="n"&gt;threshold&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;CONSENSUS_MIN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;passes&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;Readings only one pass saw are dropped, and the count goes on the page’s record beside the number of readings behind it. A departure backed by two of three readings is a different claim from one read once, and the record says which.&lt;/p&gt;

&lt;h3&gt;
  
  
  The 8 August failure
&lt;/h3&gt;

&lt;p&gt;None of it was invented. Both status words are on the page with the flipped row: “registering” four times, “waitlist” once. The model attached the wrong row’s cell. One fault sat behind all three symptoms: on long lists it loses track of which row it is on, some of the time. The vote makes that survivable, not correct; a better reading is still owed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Skipping the third reading
&lt;/h3&gt;

&lt;p&gt;“Identical” uses the vote’s own idea of sameness: every field, in the same order. Two readings with the same dates at different prices do not agree, and the third reading breaks the tie. The guard also takes the number of readings left, so with five readings two matches would no longer end it early. My estimate was an upper bound of about a third of the reading cost. Production says less: on 1 November, 205 of 383 pages needed a third reading, so about 15% of readings were saved. The two runs before saved 18% and 19%. [3] The tests replay the measured collapse and the misread status, and four more cover the skip. [4] The more interesting number is the 205: on about half the pages, two readings of the same bytes differed somewhere, in a field or in the order of rows.&lt;/p&gt;

&lt;h3&gt;
  
  
  What two readings cannot catch
&lt;/h3&gt;

&lt;p&gt;A vote catches a reading that wobbles, not a model that is wrong the same way twice. Nor does it vote on the status alone. The unit is the whole row, so if the two readings that say “open” also differ on a price, all three versions tie, and the first reading wins even when it is the one that says “waitlist”. On 11 August, building a test set for the reader of trip details, which runs the same believe-what-two-agree vote, turned up 14 records with a trip length the page never printed; several had been agreed by two readings. [5] More readings were not the fix. A plain check now drops a trip length when the exact text the model was given states no length at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  What transfers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Measure the model against itself first.&lt;/strong&gt; Reading identical input several times is cheap and tells you how much of the noise is yours.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A failure must not look like an answer.&lt;/strong&gt; Cap the vote at the readings that survived, so a bad day cannot read as an empty shelf.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Agreement is not truth.&lt;/strong&gt; Where a claim can be checked against the input, check it in code.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;8 Aug 2026: four readings of byte-identical pages. Two pages read 18, 18, 18, 1 and 15, 15, 1, 1 departures; one row's status flipped to waitlist&lt;/li&gt;
&lt;li&gt;Measured 8 Aug 2026, 45 sources, same bytes: varying sources 4 to 2, run totals 165/165/151/135 to 165/166/164, no false sold out, about 3x the cost&lt;/li&gt;
&lt;li&gt;Runs twice a week. 1 Nov 2026: 383 pages read, 178 settled after two identical readings, 205 needed a third; 15–19% saved over three runs&lt;/li&gt;
&lt;li&gt;10 tests hold the vote and the skip rule, all passing on 1 Nov 2026. The skip was also checked against 4,000 random sets of three readings&lt;/li&gt;
&lt;li&gt;11 Aug 2026: 14 records carried a trip length their page never printed, several agreed by two readings. A check now drops a length when the page text states none&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yussieik.com/notes/two-readings-must-agree/" rel="noopener noreferrer"&gt;yussieik.com&lt;/a&gt;, where the figures are animated.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>automation</category>
      <category>programming</category>
    </item>
    <item>
      <title>AI agents write almost all my code; a review counts for one exact commit</title>
      <dc:creator>Yoseph Eikelman</dc:creator>
      <pubDate>Sun, 01 Nov 2026 23:17:20 +0000</pubDate>
      <link>https://dev.to/yussieik/ai-agents-write-almost-all-my-code-a-review-counts-for-one-exact-commit-4b0m</link>
      <guid>https://dev.to/yussieik/ai-agents-write-almost-all-my-code-a-review-counts-for-one-exact-commit-4b0m</guid>
      <description>&lt;p&gt;I run three production systems on my own: ClinicLog, therapy practice software the Israel Tax Authority registered as diary software in October; Groupliv, a real-estate marketplace with live buyers and developers; and about thirty tools and libraries for My Trip, a group-travel company. AI coding agents write almost all of that code. I decide what gets built and what is allowed to ship.&lt;/p&gt;

&lt;p&gt;The risk: code nobody typed, reaching health records and real buyers, faster than I can read it. Telling an agent to be careful is a request, and requests get skipped. The question I design for is not whether the agent writes good code; it mostly does. It is what stops the change it gets wrong.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure:&lt;/strong&gt; Example: the versions are invented. The stamp is a file the agent writes after a clean review; the check before a push to main compares it with the version being pushed. The tests and the deploy check the version, not the stamp. &lt;a href="https://yussieik.com/notes/review-bound-to-the-commit/" rel="noopener noreferrer"&gt;See the animated figure in the original note.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The calls I made
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Agents write; I decide what is built and what ships.&lt;/strong&gt; I say what to build, why, and when it goes out. The obvious alternative is reading every line myself; at this pace it fails, because I would be the bottleneck and still miss things. Separate review agents read each change instead, and I read their reports. The agent pushes only when I ask. That rule is an instruction, not code, and I say so.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A review counts for one exact version.&lt;/strong&gt; A review of “the branch” is a review of whatever the branch becomes. So the review is stamped with the version it read, and one more edit voids it, the small fix after review included. I turned down trusting the agent to review again on its own when it changes something.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;A rule that matters moves out of the instructions and into code.&lt;/strong&gt; Every repository has a CLAUDE.md, its own or one in a folder above it: the rules an agent loads when it starts. They work most of the time, and most of the time is not enough at this volume. On 24 August, in Groupliv, a checkout an agent ran to undo a test change wiped edits nobody had committed. The fix was not only another line of instructions. It was a hook that refuses that command while anything is uncommitted. [2]&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;The guards grow with what a mistake costs.&lt;/strong&gt; ClinicLog holds health records, so it has the longest path. Most My Trip repositories run their tests each time the agent edits a Python file, but none has the stamped review; most are tools the company’s own staff use. The obvious alternative, one heavy process for every repository, fails the other way: it slows the cheap mistakes as much as the costly ones.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;97%&lt;/strong&gt; of ClinicLog commits, Jan–Jun 2026, carry an agent co-author line&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2,969&lt;/strong&gt; commits under my name across the three systems in October 2026&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;108&lt;/strong&gt; ClinicLog commits deployed to production in October 2026&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From January to June 2026 the agent signed its commits with a co-author line. In that window 2,139 of ClinicLog’s 2,211 commits had one, and 91% of Groupliv’s. After mid-July the line drops off most commits (my agent settings now leave it out), so later months can’t be counted the same way. The pace didn’t drop: 2,969 commits under my name across the three systems in October, and 108 ClinicLog commits deployed to production. [1]&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;The ClinicLog path, step by step. Above the dashed line, models and I judge; below it, code checks the commit.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Me&lt;/p&gt;

&lt;p&gt;I say what to build, why, and when it ships.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Every file edit&lt;/p&gt;

&lt;p&gt;Hooks block token-shaped strings and run the linters.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Fresh context&lt;/p&gt;

&lt;p&gt;Code, simplicity and security reviews run separately; must-fix findings are fixed and reviewed again.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Bound to a hash&lt;/p&gt;

&lt;p&gt;After a clean last pass the agent writes the reviewed commit. A later commit voids it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Two guards&lt;/p&gt;

&lt;p&gt;A hook in the agent stops a push command early; git’s own pre-push hook, on each machine that pushes to main, refuses any commit but the reviewed one.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Every push to main&lt;/p&gt;

&lt;p&gt;Both test suites run in full. A change to a file tied to a legal obligation goes into a review issue for me.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Deploy&lt;/p&gt;

&lt;p&gt;It waits for a green run on that exact commit, skips the wait only when CI cannot start at all, and rolls back if the health check fails.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;After&lt;/p&gt;

&lt;p&gt;A model checks both regions’ health four times a day.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instructionwhat, why, when&lt;/p&gt;

&lt;p&gt;Agent buildsin codesecret scan on file edits&lt;/p&gt;

&lt;p&gt;Review agentsfix, review again&lt;/p&gt;

&lt;p&gt;Review fileone commit hash&lt;/p&gt;

&lt;p&gt;↑ models and I judge↓ code checks the commit&lt;/p&gt;

&lt;p&gt;Push to mainin codehash must match&lt;/p&gt;

&lt;p&gt;CI on mainin codefull test suites&lt;/p&gt;

&lt;p&gt;Deployin codegreen CI, this commit&lt;/p&gt;

&lt;p&gt;Productiontwo regions&lt;/p&gt;

&lt;p&gt;The centre of it is one file holding one commit hash. The review skill tells the agent to write it only when its last pass found nothing that must be fixed and the full checks pass on that commit, in a clean copy of the repository. Any commit after that moves the hash and voids the review. On each machine that pushes to main, git’s pre-push hook compares the file with the exact commit being pushed, then runs the privacy lint and the migration check. CI runs the full suites on every push to main, and the deploy waits for that run on the same commit, 5,991 backend tests among them on 1 November. The wait exists since 9 October. Of October’s 108 deployed commits, 50 passed it, 27 shipped before it existed, and 31 shipped during a CI billing block through a switch that works only when CI cannot start at all. [3]&lt;/p&gt;

&lt;p&gt;The file is not a lock against a dishonest agent. The agent writes it, and git can be told to skip its hook. It is a lock against the failures I plan for: a step skipped, or one more commit after the review. A pull request merged on GitHub reaches main without a push, so no hook sees it. For those the review runs after the merge, over everything since the last reviewed commit, and the agent’s hook refuses to start a deploy until it has. Groupliv got the same kind of lock, a review marker for the exact commit, on 22 September. The comment in its hook says why: the old review “lived in prose only, and prose is skippable”. [2]&lt;/p&gt;

&lt;h3&gt;
  
  
  The guard a reviewer broke
&lt;/h3&gt;

&lt;p&gt;The hook inside the agent is the early stop: it refuses a push or a deploy command before it runs. On 24 August a review agent, reading a change to that guard, proved it could be walked past. The guard split commands with Python’s standard shell tokenizer, which treats a bare newline as a space. A command spread over three lines, the exact deploy sequence the repository’s instructions were teaching the agent, went straight through. For starting a deploy, that hook was the only review check, and it still is. It was fixed and tested the same day. [4]&lt;/p&gt;

&lt;p&gt;More rounds followed in October and on 1 November. Reviews kept finding forms that hid a push or a deploy: subshells, wrappers, a line piped into a shell. Each round of special cases left another composed form through. So on 1 November I stopped parsing. The guard now matches the command’s text: a line is a deploy when it names the deploy workflow with a run verb, or pushes to main. Its own docstring lists forms that still get past it. That is what the git hook, there since April, is for: git knows which commit it is pushing, whatever the command looked like. The price of matching text is that a line which only quotes a deploy command needs a valid review too.&lt;/p&gt;

&lt;p&gt;The exact checks stay where the facts are exact: git knows which commit it is pushing, and the deploy knows which commit it is building.&lt;/p&gt;

&lt;h3&gt;
  
  
  What stays with me
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  I read each review report: the findings it deferred and the legal obligations the change touched. Whether a signed document is still true is my call, so those never block.&lt;/li&gt;
&lt;li&gt;  I own the exceptions: in an emergency I write the review file by hand.&lt;/li&gt;
&lt;li&gt;  This site works the same way. An editor agent checks every claim in a note before I publish it by merging. Every report it has written so far came back with required fixes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What transfers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Bind a review to a version.&lt;/strong&gt; A review of “the branch” is a review of whatever the branch becomes.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Move a rule from prose into a hook once it matters.&lt;/strong&gt; An instruction is a request; a hook runs before the command.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Put the exact check where the facts are exact.&lt;/strong&gt; A guard that reads command text is an early stop; git and the deploy know the real commit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Commit history: Jan–Jun 2026, 2,139 of 2,211 ClinicLog commits carry an AI co-author line (Groupliv 91%); October: 2,969 commits, 108 ClinicLog deployed&lt;/li&gt;
&lt;li&gt;Groupliv, 24 Aug 2026: a checkout an agent ran wiped uncommitted edits, and a hook now refuses it on a dirty tree; 22 Sep: the review rule became a hook&lt;/li&gt;
&lt;li&gt;ClinicLog, since 29 Apr 2026: a push to main needs a review of that exact commit; 5,991 backend tests per push (1 Nov); Oct: 50 of 108 deploys passed the CI wait&lt;/li&gt;
&lt;li&gt;24 Aug 2026: a review agent showed a three-line deploy passed the guard, fixed the same day; rewritten 1 Nov 2026 after more rounds, 87 tests&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://yussieik.com/notes/review-bound-to-the-commit/" rel="noopener noreferrer"&gt;yussieik.com&lt;/a&gt;, where the figures are animated.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>security</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
