Revenue local dev mesh commitments are complete with synthetic data and local bootstrap proof
What changed
Revenue completed the five local dev mesh commitments declared in 2026-05-22-revenue-local-dev-mesh-commitments. The commitment memo frontmatter has been flipped from pending to completed.
The Revenue repo now has local mesh commands for env safety, deterministic synthetic seed data, real dispatcher proof, cron inventory, cron smoke, bootstrap, and port 3005 dev startup. Local mutable commands require .env.local or explicit mesh process env and reject production-looking DSNs by default.
The synthetic seed covers fake commercial state only: client and Person references, credit account, provider bridge rows, orders and order items, paid and open payment paths, reservations across funding and lifecycle states, ledger entries, refunds, webhook and provider rows, idempotency rows, dispatcher proof rows, and Delivery inbox proof paths. No production customer data is required for localhost Revenue work.
Local database
Revenue verified the mesh against a local Postgres target on localhost. The local .env.local is gitignored and points Revenue DATABASE_URL and DIRECT_URL at a local database with ?schema=revenue. The app mesh port is 3005.
Verification
Revenue verified:
npm run mesh:bootstrap, including env guard, Prisma generate, Prisma db push, synthetic seed, dispatcher proof, cron smoke, and happy-path commercial flow check.npm run typecheck.npm test, 35 files and 166 tests passed.npm run dispatcher:smoke.npm run mesh:cron:inventory.- Coordination
npm run index. - Coordination
node scripts/check-indexer-fresh.mjs.
Notes
The dispatcher proof uses @sguild/dispatcher with the Revenue Prisma client and inserts real dispatcher_event rows. The default proof includes credit.released schema version 2 and excludes schema version 1.
The cron smoke invokes the route handlers with a local CRON_SECRET and verifies reservation locking and unpaid release, idempotency cleanup, and lesson-completion reconciliation against seeded rows.
References
- Commitment plan:
2026-05-22-platform-local-dev-mesh-commitment-plan - Revenue commitment memo:
2026-05-22-revenue-local-dev-mesh-commitments - Revenue local mesh docs:
revenue/docs/local-dev-mesh.md - Revenue mesh bootstrap command:
npm run mesh:bootstrap