Regulated infrastructurePilot

DamGuard

Turn scattered dam-safety evidence into regulator-ready reports a Recognised Engineer can sign.

Role
Product, design, front-end, back-end, data model and deployment.
Team
Solo build, with New Zealand dam-safety engineers as discovery partners
Timeline
Concept to pilot-ready in 2026
Stack
Next.js 15, React 19, TypeScript, Supabase (Postgres, Auth with TOTP MFA, row-level security), WebGL globe, Three.js 3D Dam Monitor, an MCP server, Vercel
Year
2026
Site
N/A
80%
of engineering effort goes to interpreting regulations and stitching evidence. That is the time DamGuard is built to remove.
Discovery estimate, not a measured result
≤ 2 hours
from upload to a report draft is the pilot target, with 90% of requirements mapped before sign-off
Pilot success metric
Reg 12–18
NZ regulation pack, DSAP lifecycle and Form 3 annual certification built in
Scope fact

The problem

Dam owners in New Zealand must certify dam safety every year, and the evidence lives in PDFs, consultant reports, SCADA exports, Maximo work orders and spreadsheets. Each certificate is a manual stitch, and when the Recognised Engineer asks “show me where,” the answer is a folder of documents.

DamGuard is the compliance operating layer: a system of record for how regulations map to evidence, how deficiencies get closed, and how reports get signed off. It starts document-first for operators with low data maturity and grows into live connectors without changing the report target.

Key decisions

Constraint

Most operators are not ready for systems integration; their evidence is documents, procedures and logs.

Options

Require PI, Maximo and civil database connectors first, or start from the documents people already have.

Decision

Document-first entry: an evidence hopper, a requirement-to-evidence mapping table, and the same regulator-ready report schema whether evidence arrives by upload or by connector.

Trade-off

Manual mapping in the first cycle. In return, a product a low-maturity operator can adopt this year.

Constraint

Foundation models will make “map this PDF to Reg 14” a commodity.

Options

Ship a prompt wrapper, or build the workflow and data that outlive the model.

Decision

A multi-step pipeline: ingest, map with rationale and confidence, engineer accept, reject or override, sign off, archive. Every decision is appended to an immutable audit trail, and prior-cycle decisions are suggested the next year.

Trade-off

Slower to build than a chat box. It is also what a generic copilot cannot replace.

Constraint

A regulator accepts a Recognised Engineer’s signature, not an AI’s.

Options

Auto-generate certificates, or keep humans at every gate.

Decision

AI drafts, people sign. Role-based access for engineer, signatory, viewer and admin, TOTP multi-factor auth for admins, row-level security per tenant, and no auto-submission to the regulator.

Trade-off

More steps per cycle. Every claim in a report traces to a source and a reviewer.

Constraint

Reviewers could not connect piezometers, seepage and surveillance readings to the asset they were certifying.

Options

More tables and charts, or spatial context.

Decision

A portfolio globe with site drill-down and a full-screen 3D Dam Monitor: boreholes, lithology, agent heatmap layers and flow nets tied to place.

Trade-off

A heavy WebGL surface to maintain. It is also the moment in every demo where the room goes quiet.

The work

DamGuard landing page: see every dam, one living globe
Landing pageOne living globe for every dam, with portfolio intelligence, compliance, hydrology and reporting on one platform.
DamGuard globe of New Zealand with dams coloured by compliance state
GlobeEvery dam in New Zealand, coloured by compliance state, with stations grouped by region. Demo data
DamGuard site card for Wellington Dam with generation, spill and generator status
Site detailLive generation, spill, headwater level and generator status for one dam, with a way into the 3D structural monitor. Demo data
DamGuard 3D structural monitor with boreholes, lithology and agent heatmap layers
3D structural monitorBoreholes with lithology, and heatmap layers from the regulatory, structural, hydrology, operations and emergency agents. Demo data
DamGuard portfolio of managed dams with scores, deficiencies and penalty exposure
PortfolioCompliance score, deficiencies, overdue items and penalty exposure across every managed dam. Demo data
DamGuard structural monitoring with piezometer, seepage and settlement charts and an AI insight
StructuralTwelve months of piezometer, seepage and settlement readings against thresholds, with the structural agent’s finding at the top. Demo data
DamGuard hydrology view with a reservoir cross-section and piezometers
HydrologyA dam cross-section with the reservoir and piezometer levels, played back week by week, above the portfolio’s discharge compliance. Demo data
DamGuard report builder for an annual dam safety certificate
Report builderThe annual NZ DSAP certificate pack, with each section drafted by the agent that owns it and a person signing off. Demo data

How it was built

  1. 01DiscoverCalls and walk-throughs of the client’s current process
  2. 02CompileTranscripts, files and constraints in one requirements brief
  3. 03SpecifyA detailed, sourced spec from Perplexity, reviewed and locked
  4. 04BuildDesigned and built with the latest AI models, in the production stack
  5. 05TestUser testing on every preview, with real users on real tasks
  6. 06IterateFindings and client feedback turned into the next round of changes
  7. 07ShipTests, security review and sign-off, then back to testing and iterating↻ Back to Test
How I work, step by step →

Where AI was used

Five domain agents (regulatory, structural, hydrology, operations, emergency) work only within the asset’s evidence. Mapping suggestions carry a rationale and a confidence band, and nothing is certified without a person. Coding agents helped build it under the same rules as the other products: no production data, preview before production.