Karyo
Documentation/ Configuration

The configuration boundary

Karyo 2.1.1rendered at build time
On this page

The question an implementation consultant asks on day one: what can a person change without writing code, what needs a build-time extension, and what needs core work?

Karyo has four answers, in descending order of how easily they can be changed. The boundaries between them are not declared in any one place; this document assembles them from the code.

Tier Changed by Takes effect Scope Surface
1. Runtime store An administrator in the browser Immediately Per goods owner, or instance-wide 24 runtime-editable catalog keys; 14 environment-only keys are read-only metadata; the profile and its 12 capability switches change on the Capabilities panel
2. Configuration data An administrator over REST Immediately Varies by entity Layout, strategies, products, users, clients
3. Environment An operator editing config, then restarting On restart Instance-wide Application, identity-provider and engine settings
4. Extension JAR A developer, then a rebuilt image On redeploy Instance-wide 92 SPI extension points

Anything not on that list is core work.

Tiers 1 and 2 are described in the runtime configuration store, warehouse layout configuration, strategies and policies, Business Units, users, roles and permissions and reference data. This document covers tiers 3 and 4, and how the engine modules' own settings fit the four tiers.

Tier 3: environment knobs

Twenty-seven karyo.* properties are injected as @ConfigProperty values in the main code of this repository:

Area Keys
auth provisioning-fingerprint-key
auth-audit enabled
demo enabled, history-days, location-count, orders-per-day, seed, sku-count
fulfillment pick-bin-unit-load-type-id
inventory purge.batch-size, purge.enabled
license entitlements, key, public-key
print url
receiving allow-over-receipt
replenishment auto-scan-enabled, scan-interval
sequence generator
setup password, reopen
webhooks backoff-base, backoff-cap, batch-size, http-timeout, max-attempts
work dispatch-strategy

Identity trust is mapped separately under karyo.identity: exact issuer, provider key/type, allowlisted additional issuers, browser client/scopes, normalized claim names and Keycloak realm (services/karyo-app/src/main/resources/application.yaml, karyo.identity). There is no role claim path and no role mapping: provider roles grant nothing (ADR 0048). Standard Quarkus OIDC URL, audience and algorithm settings complete that restart-bound surface. They are listed with their environment names in deploying.

Twenty-two more are injected by the engine modules:

Area Keys
forecasting ewma-alpha, history-days, horizon-days, lead-time-days, review-period-days, service-level
monitors delivery-batch-size, delivery-max-attempts
simulation history-days, lead-time-days, review-period-days, service-level, simulator
slotting a-threshold, b-threshold, history-days, loci.base-url, loci.timeout, loci.token-url, loci.client-id, loci.client-secret, loci.token-scope

The forecasting, slotting and simulation keys have values in application.yaml, beside the engines' scheduler intervals (karyo.monitors.*, karyo.crossdock.sweep-interval, karyo.wave.auto-interval, karyo.streaming.interval) (services/karyo-app/src/main/resources/application.yaml, karyo.monitors, karyo.forecasting, karyo.slotting, karyo.simulation, karyo.replenishment, karyo.crossdock, karyo.wave, karyo.streaming). The six karyo.slotting.loci.* keys connect the Loci slotting engine: loci.base-url (KARYO_LOCI_BASE_URL, empty by default, so there is no slotting advice until it is set) and loci.timeout (KARYO_LOCI_TIMEOUT, 15s, must be positive), plus the machine credential loci.token-url, loci.client-id, loci.client-secret and loci.token-scope (KARYO_LOCI_TOKEN_URL, KARYO_LOCI_CLIENT_ID, KARYO_LOCI_CLIENT_SECRET, KARYO_LOCI_TOKEN_SCOPE). Those four are environment-only, never catalogue keys: the token is fetched server-side, and a goods-owner administrator must not be able to redirect it (ADR 0034). An unset token URL means Karyo sends no credential. Karyo always asks Loci for the auto level, so Loci itself decides L1 or L2 from the evidence and L3 exact-bin advice is never requested.

Five more are injected by the judgment engine module, karyo-ai-core (ADR 0064): karyo.ai.judgment.provider (KARYO_AI_JUDGMENT_PROVIDER, none by default), karyo.ai.typesafe.api-key (TYPESAFE_API_KEY), karyo.ai.typesafe.model (KARYO_AI_TYPESAFE_MODEL, pinned to jev-1.13.0), karyo.ai.typesafe.base-url (KARYO_AI_TYPESAFE_BASE_URL) and karyo.ai.typesafe.timeout (KARYO_AI_TYPESAFE_TIMEOUT, 5s). The key is environment-only and never a catalogue key, as the Loci credential is; the other four are catalogued so the console shows them, and refuse runtime writes. typesafe without a key stops startup, and a key with the provider none is inert. The installation's opt-in, karyo.ai.judgment.opt-in, is the one runtime key of the group: it is read at Company key 0, an ops principal alone writes it, and it defaults to off.

Several deployment settings are also catalog keys. karyo.receiving.allow-over-receipt is the one an administrator can change on a running instance or vary per goods owner. karyo.slotting.loci.base-url is read through the store on every request, with the environment as one rung of its ladder, so an operating-company administrator can connect or disconnect Loci on a running instance; a goods-owner administrator cannot write it (ownerWritable = false), because the application POSTs to that URL server-side. Identity provider type, exact issuer and API audience are shown in the catalog but carry environmentOnly = true, so writes from both principal kinds are refused and a coordinated restart remains mandatory. The five karyo.shipping.ship-from.* keys are catalogued the same way, as environment-only entries: ShipFromConfig reads deployment configuration, never a stored row. The runtime store's own KDoc frames the catalog as the place environment knobs are meant to go: it "grows as existing @ConfigProperty knobs migrate onto the runtime store" (services/auth-service/karyo-auth-core/src/main/kotlin/com/karyo/auth/config/SystemPropertyCatalog.kt). The remaining catalog keys are not injected configuration properties anywhere; their consumers read them through the store, whose third rung still falls back to an environment value of the same name.

The provisioning fingerprint key is environment-only too. It is server-held credential material, not an administrator-editable setting. It is optional at application startup, but principal creation refuses to operate unless the key contains at least 32 UTF-8 bytes. The production environment setup is owned by Deploying.

Several environment knobs are the kind of setting a 3PL varies per customer: replenishment scan cadence, work dispatch strategy, and - in the engine modules - the ABC thresholds slotting uses and the six forecasting parameters. All of them are instance-wide and restart-only, and why these knobs are environment-only is not recorded.

There is a related convention worth carrying forward because it is stated as a rule: an injected @ConfigProperty must never default to the empty string, the "SRCFG00040 boot-trap rule" (libs/karyo-sequence/src/main/kotlin/com/karyo/sequence/SequenceConfig.kt, SequenceConfig, services/slotting-service/karyo-slotting-core/src/main/kotlin/com/karyo/slotting/service/SlottingConfig.kt, SlottingConfig). The exceptions are optional values whose absence is meaningful: the provisioning fingerprint key and the four Loci token keys. Each is injected as Optional<String> so an unset value does not fail boot. No provisioning key means the principal creation route refuses a provisioning attempt, and no token URL means Karyo sends no credential (AccessProvisioningService; SlottingConfig). The Loci config holder also exists separately rather than being injected into a service directly, so the service stays constructible in plain unit tests without CDI.

The runtime store now accepts only catalogued keys and extension keys starting with ext.. A deployment-only key outside the catalogue, such as karyo.sequence.generator, is refused with 422 system-property-unknown-key, rather than saved without effect. Existing unknown rows remain readable and removable; the console labels them Not recognised. An ext. key affects only the extension that reads it, never a restart-bound Karyo consumer. See the namespace rule.

Tier 4: extension JARs

Karyo's extension model is CDI beans compiled into the build (ADR 0019). Strategy seams resolve by priority with a built-in registering last, so a custom implementation pre-empts the default without configuration - the pattern is stated on OrderStrategyResolver (services/order-service/karyo-orders-api/src/main/kotlin/com/karyo/orders/spi/OrderStrategyResolver.kt, OrderStrategyResolver) and repeated for packout, carrier and putaway strategies. There is a reference extension module, karyo-inventory-ext-example, which is part of the application only when the build runs with -PkaryoInventoryExample=true; there HeldLotStockFilter is active and HazmatStockFilter stays inactive (services/inventory-service/karyo-inventory-ext-example/src/main/kotlin/com/karyo/inventory/ext/example/HeldLotStockFilter.kt, HeldLotStockFilter). How an extension is built and installed is in extension SPIs and installation.

Every top-level interface declared in an spi package, sub-packages included, is in an Apache-2.0 module; the engine modules implement seams declared here, and declare none of their own. The count is in extension SPIs and installation.

The admin Extensions (SPI) page is backed by a live registry that resolves a list of fully-qualified names through Class.forName and asks the CDI BeanManager which beans satisfy each one (services/karyo-app/src/main/kotlin/com/karyo/app/admin/AdminExtensionsResource.kt, AdminExtensionsResource.listExtensions, AdminExtensionsResource.resolve). The list deliberately omits the three declared interfaces that are no extension point (ReservationSourceState, LocationDistanceSnapshot and ConcurrentStateChange). The registry comment says any other absence is a defect (AdminExtensionsResource.resolve).

The mechanism's comments are careful. An interface that fails to resolve is dropped as "honest, not fabricated", and one that resolves with zero beans is still reported, "because a declared seam with no active implementation is itself useful information" (AdminExtensionsResource). In the one Apache-2.0 distribution every engine seam resolves: CrossDockingMatcher, WaveSelectionStrategy and ReleaseTimingStrategy each have implementations in the build, so the page lists them with their implementing beans rather than empty; a seam shows an empty implementations list only when no bean is on the runtime classpath (AdminExtensionsResource.resolve). The seams that configuration knobs name are all on the list - CrossDockingMatcher, which the system-property catalog itself names as the SPI the opportunistic cross-dock rung matches through (SystemPropertyCatalog), and the two selected by the streamTimingStrategy and waveSelectionStrategy strategy knobs.

One limit remains, and one earlier limit is closed.

  • The list is complete by a rule, and still maintained by hand. A new spi interface added without a row fails the build: the registry's seam-list test compares the list with every interface declared in an spi package (services/karyo-app/src/test/kotlin/com/karyo/app/admin/AdminExtensionsResourceSeamListTest.kt, AdminExtensionsResourceSeamListTest).
  • Each row names its kind. In-process lookups and ports - ClientLookup, RuntimePropertyLookup, StockMover and the rest of the cross-module contracts - sit in the same list as the genuine extension points, and the response tells them apart: a kind of STRATEGY_SEAM, LOOKUP or PORT on every row (AdminExtensionsResource.resolve). Only a strategy seam is for implementation. The RuntimePropertyLookup KDoc says in as many words that it is not an extension seam (services/auth-service/karyo-auth-api/src/main/kotlin/com/karyo/auth/spi/RuntimePropertyLookup.kt, RuntimePropertyLookup).

The console keeps no list of its own. The page, the sidebar badge on Extensions (SPI) and the sidebar footer all read the live registry, which declares extensions.read (services/karyo-app/src/main/kotlin/com/karyo/app/admin/AdminExtensionsResource.kt, AdminExtensionsResource.listExtensions), the same action that shows the page. When the request fails the page shows the standard error state, and the badge and the footer are absent (frontend/web/src/pages/admin/admin-strategies-page.tsx; see users, roles and permissions).

The profile decides which capabilities show

Every capability, listed in engine capabilities, is part of every installation, and no licence decides any of them. What an installation shows is its profile (ADR 0052): karyo.profile is CORE (the default) or EXTENDED, and karyo.capability.<name>.enabled records an exception for one of the twelve Extended capabilities. The install default comes from KARYO_PROFILE; after that a Company administrator changes it on Admin > Capabilities, which previews what shows or hides and asks for confirmation. The thirteen keys are read at Company key 0 only, and the raw editor refuses them (403 system-property-capability-controlled). A hidden capability's REST routes stay callable and its data stays where it is. The three license keys in the table above are the compatibility bridge of ADR 0030: still injected so the application can warn that they are set, and changing nothing (licence settings (retired)). The profile never reads them.

What the configuration screens show follows from that:

  • The order strategy form offers the WAVE and STREAM release modes while Waves and Streaming show, and keeps a strategy's current mode visible whatever the profile; its packout hint names ONE_TO_ONE, and CARTONIZATION too while Cartonization shows (frontend/web/src/pages/strategies/order-strategy-form.tsx). Whether a saved strategy streams is decided by the streaming engine's runtime switch, and whether it cartonizes by the packout name the strategy carries.
  • The document templates page shows while Document templates shows, and opens on its override editor for an operating-company (ops) principal that holds settings.manage (frontend/web/src/pages/admin/admin-templates-page.tsx). No screen asks the server about a licence; the console never requests GET /api/v1/license.
  • The system properties screen and the Facility settings list leave out the thirteen profile keys and the keys of a capability the profile hides, except the six engine work switches (engineWork in SystemPropertyCatalog.kt: streaming, wave auto-release and the four cross-dock keys). Hiding does not stop that work, so its switch stays listed until it is switched off (frontend/web/src/pages/admin/admin-properties-page.tsx). Thirteen of the 38 other catalog keys are read only by an engine: two cartonization, two alerts (monitors), four cross-dock, one wave, one streaming, two 3PL billing and one slotting (the Loci base URL). Fourteen entries are environment-only - the agent resource URI, three restart-bound identity trust keys, the setup reopen marker, the five ship-from fields and the four judgment engine connection settings - and refuse runtime writes. Each engine setting takes effect when it is set; a hidden Monitors capability also pauses its evaluator.

Where the boundary actually falls

Pulling the configuration documents together, this is the honest answer to give an implementation consultant:

Configurable without code, and it works: the warehouse layout in full - zones, Location Classes, clusters, storage and working areas, location types, the capacity matrix, locations, fix assignments, planned occupancy; order and storage strategies including their JSONB knobs; goods owners; Karyo access state, permission-profile grants and, with a capable managed identity adapter, provider users; products and their capture rules; unit load types; units of measure; webhook subscriptions; document templates; and the runtime-editable properties, the Loci base URL among them.

Configurable only with a restart: identity provider type, exact issuer and API audience, the agent resource URI, the bill-of-lading ship-from address and the judgment engine's provider, model, address and timeout (the environment-only entries visible in the system-property catalog); the other environment knobs, including the replenishment scan, work dispatch strategy and the sequence generator; and the engine modules' slotting thresholds, Loci timeout, and forecasting parameters.

Configurable only by editing the database: number ranges - format, length, end counter and check digit (see reference data).

Identity administration: users, roles and permissions owns the current grant and provider-capability restrictions, including which actions the Users page exposes and which require HTTP or maintenance administration.

Needs an extension JAR and a rebuilt image: any of the declared SPI seams - a carrier adapter, a packout strategy, a putaway strategy, a work dispatch strategy, a stock selection filter. A seam declared by an engine's -api module - a detector, a forecast model - works the same way, since every engine is part of every installation.

Needs core work: a second warehouse in one installation; a per-goods-owner order strategy; per-workstation configuration (no such scope exists - see the runtime configuration store); deleting a storage strategy, an order strategy or a location cluster; deleting a user; moving a user between goods owners; a Users interface for administering tree grants; and operational rescoping beyond the current grant activation boundary. The existing access activation procedure is in the identity upgrade runbook, not a core change.

Several of these limits are easy to mistake for configuration: a strategy list and a user list do not imply that every related operation is supported.