Karyo
Documentation/ Engine capabilities

Unconfigured states, and what became of the 1.x gates

Karyo 2.1.1rendered at build time
On this page

Until ADR 0030 each engine capability refused an installation without its entitlement: its routes answered 403 with the problem type https://karyo.com/errors/license-required (the problem type namespace of that time) ahead of their own authorization checks, its background work was skipped, and a licence that lapsed stranded work in flight. ADR 0030 retired every gate, and ADR 0031 removed the console's locked states that had outlived it. ADR 0052 then gave each installation a profile, Core or Extended, that decides which capabilities show; it hides surfaces and never refuses a call. This page records what each engine does now, what still holds each one back, and what became of the defects the gates caused. The settings and the disclosure endpoint that remain for compatibility are in Licence settings (retired).

Every engine acts on every installation

Engine The 1.x gate What holds it back now
Event monitors 7 REST methods; the evaluator and the delivery scheduler The profile: while Monitors is not enabled the evaluator pauses. Otherwise nothing: the monitors sweep every karyo.monitors.interval and raise in-app alerts; each alert also publishes alert.fired, which existing webhook subscriptions of the Facility deliver on; email and Slack delivery wait for a channel
Demand forecasting 1 REST method Nothing; forecasts need pick history
Slotting 1 REST method karyo.slotting.loci.base-url: slotting advice is Loci's alone, so until it is set the route answers a 503 problem saying slotting advice requires Loci, and the page says so; then advice needs pick history
Reorder simulation 1 REST method Nothing; a backtest needs demand history
Cartonization pack() returned null An order strategy naming CARTONIZATION, in any spelling
Document templates 4 service methods; the render provider An operations administrator authoring an override
Cross-docking 3 REST methods; the interceptor and the expiry sweep karyo.crossdock.pre-distributed and karyo.crossdock.opportunistic, both default false
Wave fulfilment 25 REST methods; the progress observer and the scheduler For scheduled release, karyo.wave.auto-release and the strategy's waveAutoRelease, both default off
Order streaming 3 REST methods; the scheduler karyo.streaming.enabled, default false, and a STREAM release mode
3PL billing 2 REST methods The storage rate; unset, storage bills at zero

What each capability needs is in engine capabilities, and what a user meets before it is configured is in what an installation shows before a capability is configured.

Every engine route declares one catalogue action and is checked against the caller's grants, goods-owner scope and principal kind like any other route (ADR 0048). services/karyo-app/src/test/kotlin/com/karyo/security/EngineRouteAuthorizationTest.kt pins the authorization boundary of every engine route with one table and an HTTP probe per route, using test identities whose shipped job-role names the test classpath translates into actions, and proves the operating-company guards on statement preview and document templates still refuse a goods owner.

The console has no gate, and the profile decides what shows

The console asks nothing about a licence. Every engine page - Waves, Streaming, Monitors, Forecasting, Slotting, Simulation and the admin's Document templates - renders through its normal path in its home sidebar group. Two things decide whether an entry shows: the catalogue action the caller holds in the selected Business Unit, and whether the installation's profile shows the page's capability (ADR 0052). A hidden capability is absent, and its route is the ordinary not-found page. There is no Add-ons group, no lock glyph, no locked or greyed panel, no withheld count and no "requires the add-on" hint. While Monitors shows, the Exceptions page counts its firing alerts like any other check; while the Slotting view shows, the Items page shows the class chips and class filters; the order-strategy form offers the Wave and Stream release modes while Waves and Streaming show, and names the CARTONIZATION packout strategy while Cartonization shows. What replaces the locks is the ordinary vocabulary of states: a permission state when the caller does not hold the page's action, an error state with the server's detail when a request fails, an empty state when there is nothing to show, and, on the Slotting page, an engine strip that names Loci when it answered.

frontend/web/src/pages/__tests__/engine-pages.test.tsx renders every one of those pages live and proves the console never requests /api/v1/license; frontend/web/src/config/__tests__/navigation.test.ts pins the sidebar groups and that Core leaves no trace of an Extended page; and tests/e2e/tests/profiles.spec.ts proves both for Waves, Streaming, Monitors and Document templates on an Extended stack without a licence setting while the compatibility endpoint still reports every key.

The floor app's Sort and Pack-out follow the Waves capability

frontend/mobile never had a licence check. Its Sort and Pack-out transactions are on the menu for a caller who holds operations.execute while Waves shows, and stay there after Waves is switched off until the open waves finish (frontend/mobile/src/menu/registry.ts, frontend/mobile/src/menu/use-menu.ts). While they are hidden, their addresses return to the menu (frontend/mobile/src/auth/capability-route.tsx). In 1.x an operator on an installation without advanced-fulfillment who tapped one read the server's licence refusal as an ordinary error. That refusal no longer exists. A 404 from the waves API is the one failure the screen still names: the server does not answer /api/v1/waves, which means an older Karyo version or a proxy that does not forward it, not a missing engine.

A lapse no longer strands work

With no licence there is no lapse. The two 1.x defects it caused are gone:

  • Cross-docking no longer strands live matches. The expiry sweep runs on every installation, so MATCHED and STAGED rows past their staging deadline are released or put away as configured, and POST /api/v1/cross-dock-orders/{id}/cancel answers an operator.
  • Waves no longer strand their orders. The progress observer advances every RELEASED wave, and the wave, sort and pack-out routes answer, so a wave member whose picks are confirmed is always packed at its consolidation group. ConsolidatedOrderGuard still refuses the per-order packing route for it, which is now only ever a pointer to a route that works (services/fulfillment-service/karyo-fulfillment-core/src/main/kotlin/com/karyo/fulfillment/service/ConsolidatedOrderGuard.kt).

The cross-dock lookup contract

CrossDockLookup and TaskService document the lookup that tells auto-putaway which receipt lines the cross-docking engine claimed. The lookup bean is always present, and while a client's cross-docking rungs are off the interceptor writes no rows, so the lookup answers false and receiving falls through to ordinary putaway (services/task-service/karyo-tasks-api/src/main/kotlin/com/karyo/tasks/spi/CrossDockLookup.kt).