Screen captures of the built pages, with invented people as example data; wireframes where a screen is not built yet. Nothing here sends anything.
Behind the screens · not one of the 15 pages

Architecture

One Render web service holds one deep module, the Community Radio API, and everything else is a client of it. The numbers are the pitch map's twelve components. Orange is built or in the first build; grey dashed is later; blue is Chuck's public site.

Drawn 2026-10-14 PT with the spec (#49); refreshed 2026-10-22 PT against what is on main: sign-in released from its hold (#59), mail live through Resend, the program directory built, one Person per email address (ADR 0007), and the compartments as the import check enforces them. On 2026-10-23 PT the public website was drawn as its own Render service, tbr-www (#228). Refreshed 2026-11-05 PT: sign-in built (#59), the check-in page moved onto tbr (#330), the licence ruled (#105), the daily job on Render, the layers as the import check holds them now, install by photo and Import photos (#485), and two changes to come, a typed position (#591) and a sign of the wrong colour (#601). Back to the map.

The twelve components and three seams

OUTSIDE THE SERVER Source files, read once TBR Trailheads sheet · map file Mailchimp export · patroller list 8 · Public website Chuck's site, its own service: tbr-www, a Render static site Map apps Gaia catalogue layer the pitch to Outside, later Skiers' phones scan a sign's QR code plan a trip from a sticker Admins, installers, stewards signed in on a phone Home Screen app at the trailhead Peer programs' tools a separate check-in app writes with a key, later SEAM 2 · the web: public reads with no key and no personal data; writes only signed in, or with a program's key later reads, dry run first GET zones, sign locations, events POST email sign-ups GeoJSON, GPX feeds; tiles later check in · plan asks and commands writes with a key tbr · RENDER WEB SERVICE · DJANGO 5 · Import one command, dry run, never undoes field work 2 · Public read API GeoJSON and JSON by program changed-since · no key 6 · Publishing feeds GeoJSON and GPX per program, served from the database 9 · Public pages planning page (#55) and check-in page (#330), both here 4 · Program admin pages Today, layouts A and B, tickets, depots, Import photos (#485) 3 · Management API the same objects, writable, one key per program · later SEAM 1 · the Community Radio API interface: the questions it answers and the commands it accepts, every one scoped by program · the test surface The Community Radio API · the one deep module Holds every program's data and rules. Nobody else keeps a copy; no page reads a table this interface would not serve. Programs · zones · channels · sign locations · trailhead signs · sign types · installs · sign tickets and depots People, one email address each · roles · steward approval · subscribers · do-not-mail · check-ins · events · mail · usage · short links Rules: nearest sign within 500 m · a stand-up never undoes field work · a check-in counts only for an approved steward or patroller · one Person per address 7 · Identity and keys email link and six-digit code, built (#59) · keys later 11 · licence: CC BY 4.0, ruled (#105) reads and writes; every row carries its program fetches, caches, enforces expiry fetches, keeps station and time sends mailings, sign-in links and reminders SEAM 3 · adapters: each outside source behind one interface, replaced by a fake in tests 1 · Data store · tbr-db one Postgres on Render; personal data here only encrypted daily copy kept off Render 12 · OUTSIDE SOURCES Avalanche forecast Sierra Avalanche Center via avalanche.org · no key Weather SNOTEL · SAC's map stations NWS forecast · no key Email sending Resend, from tahoebackcountryradio.org live since 2026-10-22 PT 10 · Directory of programs: three today Crest wind is read from the stations on SAC's map, from the station table (ADR 0008); OpenSnow is out. The season map's background is the print map's topo tiles (#62).
Twelve components, three seams. Every client, inside or outside the server, reaches the data only through the Community Radio API's interface. Splitting the API into its own service later is a deployment change along seam 1, not a rewrite (ADR 0003).
built, or in the first build later Chuck's public site a seam: where behaviour can change without editing the other side

The services on Render

The public website is not part of the Django service. It is a Render service of its own, tbr-www, with its own deploy, serving the files in site/public at tahoebackcountryradio.org. Like a map app, it is a client of the Community Radio API (ADR 0003).

A visitor's browser a phone or a laptop, no sign-in, no key runs the pages' scripts 1 · loads the pages HTML, CSS, scripts 2 · the pages' scripts ask the API GET zones, sign locations, channels, events POST email sign-ups, page views no key, no cookie reads and writes tbr-www Render static site · tahoebackcountryradio.org serves site/public, the committed files no code of its own, no database, no secrets its old check-in page sends on to tbr keeps an events list for when the API is quiet sends old WordPress links to their new pages no link between them: the browser makes every call to the API tbr Render web service · Django · tbradio.org the Community Radio API: read API, feeds, the planning and check-in pages (#330), sign-in, the installer and admin pages the only web service that reaches the database tbr-db Postgres 18 on Render · personal data here only reached by tbr, its daily job, and the backup A push to main deploys each service on its own: tbr builds, runs its migrations, then swaps in; tbr-www publishes site/public as committed; tbr-journey, this site, publishes journey/; tbr-event-reminders, the daily job, builds tbr's code.
tbr-www holds files only. Its pages ask the public read API from the visitor's browser (seam 2), at the same addresses a map app uses. When a live address does not answer, the zone pages read the publishing feeds instead, and the events page shows tbr-www's own copy of the events.
ServiceOn RenderWhat it serves
tbr
tbradio.org
web service, DjangoThe Community Radio API and every page of the application, the check-in page included (#330).
tbr-event-reminders
no address
cron job, daily at 00:00 UTC (4 PM PST, 5 PM PDT)The daily job, tbr's code: event reminders, the next batch of mailings, event banners, spare sign reminders.
tbr-db
no public address
Postgres 18Every program's data. Personal data is kept here and nowhere else.
tbr-www
tahoebackcountryradio.org
static siteThe public website, Chuck's site in site/, a client of the API. Its old check-in address sends people on to tbradio.org/checkin/.
tbr-journey
journey.tbradio.org
static siteThis journey site, from journey/.

Inside the module: the feature areas

The twelve components are plumbing. The things the program does live as feature areas inside the one module, each with its rules there and its screens above seam 1. No feature is a service of its own.

SCREENS AND ENDPOINTS · the clients above seam 1 Read API and feeds zones · sign locations events · changed-since Planning page trailheads · channel · map forecast · snow Check-in page nearest sign · conditions offline save · live Installer pages tickets · take · pickup install · by photo Admin layouts A and B Today · map · work list record · Import photos People admin approval · list · delete steward check-in report A person's own pages check-ins · sign-ups name · tickets · installs Event pages list · page · sign-up reminders · calendar SEAM 1 · every screen and endpoint asks the module; the module decides The Community Radio API, opened up: eight feature areas, one Postgres, every row scoped by program Terrain and radio zones, channels, privacy code, out-of-zone channel sign locations, huts Served by: read API, feeds, planning, check-in built · #51 #52 #53 Sign season trailhead signs, sign types (colour plus support) sign state, installs, by photo, sign tickets open and close the season Served by: installer pages, admin A and B, check-in to come: typed position, wrong colour built · #63 #65 #485 Depots and stock three depots stock per sign type pickup button, override recount, one-left alert Served by: installer pages (pickup), admin built · #64 People and roles one Person per address admin, steward approval, patroller, installer interests, subscriber, do-not-mail Served by: people admin, sign-in, own pages #59 #60 #67 #187 Check-ins and reports check-in matched to the nearest sign, by email or anonymous Trail Steward Reports with weather steward check-in report Served by: check-in page, people admin, own pages #54 #67 #68 #70 Conditions avalanche forecast, cached, expiry enforced station readings adapters behind seam 3 Served by: planning and check-in pages, reports #56 #70 Mail and short links mailings, confirmations, sent-mail list (Resend) short links, /t… codes, kept in the admin only Served by: admin, every email, redirects built · #57 #120; cap #170 Events activities, events, equipment docs sign-ups, cancel confirmation, reminder, .ics Served by: event pages, admin, email built · #260–#262 Install ticketing is the Sign season area plus Depots and stock. The site's own survey (#32), usage counting and the front-page banners (#403) sit beside these, all built.
The module opened up. Each feature area is a compartment of the same module and the same database, not a service. The screens above seam 1 are thin; the rules are below it.

Seam 4 · between the compartments

Inside the module the compartments are kept apart the way the module is kept apart from its callers: each has one interface, its tables are private, and dependencies run one way down a fixed order. The import check in every test run fails the build when a compartment reaches across or upward (ADR 0005). The layers below are the ones that check enforces on main today.

LAYER ORDER · each layer may call only the layers below · each box is one Django app · blue: the clients Layer 8 configsettings, addresses, every page's route, /healthz Layer 7 importsstand-up, people planningplanning page seasonmapseason map adminviewadmin pages installerviewsign ticket pages pagehelp? help wikiviewshelved Layer 6 feedsGeoJSON and GPX files Layer 5 apiread API, writes, explorer Layer 4 checkinscheck-ins · steward report patrolTrail Steward Reports depotsdepots · stock bannersfront-page banners Layer 3 signssigns · installs · tickets eventsactivities · events identitysign-in · roles surveysthe site's survey Layer 2 mailsending · mailings · sent-mail list Layer 1 terrainzones · locations shortlinkslinks · /t… codes conditionsforecast · readings usageusage · page views peoplepersons · emails wikishelved tbsppagesshelved Layer 0 programs Program · out-of-zone channel · privacy code · sign colours · every compartment depends on this and only calls downward Grey dashed: the Patrol wiki and the tbsp.org pages, still in the code but shelved on 2026-11-03 PT; the Patrol runs its own, on GitHub Pages. Nothing calls upward, so nothing cycles.
Nine layers, calls downward only. The rule is checked on every test run, so a reach across or upward fails the build instead of waiting for a reviewer to notice.

One interface each

A compartment exposes one service module of plain functions. Models and tables stay inside; another compartment refers to a row by id.

Downward calls, no events

Every cross-compartment effect we know of runs downward, so direct calls suffice. Domain events are the named fallback in ADR 0005.

Tests follow the interfaces

A compartment is tested through its own interface with the compartments below it real and the adapters faked.

The three seams

Seam 1 · the API's interface

The questions the module answers and the commands it accepts, each scoped to a program. Import, the read API, the feeds, the public pages and the admin pages cross it; tests cross it where callers do.

Change behind it: a table, a rule, the matching distance. Nothing above notices.

Seam 2 · the web

Public reads with no key and no personal data, from any origin, so Chuck's site and a map app can read them. Public writes are narrow (a check-in, an email sign-up); everything else needs a signed-in person.

Change behind it: move the API to its own service, add tiles. Addresses stay.

Seam 3 · the adapters

Each outside source sits behind one small interface: avalanche forecast, station readings, email. Tests replace each with a recorded fake, including an expired forecast and a silent station.

Change behind it: swap a weather source, with no change to a page.

The public read API

Every address names the program (ADR 0002). The live explorer at tbradio.org/api/ documents each one; this is the map of them.

AddressReturnsWho uses itState
GET /api/v1/programs.jsonThe directory of programs (component 10): tbr, front-range and red-mountain today.Map apps, other programsbuilt
GET …/programs/tbr/zones.geojsonThe 23 zone outlines with name, colour, channel and privacy code.Chuck's site, the planning page, map appsbuilt
GET …/programs/tbr/sign-locations.geojsonThe 55 trailheads and huts with zone and sign counts by sign state, and each sign with its type, state and sign position.Chuck's site, the check-in page, the planning pagebuilt
GET …/programs/tbr/channels.jsonEach colour's channel and privacy code, and the out-of-zone channel.Chuck's legend, the planning pagebuilt
GET …/programs/tbr/events.jsonThe events list, typed in the admin.Chuck's events pagebuilt
GET …/programs/tbr/conditions.jsonEach trailhead's weather stations and avalanche forecast zone, with what each shows now.The planning page, the check-in pagebuilt
GET …/programs/tbr/banner.jsonThe banner the website shows under its top bar now, if one is on.Chuck's sitebuilt
GET …/programs/tbr/sources/<file>The committed files the program was stood up from.A program bringing its own databuilt
…?changed_since=<time>Only what changed after that time.Map apps keeping a copy freshbuilt
GET /feeds/tbr/zones.geojson · zones.gpx · sign-locations.geojsonThe publishing feeds, files anyone can download.GPS units, map apps, old WordPress linksbuilt
POST …/programs/tbr/check-insA check-in from the check-in page, anonymous or by email.The check-in pagebuilt
POST …/programs/tbr/subscribeAn email sign-up, confirmed by email.Chuck's sitebuilt
POST …/programs/tbr/installsAn install record, signed in only.The install page (#65), install by photo (#485)built
POST …/programs/tbr/take-downsA sign taken down for the summer, signed in only.The install page (#432)built
POST …/programs/tbr/steward-reportsA Trail Steward Report, signed in only.The Trail Steward Report page (#428)built
POST …/usage · …/page-viewsCounts with no personal data: what a phone did on a screen; page opens.The pages themselvesbuilt
POST, PUT … with a program keyThe management API (component 3).A peer program's toollater
GET /tiles/… and TileJSONZone tiles for Gaia's catalogue layer.Gaialater

Never on this API: AHJ contacts, people, check-ins as a list, Trail Steward Reports, depot addresses. Those stay behind the admin pages.

The twelve components, and where each stands

#ComponentWhat it isState
1Data storeOne Postgres on Render; every row carries its program; personal data here and nowhere else. An encrypted copy is taken daily off Render.built
2Public read APIGeoJSON and JSON by program, changed-since, no key, no personal data.built
3Management APIThe same objects, writable, one key per program.later
4Program admin pagesToday (#465), layouts A and B, a sign location's record, tickets and depots, people and roles, the install page with install by photo, and Import photos (#485). Django's admin stays for raw fixes. To come: typing a sign's position when a photo has none (#591), and a sign of the wrong colour recorded, warned of and replaced (#601).built 2 to come
5ImportOne command with a dry run; a stand-up never undoes field work (ADR 0006).built
6Publishing feedsGeoJSON and GPX per program; KML and tiles later.built
7Identity and keysThe email link and six-digit code, signed in until September 1 (ADR 0004, #59); program keys later.built
8Public websiteChuck's static site, in this repo, published by its own Render service, tbr-www, at tahoebackcountryradio.org. A client of the read API, with the feeds and its own events list to fall back on; its old check-in address sends people on to tbradio.org (#330).live
9Public pagesThe check-in page (#54) and the planning page (#55, #56), with live conditions, both served by tbr since #330. To come: both warn skiers when a trailhead's sign is the wrong colour (#601).built 1 to come
10Directory of programsHow a map app finds every program the API holds.built
11Licence and termsThe API's data under CC BY 4.0, ruled 2026-10-16 PT (#105): credit the program named in the directory.ruled
12Outside sourcesAvalanche forecast (avalanche.org), SNOTEL readings, the stations on SAC's map and the NWS forecast, each trailhead's named in the station table (ADR 0008), and email through Resend, each behind an adapter.built

Where this is written down