Karyo
Documentation/ Decision records

ADR 0029: Karyo is one Apache-2.0 product; revenue is the managed service

Karyo 2.1.1rendered at build time
On this page

Status: Accepted; superseded in part by ADR 0031 (the Loci integration is no longer queued beyond this phase) and by ADR 0032 (the public-repository and any-reader phrasing; the one Apache-2.0 distribution itself is current).

Context

At the Karyo 2.0.0 release the product becomes one fully open-source distribution. Every capability a warehouse needs, including all ten engine capabilities, ships in the public Apache-2.0 repository, in one build, in one container image. Revenue comes from operating Karyo and standing behind it - hosting, operations, backups, upgrades, observability, support and service commitments - not from withheld source.

The copyright holder has confirmed the required rights for this transition, and transition obligations toward existing licence arrangements are addressed. Karyo becomes a first-class FOSS repository: readable, buildable, testable and extendable by anyone, with a standard open-source trademark policy (TRADEMARK.md) protecting the Karyo and VoyagerForge names without restricting the code licence.

This decision replaces the per-module free/commercial split (ADR 0020, superseded) and the signed-entitlement gate that shipped with it (ADR 0021, superseded); their records remain as history. The runtime licence machinery was left in place by this decision and retired by the next one, ADR 0030.

Decision

  • The repository is the product. All nine engine -core modules - waves, cross-docking, streaming, cartonization, document templates, monitors (including 3PL billing), forecasting, slotting and simulation - are permanent public subprojects of the one build (settings.gradle.kts), licensed Apache-2.0 like every other module. The application image is Apache-2.0 only, with a literal org.opencontainers.image.licenses=Apache-2.0 label and no per-module licence markers.
  • The equipment adapter SPI moves into the -api boundary. com.karyo.tasks.spi.equipment lives in karyo-tasks-api (the equipment adapter SPI); the selection logic over its factories stays with the cross-docking engine. The one documented core-to-core ADR 0006 waiver (karyo-monitors-core -> karyo-replenishment-core) is unchanged and is now an ordinary intra-repository waiver.
  • The slotting advisor is preserved for source parity; Loci is the canonical slotting engine. karyo-slotting-core remains in the distribution with its behaviour intact while the Loci integration (queued beyond this phase) takes over slotting analysis and recommendations; Karyo keeps warehouse data, hard constraints, authentication, the review/application workflow and the UI. See the engine boundaries and the public source record.
  • Entitlement authority is retired separately. This decision changed source and build ownership only; ADR 0030 retires the runtime gate, keeping GET /api/v1/license and the licence settings as a compatibility bridge.
  • The old licence-distribution boundary is retired. There is no per-customer image path, no commercial-licence staging and no dual image-licence label; one public build produces the one product.
The one build shape: the one Apache-2.0 repository of 53 subprojects holds all ten engine capabilities and services/karyo-app, the engines assemble into the application, and the application becomes the one image whose licence label names Apache-2.0.

Figure 1. One repository, one deployable, one image: the 53 Apache-2.0 subprojects resolve into the ten engine capabilities and services/karyo-app, and the application becomes the one image whose licence label names Apache-2.0. Derived from the decision above and services/karyo-app/build.gradle.kts; source docs/diagrams/06-one-repository-distribution.mmd.

The slotting boundary inside that distribution, as confirmed for Karyo 2.0, is:

Inside the one distribution Karyo keeps warehouse data, hard constraints, authentication, the review and apply workflow and the UI, karyo-slotting-core stays in source parity and transitional, and the canonical slotting engine - Loci - owns the analysis.

Figure 2. The slotting boundary inside the one distribution: Karyo keeps warehouse data, hard constraints, authentication, the review/apply workflow and the UI while transitional karyo-slotting-core keeps source parity, and the analysis lives with Loci, the canonical slotting engine. Derived from the decision above and the engine boundaries; source docs/diagrams/07-slotting-boundary-inside.mmd.

Consequences

  • One build shape. Project enumeration, tests, detekt and the image are the same for every user; the optional-commercial-overlay machinery, its Gradle property resolution and the test grafting are deleted.
  • The gate came with the code, and is retired separately. Every capability is available on every installation (ADR 0030).
  • The full capability set is inventory-visible. NOTICE, the README, this record and the boundary document all name the ten capabilities, so none is omitted from the 2.0.0 story.
  • The public schema and Flyway history are unchanged. The engines' schema was already in the aggregator and applies to every installation; the change adds no migration and no data migration.
  • The 1.x licence defects are gone. Entitlement-lapse defects (stranded waves, the unsigned-list fallback) and gating defects went with the gate (ADR 0030).

Alternatives considered

  • Keeping the per-module commercial boundary (status quo). Rejected by the captain: the product definition changes to one open distribution with a managed-service revenue model.
  • Publishing engines as separate downloadable artifacts under their own licences. Rejected: it preserves a paid-distribution channel for code that is now plain Apache-2.0 and adds release machinery without product value.
  • Removing the entitlement machinery in the same change. Rejected: this phase changes source and build ownership, not runtime licensing semantics; retiring the gate, the endpoint and the UI is sequenced follow-up work so that deployments and clients never break in one step.

Evidence

  • settings.gradle.kts - the nine engine modules as unconditional include(...) entries; no overlay
  • services/karyo-app/build.gradle.kts - unconditional engine dependencies; the engine test suites in the module's own src/test
  • infrastructure/docker/Dockerfile.service - the literal Apache-2.0 licence label
  • NOTICE - single Apache-2.0 grant naming all ten capabilities; the myWMS clean-room paragraph unchanged
  • TRADEMARK.md - the approved open-source trademark policy
  • docs/architecture/public-source-record.md - the distribution record and the slotting source-parity inventory
  • ADR 0032 - the repository is private with invited access; supersedes the public-reader parts of this record
  • The engine boundaries - how the engines sit in the one distribution
  • ADR 0030 - the licence gate retired, its interfaces kept for compatibility
  • Modules and boundaries - the module graph, including the monitors/replenishment waiver
  • ADR 0006 - the -api/-core rule the equipment SPI move follows
  • ADR 0020 - superseded
  • ADR 0021 - superseded