<?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: Marcus Richards</title>
    <description>The latest articles on DEV Community by Marcus Richards (@fetchdoge_).</description>
    <link>https://dev.to/fetchdoge_</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%2F4183437%2F254e317d-3b08-4b56-aefc-69364674ecf8.jpg</url>
      <title>DEV Community: Marcus Richards</title>
      <link>https://dev.to/fetchdoge_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fetchdoge_"/>
    <language>en</language>
    <item>
      <title>Slow and Steady: I Built Two Tools That Do the Checks I Dread</title>
      <dc:creator>Marcus Richards</dc:creator>
      <pubDate>Mon, 26 Oct 2026 00:06:13 +0000</pubDate>
      <link>https://dev.to/fetchdoge_/slow-and-steady-i-built-two-tools-that-do-the-checks-i-dread-25ma</link>
      <guid>https://dev.to/fetchdoge_/slow-and-steady-i-built-two-tools-that-do-the-checks-i-dread-25ma</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady (October 19–25, 2026).&lt;/strong&gt;&lt;br&gt;
Theme: in honor of International Sloth Day, build something with open-source AI that rewards laziness — an automation for a task you dread, or anything that makes life easier.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The two checks I dread
&lt;/h2&gt;

&lt;p&gt;Slow and steady is not about doing nothing. It is about not re-doing the same careful check by hand, every single time, forever.&lt;/p&gt;

&lt;p&gt;Two checks kept landing on my desk:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;"Can I trust this AI agent with money?"&lt;/strong&gt; Every time an agent goes to pay for something, someone has to stop and ask: is this within the limit I set? Did I actually approve this order? What happens if I need to stop it &lt;em&gt;right now&lt;/em&gt;?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Can AI tools even read my website?"&lt;/strong&gt; Every small business site looks fine to a person and quietly fails the AI assistants customers now ask for recommendations. Checking that by hand, page by page, is exactly the kind of chore that never gets done.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So I built the lazy versions of both checks. They run the same way every time, they show their work, and they only bother a human when a human decision is actually needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Permit — a spending permit for AI agents
&lt;/h3&gt;

&lt;p&gt;Permit sits between an AI agent and a payment. The agent can only spend inside the limits and approvals a person set in advance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spend inside the allowed limit is captured and completes.&lt;/li&gt;
&lt;li&gt;Spend over the limit is &lt;strong&gt;blocked, with zero payment calls made&lt;/strong&gt; — the check happens before any money moves, not after.&lt;/li&gt;
&lt;li&gt;An order that was never approved raises an approval-required error instead of going through.&lt;/li&gt;
&lt;li&gt;An emergency-stop path was added and tested against race conditions, because a stop button that loses a race is not a stop button.&lt;/li&gt;
&lt;li&gt;An agent can also &lt;em&gt;voluntarily tighten its own permit&lt;/em&gt; — narrowing its own limits — which turned out to be the most interesting behavior in the whole build (see "What did not work" below).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Proof, not promises:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The full test suite on current main: &lt;strong&gt;406 passed, 3 skipped&lt;/strong&gt; (including the emergency-stop work merged October 22).&lt;/li&gt;
&lt;li&gt;The milestone build that first ran the agent loop end-to-end against the real sandbox payment client: &lt;strong&gt;402 passed, 1 skipped&lt;/strong&gt; — allowed spend completed, over-limit spend blocked with zero wire calls, unapproved orders refused.&lt;/li&gt;
&lt;li&gt;The security-hardening change (on its PR #55 branch, not yet merged to main) was verified independently: &lt;strong&gt;428 passed, 1 skipped&lt;/strong&gt;, and its 29 new security tests &lt;strong&gt;pass on the hardened code and all 29 fail on the earlier code without it&lt;/strong&gt; — blank keys rejected, a misconfigured key fails closed, and the demo fallback only works when it is deliberately switched on.&lt;/li&gt;
&lt;li&gt;License: &lt;strong&gt;Apache-2.0&lt;/strong&gt;. Code: &lt;a href="https://github.com/FetchDoge/permit" rel="noopener noreferrer"&gt;https://github.com/FetchDoge/permit&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  AgentReady — is your website readable by AI?
&lt;/h3&gt;

&lt;p&gt;AgentReady scans a website and scores how well AI tools can read and use it, across &lt;strong&gt;93 checks&lt;/strong&gt;, then produces a fix pack instead of just a grade.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Proof, not promises:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Regression baseline, reproduced from a clean clone: test suite &lt;strong&gt;19 passed, 0 failed, 1 skipped&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The reference scan — stripe.com — scores &lt;strong&gt;47/100, grade D (44/93 checks)&lt;/strong&gt;, a &lt;strong&gt;delta of 0&lt;/strong&gt; against the documented sample. A famous, polished site scoring D is the whole point: looking good to people and being readable to machines are different jobs, and nobody has time to check 93 things by hand.&lt;/li&gt;
&lt;li&gt;The score is reproducible — same input, same result — which is what makes it a check you can hand off instead of a vibe you re-argue every week.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why open, concretely
&lt;/h2&gt;

&lt;p&gt;Both tools exist because the check has to be trustworthy when you are &lt;em&gt;not&lt;/em&gt; watching it. Open code means the limit logic, the scoring, and the failure behavior can be read and re-run by anyone — the receipts above are not screenshots, they are test runs you can reproduce. If a tool is going to be lazy on your behalf, it has to be boringly verifiable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What did not work
&lt;/h2&gt;

&lt;p&gt;The best bug in Permit came from verification, not from building. The agent's ability to voluntarily tighten its own permit existed in the code and passed its tests — but it was &lt;strong&gt;never listed in the live agent's instructions&lt;/strong&gt;, so in a real run it could never actually be called. Everything looked done. Only an independent check — running the real configuration instead of reading the feature list — caught that the capability was unreachable. The fix added the missing instruction entry and the rule for when to surrender spending room, with tests: &lt;strong&gt;407 passed, 1 skipped&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That is the honest summary of both projects: the building was the easy half. Making the lazy tool &lt;em&gt;prove&lt;/em&gt; it did the check is the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Permit: &lt;a href="https://github.com/FetchDoge/permit" rel="noopener noreferrer"&gt;https://github.com/FetchDoge/permit&lt;/a&gt; — run the demo scripts in the repo to see an allowed payment complete, an over-limit payment blocked with no payment call made, and the emergency stop interrupt a run.&lt;/li&gt;
&lt;li&gt;AgentReady: scan any public site and compare — stripe.com should come back &lt;strong&gt;47/100, grade D&lt;/strong&gt;, every time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;AgentReady's next step is packaging the same scan so other people's automated workflows can run it without me in the loop — the laziest possible ending for a Week 3 project: the check that checks websites, itself checked, running on its own.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Submission window: Hacktoberfest Open-Source AI Challenge Week 3, October 19–25, 2026. Deadline: October 25, 2026.&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Post-ready — final proof-check completed October 25, 2026. Every test figure above matches the live record: 406 passed / 3 skipped on current main; the 428 figure appears only as the PR #55 branch result. Nothing has been posted.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
      <category>opensource</category>
      <category>ai</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Two agents, one wallet: a memory graph that stops duplicate spends</title>
      <dc:creator>Marcus Richards</dc:creator>
      <pubDate>Sat, 17 Oct 2026 23:39:20 +0000</pubDate>
      <link>https://dev.to/fetchdoge_/two-agents-one-wallet-a-memory-graph-that-stops-duplicate-spends-23hb</link>
      <guid>https://dev.to/fetchdoge_/two-agents-one-wallet-a-memory-graph-that-stops-duplicate-spends-23hb</guid>
      <description>&lt;h3&gt;
  
  
  The problem
&lt;/h3&gt;

&lt;p&gt;Give two AI agents the same spending authority and they will, sooner or later, pay for the same thing twice. Not because they're careless — because neither one can see what the other just did. Each agent's memory ends at its own context window.&lt;/p&gt;

&lt;p&gt;Permit is my payment-authority layer for agents: scoped, revocable permission to spend, with every outcome receipted. For Graph Hacks I asked a narrower question: what if the &lt;em&gt;coordination&lt;/em&gt; between agents lived in a graph they both query before acting?&lt;/p&gt;

&lt;h3&gt;
  
  
  What I built
&lt;/h3&gt;

&lt;p&gt;Permit Memory Graph. FalkorDB holds the shared state:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Nodes:&lt;/strong&gt; agents, permits, claims, merchants, receipts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edges:&lt;/strong&gt; who holds which permit, who claimed which scope, what was decided and why&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Before any spend, an agent asks the graph three questions: &lt;em&gt;Has this scope already been claimed? Is this authority still live? What did the last agent learn about this merchant?&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The demo, in three beats
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Agent A spends $120 on cloud-gpu against a shared $500 permit pool. The graph records the claim.&lt;/li&gt;
&lt;li&gt;Agent B tries the &lt;em&gt;same&lt;/em&gt; spend — and asks the graph first. It finds A's claim and refuses: duplicate scope, already claimed, citing the claim's ID as provenance.&lt;/li&gt;
&lt;li&gt;Revoke the permit node, and both agents fail closed. No live authority, no spend, no exceptions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On the real FalkorDB backend the demo graph ends at &lt;strong&gt;9 nodes / 11 edges&lt;/strong&gt;; the final audited suite passes &lt;strong&gt;17/17&lt;/strong&gt; slice tests and &lt;strong&gt;5/5&lt;/strong&gt; Falkor-backed tests. One operational lesson, learned the honest way: clear the graph before every run. A second run on a dirty graph still passes but the counts drift (13 nodes / 19 edges) — stale state lies quietly, so the runbook wipes first, every time.&lt;/p&gt;

&lt;h3&gt;
  
  
  What the graph buys you
&lt;/h3&gt;

&lt;p&gt;A refusal with a receipt beats a refusal with a shrug. When Agent B says no, it can point at the exact claim node that made it say no. That provenance — decision, evidence, edge — is the whole thesis of my Permit work, and the graph makes it a query instead of a log file.&lt;/p&gt;

&lt;h3&gt;
  
  
  The benchmark: measured against bugs I already fixed
&lt;/h3&gt;

&lt;p&gt;A demo proves a demo works. So I froze a harder test &lt;em&gt;before&lt;/em&gt; running it: seven incidents from Permit's own history — real issues and fixes, each with its merged PR on the record — rebuilt as scenarios in the graph. For each one I wrote down, in advance, the question a second agent would ask the graph and the answer Permit's fix guarantees. Then I ran them on the real FalkorDB backend and let the graph answer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First run: 4 of 7.&lt;/strong&gt; Then I fixed the three misses and ran the identical frozen set again: &lt;strong&gt;7 of 7.&lt;/strong&gt; Both runs are in the log; here's what each one showed.&lt;/p&gt;

&lt;p&gt;The four passes are the coordination core: a spend attempted after its permit was revoked mid-flight fails closed; the graph names which agent claimed a spend first, and the second agent's refusal cites that exact claim ID; the refusal itself is on the record, reason included; and revoking a permit voids its in-flight claim instead of leaving it "active."&lt;/p&gt;

&lt;p&gt;The three first-run misses were just as specific, and I'm not going to soften them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cumulative caps.&lt;/strong&gt; Two agents each claimed $300 against one $500 cap, at different merchants — $600 in total claims, and the graph allowed both. It checked a single claim against the cap and never summed what was already claimed. Permit itself refuses this (atomic concurrent cap, PR #20); the graph slice didn't have that guarantee.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expiry.&lt;/strong&gt; A permit whose expiry had already passed still spent successfully. The slice never read an expiry timestamp. Permit tightened expiry at release time (PR #29); the graph didn't enforce it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crash survival.&lt;/strong&gt; I killed the server and restarted it. The graph came back empty — every claim's provenance, gone. As configured for the demo, the store was volatile; Permit's crash-resume durability (PR #26) didn't carry over.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I fixed exactly those three things — admission now sums active claims against the cap, permits carry an expiry that admission actually reads, and the server runs with durable append-only storage — added one test per fix (suite now 9/9), and re-ran the same seven cases with the same expected answers, the set frozen before any of it. Second run: &lt;strong&gt;7 of 7&lt;/strong&gt; — the second $300 claim refused against the cumulative cap, the expired permit refused, and after the kill and restart the graph still knew who had claimed what.&lt;/p&gt;

&lt;p&gt;That's the honest shape of the thing: the graph answered every question it was built to answer — who claimed what, what was decided, what got revoked — and the benchmark found the three Permit guarantees the slice hadn't grown yet. Fixing them and re-measuring against the unchanged set is the whole point of having one. A benchmark that only contains things you already pass isn't a benchmark. (The frozen set and the full measurement log ship with the project.)&lt;/p&gt;

&lt;h3&gt;
  
  
  What I'd do next
&lt;/h3&gt;

&lt;p&gt;Persist merchant reputation across sessions, so "what did the last agent learn about this merchant?" has a longer memory than one demo run — and wire the graph check into Permit's live gate, where a duplicate claim refusal would carry a real receipt chain behind it.&lt;/p&gt;

</description>
      <category>hackathon</category>
      <category>ai</category>
      <category>opensource</category>
      <category>database</category>
    </item>
    <item>
      <title>The Receipt Sorter That Shows Its Work</title>
      <dc:creator>Marcus Richards</dc:creator>
      <pubDate>Wed, 14 Oct 2026 02:40:27 +0000</pubDate>
      <link>https://dev.to/fetchdoge_/the-receipt-sorter-that-shows-its-work-4gdf</link>
      <guid>https://dev.to/fetchdoge_/the-receipt-sorter-that-shows-its-work-4gdf</guid>
      <description>&lt;p&gt;&lt;em&gt;Submission for the Hacktoberfest Open-Source AI Challenge, Week 2: Side Hustle. Prize category: Best Use of Gemma. This project was built with AI assistance; the build notes below say what the AI got wrong, too.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with receipt sorters isn’t extraction
&lt;/h2&gt;

&lt;p&gt;There are already good tools that read a receipt and hand you the numbers. The problem starts a month later, at tax time, when a number in your spreadsheet looks wrong and there is no way to answer the only question that matters: &lt;em&gt;which document did this come from, and what actually read it?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So I built Receipt Sorter around the audit trail instead of around the extraction. It is a small command-line tool — Python, standard library only — that turns a folder of receipts and invoices into a &lt;code&gt;ledger.csv&lt;/code&gt;. A local open-weight model (Gemma, served by Ollama) reads each document. Images go through vision; plain-text invoices are read directly. Five fields per document: vendor, date, amount, currency, category.&lt;/p&gt;

&lt;p&gt;Then the part I actually trust: the validation layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Validation, not vibes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Dates must be real ISO dates. Amounts must be positive. Currency must be a 3-letter code. Category must come from a fixed list of 12 — no free text.&lt;/li&gt;
&lt;li&gt;Anything missing or invalid is flagged &lt;code&gt;needs_review&lt;/code&gt;, with the reason written next to it. The tool never guesses a value to make a row look complete.&lt;/li&gt;
&lt;li&gt;Duplicates are skipped, defined strictly: same vendor, date, amount, and currency.&lt;/li&gt;
&lt;li&gt;Every ledger row carries provenance: the source file, the model used, and the extraction timestamp.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Financial documents deserve that care. A receipt shows who was paid, how much, and when — which is also why the tool runs entirely on your own machine. Nothing is uploaded, there is no per-seat API cost, and it works offline once the model is downloaded.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the demo actually showed — stated carefully
&lt;/h2&gt;

&lt;p&gt;Status, precisely: &lt;strong&gt;built and fixture-tested&lt;/strong&gt;. It is released publicly alongside this post, and it has never touched a real client’s receipts.&lt;/p&gt;

&lt;p&gt;On 2026-10-13 I ran it end to end against three sample fixtures created for testing — one rendered grocery receipt as an image, one software invoice as text, one cab receipt as text — and scored the output against a ground-truth file:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;15 of 15 fields correct&lt;/strong&gt; — 5 fields across 3 clean fixtures. Zero rows flagged for review.&lt;/li&gt;
&lt;li&gt;Model: &lt;code&gt;gemma3:4b&lt;/code&gt;, fully local, on a small 2-CPU VM.&lt;/li&gt;
&lt;li&gt;Speed, honestly: the warm 3-file run took 2 minutes 58 seconds. A cold single-image call took about 175 seconds, including model load. Small local models are slow, and I would rather publish that than hide it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Three clean fixtures prove the pipeline works. They do not prove real-world accuracy, and this post doesn’t claim it. Photographed, crumpled, real receipts are the next test, and whatever accuracy shows up there is what gets published.&lt;/p&gt;

&lt;h2&gt;
  
  
  What broke while I built it
&lt;/h2&gt;

&lt;p&gt;Two failures worth more than the demo:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The model downloads failed their own provenance test.&lt;/strong&gt; The build machine’s network intercepted DNS in a way that made &lt;code&gt;ollama pull&lt;/code&gt; refuse the model files. The fix was to fetch each file directly and verify its SHA-256 against the model’s manifest before assembling anything — all 9 files across both models, hash-verified. A tool that records where every value came from should hold its own downloads to the same standard.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The small model’s name lied.&lt;/strong&gt; &lt;code&gt;gemma3:1b&lt;/code&gt; turned out to be text-only in its Ollama packaging — no vision component — so image receipts were rejected until the run moved to &lt;code&gt;gemma3:4b&lt;/code&gt;. The box didn’t say that. Testing did.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What’s next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Run it against messy, real-world photographed receipts and publish the accuracy as measured — good or bad.&lt;/li&gt;
&lt;li&gt;Make the &lt;code&gt;needs_review&lt;/code&gt; queue easier to work through, because flagged rows are where a user’s time actually goes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt; &lt;a href="https://github.com/FetchDoge/receipt-sorter" rel="noopener noreferrer"&gt;https://github.com/FetchDoge/receipt-sorter&lt;/a&gt; — the demo ledger, ground truth, and results are in the repo (&lt;code&gt;demo/RESULTS.md&lt;/code&gt;).&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
