{"version":1,"articles":[{"id":"blog-your-ai-feature-works-in-the-demo-now-what","title":"Your AI Feature Works in the Demo. Now What?","url":"https://www.vladimirprotein.com/blog/your-ai-feature-works-in-the-demo-now-what","published":"2026-10-29T08:44:28Z","content":"The demo goes well. You ask the question you rehearsed, the answer arrives, and someone says, \"We should put this in the product.\" Fair enough. It is a good demo.\n\nThen a real user pastes in a small novel, asks three questions at once, and closes the tab halfway through.\n\nImagine a support assistant that reads documentation, drafts replies, and can eventually send them. Getting a sensible draft is a useful milestone. Deciding what happens when the model stalls, the documentation disagrees, or the send request times out is the rest of the feature.\n\nThat is the part I would want to review before celebrating the launch.\n\nA loading animation is not a failure strategy. Give the whole operation a deadline, including retrieval, model calls, tools, and retries. A timeout on one HTTP call is not automatically a limit on the entire workflow.\n\nThe right duration depends on the task and measured latency. An interactive draft and an overnight document job shouldn't inherit the same number because somebody found it in an example.\n\nStreaming can show progress sooner; it doesn't guarantee that the job will finish. When the deadline runs out, preserve the user's input and offer an honest next step: try again, use the ordinary search, or continue without the assistant.\n\nA retry can recover from a temporary failure. It can also ask an overloaded service to do even more work. Amazon's guidance on timeouts, retries, and jitter (https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/) explains why retries need limits, increasing delays, and randomness to avoid synchronized bursts.\n\nCheck the layers, not just your own loop. In a hypothetical stack with three nested layers, each allowing three total attempts, one request can produce up to 27 calls to the final dependency. That is arithmetic, not a performance benchmark, but it is a useful reason to inspect SDK defaults.\n\nChoose where retries belong and keep them inside one overall attempt and time budget. Retrying an invalid input won't repair it. Retrying a model because you disliked its answer is a different policy again.\n\nActions need extra care. If our assistant times out while sending a reply, the message may already have been sent. Where supported, use a stable operation ID and a durable deduplication record; reconcile uncertain outcomes before repeating them. A disconnected client is not proof that the server did nothing.\n\nThe model endpoint returning successfully tells us about transport, not whether the advice is correct. Valid JSON is helpful. Valid JSON containing an invented refund policy is still a problem.\n\nBuild a small evaluation set from the job the feature is meant to do. Include straightforward requests, contradictory documents, missing information, and examples where the right answer is to ask a question. Grade the outcome, not whether the wording matches your favourite response.\n\nAnthropic's 2026 guide to agent evaluations (https://www.anthropic.com/research/demystifying-evals-for-ai-agents) discusses combining evaluation methods and inspecting what an agent actually did, rather than relying on a reassuring final message. Repeat variable tasks and calibrate automated judgements with human review. A single good run makes a nice screenshot.\n\nI'd keep \"the evidence doesn't support an answer\" separate from \"the provider is unavailable\". One needs a careful response; the other needs recovery. And attaching a citation is not, by itself, that evidence check (/blog/a-citation-isnt-proof).\n\nThe attractive price of one model call can become less attractive after retrieval, a growing conversation, tool calls, retries, and a second model checking the first. Track cost per completed useful task, with failed attempts included.\n\nSet input and output limits, bound tool steps and concurrency, and enforce per-user usage rules on the server. If several workers share a budget, reserve it atomically; otherwise they can all approve spending the same remaining allowance. Rate limits and total spending limits solve different problems.\n\nAlso check what your billing settings actually enforce. Google Cloud distinguishes alerts-only budgets from spend-cap budgets (https://docs.cloud.google.com/billing/docs/how-to/budgets); alerts alone don't stop spending, and spend-cap support depends on the service. An email saying the bill is high is useful. It is not an application-level off switch.\n\nLetting an assistant draft a support reply and letting it send one are different capabilities. Keep that distinction in the tools and credentials, not only in an instruction telling the model to be careful.\n\nOWASP's Excessive Agency guidance (https://genai.owasp.org/llmrisk/llm062025-excessive-agency/) recommends limiting functionality and permissions, enforcing authorization downstream, and requiring approval for high-impact actions. The model should not decide which customer's records the current user is allowed to read.\n\nFor our assistant, that means checking the signed-in user's access on every tool call, keeping retrieved documents as untrusted content, and checking the final recipient and message before an approved send. Read-only access is a good starting point when writing is not yet necessary.\n\nI would want to trace a failed task across retrieval, model calls, validation, and tools. Record versions, timings, token usage, and failure categories. Don't default to storing every prompt and customer document indefinitely just because debugging might be easier.\n\nWatch tail latency as well as averages. Roll changes out gradually, compare useful completion rates and costs, and keep a known working version available. A prompt edit or model upgrade deserves regression checks, just like a code change.\n\nFinally, make it possible to disable the assistant without disabling the product. Our support team should still be able to find the documentation and send a reply themselves.\n\nA good demo shows the feature can work. Before shipping, I want to know what the user gets on the day it doesn't."},{"id":"blog-a-citation-isnt-proof","title":"A Citation Isn't Proof: The Trust Problem in AI Search","url":"https://www.vladimirprotein.com/blog/a-citation-isnt-proof","published":"2026-10-29T08:27:02Z","content":"The answer looks good. A neat paragraph, a confident recommendation, three little source numbers. You were about to open another tab, but honestly, this seems to cover it.\n\nThen you click one of the links.\n\nThe page is real. The publisher is reputable. There is just one awkward detail: it doesn't quite say what the answer says.\n\nMaybe it describes an older product. Maybe a cautious \"can help\" has become a cheerful \"will fix\". Or the source supports half the sentence, while the other half has apparently invited itself along.\n\nThis is the citation problem that interests me. A made-up reference is an obvious failure. A real reference doing a job it cannot do is easier to miss.\n\nTake a hypothetical software comparison. A vendor's documentation says its platform encrypts stored data. The AI answer says the platform offers end-to-end encryption on every plan, and cites that documentation.\n\nThe link works. The claim doesn't. Encryption at rest is not end-to-end encryption, and \"every plan\" needs evidence of its own. The answer has quietly made two extra promises.\n\nThis isn't just a theoretical concern. In a 2023 study of four generative search engines (https://arxiv.org/abs/2304.09848), researchers found that 51.5% of generated sentences were fully supported by citations. Separately, 74.5% of citations supported their associated sentence. Those are different measures, and historical results for the tools tested, not a verdict on today's products.\n\nWhat they demonstrate is the gap between an answer having references and those references doing useful work. Adding another source number does not necessarily close it.\n\nThere are two questions I would ask separately: does this source support this claim, and is the claim itself reliable?\n\nAn answer can faithfully repeat an outdated page. It can accurately summarize a vendor's marketing claim without establishing that the claim holds up. And a statement can happen to be true while its citation provides no evidence for it.\n\nThe ALCE research benchmark, published in 2023 (https://arxiv.org/abs/2305.14627), treats fluency, correctness, and citation quality as separate dimensions. That separation makes sense. We wouldn't accept clean formatting as proof that a database query returned the right rows. A well-written answer deserves the same suspicion.\n\nMy simplest check is this: if someone challenged this sentence, which exact passage would I point them to? \"Somewhere on this website\" is not a great answer.\n\nIn March 2025, Columbia's Tow Center tested eight AI search tools on something fairly specific: given an excerpt from a news article, identify the article and its publication details.\n\nAcross 1,600 queries, the tools gave incorrect answers more than 60% of the time. The researchers also observed fabricated links and references to copied or syndicated articles. Tow Center, AI Search Has a Citation Problem (https://www.cjr.org/tow_center/we-compared-eight-ai-search-engines-theyre-all-bad-at-citing-news.php)\n\nThat does not mean 60% of all AI answers are wrong. This was a particular attribution task, with particular tools, at a particular time. Using it to make a sweeping claim would be a slightly embarrassing thing to do in this article.\n\nIt does make a polished reference list harder to take at face value. A system can sound entirely sure about where something came from while getting the attribution wrong.\n\nIf I were reviewing an AI search feature, \"includes citations\" would be the beginning of the test plan, not the acceptance criterion.\n\nI'd break important sentences into individual claims and check the supporting passages. I'd include old documentation, conflicting sources, and questions where the evidence is incomplete. In particular, I'd watch what happens to words like may, up to, and in this experiment. Those small qualifications often carry most of the meaning.\n\nI'd also want the interface to make checking practical. Send readers to the relevant passage where possible. Keep disagreements visible. Distinguish a source's observation from the answer's inference. A pile of links at the bottom leaves the reader doing the detective work.\n\nAnd I'd test whether the system can leave something out. An answer with one fewer unsupported detail is usually more useful than a complete-looking answer that needs an apology later.\n\nThere is an inconvenient catch to \"just check the sources\": most people came to the answer because they didn't want to open ten tabs.\n\nIn its analysis of browsing data from 900 US adults, Pew Research Center found that users clicked a link inside a Google AI summary in just 1% of visits to pages containing a summary. That doesn't establish whether people trusted the answers or checked them elsewhere. It does show that clicking through wasn't the usual next step. Pew Research Center, July 2025 (https://www.pewresearch.org/short-reads/2025/07/22/google-users-are-less-likely-to-click-on-links-when-an-ai-summary-appears-in-the-results/)\n\nFor consequential decisions, I would still open the original, check its date, and find the passage behind the claim. But a useful AI search product should reduce that work, not outsource its own quality control to whoever happens to be reading.\n\nKeep the links. Make them worth clicking. And before attaching one to a sentence, check that it can actually carry the weight."},{"id":"blog-deleting-data-is-harder-than-saving-it","title":"Deleting Data Is Harder Than Saving It","url":"https://www.vladimirprotein.com/blog/deleting-data-is-harder-than-saving-it","published":"2026-10-27T09:19:06Z","content":"The row is gone. The API returned success. The button did its job.\n\nA minute later, the same information turns up in search.\n\nNothing particularly exotic has happened. The database knew about the deletion. The search index didn't. Somewhere else, a cache is still having a perfectly normal day.\n\nImagine a support ticket with an attachment and an automatically generated summary. Saving it might involve one straightforward request. Deleting it means finding out how many systems have been making themselves useful with copies of it.\n\nThis is an engineering problem, not a guide to legal retention periods. What a product must retain, and for how long, needs its own agreed policy.\n\nStart with the database. Even there, \"deleted\" doesn't necessarily mean that every old byte has immediately disappeared.\n\nPostgreSQL's vacuuming documentation (https://www.postgresql.org/docs/18/routine-vacuuming.html) explains that an update or delete leaves old row versions behind until they can be reclaimed. That supports concurrent transactions; it isn't the application secretly ignoring your query. Reclaiming space is also not the same promise as securely sanitizing every historical storage copy.\n\nAt the application level, a soft-delete flag has another meaning again. It can be useful for recovery, but the record is still there. Every relevant read path needs to honour that state, including the export someone wrote six months after the original endpoint.\n\nOur ticket may have an attachment in object storage, a cached preview, a search document, an analytics extract, and a summary. Deleting the ticket row doesn't send an instruction to all of those places by magic.\n\nI'd want a data map before a clever deletion script: where is the original, what is copied, what is derived, and which identifiers connect them? If a summary keeps no reference to its source, finding it later becomes detective work.\n\nCopies outside the product's control need a separate answer. An exported file somebody downloaded cannot be recalled just because our endpoint returned 200. The deletion promise needs to describe the boundary the system can actually enforce.\n\nSuppose we delete the row, then publish an event asking other services to clean up. The process crashes between those two steps. The primary data is gone; the cleanup instruction never leaves.\n\nThe transactional outbox pattern (https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/transactional-outbox.html) addresses this dual-write problem by recording the database change and the event in the same transaction. A separate worker delivers committed events. Consumers still need to handle duplicates, and ordering still matters. The pattern makes the instruction durable; it doesn't prove every destination has finished.\n\nI'd track acknowledgement from each destination, retry failed work, and surface jobs that stop making progress. I'd also guard against an old update arriving after deletion and rebuilding the search entry. A per-record version or generation check can help reject stale work; a timestamp alone isn't a complete ordering strategy.\n\nA backup taken before the deletion can contain the data we just removed. That is rather the point of a backup, which makes it an awkward place to discover that our deletion design ends at the production database.\n\nElastic's snapshot restore documentation (https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/restore-snapshot) describes recovering indices and data streams after deletion. Restoring an older snapshot without reconciling later deletion decisions can therefore bring unwanted records back into service.\n\nOne approach is to restore into an isolated environment, apply a protected deletion ledger kept independently of the restored snapshot, and verify the result before reopening access. That ledger must itself be minimized, access-controlled, and retained under a defined policy; identifiers aren't automatically anonymous.\n\nObject storage has its own recovery rules. With Cloud Storage soft delete (https://docs.cloud.google.com/storage/docs/soft-delete), deleted objects remain recoverable during the configured retention period. Changing the policy later doesn't retroactively shorten the period for objects already soft-deleted. Recovery settings and deletion promises need to agree.\n\nThe ticket's summary might contain the customer's name and the problem they reported. A retrieval system may have split the attachment into chunks and built embeddings. None of that becomes harmless merely because it is no longer stored as the original file.\n\nKeep lineage from sources to derived outputs. Remove affected retrieval entries, and rebuild or remove summaries that depend on deleted material. If a summary combines several tickets, deleting one input may require regenerating the summary from the remaining permitted inputs.\n\nI wouldn't describe removing an index entry as making a model \"forget\". Retrieval, stored conversation history, provider retention, and model training are different questions. The system needs to establish which of them applies rather than bundle them into one reassuring sentence.\n\n\"Deletion requested\", \"removed from active use\", and \"all applicable retention work complete\" are useful distinctions. They aren't interchangeable success messages, and there isn't one universal timeline that fits every system.\n\nI'd test the less photogenic cases: a consumer offline during deletion, a duplicate event, an old update arriving late, a failed cache invalidation, and a backup restored after the request. Then I'd check that the supposedly deleted information doesn't quietly reappear.\n\nLogs deserve a look, too. Copying the full deleted payload into a cleanup error message creates another copy to manage. A bounded operational record can show what happened without reproducing the content we were trying to remove.\n\nSaving data gives it an address. Deleting it properly means understanding everywhere it travelled."},{"id":"blog-you-dont-need-microservices-you-need-boundaries","title":"You Don't Need Microservices. You Need Boundaries.","url":"https://www.vladimirprotein.com/blog/you-dont-need-microservices-you-need-boundaries","published":"2026-10-25T16:38:25Z","content":"The architecture diagram looks excellent. Six services, a message broker, an API gateway. Everything has its own colour. Then someone asks what happens when a customer cancels an order halfway through payment.\n\nSuddenly, the arrows need a meeting.\n\nThis is the part of the microservices conversation I find most interesting. We talk about how many pieces a system should have before agreeing on what each piece is responsible for. Moving code into another process feels like progress because you can point at it. Deciding who owns a business rule is less photogenic.\n\nMy default would be to get the boundaries right first. Sometimes that leads to microservices. Often it leads to a much better monolith.\n\nSuppose changing a discount rule breaks checkout, editing a customer record affects invoicing, and nobody knows which tables a feature is allowed to update. That is a coupling problem. Giving checkout and invoicing separate repositories does not, by itself, resolve it.\n\nIf the new services still reach into each other's tables and must be released together, you have kept the coordination problem and added network failures. The architecture now requires more infrastructure to remain equally confusing.\n\nMartin Fowler's Monolith First (https://martinfowler.com/bliki/MonolithFirst.html) makes a useful point: good service boundaries are difficult to identify early, and moving responsibilities between services is harder than moving them inside one application. His argument is experience-based guidance, not proof that every new system must begin as a monolith. I take it as a reason to leave room to learn.\n\nConsider a hypothetical shop. Pricing decides what a basket costs. Orders records what the customer agreed to buy. Payments tracks attempts to collect the money. These are responsibilities, not a requirement for three servers.\n\nOrders should ask pricing for a quote through an explicit interface, then retain the agreed amount. It should not reconstruct discount logic by rummaging through pricing's internal tables. Payments should expose the state of a payment attempt, rather than invite every caller to interpret a provider's raw response.\n\nThat is a useful boundary even when every call is an ordinary function call in one process. It gives you somewhere to put a rule, someone to review changes to it, and a contract you can test.\n\nThe enforcement matters. Define allowed imports, keep implementation details private, assign ownership of writes, and check those rules in CI. A folder called billing is a suggestion. A failing dependency check is a constraint. Integration tests still need to prove the modules work together.\n\nThis is not a small-project-only idea. In its 2019 account of deconstructing its monolith (https://shopify.engineering/deconstructing-monolith-designing-software-maximizes-developer-productivity), Shopify described pursuing stronger modularity without multiplying deployment units. That historical case is useful because it separates two decisions people often bundle together: how code is organised and how it is deployed.\n\nInside a single database transaction, related writes can succeed or fail together. Across independently managed stores, the same business operation needs a more deliberate story. If payment succeeds but order confirmation fails, which state is authoritative? Can a retry charge twice? What should the customer see while you reconcile it?\n\nAn event does not make those questions disappear. It changes when you have to answer them.\n\nAWS's guidance on sagas (https://docs.aws.amazon.com/prescriptive-guidance/latest/modernization-data-persistence/saga-pattern.html) describes coordinating distributed transactions through local steps and compensating actions, while warning about debugging and implementation complexity. A refund, for example, is a new business operation; it is not a time machine that erases a charge.\n\nThere are good reasons to accept this work. But accepting it accidentally, because a module looked large, is an expensive way to learn distributed systems.\n\nImagine video processing consuming resources that a checkout request needs. An independently scaled worker or service may give you a genuinely useful isolation boundary. Or imagine a mature capability with a dedicated team whose releases are repeatedly blocked by unrelated changes. Independent deployment could address a measured delivery problem.\n\nThose are concrete benefits. \"We might have millions of users one day\" is a prediction, not yet a diagnosis.\n\nBefore extracting anything, I would want to name the owner, the data it controls, the compatibility rules, the failure behaviour, and the improvement we expect to measure. I would also want to know whether callers can tolerate the dependency being unavailable. A separate process does not automatically provide failure isolation if every request still waits for it.\n\nFowler's microservice prerequisites (https://martinfowler.com/bliki/MicroservicePrerequisites.html) emphasise provisioning, monitoring, rapid deployment, and development-operations collaboration. Those capabilities are valuable for monoliths too. With more independently running pieces, they become harder to do without.\n\nPick a responsibility that causes recurring confusion. Give it a small public interface. Stop new callers from bypassing it. Move business rules behind it in manageable changes, and document the invariants that must remain true. Then watch whether ordinary changes become easier to make and safer to review.\n\nDo not disguise a rewrite as preparation for a possible extraction. A module can remain in-process indefinitely and still justify the work. Nor does clean packaging make a later extraction free: data migration, latency, security, and operational ownership still need real engineering.\n\nIf you eventually split it out, you should be able to explain the benefit without pointing at the diagram.\n\nThe useful question is not \"How many services should we have?\" It is \"What can change here without surprising everyone else?\" Get a better answer to that, and the deployment decision usually becomes much less theatrical."},{"id":"blog-modern-engineering-with-ai","title":"Modern Engineering With AI: The Work Is Moving","url":"https://www.vladimirprotein.com/blog/modern-engineering-with-ai","published":"2026-10-22T15:28:35Z","content":"Give an AI coding agent a reasonably clear task and it can produce an implementation, write tests, and explain why everything should work. Sometimes it even does.\n\nThe interesting part starts when you have to decide whether to ship it.\n\nThat decision involves requirements, dependencies, security, awkward customer behaviour, and a system that existed long before the prompt. As AI takes on more implementation work, those responsibilities deserve a larger share of our attention. This has consequences for both developers and QA engineers, especially for teams organised around a familiar handoff: development builds it, QA checks it, somebody approves the release.\n\nBefore rewriting everyone’s job description, though, it helps to look at what the research actually says.\n\nA study covering 4,867 developers across Microsoft, Accenture, and another large company found a roughly 26% increase in completed tasks with access to an AI coding assistant. Less experienced developers saw greater gains. That is meaningful evidence of productivity improvement, although completed tasks tell us only part of the story about software quality and maintenance. Microsoft Research, 2025 (https://www.microsoft.com/en-us/research/publication/the-effects-of-generative-ai-on-high-skilled-work-evidence-from-three-field-experiments-with-software-developers/)\n\nIn a different setting, METR studied 16 experienced open-source developers working on their own repositories. With early-2025 AI tools, they took 19% longer, despite believing they had become faster. These were familiar, mature codebases, a very different environment from an isolated coding exercise. METR study, 2025 (https://arxiv.org/abs/2507.09089)\n\nThat result also needs its expiry label. In February 2026, METR said newer tools probably offered greater speedups, but selection bias made its follow-up estimates unreliable. Treating the earlier slowdown as a permanent verdict on AI would be as misleading as promising every team a fixed productivity multiplier. METR update, 2026 (https://metr.org/blog/2026-02-24-uplift-update/)\n\nMy reading is that the bottleneck moves depending on the work. Generating an implementation can be quick. Establishing that it fits the system can still take most of the afternoon.\n\nFor developers, this puts more weight on defining the task before delegating it. Consider a request to “add retries” to a payment operation. An implementation might look perfectly reasonable while allowing a customer to be charged twice. The important decisions involve which failures are retryable, how duplicate requests are handled, and what happens when the payment succeeds but the response never arrives.\n\nSomeone has to recognise those questions before approving the code. That requires enough understanding to challenge the implementation, inspect its dependencies, and debug it when the explanation sounds more convincing than the behaviour.\n\nQA faces a related change. Writing test scripts is one part of quality engineering, and AI can help with it. The harder responsibility is deciding what evidence would justify confidence in a release.\n\nSuppose the requirement says an account should be locked after five failed login attempts. An implementation gets the boundary wrong. If generated tests simply reproduce that implementation’s assumptions, the suite can pass while the requirement remains broken. Asking the same tool for more tests may give you more agreement.\n\nThere is useful research beyond test generation itself. Meta’s Automated Compliance Hardening work uses LLMs to introduce targeted faults into code and generate tests that detect them. This is mutation testing: deliberately break something, then check whether the tests notice. It provides evidence that a test can catch a particular failure, although it cannot prove the whole system correct. Meta Engineering, 2025 (https://engineering.fb.com/2025/09/30/security/llms-are-the-key-to-mutation-testing-and-better-compliance/)\n\nThat suggests a valuable direction for QA: stronger risk analysis, better test data, exploratory testing, and independent checks of expected behaviour. AI can help execute and expand that work. The judgement about what matters still needs an accountable owner.\n\nI expect the boundary between development and QA to become less rigid. Developers can take more responsibility for verification during implementation. QA engineers can influence requirements and system design earlier, when an ambiguous rule is cheaper to resolve. Specialist testing expertise remains useful, particularly where failures involve security, money, accessibility, or complicated interactions between services. The research above does not establish that either profession disappears.\n\nThere is also a learning problem we should take seriously. In an Anthropic experiment involving 52 mostly junior engineers learning an unfamiliar Python library, the AI-assisted group averaged 50% on a subsequent quiz, compared with 67% without AI. The largest gap was in debugging. Participants who used AI to ask conceptual questions or understand generated code showed stronger learning patterns. This was a short experiment, not a prediction of anyone’s career, but it raises a practical concern. Anthropic research, 2026 (https://www.anthropic.com/research/AI-assistance-coding-skills)\n\nWe cannot expect people to supervise systems they have never learned to understand. Teams need room for explanation, debugging, and deliberate practice alongside faster delivery.\n\nThe organisational changes matter just as much. DORA’s 2025 research describes AI as amplifying existing strengths and weaknesses. Its guidance on small batches is particularly relevant: generating a large change quickly does little good if reviewing and testing it becomes unmanageable. DORA report (https://dora.dev/research/2025/dora-report/), small-batch guidance (https://dora.dev/capabilities/working-in-small-batches/)\n\nFor me, a sensible workflow starts with clear acceptance criteria and known risks. Use AI to explore and implement. Keep changes small enough to inspect. Test against the intended behaviour, observe the release, and feed actual failures back into the next change.\n\nI would judge progress by how reliably a team solves problems and how much rework follows a release. The percentage of code generated by AI would be a fairly distant concern.\n\nModern engineering with AI demands a broader kind of ownership. You may write less of the implementation yourself. You still need to understand what you are putting into the world, and be able to explain why it deserves to run."}]}