Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
Feature run: Browser push notifications (Web Push) for the ERP
- Date: 2026-10-08
- Mode: fully-autonomous
- Request: "i wanna go with option 2" (Web Push, which works when the browser is closed), then "yes go ahead with /feature".
- Phase plan: research [skip — the requirements are clear and this is not ERP domain logic] · spec [run — new table, migration, dependency, service worker and channel across 3 packages] · plan [run] · execute [run] · test [skip — the user chose not to run it; push delivery needs a manual check] · self-review [run]
Agreed decisions (from the user, before the run)
- No plan gate. Push is free for all plans, like the in-app bell.
- Add
web-pushas a dependency of@carbon/jobs. - ERP only. MES has no notification UI.
- The user turns on push per device at Account → Notifications. Each topic gets a "Browser" switch next to Email and Slack.
- Carbon sends one push per notification when it creates it. Push has no digest.
- If the VAPID env vars are missing, Carbon skips the push channel and hides the control.
- If the push service returns 404 or 410, Carbon deletes the subscription.
- Each deployment has one VAPID key pair in env vars.
- Carbon commits or pushes only when the user asks.
Decisions
- Spec gate: the run resolved 7 open questions from codebase precedent. The spec marks each one Autonomous. No question is in Ask-First territory: the subscription table keeps
companyId, and the user approved theweb-pushdependency. — 2026-10-08 - Plan gate: the run approves the plan. It covers every acceptance criterion. Task 15 holds a manual browser checklist because the run skipped
/test. — 2026-10-08 - Review gate: the run fixed the 1 must-fix item. If a
notifyrun is in flight across the deploy, it replays the old step output with nopushRecipientIds, and.lengththrows. The run now defaults the value to[]. It left the risks and suggestions to the user. — 2026-10-08
Phase log
- spec:
.ai/specs/2026-10-08-web-push-notifications.mdwritten. STE-80 pass done. - plan:
.ai/plans/2026-10-08-web-push-notifications.mdwritten, 15 tasks. STE-80 pass done. - execute: 15 tasks done. Nothing committed: the user asks for each commit.
- Deviation 1:
packages/notifications/src/index.test.tspinned the old channel list["email", "slack"]. The run updated that assertion to include"push". - Deviation 2:
pnpm add web-pushalso re-resolved unrelated peer dependencies inpnpm-lock.yaml. The run kept only the 49web-pushlines.pnpm install --frozen-lockfilepasses. - Deviation 3:
generate:mcpchangedtool-manifest.digest.json, becauseupsertNotificationPreferencenow acceptspush. None of the 3 new functions became a tool. pnpm db:check:backupsskipped: the local stack was not running./testskipped by the user. The manual checklist is below.
- Deviation 1:
- self-review: 1 must-fix item, fixed (above). 5 risks and 4 suggestions go to the user. The
@carbon/jobstypecheck passes after the fix. - After the run, with the user testing in Edge on macOS:
push-worker.js: macOS replaced a notification with the same tag silently, so the worker now shows each push under a fresh identifier.- The bell offers "Enable browser notifications" (a soft ask), with Not now snoozing it per browser.
- Browser notifications became a setting of the browser. One row per endpoint, pushes from every company the user belongs to, and a stop on every sign-out path (
clearAuthCookiesand thecarbon-pushcookie). The next user to sign in gets their own notifications with no prompt. - Three more self-reviews. They added
restoreStepwith tests, theVAPID_SUBJECTcheck, theuserIdmatch insend-push, the folded migration, and the doc and lesson updates. The spec records each change in its changelog.
Manual browser checklist
- Restart the ERP and the Inngest dev server. The VAPID pair is derived from
SESSION_SECRET; there is nothing to set (2026-10-09). - Open Account → Notifications. Click Enable and allow the prompt.
- Close every Carbon tab. Assign a job to the user from a second account. Expect "Job assigned to you".
- Click Disable. Expect 0
pushSubscriptionrows for the endpoint. - Enable again, sign out, and sign in as another user. Expect that user's notifications with no prompt, and none of the first user's.
- If no banner appears although
send-pushreturns201, check macOS: System Settings → Notifications → Microsoft Edge allows banners, and no Focus mode is on.
Outcome
- Built and verified. Push works end to end in Edge on macOS. The user committed each round on
naveenkash/carbon-browser-notifications, and every commit is pushed. - Done: the local migration repair for the folded migration, and PR #1867 with the
Tracking spec:line. - Later changes at the user's request: push mirrors in-app (no per-topic switch, no event filter), and the "Send a test notification" button is removed.
- Open: screenshots for the PR, and moving the spec to
implemented/after merge.