<?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: Ted</title>
    <description>The latest articles on DEV Community by Ted (@tedagentic).</description>
    <link>https://dev.to/tedagentic</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%2F2256153%2F4cd4eaa5-dfdf-46a4-9487-af0cbe57b775.jpeg</url>
      <title>DEV Community: Ted</title>
      <link>https://dev.to/tedagentic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tedagentic"/>
    <language>en</language>
    <item>
      <title>Sent Is Not Delivered</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Sat, 05 Dec 2026 08:00:20 +0000</pubDate>
      <link>https://dev.to/tedagentic/sent-is-not-delivered-m49</link>
      <guid>https://dev.to/tedagentic/sent-is-not-delivered-m49</guid>
      <description>&lt;p&gt;Part of my research work runs through a browser agent. It has its own account on a large rental platform, and its job is simple. It sends property owners a short question about one of their house rules, waits, and reports back what they say. The answer decides whether a property goes on a list I publish. So the question has to actually reach a person.&lt;/p&gt;

&lt;p&gt;The agent is careful. Every send gets a line in a shared thread: which listing, which dates it used, which day it went out. I have a ledger built from those lines. For weeks the ledger looked healthy. Messages went out on schedule, inside the daily limit, in the order I asked for.&lt;/p&gt;

&lt;p&gt;Then the agent noticed something on its own. It went back into a few conversations to send a polite follow-up and saw that its first message wasn't there. The follow-up sat alone in the thread, replying to nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The audit
&lt;/h2&gt;

&lt;p&gt;I asked for one pass, reading only and sending nothing. Open every conversation from the last week and say, for each one, whether our message is still visible. One line per host: visible, gone, or partly gone. At the end, one more line: did the platform show any warning, block or prompt on the account?&lt;/p&gt;

&lt;p&gt;The answer came back the next afternoon.&lt;/p&gt;

&lt;p&gt;Twenty-two of the twenty-six first messages I could check were gone. Not bounced, and not flagged to the sender. Removed. In some threads a follow-up survived where the original didn't. In five conversations both the question and the follow-up had disappeared, so those hosts were looking at an empty thread, if they were looking at all. There was no warning on the account and no notice. The only sign of anything was a small "message removed" note inside one thread, which the agent caught only because it was reading closely.&lt;/p&gt;

&lt;p&gt;Every line in my ledger was still true. Each message &lt;em&gt;had&lt;/em&gt; been sent. That was the problem. "Sent" was something the agent saw at the moment it pressed the button. It said nothing about what happened to the message after.&lt;/p&gt;

&lt;h2&gt;
  
  
  The confusing part: some of them still worked
&lt;/h2&gt;

&lt;p&gt;If the story ended at "the platform deletes these", the fix would be obvious: stop using that channel. It didn't end there.&lt;/p&gt;

&lt;p&gt;Several hosts whose original message was gone had replied anyway, and some said yes. So the removal wasn't always instant. At least sometimes the message reached the person, they answered, and then the platform pulled our side of the conversation. A gone message didn't mean an unread message.&lt;/p&gt;

&lt;p&gt;That killed a rule I had been leaning on, which was to close a host as "no reply" seven days after the follow-up. For the five hosts with empty threads, silence meant nothing. They may never have seen a question. Closing them would have recorded a "no" that nobody gave.&lt;/p&gt;

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

&lt;p&gt;Three things. None of them involves the agent working harder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delivery became its own check, a day later.&lt;/strong&gt; The report format for every send now has a second line, posted the next day: the same conversation, opened again, marked visible or gone. A send isn't finished when the button is pressed. It's finished when the message is confirmed still there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The exact text goes in the log.&lt;/strong&gt; Before, the agent sent one fixed message and logged only the date. Now each message is written for that host, and the exact words go into the thread. If some survive and some don't, I can see which wording made it through, instead of guessing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Silence got split into two kinds.&lt;/strong&gt; "No reply to a visible message" is an answer of sorts. "No reply to a message that isn't there" isn't one. The second kind goes back into the queue instead of being closed.&lt;/p&gt;

&lt;p&gt;There's also one thing I deliberately didn't do. I didn't stop at the first good-looking number. The audit ran while that day's batch was still being sent, so the newest messages showed as missing simply because they hadn't gone out yet. The check that caught the problem nearly produced a false one of its own. Those get re-checked on their own schedule.&lt;/p&gt;

&lt;h2&gt;
  
  
  The general version
&lt;/h2&gt;

&lt;p&gt;Anything an agent does to the outside world has two states: the moment it acted, and what the world did with it afterwards. Most logging records the first and quietly treats it as the second. A form submission, an email, a published post, a queued job, a message: "I did it" is the agent's view, and it's honest. "It's still there" is the world's view, and only a later look can tell you.&lt;/p&gt;

&lt;p&gt;The fix isn't a smarter agent. It's one more line in the job description: &lt;em&gt;come back tomorrow and check&lt;/em&gt;. It's cheap, it's boring, and here it was the difference between a ledger that looked fine and one that was right.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>automation</category>
      <category>observability</category>
    </item>
    <item>
      <title>A Room With One Door</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Fri, 20 Nov 2026 12:50:23 +0000</pubDate>
      <link>https://dev.to/tedagentic/a-room-with-one-door-3nk1</link>
      <guid>https://dev.to/tedagentic/a-room-with-one-door-3nk1</guid>
      <description>&lt;p&gt;There is a class of tool now that runs an attack the way a person would, except faster and without getting tired. You give it a target and a goal — "get server access" — and a group of language-model agents takes it from there: they map what's exposed, pick what to try, run real tooling, and keep a running picture of what they've found. ARTEX is one of these. It's open source, it was written to help defenders understand autonomous attacks, and by the time I went looking it had already been misused enough that the FBI put out a warning about it.&lt;/p&gt;

&lt;p&gt;I wanted to see one work. Not against anything real — against a target I'd built to be broken into, in a place where it couldn't matter. The question wasn't whether I could run it. Running it is &lt;code&gt;docker compose up&lt;/code&gt;. The question was where.&lt;/p&gt;

&lt;p&gt;That turned out to be the whole job.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tool is the easy part
&lt;/h2&gt;

&lt;p&gt;This is the thing that surprised me, and it's the reason I'm writing it down.&lt;/p&gt;

&lt;p&gt;The frightening object — the autonomous attacker — installs in a few minutes. It's a container and a database. You give it a model to think with and a target to point at, and it goes. If "running ARTEX" had been the task, the task would have been over before lunch.&lt;/p&gt;

&lt;p&gt;But an autonomous attacker is, by design, a thing that looks for any way out of wherever you put it. That's its entire purpose: given a foothold, find the next one. So the moment you decide to run one, the real work announces itself, and it has nothing to do with the tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The hard part isn't the thing in the room. It's building a room it can't leave.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Everything after that decision was carpentry on the room.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the room had to do
&lt;/h2&gt;

&lt;p&gt;Two machines, both virtual, both on a network of their own that has no route to anything else. One is the attacker. One is the target — deliberately soft, with weak logins and a web service carrying an obvious flaw, there to give the attacker something to find. They can reach each other and nothing beyond.&lt;/p&gt;

&lt;p&gt;"Nothing beyond" is easy to say and has a sharp edge. The two things the room must never touch are my home network — the real machines, the real files — and the open internet. Neither VM gets a route to either. The attacker can't reach the server it's running on, can't see the other computers in the house, can't call out.&lt;/p&gt;

&lt;p&gt;Except it has to call out, exactly once.&lt;/p&gt;

&lt;p&gt;The agents think by talking to a language model, and the model I was using lives on the internet. So the room needs one door: a single outbound path to that one service and nothing else. I ran a small proxy on the host that will connect to precisely one domain — the model's API — and refuses everything else. The attacker's only way off its own network is through that proxy, and the proxy only knows how to reach one place.&lt;/p&gt;

&lt;p&gt;One door. It opens onto the model and onto nothing else. That's the entire design, and the rest of the work was making the design true.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cage kept catching me instead
&lt;/h2&gt;

&lt;p&gt;Here's what I didn't expect: most of the trouble came from the isolation being too good, not too weak.&lt;/p&gt;

&lt;p&gt;The first time I tried to reach the attacker VM to set it up, I couldn't. The connection just hung. The cause was my own firewall — I'd written a rule that dropped traffic from the sealed network to the host, which is what I wanted, but it was also dropping the &lt;em&gt;replies&lt;/em&gt; to connections the host itself had opened. The rule was correct about strangers and wrong about conversations the host had started. I had locked the door so thoroughly that I couldn't get my own hand back out.&lt;/p&gt;

&lt;p&gt;Then I tried to give the attacker a second, temporary network connection so I could install things on it, and its networking collapsed in a different way: with two cards, its replies started leaving through the wrong one, and nothing could talk to it at all. The fix was to never give it two doors at once — set it up through one, seal it, and only then connect the other.&lt;/p&gt;

&lt;p&gt;Every one of these was the same shape. I'd build a wall, and the wall would stop something I needed, and I'd learn that "let nothing out" and "let me work" are in constant, low tension. A cage that's airtight is also a cage you can't reach into. Most of the day went into finding the few specific, narrow exceptions that let me build the thing without ever letting the thing out.&lt;/p&gt;

&lt;h2&gt;
  
  
  You don't trust a cage you built
&lt;/h2&gt;

&lt;p&gt;When it was finally standing, I did not believe it.&lt;/p&gt;

&lt;p&gt;That's the right instinct, and it's the part I'd keep if I threw everything else away. I had built the walls, so I was the last person who should get to say they held. The walls needed to be tested by someone standing where the danger would stand.&lt;/p&gt;

&lt;p&gt;So the test runs from inside. A script on the attacker VM — the one place that matters — tries, one by one, to do all the things it must never be able to do. Reach the home router. Reach the real server. Reach the open internet. Reach a random site through the proxy that isn't the one allowed domain. Every one of those has to fail, and the script only passes if every one of them fails and the single permitted door still opens. Nine checks. All of them have to come back the way a locked room should.&lt;/p&gt;

&lt;p&gt;Watching that run is the actual product of the week. Not the attacker — the attacker is loud and easy and does what it says on the tin. The thing worth having is a short, boring list of "blocked, blocked, blocked, blocked" produced by the dangerous program itself, trying its hardest to find a way out and reporting that there wasn't one.&lt;/p&gt;

&lt;p&gt;Then, and only then, I pointed it at the target and let it go. It found the flaw I'd planted and walked straight through it, which was the whole point and, honestly, the least interesting part.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;p&gt;The reframe I'll keep is this: when the tool is something that escapes, the tool is not the project. The containment is the project, and containment is almost entirely made of exceptions you discover by getting trapped by your own walls.&lt;/p&gt;

&lt;p&gt;It also changed how I read the headlines about these tools. The scary ones aren't scary because they're hard to run — they're trivial to run, and that's exactly the problem. The skill being asked of anyone who studies them isn't offensive. It's the patience to build a room with one door, and the refusal to trust that door until the thing inside has tried it and failed.&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>devops</category>
      <category>homelab</category>
    </item>
    <item>
      <title>My Rank Check Was Accurate. For the Wrong Country.</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Thu, 19 Nov 2026 09:09:39 +0000</pubDate>
      <link>https://dev.to/tedagentic/my-rank-check-was-accurate-for-the-wrong-country-3hpm</link>
      <guid>https://dev.to/tedagentic/my-rank-check-was-accurate-for-the-wrong-country-3hpm</guid>
      <description>&lt;p&gt;I track a commercial site's position on about a dozen money queries every Monday, two ways. A script calls a search API with the location set to the United States. And a browser agent, an AI that drives a real browser, runs the same queries in a private, signed-out window and reports what Google shows: positions, the top three results, whether an AI Overview appears and who it cites.&lt;/p&gt;

&lt;p&gt;Two methods, so that one can catch the other's mistakes.&lt;/p&gt;

&lt;p&gt;This Monday they disagreed about everything.&lt;/p&gt;

&lt;p&gt;The script said my site had slipped from #1–2 to #4–6 on its main queries over two weeks, and a competitor now held #1 on all of them.&lt;/p&gt;

&lt;p&gt;The browser check said my site was #1 on three of those queries and was the first source cited in Google's AI Overview. The same competitor had fallen from #1 to between #12 and #16. Its "changes since last week" line was a list of collapses.&lt;/p&gt;

&lt;p&gt;One of these meant "you're losing", and the other meant "you're winning, and your rival just fell off a cliff". I had a page edit half-planned based on the first one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Both were right
&lt;/h2&gt;

&lt;p&gt;The agent's answer started, as the request asks it to, with the location Google displayed at the bottom of the results page. It wasn't the US. The browser was running on a connection in another country, the one the agent's machine actually sits in. In previous weeks it had been routed through a US connection. This week that route was gone, and nothing in the job noticed.&lt;/p&gt;

&lt;p&gt;The data wasn't wrong. It was a faithful snapshot of what Google shows a searcher in that country. My buyers aren't searching from there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A ranking isn't a property of the page. It's a property of the searcher.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I had been treating "position" as a fact about my page that a check measures, like page weight or response time. It isn't. Google ranks a page for a person: a country, often a city, a language, sometimes their history. There is no position without a location, and a check that doesn't record its location hasn't measured anything you can compare.&lt;/p&gt;

&lt;h2&gt;
  
  
  Not just country: city too
&lt;/h2&gt;

&lt;p&gt;Once I started paying attention to location, I added a second view to the scripted check: the same queries pinned to the main city in the market, alongside the generic US results. On most queries they agree. On some they don't:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Query&lt;/th&gt;
&lt;th&gt;US-wide&lt;/th&gt;
&lt;th&gt;Pinned to the city&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Main commercial query&lt;/td&gt;
&lt;td&gt;#2&lt;/td&gt;
&lt;td&gt;#4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Secondary query&lt;/td&gt;
&lt;td&gt;#6&lt;/td&gt;
&lt;td&gt;#4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local rentals query&lt;/td&gt;
&lt;td&gt;#7&lt;/td&gt;
&lt;td&gt;#9&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Neither column is "the real ranking". People planning a trip search from home, all over the country. People already in the city search from there, and Google weights local businesses more for them. Both audiences matter, and they see different pages.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Every result records its location.&lt;/strong&gt; The browser check now has to report Google's displayed location on the first line, and the review step that reads its answer checks that line before anything else. This week that review is what caught the problem. It flagged the answer as "wrong location, don't compare with last week" before I acted on it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A run from a different location is not a data point.&lt;/strong&gt; It doesn't go into the history, and it doesn't count toward "dropped two weeks in a row" alerts. Comparing this week's foreign-location run with last week's US run would have produced exactly the dramatic swings it showed, out of nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pinned locations beat "wherever the checker is".&lt;/strong&gt; The weekly job moved entirely to the scripted check, which sets the location explicitly, once US-wide and once pinned to the city, with a separate history file for each so neither view's week-on-week comparison is polluted by the other. The browser agent still does the things only a browser can, like reading AI Overviews in full. It no longer owns the number.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Search Console isn't a tiebreaker for this.&lt;/strong&gt; Its "average position" blends every location, device and query variant into one figure. Useful for trends, useless for "where do I rank for a buyer in this market today". I'd already been burned by a page that ranked #6 and #20 for the same query and averaged #13.&lt;/p&gt;

&lt;h2&gt;
  
  
  The general version
&lt;/h2&gt;

&lt;p&gt;Any measurement that depends on who is asking, such as rankings, prices, ad auctions or what an AI answer says, needs the "who" recorded next to the number, and needs it held constant between runs you intend to compare.&lt;/p&gt;

&lt;p&gt;My check didn't fail. It answered a question I hadn't asked, precisely and confidently, and it looked exactly like the answer to the one I had asked.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>google</category>
      <category>automation</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>In a Chat Message, the Formatting Is Part of the Data</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Wed, 18 Nov 2026 08:00:49 +0000</pubDate>
      <link>https://dev.to/tedagentic/in-a-chat-message-the-formatting-is-part-of-the-data-9ip</link>
      <guid>https://dev.to/tedagentic/in-a-chat-message-the-formatting-is-part-of-the-data-9ip</guid>
      <description>&lt;p&gt;A lot of my work runs through one Slack channel. I post numbered requests, &lt;code&gt;REQ-141&lt;/code&gt;, &lt;code&gt;REQ-142&lt;/code&gt; and so on, and a browser agent picks them up, does the work, and answers in the thread. A small script posts a weekly request of its own every Monday, and before posting it works out the next free number by reading the channel history.&lt;/p&gt;

&lt;p&gt;On Monday the script posted &lt;code&gt;REQ-143&lt;/code&gt;. There was already a &lt;code&gt;REQ-143&lt;/code&gt;. I had posted it myself at one in the morning.&lt;/p&gt;

&lt;h2&gt;
  
  
  The underscore is a word character
&lt;/h2&gt;

&lt;p&gt;The numbering code was one line:&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;nums&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;history&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\bREQ-(\d{3})\b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"text"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That looks right. &lt;code&gt;\b&lt;/code&gt; is a word boundary, so it stops &lt;code&gt;XREQ-143&lt;/code&gt; from matching, and the trailing &lt;code&gt;\b&lt;/code&gt; stops it from reading the first three digits of &lt;code&gt;REQ-1430&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;But the requests I post go through a connector that writes my titles in italics, and Slack stores italics as underscores. My request's text began:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_REQ-143: Go ahead with part B now_
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A word boundary is the point between a word character and a non-word character. In regex, word characters are letters, digits &lt;strong&gt;and the underscore&lt;/strong&gt;. So between &lt;code&gt;_&lt;/code&gt; and &lt;code&gt;R&lt;/code&gt; there is no boundary. Both sides count as "word". &lt;code&gt;\bREQ&lt;/code&gt; never matched, my request was invisible to the counter, and the script happily took 143 again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To the parser, the markup isn't around the message. It is the message.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I had been thinking of &lt;code&gt;_..._&lt;/code&gt; as "how it looks". The regex was reading what was actually stored, and what was stored was an underscore glued to the front of the thing I was searching for.&lt;/p&gt;

&lt;p&gt;The fix keeps the guard I actually needed, digits after the number, and drops the one that assumed clean text before it:&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;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"REQ-(\d{3})(?!\d)"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I tested it against the shapes that really occur in the channel, not the one I'd imagined:&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="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"REQ-(\d{3})(?!\d)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"_REQ-143: x *REQ-142* REQ-1234"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'143'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'142'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Italic, bold and plain all match, and a four-digit number doesn't produce a false 123.&lt;/p&gt;

&lt;h2&gt;
  
  
  The language tag that ate a line
&lt;/h2&gt;

&lt;p&gt;The same day, a request listed fifteen properties in a code block, so the agent would see a clean list:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;```1. First property (city)
2. Second property
...
```
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent answered items 2 to 15. I resent the missing one as part of the next request, formatted the same way. It went missing again.&lt;/p&gt;

&lt;p&gt;Text on the same line as an opening triple backtick isn't content. It's the &lt;strong&gt;language tag&lt;/strong&gt;, the thing that tells the renderer to highlight &lt;code&gt;python&lt;/code&gt; or &lt;code&gt;js&lt;/code&gt;. My first item had been sent as a language called &lt;code&gt;1. First property (city)&lt;/code&gt;, which the renderer treated as metadata and quietly didn't show. Nothing errored. The list simply started at 2.&lt;/p&gt;

&lt;p&gt;The fix is a newline after the opening fence, every time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;```
1. First property (city)
2. Second property
```
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The same mistake twice
&lt;/h2&gt;

&lt;p&gt;Both bugs came from writing for the renderer and forgetting that something else reads the source. I wrote italics so a title would look like a title. I put a list on the fence line so the message would look compact. In both cases the thing reading the text downstream, a regex in one, a markdown parser in the other, saw characters I'd stopped noticing.&lt;/p&gt;

&lt;p&gt;What I do now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Match against the stored form, not the displayed one.&lt;/strong&gt; If a channel stores formatting as characters (&lt;code&gt;_&lt;/code&gt;, &lt;code&gt;*&lt;/code&gt;, &lt;code&gt;~&lt;/code&gt;, backticks), assume any line you parse may be wrapped in them. Don't lean on &lt;code&gt;\b&lt;/code&gt; beside text that might start with an underscore.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test parsers with real messages from the channel.&lt;/strong&gt; My regex test strings were all clean, plain-text &lt;code&gt;REQ-142&lt;/code&gt;. The channel has never contained a clean one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put a newline after every opening code fence&lt;/strong&gt; in anything a machine will read. The first line belongs to the tag.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Neither bug was clever. Both sat in the gap between what a message looks like and what it contains.&lt;/p&gt;

</description>
      <category>regex</category>
      <category>python</category>
      <category>slack</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Nothing Failed. Things Just Stopped Being Looked At.</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Tue, 17 Nov 2026 08:00:47 +0000</pubDate>
      <link>https://dev.to/tedagentic/nothing-failed-things-just-stopped-being-looked-at-3e1e</link>
      <guid>https://dev.to/tedagentic/nothing-failed-things-just-stopped-being-looked-at-3e1e</guid>
      <description>&lt;p&gt;I run a travel directory that has grown from one region to six. Each region has its own pages, its own listings, its own prices, and its own list of open questions waiting on someone: a host who hasn't replied, a price that needs re-checking, a page that should be built once enough listings are confirmed.&lt;/p&gt;

&lt;p&gt;The site has a lot of monitoring. Uptime, broken affiliate links, schema validity, a weekly ranking tracker, a weekly re-read of every listing's rules. On a normal Monday the alerts are quiet, and quiet felt like healthy.&lt;/p&gt;

&lt;p&gt;Then I spent one day actually walking through every region, and found this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One region's search clicks were down 25% week on week, after its rankings had been slipping for two weeks. The ranking tracker had seen the drop, flagged it once as "waiting for confirmation", and moved on.&lt;/li&gt;
&lt;li&gt;Three pages were quoting nightly prices "for Tuesday 10 November". It was 16 November. The prices had been accurate when they were checked. They had simply expired.&lt;/li&gt;
&lt;li&gt;A page that had been retired months earlier still carried three placeholder listings in its code, with made-up ratings. A redirect hid them. Remove the redirect and they'd be live.&lt;/li&gt;
&lt;li&gt;Four regions had been researched, scored and planned in October. Nobody had touched them since. They existed only in a notes file.&lt;/li&gt;
&lt;li&gt;Three listings had been quietly removed from the platform they were booked on. Their pages still recommended them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Not one of those threw an error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Neglect doesn't fail. It just stops being looked at.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every monitor I had was asking "is anything broken?" None of these things were broken. A stale price is a correct number with a date attached. A forgotten plan is a perfectly valid file. A slow slide in clicks is a series of normal-looking days. The system was doing exactly what it was told. What had gone missing was attention, and attention doesn't have a status code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The failure was memory, not work
&lt;/h2&gt;

&lt;p&gt;With one region, I didn't need a system. I knew what was open because there was only one thing to think about. By six regions, "what's the next task?" had quietly turned into "what do I happen to remember?", and the answer always favoured whatever I'd touched most recently.&lt;/p&gt;

&lt;p&gt;So the fix wasn't another monitor. It was a register: one file, one record per region, where everything that can go stale carries a date.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"region-a"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"live"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"price_pages"&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="nl"&gt;"page"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/region-a/cabins"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"checked"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-16"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"for_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2027-01-12"&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="nl"&gt;"last_full_check"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-16"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"next_actions"&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="nl"&gt;"what"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Judge the retitle on the weekly tracker"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"due"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-30"&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="nl"&gt;"what"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Follow up the three silent hosts"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"due"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-18"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three fields did most of the work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;for_date&lt;/code&gt;, not just &lt;code&gt;checked&lt;/code&gt;.&lt;/strong&gt; I had always recorded when a price was checked. That isn't what makes it wrong. A price checked yesterday for a stay last week is already useless. The register stores the date the price is &lt;em&gt;for&lt;/em&gt;, and flags any page where that date has passed or is two weeks away.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;due&lt;/code&gt; on every open action.&lt;/strong&gt; "Follow up the hosts" isn't a task until it has a day attached. Without one, it sits in a notes file and becomes a fact about the past.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;last_full_check&lt;/code&gt; plus a rotation.&lt;/strong&gt; Once a week the oldest region is due a full pass: re-read every listing, re-check prices, look at its rankings. Six regions, about one a week, so nothing goes more than a month without someone actually looking at it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A message that only lists what's due
&lt;/h2&gt;

&lt;p&gt;Every Monday a plain script (no AI, about 200 lines) reads the register and posts one message. It joins in live data: listing counts from the database, search clicks week on week, the ranking tracker's last two runs. Then it lists only what needs attention:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;clicks down 20% or more week on week&lt;/li&gt;
&lt;li&gt;a ranking drop of three places or more&lt;/li&gt;
&lt;li&gt;prices with no check date, or for a date that has passed or is close&lt;/li&gt;
&lt;li&gt;actions due within three days, or overdue&lt;/li&gt;
&lt;li&gt;regions still being built, against how many confirmed listings they need&lt;/li&gt;
&lt;li&gt;this week's rotation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Regions with nothing due go on one line at the bottom: "All clear: …". That line turned out to matter. Without it, a silent region and a forgotten region look identical. With it, every region is accounted for every week, either in a list of problems or in the all-clear.&lt;/p&gt;

&lt;p&gt;The first run flagged two price pages with no check date at all, one of them still showing two prices that had been re-checked that morning on a different page. Same listings, same week, two prices. Nothing about that was broken either.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making the register the source of truth
&lt;/h2&gt;

&lt;p&gt;The register only works if it's the first place I look and the place every change gets written down. So two rules came with it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;"What's the next task?" gets answered from the register, not from memory.&lt;/li&gt;
&lt;li&gt;Any work that changes a region's state updates the register in the same sitting: a price re-check, a full pass, a new region, a finished action.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A second script reads the same file every morning and puts the top three due items across all my sites in one short briefing. That covers this blog too, which, it pointed out, hadn't had a post in fifteen days.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell myself at region two
&lt;/h2&gt;

&lt;p&gt;Monitoring answers "is it broken?" Running more than a couple of things also needs an answer to "when did someone last look at it?", and that answer has to live in data, not in your head.&lt;/p&gt;

&lt;p&gt;The cheapest version is a file with a due date on everything that can go stale, and something that reads it every week and says out loud what's overdue. The overdue items had been there all along. The difference is that now something tells me.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>monitoring</category>
      <category>productivity</category>
      <category>seo</category>
    </item>
    <item>
      <title>The Config File Was a Program</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Sun, 01 Nov 2026 08:00:48 +0000</pubDate>
      <link>https://dev.to/tedagentic/the-config-file-was-a-program-2kmb</link>
      <guid>https://dev.to/tedagentic/the-config-file-was-a-program-2kmb</guid>
      <description>&lt;p&gt;I run a travel directory: about 800 prerendered pages, 190 redirect rules built up over a year of renames, and a small database behind it. For its whole life the front end lived on Vercel's free Hobby plan. Two things ended that this week.&lt;/p&gt;

&lt;p&gt;The first was an email saying I'd used 75% of my deployment storage. The second was something I'd been putting off: Hobby is for non-commercial use, and this site earns affiliate commission, so it never really belonged there. Paying $20 a month wasn't justified yet. Cloudflare Workers has a free tier that serves static files without charging for them, and the worker itself gets 100,000 requests a day. The site was averaging about 16,000.&lt;/p&gt;

&lt;p&gt;I expected a settings job. Point the build at a new host, copy a config file across, change two DNS records. Claude Code did the hands-on work on my home server, I approved each step, and the rule was the same as my database move a few days earlier: build it alongside the live site, prove it's the same, switch once, keep a way back.&lt;/p&gt;

&lt;h2&gt;
  
  
  There was nothing to copy
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;vercel.json&lt;/code&gt; in that repo is over 650 lines of redirects, headers and rewrites. It looks like settings. You'd scroll past it the way you scroll past a &lt;code&gt;.prettierrc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Cloudflare doesn't read it. Its own config has a handful of options and no rule list like that one. Everything in that file would have to be done by something else, and the only thing available was a small worker sitting in front of the static files, written from scratch.&lt;/p&gt;

&lt;p&gt;That was the moment the job changed shape, because writing the worker meant answering questions the file never asks. In what order do the rules run? Do redirects come before static files? What does &lt;code&gt;:slug+&lt;/code&gt; match? Is matching case-sensitive? When a path has no file, what happens, and with what status code?&lt;/p&gt;

&lt;p&gt;None of those answers are in &lt;code&gt;vercel.json&lt;/code&gt;. They were in Vercel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A config file isn't settings. It's a program, and the platform was its interpreter.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I had never written that interpreter, so I had never had to know what it did. The file looked simple because the complicated half lived on someone else's servers, and leaving meant bringing that half home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing the interpreter
&lt;/h2&gt;

&lt;p&gt;The worker came out at about 120 lines. It imports the original &lt;code&gt;vercel.json&lt;/code&gt; directly, so that file stays the single source of truth, and it does what Vercel did in the same order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Redirects, first match wins, query string kept.&lt;/li&gt;
&lt;li&gt;A same-origin proxy path through to the database API.&lt;/li&gt;
&lt;li&gt;Static files.&lt;/li&gt;
&lt;li&gt;Any other path without a file extension gets the app shell with a 200.&lt;/li&gt;
&lt;li&gt;Headers from the file, added to every response.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The heart of it turns path patterns into regular expressions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// "/guides/:city" or "/:path+/" → RegExp with named groups&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;source&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;re&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;source&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&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="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;source&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/^:&lt;/span&gt;&lt;span class="se"&gt;([&lt;/span&gt;&lt;span class="sr"&gt;A-Za-z_&lt;/span&gt;&lt;span class="se"&gt;]\w&lt;/span&gt;&lt;span class="sr"&gt;*&lt;/span&gt;&lt;span class="se"&gt;)(\([^&lt;/span&gt;&lt;span class="sr"&gt;)&lt;/span&gt;&lt;span class="se"&gt;]&lt;/span&gt;&lt;span class="sr"&gt;*&lt;/span&gt;&lt;span class="se"&gt;\))?([&lt;/span&gt;&lt;span class="sr"&gt;+*?&lt;/span&gt;&lt;span class="se"&gt;])?&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;whole&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;custom&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;mod&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;seg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;custom&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="nx"&gt;custom&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&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="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;[^/]+?&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;mod&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;+&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;re&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="s2"&gt;`(?&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;seg&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;(?:/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;seg&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;)*)`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="nx"&gt;re&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="s2"&gt;`(?&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;seg&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;)`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;whole&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;continue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nx"&gt;re&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nx"&gt;source&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="se"&gt;[&lt;/span&gt;&lt;span class="sr"&gt;.^$|?*+[&lt;/span&gt;&lt;span class="se"&gt;\]&lt;/span&gt;&lt;span class="sr"&gt;{}&lt;/span&gt;&lt;span class="se"&gt;\\]&lt;/span&gt;&lt;span class="sr"&gt;/g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s2"&gt;$&amp;amp;&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;i&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="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RegExp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`^&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;re&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;$`&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;That's simplified. The real one also handles &lt;code&gt;*&lt;/code&gt;, &lt;code&gt;?&lt;/code&gt; and unnamed groups, and every one of those branches exists because a rule in the file needed it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The behaviours were the spec
&lt;/h2&gt;

&lt;p&gt;There's no document that says exactly what the old host does, so the old host had to be the document. I kept the Vercel copy reachable on its own URL and compared the two, response by response, across every URL in the sitemap and 202 redirect cases.&lt;/p&gt;

&lt;p&gt;One of the first things it caught was a loop. My first version matched paths case-insensitively, because that seemed friendlier. The file has a rule that sends one mixed-case URL to its lowercase form, and with case-insensitive matching the lowercase URL matched the same rule and redirected to itself, forever. Vercel matches case-sensitively. Nothing in the file says so. The rule only works because of a behaviour the file silently depends on.&lt;/p&gt;

&lt;p&gt;The rest were quieter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cloudflare's static file handling strips &lt;code&gt;/index.html&lt;/code&gt; and &lt;code&gt;.html&lt;/code&gt; with a 307, a temporary redirect. Every other redirect on the site is a permanent 308. Search engines treat those differently, so the worker now converts them.&lt;/li&gt;
&lt;li&gt;Vercel adds &lt;code&gt;; charset=utf-8&lt;/code&gt; to text responses. Cloudflare doesn't. Most browsers would cope, but a page's declared encoding isn't something I want to leave to chance across 800 pages.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;robots.txt&lt;/code&gt;, &lt;code&gt;sitemap.xml&lt;/code&gt; and &lt;code&gt;favicon.ico&lt;/code&gt; must stay out of the app-shell fallback, or a missing one returns a cheerful 200 full of HTML.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these would have shown up in a browser. Each one would have sat there quietly doing small damage to a site whose traffic comes from search.&lt;/p&gt;

&lt;p&gt;After the fixes, all 610 sitemap pages matched on status, title, canonical, robots tag and main heading. Every redirect matched except one deliberate change: &lt;code&gt;/x/index.html&lt;/code&gt; now answers with a 308, which is better than the original. Response headers matched. Then a real headless browser loaded a page that fetches from the database, through the proxy, and the listings rendered.&lt;/p&gt;

&lt;h2&gt;
  
  
  The switch took four lines
&lt;/h2&gt;

&lt;p&gt;The DNS was already on Cloudflare, so the cutover was a script that deleted two records and attached the two hostnames to the worker. All four lines came back &lt;code&gt;True&lt;/code&gt;. The old records went to a backup file first, and the rollback is the same script in reverse. Vercel keeps the old project with its builds turned off, so going back would take minutes.&lt;/p&gt;

&lt;p&gt;The part that failed was the boring part. Automatic builds died at the asset upload with error 10013, because the build token Cloudflare had picked was left over from a different site and had no rights on this one. Creating a fresh token fixed it. After all that careful comparison, the only outage risk that actually fired was a stale credential on the deploy path, and it never touched the live site, because a failed build just leaves the last good version in place.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number I got wrong
&lt;/h2&gt;

&lt;p&gt;One more thing, because it's the same mistake in a different costume.&lt;/p&gt;

&lt;p&gt;When the storage email arrived, I read the dashboard's 8.81 GB as a measure of what was stored, deleted 90 old deployments, and set a one-week retention. The figure didn't move. So I decided it was a rolling count of everything built in the last 30 days, worked out about 56 MB per build across 158 builds, and wrote a monitor on that basis, stating confidently that deleting deployments doesn't lower it.&lt;/p&gt;

&lt;p&gt;A day later the dashboard read about 230 MB. So that explanation was wrong too, or at least incomplete, and I still can't say for certain which change did it. I had taken a platform's number, invented a mechanism that fit it, and built tooling on the guess. A usage figure on a dashboard is the output of a program as well, and I didn't have the source for that one either.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd keep from this
&lt;/h2&gt;

&lt;p&gt;Anything a platform does for you without being asked is code you're depending on and haven't read. That's a fine trade, and it's most of why platforms are worth using. Just don't mistake it for simplicity. The bill arrives on the day you leave, as a list of behaviours you have to rediscover by measurement, because the only full specification was the running system.&lt;/p&gt;

&lt;p&gt;So before you leave anything, keep the old one reachable and let it be your spec. Compare outputs, not intentions. And when something looks like plain settings, ask what's reading it.&lt;/p&gt;

</description>
      <category>cloudflare</category>
      <category>vercel</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
    <item>
      <title>Identical in Every Way I Checked</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Mon, 26 Oct 2026 15:09:44 +0000</pubDate>
      <link>https://dev.to/tedagentic/identical-in-every-way-i-checked-4n0</link>
      <guid>https://dev.to/tedagentic/identical-in-every-way-i-checked-4n0</guid>
      <description>&lt;p&gt;I run a travel directory: about 750 pages, a few hundred listings, a couple of dozen user accounts, and a log of every click on an affiliate booking link. The front end has always lived on Vercel. The database didn't. It lived inside Lovable Cloud, the managed backend that comes with Lovable's app builder: a real Supabase project, but one I could only reach through Lovable. No dashboard, no connection string, no &lt;code&gt;pg_dump&lt;/code&gt;. Lovable gives you a query tool, and on the free plan it locks you out for twenty minutes if you use it too much.&lt;/p&gt;

&lt;p&gt;This week I moved that database to a Supabase project I own. Claude Code did the hands-on work on my home server, I approved each step, and the plan had one rule: never touch the live database. Build a copy, prove the copy is the same, rehearse on it, then switch the site over once, with a way back.&lt;/p&gt;

&lt;p&gt;The copy passed every check I wrote. It was still wrong, and the check that caught it was me clicking around an admin page.&lt;/p&gt;

&lt;h2&gt;
  
  
  The migration files weren't the database
&lt;/h2&gt;

&lt;p&gt;The obvious way to rebuild a Supabase database is to replay its migrations: the folder of SQL files that, in theory, records every change ever made. The repo had 89 of them. The replay died at file 29 on a missing row, and again at file 30, because a table called &lt;code&gt;favorites&lt;/code&gt; was created twice, by two different files, with different columns.&lt;/p&gt;

&lt;p&gt;Eighteen of the 89 files had been written by hand rather than generated by Lovable. Some had been run on the live database by pasting them into a SQL box. Some, it turned out, had never been run at all. The migrations folder wasn't the database's history. It was a story about the database, written by several authors, and nobody had checked it against the original.&lt;/p&gt;

&lt;p&gt;So I stopped trusting the story and read the database itself. Postgres will describe every object it holds: tables, columns, defaults, constraints, indexes, triggers, functions, security policies, permissions. One query against the live catalog produced a 438-statement script that rebuilt the structure exactly as it actually was, and it ran in a single transaction.&lt;/p&gt;

&lt;p&gt;Then I wrote a fingerprint: the same query run on both databases, hashing eleven categories of structure. 439 columns, 108 constraints, 109 indexes, 101 row-level security policies, 19 triggers, 22 functions and their permissions, table permissions, which tables have security switched on, enum types and storage buckets. All eleven hashes matched.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rows: the checksum caught the transport
&lt;/h2&gt;

&lt;p&gt;Content came next: the listings, the place pages, the law pages, around 800 images. For each table I hashed every row's text on both sides. Seven tables matched. Three didn't.&lt;/p&gt;

&lt;p&gt;The values were all equal. The text wasn't. A few columns were declared as plain &lt;code&gt;numeric&lt;/code&gt;, which keeps exactly the digits you store: a rating saved as &lt;code&gt;5.0&lt;/code&gt; stays &lt;code&gt;5.0&lt;/code&gt;, a latitude saved as &lt;code&gt;40.056930&lt;/code&gt; keeps its last zero. Lovable's query tool returns results as JSON, and JSON numbers don't keep trailing zeros. Somewhere between the live database and my copy, &lt;code&gt;5.0&lt;/code&gt; became &lt;code&gt;5&lt;/code&gt;. The page would have shown a rating of "5" where it used to show "5.0".&lt;/p&gt;

&lt;p&gt;No one reading the data would have spotted that. The checksum did. From then on, every row left the live database as text, never as a number, and the three tables matched to the digit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pages: the site wasn't deterministic
&lt;/h2&gt;

&lt;p&gt;The real test of a copy is whether the site built from it is the same site. This one prerenders its pages at build time, reading straight from the database, so I built it twice: once against live, once against the copy. Then I diffed all 745 generated pages.&lt;/p&gt;

&lt;p&gt;71 differed. Every difference was the same kind: a "nearby places" box showing a different listing. The query sorted listings by rating, and many listings share a rating. When rows tie, Postgres returns them in whatever order they happen to sit on disk, and a freshly loaded copy sits differently from a database that's been edited for a year. Same data, different picks.&lt;/p&gt;

&lt;p&gt;That wasn't a migration bug. The live site had it too: those boxes could reshuffle between any two deploys. Adding "then by name" to the sort fixed it on both, and the next comparison came back with zero differences across 1,309 files. You can't diff two outputs of a process that isn't deterministic. Making it deterministic was worth doing anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  The copy surfaced bugs the original was hiding
&lt;/h2&gt;

&lt;p&gt;Running the site's server code against a fresh database means running paths nobody had exercised in months. Two of them were broken on the live site.&lt;/p&gt;

&lt;p&gt;The contact form had been failing since May. A security update had changed four "notify me" triggers to call a function that doesn't exist in that database, so every contact message and every review errored on insert and was never saved. Nobody noticed because almost nobody used the form.&lt;/p&gt;

&lt;p&gt;Behind that sat a second bug: the notification itself had never been sent. The function that sends it reads a shared secret out of Supabase's vault through the REST API, and the vault isn't exposed over the REST API. Every call got a 401. I fixed the first on the live site that day, and the second in the new project.&lt;/p&gt;

&lt;h2&gt;
  
  
  The check I didn't write
&lt;/h2&gt;

&lt;p&gt;Then came the rehearsal. A private preview deploy of the full site, pointed at the copy, for me to use like an owner. I signed in with my real password, which proved the password hashes had come across. Pages loaded and booking links worked.&lt;/p&gt;

&lt;p&gt;The admin dashboard said &lt;strong&gt;Users: 0&lt;/strong&gt;. The copy had twenty.&lt;/p&gt;

&lt;p&gt;The count comes from the profiles table, and the profiles security policy contains a small subquery. It lets anyone see the profile of a person who has written a public review, so it reads from the reviews table. On the copy, signed-in users weren't allowed to read the reviews table at all, so Postgres refused the whole query, and the dashboard showed zero.&lt;/p&gt;

&lt;p&gt;On the live site the same policy worked, because in July someone had locked the reviews table down column by column. They revoked read access to the whole table, then granted it back for the safe columns only, keeping receipt images and booking confirmations private. That's 155 grants, attached to individual columns.&lt;/p&gt;

&lt;p&gt;My fingerprint compared permissions on tables. It never looked at permissions on columns. Postgres stores those in a different place, and I hadn't thought to ask for it. The fingerprint said "identical" and it was telling the truth about everything it had been asked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Identical" isn't a property of two databases. It's a property of the comparison you ran.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Eleven matching hashes meant the copy matched in eleven ways I'd thought of. The twelfth was a column-level permission I didn't know existed, and the only thing that touched it was a person using the admin panel the way they always do.&lt;/p&gt;

&lt;p&gt;The fix took a minute: read the 155 grants off the live database, apply them, compare. Then I widened the sweep to every other permission type I hadn't compared (schemas, defaults, types, storage, role settings). The only differences left were Supabase's own platform internals.&lt;/p&gt;

&lt;h2&gt;
  
  
  The switch
&lt;/h2&gt;

&lt;p&gt;After that the switch itself was short. A final export of every table as text, loaded into the copy and compared row by row. All 34 tables matched. Then one commit, pointing the site's database settings and its same-origin database proxy at the new project, plus two production environment variables on Vercel. The old database stayed untouched, so reverting one commit and two variables would put everything back in minutes.&lt;/p&gt;

&lt;p&gt;The checks after the switch were the boring kind I wanted: every sitemap page returned 200 with the same title, canonical, links and structured data as before. Visitors can't write a single row. A contact message saved and its notification arrived, for the first time since May. Zero rows had landed on the old database between the final export and the switch.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd keep
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read the database, not its history.&lt;/strong&gt; Migration files describe intent. The catalog describes what's actually there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Move data as text.&lt;/strong&gt; Every layer between two databases can reformat a value. A checksum on row text catches it. Your eyes won't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make the output deterministic before you diff it.&lt;/strong&gt; Otherwise the diff measures noise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write down what your checks don't cover.&lt;/strong&gt; Mine said "identical" in eleven categories. The useful question was what the twelfth might be.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Let a person use the copy before you trust it.&lt;/strong&gt; The rehearsal found what eleven hashes, every row checksum and 745 page comparisons didn't, because it wasn't looking for anything. It was just using the site.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>database</category>
      <category>supabase</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
    <item>
      <title>Every Caveat Was True. The Page Still Pushed People Away.</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Fri, 23 Oct 2026 08:00:47 +0000</pubDate>
      <link>https://dev.to/tedagentic/every-caveat-was-true-the-page-still-pushed-people-away-31o9</link>
      <guid>https://dev.to/tedagentic/every-caveat-was-true-the-page-still-pushed-people-away-31o9</guid>
      <description>&lt;p&gt;The directory lists places to stay where guests are allowed to smoke cannabis. Each listing answers one question: where on this property can I smoke?&lt;/p&gt;

&lt;p&gt;For weeks I treated that question the way I treat most data problems. Find the source, quote it, record when you checked, and flag anything uncertain. By the end, every listing was defensible. A typical one read like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Verified from the Vrbo listing (checked 6 October 2026). The host writes: "420 friendly OUTSIDE ONLY — please note any smoking of any kind inside may result in a minimum $250 fine." A whole-home or private-suite rental is not a hotel, so the host's rules apply; street address is released after booking.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every word of that is true. Then the person I build this for photographed their screen and sent it to me. A hotel card, three-quarters legal text: the state code section, a "legal grey zone", "ask the front desk before you rely on it", a $500 cleaning fee. The message was blunt. "You make it so scary that users might even end up not booking."&lt;/p&gt;

&lt;p&gt;They were right, and it took me a while to see why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accurate and welcoming are different questions
&lt;/h2&gt;

&lt;p&gt;Accuracy decides what you're &lt;em&gt;allowed&lt;/em&gt; to say. It says nothing about what the reader needs to see first.&lt;/p&gt;

&lt;p&gt;Someone looking at a rental they might book wants three things: is it allowed, where, and is there anything I must know to avoid a problem. The note above answers all three, but it buries them under how I know: the source, the check date, the legal category, the address policy. That part was written for me, not for the guest. It's audit material, and I'd published it.&lt;/p&gt;

&lt;p&gt;The result read like a warning label on something I was meant to be recommending. A fee quoted on a listing card doesn't say "here's a detail". It says "people get charged here". A "grey zone" doesn't inform anyone. It makes them nervous. None of it was false. All of it was the wrong thing to lead with.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: evidence and copy live in different places
&lt;/h2&gt;

&lt;p&gt;The rule I settled on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The page shows the rule, in plain words.&lt;/strong&gt; "Cannabis is welcome outside, on the deck or the front porch. No smoking indoors."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The record keeps the proof.&lt;/strong&gt; The source, the quote word for word, the date, who checked. That's where I go when something needs auditing. It doesn't need to be on screen for a guest to trust it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same note, after:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;420 friendly outside. No smoking inside.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I kept every &lt;em&gt;fact&lt;/em&gt; a guest needs: indoors or outdoors, where exactly, age limits (one property requires the main guest to be 25+, and that stays because it can get someone turned away at check-in). I dropped everything that was there to protect me: check dates, "verified from", fee amounts, and "ask the host" wherever we already knew the answer.&lt;/p&gt;

&lt;p&gt;Rewritten that way, 105 listings went from a paragraph each to a line or two. The listing pages themselves went from showing the full note under every card to one short line per stay, with the detail page one tap away.&lt;/p&gt;

&lt;h2&gt;
  
  
  The opposite failure was in the same template
&lt;/h2&gt;

&lt;p&gt;While I was cleaning one page, I found that an older template on it had been doing the reverse. It wasn't over-cautious. It was over-selling:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a "Selling Fast" box claiming one town was "92% booked for upcoming weekends";&lt;/li&gt;
&lt;li&gt;a "#1 Reader's Choice" badge on whichever listing loaded first, on a site with no reader votes;&lt;/li&gt;
&lt;li&gt;a "Risk Level: ZERO" badge on the top two cards and "LOW" on the rest, decided by position in the list;&lt;/li&gt;
&lt;li&gt;a sidebar promise that "we verify policies monthly", which nothing did.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of it came from data. It was invented reassurance, and it sat a few inches from my over-sourced caveats. Two opposite mistakes, one page: one made true things sound frightening, the other made untrue things sound safe.&lt;/p&gt;

&lt;p&gt;Both come from the same place: writing for the wrong reader. The caveats were written for an imagined auditor, and the fake badges for an imagined conversion-rate chart. Neither was written for the person deciding where to sleep.&lt;/p&gt;

&lt;p&gt;All four came out. Nothing replaced them, because the honest version of "92% booked" is no claim at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  A default can speak too
&lt;/h2&gt;

&lt;p&gt;One more version of the same problem was hiding in the data, not the copy.&lt;/p&gt;

&lt;p&gt;Each listing has amenity flags (smoking, vaping, edibles) and the detail page renders them as tiles. A flag set to &lt;em&gt;false&lt;/em&gt; shows as a red "Not Permitted". Many listings had vaping and edibles set to false. Not because anyone said no, but because nobody had asked, and false was the value that got typed in.&lt;/p&gt;

&lt;p&gt;So a place whose host said "cannabis is welcome anywhere outside" showed two red "Not Permitted" tiles under the welcome. The person I build for made the point simply: if smoking is allowed, vaping and edibles obviously are. They're the quieter, odourless versions of the same thing. That's now the rule, and it applies to every listing where smoking is allowed.&lt;/p&gt;

&lt;p&gt;The general lesson is the one I keep relearning: an unknown stored as &lt;em&gt;false&lt;/em&gt; doesn't stay unknown. On the page, it turns into a claim.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I don't know yet
&lt;/h2&gt;

&lt;p&gt;Nobody had booked through the directory in weeks, which is part of why this mattered. I'm not going to claim the rewrite fixed that. The honest test is in two weeks: what share of visitors clicked through to a booking page before the change, and what share after. If friendlier pages help, that number should move before any booking does.&lt;/p&gt;

&lt;p&gt;What I can say now is narrower. A page can be fully sourced and still fail the reader, because sourcing answers "can I defend this?" and the reader is asking "should I book this?". Keep the first answer in the record. Put the second on the page.&lt;/p&gt;

</description>
      <category>writing</category>
      <category>dataintegrity</category>
      <category>operations</category>
      <category>ux</category>
    </item>
    <item>
      <title>The Answer Wasn't on the Page. Someone Had to Ask.</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Thu, 22 Oct 2026 08:53:47 +0000</pubDate>
      <link>https://dev.to/tedagentic/the-answer-wasnt-on-the-page-someone-had-to-ask-3ld1</link>
      <guid>https://dev.to/tedagentic/the-answer-wasnt-on-the-page-someone-had-to-ask-3ld1</guid>
      <description>&lt;p&gt;The question was simple. For each vacation rental in a travel directory I maintain, could a guest smoke cannabis anywhere on the property, and if so, where?&lt;/p&gt;

&lt;p&gt;It's a narrow question with real consequences. Get it wrong in one direction and a guest pays a $200 cleaning fee, or loses a deposit. Get it wrong in the other and you hide a perfectly good place from the people looking for it.&lt;/p&gt;

&lt;p&gt;So I built the check the way I build most checks: by reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every source answered a slightly different question
&lt;/h2&gt;

&lt;p&gt;Rental platforms give each listing a structured house-rules field. The one that mattered looked like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Smoking allowed: in designated areas&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's a real signal. It's a checkbox the host chose, it shows up in disputes, and it's more trustworthy than marketing copy. But it answers a different question from the one I was asking. "Designated areas" for what? Cigarettes on the back step? A balcony? Everything?&lt;/p&gt;

&lt;p&gt;Then the host's own description, which sometimes helped ("Deck is 420 friendly!") and usually said nothing at all. Then the property's website, if it had one, which mostly didn't mention cannabis because few businesses want that sentence in writing. Then policy pages, FAQs and reviews.&lt;/p&gt;

&lt;p&gt;I'd stack these up, two signals agreeing, and grade each listing. Smoking allowed somewhere, plus the host naming cannabis: listed. Smoking allowed, cannabis never mentioned: not listed.&lt;/p&gt;

&lt;p&gt;That second bucket was large. In one sweep of 25 listings across two cities that allowed smoking, only 5 hosts mentioned cannabis anywhere a reader could see it. Most of the rest sat in limbo. They weren't rejected, they just never made the list.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Not written down" had quietly become "not known"
&lt;/h2&gt;

&lt;p&gt;Here's the mistake, and it took me an embarrassingly long time to see it.&lt;/p&gt;

&lt;p&gt;The information I wanted did exist. Each of those hosts knew exactly what they'd say if a guest asked. I'd decided that because I couldn't find it written down, the system should treat it as unknown. Then, because unknown things don't get listed, unknown worked out as a no.&lt;/p&gt;

&lt;p&gt;Reading was my only instrument, so the limits of reading became the limits of what I knew. I'd confused "my method can't see it" with "it isn't there".&lt;/p&gt;

&lt;h2&gt;
  
  
  Two ways of asking, two very different results
&lt;/h2&gt;

&lt;p&gt;I had tried asking before, through the normal business channel. Starting in April, I sent emails to properties as a publication, introducing the directory and asking about their smoking policy. Over six months: zero replies. Not one no. Nothing.&lt;/p&gt;

&lt;p&gt;That result had taught me the wrong thing: that hosts don't answer. What it actually showed was that hosts don't answer &lt;em&gt;businesses asking about policy&lt;/em&gt;. Nobody gains anything from answering a directory, and a written policy statement about cannabis is something a careful owner might not want to send a stranger with a website.&lt;/p&gt;

&lt;p&gt;So we asked the way a traveller asks. A browser agent I run (it drives a real browser on my behalf) messaged ten hosts through the platform's own contact button, one short message each:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Your house rules say smoking is allowed in designated areas. Does that include cannabis (21+, outside only)? Where is the designated area: the patio, the deck or the yard?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Within hours, nine of the ten had replied. One said only that the dates weren't available. The other eight answered the question, and all eight said yes. More useful still, they said &lt;em&gt;where&lt;/em&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"you are welcome to smoke outside either on the backyard patio or the front porch"&lt;/li&gt;
&lt;li&gt;"anywhere in the gated yard of that unit is fine. Patio is probably most comfortable"&lt;/li&gt;
&lt;li&gt;"outside only, away from windows, as long as there is an awareness of nearby neighbors"&lt;/li&gt;
&lt;li&gt;"Patio if you're discrete"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The thing I most wanted to tell a reader, the exact spot, had never been on any page. It was in eight people's heads, and one question got it out.&lt;/p&gt;

&lt;h2&gt;
  
  
  I want to be straight about the "as a traveller" part
&lt;/h2&gt;

&lt;p&gt;The message went out the way a guest's would, with real dates entered, and it didn't say it came from a directory. The question itself was honest: it's precisely what a guest needs to know before booking, and we didn't promise a booking, accept any offer, or pay for anything. But a host answering "a guest" is not the same as a host agreeing to be quoted by a publication. That distinction shaped the next mistake.&lt;/p&gt;

&lt;h2&gt;
  
  
  A reply is evidence, not copy
&lt;/h2&gt;

&lt;p&gt;My first instinct was to publish the provenance. The listing pages said, more or less, "We asked the host directly; the host replied: …" and quoted the message.&lt;/p&gt;

&lt;p&gt;That was wrong, and the person I build this for caught it straight away. A private reply is how we &lt;em&gt;know&lt;/em&gt; the rule. It isn't something to put on a public page. The reader needs one thing, the rule: "Cannabis is welcome outside, on the backyard patio or the front porch. No smoking indoors." Who asked, through which channel and when belongs in the internal record (the date, the request ID, the reply word for word) where I can audit it later. It doesn't belong on the page, and it doesn't put someone's private message in front of strangers.&lt;/p&gt;

&lt;p&gt;So the evidence and the published claim now live in different places, on purpose. The page shows only what the reader needs. The source is kept where it can be checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Even the host's own words get checked
&lt;/h2&gt;

&lt;p&gt;A host's word is strong evidence about their own property. It's weak evidence about anything else.&lt;/p&gt;

&lt;p&gt;One listing explained, helpfully, that recreational cannabis wasn't sold in that city, only medical. That had been true. It stopped being true when recreational sales started there in April 2025. The host's rule about their own patio went into the listing. Their claim about the city's laws didn't, and the directory's own text was corrected to the current law. Owning the place makes a host an authority on the place, and on nothing else.&lt;/p&gt;

&lt;h2&gt;
  
  
  The method has real limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The contact button only appears after you choose dates.&lt;/strong&gt; With no dates selected, the platform showed no way to message the host, only an AI "ask a question" box that searches the listing and never reaches a person. The first pass concluded, reasonably but wrongly, that messaging wasn't possible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New accounts get rate-limited fast.&lt;/strong&gt; After ten messages the platform started returning "something went wrong" on every send. The rest now go out at five a day.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silence is still not a no.&lt;/strong&gt; One host never answered. That listing stays where it was: not promoted, not rejected.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;The rule is now: when the written evidence is ambiguous and a person could settle it, ask before deciding. Reading is still step one, because it's cheap and it filters out the outright nos. But "ambiguous after reading" no longer quietly means "drop it". It means "ask".&lt;/p&gt;

&lt;p&gt;In one day that turned into eight confirmed listings, each with the exact spot where a guest can smoke. Reading alone would have left every one of them out.&lt;/p&gt;

&lt;p&gt;I'd built a careful system for reading what people had published. The answer I needed was one nobody had published, because nobody had asked for it.&lt;/p&gt;

</description>
      <category>verification</category>
      <category>dataintegrity</category>
      <category>operations</category>
      <category>research</category>
    </item>
    <item>
      <title>REA: Giving My Coding Agent Real Reverse-Engineering Tools (and What I Had to Verify First)</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Wed, 21 Oct 2026 17:36:52 +0000</pubDate>
      <link>https://dev.to/tedagentic/rea-giving-my-coding-agent-real-reverse-engineering-tools-and-what-i-had-to-verify-first-4ff7</link>
      <guid>https://dev.to/tedagentic/rea-giving-my-coding-agent-real-reverse-engineering-tools-and-what-i-had-to-verify-first-4ff7</guid>
      <description>&lt;p&gt;Ask an AI coding agent how a program works and it will usually tell you. Fluently, in detail, and mostly from memory: what programs like that &lt;em&gt;tend&lt;/em&gt; to do, reconstructed from training data. The actual file on your disk never gets opened.&lt;/p&gt;

&lt;p&gt;REA changes that. This post covers what it is, what it's useful for, how I set it up, what I had to verify before I trusted it, and two tests that show it working.&lt;/p&gt;

&lt;h2&gt;
  
  
  What REA is
&lt;/h2&gt;

&lt;p&gt;REA ("Reverse Engineer Anything") is a free, open-source, MIT-licensed tool that connects AI coding agents to real reverse-engineering software. It's published as the npm package &lt;code&gt;rea-agents&lt;/code&gt; from the GitHub repo &lt;code&gt;morluto/rea&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It works as an &lt;strong&gt;MCP server&lt;/strong&gt;. MCP, the Model Context Protocol, is the plug standard coding agents like Claude Code, Codex, Cursor and Gemini CLI use to call outside tools. REA doesn't do the decompiling itself. It's a routing layer that picks the right engine for the target:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native programs&lt;/strong&gt; (Linux/Windows/macOS executables): Ghidra, the NSA's open-source reverse-engineering suite, or IDA/Hopper if you have them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android apps (APKs):&lt;/strong&gt; JADX, the standard open-source Android decompiler.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JavaScript/Electron apps, .NET assemblies, websites, saved network captures:&lt;/strong&gt; built-in static analysis, no extra engine needed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What comes back isn't a chat answer. It's &lt;strong&gt;structured evidence&lt;/strong&gt;: decompiled code, strings, addresses, cross-references, an ID for each finding, and a list of limitations, meaning what this analysis &lt;em&gt;can't&lt;/em&gt; tell you. Everything runs locally.&lt;/p&gt;

&lt;p&gt;The project moves fast and has attracted copycats, so its README says to install only from &lt;code&gt;morluto/rea&lt;/code&gt;, &lt;code&gt;rea.tools&lt;/code&gt;, or the &lt;code&gt;rea-agents&lt;/code&gt; npm package. There's also an older &lt;code&gt;@morluto/rea&lt;/code&gt; package on npm from the same author, stuck at version 0.2.1. The current one is &lt;code&gt;rea-agents&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it's useful for
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Learning how software actually works:&lt;/strong&gt; pick a feature and read the real code behind it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security practice:&lt;/strong&gt; crackmes, CTF binaries, malware-analysis exercises.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checking what an app really does:&lt;/strong&gt; why does this app want location access? What does it send, and where?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Debugging your own builds:&lt;/strong&gt; what actually ended up in the shipped bundle or binary.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One rule I hold to: only analyse software you own, open-source projects, or things you're explicitly allowed to examine. REA's own docs scope it to lawful research, education, interoperability and authorised analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I set it up
&lt;/h2&gt;

&lt;p&gt;My goal was simple: type &lt;code&gt;rea&lt;/code&gt;, land in an agent session with every tool ready, and keep all of it away from my everyday agent setup, which touches production scripts.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. A local install, pinned
&lt;/h3&gt;

&lt;p&gt;Rather than a global install, I installed it into its own folder at an exact version, with dependency install scripts disabled:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; ~/rea-sandbox &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; ~/rea-sandbox
npm init &lt;span class="nt"&gt;-y&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--ignore-scripts&lt;/span&gt; &lt;span class="nt"&gt;--save-exact&lt;/span&gt; rea-agents@6.7.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It needs Node 22.19+ (or 24.11+, or 26+).&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A separate agent profile
&lt;/h3&gt;

&lt;p&gt;REA's installer registers itself with whichever agents you choose. Claude Code reads its configuration from a directory you can override with &lt;code&gt;CLAUDE_CONFIG_DIR&lt;/code&gt;, and REA's setup respects that. So everything went into a second profile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;CLAUDE_CONFIG_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.claude-rea ./node_modules/.bin/rea setup &lt;span class="nt"&gt;--client&lt;/span&gt; claude_code &lt;span class="nt"&gt;--dry-run&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--dry-run&lt;/code&gt; prints exactly which files it will write. It wanted two paths, both inside &lt;code&gt;~/.claude-rea&lt;/code&gt;: the tool registration and a workflow "skill". It also &lt;em&gt;detected&lt;/em&gt; four other agents on my machine and left them alone, because only &lt;code&gt;claude_code&lt;/code&gt; was selected. After reading the plan, I ran it again with &lt;code&gt;--yes&lt;/code&gt; instead of &lt;code&gt;--dry-run&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Ghidra, for native programs
&lt;/h3&gt;

&lt;p&gt;Ghidra needs a Java 21 runtime. I took the release straight from the NSA's GitHub and checked the SHA-256 published in the release notes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;openjdk-21-jdk-headless
gh release download Ghidra_12.1.4_build &lt;span class="nt"&gt;-R&lt;/span&gt; NationalSecurityAgency/ghidra &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="s1"&gt;'ghidra_*.zip'&lt;/span&gt;
&lt;span class="nb"&gt;sha256sum &lt;/span&gt;ghidra_12.1.4_PUBLIC_20260921.zip   &lt;span class="c"&gt;# compare with the release notes&lt;/span&gt;
unzip ghidra_12.1.4_PUBLIC_20260921.zip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I re-ran setup with &lt;code&gt;GHIDRA_INSTALL_DIR&lt;/code&gt; pointing at the unpacked folder. REA checks the installation and saves the path into the agent registration. 12.1.4 is the version REA lists as supported.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. JADX, for Android apps
&lt;/h3&gt;

&lt;p&gt;This was the part that needed the most care, so it gets its own section below. The short version: REA talks to JADX through a small third-party wrapper called &lt;code&gt;jadx-headless-mcp&lt;/code&gt;, pinned to version 0.7.1. I built it from source, confirmed my build matched the published release byte for byte, and pointed REA at it with &lt;code&gt;REA_JADX_MCP_JAR&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. One command: &lt;code&gt;rea&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;A short script in &lt;code&gt;~/.local/bin/rea&lt;/code&gt; ties it together:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# rea          → open the agent in the REA profile, all tools wired&lt;/span&gt;
&lt;span class="c"&gt;# rea &amp;lt;args&amp;gt;   → run the REA CLI itself (rea doctor, rea analyze FILE, ...)&lt;/span&gt;
&lt;span class="nv"&gt;SANDBOX&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;/rea-sandbox"&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;CLAUDE_CONFIG_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;/.claude-rea"&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;GHIDRA_INSTALL_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$SANDBOX&lt;/span&gt;&lt;span class="s2"&gt;/ghidra_12.1.4_PUBLIC"&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;JAVA_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"/usr/lib/jvm/java-21-openjdk-amd64"&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;REA_JADX_MCP_JAR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$SANDBOX&lt;/span&gt;&lt;span class="s2"&gt;/jadx/jadx-headless-mcp-0.7.1-all.jar"&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="nv"&gt;$# &lt;/span&gt;&lt;span class="nt"&gt;-gt&lt;/span&gt; 0 &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then
  &lt;/span&gt;&lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$SANDBOX&lt;/span&gt;&lt;span class="s2"&gt;/node_modules/.bin/rea"&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$@&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="k"&gt;fi
&lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$SANDBOX&lt;/span&gt;&lt;span class="s2"&gt;/targets"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;exec &lt;/span&gt;claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The two-mode design matters. &lt;code&gt;rea&lt;/code&gt; is also the name of REA's own CLI, and the agent inside the session calls it. If bare &lt;code&gt;rea&lt;/code&gt; &lt;em&gt;only&lt;/em&gt; launched the agent, the agent calling &lt;code&gt;rea doctor&lt;/code&gt; would try to launch another agent inside itself.&lt;/p&gt;

&lt;p&gt;Finally, a &lt;code&gt;settings.json&lt;/code&gt; in the new profile pre-approves REA's tools (&lt;code&gt;"allow": ["mcp__rea"]&lt;/code&gt;), so analysis doesn't stop for a permission prompt on every call. That approval exists in this profile only.&lt;/p&gt;

&lt;p&gt;Health check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rea doctor &lt;span class="nt"&gt;--client&lt;/span&gt; claude_code &lt;span class="nt"&gt;--skill&lt;/span&gt; &lt;span class="nt"&gt;--json&lt;/span&gt;   &lt;span class="c"&gt;# healthy: true, ghidra + jadx available&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I had to verify first
&lt;/h2&gt;

&lt;p&gt;The install was an afternoon. Most of that afternoon went on one question I didn't expect to be the hard part: &lt;strong&gt;what does each check actually prove?&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The profile isn't a sandbox
&lt;/h3&gt;

&lt;p&gt;A separate profile felt like isolation. REA's own docs are blunt about what it is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Both routes control which sessions discover REA's MCP server and skill. They leave shell commands, filesystem access and network access available.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The profile controls which tools the agent is &lt;em&gt;offered&lt;/em&gt;, not what it can &lt;em&gt;reach&lt;/em&gt;. It still runs as my user and can still read my files and use the network. A real boundary needs a separate OS account or a container. For learning and inspecting software I'm allowed to inspect, that's fine. But it's a menu, not a wall, and I wrote it down in those words.&lt;/p&gt;

&lt;h3&gt;
  
  
  The commit that "didn't exist"
&lt;/h3&gt;

&lt;p&gt;REA's third-party notices pin the JADX wrapper to commit &lt;code&gt;5844800a&lt;/code&gt;, the source its authors say they audited. The wrapper's &lt;code&gt;v0.7.1&lt;/code&gt; release tag points to a &lt;em&gt;different&lt;/em&gt; commit, &lt;code&gt;7dc6b5e3&lt;/code&gt;, and GitHub said the two have &lt;strong&gt;no common ancestor&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That reads like a supply-chain incident. It wasn't, and the way to check is worth knowing. Every git commit points to a &lt;em&gt;tree&lt;/em&gt;, the hash of the complete file contents:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone &lt;span class="nt"&gt;--depth&lt;/span&gt; 1 &lt;span class="nt"&gt;--branch&lt;/span&gt; v0.7.1 https://github.com/1013503897/jadx-headless-mcp.git
&lt;span class="nb"&gt;cd &lt;/span&gt;jadx-headless-mcp &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; git rev-parse &lt;span class="s1"&gt;'HEAD^{tree}'&lt;/span&gt;
&lt;span class="c"&gt;# 0f280ac59d851c4a126f9f5efbe26366d2fd033c — same tree as REA's pinned commit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same tree, same date, same message. The only difference was the author name. Someone had rewritten the repo's history to change how their name appears, which gives every commit a new hash while leaving every file identical.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Commit hashes identify history. Tree hashes identify content.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The checksum proved the download, not the source
&lt;/h3&gt;

&lt;p&gt;The release offers a prebuilt JAR and a &lt;code&gt;.sha256&lt;/code&gt; file. The hash matched. But both came from the same release page, published by the same account. A matching checksum proves the file wasn't corrupted on the way to my disk. It doesn't prove the JAR was built from the audited source. A tampered release would ship a tampered hash, and it would still match.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A checksum from the same source as the file proves integrity, not origin.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Ghidra hash had the same shape: it sits on the same page as the download. I trust it because of who publishes it, which is a judgement about the publisher, not something the hash proves.&lt;/p&gt;

&lt;h3&gt;
  
  
  Build it yourself and compare bytes
&lt;/h3&gt;

&lt;p&gt;The only real test was to build from source. First I read the build script: two well-known Gradle plugins and standard libraries from Maven Central and Google, with no custom download steps and no shell commands. Then I checked the bundled Gradle wrapper. That's the small JAR that fetches the build tool, and a classic place to hide something. Its hash matched the one Gradle publishes on its &lt;em&gt;own&lt;/em&gt; site, a different publisher, so that check actually means something:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sha256sum &lt;/span&gt;gradle/wrapper/gradle-wrapper.jar
curl &lt;span class="nt"&gt;-sL&lt;/span&gt; https://services.gradle.org/distributions/gradle-9.7.1-wrapper.jar.sha256
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The build needs a JDK 17 toolchain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;openjdk-17-jdk-headless
&lt;span class="nv"&gt;JAVA_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/lib/jvm/java-21-openjdk-amd64 ./gradlew &lt;span class="nt"&gt;--no-daemon&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-Dorg&lt;/span&gt;.gradle.java.installations.paths&lt;span class="o"&gt;=&lt;/span&gt;/usr/lib/jvm/java-17-openjdk-amd64 &lt;span class="se"&gt;\&lt;/span&gt;
  shadowJar &lt;span class="nt"&gt;-x&lt;/span&gt; &lt;span class="nb"&gt;test
sha256sum &lt;/span&gt;build/libs/jadx-headless-mcp-0.7.1-all.jar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My agent refused to run that build itself. Its safety layer treats executing a freshly cloned repo's build scripts as running outside code, and it held that line even after I approved it. I ran it by hand, which is the right division of labour.&lt;/p&gt;

&lt;p&gt;The build is configured to be reproducible: timestamps stripped and file order sorted, so the same source gives the same bytes. Mine came out as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;6e5eacf500b64292bfb73c49797c1958f6ee44646e43e868039ae7feb573ff75
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The release JAR's hash is exactly the same: &lt;code&gt;6e5eacf500b64292bfb73c49797c1958f6ee44646e43e868039ae7feb573ff75&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Byte-identical. Now the prebuilt JAR is proven. That's not because its own hash file says so. It's because an independent build from audited source produced exactly the same file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A reproducible build turns a checksum from a claim into a test.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Two real tests
&lt;/h2&gt;

&lt;h3&gt;
  
  
  A Linux program, with Ghidra
&lt;/h3&gt;

&lt;p&gt;The danger with an AI explaining code is a fluent answer from memory. So the first test used a program every model already "knows": the &lt;code&gt;base64&lt;/code&gt; utility, copied from my own system. I asked how it decides between encoding and decoding, and to show the code behind the &lt;code&gt;-d&lt;/code&gt; flag.&lt;/p&gt;

&lt;p&gt;What came back was specific to the file, not to base64 in general:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The binary is &lt;strong&gt;stripped&lt;/strong&gt; (no function names left), so it identified functions by address.&lt;/li&gt;
&lt;li&gt;It found the string &lt;code&gt;decode&lt;/code&gt; at file offset &lt;code&gt;0x71ff&lt;/code&gt;, referenced from the long-options table that's passed to &lt;code&gt;getopt_long&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;It showed the option loop comparing against &lt;code&gt;100&lt;/code&gt; (the character code for &lt;code&gt;d&lt;/code&gt;) and setting a one-byte flag. A single later branch reads that flag to choose between the encode and decode paths.&lt;/li&gt;
&lt;li&gt;It decompiled the four-character decode routine and its 256-entry lookup table.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I checked what I could without trusting it. &lt;code&gt;strings -t x base64&lt;/code&gt; puts &lt;code&gt;decode&lt;/code&gt; at &lt;code&gt;71ff&lt;/code&gt; and &lt;code&gt;invalid input&lt;/code&gt; at &lt;code&gt;71f1&lt;/code&gt;, and the character codes are right.&lt;/p&gt;

&lt;p&gt;What earned more trust was what it &lt;em&gt;flagged&lt;/em&gt;. It said its function names were guesses, because they're inferred from behaviour and there are no symbols. It said its description of the decode loop was a cleaned-up reading of tangled decompiler output, not literal code. And every finding came with an evidence ID.&lt;/p&gt;

&lt;h3&gt;
  
  
  An Android app, with JADX
&lt;/h3&gt;

&lt;p&gt;For the second test I used Binary Eye, an open-source barcode scanner from F-Droid. I compared the APK's hash with the one in F-Droid's repository index; I didn't verify the index's own signature, so by this post's standards that's a same-publisher check. Then I asked REA to inspect it. JADX loaded it in about &lt;strong&gt;seven seconds&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;2,800 classes and 930 resources.&lt;/strong&gt; Only &lt;strong&gt;20&lt;/strong&gt; classes still had readable names. The build's code shrinker had renamed the rest to things like &lt;code&gt;bo&lt;/code&gt; and &lt;code&gt;uu0&lt;/code&gt;, which is normal for release Android builds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;11 permissions&lt;/strong&gt;, including camera (obvious), plus Wi-Fi, internet, location and Bluetooth.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the question was: why does a barcode scanner want all that?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Wi-Fi: explained.&lt;/strong&gt; One of the readable classes manages Wi-Fi network suggestions. That's what runs when you scan a Wi-Fi QR code and tap "connect."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Internet: probably explained.&lt;/strong&gt; A settings class stores a URL, which fits a "send scans to a server" option. The code that actually sends sits in the renamed classes and wasn't traced.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Location and Bluetooth: not explained&lt;/strong&gt; in this pass.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last line is the honest result of a seven-second look, and I'd much rather have "not explained yet" than a plausible story.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It isn't a sandbox.&lt;/strong&gt; The separate profile hides the tools from your other sessions; it doesn't contain them. Use a separate user or a container if you need a real boundary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The engines are bring-your-own.&lt;/strong&gt; Native analysis needs Ghidra, IDA or Hopper, and Android needs the JADX wrapper. Several other targets need their own tools too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It moves fast.&lt;/strong&gt; REA's docs say to keep it updated, but I pinned an exact version on purpose. Updating is a deliberate step, with a &lt;code&gt;--dry-run&lt;/code&gt; first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence still needs checking.&lt;/strong&gt; REA is far better than an agent reciting from memory, but decompiler output is a reading, not the source. Spot-check the parts you can.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What each check was actually worth
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;What it looked like&lt;/th&gt;
&lt;th&gt;What it proved&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Separate agent profile&lt;/td&gt;
&lt;td&gt;Isolation&lt;/td&gt;
&lt;td&gt;Which tools the agent is &lt;em&gt;offered&lt;/em&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hash from the same release page&lt;/td&gt;
&lt;td&gt;Authenticity&lt;/td&gt;
&lt;td&gt;The download wasn't corrupted&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hash from a different publisher&lt;/td&gt;
&lt;td&gt;Authenticity&lt;/td&gt;
&lt;td&gt;The file matches what &lt;em&gt;that&lt;/em&gt; publisher vouches for&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Matching tree hash&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Two commits contain identical files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Byte-identical rebuild&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;The binary came from that source&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent's explanation&lt;/td&gt;
&lt;td&gt;Analysis&lt;/td&gt;
&lt;td&gt;Only as much as you can check against the file&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of these checks was wasted. Each one just had a narrower job than its name suggested. The setup became trustworthy at the point where I stopped asking "did it pass?" and started asking "what would have to be true for this to pass while being wrong?"&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>reverseengineering</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Slack Split My Request in Two. The Agent Answered the Half It Got.</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Fri, 16 Oct 2026 08:15:02 +0000</pubDate>
      <link>https://dev.to/tedagentic/slack-split-my-request-in-two-the-agent-answered-the-half-it-got-4kdp</link>
      <guid>https://dev.to/tedagentic/slack-split-my-request-in-two-the-agent-answered-the-half-it-got-4kdp</guid>
      <description>&lt;p&gt;Two AI agents work together on my server through a Slack channel. A coding agent writes numbered requests ("REQ-062: check these 25 items against the official sources"), and a browser agent reads the channel, does the research in a real browser, and answers in the request's thread. The coding agent checks that thread for the reply. It's a simple loop, and it had handled 61 requests before this one.&lt;/p&gt;

&lt;p&gt;The 62nd request asked about 24 US states and Washington DC. The browser agent answered 23 of them. Nobody noticed for a day, because everyone involved was telling the truth.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each side saw
&lt;/h2&gt;

&lt;p&gt;The coding agent posted the request with Slack's &lt;code&gt;chat.postMessage&lt;/code&gt;. The response was &lt;code&gt;ok: true&lt;/code&gt; and a message ID. It then checked that message's thread for replies, found none, and told me the browser agent hadn't answered yet. It checked again later: still nothing. It said so again.&lt;/p&gt;

&lt;p&gt;The browser agent saw a request listing 23 items, ending at Vermont. It researched all 23, posted three replies in the thread, and noted in the last one that the title promised 24 states plus DC but the list stopped at line 23. A second model that critiques its answers flagged the same gap.&lt;/p&gt;

&lt;p&gt;When it was asked directly, the browser agent said the newest request in the channel had been answered, along with every request before it. Both sides were right. They were looking at different messages.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Slack stored
&lt;/h2&gt;

&lt;p&gt;I asked Slack for the raw channel history:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Message ID&lt;/th&gt;
&lt;th&gt;Length&lt;/th&gt;
&lt;th&gt;Content&lt;/th&gt;
&lt;th&gt;Replies&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;…235.961029&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3,847 characters&lt;/td&gt;
&lt;td&gt;Title, instructions, items 1 to 23&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;…235.985609&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;415 characters&lt;/td&gt;
&lt;td&gt;Items 24 and 25: Virginia, Washington&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One send became two messages, split at a line break, about 25 milliseconds apart. The browser agent read the first message as the whole request, which is what it looked like: a title, instructions and a list. The second message started with "24 Virginia" and had no title, so it didn't look like a request at all.&lt;/p&gt;

&lt;p&gt;The detail that hid it: &lt;strong&gt;the ID the API returned was the second message's.&lt;/strong&gt; The coding agent was waiting for replies in the thread of a 415-character fragment nobody would ever answer. The replies were in the other thread the whole time.&lt;/p&gt;

&lt;p&gt;The next request, REQ-063, was 4,025 characters in Slack's history and arrived whole. So it isn't a simple "over 4,000 is split" rule I could have known about in advance. What I can say is what happened: one request, two messages, the ID of the tail.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pivot
&lt;/h2&gt;

&lt;p&gt;I'd treated &lt;code&gt;ok: true&lt;/code&gt; as "the other side has my request". It means something smaller.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A successful send confirms that a message arrived. It doesn't confirm that it was the message you wrote.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every check in the loop was about the transport: did the post succeed, did a reply appear in the thread. None of them asked whether what arrived was the request I'd written. That gap could hide a partial request indefinitely, because a partial answer to a partial request looks complete from both ends.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it cost
&lt;/h2&gt;

&lt;p&gt;Less than it could have. Two states went unresearched for a day, and the browser agent's note about the missing items was there in the thread for anyone reading the right thread. The real cost was three status reports from the coding agent saying the browser agent hadn't replied, each one accurate about the thread it was watching and wrong about the request.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;What changes, none of it clever:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read back what arrived.&lt;/strong&gt; After posting, fetch the channel's latest messages and compare them with what was sent: the count, the length, and that the last item is the last item. If Slack holds two messages where you sent one, you know before anyone answers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key the conversation on the content, not the returned ID.&lt;/strong&gt; The request number (REQ-062) is in the text. Searching the channel for it finds every message carrying it, and every thread under them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep requests short.&lt;/strong&gt; The follow-up asking about Virginia and Washington was 1,352 characters, and the read-back confirmed it arrived as one message. From now on, long lists go out as two numbered requests, each complete on its own.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The browser agent had already done the most useful thing anyone in the loop did: when the list didn't match the title, it said so in its answer instead of guessing what the missing items were. The coding agent had that note all along. It was in a thread it wasn't watching.&lt;/p&gt;

</description>
      <category>slack</category>
      <category>ai</category>
      <category>agents</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Every Checker in My Pipeline Was Wrong at Least Once. That's Why It Works.</title>
      <dc:creator>Ted</dc:creator>
      <pubDate>Fri, 16 Oct 2026 07:00:23 +0000</pubDate>
      <link>https://dev.to/tedagentic/every-checker-in-my-pipeline-was-wrong-at-least-once-thats-why-it-works-1ig1</link>
      <guid>https://dev.to/tedagentic/every-checker-in-my-pipeline-was-wrong-at-least-once-thats-why-it-works-1ig1</guid>
      <description>&lt;p&gt;I run a travel site that tells visitors what the cannabis laws are wherever they're going. This week I re-checked every US state against its official sources. The pages needed it. One said Nevada allows an ounce; the limit has been two and a half ounces since January 2024. One said Colorado allows an ounce; it's two, though you can only buy one at a time. Massachusetts doubled its limit in April 2026 and the page hadn't noticed.&lt;/p&gt;

&lt;p&gt;Fifty-one jurisdictions, each with a possession limit, a penalty, a rule for visitors and a source, is too much to check by hand in a week. So four AI checkers did it, and the interesting part is not that they found the old errors. It's that each of them made new ones, and none of those reached the site.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four checkers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A coding agent&lt;/strong&gt; (Claude Code, on a home server) drafts every change: it reads the old page, searches for what changed, writes the new text and sends the questions it can't settle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A browser agent&lt;/strong&gt; gets those questions. It's a separate AI agent with its own real browser, and I talk to it through a Slack channel. Each request is numbered, lists the claims to confirm, and asks for the exact wording from the official page plus the URL. "NOT FOUND" is an accepted answer; guessing isn't.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A critic&lt;/strong&gt; watches that channel. When the browser agent posts an answer, a second instance of Claude Code reads it in read-only mode and replies in the same thread within seconds: which claims are sourced, which aren't, which contradict what's already on the site. It can't change anything. Nothing is applied until I say "apply it".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A classifier&lt;/strong&gt; grades the final output. Jev is a decision model: you give it text and a question with fixed answer options, and it picks one with a confidence score. It can't look anything up, which is the point. It only judges whether a conclusion follows from the text in front of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The browser sees what the server can't
&lt;/h2&gt;

&lt;p&gt;The first surprise was physical. The coding agent runs on a server outside the US. Of the 39 source URLs it collected for the first half of the states, 17 wouldn't load from there: nine returned 403 (bot protection) and eight never answered at all. Those included Florida's statutes, Idaho's, Kentucky's, Nebraska's, Utah's and Wisconsin's.&lt;/p&gt;

&lt;p&gt;The browser agent opens all of them, because it's a real browser on a US connection. So the work splits by what each side can reach, not by preference: the server checks every page it can load, and the browser agent quotes the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Everyone was wrong somewhere
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The browser agent&lt;/strong&gt; said Tennessee banned THCA products from July 1, 2026. The state regulator's FAQ says something else. THCA has counted toward the 0.3% THC limit since January 1. July 1 was the date by which stores must buy only from licensed wholesalers. A real date, attached to the wrong rule. The coding agent caught it by checking the regulator's FAQ before applying the answer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The browser agent&lt;/strong&gt; also said a 2025 law opened Iowa's medical program to non-residents. The critic flagged that there was no source. The rulemaking notice turned up: it's a 2026 law, and in August the rules weren't final. The page now says to check with the state first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The critic&lt;/strong&gt; doubted that Maryland fines public smoking $50 the first time and $150 after that. Its "understanding of the law" was a flat $50. The statute says $50, then $150. The browser agent was right, and the critic's doubt cost one lookup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The critic&lt;/strong&gt; also warned that Maine's concentrate cap was 5 grams, because the original law said so. The state cannabis office's FAQ says 10 grams. Again the browser agent was right.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The coding agent&lt;/strong&gt; labelled Washington DC "with a medical card": you need a card from home to buy there. The browser agent read the DC regulator's page and corrected it. Visitors don't need a home card at all; anyone 21 or over can register online as a temporary patient. My label wasn't just imprecise. It undersold the one thing a visitor wants to know.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The classifier&lt;/strong&gt; graded all 51 "can visitors buy?" labels against the text of each state's rules, and disagreed with one. I had North Carolina as a flat "no". Jev said yes, at 0.83 confidence, because the text says a tribal store on Cherokee land sells to any adult 21 or over. Under state law the answer is no. On the tribal land the answer is yes. The label now says both, because a classifier with no world knowledge noticed that my "no" contradicted my own paragraph.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pivot
&lt;/h2&gt;

&lt;p&gt;I expected the checkers to stack: each one a stricter filter, so that whatever survived all four was right. That isn't what happened. The critic was strictest, and it was the one that doubted two correct answers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A second checker isn't a more careful copy of the first. It's blind in a different place.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The browser agent reads well and quotes accurately, but it can attach a real date to the wrong rule. The critic is good at spotting missing sources and bad at knowing the law, because it's arguing from memory. The coding agent has the whole context and makes judgement mistakes: it had read the right DC page and still filed DC by category. Medical stores, so medical card. The classifier knows nothing at all, so it can't be fooled by what it thinks it knows, and catches the conclusion that doesn't follow from its own evidence.&lt;/p&gt;

&lt;p&gt;None of them is the safety net. The net is that their errors don't overlap.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes it work
&lt;/h2&gt;

&lt;p&gt;A few rules turned out to matter more than which models were involved.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every claim needs a quote and a URL.&lt;/strong&gt; "Confirmed" without wording isn't accepted. That's what made the Tennessee mix-up visible: the quoted text didn't say what the summary said.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"NOT FOUND" is a valid answer.&lt;/strong&gt; If an agent has to answer, it will produce a fact. When no official source existed for a local fine or a visitor fee, it stayed off the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disagreement goes to a source, never to a vote.&lt;/strong&gt; When the critic and the browser agent disagreed, the statute decided, not two models outvoting one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nobody applies their own work.&lt;/strong&gt; The critic can't write. The browser agent can't write. A human says "apply it", after a summary of what changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each state page now lists its sources and the date it was actually checked. That date used to come from the server's clock, which made every page look verified that morning. It's now set only when someone has checked the page, and it's the date this post is about.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>testing</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
