Case study 03 · AI reliability & provenance

What should an AI remember as fact?

Vera began as a local, privacy-first family-memory prototype. It became a practical investigation into source-grounded retrieval, conflicting records, model uncertainty, and the limits of automated evaluation.

Python · SQLite/FTS5 · OllamaLocal research prototypeSynthetic data & reproducible tests
The problem

Fluent language is not the same as trustworthy recall.

An AI model can generate a confident answer from partially relevant evidence, confuse two sources, or quietly turn an unsupported statement into a stored “memory.” I wanted to explore how a local application could preserve attribution and corrections while keeping the source records authoritative.

My approach

Keep the archive separate from the model.

Attributed records

Store text records in local SQLite with source metadata, full-text search, and correction history.

Grounded retrieval

Retrieve and select evidence before asking a local model to compose a response, then validate references.

Controlled writes

Require explicit confirmation before a model-proposed memory becomes part of the archive.

Honest evaluation

Compare models and response strategies using synthetic datasets, holdouts, regression tests, and documented quality limitations.

My contribution: I defined the product and security boundaries, directed AI coding agents using acceptance criteria, designed evaluation questions and holdouts, reviewed results, and decided which experimental approaches should remain outside the reference engine.

Evidence & outcomes

Small experiments, concrete findings.

122Automated regression tests in the public project's recorded validation
LocalSQLite archive and local Ollama inference; no cloud synchronization

Model comparisons exposed a recurring tradeoff: more natural answers sometimes added details unsupported by the source. A planning experiment improved compliance with topic exclusions without improving answer completeness. Those failures informed decisions about what not to promote into the main engine.

Evaluation numbers are based on small synthetic datasets, with some agent-reviewed judgments. They are useful within the experiment but should not be treated as general-purpose model benchmarks.

Known limits

Still a research prototype.

  • Conversational recall and answer completeness remain inconsistent.
  • The local archive is not encrypted, and there is no multi-user authorization layer.
  • The system does not process audio or images, despite the longer-term family-story concept.
  • Experimental model comparisons have not established a production-quality replacement for the reference model.
Why it matters

AI governance includes the reliability of the evidence.

Source attribution, controlled memory changes, evaluation discipline, and explicit uncertainty are governance concerns as much as engineering concerns. Vera gave me a way to test those concepts directly, including the uncomfortable cases where passing tests were not enough to guarantee accurate answers.

Review the implementation

Code and experimental evidence

Keep exploring

SafeGuard

Next case study