Karyo

Documentation

/ Start here

Karyo documentation

163 documentscited to code at 2.1.1rendered at build time67 decision records

Every document in the repository, one line each. The documents describe Karyo as it behaves today, including its known defects, and each one names the files its claims come from so that a reader can check them instead of trusting them. This site renders them without a second, shorter version.

Conventions. Source citations name a repository-root-relative file and a stable symbol or configuration key, such as ReplenishmentService.scan or application.yaml, quarkus.flyway.locations. Use these names rather than line numbers, which drift as files change. On this site a citation stays as written text. It is not a deep link, because the repository it points into is read by request.
Known defectA paragraph marked this way describes behaviour that is wrong today and is tracked as an issue. The documents keep these paragraphs on the public site; the issue itself is in the repository.
Coming in the next releaseThis site describes the latest published release (2.1.1: 163 documents, 67 decision records). Coming next: 224 documents and 111 decision records, adding Configuration 8, Operations 11, User guide 15 + 12 (Plan the roster; What Karyo reads, projects and decides), Guides 9 (Visual house style; How Karyo Works), Reference 5 (Claims and the evidence they need) and The project 10 (Review checklist).

Architecture

How the system is put together, and why.

DocumentWhat it covers
OverviewOne deployable, three core containers plus optional managed identity, two front ends: the shape of the whole
Modules and boundariesThe -api/-core rule, its two waivers, and the couplings the module graph does not show
Data and persistenceOne schema, Flyway version bands, entity base classes, cross-module reads
Events and the outboxSynchronous CDI events, observer transaction phases, and the outbox's two readers
Identity and tenancySilo tenancy, Business Unit affiliation, principal_kind, and what enforces isolation
Front endsThe desktop console and the floor PWA, route guards, and the shared page patterns
Runtime and configurationThe three core containers, optional managed Keycloak, nginx routing, configuration and schedulers
The engine boundariesHow the ten engine capabilities sit in the one distribution, what is left of the retired licence gate, and how slotting hands its analysis to Loci
Source recordWhat the one distribution contains: every capability, the equipment adapter seam, the slotting module, and the schema and migrations
Floor AssessmentBottleneck scoring, ranking and record context over a warehouse's open monitor alerts, shown on the Monitors page
The flow modelThe warehouse as flow stages with queues, people and learned rates, and the deterministic projection that runs it forward: API only
TestingThe test tree, the runners, and what each one proves
Decision recordsThe architecture decisions Karyo embodies today, numbered from 0001

What Karyo does in a warehouse

The warehouse behaviour, rule by rule.

DocumentWhat it covers
Stock model and statesUnit loads, stock units, stock states, locks, availability and the inventory journal
Receiving and quality holdsAdvance shipping notices, goods receipt, over-receipt, returns, line reversal, and what a quality hold does
Putaway and location findingThe auto-putaway observer, the location finder's filters, strategy resolution, soft reservations
Allocation and reservationOrder release, stock selection, complete-unit handling, and how a reservation is held
Stock selectionFIFO and opt-in same-day nearest sources, day boundaries and earlier-line anchors
PickingPick-order generation, confirmation, short-pick recovery, substitution, cancellation
Packing and shippingPacking, pack-out strategies, shipping units, manifest, dispatch, and unwinding a shipment
ReplenishmentFix-face and area replenishment, source selection, the top-up quantity, the opt-in scheduler
StocktakingCount sessions, count types, what "freeze" means, submit, accept and recount
Work allocationThe work inbox, its providers, dispatch strategies, eligibility, claim and release

Configuration

What a person may configure, and who may configure it.

DocumentWhat it covers
The runtime configuration storeThe property catalog, its resolution ladder, per-owner scoping, secrets and operator-controlled keys
Warehouse layout configurationZones, Location Classes, clusters, location types, locations, the capacity matrix, and what can be deleted
Strategies and policiesOrder and storage strategies, how each is bound, and their JSONB settings
Company and Business UnitsThe Company singleton, Business Unit API, retirement, configuration key 0, and seeded units
Users, roles and permissionsThe action catalogue, the standard permission profiles, grants, user provisioning and privilege boundaries
Reference dataItem units, unit load types, products as configuration, number ranges
The configuration boundaryRuntime store, environment, build and core code: where each kind of change belongs

Integration and extension

What everything outside Karyo touches.

DocumentWhat it covers
The HTTP API surfaceBase path, versioning, resource shape, pagination, filters, CSV export
The error contractRFC 7807 problem details as the code produces them, and the paths that bypass them
Identity for an integrating systemThe claims a token may carry, who can obtain one, and the integrator profile
Connecting an agentOAuth sign-in, default-off approvals, twelve mirrored reads, six prepare tools, the Approvals page, result bounds and client attribution
Webhooks and the event catalogueEvery event type, the envelope, signing, the two schedulers and the delivery guarantee
Extension SPIs and installationThe declared seams, the extensions registry, priorities, and build-time augmentation
Strategies and runtime configurationStrategy entities, JSONB settings, the property ladder and environment knobs, seen by an integrator
Documents and printingThe document templates, the override seam, the render endpoints, printing

Operations

Building, deploying, running, upgrading and recovering an installation.

DocumentWhat it covers
Operations and the delivery pipelineThe operations documents, and what CI builds and proves on every change
Building KaryoWhat a build produces, the version authorities, dependency floors, and the notices packaged into every jar
Container imagesThe two images, their bases, and how they are built reproducibly
Deploying KaryoPrerequisites, identity profiles, environment validation, the first administrator and the Compose stack
Operating an installationSchedulers, health, metrics, logs, credential rotation and maintenance
Upgrade, backup and recoveryMigrations at boot, the upgrade path, backup and restore, and what cannot be rolled back
Identity principal upgradeThe reviewed manifest, issuer evidence, principal cutover, verification and rollback boundary
Licence settings (retired)The 1.x licence settings, accepted and ignored, and what GET /api/v1/license reports
TroubleshootingSymptoms, their usual causes, and the next safe check
Release readinessThe issue inventory, the 2.0.0 release blockers, the known issues and the breaking changes

Engine capabilities

DocumentWhat it covers
Engine capabilitiesThe ten capabilities included in the distribution, seen from outside: what each offers, needs and does not do
Unconfigured statesWhat an installation shows before a capability is configured, and what became of the 1.x licence gates: every engine acts, no lapse strands work, and the console has no locked state

The project

DocumentWhat it covers
GOVERNANCE.mdWho decides what in the project, and how a contributor becomes a maintainer
ROADMAP.mdWhat Karyo is doing next, and what it is deliberately not doing
VISION.mdThe owner-approved direction and the policy for accepting or resisting a change; it states intent, not current behaviour
CODE_OF_CONDUCT.mdHow we treat each other here
SECURITY.mdReporting a vulnerability, and which versions are supported
SUPPORT.mdWhere each kind of question goes
TRADEMARK.mdWhen the Karyo and VoyagerForge marks may be used
CONTRIBUTING.mdThe change route: branches, commits, checks and pull requests
Release evidenceDated records of externally observable proofs, such as the live run of Claude Code on /mcp, with the evidence behind it

Guides

DocumentWhat it covers
Developer onboardingA developer new to Karyo: from a clone to a merged change
Architecture guideA developer changing a boundary: the invariants you must not break, and why
Implementer guideCore commissioning playbook, real UI proof and a separate extension reference
Maintaining this repositoryKeeping the code, the documents and the decision records true to each other
ReleasingCutting a release, and the schedule it follows
Performance testingAnyone measuring a local Karyo: the opt-in Gatling harness, what it refuses to do, how to run it and take a baseline
Visual house styleThe Operational Blueprint: the palette, grammar and rules every figure and screenshot follows, and what enforces them

User guide

For the people who run the warehouse. [Start at the user guide's own index](user-guide/README.md).

DocumentWhat it covers
Your first sign-inThe two interfaces, the standard permission profiles, and current Business Unit scope
The desktop consoleThe planner and administrator surface
The floor appThe operator surface: the work inbox, the transaction menu, scanning, going offline
Receive and put awayBook in a delivery and put it away
Find stockFind stock, and read available, allocated and held
Pick an orderGet an order picked
Pack and shipPack a picked order and ship it
ReplenishKeep pick faces stocked
Count stockCount stock and correct the record
Set up a warehouseCreate locations from typed label ranges or a pasted list, for a chosen goods owner, and arrange the floor
The floor viewThe building, dock doors, rooms, aisles and racks drawn from the layout, with a stock and a lock lens, and the people, trucks and room temperatures Karyo knows now
Administer KaryoBusiness Units through the Business Units screen, users, locations and settings
What Karyo extends intoThe Core and Extended profiles, how an administrator switches a capability on, and the page for each Extended capability

Reference

DocumentWhat it covers
RequirementsWhat Karyo is required to do, and where each requirement is met
GlossaryWarehouse and Karyo terms
Data modelEntities, tables and migrations
Diagram sourcesThe Mermaid sources behind every figure, and how to author, render, check and embed one

Decision records

Document
ADR 0001: Karyo is one deployable modular monolith
ADR 0002: The backend is Kotlin on Quarkus
ADR 0003: The build is Gradle with the Kotlin DSL, a version catalog and convention plugins
ADR 0004: One PostgreSQL database and one `karyo` schema serve every module
ADR 0005: Flyway migrates the schema at boot, in per-module version bands, out of order
ADR 0006: `-api` modules hold contracts, `-core` modules hold implementations, and no core depends on another
ADR 0007: Modules refer to each other's rows by id, never by foreign key
ADR 0008: Synchronous REST at the edge, synchronous CDI events inside, each observer in a chosen transaction phase
ADR 0009: State changes leave the process through a transactional outbox
ADR 0010: Stock is stored as current state with an immutable journal, not event-sourced
ADR 0011: Reporting reads the operational database directly
ADR 0012: An in-process Caffeine cache holds reference data only; stock is never cached
ADR 0013: Keycloak is the mandatory OpenID Connect provider
ADR 0014: One Company per installation; positive clients are Phase 1 Business Units
ADR 0015: `principal_kind` preserves Phase 1 scope independently of roles
ADR 0016: Two front ends, served from the API's own origin - the console at `/`, the floor PWA at `/m/`
ADR 0017: The external API is versioned REST under `/api/v1`, with an RFC 7807 error body
ADR 0018: Tunable behaviour is strategy-driven, through a family of patterns rather than one rule
ADR 0019: Extensions are compiled into the build; nothing is uploaded into a running image
ADR 0020: The free and commercial boundary is drawn per Gradle module
ADR 0021: Entitlement is an Ed25519-signed token, resolved once at startup
ADR 0022: Compose with four containers is the supported deployment
ADR 0023: Container images are built reproducibly
ADR 0024: Commits follow Conventional Commits, and releases follow Semantic Versioning
ADR 0025: Metrics are exposed and no collector ships; tracing is present and off
ADR 0026: Logs are structured JSON on standard output
ADR 0027: An optional AI copilot works through tool calls, not retrieval
ADR 0028: Quarkus Dev Services supply local and test infrastructure
ADR 0029: Karyo is one Apache-2.0 product; revenue is the managed service
ADR 0030: No licence withholds anything; the licence interfaces remain as a compatibility bridge
ADR 0031: The console has no locked state, and Loci is the slotting engine behind Karyo's facts and constraints
ADR 0032: the canonical repository is private with invited access; recipient rights are unchanged
ADR 0033: Slotting advice requires Loci; Karyo keeps its facts and constraints but no analysis of its own
ADR 0034: Karyo authenticates to Loci with a client-credentials token
ADR 0035: Warehouse setup identifies an aisle by zone and aisle-role text
ADR 0036: Warehouse setup reads labels on the server and creates them in one owner-targeted transaction
ADR 0037: Karyo owns principals over exact external identity bindings
ADR 0038: Operational scope comes from Karyo principal grants
ADR 0039: Scope is declared per endpoint, and raw ambient scope is a registered opt-in
ADR 0040: The Facility is the third tier, and the Business Unit stays a key until its consumers convert
ADR 0041: Outside agents act through an MCP endpoint under the user's login
ADR 0042: The layout and transport orders work in a Facility, products in a Business Unit, and unconverted callers use the default Facility
ADR 0043: Stock works in a Facility, and the stock owner is the Business Unit of that Facility
ADR 0044: Orders and counts work in a Facility
ADR 0045: The fulfilment flow and webhooks work in a Facility
ADR 0046: Monitors, reporting, the demand readers and the document archive work in a Facility
ADR 0047: Agents sign in to read mirrored tools
ADR 0048: Karyo authorizes every call from its own grants
ADR 0049: Sign-in events belong to the Company, never a Facility
ADR 0050: Operational rows are keyed by Facility alone
ADR 0051: Business Unit names in storage, claims and the public API
ADR 0052: An installation runs the Core or the Extended profile, and the profile decides which capabilities the console shows
ADR 0053: A fresh installation signs in once as System, a console-only setup account that disables itself
ADR 0054: Agent writes are proposals the person approves on a Karyo page
ADR 0055: Karyo has no document AI and no semantic search
ADR 0056: A release publishes only from a pushed tag
ADR 0057: A pull request proves that Karyo builds and starts; the suites run every night
ADR 0058: The warehouse flow model is deterministic code in its own module
ADR 0059: Location Class names the usage role
ADR 0060: The physical hierarchy Area > Zone > Aisle > Bay > Level > Position, with one distance service
ADR 0061: Proximity putaway is a storage strategy sort key, enabled by a Facility setting
ADR 0062: Proximity pick routes opt in through order strategies
ADR 0063: Task interleaving is a dispatch strategy, selected per Facility, gated by the proximity setting
ADR 0064: Warehouse decisions follow tiered autonomy, and a judgment engine joins Karyo behind an opt-in seam
ADR 0065: The floor is drawn from the layout: the building, dock doors and rooms are layout rows, the rest is derived
ADR 0066: The floor view is an SVG drawing of the layout, with racks inside each aisle's cell and bays drawn only up close
ADR 0067: The floor view shows what Karyo knows now, and draws nothing it cannot back with a row

Extended user guide

Document
Cartonization
Cross-docking
Document templates
Forecasting
Integrations
Monitors
Simulation
Slotting view
SPI catalogue
Order streaming
3PL billing
Waves

More documentation

Document
Karyo documentation
Live Copilot proof - OpenRouter / DeepSeek V4 Flash
Live agent proof - Claude Code on the Karyo MCP endpoint
Production realm browser login proof
Production-realm refusal and canonical screenshot refresh
Proximity walk distance
Fresh-install rehearsal of 2.0.0-rc.1 from the published images
Judgment engine live check
Using Karyo