Product tools: current architecture and what's next
In short
Product tools is one repository, doylet/product-tools, deployed as one Cloudflare Worker named product-tools. It now holds four modules: the Tracker (delivery), the Workbench (strategy), the KPI warehouse (measurement) and Signals Graph. Each module has its own Durable Object and SQLite database, its own write rules and its own part of the contract. The host in front of them holds no business records: it says who is calling, picks the right store, routes each request and answers the few questions that need two modules.
Three things changed since 2 November:
Sign-in. People sign in to the Tracker and the Workbench with Google or Microsoft through the app's own OIDC flow (15 Nov). Cloudflare Access now guards only the machine hosts:
mcp.doylet.net,kpi.doylet.netandgraph.doylet.net.The warehouse. It runs at
kpi.doylet.net, and since 12 Nov the weekly Cowork refresh submits to it withrefresh:hosted. It can also collect Jira, HubSpot, Slack and Power BI itself on a Monday cron, but none of those collectors has its service account yet.Organisations. Team Planner now decides who edits, and each Team Planner organisation gets its own Tracker and Workbench store. The existing data is Obzervr Product's.
The running system
Nothing reaches a store without a known caller. On the two app hosts that is a signed session cookie from the app's own Google or Microsoft sign-in; the Worker refuses an Access token there. On the three machine hosts it is a Cloudflare Access login or service token. Team Meetings comes in through a service binding, which has no public address. The workers.dev address stays off, because it would bypass both doors.
The code
The Tracker reads strategy's schemas from the Workbench, and that dependency runs one way only. The warehouse and Signals Graph import no other module: they read strategy and delivery only by asking the host. scripts/check-boundaries.mjs runs in the tests and fails the build if a package reaches into another module. The Tracker's Durable Object is the one class still in apps/worker; the module-interface plan moves it into its package.
How a write works
If the Tracker reports that records use the action, the delete is refused with "retire it instead". The Tracker's writes work the same way in the other direction. A batch that changes both modules' records is refused, because no single transaction covers two databases, so clients send one batch per module.
Who owns which records
Every record kind has one owner. A module reads another module's records only through what that module answers, and never writes them.
| Owner | Record kinds | How the data gets there |
|---|---|---|
| Workbench (strategy) | diagnosis, policy, action, idea, lane, laneSettings, audienceView, roadmapVersion, roadmapSettings, evidenceLink | Edited in the Workbench, over MCP, or accepted from a proposal |
| Workbench (read-only copy) | evidence | Replaced whole by a publish from Signals Graph to POST /api/admin/evidence; no batch can change it |
| Tracker (delivery) | cycle, initiative, event, snapshot, report, actionDelivery | Edited in the Tracker, over MCP, or accepted from a proposal |
| Warehouse (measurement) | Relational tables, not record kinds: load runs, the dimensional model, data-quality results, the released dashboard, the access record | Payloads submitted by the weekly refresh, or collected by the Monday cron; strategy and delivery read through their contracts. Nobody may write it by batch |
| Signals Graph | Signals, sources, the review queue, priorities and the decision record | A replica refresh from the local server, which waits on the data-residency decision. Empty until then |
| Whichever owns the target | proposal | Suggested by a person or an automated source, and applied only when someone accepts it |
A coherent action in use can't be deleted, only retired, which takes it off the roadmap and keeps every link to it.
Running it
A push to main is the only routine way code reaches production, and it stops if any check fails.
| Concern | What happens now |
|---|---|
| Deploy | A push to main runs tests, typecheck and the e2e suites, then runs the previous build and this one on the same stored data and expects the same answers, then deploys. There are no PRs |
| Backups | Daily at 16:00 UTC (02:00 Brisbane) to the R2 bucket product-tools-backups: one prefix per organisation's store, plus the warehouse and Signals Graph. A day is skipped when nothing has changed |
| Backup retention | 60 days, plus the first backup of every month for good |
| Sign-in | The Tracker and the Workbench run their own Google and Microsoft OIDC sign-in, with an 8-hour session cookie. One Cloudflare Access application covers the mcp, kpi and graph hosts. The workers.dev address is off |
| Editing rights | Team Planner says, module by module, who edits in each organisation, and viewers can ask to edit from the app. EDITOR_EMAILS always edit. Outside a Team Planner organisation, obzervr.com addresses may view, and anyone else who signs in sees only roadmaps published for them. The warehouse and Signals Graph each have their own rule, and nobody holds a permission there unless named |
| KPI collection | The weekly Cowork task submits payloads. A Monday cron (20:00 UTC Sunday, 06:00 Brisbane) can collect sources itself, but ProjectWorks and delivery are paused and the other collectors have no service account yet, so it collects nothing today |
| Account quota | The account is on the free plan, and Durable Object rows are counted across every module. The warehouse stops itself at 2 million rows read and 40,000 written a day; check its usage route before any bulk load |
| Restore | Import works only into an empty store, so a restore goes to a new TRACKER_NAME. The Worker README has the drill |
Backups hold every record except the evidence copy, which comes from Signals Graph and would be published again after a restore. Evidence links are included.
The other apps and projects
Team Planner stays its own Worker and D1 database, as decided, but product-tools now calls it through two service bindings: one says who edits, the other sends people cost in aggregate. The unused roadmap-workbench Worker is gone from the account. The other Workers on the account (homesite, mcp-proxy, community-research, community-research-backend, lean-ux-canvas, folio, signals-portal, personal-os, team-planner-design-system) aren't part of this work, so they aren't drawn.
What's next
Finish the warehouse's switch-over first: the hosted store already takes the weekly loads, and measurement on the roadmap waits on it. Every step that loads data shares the account's free-plan quota with the Tracker and the Workbench.
Switch the dashboard to the warehouse.
host-warehouse-on-cloudflarehas 7 tasks open. Its task list was last ticked on 3 Nov, though the refresh has submitted to the host since 12 Nov. Tick 7.4 once a scheduled run has reported both paths, then do 7.5: release the dashboard from the host after the agreed number of clean weekly runs. 8.1 and group 9 wait on Signals Graph.Turn on the collectors.
host-measurement-collectionhas 11 tasks open. Jira, HubSpot, Slack and Power BI each need a service account first (tasks 1.1 to 1.4; Power BI's comes from Obzervr IT), then one run beside a Cowork submission before the cron takes it over.Move Signals Graph.
host-signals-graphhas 25 tasks open. The module is deployed and empty. It waits on two things: your data-residency decision (task 1.1), and addinggraph.doylet.netto the Access application. On 29 Nov that host answered 401 with no Access sign-in page.Finish the module-interface plan. Stories US-001 to US-003 are on
main: the tests now run the real objects behind the host's routing, and each deploy is checked against the previous build's data. US-004 to US-011 change running code: they move the Tracker's Durable Object into its package, make the warehouse a door module and deploy.Show measurement on the roadmap.
establish-product-intelligence-platformhas 20 tasks open. The Workbench has shown outcome measures from the warehouse since 26 Nov; most of what remains needs step 1.Tidy up. These are small and can happen at any time:
Close
add-strategy-storage-and-retirementinpackages/workbench, which this work overtook.Close task 13.1 of
establish-product-intelligence-platform: the name settled onproduct-tools.Rename what MCP clients see: the server still calls itself
product-intelligence.Finish the last 2 tasks of
add-audience-roadmaps-and-lanes.
Decisions for you:
What data may Signals Graph's hosted copy hold: which sensitivity levels move in full, which move without their full text, and what its backups may keep? Nothing is imported until you record this (
host-signals-graphtask 1.1).How many clean weekly runs before the dashboard switches to the warehouse? The plan's design defaults to three and leaves the number to you; confirm it or change it.
Decided since 2 November: Team Planner stays separate, and the unused roadmap-workbench Worker is deleted.