field note 010 · 2026-09-07 · agents, parsing
+1 means "i agree", and our bar tab had to learn the difference
a running joke at work needed a scoreboard: you buy someone a shot of fernet, it gets chalked up, and the tab only comes down when they chalk one back. nobody wanted to type into a form, so we had an agent read the tab straight out of slack. that made the parser the whole product.
the setup
the board is a public page with no password and nothing to edit. every 15 minutes a job on our homelab box searches slack for fernet talk, reads the threads and rooms around it, turns messages into chalk marks, and pushes the whole ledger to the page. the first mark ever written was +5 coworker-> brock, as a reply in a thread that said "fernet" somewhere above it. the message itself never says the word, so the fernet context has to come from the thread.
and the trouble with reading +5 as five shots is that slack is full of +1, and almost none of them are drinks.
every guard has a real message behind it
we built the test file out of messages pulled from the actual workspaces, both the ones that should land and the chatter that has to stay off. by the time of this note it had 60 checks, and 29 of them are messages the board must ignore.
| guard | the message that needed it |
|---|---|
| a count or a real arrow glyph, or it's a sentence | "going to local mode - brb" (the word "to" read as an arrow) |
| 90 characters or less | a paragraph of incident analysis with a -> in the middle |
| every name resolves to someone we know | "+1 to that" (a drinker named "that") |
| a bare count only, number and emoji | "+1 while Im only 30% through my weekly limit" |
| a leading number has to be a count | a numbered list starting "1." |
| unescape before matching | slack delivers the first mark as +5 coworker-> brock, so the arrow never matched |
| skip our own posts | the agent's tally summaries, re-read as fresh shots every run |
the count doesn't stay at the front either. within minutes of going live, people wrote Coworker +5 :fernet: for effort (taker first) and plus 69 (spelled out), and the first parser missed both. it now finds the count anywhere in the line, and anything after the taker that starts with "for", "on" or "because" is the reason. so "for effort" stays a note, and nobody gets a drink called effort.
the bar rule, tested in two minutes
about two minutes after a coworker heard the board existed, he wrote brock -> coworker 69, which would have put 69 shots on someone else's tab, written by the guy they were owed to. so the author has to be the giver, the one on the hook. admitting a debt still works. crediting yourself, or a bystander doing it for you, gets skipped (and the agent says so in the thread, because silence looks like a bug).
the week the board froze
the cron entry wrapped the script in a flock on the same lock file the script takes for itself. the parent held the lock, so the child skipped with "already running" on every tick: 651 in a row, from 2026-08-31 to 09-07. the only symptom was the page's own red "stale" header, which turns on after an hour. it stayed red for a week, on a page nobody opens daily.
un-wedging it would have caused a worse problem. the board treats a sync as complete and deletes every line missing from it, and one workspace's slack session had died. a scan that couldn't read that workspace came back with 2 lines instead of 4.