Daily · every morning
One note a day
A short note every morning, in three kinds: a real problem broken down the way I would build it, a field note on something new in AI engineering, and one concept explained properly.
Notes (44)
- 2026-11-29No. 044ConceptThe back button is free speed until an unload handler breaks itThe back/forward cache restores a page instantly from memory, but the browser decides eligibility silently, and a single analytics listener can turn every back navigation into a full reload.
- 2026-11-28No. 043ConceptINP waits for the next paint, so yield before the heavy workInteraction to Next Paint does not measure how fast your handler runs. It measures how long the user stares at an unchanged screen, which changes where the fix has to go.
- 2026-11-27No. 042Problem breakdownGift receipts lag because donations land in too many placesA small nonprofit rarely loses a donor over a single bad interaction. It loses them in the quiet weeks between a gift arriving and anyone noticing it needs a correct, timely acknowledgment.
- 2026-11-26No. 041ConceptAn agent on a service account is a confused deputy by defaultWhen an agent calls tools with its own broad credentials, every user inherits the agent's authority. The fix belongs at the tool boundary, not in the system prompt.
- 2026-11-25No. 040ConceptAn MCP tool description is code, so pin it like a dependencyEvery tool an agent connects to writes part of its prompt, and the server can rewrite that part after you approved it. Hashing and pinning tool definitions turns a silent change into a reviewable diff.
- 2026-11-24No. 039Problem breakdownHotel room block penalties are decided weeks before the eventConference organisers pay attrition fees for rooms their own attendees booked somewhere else. The fix is a reconciliation job run before the review dates, not a better spreadsheet.
- 2026-11-23No. 038ConceptPropagate deadlines so servers stop work nobody is waiting forPer-hop timeouts protect each caller but leave every service downstream finishing requests that were abandoned long ago. Passing one shrinking deadline through the call chain turns that waste into early, cheap rejection.
- 2026-11-22No. 037ConceptA liveness probe that checks dependencies restarts healthy podsA health check that pings the database looks responsible until the database slows down and the orchestrator restarts every replica at once. Liveness and readiness answer different questions, and mixing them turns a partial outage into a total one.
- 2026-11-21No. 036Problem breakdownLate interview scorecards stall offers at small companiesAt small companies, hiring often slows down after the interviews, not during them. Interviewers leave scorecards blank, the debrief runs on memory, and the candidate waits; the fix belongs mostly to a clock, with a model kept away from the verdict.
- 2026-11-20No. 035ConceptAdding an enum value is a breaking change for most clientsEvery enum in an API response is a promise about which strings can appear. Servers treat new values as additive, while many clients treat them as a parse error, and the gap shows up as an outage in an app version you cannot recall.
- 2026-11-19No. 034Field noteGPT-6.2 drops reasoning when your agent edits its own historyGPT-6.2 Astra and Sol change how the Responses API treats reasoning items and the top-level
instructionsfield. Harnesses that compact history, switch models mid-session or keep their system prompt ininstructionswill lose reasoning context and cache hits without a single error. - 2026-11-18No. 033Problem breakdownCo-op members dispute payouts they cannot trace to a deliveryProducer co-operatives lose member trust when a payout arrives as one number with unexplained deductions. The fix is a deterministic ledger that links every rupee back to a weighed, tested delivery, not a smarter chatbot.
- 2026-11-17No. 032ConceptBitemporal tables answer what was true and what you knew thenMost tables overwrite the past, so they cannot explain a report that was correct when it ran. Tracking valid time and recorded time separately fixes that, at a cost worth understanding before you pay it.
- 2026-11-15No. 031Problem breakdownParts used on the job often never reach the invoiceIn small repair and install shops, the part pulled from the van is easy to forget by the time the invoice is written. The fix is less about better forms and more about a quick capture step and a reconciliation the office actually trusts.
- 2026-11-14No. 030ConceptQuorum overlap alone does not make reads linearizableR + W > N guarantees that a read touches a replica holding the latest acknowledged write. It does not guarantee that two readers agree on what is latest, and that gap is where stale reads come from.
- 2026-11-13No. 029Field noteTwo vLLM advisories let one request's output leak into anotherTwo vLLM advisories published on 9 November describe output crossing between concurrent requests, and dependency scanners will not flag either. If several users or agents share one inference server, your isolation model has a gap below the application layer.
- 2026-11-12No. 028Problem breakdownCustomers who reported a bug rarely hear when it is fixedSupport links the ticket to an engineering issue, engineering ships the fix, and the customer who reported it is never told. The gap is a missing join between two systems, and one builder can close it.
- 2026-11-11No. 027ConceptAn LLM judge is a classifier, so score it before you trust itA model grading your model is a measuring instrument with its own error rates. Until you know them, a rising eval score can mean your system got better or your judge got easier to fool.
- 2026-11-10No. 026ConceptA single-run pass rate hides flaky agents, so measure pass^kTwo agent versions can share the same eval score while one fails predictably and the other fails at random on every task. Running each task several times and asking whether all of them pass separates the two.
- 2026-11-09No. 025Problem breakdownItem-not-received chargebacks are lost to silence, not to fraudSmall sellers lose many card disputes they could have won because the evidence is scattered across four tools and the deadline passes first. The fix is mostly plumbing, with a narrow and well-fenced job for a model.
- 2026-11-08No. 024ConceptAgent memory that only appends will remember both answersLong-term memory for agents is usually a vector store that keeps growing, and similarity search has no idea which of two contradictory facts is still true. The fix is to treat memories as dated claims that newer claims can retire.
- 2026-11-07No. 023Field noteAgent SDK hooks can now fail closed, so make it your defaultClaude Code 2.1.317 lets a failing Agent SDK hook block the action it guards instead of waving it through. A guard that disappears when it crashes was never a guard, and this changes how policy hooks should be written and tested.
- 2026-11-06No. 022Problem breakdownBookkeepers lose month-end to the uncategorized transaction chaseThe slowest part of a freelance bookkeeper's close is often not reconciliation but waiting for clients to explain charges they barely remember. Making that question cheap to answer is a small, buildable system with a clear line between model and code.
- 2026-11-05No. 021ConceptSplit risky agent tools into a plan step and an apply stepA tool that mutates the world in one call asks the model to be right before it has seen the consequences. Splitting it into plan and apply gives the agent, and any human gate, a concrete diff to judge, plus a way to catch stale state.
- 2026-11-04No. 020ConceptA tool error is the agent's next prompt, so write it like oneWhen a tool call fails, the error text is the only thing the model has to decide what to do next. Most tool errors are written for a human with a debugger, and agents respond to them by guessing.
- 2026-11-03No. 019Problem breakdownSecurity deposit disputes are lost at move-in, not at move-outSmall landlords rarely lose deposit disputes over the damage itself. They lose because the move-in evidence is scattered, the comparison is done from memory, and the statutory clock runs out while they assemble it.
- 2026-11-02No. 018ConceptAn agent that can edit the tests can make any change passA green test run only means something when the code and the check that judges it were not shaped by the same hand. Coding agents work toward a stop signal, and the cheapest path to green is often the test file.
- 2026-11-01No. 017Field noteAgents in GitHub Actions make the compiled YAML the real contractGitHub Agentic Workflows is now generally available, so coding agents can run from triggers with nobody watching. The Markdown is the pitch, but the Actions YAML it compiles to is what actually runs.
- 2026-10-31No. 016Problem breakdownMakeup lessons leak money when the credit ledger lives in chatSmall tutoring centres promise makeup lessons for missed sessions, then track those promises across chat threads and a spreadsheet. The fix is a boring ledger with a narrow language layer on top, not a scheduling chatbot.
- 2026-10-30No. 015ConceptStale-while-revalidate moves cache misses off the request pathPlain
max-agemakes some unlucky user pay origin latency every time a cached response expires.stale-while-revalidatehands that cost to a background fetch, but it also quietly changes how stale your content can get. - 2026-10-29No. 014Field noteA 2B model that fits in 1 GB moves the router onto the deviceLiquid AI's LFM3 family reportedly ships six small open-weight models with on-device formats on day one. The benchmark average is the least interesting part; the deployment story is what changes agent design.
- 2026-10-28No. 013Problem breakdownJob shop quotes stall at RFQ intake, not at pricingIn a small CNC or fabrication shop, much of the estimator's time on a quote goes to reading the packet before any pricing starts. That intake step is where one builder can help, and where a model should read but never price.
- 2026-10-27No. 012ConceptA vector index forgets who was allowed to read each documentRetrieval-augmented systems copy content out of systems that enforce access control and into an index that does not. Permission-aware retrieval puts the check back where it belongs: in the query, before anything reaches the model.
- 2026-10-26No. 011ConceptAn agent with private data, untrusted input and egress will leakPrompt injection is not a filtering problem you can tune away. It becomes a data leak when one agent holds three capabilities at once, and the defence is to design so it never does.
- 2026-10-25No. 010Problem breakdownFailed first deliveries start in the address notes fieldA route optimizer can sequence stops well and still send a driver to the wrong door. For small local delivery operators, the missing piece is learned, structured knowledge about each drop-off point, not better routing.
- 2026-10-24No. 009ConceptA lease without a fencing token is only a polite suggestionDistributed locks with expiry protect you until a process pauses longer than its lease and wakes up still believing it owns the resource. Fencing tokens move the safety check to the place where the damage would happen.
- 2026-10-23No. 008ConceptRetries multiply across layers, so budget them instead of countingA retry count of three looks harmless in one service and becomes dozens of attempts per user request once it is stacked across a call chain. A retry budget caps retries as a share of real traffic, so a slow dependency gets breathing room instead of a flood.
- 2026-10-22No. 007Problem breakdownSupplier price creep hides in invoices nobody reads line by lineIndependent restaurants lose margin to quiet changes in distributor pricing, pack sizes and substitutions buried in paper invoices. A small system that reads invoices with a model and checks them with arithmetic can surface those changes every week.
- 2026-10-21No. 006ConceptAn idempotency key is a contract, not a deduplication cacheA retry after a timeout is the most ordinary request in a distributed system, and the most dangerous one for any endpoint that creates something. Idempotency keys make that retry safe, but only if the server treats the key as part of the write itself.
- 2026-10-20No. 005ConceptOffset pagination skips rows when the data moves underneath itPage two of a list endpoint is only correct if nothing changed since page one. Cursor pagination turns the position into a value from the data rather than a count of rows, and that shift removes a class of silent bugs.
- 2026-10-19No. 004Problem breakdownThe morning voicemail backlog is a clinic's quietest revenue leakSmall clinics lose the first part of every day to replaying voicemails by hand, and late-heard cancellations become empty slots. This problem fits one builder, as long as the model drafts and the front desk decides.
- 2026-10-18No. 003ConceptThe transactional outbox turns a dual write into a single commitWriting to your database and publishing to a broker are two systems with no shared transaction, so one of them will eventually disagree with the other. The outbox pattern fixes the disagreement, but only if you respect what it does not promise.
- 2026-10-17No. 002ConceptWrite skew: the race that snapshot isolation lets throughSnapshot isolation stops dirty reads and lost updates, so it feels safe. It still lets two correct transactions combine into a state that breaks your invariant, and no single row looks wrong.
- 2026-10-16No. 001Field noteParallel coding agents make sandbox policy and worktrees a design concernGitHub's October 9 Copilot roundup makes local sandboxing free and generally available, and adds tooling for running many agent sessions in separate worktrees. Running agents in parallel is becoming the default, so the boundaries and the cleanup now need real design.