ADR 0013: Repository and open-source boundary
Status
Section titled “Status”Accepted. 2026-11-25.
Context
Section titled “Context”The project is becoming the Commitment Desk platform, with Inbox as its first module. The repository
previously lived at apdevpro/commitment-desk-inbox, is Apache 2.0, and uses DCO. The platform domain
is commitmentdesk.com and the hosted application is app.commitmentdesk.com (ADR 0011). Hosted
delivery has standard, dedicated, and self-host tiers (ADR 0012).
The public codebase includes shared packages, the API, the Inbox web application, migrations, and
the self-host path. A commercial hosted layer and enterprise features will be added. Keeping those
in the public repository would disclose the commercial layer and blur the Apache 2.0 boundary.
GitHub repository names are owner-scoped; unrelated commitment-desk prototypes exist under other
owners and do not reserve the name.
Decision
Section titled “Decision”- Use a GitHub organization
commitmentdeskfor the product. Keepapdevprofor consulting and unrelated work. - Public repository:
commitmentdesk/commitment-desk, Apache 2.0. This is the canonical platform monorepo and the community edition. - Private repository:
commitmentdesk/commitment-desk-cloud, proprietary. This is the hosted control plane and commercial layer. - Do not rename the repository to
commitment-desk-os; it is not an operating system, and the suffix conflicts conceptually with Commitment OS. - No separate community-edition fork. The public repository is the community edition. If a packaged edition is needed later, generate it from the public repository or build flags, not a long-lived fork.
Public repository scope
Section titled “Public repository scope”packages/capture-schema,packages/core, and shared UI or contracts- Core API routes and the Inbox web application
- Reviewer magic-link authentication, sessions, tenant-scoped repositories, and audit events
- Core database schema and migrations
- Self-host adapter, Docker/Node path, synthetic demo, and local development
- Architecture, security, and operations documentation that applies to self-hosters
Private cloud scope
Section titled “Private cloud scope”- Tenant provisioning, onboarding, invitations, suspension, and deletion orchestration
- Billing, plans, subscriptions, usage metering, quotas, and entitlements
- Enterprise identity: SSO/SAML, SCIM, advanced roles, and session policies
- Audit export, retention policies, legal hold, and compliance reporting
- Custom domains and white-labeling, including Cloudflare for SaaS hostnames and TLS automation
- Dedicated instance orchestration, per-client backups and restores, and upgrade automation
- Support console, audited impersonation, SLO dashboards, and incident tooling
- Commercial integrations, premium reporting or analytics, and hosted-only AI features
- Hosted deployment configuration, secrets, and production pipelines
The public core exposes ports for hosted concerns: entitlements, tenant provisioning, identity providers, custom-domain resolution, billing events, and audit export. Self-host uses safe defaults; the private cloud supplies implementations. Cloud-specific behavior must not be patched directly into public core files.
Licensing and contributions
Section titled “Licensing and contributions”- Public repository: Apache License 2.0.
- Private repository: proprietary; all rights reserved.
- Public contributions use DCO, not a CLA. Public contributions remain Apache 2.0; they cannot be relicensed without contributor permission. Commercial features stay in the private repository so the public core never needs relicensing.
- Do not adopt AGPL, SSPL, or BSL for the public core without a new ADR and legal review; municipal procurement and the open-source claim depend on an OSI-approved license.
Synchronization
Section titled “Synchronization”- Public packages are versioned with semver and Changesets and published to GitHub Packages or npm. The private cloud pins a released version; dependency automation proposes upgrades.
- Until package publishing is warranted, a pinned git submodule or release tag is an acceptable stopgap. A long-lived fork or copied core is not.
- Public migrations cover core tables. Cloud-specific tables and migrations live in the private repository. Hosted deployments run core then cloud migrations; self-host runs core only. Both upgrade paths are tested.
- Cloud changes that require core behavior add a generic extension point to the public repository first. The cloud never patches or vendors divergent core code.
- Release flow: public pull request and tests, then release or tag, then a cloud dependency bump, then cloud integration and end-to-end tests, then hosted deployment. Hotfixes land public first, then flow to cloud.
- Public CI has no cloud credentials or secrets. Hosted deployment uses separate scoped Cloudflare tokens and environments.
TRADEMARKS.mdgoverns use of the Commitment Desk name and logo; forking the code does not grant trademark rights.
Infrastructure naming
Section titled “Infrastructure naming”- The platform API uses platform-level Cloudflare resource names: Worker
commitment-desk-api, D1 databasecommitment-desk, R2 bucketcommitment-desk-attachments, and health service identifiercommitment-desk-api. - The rename was completed before the first Cloudflare deployment, so no deployed Worker, D1, R2, monitoring, or custom-domain migration is required.
- Inbox remains a module of the platform; resource names describe the platform API rather than a single module.
Rejected alternatives
Section titled “Rejected alternatives”commitment-desk-os: implies an operating system and collides conceptually with Commitment OS.- Keeping the repository under
apdevpro: mixes consulting and product identity and makes later transfer more costly. - A separate community-edition fork: version drift, duplicated security work, and support burden.
- A single public repository containing commercial code: discloses the commercial layer and undermines the open-core boundary.
- A single private repository with a public mirror: leak risk and release complexity.
- Relicensing the public core to AGPL, SSPL, or BSL: procurement friction and an inaccurate open-source claim.
Consequences
Section titled “Consequences”- Create the
commitmentdeskorganization, require two-factor authentication, add a second owner, verifycommitmentdesk.com, transfer the repository, and rename it tocommitment-desk. - Update the local remote, root package name, README links, footer source link, and documentation references. Old GitHub URLs redirect.
- Create
commitment-desk-cloudwhen hosted work begins; it is not required for M3. - Keep the public repository useful and complete for self-hosting. Do not cripple the core to protect the commercial layer.
- Review the boundary when adding a feature that is both operationally hosted and product-facing.
Verification
Section titled “Verification”commitmentdesk/commitment-deskis public, Apache 2.0, and builds and tests without private code.commitmentdesk/commitment-desk-cloudis private and consumes a pinned public release.- No cloud secrets, customer data, or private runbooks exist in the public repository.
- CI secret scanning passes; public and cloud pipelines use separate credentials.
- Self-host and hosted builds share the same core contracts and pass their respective test suites.