Team roadmap

A product manager owns one roadmap Collection. Engineering and leadership each use their own app on top of it. Nobody copies the data, and no app can do more than its owner approved.

It is ordinary workspace source. Copy the folder, then change the rules or the screens.

What's in it

FolderWhat it is
roadmap/The Collection: milestones and items in schema.sql, ten operations in operations.js, declared in dataset.json.
roadmap-pm/The product manager's app. Add items and milestones, set priority and milestone, archive and restore.
eng-triage/Engineering's app. Estimate new items, then start, finish, or reopen planned work.
exec-rollup/Leadership's app. Progress by status, milestone, and area.

Each app keeps all of its source in its own folder, so each one publishes, shares, and changes on its own.

The rules

An item moves new → triaged → planned → in_progress → done. The operations hold that order, whichever app or agent calls them:

Who can do what

Two checks apply to every call. The app's binding in its app.publish.json lists the operations that app can ask for, even for the owner. The operation's access says who may run it: owner is the product manager, helper needs a data grant from the owner, and link is anyone who can open an app that binds it.

OperationAccessroadmap-pmeng-triageexec-rollup
listItemshelper✓✓
rolluplink✓✓
createItem, importItems, createMilestone, planItem, archiveItem, restoreItemowner✓
triageItem, updateStatushelper✓

So exec-rollup makes no writes and sees only totals, never titles, notes, or people. eng-triage can't archive or plan, even when the product manager opens it.

Some things to know before you share it:

Try it

  1. Copy this folder into a workspace as team-roadmap, so the apps find team-roadmap/roadmap/dataset.json.
  2. Publish team-roadmap/roadmap-pm and approve the Collection. Select Load sample roadmap.
  3. Publish team-roadmap/eng-triage and team-roadmap/exec-rollup, and approve each binding.
  4. Share eng-triage with each engineer by name. Then give each engineer's share a data grant for listItems, triageItem, and updateStatus with dohc dataset setGrant. dohc dataset describe lists the operation IDs.
  5. Share exec-rollup with leadership. Share links don't get change events, so leaders select Refresh for the latest totals.

Tests and benchmark

team-roadmap-example.test.ts calls each app's operations through that app's own binding, against one Collection, through the real host, worker, and QuickJS sandbox. It doesn't render the screens. It checks that changes from product and engineering show up in the rollup, that every operation outside an app's binding or a person's grant is refused without a history entry, and that each change records the person and app behind it.

The benchmark seeds 5,000 items and runs a mixed read and write load at 10 and 30 concurrent callers. It prints latency percentiles, throughput, and where the time goes: host SQLite and JS, worker SQLite, QuickJS start, guest code, checkpoints, and IPC. It doesn't run in CI. From packages/app-backend-runtime:

pnpm bench:team-roadmap            # 2,000 operations per run at 10 and 30 callers
pnpm bench:team-roadmap 4000 1,10,30

To typecheck the apps, run pnpm exec tsc --noEmit -p tsconfig.team-roadmap.json from apps/desktop.