<?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: Alex Alvord</title>
    <description>The latest articles on DEV Community by Alex Alvord (@alexalvord).</description>
    <link>https://dev.to/alexalvord</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%2F4180991%2F8cfcd9b3-e77a-4fec-8000-b39f7b009eac.jpeg</url>
      <title>DEV Community: Alex Alvord</title>
      <link>https://dev.to/alexalvord</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alexalvord"/>
    <language>en</language>
    <item>
      <title>Pocket Lab, a 60-second incident on the GitHub Universe badge</title>
      <dc:creator>Alex Alvord</dc:creator>
      <pubDate>Tue, 17 Nov 2026 12:00:00 +0000</pubDate>
      <link>https://dev.to/alexalvord/pocket-lab-a-60-second-incident-on-the-github-universe-badge-4o48</link>
      <guid>https://dev.to/alexalvord/pocket-lab-a-60-second-incident-on-the-github-universe-badge-4o48</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyax34mz05rwaw71h2xvs.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyax34mz05rwaw71h2xvs.jpg" alt="The GitHub Universe badge, House Rules screen: IF IT ISN'T IN GIT IT DIDN'T HAPPEN" width="800" height="1067"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The GitHub Universe badge, House Rules screen: IF IT ISN'T IN GIT IT DIDN'T HAPPEN&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvwwc7actxtw4cw6vge9c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvwwc7actxtw4cw6vge9c.png" alt="Pocket Lab, Flash Crowd scenario: traffic surge at 8 of 18 requests served, three server slots, one running" width="640" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Pocket Lab, Flash Crowd scenario: traffic surge at 8 of 18 requests served, three server slots, one running&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Traffic triples at 15 seconds. One server is running, the database is fine, and 90 percent of requests are getting through. The player has a budget of virtual units and three moves: add a node, repair a node, or put a cache in front of the database. The round lasts 60 seconds.&lt;/p&gt;

&lt;p&gt;That is Pocket Lab, an app for the GitHub Universe 2025 hackable badge. The three photos in this post are the badge itself, showing screens from its House Rules deck. The Pocket Lab screens come from the badge's official simulator.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hardware
&lt;/h2&gt;

&lt;p&gt;The badge is a GitHub build of Pimoroni's Tufty 2350, sold through the GitHub Shop. The unit on the desk reports itself as "GitHub Badger with RP2350", running MicroPython 1.26.0 on a firmware build dated 2025-10-20. The panel is 320x240, but the 2025 app framework draws at a logical 160x120, doubled on the way out. Input is A, B and C on the front plus Up and Down. There is no touch controller and no motion sensor, and about 11 MB is free for apps.&lt;/p&gt;

&lt;p&gt;GitHub publishes the code at github.com/badger/home, with an app API, a simulator and stock apps: a gallery, games, a contribution graph. Pocket Lab uses that API and that simulator, and nothing else. No new framework, no account, no network.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three scenarios
&lt;/h2&gt;

&lt;p&gt;The player picks one of three authored rounds. Events are deterministic, so the same choices give the same result every time.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Flash Crowd.&lt;/strong&gt; Traffic triples at 15 seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Node Down.&lt;/strong&gt; A running server fails mid-round.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hot Database.&lt;/strong&gt; The database slows down and starts dropping requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F12zjn1jmycdgtll43c7b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F12zjn1jmycdgtll43c7b.png" alt="Node Down: node 1 has failed and no requests are being served" width="640" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Node Down: node 1 has failed and no requests are being served&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fce415b9wu75zbxxh511l.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fce415b9wu75zbxxh511l.jpg" alt="House Rules: &amp;quot;ADD A NODE&amp;quot; IS NOT AN ARCHITECTURE" width="800" height="1067"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;House Rules: "ADD A NODE" IS NOT AN ARCHITECTURE&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When a node fails, the request path to it turns red and the served count drops to zero for that slot. Repair costs 2 units and brings it back. Adding a fresh node costs 3.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbcrqx7mzxa37asl5biu3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbcrqx7mzxa37asl5biu3.png" alt="Hot Database: the database has slowed and the success rate is falling" width="640" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Hot Database: the database has slowed and the success rate is falling&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The database scenario is the one that teaches something. The bottleneck sits behind the servers, and the result screen names it. A cache takes half the reads off the database, and the success rate recovers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7y351ik2jyv9byd29zo1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7y351ik2jyv9byd29zo1.png" alt="Cache in place: half the requests hit the cache, 10 of 10 served" width="640" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Cache in place: half the requests hit the cache, 10 of 10 served&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz1n9o512x7phq5v0wj6h.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz1n9o512x7phq5v0wj6h.jpg" alt="House Rules: EVERY CACHE IS A LIE YOU AGREED TO" width="800" height="1067"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;House Rules: EVERY CACHE IS A LIE YOU AGREED TO&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The score explains itself
&lt;/h2&gt;

&lt;p&gt;Each round ends with the share of requests served, a score, the units spent, and the single biggest cause of lost requests.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxga7tdyjpta6eyfnhnpg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxga7tdyjpta6eyfnhnpg.png" alt="Round complete: 98 percent served, 902 of 912 requests, most loss from compute" width="640" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Round complete: 98 percent served, 902 of 912 requests, most loss from compute&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;"Most loss: compute. Add capacity or repair." On the database round the same screen says "Most loss: database. Cache or upgrade DB." The result names the constraint, so the next round starts with a better plan.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnjprgr6ozyxd3mwh787a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnjprgr6ozyxd3mwh787a.png" alt="Field guide: the controls and the rules of the simulation" width="640" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Field guide: the controls and the rules of the simulation&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The controls fit on one screen. A and C choose an action, B applies it, Up starts and pauses, Down opens the guide. Every round starts paused, so there is time to plan before the clock runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it was built
&lt;/h2&gt;

&lt;p&gt;The simulation lives in its own Python module with no badge imports, so it runs and is tested on a laptop. Nine model tests pass on the host. The rendering layer is the only part that talks to the badge API. The official simulator then checked all three scenarios, the controls, pause, text fit and the Home button, frame by frame.&lt;/p&gt;

&lt;p&gt;Before anything was copied to the device, the badge's filesystem was backed up: 283 files, each with a SHA-256 hash, checked after the copy. Pocket Lab is four files. It took one menu slot and left the stock apps in place, so removing it is a single file restore.&lt;/p&gt;

&lt;p&gt;Pocket Lab uses no network and stores no credentials, because a badge is a device that gets handed around.&lt;/p&gt;

&lt;p&gt;The budget is simulated units, not money. Requests, throughput and the success rate are model values. Pocket Lab makes no claim about how real infrastructure performs. What it gives is the feel of an incident: limited moves, a clock, and a result that names what to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is not verified yet
&lt;/h2&gt;

&lt;p&gt;The badge in the photos is real and running, but the photos show the House Rules deck, not Pocket Lab. Frame rate, battery draw and the feel of the physical buttons have not been measured in a Pocket Lab round. The simulator says the game works. The next step is a round played on the badge itself.&lt;/p&gt;

</description>
      <category>github</category>
      <category>devops</category>
      <category>hardware</category>
      <category>incident</category>
    </item>
    <item>
      <title>When infrastructure as code can't reach the router, build the drift check instead</title>
      <dc:creator>Alex Alvord</dc:creator>
      <pubDate>Wed, 11 Nov 2026 12:00:00 +0000</pubDate>
      <link>https://dev.to/alexalvord/when-infrastructure-as-code-cant-reach-the-router-build-the-drift-check-instead-4cp2</link>
      <guid>https://dev.to/alexalvord/when-infrastructure-as-code-cant-reach-the-router-build-the-drift-check-instead-4cp2</guid>
      <description>&lt;p&gt;Every Monday at 06:15 a job checks the router against what it should be. Here is the last result, and what a change looks like when it happens.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; MONDAY 06:15 UniFi drift check, last run

   OK no drift (11 reservations, 1 LANs)

 What a change looks like (output from the test suite, not a real event)

   DRIFT 2 difference(s)
    - reservation changed: aa:bb:cc:dd:ee:01 (cka-w1) 192.168.1.47 -&amp;gt; 192.168.1.250
    - LAN Default dns: ['192.168.1.75', '9.9.9.9'] -&amp;gt; ['9.9.9.9']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nothing in those settings, the fixed-IP reservations and the DHCP DNS servers, can change for a week without this check noticing. That check exists because the obvious tool, OpenTofu, would not run against the router, and the failure is worth walking through.&lt;/p&gt;

&lt;h2&gt;
  
  
  What failed
&lt;/h2&gt;

&lt;p&gt;One OpenTofu plan ended with a single line: "Unable to Connect to UniFi Controller". Every other check said the controller was fine.&lt;/p&gt;

&lt;p&gt;The plan was meant to bring the router's fixed-IP reservations and DHCP DNS setting under code, next to the Proxmox and Kubernetes pieces already there. The provider reaches the router through the vendor's cloud connector, with an API key. The key never touches the agent that runs the job. It travels through a local proxy that re-signs TLS and injects the secret on the way out, so the secret is never in a file, a log or a prompt.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; BEFORE: the provider could not use the working path

   tofu plan
      |
      v
 +----------------+ HTTPS +--------------------+ HTTPS +-----------+
 | UniFi provider |--------&amp;gt;| local egress proxy |--------&amp;gt;| vendor |
 | (a Go program) | | adds the API key, | | cloud |
 +----------------+ | re-signs TLS | | connector |
      ^ +--------+-----------+ +-----+-----+
      | | |
      | "certificate is not trusted" | cert signed by v
      +------------------------------+ the proxy's authority +--------+
                                                              | router |
   curl, same proxy, same URL: HTTP 404 (a normal answer) +--------+
   Go, same proxy, same URL: x509 error, SSL_CERT_FILE ignored on macOS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A plain &lt;code&gt;curl&lt;/code&gt; through that proxy worked. The Go-based provider did not. On macOS, Go programs read the system trust store and ignore the &lt;code&gt;SSL_CERT_FILE&lt;/code&gt; variable that &lt;code&gt;curl&lt;/code&gt; honors. We reproduced it without the provider: a ten-line Go program fetching the vendor's API host through the same proxy failed with "certificate is not trusted", with &lt;code&gt;SSL_CERT_FILE&lt;/code&gt; set or not, while &lt;code&gt;curl&lt;/code&gt; on the same URL returned a normal HTTP answer. The provider's insecure-skip-verify option is ignored when the cloud connector is on, so there was no flag to flip.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three ways out
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;What it costs&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Add the proxy's authority to the macOS trust store&lt;/td&gt;
&lt;td&gt;Every program on the machine now trusts a certificate authority that can re-sign any site&lt;/td&gt;
&lt;td&gt;No. It weakens the control the proxy exists to provide&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Run the plan from a Linux host with its own egress&lt;/td&gt;
&lt;td&gt;A second place that needs the API key, which is the thing the proxy avoids&lt;/td&gt;
&lt;td&gt;Later, if the router config grows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep the router out of OpenTofu&lt;/td&gt;
&lt;td&gt;No plan, no apply, no state for the router&lt;/td&gt;
&lt;td&gt;Yes, with one addition below&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The blind spot, and the fix
&lt;/h2&gt;

&lt;p&gt;Leaving the router out of OpenTofu has a real cost. Nothing declares what the router should look like, and nothing notices when someone changes it in the app. Infrastructure as code gives two things: a way to change things, and a way to see that they changed. We could do without the first for a short list of reservations (11 today) and one DNS setting. We could not do without the second.&lt;/p&gt;

&lt;p&gt;So we built only the second, on the path that already worked.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; AFTER: a read-only check on the path that already worked

   Monday 06:15, scheduler
      |
      | 1 grant the worker one script, for this run only
      v
 +------------+ 2 run +--------------+ HTTPS +--------------+ +--------+
 | restricted |--------&amp;gt;| check.py |--------&amp;gt;| egress proxy |-&amp;gt;| vendor |
 | worker | | curl, GET |&amp;lt;--------| key + TLS |&amp;lt;-| cloud |
 +------------+ | only | +--------------+ +---+----+
      ^ +------+-------+ |
      | | 3 compare live vs expected v
      | 4 revoke the grant v +--------+
      | +-----------------+ | router |
      | | expected.json | match -&amp;gt; say nothing +--------+
      +---------------+ (committed) | differ -&amp;gt; list it, ask:
                      +-----------------+ revert or record?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The weekly job:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Reads the router's fixed-IP reservations and LAN DHCP settings through &lt;code&gt;curl&lt;/code&gt;, using GET requests only.&lt;/li&gt;
&lt;li&gt;Compares them with a committed file of the expected state.&lt;/li&gt;
&lt;li&gt;Says nothing when they match. When they differ, it lists each difference and asks whether to revert the change or record it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The worker that runs it gets permission for that one script, for that one run, and loses it afterward. The script only reads. Changes still go through the reviewed &lt;code&gt;curl&lt;/code&gt; jobs, and the expected file changes in the same commit as the change itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we kept and what we gave up
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; WHAT OPENTOFU DOES FOR YOU THE ROUTER, WITHOUT IT

 +---------------------------+ +---------------------------+
 | 1 change things safely | ----&amp;gt; | reviewed curl jobs | kept
 | (plan, then apply) | +---------------------------+
 +---------------------------+
 | 2 notice when they change| ----&amp;gt; | weekly drift check | BUILT
 | (drift) | +---------------------------+
 +---------------------------+
 | 3 record the intended | ----&amp;gt; | expected.json in git, | kept
 | state | | updated with each change |
 +---------------------------+ +---------------------------+
 | 4 import / diff state | ----&amp;gt; | not replaced | GIVEN UP
 +---------------------------+ +---------------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The comparison logic has four offline tests: identical state stays silent, a changed address is reported, a removed and an added reservation are both reported, and a changed DNS server is reported. The first live run read 11 reservations and 1 LAN and reported no drift against a baseline taken from the same router.&lt;/p&gt;

&lt;p&gt;We gave up the plan and apply workflow for the router and any importable state. If the router configuration grows past a handful of settings, the Linux-host option comes back, with the key handling designed for it. Until then a read-only check is the cheaper piece of OpenTofu to keep.&lt;/p&gt;

&lt;p&gt;The general point: when a tool can't reach a system, ask which of its jobs you actually need. Here the job was "tell me when this changes", and that does not require the tool that failed.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>networking</category>
      <category>iac</category>
      <category>homelab</category>
    </item>
    <item>
      <title>Who sent this agent? Agent Name Service, read as an architect</title>
      <dc:creator>Alex Alvord</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:00:00 +0000</pubDate>
      <link>https://dev.to/alexalvord/who-sent-this-agent-agent-name-service-read-as-an-architect-5bko</link>
      <guid>https://dev.to/alexalvord/who-sent-this-agent-agent-name-service-read-as-an-architect-5bko</guid>
      <description>&lt;p&gt;A payment agent receives an instruction to wire $50,000 to a supplier's invoicing agent. Two questions decide whether the money moves. Does that agent actually belong to the supplier? And if it does, is it still running the code it ran last month?&lt;/p&gt;

&lt;p&gt;That is the opening scenario of the Agent Name Service specification, and it is the right place to start. Agent-to-agent traffic already exists. What does not exist yet is a standard way for one agent to check who is on the other end.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr7bi8ilinbgd61ss4ocs.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr7bi8ilinbgd61ss4ocs.jpg" alt="Agent Name Service: seven layers from domain proof to agent handshake" width="800" height="783"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Agent Name Service: seven layers from domain proof to agent handshake&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;ANS is an open draft standard, Apache 2.0, published at github.com/agentnameservice/ans-spec. It builds on an OWASP paper by Narajala, Huang, Habler and Sheriff, contributed to the IETF as &lt;code&gt;draft-narajala-ans&lt;/code&gt;. The specification is split into seven layers.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Settles&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ANS-0 Identity&lt;/td&gt;
&lt;td&gt;The agent is anchored to a domain name, sealed only after control of that domain is proven&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ANS-1 Registration&lt;/td&gt;
&lt;td&gt;How a registration is created, renewed and revoked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ANS-2 Versioned naming&lt;/td&gt;
&lt;td&gt;A certificate bound to the agent's version, so the certificate says which code is running&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ANS-3 DNS publication&lt;/td&gt;
&lt;td&gt;The DNS records an operator publishes so others can find and pin the agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ANS-4 Transparency&lt;/td&gt;
&lt;td&gt;Every lifecycle event appended to one Merkle-tree log that cannot be rewritten&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ANS-5 Integrity monitoring&lt;/td&gt;
&lt;td&gt;Workers that keep checking the published records against what was sealed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ANS-6 Agent authentication&lt;/td&gt;
&lt;td&gt;How two agents prove themselves to each other at connection time&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Proof, not lookup
&lt;/h2&gt;

&lt;p&gt;The most important line in the set is in ANS-0: the Registration Authority seals an identity "only after control of the identifier is proven, never on resolution alone."&lt;/p&gt;

&lt;p&gt;The spec is candid about why. Its own earlier draft, v0.1.0, treated identity as resolution: fetch the key an identifier publishes and call that the identity. The authors' example shows the flaw. Resolving &lt;code&gt;did:web:google.com&lt;/code&gt; returns Google's real key and says nothing about who is registering. Version 0.2.0 retired that model. Resolution is now only one internal step of a control proof, and nothing is sealed until the registrant demonstrates possession of the key for this specific operation.&lt;/p&gt;

&lt;p&gt;The domain is mandatory. The legal entity behind the agent, which the spec calls a Verified Identity, is optional. "The who is optional; the what is not."&lt;/p&gt;

&lt;h2&gt;
  
  
  The registry records; the caller decides
&lt;/h2&gt;

&lt;p&gt;ANS-0 describes the Registration Authority as "a notary, not a judge." It verifies control and seals events. It does not rate agents by risk. Trust scoring is pushed out to a separate specification, the trust index, which consumes ANS data.&lt;/p&gt;

&lt;p&gt;That split is sound architecture. The party that records evidence and the party that judges it have different failure modes, and fusing them gives one compromise two jobs. It also sets a clear limit on what ANS promises. In the $50,000 scenario, ANS can tell the payment agent that the invoicing agent really is the supplier's, running a known version. It cannot tell the payment agent that the supplier's invoice is correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built to be checked
&lt;/h2&gt;

&lt;p&gt;Two details show the authors expect independent implementations to be compared.&lt;/p&gt;

&lt;p&gt;ANS-3 defines the DNS record set as a pure function of the registration: no I/O, no context, no error. Two conformant implementations must produce the same records, apart from TTL. The default profile publishes SVCB records per RFC 9460; the older &lt;code&gt;_ans&lt;/code&gt; TXT family remains as an opt-in.&lt;/p&gt;

&lt;p&gt;ANS-4 keeps one transparency log, a single Merkle tree, with every agent and identity event appended in order. ANS-6 then gives a connecting agent two ways to use it: the badge tier, which queries the log at connection time, and the SCITT tier, which verifies receipts offline. Possession is proven over mTLS with the version-bound certificate, or with an RFC 9449 DPoP proof when a proxy sits in the path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it stands
&lt;/h2&gt;

&lt;p&gt;Every core document is marked DRAFT. ANS-0 is version 0.2.0, dated June 2026, and it changed its core identity model between versions. That is a reason to read it now and to build on it later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where CloudLab Works stands
&lt;/h2&gt;

&lt;p&gt;CloudLab Works intends to be an early implementer. The plan is to anchor the lab's own agents to cloudlabworks.dev, publish their ANS records, and report what holds up and what breaks against a draft that is still moving. A standard for agent identity gets better when someone runs it before it is finished, and the cost of doing so on a lab domain is a few DNS records and an honest write-up.&lt;/p&gt;

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