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.net and graph.doylet.net.

  • The warehouse. It runs at kpi.doylet.net, and since 12 Nov the weekly Cowork refresh submits to it with refresh: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

Two doors into one Worker; four modules, each with its own databasePeoplein a browser at theTracker or WorkbenchClauderemote MCP,the app's rulesSignals Graphlocal server;publishes evidenceKPI refreshweekly, Cowork;submits payloadsTeam Meetingsplan items, asthe person askingApp sign-inGoogle or Microsoft,an 8-hour sessionCloudflare Access: the mcp, kpi and graph hostsSigned-in operators and service tokens;machine use onlyservicebindingCloudflare Worker: product-toolsHost: holds no business recordsSays who is calling, picks the organisation's store, routes each request to the module that owns it.Serves the apps and MCP, answers what needs two modules, runs the daily backup and Monday collection.TrackerDelivery: cycles,initiatives, eventsOne per organisationWorkbenchStrategy: actions,policies, roadmapsOne per organisationWarehouseMeasurement: loads,checks, dashboardon kpi.doylet.netSignals GraphSignals, sources,review; still emptyon graph.doylet.netEach is a Durable Object with its own SQLite database, and reads another only through its contractR2: product-tools-backupsEvery store, daily at 16:00 UTC;60 days, plus one a monthR2: …-raw-payloadsThe warehouse's payloads,kept 400 daysTeam PlannerService bindings: who edits,and people cost in aggregate

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

Four module packages; only the Tracker imports another, and the host puts them togetherAppsapps/webThe page: the shell and each module's views.Builds to the Worker's static assets.apps/workerThe host: sign-in, routing, MCP, backups,and, for now, the Tracker's Durable Object.storage, viewsstorageShared by every clientcontract: every operation and query, composeddomain, shell: shared schemas and the page frameone waytracker, tracker-uiDelivery: rules, views,queries, MCP toolsworkbenchStrategy: rules, store,Durable Object, viewswarehouseMeasurement: store,Durable Object, pagesignals-graphSignals: store, DurableObject, HTTP and MCPpackages/record-storeVersioned records, change log, batches, undo, the request server, and the test adapterthat runs every module's tests on the same SQLite rules as the runtime

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

A write checks the other module first, then commits in one transactionBrowser or ClaudeHostWorkbench objectTracker objectDelete action, at version readRoute to the owning moduleWhich recordsuse this action?Records, and its change headOne transactionApply, check the rules, commit,or roll back all of itSaved with undo, or refusedSame answer, with revisionsChange pushed to open browsers

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.

OwnerRecord kindsHow the data gets there
Workbench (strategy)diagnosis, policy, action, idea, lane, laneSettings, audienceView, roadmapVersion, roadmapSettings, evidenceLinkEdited in the Workbench, over MCP, or accepted from a proposal
Workbench (read-only copy)evidenceReplaced whole by a publish from Signals Graph to POST /api/admin/evidence; no batch can change it
Tracker (delivery)cycle, initiative, event, snapshot, report, actionDeliveryEdited 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 recordPayloads 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 GraphSignals, sources, the review queue, priorities and the decision recordA replica refresh from the local server, which waits on the data-residency decision. Empty until then
Whichever owns the targetproposalSuggested 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.

ConcernWhat happens now
DeployA 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
BackupsDaily 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 retention60 days, plus the first backup of every month for good
Sign-inThe 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 rightsTeam 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 collectionThe 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 quotaThe 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
RestoreImport 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

The warehouse runs on the account; Signals Graph is the last piece to moveCloudflare account (free plan)product-toolsTracker, Workbench, Warehouse, Signals GraphFive hosts: tracker, workbench, mcp, kpi, graphFour Durable Objects, two R2 bucketsA Tracker and Workbench per organisationOne push to main tests and deploys it allteam-plannerplanner.doylet.net, its own D1 databaseSays who edits; sends people cost in aggregateteam-meetingsReads and writes the Tracker's plan itemsthrough a service binding, as the personsubmits weeklymoving next;publishes until thenKPI refreshCowork, on the other Mac;to kpi.doylet.net since 12 NovSignals Graph, localPublishes the evidence;replica waits on residencyRetiredroadmap-workbench Worker: deletedproduct-intelligence-core: supersededroadmap-workbench repo: archivedcycle-tracker: now product-tools

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.

  1. Switch the dashboard to the warehouse. host-warehouse-on-cloudflare has 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.

  2. Turn on the collectors. host-measurement-collection has 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.

  3. Move Signals Graph. host-signals-graph has 25 tasks open. The module is deployed and empty. It waits on two things: your data-residency decision (task 1.1), and adding graph.doylet.net to the Access application. On 29 Nov that host answered 401 with no Access sign-in page.

  4. 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.

  5. Show measurement on the roadmap. establish-product-intelligence-platform has 20 tasks open. The Workbench has shown outcome measures from the warehouse since 26 Nov; most of what remains needs step 1.

  6. Tidy up. These are small and can happen at any time:

    • Close add-strategy-storage-and-retirement in packages/workbench, which this work overtook.

    • Close task 13.1 of establish-product-intelligence-platform: the name settled on product-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-graph task 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.