Design the system.
Agents write the code.
Half an Architect is an architecture board whose output is code. Lay out your backend from typed, configured blocks, and agents build it into your repository, one pull request at a time.
Access is by invitation for now.
presentation
logic
data
pricing hits postgres on every quote. Cache the rules in redis?
- DATABASE_URL
- REDIS_URL
- SENSOR_CA_CERT
- PAYMENTS_KEY
- PAYMENTS_MOCKtest
presentation
logic
Scanners need the venue wifi to let anyone in. Check tickets offline?
data
- DATABASE_URL
- REDIS_URL
- KAFKA_BROKERS
- HOLD_MINUTES
- PAYMENTS_MOCKtest
presentation
logic
Rankings update inside the 30 Hz tick. Move them off it?
data
- DATABASE_URL
- REDIS_URL
- KAFKA_BROKERS
- TICK_RATE
- ANTICHEAT_MOCKtest
From board to repository.
Follow one system from its first block to a pull request. Scroll, or pick a step.
Compose the system from typed blocks.
APIs, objects, data access, databases, integrations and environments. Each block carries real settings, and its connections say what it may call. Together they are the spec.
Think in three layers.
Presentation takes requests, logic holds the business, data reads and writes. Use the patterns you already trust; the agents follow them and bring good practice of their own.
Review the design with Assist.
Assist reads the whole board and answers at system level. It can propose blocks, and nothing lands on the board until you approve it.
Agents build it layer by layer.
Foundation, API, data, logic, then the entry point. Each agent writes the files for its own blocks.
Every file where you would look for it.
The repository mirrors the board, so you know where the code is before you open it. Point at a block to see its files.
Change the board, and only that code changes.
Edit one block and the next build touches the files that belong to it. No change on the board means no change in the code.
Compose the system from typed blocks. APIs, objects, data access, databases, integrations and environments. Each block carries real settings, and its connections say what it may call. Together they are the spec.
Think in three layers. Presentation takes requests, logic holds the business, data reads and writes. Use the patterns you already trust; the agents follow them and bring good practice of their own.
Review the design with Assist. Assist reads the whole board and answers at system level. It can propose blocks, and nothing lands on the board until you approve it.
Agents build it layer by layer. Foundation, API, data, logic, then the entry point. Each agent writes the files for its own blocks.
Every file where you would look for it. The repository mirrors the board, so you know where the code is before you open it. Point at a block to see its files.
Change the board, and only that code changes. Edit one block and the next build touches the files that belong to it. No change on the board means no change in the code.
presentation
logic
data
- DATABASE_URL
- REDIS_URL
- SENSOR_CA_CERT
- PAYMENTS_KEY
- PAYMENTS_MOCKtest
Blocksbaywatch
- API
- Object
- Data access
- Database
- Stream
- Integration
- Environment
- Block
- driverapi API on presentation
- Settings
- fastifybearer
- Calls
- reservations
- Becomes
- src/
modules/ src/driverapi/ routes.ts modules/ src/driverapi/ ports.ts modules/ driverapi/ middlewares/ authenticate.ts
Drag a block onto its layer, connect it, set its options. That is the whole spec.
Assistreads the whole board
Review the system. Anything that breaks at scale?
pricing reads every zone's rules from postgres on each quote. On event days that's thousands of queries a second against the same rows. Cache the rules in the redis you already run for the live map?
baywatch/24 files
Board changepricing gets a second strategy: event-day rates
- parkingdb
- init
- 01_schema.sql
- src
- app
- app.ts
- config
- config.ts
- modules
- baystore
- bayStore.ts
- pool.ts
- driverapi
- middlewares
- authenticate.ts
- ports.ts
- routes.ts
- livemap
- liveMap.ts
- occupancy
- occupancyService.test.ts
- occupancyService.ts
- operatorws
- handlers.ts
- ports.ts
- payments
- paymentsClient.mock.ts
- paymentsClient.ts
- pricing
- eventDayStrategy.ts+
- pricingStrategy.test.ts+
- pricingStrategy.ts~
- ratecache
- rateCache.ts
- reservations
- reservationService.ts
- sensorintake
- middlewares
- verifyDevice.ts
- ports.ts
- routes.ts
- main.ts
- .env.example
- docker-compose.yaml
presentation
logic
data
- DATABASE_URL
- REDIS_URL
- KAFKA_BROKERS
- HOLD_MINUTES
- PAYMENTS_MOCKtest
Blocksencore
- API
- Object
- Data access
- Database
- Stream
- Integration
- Environment
- Block
- storefront API on presentation
- Settings
- fastifylimit
- Calls
- waitingroom
- Becomes
- src/
modules/ src/storefront/ routes.ts modules/ src/storefront/ ports.ts modules/ storefront/ middlewares/ rateLimit.ts
Drag a block onto its layer, connect it, set its options. That is the whole spec.
Assistreads the whole board
Review the system. Anything that breaks at scale?
Gate scanners call orders over the venue's wifi. When it drops, nobody gets in. Give scanners a signed ticket list they can check offline?
encore/28 files
Board changeseat holds drop from 8 to 5 minutes on sale day
- orderbus
- init
- 01_topics.sh
- src
- app
- app.ts
- config
- config.ts~
- modules
- checkoutapi
- middlewares
- authenticate.ts
- ports.ts
- routes.ts
- gatescan
- ports.ts
- routes.ts
- inventory
- inventoryService.ts~
- orderevents
- orderEvents.ts
- orders
- orderService.test.ts
- orderService.ts
- orderstore
- orderStore.ts
- pool.ts
- payments
- paymentsClient.mock.ts
- paymentsClient.ts
- seatlocks
- seatLocks.ts
- storefront
- middlewares
- rateLimit.ts
- ports.ts
- routes.ts
- ticketsigner
- ticketSigner.test.ts
- ticketSigner.ts
- waitingroom
- waitingRoom.test.ts
- waitingRoom.ts
- main.ts
- ticketsdb
- init
- 01_schema.sql
- .env.example~
- docker-compose.yaml
presentation
logic
data
- DATABASE_URL
- REDIS_URL
- KAFKA_BROKERS
- TICK_RATE
- ANTICHEAT_MOCKtest
Blockslastlight
- API
- Object
- Data access
- Database
- Stream
- Integration
- Environment
- Block
- adminapi API on presentation
- Settings
- fastifysso
- Calls
- progression
- Becomes
- src/
modules/ src/adminapi/ routes.ts modules/ adminapi/ ports.ts
Drag a block onto its layer, connect it, set its options. That is the whole spec.
Assistreads the whole board
Review the system. Anything that breaks at scale?
Match results update rankings inside the session tick. One slow query stalls the match for every player in it. Move rankings off the tick and feed them from the match events stream?
lastlight/30 files
Board changematchmaking widens skill buckets after 45 seconds in queue
- gamedb
- init
- 01_schema.sql
- matchbus
- init
- 01_topics.sh
- src
- app
- app.ts
- config
- config.ts
- modules
- adminapi
- ports.ts
- routes.ts
- anticheat
- antiCheatClient.mock.ts
- antiCheatClient.ts
- gameclient
- middlewares
- verifySession.ts
- handlers.ts
- ports.ts
- leaderboards
- leaderboardService.test.ts
- leaderboardService.ts
- lobbyapi
- middlewares
- authenticate.ts
- ports.ts
- routes.ts
- matchevents
- matchEvents.ts
- matchmaking
- matchmakingService.ts~
- skillBuckets.ts
- widenStrategy.test.ts+
- widenStrategy.ts+
- playerstore
- playerStore.ts
- pool.ts
- progression
- progressionService.ts
- resultsfeed
- resultsFeed.ts
- sessions
- sessionService.test.ts
- sessionService.ts
- sessionState.ts
- sessionstate
- sessionState.ts
- main.ts
- .env.example
- docker-compose.yaml
Outgrown one system? Draw a boundary.
Systems start small and grow fast. When one stops making sense, zoom out and draw a boundary around each API and what it needs. Every boundary becomes a system of its own.
systems/lobbytypescript
systems/realtimego
systems/backofficetypescript
- LOG_LEVEL
- OTEL_ENDPOINT
- JWT_ISSUER
- REGION
systems/lobby/typescript
- Dockerfile
- docker-compose.yaml
- .env.example
- gamedb/init/01_schema.sql
- src/modules/lobbyapi/
- src/modules/matchmaking/
- src/modules/playerstore/
- src/modules/sessionview/
- src/main.ts
systems/realtime/go
- Dockerfile
- docker-compose.yaml
- .env.example
- matchbus/init/01_topics.sh
- src/modules/gameclient/
- src/modules/sessions/
- src/modules/anticheat/
- src/modules/sessionstate/
- src/modules/matchevents/
- src/main.go
systems/backoffice/typescript
- Dockerfile
- docker-compose.yaml
- .env.example
- src/modules/adminrpc/
- src/modules/progression/
- src/modules/leaderboards/
- src/modules/resultsfeed/
- src/modules/rankings/
- src/main.ts
systems/lobby typescript
- lobbyapi
- matchmaking
- playerstore
- sessionview
- gamedb
systems/realtime go
- gameclient
- sessions
- anticheat
- sessionstate
- matchevents
- sessioncache
- matchbus
systems/backoffice typescript
- adminrpc
- progression
- leaderboards
- resultsfeed
- rankings
- rankcache
lastlight is made up for this page.
Six people, six readings of the same code.
Teams get reshuffled and directions change. The people who knew why leave, and the reasons leave with them. After that everyone reads the code their own way and nobody owns it. A board is one picture of the whole system, and everyone reads the same one. Change it and the code follows.
The coderead by six people
The boardread by six people
It's still your code.
Read it, change it, push to it. Every build lands as a pull request for you to merge or turn down. Disagree with something? Open a pull request of your own and say why. Half an Architect picks up the reasoning and builds with it from then on.
- build-3f1c08a2board: expire reservation holds
- your PR #4“Debounce the transition. Sensors flap at dusk.”
- build-91be44d0board: add cache for pricing
- build-c27a5e19Your debounce change is already part of the system
An example history for baywatch.