<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Keshavan Thiagaraja</title>
    <description>The latest articles on DEV Community by Keshavan Thiagaraja (@itimpress).</description>
    <link>https://dev.to/itimpress</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4225189%2Fe6eb696d-d74f-4f76-aac1-c3ba390a324a.png</url>
      <title>DEV Community: Keshavan Thiagaraja</title>
      <link>https://dev.to/itimpress</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/itimpress"/>
    <language>en</language>
    <item>
      <title>Design a document deletion test before adding a chatbot's memory</title>
      <dc:creator>Keshavan Thiagaraja</dc:creator>
      <pubDate>Sun, 08 Nov 2026 15:42:36 +0000</pubDate>
      <link>https://dev.to/itimpress/design-a-document-deletion-test-before-adding-a-chatbots-memory-2n38</link>
      <guid>https://dev.to/itimpress/design-a-document-deletion-test-before-adding-a-chatbots-memory-2n38</guid>
      <description>&lt;p&gt;Before adding persistent document memory to an assistant, I would ask the team to demonstrate how a document leaves the system. Importing a file is only one half of its lifecycle.&lt;/p&gt;

&lt;p&gt;This is a proposed engineering test plan, not a client case study or a claim that any product has passed it. The examples are synthetic. Nothing here establishes a legal retention policy for your business.&lt;/p&gt;

&lt;h2&gt;
  
  
  Draw the data path first
&lt;/h2&gt;

&lt;p&gt;For a hypothetical internal document assistant, I would inventory every place that can hold a copy or a derivative:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Store&lt;/th&gt;
&lt;th&gt;What to check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Uploaded files&lt;/td&gt;
&lt;td&gt;Original file, temporary copies and failed uploads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parsed text&lt;/td&gt;
&lt;td&gt;Extracted pages, OCR output and intermediate files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retrieval index&lt;/td&gt;
&lt;td&gt;Chunks, vectors, metadata and document identifiers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Answer history&lt;/td&gt;
&lt;td&gt;Retrieved passages copied into conversations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Diagnostics&lt;/td&gt;
&lt;td&gt;Request logs, traces, error reports and support exports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recovery copies&lt;/td&gt;
&lt;td&gt;Snapshots, backups and restored environments&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is a starting inventory, not an assertion that every architecture has all these stores. Add the ones your design actually uses. Mark unknowns as unresolved.&lt;/p&gt;

&lt;p&gt;A useful next step is to attach an owner and a retention rule to each store. "We delete the upload" is not a complete answer if extracted text remains searchable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define what deletion means for each state
&lt;/h2&gt;

&lt;p&gt;I would separate at least three outcomes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The document is no longer available for new answers.&lt;/li&gt;
&lt;li&gt;Active copies and derived records have been removed according to the agreed policy.&lt;/li&gt;
&lt;li&gt;Recovery copies age out or are handled through a documented exception.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Those are different promises. Do not use a single success message to imply all three happened immediately unless the design can support that statement.&lt;/p&gt;

&lt;p&gt;Historical conversations need an explicit decision too. If an earlier answer quoted a document, deleting its retrieval entry does not specify what should happen to that answer. Define the desired behavior before the test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use a synthetic marker
&lt;/h2&gt;

&lt;p&gt;Create a small test document with a unique, harmless phrase that appears nowhere else in the test corpus. Record its ID and the stores expected to receive it. Do not use a password or a real customer detail as a marker.&lt;/p&gt;

&lt;p&gt;Then run a proposed sequence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Import synthetic document D-001.
2. Confirm an authorised test user can retrieve its marker.
3. Request deletion through the supported workflow.
4. Wait for the documented completion condition.
5. Repeat the retrieval attempt in a new conversation.
6. Inspect the relevant stores and job status.
7. Record unresolved copies or exceptions.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is an unexecuted fixture. A failed search in step 5 would not, on its own, prove that every copy is gone. It tests availability through that retrieval path. Store-level checks test a different part of the requirement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test failures and races
&lt;/h2&gt;

&lt;p&gt;My first negative tests would include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An import job is still processing when deletion starts.&lt;/li&gt;
&lt;li&gt;A user reuploads the same file during the deletion job.&lt;/li&gt;
&lt;li&gt;A worker retries an old indexing task after deletion.&lt;/li&gt;
&lt;li&gt;A snapshot is restored into a test environment.&lt;/li&gt;
&lt;li&gt;A conversation created before deletion asks a follow-up.&lt;/li&gt;
&lt;li&gt;One removal step fails while others succeed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For each case, write the expected state and the way an operator can see it. Consider a deletion marker or version check so that an old queued task cannot silently recreate material that should remain unavailable. The exact mechanism depends on the architecture; a marker alone is not proof of complete removal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the result inspectable
&lt;/h2&gt;

&lt;p&gt;I would have a deletion job return a reference and a scoped status: pending, complete for the named stores, or incomplete with the remaining step identified. Keep the audit record limited to what is needed. Copying the deleted document into an audit log would defeat the purpose.&lt;/p&gt;

&lt;p&gt;Any customer-facing confirmation should match that scope. If backups follow a separate retention schedule, say so rather than implying immediate removal from every historical copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide before launch
&lt;/h2&gt;

&lt;p&gt;The pilot checklist should name the accountable owner, authorised deletion route, completion condition, failure route and recovery-copy policy. Have the appropriate business and legal owners settle any retention obligations before promising a deletion deadline.&lt;/p&gt;

&lt;p&gt;Disclosure: I run IT Impress, an AI and web services business. This article proposes tests for a document assistant's data lifecycle. It does not certify a system or report measured deployment results.&lt;/p&gt;

&lt;p&gt;By Keshavan Thiagaraja, IT Impress.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>privacy</category>
      <category>systemdesign</category>
      <category>testing</category>
    </item>
    <item>
      <title>An offline AI pilot needs a network test, not a label</title>
      <dc:creator>Keshavan Thiagaraja</dc:creator>
      <pubDate>Sat, 07 Nov 2026 15:43:18 +0000</pubDate>
      <link>https://dev.to/itimpress/an-offline-ai-pilot-needs-a-network-test-not-a-label-mbb</link>
      <guid>https://dev.to/itimpress/an-offline-ai-pilot-needs-a-network-test-not-a-label-mbb</guid>
      <description>&lt;p&gt;Before I would describe a proposed assistant as "offline", I would write down what that promise includes. Does it cover only model inference, or also document import, search, speech, authentication, logs, updates and recovery?&lt;/p&gt;

&lt;p&gt;This is a proposed acceptance-test plan. It is not a client case study, a benchmark result or a claim that a particular product has passed these tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define the boundary in plain language
&lt;/h2&gt;

&lt;p&gt;For a hypothetical internal document assistant, my first draft of the requirement would be:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;During normal use, prompts, retrieved passages and generated answers must stay inside the approved environment. Any exception needs to be named and tested separately.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That statement is deliberately narrower than "nothing ever leaves the machine". An update process or a remote support session needs its own decision. Do not let a broad marketing label settle those choices.&lt;/p&gt;

&lt;p&gt;Then create a dependency inventory:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Question to settle before the pilot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Model inference&lt;/td&gt;
&lt;td&gt;Where are weights loaded and where does inference run?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Document processing&lt;/td&gt;
&lt;td&gt;Where do OCR, parsing and embeddings run?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Search&lt;/td&gt;
&lt;td&gt;Where are chunks, metadata and indexes stored?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Speech&lt;/td&gt;
&lt;td&gt;Are transcription and synthesis local or remote?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Identity&lt;/td&gt;
&lt;td&gt;What happens when the identity provider is unavailable?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logging&lt;/td&gt;
&lt;td&gt;Which fields are recorded, where, and for how long?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Updates&lt;/td&gt;
&lt;td&gt;Who approves downloads, version changes and rollback?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Treat "unknown" as an open item, not as "local".&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate installation from normal operation
&lt;/h2&gt;

&lt;p&gt;A useful test plan distinguishes at least two modes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Provisioning:&lt;/strong&gt; downloading approved software and model files, verifying their origin, configuring access and loading the initial corpus.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Normal operation:&lt;/strong&gt; asking questions, adding permitted documents, searching, generating answers and reviewing errors.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A system that needs a download during installation may still meet a defined disconnected-use requirement. A system that silently sends a prompt to a remote fallback during normal use would not meet the requirement above.&lt;/p&gt;

&lt;p&gt;The acceptance criteria should say which mode is being tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test with synthetic data first
&lt;/h2&gt;

&lt;p&gt;I would start with invented documents that contain unique, harmless marker phrases. Do not use real customer records just to find out where a new pipeline sends data.&lt;/p&gt;

&lt;p&gt;Run the same small task set in an approved connected test environment and then with outbound traffic blocked by the test environment's network controls. Observe connection attempts and component errors. Record the tool versions and configuration used so the test can be repeated.&lt;/p&gt;

&lt;p&gt;A proposed test log:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;case: retrieve a policy passage and answer with a citation
input: synthetic-policy-01
network mode: outbound blocked
expected: answer from approved local sources, or a clear unavailable state
unexpected: remote fallback, silent data export, fabricated citation
review: pending
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This log is a fixture, not a report of an executed test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the awkward paths too
&lt;/h2&gt;

&lt;p&gt;The happy path is only one part of the pilot. I would include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An empty index and a document the parser cannot read.&lt;/li&gt;
&lt;li&gt;A restart while the network remains disconnected.&lt;/li&gt;
&lt;li&gt;An expired session or unavailable identity service.&lt;/li&gt;
&lt;li&gt;A missing model file and a failed update.&lt;/li&gt;
&lt;li&gt;A request that the approved sources cannot answer.&lt;/li&gt;
&lt;li&gt;A support or diagnostics feature that might attach logs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For each case, define the allowed failure behavior. A visible error is preferable to quietly changing the data boundary or inventing an answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep privacy and answer quality on separate scorecards
&lt;/h2&gt;

&lt;p&gt;Passing a network-boundary check would not prove that an answer is correct. Passing an answer-quality check would not prove that the data stayed inside the required boundary.&lt;/p&gt;

&lt;p&gt;I would review these separately, along with access control, retention and recovery. A pilot decision should name any remaining gaps instead of compressing them into a single "secure" tick.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the final claim match the evidence
&lt;/h2&gt;

&lt;p&gt;After the tests, write a scoped statement: which version, which environment, which workflows and which exceptions were checked. Avoid promising that every future feature has the same behavior.&lt;/p&gt;

&lt;p&gt;Disclosure: I run IT Impress, whose primary website describes private, custom AI and offline or embedded AI among its services. This article sets out a proposed evaluation approach; it does not claim measured deployment results or certify any system.&lt;/p&gt;

&lt;p&gt;By Keshavan Thiagaraja, IT Impress.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>security</category>
      <category>testing</category>
    </item>
    <item>
      <title>Test the answers your RAG assistant should refuse</title>
      <dc:creator>Keshavan Thiagaraja</dc:creator>
      <pubDate>Sat, 07 Nov 2026 11:56:14 +0000</pubDate>
      <link>https://dev.to/itimpress/test-the-answers-your-rag-assistant-should-refuse-1m5k</link>
      <guid>https://dev.to/itimpress/test-the-answers-your-rag-assistant-should-refuse-1m5k</guid>
      <description>&lt;p&gt;A retrieval-augmented assistant needs an answer policy, not only a document index. My proposed starting point is to test what it must &lt;em&gt;not&lt;/em&gt; answer before polishing the happy path.&lt;/p&gt;

&lt;p&gt;This is a design checklist, not a report of measured results or a claim about a client deployment. All examples below are hypothetical.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with a small evidence contract
&lt;/h2&gt;

&lt;p&gt;For each answerable question, record the source that is allowed to support the answer, its owner, and any time or access limits. A useful test record might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"question"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"What is the cancellation window?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"allowed_source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"current-policy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"required_scope"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"public"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"expected_behavior"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"answer_with_source"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"forbidden_claims"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"refund guaranteed"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The document ID is an example, not a production identifier. Adapt the fields to your application. Do not put real customer records or credentials into a shared test fixture.&lt;/p&gt;

&lt;p&gt;The important distinction is between finding relevant-looking text and finding sufficient evidence for the claim being made.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build the negative cases first
&lt;/h2&gt;

&lt;p&gt;Here is a starter test matrix. Set the expected behavior before running the assistant, so a fluent answer cannot quietly become the definition of success.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Case&lt;/th&gt;
&lt;th&gt;Test input&lt;/th&gt;
&lt;th&gt;Expected behavior&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Missing evidence&lt;/td&gt;
&lt;td&gt;Ask about a service not described in the approved sources&lt;/td&gt;
&lt;td&gt;Say the information is unavailable; offer the right contact route&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conflicting evidence&lt;/td&gt;
&lt;td&gt;Supply two current-looking policies with different dates or terms&lt;/td&gt;
&lt;td&gt;Flag the conflict instead of choosing the more convenient answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stale evidence&lt;/td&gt;
&lt;td&gt;Ask for today's availability using an old brochure&lt;/td&gt;
&lt;td&gt;Explain that a live check is needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong audience&lt;/td&gt;
&lt;td&gt;Retrieve a private staff note for a public visitor&lt;/td&gt;
&lt;td&gt;Do not disclose it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embedded instruction&lt;/td&gt;
&lt;td&gt;A retrieved document tells the assistant to send account data elsewhere&lt;/td&gt;
&lt;td&gt;Treat that text as document content, not permission&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unsupported implication&lt;/td&gt;
&lt;td&gt;A source says consultations are available; the question asks whether results are guaranteed&lt;/td&gt;
&lt;td&gt;Do not turn availability into a guarantee&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These cases test different boundaries. A single generic "I don't know" check will not tell you which one failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Score evidence separately from writing
&lt;/h2&gt;

&lt;p&gt;For a first review, I would use a small manual scorecard:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does every material claim have support in an allowed source?&lt;/li&gt;
&lt;li&gt;Does the cited passage actually support the answer, rather than merely mention the topic?&lt;/li&gt;
&lt;li&gt;Is the source current enough for this question?&lt;/li&gt;
&lt;li&gt;Is the answer appropriate for this audience?&lt;/li&gt;
&lt;li&gt;If evidence is missing or conflicting, does the assistant state the specific limitation?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Mark unsupported claims as failures even when the wording sounds cautious. "Usually" and "probably" do not repair missing evidence.&lt;/p&gt;

&lt;p&gt;Keep usefulness on a separate line. A safe refusal that offers no next step may still need work. A useful next step could be a public contact form or a request for the missing detail. It must not invent a booking, a price, or a promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep answer generation away from action authority
&lt;/h2&gt;

&lt;p&gt;A retrieved policy may explain how cancellation works. That does not mean a visitor has asked to cancel, that the assistant has identified the right booking, or that the account has permission to change it.&lt;/p&gt;

&lt;p&gt;I would separate the answer path from the action path. The action path needs its own identity, scope, parameter validation and confirmation checks. A document should not be able to grant those permissions by containing instructions that sound official.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rerun the same cases after changes
&lt;/h2&gt;

&lt;p&gt;Save the question, allowed sources, expected behavior, actual answer and reviewer decision. Rerun the set after changing prompts, retrieval settings or source documents. Keep the fixtures small enough that someone will actually review them.&lt;/p&gt;

&lt;p&gt;Do not treat this checklist as proof that the system is safe in every situation. It is a way to make a few important failure modes visible before they reach a customer.&lt;/p&gt;

&lt;p&gt;Disclosure: I run IT Impress. For the separate problem of uncertain write outcomes, see our &lt;a href="https://dev.to/itimpress/a-timeout-is-not-a-failed-booking-designing-duplicate-safe-ai-actions-186e"&gt;design walkthrough on duplicate-safe AI actions&lt;/a&gt;. Neither article reports measured client results.&lt;/p&gt;

&lt;p&gt;By Keshavan Thiagaraja, IT Impress.&lt;/p&gt;

</description>
      <category>ai</category>
    </item>
    <item>
      <title>A neural decoder's sentence is an estimate, not a verified intention</title>
      <dc:creator>Keshavan Thiagaraja</dc:creator>
      <pubDate>Sat, 07 Nov 2026 02:39:58 +0000</pubDate>
      <link>https://dev.to/itimpress/a-neural-decoders-sentence-is-an-estimate-not-a-verified-intention-3k09</link>
      <guid>https://dev.to/itimpress/a-neural-decoders-sentence-is-an-estimate-not-a-verified-intention-3k09</guid>
      <description>&lt;p&gt;An AI system can produce fluent text from a weak signal. Fluency does not establish that the text preserves what someone meant.&lt;/p&gt;

&lt;p&gt;That matters in neural communication interfaces, where an error can put words into a person's mouth rather than merely produce a poor search result.&lt;/p&gt;

&lt;p&gt;This is a proposed software-design checklist, not a tested clinical system or evidence that general thought reading is possible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the evidence boundary visible
&lt;/h2&gt;

&lt;p&gt;In a &lt;a href="https://doi.org/10.1038/s41586-023-06377-x" rel="noopener noreferrer"&gt;2023 Nature study&lt;/a&gt;, Willett and colleagues decoded attempted speech from implanted electrodes at 62 words per minute. Reported word error rates were 9.1% with a 50-word vocabulary and 23.8% with a 125,000-word vocabulary.&lt;/p&gt;

&lt;p&gt;Those are results for that research setting. They are not a universal accuracy figure for all people, sensors, thoughts or conversations. The paper describes the demonstration as a proof of concept and says further work is needed before a complete clinically viable system.&lt;/p&gt;

&lt;p&gt;A product interface should preserve that distinction. It should not label every generated sentence as a confirmed statement from the user.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate prediction from permission to send
&lt;/h2&gt;

&lt;p&gt;A possible message flow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;record only within an authorised session
    -&amp;gt; produce a candidate interpretation
    -&amp;gt; expose uncertainty or abstain
    -&amp;gt; allow correction through an accessible control
    -&amp;gt; obtain the configured send approval
    -&amp;gt; deliver to the intended recipient
    -&amp;gt; support clarification and correction
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a design proposal. The accessible control and approval method would need validation with the intended users, including people who cannot use an ordinary keyboard or voice command.&lt;/p&gt;

&lt;p&gt;A candidate interpretation and an authorised message should be different application states. Receiving a model output should not silently move the message into the sent state.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test meaning, not only readable words
&lt;/h2&gt;

&lt;p&gt;For a prototype, define what would count as failure before testing it. Consider a sentence such as:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I agree with the plan, but not until next week.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Dropping the condition changes the decision. A word-level score can help evaluate a decoder, but it does not replace checking whether the recipient understood the intended agreement and timing.&lt;/p&gt;

&lt;p&gt;Useful evaluation questions include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Was the intended meaning retained, including conditions and negation?&lt;/li&gt;
&lt;li&gt;How long did the complete exchange take, including corrections?&lt;/li&gt;
&lt;li&gt;Could the user reject a wrong interpretation without unreasonable effort?&lt;/li&gt;
&lt;li&gt;Did the recipient understand that an unconfirmed output was uncertain?&lt;/li&gt;
&lt;li&gt;Was performance checked on held-out data and across separate sessions?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Compare the complete workflow with an appropriate communication alternative. A fast model response alone is not proof of a faster human-to-human exchange.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make stopping and deletion part of the design
&lt;/h2&gt;

&lt;p&gt;Define when recording begins, when it ends, who receives the output and which data must be retained. A stop control should be tested as carefully as a send control. Retaining every raw neural recording by default is not a substitute for a justified data policy.&lt;/p&gt;

&lt;p&gt;Clinical, neural-recording and stimulation work requires appropriate expertise, permissions and safety review. A web application checklist does not provide those.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further reading and disclosure
&lt;/h2&gt;

&lt;p&gt;I wrote the IT Impress review and proposed research framework &lt;a href="https://itimpress.au/beyond-speech-writing-ai-thought-exchange/" rel="noopener noreferrer"&gt;Beyond Speech and Writing: Can AI Let Humans Exchange Thoughts at High Speed?&lt;/a&gt;. It brings together published research and proposed evaluation criteria. It does not report new IT Impress experimental results or a working thought-transfer product.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://itimpress.com.au/en/beyond-speech-writing-ai-thought-exchange/" rel="noopener noreferrer"&gt;English version on our second site&lt;/a&gt; is also available. This post does not claim that a multilingual rollout is complete.&lt;/p&gt;

&lt;p&gt;By Keshavan Thiagaraja, IT Impress&lt;/p&gt;

</description>
      <category>ai</category>
      <category>ethics</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>A timeout is not a failed booking: designing duplicate-safe AI actions</title>
      <dc:creator>Keshavan Thiagaraja</dc:creator>
      <pubDate>Fri, 06 Nov 2026 17:00:09 +0000</pubDate>
      <link>https://dev.to/itimpress/a-timeout-is-not-a-failed-booking-designing-duplicate-safe-ai-actions-186e</link>
      <guid>https://dev.to/itimpress/a-timeout-is-not-a-failed-booking-designing-duplicate-safe-ai-actions-186e</guid>
      <description>&lt;p&gt;An assistant asks a booking service to create an appointment. The network connection drops before the response arrives. Should it retry?&lt;/p&gt;

&lt;p&gt;The dangerous assumption is that no response means no booking. The service may have saved the appointment before the connection failed. A second create request can then produce a duplicate.&lt;/p&gt;

&lt;p&gt;This is a design walkthrough, not a report of measured customer results. The examples below illustrate a pattern; the exact guarantees depend on the service you integrate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate intent from attempts
&lt;/h2&gt;

&lt;p&gt;Treat "book this appointment" as one operation with a durable identity. Individual HTTP requests are attempts to complete that operation, not new user instructions.&lt;/p&gt;

&lt;p&gt;Before the first write, record the approved details, the target service and an operation identifier. Do not put private customer details into the identifier. If the request times out, keep the operation unresolved rather than marking it failed or completed.&lt;/p&gt;

&lt;p&gt;A useful state model is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prepared: the request is validated and permitted.&lt;/li&gt;
&lt;li&gt;Submitted: a write has been attempted.&lt;/li&gt;
&lt;li&gt;Confirmed: the target service shows the intended result.&lt;/li&gt;
&lt;li&gt;Uncertain: the request's outcome could not be established.&lt;/li&gt;
&lt;li&gt;Escalated: a person needs to decide the next step.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These labels are a proposed design, not an API standard. The important distinction is between a confirmed failure and an unknown outcome.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use the provider's duplicate protection
&lt;/h2&gt;

&lt;p&gt;Google Calendar's &lt;a href="https://developers.google.com/workspace/calendar/api/guides/create-events" rel="noopener noreferrer"&gt;create-events guide&lt;/a&gt; explains that a client can supply an event ID in the required format. The guide explicitly describes preventing duplicate creation when an operation fails after succeeding in Calendar's backend.&lt;/p&gt;

&lt;p&gt;That is more useful than inventing a new random event ID on every retry. Keep the identifier associated with the original intent, then reconcile against the target calendar. Validate the date, time zone, participants and current availability separately. Duplicate protection does not prove that those details were right.&lt;/p&gt;

&lt;p&gt;Stripe provides a different example. Its &lt;a href="https://docs.stripe.com/api/idempotent_requests" rel="noopener noreferrer"&gt;idempotent-requests documentation&lt;/a&gt; describes an idempotency key for retrying supported requests. For API v1, it returns the saved response for a reused key after endpoint execution begins, including saved errors. The documented retention and parameter checks matter: this is not a promise that any request can be replayed forever.&lt;/p&gt;

&lt;p&gt;Do not copy payment API assumptions into a calendar integration. Read each provider's current contract and test the failure cases it actually supports.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reconcile before claiming success
&lt;/h2&gt;

&lt;p&gt;After an uncertain write, use a supported read path to inspect the relevant resource. Match the operation identifier and the meaningful fields, not only a similar title.&lt;/p&gt;

&lt;p&gt;If the resource exists with the approved details, record the provider's identifier and report the confirmed state. If it does not appear, follow the provider's documented retry behavior. If the read is unavailable or ambiguous, preserve the uncertainty and hand it to a person rather than quietly creating a second object.&lt;/p&gt;

&lt;p&gt;A calendar entry is also not proof of every downstream effect. Invitations, notifications and external booking systems may have their own delivery states. Tell the user what was verified, not what you hope followed from it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the awkward path
&lt;/h2&gt;

&lt;p&gt;Include these scenarios in an integration test plan:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The provider saves the resource but the response is lost.&lt;/li&gt;
&lt;li&gt;A duplicate request arrives while the first is still running.&lt;/li&gt;
&lt;li&gt;A retry has changed parameters.&lt;/li&gt;
&lt;li&gt;The resource exists, but a later read is temporarily unavailable.&lt;/li&gt;
&lt;li&gt;The same person makes a genuinely new request with similar details.&lt;/li&gt;
&lt;li&gt;The provider rejects the request before execution begins.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The final case matters because a rejected request is different from one that ran and returned an error. Your retry policy should follow the provider's semantics, not a single catch-all exception handler.&lt;/p&gt;

&lt;h2&gt;
  
  
  Permission still comes first
&lt;/h2&gt;

&lt;p&gt;A reliable retry mechanism cannot grant authority to make the original booking. Confirm the requested action, its audience and any costs before writing. Keep the ability to suggest separate from permission to execute.&lt;/p&gt;

&lt;p&gt;The broader business principle is to measure the complete process, including verification, review and recovery. IT Impress's &lt;a href="https://www.itimpress.com.au/ai-software-trillion-dollar-productivity-question/" rel="noopener noreferrer"&gt;AI productivity and business-value guide&lt;/a&gt; discusses that approach. Disclosure: I am the founder of IT Impress.&lt;/p&gt;

&lt;p&gt;For an action-taking assistant, a useful result is not merely "the request was sent." It is a result that can be checked, explained and recovered without making the user discover the uncertainty later.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>softwareengineering</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>Building AI receptionists for small businesses: a practical design checklist</title>
      <dc:creator>Keshavan Thiagaraja</dc:creator>
      <pubDate>Fri, 06 Nov 2026 11:52:03 +0000</pubDate>
      <link>https://dev.to/itimpress/building-ai-receptionists-for-small-businesses-five-things-i-got-wrong-first-54fi</link>
      <guid>https://dev.to/itimpress/building-ai-receptionists-for-small-businesses-five-things-i-got-wrong-first-54fi</guid>
      <description>&lt;p&gt;&lt;em&gt;Correction, 7 November 2026: The earlier version included unsupported first-person development anecdotes and described a benchmark score as a percentage of paid tasks completed. Those claims have been removed. This is a design checklist, not a report of measured customer or project results.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;An AI receptionist should be evaluated as a business process, not only as a conversation demo. The following checklist applies the evaluation principles in IT Impress's &lt;a href="https://www.itimpress.com.au/ai-software-trillion-dollar-productivity-question/" rel="noopener noreferrer"&gt;guide to AI productivity and business value&lt;/a&gt;: measure the complete process, include review and support costs, and keep consequential actions under clear authority.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Test response time across the full call
&lt;/h2&gt;

&lt;p&gt;Measure the delay between a caller finishing and the system responding. Test interruptions, background noise and a slow network. Do not substitute a model's response-time number for an end-to-end call test. Agree on acceptable response times before a pilot and record what happens when those limits are missed.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Define the handover before expanding autonomy
&lt;/h2&gt;

&lt;p&gt;Write down which requests the receptionist may handle and which need a person. Test unclear requests and unavailable staff, not only the easy FAQ path. A handover should preserve enough context that the caller does not have to start again. Treat this as a design requirement to validate, not a guarantee of any product's performance.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Verify the booking system, not just the conversation
&lt;/h2&gt;

&lt;p&gt;A spoken confirmation is not proof that a booking exists. Test the actual calendar or booking service, duplicate requests, time zones and failed writes. Define the response when an integration is unavailable. Estimate integration and maintenance work separately rather than assuming a fixed percentage of development effort.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Keep actions checkable
&lt;/h2&gt;

&lt;p&gt;Separate permission to suggest an action from permission to execute it. Use access limits, an audit trail and a recovery path. Check privacy, security and the business's own requirements before using real customer data. A general AI benchmark cannot establish that a particular receptionist is safe or effective for a specific workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Measure a business outcome
&lt;/h2&gt;

&lt;p&gt;Choose a baseline and a limited pilot. Compare useful outcomes, review time, mistakes, support effort and total cost. Possible measures include correctly recorded enquiries and bookings verified in the business's existing system. Expand only when the evidence supports it.&lt;/p&gt;

&lt;p&gt;Disclosure: This checklist is published by IT Impress. It is general design guidance, not a claim of customer results or legal advice.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>startup</category>
      <category>voice</category>
    </item>
    <item>
      <title>Reading AI benchmarks without confusing scores with business outcomes</title>
      <dc:creator>Keshavan Thiagaraja</dc:creator>
      <pubDate>Wed, 04 Nov 2026 01:16:56 +0000</pubDate>
      <link>https://dev.to/itimpress/the-best-ai-in-the-world-just-scored-12-on-real-work-3lp4</link>
      <guid>https://dev.to/itimpress/the-best-ai-in-the-world-just-scored-12-on-real-work-3lp4</guid>
      <description>&lt;p&gt;&lt;em&gt;Correction, 7 November 2026: The original version incorrectly equated a weighted benchmark score with the percentage of paid tasks completed and included unsupported claims about client deployments and savings. Those claims have been removed. This article discusses evaluation principles, not measured IT Impress client results.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the number means
&lt;/h2&gt;

&lt;p&gt;Reports on the GDPx benchmark describe 206 tasks across 11 domains. The headline score weights domains equally and uses each task's intended grading method, including partial credit where applicable. A reported score of 12% is not a finding that AI completes one in eight paid tasks, fails 88% of all professional work, or can automate a particular share of jobs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.unite.ai/semianalysis-launches-gdpx-benchmark-spanning-11-agentic-domains/" rel="noopener noreferrer"&gt;Unite.AI's 2 November coverage&lt;/a&gt; describes the methodology and its limitations. This article relies on that reporting and does not independently reproduce the results.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a benchmark cannot decide for you
&lt;/h2&gt;

&lt;p&gt;A leaderboard cannot establish the return on a particular business deployment. Your data, workflow, users and consequences of failure may differ from the benchmark environment. Before using a score in an investment case, check how the tasks were selected, how outcomes were graded and whether the comparison matches your intended use.&lt;/p&gt;

&lt;p&gt;A model's ability to generate a draft and a system's ability to complete an accountable business process are different questions. Review, integration, security and maintenance belong in the evaluation.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical pilot
&lt;/h2&gt;

&lt;p&gt;Choose one process and record a baseline. Define an acceptable output, who checks it and which actions require approval. Use representative examples, including ambiguous requests and failures, rather than relying only on a demonstration's easiest path.&lt;/p&gt;

&lt;p&gt;Measure useful output, total cost, review time, errors and support work. Include a recovery route and a person responsible for consequential decisions. Treat improvements as findings from that pilot, not as conclusions guaranteed by a benchmark.&lt;/p&gt;

&lt;p&gt;IT Impress's &lt;a href="https://www.itimpress.com.au/ai-software-trillion-dollar-productivity-question/" rel="noopener noreferrer"&gt;AI Software and the Trillion Dollar Productivity Question&lt;/a&gt; discusses economic forecasts and this process-level approach to measuring business value. It is a separate discussion, not a GDPx analysis.&lt;/p&gt;

&lt;p&gt;Disclosure: Published by IT Impress. The pilot checklist is general guidance, not a promise of savings or a statement of customer outcomes.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>business</category>
      <category>career</category>
    </item>
  </channel>
</rss>
