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
Slack single source of truth — implementation plan (executed)
Spec: .ai/specs/implemented/2026-09-01-slack-single-source-of-truth.md · Run log: .ai/runs/2026-09-01-slack-single-source-of-truth.md
Branch: feat/active-pieces-integration
Progress
- Task 1: Allowlist types (
accountLabel.path,metadata) + Slack row (16 scopes, metadata map) - Task 2:
connectionMetadataFrom/accountLabelFromBody+ tests - Task 3:
ExchangedTokens.body+readConnectionAccessToken+ tests - Task 4: Callback uses body-derived label + metadata
- Task 5: Migration
20260901173100_slack-connections-single-source.sql(hardened after review: user-validatedcreatedBy, vault read before insert,Expiredwhen tokenless,Revokedwithout secret, partial index, no webhook URL) - Task 6: Slack service —
getSlackWorkspace,getSlackWorkspaceByTeamId(+AmbiguousSlackWorkspaceError),getSlackAuthon connections - Task 7: Jobs —
send-slack.ts(token resolved inside the single step),slack-document-sync.ts(four functions),notify.ts(added after review) - Task 8: Interactive route on
getSlackWorkspaceByTeamId;integrations.slack.install.tsdeleted;integrations.slack.oauth.tskept as a 302 forwarder - Task 9: Slack card installs through the piece consent; installer/schemas removed;
@slack/oauthdropped - Task 10: Notification-preferences page reads connections; dead settings helpers +
SECRET_KEYS.slackremoved - Task 11: Env —
SLACK_STATE_SECRETremoved;SLACK_OAUTH_REDIRECT_URLkept (no new var) - Task 12: Regenerate workflow catalog + Lingui; docs sync
- Task 13: Verification + run log
Notes
companyIntegrationhas nocreatedByand itsupdatedByhas no FK;integrationConnection.createdByis NOT NULL →user. Hence the actor resolution chain in the migration.getSlackWorkspace=readConnections(...).find(Active)+readConnectionAccessToken; three round trips per call (accepted; see review MINOR 12).