Inspiration

I am building Veridom, an app that helps private people keep control of their own house build. The most expensive mistakes on a site are the ones that get covered: screed poured over pipes nobody pressure-tested, drywall closed over a vapour barrier nobody photographed, a socket that moved away from where the plan put it. Years later they come back as damp, cold walls or a failed inspection. They are ghosts in the walls, and the owner has no proof of what happened on the day.

In Austria the old answer is the Bautagebuch, a daily construction diary. Professionals keep one. Private builders keep it on paper, or not at all.

What it does

Veridom Ghost Hunter revives the Bautagebuch and makes it hunt.

  • A sealed diary. One entry per site day: who was there, what was done, deliveries, problems, photos, weather. You can dictate it. Every entry is hash-chained to the one before (SHA-256), and nothing is ever edited: a correction is a new entry that points to the old one. "Try to rewrite history" changes one word in an old entry (in a copy) and shows exactly which entry stops verifying: stored hash against recomputed hash.
  • The ghost hunt. Four deterministic rules compare the approved plan, the diary, the photos (with the date read from the photo file itself) and a checklist of things that must be checked before they are covered. The demo finds four ghosts: a vapour barrier never documented before the drywall went on, pipework with no pressure-test record under the screed, a socket moved against the plan, and a photo whose own date contradicts the diary.
  • Every finding cites its sources. Check, plan sheet and area, diary day, photo. Each one is a link. A missing proof is a finding too, never silence.
  • A ghost map. The ghosts are pinned on the plan, room by room, so you see where the house is haunted.
  • What to do now, and what it takes later. Plain advice written by the checklist author, for example: "Ask the plumber for the signed pressure-test record. If there is none, repeat the test before the tiles go on." The app never invents a price and never quotes a value from a building norm; it names the document, edition and issuer.
  • An evidence report. One button produces an A4 report: chain status and last hash, findings with sources and advice, the checklist with norm references and the whole diary as a table with photos. This is what an owner hands to the contractor, an expert or a lawyer.
  • Evidence for agents. A read-only MCP server (veridom-evidence, six tools) exposes the same evidence to an AI agent. The ghost-hunter Kiro agent may only read; it must start by verifying the chain, cite source ids and say "no evidence" instead of guessing. Asked to delete a diary entry, it refuses. The same tools and rules also ship as a Kiro power (veridom-evidence), so any Kiro agent can explain a ghost or draft a polite letter asking the contractor for the missing proof.

Everything in the app runs in the browser. There is no backend, no account and no AI at runtime, so results are reproducible and the data stays on the device.

Why it is a Frankenstein

It stitches together parts that were never meant to meet: a paper-era legal habit (the Bautagebuch), architectural plan PDFs, phone photos with EXIF data, historical weather, building-norm checklists, a blockchain-style hash chain, browser speech recognition, and an AI agent that is not allowed to say anything without a source.

How I built it

Spec-first in Kiro, from two specs, with steering rules, EARS requirements, designs and task lists that a custom Kiro agent worked through test-first; small fixes were vibe-coded with the same agent. Details are in the Kiro section.

Stack: TypeScript (strict), React, Vite, pdf.js, exifr, WebCrypto, IndexedDB, Open-Meteo archive API, Vitest and fast-check, a dependency-free MCP server over stdio, GitHub Pages.

Challenges

  • Making "no evidence" a first-class result. The engine had to treat a missing photo as a finding with its own sources (the check, the area, the day the covering work was recorded) instead of returning nothing.
  • Keeping the agent honest. My Kiro build agent can only read and write files. It cannot run anything, so it cannot claim "tests pass". Hooks run the type-checker and the tests, and the real output goes back into the next prompt.
  • Norms without inventing numbers. Building standards are paywalled and easy to misquote. The rule "name the document, never the value" lives in a steering file and is enforced by tests.
  • Demo data that tells the truth. A browser audit showed that my first demo used a vapour-barrier photo on the very day the app claimed there was no vapour-barrier evidence. The second spec rebuilt the story around 17 real Creative Commons photos, each used once and only where its subject matches the diary line.
  • A real agent, a real error. The first live run of the ghost-hunter agent failed: the model API rejects a top-level oneOf in an MCP tool schema. One plain-language prompt to Kiro fixed it, with a test that keeps it fixed.

Accomplishments

  • 644 tests in 55 files, all green, including property-based tests in 17 files: the chain verifies if and only if it is untouched, every finding cites only sources that exist, the hunt is deterministic, export and import round-trip the data, the MCP server answers every input line with at most one well-formed response.
  • 97 spec tasks closed (93 coding tasks by the Kiro agent, 4 human checks).
  • The evidence know-how ships as an installable Kiro power, so any Kiro agent can explain the ghosts or draft a contractor letter from the real ids.
  • The whole app is a static site: free to host, private by design.

What I learned

Writing the rules down first (steering) changed the result more than any prompt. Once "no claim without a source" was a steering file, the generated design, the code, the tests and even the MCP agent's answers carried it without being reminded. And an audit of the running app is worth a spec of its own: my second spec came entirely from what a browser check of the first build showed.

What's next

Ghost Hunter becomes the documentation module of Veridom (https://veridom.space): checkpoint sign-off by owner and contractor, more checklists per trade, a German UI, then Ukraine after Austria.

Built With

Share this project:

Updates

Submission history