Code separation
OpenAct has open source parts and proprietary parts. The boundary between them must stay clear. A mistake here can leak paid code, or can pull open source terms into paid code.
The four zones
| Zone | Repository | License | What goes here |
|---|---|---|---|
| Core platform | marketgrowth/openact | MPL 2.0 | Core server, web shell, host, website, plan gate and license keys |
| SDK and specifications | marketgrowth/openact | MPL 2.0 | Public entry points of @openact/core and @openact/ui, MCP and agent tools, docs, directory |
| Starter apps | marketgrowth/openact | MPL 2.0 | Projects, Library, WorkSpent, CMS, examples |
| Premium and enterprise | marketgrowth/openact-director (private) | Proprietary | Docs, Advisory, eSign, later Director and Producer apps, enterprise features |
The file REUSE.toml has the exact path for each zone. See Licensing.
Rules
- Premium code never enters the public repository. This includes copies, snippets and tests of a paid app.
test/licensing.test.tsfails when a paid app folder or manifest appears. - Dependencies point one way. The core never imports from an app. Apps import only from
@openact/core/server,@openact/core/sharedand@openact/ui. A premium app uses only the public SDK, like a third-party app. This keeps the premium code free of MPL 2.0 files that it changed. - A core change that a premium app needs goes to the public repository first. It joins as a public SDK change. The private repository then takes it in with
git merge. - Do not change an MPL 2.0 file inside a premium app. If a premium app needs a different behavior, add a hook or a slot to the SDK. If a premium app copies an MPL 2.0 file and changes it, the changed file falls under MPL 2.0, and you must share it.
- No copyleft in production dependencies. GPL, AGPL and similar licenses never enter the core or a premium app. See SBOM.
- The plan gate stays in the core and stays closed. Never add a way around
companyAppState. Never add an MPL notice to a premium file. Never change an app'splanorreleasedfield unless MarketGrowth asks. - Mark each new file. Every file that MarketGrowth writes is under MPL 2.0, and a file needs no license line. Only third-party code keeps its own license, and
REUSE.tomllists it. - No secrets or keys in the public repository. The private signing key for license keys stays out of the repository. Only public keys are in
license-keys.ts.
How the zones fit together
marketgrowth/openact (public)
Core platform ........... MPL 2.0 packages/core, packages/ui (shell), src, www
SDK and specs ........... MPL 2.0 shared types, app system, MCP tools, docs
Starter apps ........... MPL 2.0 apps/*, examples/*
|
| git merge (private takes in public main)
v
marketgrowth/openact-director (private)
Premium apps ........... Director License 1.0 / proprietary
Enterprise features ...... proprietary
Uses only the public SDKWhat is open and what is paid, by feature
| Feature | Zone |
|---|---|
| Sign-in, companies, roles, permissions, live updates, email | Core platform |
App system, defineServerApp, defineClientApp, manifest | SDK |
| Agent access (MCP) and AG-UI tools | SDK |
| Projects, Library, WorkSpent, CMS | Starter apps |
| Plan gate, license keys, billing | Core platform (public code, the gate protects paid apps) |
| Docs, Advisory, eSign | Premium apps |
| Single sign-on, audit export and other Producer-level features, when built | Enterprise features |
Review checklist for a pull request
- [ ] Does each new file sit in the folder of its zone?
- [ ] Is each new path in
REUSE.toml? - [ ] Does
npm testpass, includingtest/licensing.test.ts? - [ ] Does a new dependency pass
npm run sbom -- --check? - [ ] Does the change leave the plan gate as it was?
- [ ] Does an outside contributor have a signed CLA?