How we build

Architecture, stack and method.

What our products run on today, how a small team ships them with AI agents, and what the next stage of AI in the products looks like. Everything marked live is in production, and everything else is labelled.

01 Dugnad · in production

An agent delivery team inside the customer's cloud

A Claude manager dispatches sandboxed builder lanes from a locked plan. An independent review and a deterministic merge gate stand between every agent and the codebase, and the owner approves from a phone.

Dugnad: from a locked plan to a merged change, inside the customer's cloudOwnerphone app · pushapproves decisionsYOUR GOOGLE CLOUD PROJECTManager agentClaudereads the locked planLocked planunits · decisions · scoperecorded verbatimBuilder lanesandboxed userBuilder lanesandboxed userBuilder laneClaude · Gemini · openReviewindependent modelescalation ladderMerge gatereviewed head · scopeprotected pathsIntegration branchpeople release to main · agents never canRun reportprogress vs plan · digest
Fig. 1 · Dugnad control flow · everything inside the dashed boundary runs in the customer's project
Isolation

Agents can't reach what matters

One isolated user per lane. No access to secrets, the main branch, deploys or other lanes.

Control

Gates are code

The merge gate checks the reviewed head, scope and protected paths, and merges only into an integration branch.

Audit

Every decision on record

Approvals and plan amendments are recorded word for word, in a log where any later change is detected.

02 Toparchy · in production

A serverless live-ops game on Firebase

The client is a static app on the global CDN. Game state lives in Firestore in Singapore, and every timed mechanic (drops, auctions, contests, income) runs in Cloud Functions.

Toparchy architecture on Google Cloud and FirebasePlayersbrowser · mobile webGOOGLE CLOUD · FIREBASEFirebase Hostingglobal CDN · static appApp Check + AuthGoogle sign-inabuse protectionGoogle Analytics 4consent-gatedCloud Firestoreasia-southeast1game state · domainscorridors · ledgersCloud FunctionsDaily Drop resolutionsealed Auctionstile contestsincome accrualMapboxglobe tilesGitHub1,300+ tests per changedeploy via WorkloadIdentity Federationno stored keys
Fig. 2 · Toparchy production architecture · dashed = external or optional
LayerServiceDetailStatus
HostingFirebase Hostingglobal CDN, static exportLive
IdentityFirebase AuthenticationGoogle sign-inLive
DataCloud Firestoreasia-southeast1 · client writes locked down by rulesLive
Game engineCloud Functionsdrops · auctions · contests · incomeLive
Abuse protectionFirebase App Checkenforced globally on functionsLive
AnalyticsGoogle Analytics 4consent-gated (PDPA)Live
DeliveryGitHub → Google CloudWorkload Identity Federation · no stored keysLive
ArchitectureHexagonalgame rules behind ports, storage swappableLive
QualityVitest1,300+ automated tests per changeLive

03 Method

Spec-driven, agent-built, human-approved

01

Discover

Requirements, threats and decisions written into a blueprint before any code.

02

Plan

The blueprint is split into units, each with its own brief, scope and acceptance criteria.

03

Build

Agents implement units in isolation and open pull requests.

04

Verify

Tests, independent model review and gates. Failures go back for another round.

05

Approve

A person signs off on the release. Agents never deploy.

04 Today and next

What runs where

Dugnad runs on Gemini and Claude today, in our own Google Cloud project. AI inside Toparchy comes next.

Google Cloud · Dugnad · live

Builder lanes

Gemini builder lanes on Vertex AI, and the Compute Engine machine Dugnad runs on, in our own Google Cloud project.

Claude API · Dugnad · live

Manager, reviewer, rescuer

Claude as Dugnad's manager agent and independent reviewer, and the model that takes on the hardest units, on the first-party Claude API.

Both · Toparchy · planned

AI inside the game

Gemini on Vertex AI and BigQuery turn search trends, tourism seasons and event calendars into Surges. Claude gives voice to the Archivist, the game's narrator, and moderates player-named Corridors.