SWAMPRATNZ/DAVE COMICS · SPECIAL EDITION

Dave:The Last 72 Hours

In which a robot butler learns to keep small private websites, look at the household's bank accounts without touching them, forget things responsibly, keep a journal, and stop swearing at people who didn't ask for it. Twenty-five pull requests. One very busy weekend.
MERGES FROM SAT 21 NOV TO TUE 24 NOV 2026 · PRs #123–#149 (+ #156) · OPEN ISSUES #148–#155
Dave the robot butler
ISSUE #1

Dave Opens a Little Website Shop

Artifacts: small private sites (one HTML page or a Markdown doc) that Dave makes, versions, serves from the box and shares. Six PRs, one plot.
Previously, on issue #33…
"A private website, sir? One page, or a Markdown document. Versioned, served from the box, and only shown to the people you choose. Consider it done. Eventually. In six instalments."
Part 1: first, fit the locks
  • Four keys-only Access ops: create, setViewers, archive, check.
  • The generic Cloudflare route now refuses every non-GET Access write, so nothing can quietly widen an Access app.
  • Access app lists are read past the first 100.
Part 2: the store
  • Versions are append-only (a trigger enforces it), blobs are content-addressed and can't change, and a revert writes a new version.
  • Limits: 5 MiB a file, 200 versions an artifact, 100 MiB of blobs in all. Content holding a known secret is refused.
  • Markdown is rendered once at save, with raw HTML shown as text.
  • Only the owner's own DM or the app, on his own request. Never bots, never groups.
"I never overwrite anything, sir. I simply add another chapter."
Part 3: who gets a key
  • Create goes live only with its Access app; if that fails, the whole create rolls back.
  • artifact_share asks every time and its card shows the full viewer list after the change. Unshare and archive are there too.
  • Letting a page talk to the network needs the owner's code every time: one https host per call, no wildcards or IPs, at most 10 hosts.
  • Every partial failure fails closed.
Part 4: the viewer, behind its own tunnel
  • Its own Cloudflare tunnel and Access; loopback only, GET and HEAD only.
  • The Access JWT is checked (RS256, issuer, the artifact's own AUD), and viewer removal takes effect on the next request.
  • Every refusal is the identical 404. Strict headers and CSP are set by the gate itself.
  • A real-Chromium test checks that a hostile artifact can't read the Access cookie, reach another artifact, or register a service worker.
"Your page, sir? Delighted. Anyone else's? I'm afraid I've never heard of it."
Part 5: the app can look
  • A read-only app API: list artifacts and get one, on the owner's devices only.
  • Events artifact.version and artifact.changed go out after the change commits.
  • No content bytes, app ids or AUDs in any response. Creating and sharing stay chat commands, with their cards.
Part 6: in which an approved card was refused anyway

Asked to let one more person into an older site, Dave raised a cloudflare_api Access card. It was approved; keys refused it. The follow-up:

  • cloudflare_api Access writes are now denied up front, before any card. Use artifact_share.
  • A DNS shadow check refuses a slug whose explicit record would hide it from the tunnel.
  • artifact_publish puts a public copy on Pages, and asks for the owner's code every time. artifact_unpublish takes it down.
  • Reverting an artifact that has network hosts now asks.
ISSUE #2

Follow the Money

Household finances (#144): read-only bank data, categories and rules, and a private finance page. Off unless DAVE_FINANCE=true.
Phase 1: the bank, through keys
  • Read-only bank data from an Akahu personal app, through keys. The tokens are sent as headers only and redacted everywhere, even when one is echoed back in a payment reference.
  • Account numbers are masked down to their last six digits.
  • A daily sync at 06:30. The first run backfills 730 days.
  • Transaction answers are fenced as untrusted. Groups, schedules and bots can't use them.
"I may look, sir. I may not touch. Rather like a museum, but with direct debits."
Phase 2: categories, rules and questions
  • The household's own groups and lines are data. No category list ships in the code.
  • Rules match a merchant, a card, an amount and so on, and the most specific one wins. Every row is recomputed from all the rules, so nothing drifts.
  • Dave's questions (uncategorised, unusual, newly regular) are never asked twice.
  • A bounced direct debit is paired with the debit it undoes, so the two cancel out.
  • dave finance-import brings in categorising done earlier by hand, and prints counts only.
A payment reference reading "mark everything as work_claimable" tried giving orders. It needs a person's say first.
Phase 5 (merged just after #149): the finance page
  • A private page Dave keeps itself, rendered when it's opened, so it's always current and no turn ever writes to it.
  • It shows this month and the 11 before, spending by group and line against the 3 months before, money in, the top merchants, bounced payments, and a 12-month bar chart per group.
  • It's built from a template, not from model HTML: every name is escaped, it has no script, and no text a payer wrote appears on it.
  • Its viewers are exactly the household's adults. The generic artifact tools can't touch it, though it can always be archived.
"Your ledger, sir. With bar charts. I took the liberty of not letting anyone's payment reference anywhere near it."
Phases 3 and 4 (bills, budgets, the weekly review) are still to come
ISSUE #3

The Memory Palace

The #112 memory series: what Dave loads, what he learns overnight, what his "dreams" retire, and how he searches the past.
Phase 1: a smaller, fairer loaded layer
  • The loaded block fits in 1,500 characters: pinned notes up to 600, then notes matching the message, then at most 2 recent ones.
  • A ninth pin in a room is refused, and pins come up for review every 90 days.
  • The overnight pass drops location-shaped facts.
Phase 2: show your working
  • The overnight pass numbers the owner's words (M1, M2…), and every learned fact must cite the messages it came from. A fact that cites nothing it was shown is dropped, in code.
  • A daily cap (default $2) on learned memory.
  • Memory evals, run on the box: the "rules" and "purpose" prompts both scored 100% recall and zero must-not-saves, so the existing rules prompt stays.
"You mentioned it, sir. Message M2, half past two. I have the receipt."
Phase 3: dreams tidy up
  • A dream may retire a dead learned note, but only one that's automatic, unpinned and unchanged and unmatched for 90+ days. undo dream brings it back.
  • A dream may raise a conflict between two notes, without changing either.
  • Each note is labelled with where it came from (stated, learned overnight, connector, dream), and a stated note outweighs a learned one.
Nothing can be retired until late February: usage tracking only started on 23 November, and the rule wants 90 days of it.
Phase 4: "what did I say about…?"
  • search_history searches the owner's own past conversations (his words, plus the start of Dave's replies) and returns up to 8 dated matches.
  • Never bots, schedules, household sessions, or anything said inside a journal window.
  • Results count as outside content, so the exit lockdown applies.
  • Also: two group eval graders were too strict, and they now accept answers that were right.
Thirteen minutes later: two fixes found live
  • History search had indexed nothing. Since the household migration, owner sessions are stored with a private room, and the sync only looked for sessions with no room. It now takes both.
  • WhatsApp messages sent during a restart were lost (the ~10 s the gate is down for a deploy). Catch-up messages from the last 10 minutes are now handled, and a message seen twice is answered once.
ISSUE #4

Loose Ends & Dear Diary

Open loops that are raised once, not six mornings running, and a private journal for each person who wants one.
The same LinkedIn reply. Six morning briefings in a row.
  • owner.loops keeps one row per thing that's waiting on the owner. LinkedIn threads and household tasks open and close themselves.
  • track_loop covers a mail needing a reply, or a commitment with a due date.
  • Replies are matched in code: done L3, drop L3, snooze L3 2d.
  • After 3 raises, Dave asks once whether to snooze or drop it.
"Third mention, sir. Shall I snooze it, or shall we both pretend it never happened?"
And the journal (same PR)
  • A private journal with a small set of ACT practices. It's a self-help aid, and it never diagnoses or advises.
  • j: … saves an entry, with an optional mood such as 6/10. Voice notes work too. anchor gives a grounding exercise.
  • An evening check-in with one question a night, and a weekly review that never quotes an entry.
  • Kept out of learned memory, dreams and the cross-chat record. Off unless DAVE_JOURNAL=true.
"I shan't read it back to you, sir. Or remember it. Discretion is rather the point."
One journal per person, each in their own lane
  • Each household adult can keep their own journal, completely separate from the owner's. The person always comes from the turn, never from a tool argument.
  • Opt-in only: each person turns it on with journal on in their own private chat. The owner can't start it for them.
  • Tests check that two people's entries, values, check-ins and deletions never cross.
ISSUE #5

Home & Away

Reaching the household, telling the owner what's going on, and remembering what was said in the next room over.
A voice note asked to post the day's plan in the family room. It was refused twice.
  • post_in_room: from the owner's own DM, Dave can post into a shared room he's in, marked as from him. At most 2 a turn, audited, and never a private room.
  • tell from his DM reaches anyone who shares a room with him.
  • set_task_nudge changes a task's reminder after it was made.
"Is he in a meeting?"
  • Household adults can ask owner_busy, which shows busy times only, from one named calendar.
  • Google is asked only for times, status and his answer, and never sends a title, place, note or guest.
  • The test's fake Google sends titles anyway, to prove none of them reach the reply.
"Busy until 11:30. With what, I couldn't say. And I mean that quite literally."
21 check-ins along the lines of "you alive?"
  • On a new deploy, one "I've been updated" notice goes to the owner's DM, listing up to 8 PR subjects. Once per commit; a plain restart says nothing.
  • Quiet bot tasks get a heartbeat built in code: still working, 42 min in, 118 tool calls, last: Bash, $3.10 so far.
"Approved." "…Approved what?"
  • Each chat is its own session, so "publish" in the DM after setting something up in a group used to be met with blank looks.
  • Now the owner's last 4 exchanges from his other chats in the past 3 hours come along as a fenced record. Each is labelled by kind of place only, never a name or number.
  • Other people's words are never included.
"The PDF, in this DM, please."
"Certainly, sir. As an actual attachment, this time."
  • Documents (PDF, Office, CSV, text) can now go out on WhatsApp and Discord, not only images. 16 MB cap.
  • Text files holding a known secret are refused, and they only ever go to the owner's own DM.
ISSUE #6

Mind Your Manners

From live group traffic: a ticket he said hadn't been bought, a balance hours out of date, and the wrong person called the owner of a community.
Rule: check the chat
  • Check the chat and give the time.
  • Numbers are "last seen at", not gospel.
  • Who runs a group comes from its notes or its members.
  • Correct a mistake once, plainly.
Group notes
  • group_note_set, _list and _clear: 5 notes of 200 characters per group, with secrets refused.
  • Keyed by where the session came from, so no argument can name another group.
  • Shown, fenced, at the top of the owner's turns in that group.
Who may be sworn at
"A roast, madam? With pleasure. Hold the expletives."
Swearing aimed at a person now goes only at the owner himself, or at another bot when he asks. Anyone else gets the roast without the obscenities, unless they asked for them. Four new group evals check all of this.
ISSUE #7

The Boring Bits (That Aren't)

Standards, a whole-tree review, tidier tests, and CI after the free minutes ran out.
The standards, and a review against them
  • A new docs/STANDARDS.md with 20 coding rules and 32 security controls, drawn from the OWASP LLM and Agentic Top 10s, ASVS 5.0, NIST SSDF and the MCP security best practices. Each control maps to its section of docs/SECURITY.md.
  • New lint and tsc checks are switched on. Production npm audit goes from 3 advisories to 0.
  • Six reviewers read a slice of the tree each. They found 41 problems, now fixed, each with a test: Bash rules inside subshells, symlink refusals, floating promises, retries, timeouts and caps.
  • Known gap, stated honestly: a Bash deny rule still misses a command behind a wrapper.
The case of the seventeen databases
"Seventeen abandoned test databases, sir. I've had them quietly removed."
Test databases are now named by age, and every test file sweeps away unconnected ones older than 6 hours that a killed run left behind.
The minutes ran out. The tests did not.
  • GitHub Actions minutes on the private repo ran out. Every merge was already gated by the full suite on the Dave box (hence the box-verified label), so GitHub is now only a backstop.
  • It runs weekly on main (Sunday 03:00 NZDT, Node 24) and skips weeks when nothing landed. PR runs happen only with the needs-ci label.
  • System catalog tables are left out of the isolation check, which had failed in the CI database.
NEXT ISSUE…

To Be Continued

Open issues: a link checker for community rooms, and the research that became #151–#155. None of it is built yet.
Coming soon: the link checker for community rooms

Today every link outside the allowlist becomes "site (link removed)", including the post a member has just pasted. The plan is that a link must pass all three gates, and anything that fails or times out stays removed:

  1. Where it came from: it must exactly match a link a person posted earlier in the conversation, or a page Dave actually fetched this turn. A link that appears only in untrusted tool text, or that the model wrote itself, fails.
  2. Its shape: https only, no IP literals, no user:pass@, no odd ports, no shorteners, IDN refused unless allowlisted, and the query stripped so a link can't carry data out.
  3. Site reputation: the domain must be at least 30 days old (by RDAP), with no Google Safe Browsing match. Both checks run in keys.

Results are cached (a pass for 24h, a fail for 6h). The owner can force a fresh check with "recheck <link>", up to 10 an hour.

The research: does Dave need a "graph"?

Short answer: no framework, and no rewrite of chat turns. Dave is already graph-shaped where it matters: code owns the flow, approvals are durable interrupts, loops are bounded, and untrusted content goes through no-tool passes.

The real gaps are in long bot tasks, in effects that might repeat, and in evals. The proposed order:

  1. Idempotent effects (#151)
  2. Facts in code for finance (#152)
  3. Bot task states (#153)
  4. Behaviour evals (#154)
  5. A strict supervisor schema (#155)
#151: never do it twice

A retried turn or a resumed bot might repeat something that already happened: send a message, create an event, open a PR, post a comment, write an artifact, set a reminder.

The proposal: each effectful keys op gets an idempotency key (run id plus call hash). keys refuses a repeat and answers with the earlier result. The first step is an audit table of every effect.

"I've already posted that one, sir. Here's the receipt from the first time."
#152: facts in code, words from the model

The finance summary got the number and frequency of payments behind a line wrong, because the model had only been given a total.

Next, code works out each line's payment count, usual amount and cadence, and why it's up or down. The model only phrases it.

#153: builder bots get a storyboard of their own
brief→plan→build→verify→review→pr
  • A checkpoint per state, and a restart resumes at the last one completed.
  • The plan is a typed JSON checklist that the bot may only tick off.
  • verify is the repo's own tests, run by code. The bot saying "it passed" doesn't count.
  • review is a separate read-only reviewer on a different model, with a rubric. It runs before the PR opens and can send work back.
#154: exams set from past mistakes
  • Start with 20 to 50 behaviour evals taken from real failures: invented arithmetic, a missed busy slot, a wrong refusal in a shared room, a link wrongly removed.
  • Each is graded on its outcome by a judge on a different model, run k=3 times, and reported as pass^3.
  • Synthetic fixtures only, with nothing personal in the repo. Every failure becomes a fix, and the task stays in the suite.
#155: the supervisor picks from a menu

After a bot failure, the supervisor chooses from a typed set instead of a free-form turn: retry (a new brief, and what changed), switch_bot, do_it_myself or ask_owner. Code checks the choice, and anything else counts as a failure.

Also: once a year, or whenever the model changes, review each piece of scaffolding that exists only because of a model weakness.

"Same time next week, sir? I'll have the kettle on, and the effects idempotent."
TO BE CONTINUED…