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
@carbon/ee
Enterprise edition — integrations registry (incl. Ramp), accounting sync (Xero, QuickBooks Online, Rillet), plan gating, RBAC authoring (permissions), Slack, email, Jira, Linear, Onshape, the shared rules layer (storage + sales rules), the workflows engine, and SAML SSO. (Exchange rates are no longer an integration — the platform-global feed lives in @carbon/jobs update-exchange-rates. The planning engines — MRP + finite scheduling — moved OUT to the community-licensed @carbon/planning package; Material Planning is free.)
Always
- MUST wrap provider-originated database writes in
withTriggersDisabled()so SYNC subscriptions cannot echo them back to the provider. - MUST link external ids through
createMappingService()andexternalIntegrationMapping; do not add per-entity external-id columns. - MUST register server lifecycle hooks in
src/hooks.server.ts; integration config files are shared with browser bundles. - MUST use the operation-specific helpers from
@carbon/ee/ramp.serverfor Ramp state.patchRampSettings,patchRampOAuthCredentials,patchRampRefreshedTokens,patchRampConnection,patchRampWebhook,patchRampCursor, andpatchRampAccountingConnectionProvider(the one helper that REMOVES its key) own disjoint paths and delegate to the atomicpatchIntegrationState()RPC boundary. - MUST use
FEATURE_PLANSfor client and server plan gating.companyHasPlan()andrequirePlan()intentionally allow non-Cloud editions and bypass-listed companies. For features that must be BLOCKED on the Community edition (RBAC authoring/permissions, console mode, and the entitlement-gated feature writes), usecompanyHasFeature/requireFeature/requireEntitlementinstead — they return false/throw onEdition.Community(Enterprise/Test still pass). See.claude/rules/commercial-licensing.md.
Ask First
- Adding a sync entity or provider — it requires an
AccountingEntityType, provider syncer registration inSyncFactory, direction policy, subscriptions, and reconciler coverage. - Adding an integration to
integrations, changingFEATURE_PLANS, or changingINTEGRATION_WHITELIST. - Changing Ramp state ownership or replacing
upsert_company_integration_patch; concurrent settings, OAuth, webhook, token, and cursor writers depend on path-level composition.
Never
- Never import
*.servermodules from integration config files;config.tsxis client-bundled. - Never full-replace Ramp metadata or Vault bags. Use
src/ramp/lib/state.ts; stale read/merge/write loses concurrent sibling updates. - Never implement provider DELETE as a generic assumption. Entity adapters must explicitly support and verify their remote lifecycle.
- Never hand-edit generated database types.
Validation Commands
pnpm --filter @carbon/ee test
pnpm --filter @carbon/ee typecheck
Key Exports
| Subpath | Provides |
|---|---|
. |
Integration descriptors/registry, defineIntegration, and secret-resolution helpers |
./accounting |
SyncFactory, provider adapters, mappings, posting policy, reconciliation helpers |
./sync |
Role-agnostic sync core: SyncProviderCapabilities + resolveCapabilities (one capability surface for accounting AND spend providers), IntegrationTopology + buildIntegrationTopology (who owns each GL family, whose identifiers a target expects), applyLedgerDelegation + the branded EffectivePostingSyncSettings, and applyPartyContactRequirements / partyContactSettingsToEnable / PARTY_CONTACT_SETTING_COLUMN (the requiresPartyContactAndLocation capability that turns the party-contact company settings ON at install — the one ./sync export with a database side effect). Import-light on purpose — no @carbon/auth, so jobs and tests can use it without booting the server env |
./integrations/secrets |
patchIntegrationState, Vault split/persist/resolve helpers, SECRET_KEYS |
./ramp.server |
Ramp client, schemas, service operations, money/coding helpers, and key-owned state patches |
./ramp/hooks.server |
rampOnInstall, rampOnUpdate, rampOnUninstall, rampHealthcheck |
./oee |
Client-safe OEE provider contract (OeeProvider, OeeDevice, OeeStateChange, MachineState, OeeProviderUnavailableError — network failure, timeout or 5xx; the sync stops its run on it — and DEFAULT_MINIMUM_STATE_SECONDS), the pure attribution engine planMachineTime (LoadPeriod, BlockPeriod, RecordedInterval, MachineTimeWrite), and machineTimeRefusal(operationStatus, jobStatus) (oee/assignable.ts: "Done", "Canceled", "Locked" or null — the one "can this operation take machine time" rule for the sync, the assign write and the ERP suggestion cards) |
./oee.server |
getOeeProvider (runtime, degrades through companyHasFeature("INTEGRATIONS"); resolves through createOeeProvider in oee/registry.ts, the one provider resolution, also behind the Sense healthcheck) and the authoring writes upsertWorkCenterDevice, deleteWorkCenterDevice, assignUnattributedMachineTime, dismissUnattributedMachineTime (each embeds requireEntitlement("INTEGRATIONS")). See .claude/rules/oee-provider.md |
./sense/hooks.server |
senseHealthcheck, senseOnUninstall (the onUninstall hook that Settings → Integrations → Uninstall runs, registered in hooks.server.ts: ends the open sensor Machine events and running unattributed time of every Sense device of the company, under each device lock; the mappings stay) |
./hooks.server |
getIntegrationServerHooks() registry |
./approvals/document.server |
The document-level approval lifecycle shared by every approval document type: getDocumentApprovalState, openApprovalRequests (bulk; caller sends the notification), cancelPendingApprovals (bulk, optional requester-or-approver guard), decideApprovalRequest. Form validator: approvalDecisionValidator in ./approvals; modal: ~/components/Modals/ApprovalDecision in the ERP. Used by change notices, quality documents and suppliers; purchase orders keep their own amount-tiered flow |
./plan, ./plan.server |
Client/server edition and feature-plan gates |
./sso.server |
SAML connection, domain verification, session, and provisioning helpers |
./rules, ./rules.server |
Storage- and sales-rule schemas and query services (client-safe), and the evaluators plus the entitlement-gated rule writes (server) |
./workflows, ./workflows/help, ./workflows/labels |
The workflows engine — definition schema, normaliser, validator, generated catalog, pure runtime, and the sync.ts trigger/subscription reconciler (moved from @carbon/workflows). ./workflows/labels (WORKFLOW_LABELS) is Vite-only — the msg macro throws in plain Node |
./mcp, ./mcp.server |
The MCP protocol engine (moved from apps/erp/.../api+/mcp+/lib). ./mcp = pure logic (catalog search, the agent's doc search createDocSearch, formatters, instructions, types) with no auth/entitlement chain — safe for tests; ./mcp.server = server.ts (serveMcpRequest, embeds requireEntitlement("MCP"), on MCP SDK v2 @modelcontextprotocol/server; serves 2025-era and 2026-07-28 clients). The dispatch + generated tool metadata stay in the app and are injected as deps |
./workflows.server |
Workflows runtime lock: workflowsEnabledForCompany(companyId) (runtime DEGRADE — a non-entitled run settles Skipped, embedded in @carbon/jobs engine/execute.ts) and requireWorkflowsEntitlement(client, companyId) (authoring throw, embedded in the ERP's publishWorkflowVersion) |
./jira, ./jira.server, ./linear, ./linear.server, ./onshape, ./paperless-parts |
Integration client/server seams |
./onshape, ./onshape.server |
Onshape runtime shared by BOTH Onshape integrations — onshape (the public App Store app, client from ONSHAPE_CLIENT_*) and onshape-government (a customer-owned private OAuth app on their own tenant URL; tenant URL and client id/secret entered in settings; the tenant URL also serves OAuth, secret vaulted; always offered). Runtime code resolves the company's connection with getOnshapeIntegration rather than naming an id; getOnshapeOAuthConfig picks the client per variant; ./onshape.server (lib/index.server.ts) has beginOnshapeAuthorization / loadOnshapeOAuthConfig, the metadata patch helpers of lib/state.ts (patchOnshapeOAuthGrant, patchOnshapeSettings, …) and the panel's server-side property reads (lib/panel-properties.server.ts). externalIntegrationMapping rows stay under "onshape" for both. A company holds one active Onshape connection at a time (getConflictingOnshapeIntegration, app-level). The Onshape panel (onshape-v2, id from ./onshape/integration-id) is a third grant outside that rule, on its own Onshape app (client from ONSHAPE_V2_CLIENT_*, never ONSHAPE_CLIENT_*): panel code passes its id explicitly and keeps its own mapping namespace (.claude/rules/onshape-panel.md) |
./slack.server, ./stripe-connect.server, ./xero/hooks.server, ./quickbooks/hooks.server, ./rillet/hooks.server |
Integration-specific server seams |
Key Patterns
- Planning — MOVED OUT of
@carbon/ee. MRP + finite scheduling now live in the community-licensed@carbon/planningpackage (packages/planning/), so Material Planning is free/CE. Seepackages/planning/AGENTS.md. - Workflows — MOVED IN to
@carbon/eefrom@carbon/workflows. The whole engine (definition schema, validator, generated catalog, pure runtime,sync.tsreconciler) is now commercial undersrc/workflows/— seepackages/ee/src/workflows/AGENTS.mdand.claude/rules/workflow-{event-catalog,matcher,engine,actions}.md. The lock is two seams in./workflows.server:workflowsEnabledForCompany(runtime DEGRADE, embedded in@carbon/jobsengine/execute.ts) andrequireWorkflowsEntitlement(authoring throw, embedded in the ERP'spublishWorkflowVersion). The CE-safe wire contracts (runTriggerSchema/RunTrigger, the moment contractMOMENT_OUTPUT_KEYS/MomentKey/MomentEntityRef/MomentPayload) live in the leaf package@carbon/workflows-core(packages/workflows-core/), which@carbon/libimports type-only — that leaf is what breaks thelib → ee → libcycle the move would otherwise create. The engine'scatalog/moments.tskeepsWORKFLOW_MOMENTS(source of truth) and re-exports the moment TYPES from the leaf;scripts/check-workflow-catalog.tsasserts the two never drift. - Accounting sync: class-per-entity syncers in
accounting/providers/{xero,quickbooks-online,rillet}/entities/;SyncFactory.getSyncer()dispatches - Spend sync runs on the SAME engine, split neutral-core / provider-wire:
SyncFactoryis keyed onSyncProviderID(ProviderID | SpendProviderID), andSyncContext.provideris the structuralSyncProviderinterface rather than theAccountingProviderunion — soRampProvider(ramp/lib/provider.ts,role: "spend") satisfies it without inheritingBaseProvider.src/spend/is the provider-NEUTRAL half —SpendPushOnlyEntitySyncer,loadSpendVendorParties,loadPurchaseOrderPushSource,loadBillPushSource/loadBillPushLines, the eligibilitygates.ts, andbuildSpendSyncConfig(starts from everything disabled; enables only what a mode ceiling AND the stored toggles permit, the ceiling always winning). Every one is a statement about Carbon's schema or lifecycle, mirroring the accounting side'sdocument-costing.ts/sales-invoice-source.ts/card-charge-source.ts.src/ramp/entities/is the WIRE — payload shapes, idempotency, and rules genuinely Ramp's (its draft bill is create-once because a Ramp draft has no delete endpoint). Adding Brex/Navan means adapters only.@carbon/ee/ramp/entitiesmust be side-effect-imported forSyncFactoryregistration to run - Subscriptions are code-derived:
accounting/core/subscriptions.ts—REQUIRED_SYNC_SUBSCRIPTIONS+ idempotentensureProviderSubscriptions()(exported from./accounting), converged from the install/onUpdatehooks and the outbound sweep — never a write-once install artifact, never a migration backfill - Card charges represented once:
accounting/core/posting.tsand every charge syncer'sshouldSync()must agree onisDocBackedCharge()so a Ramp card spend pushes as either a native charge object OR a journal entry, never both - 60s cooldown:
SYNC_OPERATION_COOLDOWN_MS(accounting/core/operations.ts) — a just-Completed ledger op absorbsevent/webhookre-enqueues for 60s. Status-transition events bypass it via the non-cooldownpostingtrigger: a state change is never dropped by the cooldown - Truthful ledger: a drain no-op with no remote copy closes
SkippedviaskipOperation()(reason inerrorMessage), neverCompleted;Skipped → Pendingretry is allowed - Rillet idempotency keys are entity-scoped:
buildRilletIdempotencyKey({companyId, operation, localId})— the payload is deliberately NOT hashed, so a crash-retry with a drifted payload cannot double-create the remote document - Tie-out remote reads:
accounting/core/remote-journal.tsfetchRemoteJournalTotals()— provider-agnostic debit-signed per-account journal totals for the reconciliation tie-out - Trial balance pull:
accounting/core/remote-trial-balance.tspullTrialBalanceFromProvider(client, db, { companyId, providerId, asOfDate })→{ lines, unmapped, ambiguous }on Carbon accounts, for the accounting activation wizard.fetchRemoteTrialBalance()dispatches likefetchRemoteJournalTotals(Xero/Reports/TrialBalanceYTD columns, QBO/reports/TrialBalanceDebit/Credit, Rillet/reports/trial-balancefrom Carbon's fiscal year start (fiscalYearSettings.startMonth,fiscalYearStart) to the date in its subsidiary — Rillet closes income and expense into retained earnings atfrom_date, so that is the fiscal year to date; it sendscredit_totalnegative, read as a magnitude;parseRilletTrialBalancereadsending_balancedebit-signed or natural-signed by/accountstype, whichever agrees with each account's movement and totals zero, else throws). The parsers and the pure mappermapRemoteTrialBalance(mapping by external id → mapping by code → Carbon account number; several targets = ambiguous) live incore/trial-balance.ts. Failures throwTrialBalancePullErrorwith areason(not_connected/unsupported/reconnect/rate_limited/failed).isTrialBalanceProvider(id)says which providers the dispatch reads (the ERP shows the Pull button by it;remote-trial-balance.test.tspins the two together). Xero needs theaccounting.reports.trialbalance.readscope; older tokens getreconnect - Dependency sync: transaction syncers use
ensureDependencySynced()for JIT deps (e.g. push customer before invoice) - Master data import: ALL THREE accounting descriptors (
src/{rillet,xero,quickbooks}/config.tsx) declareactionsposting to/api/integrations/master-sync?provider=…&direction=…, which firesaccounting-master-sync(@carbon/jobs). It is the only on-demand PULL of master data — everybuild*SyncConfigstill forces customer/vendorpush-to-accounting, and the job enqueuespull-from-accountingledger rows by hand. Enumeration goes throughprovider.listRemoteEntityIds+capabilities.importableEntities(providerSupportsMasterDataImportneeds both), so adding a provider needs no edit to the job.RilletCustomerSyncer/RilletVendorSyncerimplementmapToLocal/upsertLocalfor it and extendRilletEntitySyncer; the pull rejections now live inRilletPushOnlyEntitySyncer(item + every transaction syncer). Importing exists to write the mapping row:upsertRemotereadsgetRemoteId(localId)first, so a Carbon sales invoice for an imported customer PUTs the original Rillet customer instead of creating a duplicate - Permissions (
./permissions.server,src/permissions.server.ts): the licensed RBAC-authoring logic, gated to Business via thePERMISSIONSfeature.updatePermissions(builds/persists the flatteneduserPermission.permissionsobject + audit diff + claims-cache bust),updateEmployee, employee-type CRUD (insert/upsert/deleteEmployeeType,upsertEmployeeTypePermissions), and the translators (makeEmptyPermissionsFromModules,makeCompanyPermissionsFromClaims,makeCompanyPermissionsFromEmployeeType). This is the ONLY copy ofupdatePermissions— the@carbon/jobscarbon/update-permissions(bulk-edit) task imports it here. Server-only. The ERP authoring UI stays.ee.tsxinapps/erp(couples to~/components/Form); routes stay in the app and gate withrequireFeature({ feature: "PERMISSIONS" }). The community invite primitives (the invite permission merge,makePermissionsFromEmployeeType) deliberately stay in the app'susers.service.ts. Console/kiosk mode is a sibling:./console.server—updateConsoleSetting(client, db, companyId, enabled, userId?)→{ error, pin, pinError }writescompanySettings.consoleEnabledoverdb(a trigger refuses API-role writes) behindrequireEntitlement("PERMISSIONS"), provisions the protected "Console Operator" employee type and a PIN for the enabling user (returned once aspin;pinErrorwhen it could not be created);isConsoleModeEnabledForCompany(client, companyId, { consoleEnabled? })is the runtime DEGRADE gate (flag AND entitlement;nullwhen the settings read failed — never tear a live console session down onnull);generateConsolePin,setEmployeePin(db, …),verifyEmployeePin(db, …)→{ hasPin, valid }work on the bcryptemployeePintable, reachable only over the server's Kysely connection. - Commercial entitlement pattern (
./entitlements.server,./plan.server, and the per-feature.servermodules):requireEntitlement(client, companyId, feature)(throwsEntitlementError) is embedded at the top of every commercial authoring function so the gate lives in commercial code, not a strippable open route. Feature bodies moved here with in-code gates:./approvals(approval rules),./rules.server(sales + storage rules),./api-keys.server,./webhooks.server,./two-factor.server(therequireMfapolicy),./forecast.server(demand forecasts + projections),./customer-portals.server,./audit.server(the audit-log engine —enableAuditLogembedsrequireEntitlement("AUDIT_LOG"), skipped underCONTROLLED_ENVIRONMENTwhere audit is mandatory;auditConfig/types stay client-safe in@carbon/database),./email-notifications.server(emailNotificationsEnabled— the EMAIL notification-channel gate, runtime DEGRADE;sendEmailtransactional transport stays ungated in@carbon/lib),./backups.server(requireBackupsEntitlement(companyId)— embedded at the top of the Inngest backup/restore/import durable functions in@carbon/jobs,IS_LOCAL_DEV-exempt; the engine is Inngest-coupled and stays in jobs), plus permissions/console above. Runtime paths that must degrade (not throw) usecompanyHasFeature(e.g. email notifications, webhook delivery). Full rationale:.claude/rules/commercial-licensing.md. - Ramp state helpers:
src/ramp/lib/service.tsis a compatibility facade. Put connection/auth inconnection.ts, coding masters inchart-of-accounts.ts/cost-centers.ts, parties insuppliers.ts, PO/bill transport inspend.ts, confirms insync-confirmation.ts, remote webhook lifecycle inwebhooks.ts, and metadata/Vault writes instate.ts;@carbon/ee/ramp.serverremains stable - Provider roles: every integration that participates in sync declares
providerRole: "accounting" | "spend" | "oee"on its descriptor. That ONE declaration replaces the id lists that used to answer "which are accounting providers" five different ways, and the database enforces at most one ACTIVE integration per role per company (companyIntegration_single_active_role, migration20260924133915) — exceptoee, which may have several active integrations at once (check_single_active_provider_role()skips it, migration20261013030022); its one-device-per-work-center rule isUNIQUE(workCenterId, companyId)onworkCenterDeviceinstead (.claude/rules/oee-provider.md).getIntegrationsByRole/getIntegrationIdsByRole(barrel) are the lookups;no-integration-id-branching(@carbon/checks) stops new id branching. NOTE the barrel cannot be imported from a*.service.ts(browser-bundled) or from most tests — it reaches@carbon/auth, which validates the full server env at import time; that is why./synctakes the registry slice as an argument instead of importing it - Ledger delegation: when a spend provider's mode declares
ownsLedgerFamilies,applyLedgerDelegationsets that family to"none"AND disables its backing entities — derived fromPOSTING_POLICY, never a hard-coded"bill". Each half alone is wrong (families-only leaves the document pushing; entity-only parks aDOC_SYNC_DISABLEDWarning forever).getJournalPostingPolicyDecisionaccepts onlyEffectivePostingSyncSettings, so the compiler refuses a posting decision made from raw settings - Integration pattern:
defineIntegration()→ config with id, name, settings, OAuth, actions - Workflow integration connections:
./integrations/connections— named per-company connections to Activepieces pieces (integrationConnectiontable + its ownconnection:-prefixed vault RPCs). Distinct from./integrations/secrets, which servescompanyIntegrationand allows only one row per integration per company. Tokens go to the vault, never tometadata; refresh is claimed viarefreshingAt. The piece itself ships as an ORDINARY integration config (google-calendar/config.tsx,gmail/config.tsx,slack/config.tsx;id=== the piece name) — the accounts list is a tab on its card, not a separate panel. Slack's Carbon Assistant (slack/lib/service.ts) is a consumer of that connection (getSlackWorkspace, oldest Active; inbound byteam_id), never a second store. See.claude/rules/workflow-integrations.md - Internal-only integrations:
internalOnly: trueon a descriptor makes it installable on Carbon Cloud only by Carbon staff (isInternalEmail), in any company, and by the users theintegration-early-accessfeature flag is on for, in the companies its rules name, or whose id is inINTEGRATION_EARLY_ACCESS_USER_IDS(a fallback until a flags source is live) (hasIntegrationEarlyAccess({ companyId, userId }),./plan.server; evaluated on the server, so neither the rules nor the list reach the browser); everyone else sees a Coming soon card. Self-hosted editions are not gated.isIntegrationComingSoon(./plan) is the one rule; the ERP'sisIntegrationInstallWithheld(modules/settings/settings.service.ts) applies it in the connect route, the install action and theonshape-v2install route, and only to a company that does not have the integration installed. An integration with its own install route must call it there too - SAML SSO (
./sso.server,src/sso/):isSsoEnabled()(gate.ts— Enterprise edition ANDssoinAUTH_PROVIDERS) is the ONE flag; the connection lookups and admin mutations self-gate on it.provider.server.ts= GoTrue admin API wrappers +getSamlSpUrls;connections.server.ts=ssoConnectionlookups (each attaches a computeddomains: string[]of VERIFIEDssoDomainclaims),isSsoRequiredForEmail,getSsoAwareInviteLink, upsert/requireSso/deactivate mutations, and the domain-claim flowsaddSsoDomain/verifySsoDomain/removeSsoDomain;verification.server.ts= the DNS TXT ownership challenge (_carbon-challenge.<domain>→carbon-domain-verification=<token>,checkDomainVerificationwith pinned public resolvers, one-shot manual verify — no polling or re-verification);session.server.ts= amr-based session classification (getSsoProviderIdFromSessionfor enforcement, nevergetSsoProviderIdFromUser);provisioning.server.ts= identity linking + invite-first migration +deleteJitSsoUser(full removal of a rejected throwaway JIT user — auth user AND its trigger-createduser/userPermissionrows, guarded on zero memberships; takes aKysely<KyselyDatabase>param — callers pass their own db client) + the pre-seed helpersseedSsoIdentityForUser/backfillSsoIdentitiesForDomain/removeSsoIdentitiesForDomain(+ pureemailDomain/ssoProviderColumn). Pre-seeding is the account-linking fix underGOTRUE_DISABLE_SIGNUP=true: a row inauth.identitieswithidentity_data.email = lower(email)makes GoTrue link a SAML sign-in to the existing user via its email-column fallback — provider-agnostic (works for any IdP: Okta/Entra/OneLogin/Ping/…, whose NameID shapes differ), keyed on the generatedemailcolumn NOTprovider_id.verifySsoDomainbackfills every existing on-domain user when a domain is verified; the three account-creation flows (apps/erp/.../users.service.ts) seed newly-invited users;removeSsoDomaintears the domain's identities down. A DB guard trigger onauth.sso_domains(migration…_sso-domain-guard.sql,ssoReservedDomaintable) blocks registering an unclaimed/reserved domain. Only verified domains ever reach GoTrue. Full architecture + the provider-agnostic linking rationale:.claude/rules/authentication-system.md(Enterprise SAML SSO section); design:.ai/specs/2026-08-29-saml-sso-account-linking.md - Onshape panel auth (
./onshape/panel-session.server,src/onshape/panel/session.server.ts): thecps_bearer credential for the Onshape iframe, which theSameSite=Laxcarboncookie cannot reach. Mints, stores (Redispanel-session:<token>, 12 h) and revokes sessions, and exportsrequireOnshapePanelPermissions, the panel routes' gate: the same claims check asrequirePermissions, answering 401/403 with no redirect. ImportsgetUserClaims,userHasVerifiedTotpFactor,getUserScopedClientandhasPermissionfrom@carbon/auth; auth never imports it back. See.claude/rules/onshape-panel.md - Exports:
./accounting,./plan,./plan.server,./entitlements.server,./permissions.server,./console.server,./approvals,./audit.server,./backups.server,./email-notifications.server,./api-keys.server,./webhooks.server,./two-factor.server,./forecast.server,./customer-portals.server,./mcp,./mcp.server,./rules(client-safe storage + sales rule query services/UI),./rules.server(both evaluators AND the entitlement-gated authoring writes —upsertEnforcementRule/deleteEnforcementRule/assign*/unassign*inrules/service.server.ts, each embeddingrequireEntitlement("SALES_RULES"|"STORAGE_RULES")),./workflows,./workflows/help,./workflows/labels,./workflows.server,./slack.server,./hooks.server,./sso.server,./onshape/integration-id,./onshape/panel-session.server,./jira,./linear,./rillet/hooks.server,./xero/hooks.server,./ramp.server,./ramp/hooks.server,./oee,./oee.server,./sense/hooks.server, etc.
Cross-References
.claude/rules/ramp-integration.md— Ramp OAuth, state ownership, sync families, and card posting..claude/rules/accounting-sync-handlers.md— provider sync/reconciliation architecture..claude/rules/authentication-system.md— SAML SSO and account-linking rationale..claude/rules/billing-system.md— plan and edition gating.packages/jobs/src/inngest/functions/integrations/— durable integration entry points.