[{"content":"","date":"1 December 2026","externalUrl":null,"permalink":"/tags/agents/","section":"Tags","summary":"","title":"Agents","type":"tags"},{"content":"","date":"1 December 2026","externalUrl":null,"permalink":"/tags/ai/","section":"Tags","summary":"","title":"AI","type":"tags"},{"content":"The blog is a working notebook rather than a news feed. Most posts start as a measurement, a change window, or something I could not explain, and end with the numbers that settled it.\nThree subjects come up most often. Network security practice, meaning firewall policy, segmentation, remote access, and the change process wrapped around them. Homelab builds on Proxmox, TrueNAS and Docker. And self-hosting, which is mostly an honest account of what it costs to run a service yourself.\nCorrections and questions are welcome. The RSS feed is the simplest way to follow along.\n","date":"1 December 2026","externalUrl":null,"permalink":"/","section":"Notes from the firewall and the homelab.","summary":"The blog is a working notebook rather than a news feed. Most posts start as a measurement, a change window, or something I could not explain, and end with the numbers that settled it.\n","title":"Notes from the firewall and the homelab.","type":"page"},{"content":"","date":"1 December 2026","externalUrl":null,"permalink":"/posts/","section":"Posts","summary":"","title":"Posts","type":"posts"},{"content":"","date":"1 December 2026","externalUrl":null,"permalink":"/tags/self-hosting/","section":"Tags","summary":"","title":"Self-Hosting","type":"tags"},{"content":"","date":"1 December 2026","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"","title":"Tags","type":"tags"},{"content":"My agent keeps its long-term memory in a service called Hindsight. Before every turn it asks Hindsight for anything relevant to the message it is about to answer, gets back a few dozen observations, and pastes them into the prompt. When that works, it remembers what we decided two weeks ago. When it doesn\u0026rsquo;t, it starts cold and asks me something I already answered.\nLast week I found out that \u0026ldquo;when it doesn\u0026rsquo;t\u0026rdquo; has a pattern, and the pattern is message length. Every turn that arrived as a long paste, whether a monitoring notification, a log dump or an alert email, was coming back with no memories at all. No error, no warning in the chat, just a shorter prompt. I only noticed because the agent kept rediscovering facts it had recorded the day before.\nThe eight seconds belong to the client, not the server # The agent waits 8.0 seconds for a recall. That number is hardcoded in the memory manager, it applies to every single turn because the recall runs synchronously before the model is called, and no config key or environment variable moves it. If the response is late, the manager writes one log line and moves on:\nMemory provider \u0026#39;hindsight\u0026#39; prefetch timed out after 8.0s; the call keeps running The call does keep running. Nothing looks broken from the outside; the turn simply gets no memories. Counting that line in the log is the only honest measurement of the problem, because a manual query against the API always returns, and returns whatever it takes.\nI suspected the wrong numbers first # The obvious suspect was candidate count. Recall pulls a pool of facts and reranks all of them, so fewer candidates should mean less work. The second suspect was CPU. The memory service shares a box with camera detection and a media library scanner, and I had already measured rerank time swinging by more than 2x depending on what else was awake.\nBoth of those are real costs. Neither explained why the failures clustered on notifications.\nIt was query length # A cross-encoder reranker scores pairs, meaning the query once against each candidate fact. Cost tracks the length of the pair, so every extra character in the query is added to all N pairs, not to one. Sweeping the query length against a fixed candidate cap made that visible immediately.\nQuery length Recall time 60 characters 4.0 to 4.2 s 200 characters 4.8 to 4.9 s 400 characters 6.5 to 7.3 s 600 characters 8.1 to 8.5 s, over budget 800 characters about 10.1 s Roughly 0.8 seconds per extra 100 characters at that candidate cap. Typed messages sit around 90 characters, which is why they never showed the problem. Notifications run 600 to 1,000, which is why they always did.\nMeasured through the real input path, not a hand-written probe # The first version of this test was wrong in a way worth describing. I was sending the full message to the API myself, which measures a workload no turn actually runs. The plugin truncates the message before it goes out, using a setting called recall_max_input_chars that defaults to 800. Everything I changed had to be measured through that path, three rounds per setting, using a real notification as the sample.\nInput cap Typed message (~90 chars) Long turn (~950 chars) Turns over 8 s 800, the default 4.2 to 4.5 s 10.2 to 11.0 s 3 of 3 600 4.2 to 5.5 s 8.9 to 10.7 s 3 of 3 450 not measured 7.4 to 7.9 s 0 of 3 350 not measured 6.9 to 7.9 s 0 of 3 Dropping to 600 was not enough, which was useful to learn before shipping it.\nTwo ways to buy back the time # Latency comes from the query length and the candidate cap, so either can be cut and the two multiply. The temptation is to cut candidates, because it is a server setting and costs nothing to reason about. I checked what each lever actually changes in the results, comparing the top 10 for each setting against the old one.\nTrimming the query from 800 to 350 characters reshuffled about 70 percent of the returned list. Cutting candidates from 250 to 200 changed about 4 percent on short queries and 7 percent on long ones. If you read only that, cutting candidates looks like the safe move.\nIt measures the wrong thing. Overlap tells you a result set changed, not whether it got worse. Cutting candidates also throws away reach, since a fact ranked 220th is gone rather than downweighted. So I ran a relevance check instead.\nChecking quality, blind # I pulled 14 long turns out of the session database, kept the 11 that were genuinely over the cap, and recalled the top 5 memories for each one at both settings. The two lists went to a separate model, shuffled, with the full message attached and no indication of which setting produced which list. It scored every memory 0, 1 or 2 for usefulness in answering that message.\nTruncation to 350 scored 2.82 out of 10 against 2.45 for the full message. It was ahead on 6 messages, behind on 2 and tied on 3. That is 11 messages and one judge, so it is not a precision claim, but nothing in it suggests the shorter query found worse memories. The mechanism makes sense: in a long paste the tail is usually boilerplate, and boilerplate pulls the query off topic about as much as it adds signal. The head was already carrying the intent.\nAcross those 14 long turns, turns that blew the 8 second budget went from 12 of 14 to 1 of 14.\nWhat truncation actually costs you # Truncation keeps the head of the message. That is fine for notifications, whose first line is the alert. It is bad if you paste a log and put your question at the bottom, because the question is not in the query at all and the memories come back for the boilerplate. Short typed messages are unaffected, since they fit under any cap.\nThere is also a trap in how you sample long messages to test this. The stored copy of a user turn includes the memory block the agent prepended to it, so a message of 400 characters of actual typing measures several thousand characters in the database. The recall query never contains that block, so it has to be stripped before you measure message lengths. I wasted an afternoon on a sample padded with short messages wearing long coats.\nWhere it settled # The cap went to 350 characters, and the candidate count from 250 to 225. Long turns now measure 6.5 to 6.8 seconds through the plugin and typed ones 3.6 to 4.9, leaving headroom for the box to be busy.\nTwo things I would hand to anyone measuring the same problem. Do not extrapolate from a single very long query: a probe at 2,400 characters measured about the same latency as 800, because the cross-encoder caps how much of a pair it will read, so the curve is linear only over the range you tested. And the 8 seconds is a client side timeout in one agent\u0026rsquo;s memory manager, not a property of the memory server, so the fix that matters is knowing what your client does when recall is slow. A silent empty result is the hardest failure mode to notice, and it is invisible from the server side, where every query succeeds.\n","date":"1 December 2026","externalUrl":null,"permalink":"/the-eight-second-budget-why-long-messages-silently-cost-my-agent-its-memory/","section":"Posts","summary":"My agent keeps its long-term memory in a service called Hindsight. Before every turn it asks Hindsight for anything relevant to the message it is about to answer, gets back a few dozen observations, and pastes them into the prompt. When that works, it remembers what we decided two weeks ago. When it doesn’t, it starts cold and asks me something I already answered.\n","title":"The Eight Second Budget: Why Long Messages Silently Cost My Agent Its Memory","type":"posts"},{"content":"I run an agent called Hermes with a long-term memory service called Hindsight behind it. Hindsight reads every conversation turn, pulls out facts worth keeping (one LLM call, the extraction pass), and later merges them into longer-lived observations (a background consolidation pass that dedupes and combines). The service runs on my own hardware, in Docker with embedded Postgres, and the embeddings and reranking happen locally on the box. So the only cloud spend in the whole system is those two calls, which makes the bill a clean measurement of exactly two model choices.\nFor about six weeks, extraction ran on Google\u0026rsquo;s Gemini Flash Lite family. The mistake was not in the reasoning. At install time I picked the candidate with the best structured-output behaviour per dollar. Extraction is a structured-output task, so that was the right axis to judge on. Gemini 3.5 Flash Lite scored 85.0% on GPQA-D and 77.6% on TAU-Bench, with structured-output error between 0.08% and 0.26%, at $0.30 per million input tokens and $2.50 per million output. I also rejected Gemini 2.5 Flash, correctly, because a cheaper sibling dominated it.\nThe problem was the candidate set. Every model in it was a Gemini variant. I had compared Gemini to Gemini and called the result a decision.\nMethod # I replay the same 12 real documents from my own bank into a throwaway Hindsight instance. Each candidate extracts facts from all 12. A separate model then judges the two sets blind, with A/B order randomised per document and the key held back until the scores are in. Where I ran the judging myself it was a Google model, sitting outside the Anthropic and DeepSeek comparison. Judge models have a measurable preference for whichever set they read first.\nThe other rule is never to judge a candidate against the live bank. Its facts accumulated from incremental deltas over months, so a cold extraction compared against it measures history rather than the model.\nTwelve documents is a small sample and I will come back to that. It was still enough to overturn three convictions.\nRound one: Gemini 3.5 Flash Lite against Claude Haiku 5.5 # Haiku won all 12 documents. It scored 4.75 for completeness against 2.33, 4.58 for accuracy against 4.17, and 3.17 for redundancy against 3.83, where lower is better on that last one. Cost was $0.13 to $0.18 per run against roughly $0.27 for the Gemini route.\nIt also extracted about 2.5 times as many facts from the same documents, 196 against 80 on the trial batch. More facts looked like thoroughness at the time.\nRound two: Haiku 5.5 against a local model # The obvious next question was whether I needed to pay anyone at all. I had a 20B open-weight model (gpt-oss-20b) on a CPU box, and local inference would have made extraction cost zero.\nHaiku won 10 of 12. Accuracy came out 4.67 against 3.83, completeness 4.50 against 3.67, usefulness 4.25 against 3.08. The judge flagged 3 unsupported or misattributed facts in Haiku\u0026rsquo;s output and 16 in the local model\u0026rsquo;s. The local model was also about 50 times slower.\nThe interesting part is the fact counts. The local model extracted 334 facts to Haiku\u0026rsquo;s 196 and still lost by a wide margin. It stored the assistant\u0026rsquo;s own suggestions as if they were decisions, and it carried errors from an earlier document in the run forward into the summary of a later one. Volume went up because it was recording conversations rather than extracting facts.\nFact count is not thoroughness in either direction. A model can be terse because it is precise, and it can be verbose because it is confused.\nThe line item I was not looking at # Up to this point I had been pricing the work from token counts and list prices. Then I read the Prometheus counters instead of my invoices. 57% of extraction output tokens were reasoning tokens. On consolidation it was 73%.\nThose tokens are billed as output, they were the majority of output on both lanes, and I had been estimating cost from the visible text. My arithmetic was short by roughly a factor of two on extraction and nearly four on consolidation.\nHindsight exposes a reasoning-effort knob, an extra-body knob, and a consolidation-only extra-body override, so this was testable. I ran two experiments.\nThe first was to disable reasoning for extraction. Billed output dropped 41% and cost dropped 26%, which sounds like free money until you look at quality. The blind judge gave the baseline 7 document-wins to 3, and completeness came in at 4.42 against 4.25. Reasoning was doing real work. Deciding what counts as a durable fact is a judgement call, and the model gets better at it when it is allowed to think.\nThe second was to disable reasoning only for consolidation, and leave extraction alone. That was the win.\nBoth arms made 29 calls. Cost came in at $0.1341 with reasoning on and $0.0747 with it off, a 44% reduction, and wall clock went from about 11 minutes to about 4. The reasoning arm stored 330 observations, the other 207, at identical average length. A blind audit of the no-reasoning output scored coverage 5/5, accuracy 4/4, specificity 5/5, and unsupported facts 1/1. No quality was given up.\nThat reads like a contradiction until you separate the two tasks. Extraction is deliberation about what a fact is. Consolidation is merging facts you already have, and there is nothing to deliberate about. The model was thinking hard about a clerical task and billing me for it. That change went live.\nRound three: Haiku 5.5 against DeepSeek V4.1 Flash 1017 # The last comparison was against DeepSeek V4.1 Flash 1017 on a zero-data-retention endpoint that supports strict structured outputs. DeepSeek won 8 documents to 1. Accuracy was tied at 4.67, completeness came out 4.67 against 3.83, and usefulness 4.83 against 4.33. Extraction cost fell 66% on the same 12 documents, and consolidation cost fell 48%.\nThe reason was not the list price. 81% of DeepSeek\u0026rsquo;s input tokens hit the provider\u0026rsquo;s prompt cache at about one thirty-third of the normal input rate. The Anthropic route I was using returned zero cache hits across three consecutive identical 7.8k-token prefixes. Since extraction resends a large stable instruction block on every call, that difference reorganised the cost ranking.\nNone of that is visible on a pricing page. Prompt caching is a property of the endpoint you pin, not of the model name. Two providers serving the same weights can have very different effective input costs.\nLatency roughly doubled, from 10.3 seconds median to 21.4 seconds, with a 65 second worst case. For background lanes that is fine; for anything a user waits on, it is not. DeepSeek went live for both lanes, with consolidation reasoning still off.\nWhat this changed about how I buy models # A pricing page would have gotten two of these three decisions wrong, in opposite directions. Local inference at zero marginal cost sounded like the endgame and lost badly to a hosted model. DeepSeek\u0026rsquo;s headline rate was higher than Haiku\u0026rsquo;s on both input and output, while the endpoint I actually pinned was cheaper on both, before cache hits took another third off. Haiku, by contrast, was cheaper than Gemini Flash Lite on list price and won all twelve documents, which is the one result the pricing page and the replay agreed on. That agreement should have told me six weeks earlier that my candidate set was one vendor wide.\nI no longer price a model swap from list price times token counts. I replay my own documents through the candidate and read the counters. It takes an afternoon and it has been right every time, which is a better record than my judgement has earned.\nReasoning tokens are the hidden line item and they behave differently by task. On extraction, deliberation pays. On consolidation, it buys nothing. If a service gives you a per-lane override, use it, and measure both lanes separately rather than setting one global knob.\nPrompt caching is worth checking before you check anything else. It can move a model from third place to first on its own.\nA vendor-family-only comparison is not a decision. Six weeks of Gemini was not a mistake in analysis, it was a mistake in scope. The analysis was sound and the candidate set was one vendor wide. Nothing was wrong with the answer because nothing else was in the room.\nScale and caveats # The live bank holds roughly 34,000 nodes across about 820 documents, and a single daily window measured about 114 extraction calls and about 188 consolidation calls. That is small enough that I could have ignored it. I did not, because the ratio is the part that transfers. At ten times the volume the consolidation toggle alone is the difference between a comfortable bill and an annoying one.\nTwelve documents per comparison is small. It caught large effects reliably and would not have caught a 3% difference. Each round used one judge model, so a judge with a bias toward a particular output style would have shifted every round the same way. I mitigated that with blind A/B and randomised order, not with a panel. A vendor\u0026rsquo;s own leaderboard is not evidence about my documents, whatever the benchmark name suggests.\nThe honest trade on the last swap is doubled per-call latency for a 66% cut in extraction cost. That is a good trade for a background lane and a bad one for an interactive one. If Hindsight ever needs to answer inside a request, something faster goes in and I will re-run the replay rather than guess.\nThe one thing I would do differently is write down the candidate set alongside the decision. The reasoning was fine; the scope was the bug, and a note reading \u0026ldquo;four models, all Gemini\u0026rdquo; would have shown it six weeks earlier.\n","date":"12 November 2026","externalUrl":null,"permalink":"/three-model-swaps-behind-a-self-hosted-memory-bank/","section":"Posts","summary":"I run an agent called Hermes with a long-term memory service called Hindsight behind it. Hindsight reads every conversation turn, pulls out facts worth keeping (one LLM call, the extraction pass), and later merges them into longer-lived observations (a background consolidation pass that dedupes and combines). The service runs on my own hardware, in Docker with embedded Postgres, and the embeddings and reranking happen locally on the box. So the only cloud spend in the whole system is those two calls, which makes the bill a clean measurement of exactly two model choices.\n","title":"Three Model Swaps Behind a Self-Hosted Memory Bank","type":"posts"},{"content":"When a site throws a certificate warning, the browser tells you something is wrong but not much about what. A couple of commands get you the details in a few seconds.\nSee what the server actually sends # openssl s_client -connect example.com:443 -servername example.com \u0026lt;/dev/null 2\u0026gt;/dev/null \\ | openssl x509 -noout -subject -issuer -dates -ext subjectAltName This prints who the certificate was issued to, who signed it, when it expires and every name it covers. The -servername flag matters: without it, a server that hosts several sites may hand back the wrong certificate, and you end up chasing a problem that isn\u0026rsquo;t there.\nCheck the chain # openssl s_client -connect example.com:443 -servername example.com -showcerts \u0026lt;/dev/null Look for Verify return code: 0 (ok) near the end. The most common failure I see is a server that sends its own certificate but not the intermediate. Desktop browsers often paper over that by fetching the missing piece themselves, so the site looks fine on a laptop and fails on phones, scripts and monitoring tools.\nJust the expiry date # echo | openssl s_client -connect example.com:443 -servername example.com 2\u0026gt;/dev/null \\ | openssl x509 -noout -enddate That one line is worth dropping into a monitoring check. Automated renewals are reliable right up until the day they quietly stop.\nWhat usually turns out to be wrong # The name you typed isn\u0026rsquo;t in the certificate\u0026rsquo;s subject alternative names. The intermediate certificate is missing from the server\u0026rsquo;s chain. The certificate expired, or the client\u0026rsquo;s clock is wrong. Something in the middle, such as a proxy or inspection device, is presenting its own certificate. Most certificate problems are one of those four.\n","date":"5 October 2026","externalUrl":null,"permalink":"/checking-tls-certificates-from-the-command-line/","section":"Posts","summary":"When a site throws a certificate warning, the browser tells you something is wrong but not much about what. A couple of commands get you the details in a few seconds.\n","title":"Checking TLS certificates from the command line","type":"posts"},{"content":"","date":"5 October 2026","externalUrl":null,"permalink":"/tags/security/","section":"Tags","summary":"","title":"Security","type":"tags"},{"content":"This is the first real post here: a short introduction, then a walk through how the site you\u0026rsquo;re reading is put together.\nWhat this blog is for # I\u0026rsquo;m a network security engineer. Most of my working day goes to firewall policy, segmentation and remote access, and to the change process around them. Outside of work I run a homelab that is part test bench and part household infrastructure, built on Proxmox, TrueNAS, Docker, pfSense and Tailscale, with Home Assistant and a growing set of self-hosted services on top.\nMost of what I learn comes from one of those two places, and most of it never gets written down. This blog is where I\u0026rsquo;ll write it down. Expect posts on:\nNetwork security practice: policy design, segmentation, and change management that holds up in production Homelab builds, including the ones that didn\u0026rsquo;t work the first time Self-hosting: what\u0026rsquo;s worth running yourself, and what it costs to do it properly I won\u0026rsquo;t be writing about my employer\u0026rsquo;s environment. Anything here is general practice or my own lab.\nHow this site is built # The whole thing runs on a small VPS with a couple of gigabytes of RAM. The stack is ordinary; a few of the decisions behind it are worth writing up.\nTwo apps, one domain # The front page at gilmore.tech is a single static HTML page served by a read-only nginx container. There\u0026rsquo;s no JavaScript, no trackers, and no third-party requests. A strict Content Security Policy enforces that, so nothing can quietly add them later. This blog is Ghost, running in its own container at /blog.\nBoth sit behind one reverse proxy (Nginx Proxy Manager), which routes by path: /blog goes to Ghost and everything else goes to the static page. Ghost is configured with /blog as its own base URL, so it builds every link, asset and feed path correctly without rewriting at the proxy.\nAccessibility is part of the build # The design uses frosted glass over soft colour, a style that can easily become hard to read. I held the site to WCAG 2.2 AA. Automated checkers can\u0026rsquo;t measure contrast through a blur, so I measured the pixels behind every piece of text at several screen sizes instead. On phones, text over the brightest part of the background fell well below the 4.5:1 minimum. A dark tint under the glass fixed it while keeping the look. The page has no motion, and the layout reflows down to a 320-pixel-wide screen.\nEverything is in git # The static page, its container config and this blog\u0026rsquo;s theme all live in a git repository, and I check the server\u0026rsquo;s copy against it after each change, so drift between the two gets noticed.\nWhat\u0026rsquo;s next # The next post will probably go deeper on one of these pieces. The real-IP problem behind a CDN is a common trap and deserves its own write-up. If there\u0026rsquo;s something you\u0026rsquo;d like to see covered, you can reach me on LinkedIn.\n","date":"5 October 2026","externalUrl":null,"permalink":"/hello-and-how-this-site-is-built/","section":"Posts","summary":"This is the first real post here: a short introduction, then a walk through how the site you’re reading is put together.\nWhat this blog is for # I’m a network security engineer. Most of my working day goes to firewall policy, segmentation and remote access, and to the change process around them. Outside of work I run a homelab that is part test bench and part household infrastructure, built on Proxmox, TrueNAS, Docker, pfSense and Tailscale, with Home Assistant and a growing set of self-hosted services on top.\n","title":"Hello, and how this site is built","type":"posts"},{"content":"","date":"5 October 2026","externalUrl":null,"permalink":"/tags/homelab/","section":"Tags","summary":"","title":"Homelab","type":"tags"},{"content":" Joe Gilmore Network security engineer, Washington State University ITS NODE\nThe Palouse, Pacific time I work on firewalls, segmentation and remote access for a university network, and I keep a lab at home to test the things I would rather break on my own time. This site is where I write down what either of those teaches me.\nWhat you will find here # Network security practice: policy design, segmentation, remote access, and the change process that keeps them honest. Homelab builds on Proxmox, TrueNAS and Docker, including the ones that did not work first time. Self-hosting, and what it actually costs to run a service yourself. Start here The Eight Second Budget: why long messages silently cost my agent its memory Checking TLS certificates from the command line Hello, and how this site is built What I do Centrally managed next-generation firewalls across several campuses: policy, segmentation and remote access VPN. Routing and switching across campus and datacenter. Planning and review for infrastructure changes.\nThe lab A Proxmox cluster, a NAS, and a rack of self-hosted services that exist so I can learn what production feels like without a maintenance window.\nProxmox · TrueNAS · Docker · pfSense · Tailscale · Home Assistant · Zigbee · Authentik\nOff the clock # Magic: The Gathering, video games, gardening, camping, and automating the house further than is strictly reasonable.\nElsewhere # LinkedIn · RSS · All posts\nThis site is a static build generated by Hugo and served from a small VPS behind Cloudflare. No trackers, no cookies, no comment section.\nLast updated December 2026\n","externalUrl":null,"permalink":"/about/","section":"Notes from the firewall and the homelab.","summary":" Joe Gilmore Network security engineer, Washington State University ITS NODE\nThe Palouse, Pacific time I work on firewalls, segmentation and remote access for a university network, and I keep a lab at home to test the things I would rather break on my own time. This site is where I write down what either of those teaches me.\n","title":"About","type":"page"}]