Karyo
Documentation/ More documentation

Production-realm refusal and canonical screenshot refresh

Karyo 2.1.1rendered at build time
On this page

This close-out records local evidence for the unreleased 2.0.0. It does not create a release, change a version, reload demo data on Atlas or prove a release-candidate installation.

Code and isolated stack

Item Observation
Date 2026-10-21 (UTC)
Product code e8691363ac32343fdb4249619b9989c349ead3a6 (current main when the stack was built); only the refusal test, the capture script's Extended Home viewport and documentation change in this close-out
Stack Owned Compose project karyo-closeout-m, fresh PostgreSQL, Keycloak 26.8.0 importing the shipped infrastructure/keycloak/karyo-realm-prod.json, production application and nginx builds
Origin https://localhost:18643, loopback-only nginx TLS termination with a self-signed certificate; the product nginx also binds 127.0.0.1:18688
Identity setup System bootstrapped the fresh installation. The existing E2E provisioning and reviewed identity-enrollment helpers enrolled four temporary test personas with their standard grants
Browser Playwright Chromium, with certificate exceptions limited to this disposable local origin
Slotting Loci 0.2.0, rules engine, on the stack's private network at http://loci:8000; unauthenticated private-network mode, no public listener

The stack uses the production Compose service definitions with task-specific names, image tags, private environment files and absolute bind paths. The added TLS terminator exposes Keycloak's administration path on loopback for E2E provisioning and session logout. The product nginx's public-path policy is unchanged. This is a production-realm authentication proof, not a claim that the temporary maintenance path belongs in a public deployment.

The local build commands were:

./gradlew :services:karyo-app:quarkusBuild --no-build-cache
podman build --timestamp 0 --build-arg SERVICE_DIR=services/karyo-app \
  --build-arg KARYO_REVISION=e8691363 -t localhost/karyo-closeout-m/app:proof \
  -f infrastructure/docker/Dockerfile.service .
podman build --timestamp 0 --build-arg KARYO_REVISION=e8691363 \
  -t localhost/karyo-closeout-m/nginx:proof -f infrastructure/docker/Dockerfile.nginx .

No shared container or browser was restarted. The stack's application applied 192 migrations to its empty database and reported the prod profile. The self-signed certificate was trusted by Node through NODE_EXTRA_CA_CERTS; Playwright used ignoreHTTPSErrors. Credentials and raw browser traces remain outside the repository and are not release artifacts.

Authentication and refusal

From tests/e2e, the command was:

BASE_URL=https://localhost:18643 \
NODE_EXTRA_CA_CERTS=<task-directory>/cert.pem \
CURL_CA_BUNDLE=<task-directory>/cert.pem \
KARYO_E2E_PROVISION=true KARYO_E2E_IDENTITY_BOOTSTRAP=true \
KARYO_PG_CONTAINER=karyo-closeout-m-postgresql \
npx playwright test --config=<task-directory>/playwright.proof.config.ts auth.spec.ts

The private environment also supplies KEYCLOAK_ADMIN_CLIENT_SECRET and the four KARYO_E2E_<ROLE>_PASSWORD values. The wrapper imports the repository's Playwright configuration, keeps the no-skipped-tests reporter and one worker, and adds certificate options, trace capture and external result paths. It retains the temporary personas for the subsequent screenshot preparation instead of running global teardown; removal of the isolated stack ends their lifetime. An initial wrapper configuration referenced a nonexistent reporter and failed before setup; correcting that path produced the run below. No product change was needed.

Result: 5 passed, 0 failed, 0 skipped.

Scenario What the browser and API proved
Administrator login A real Keycloak login reaches Operations Control
Console deep links Login and expired-session reauthentication return through the exact / callback and restore the requested Inventory route
Floor deep links Login and reauthentication return through the exact /m/ callback and restore Inquiry; the reload also exercises the installed service worker
Authenticated refusal The operator signs in through the real browser form. The same captured bearer receives 200 from /api/v1/me, identifies the operator and has no settings.manage; GET /api/v1/admin/health receives 403 action-not-granted, not 401
Logout The console returns to the Keycloak login form

The new authenticated-refusal test attachment contains only the response statuses and problem body, not the bearer or credentials. Its decisive assertions are:

{
  "identityStatus": 200,
  "readinessStatus": 403,
  "problem": {
    "status": 403,
    "type": "https://karyowms.com/errors/action-not-granted"
  }
}

The earlier callback proof records the callback defect fixes. This run adds the missing authenticated refusal on the current product. It does not prove migration of a pre-existing Keycloak realm or an external identity provider.

Screenshots

The canonical script reseeds only this disposable stack with synthetic demo data. Three additional synthetic people were created and enrolled for the captures: Mara Chen (manager), Alex Morgan (operator) and Leila Patel (administrator). Their standard role grants match the E2E personas; the script selects Riverside DC in Lumen Home Goods explicitly.

From tests/e2e, the command was:

BASE_URL=https://localhost:18643 \
KARYO_E2E_ALLOW_SELF_SIGNED=true KARYO_E2E_LOCI_URL=http://loci:8000 \
KARYO_E2E_MANAGER_USER=mara-chen KARYO_E2E_OPERATOR_USER=alex-morgan \
KARYO_E2E_ADMIN_USER=leila-patel npm run screens

The three matching KARYO_E2E_<ROLE>_PASSWORD values are private environment variables. The script waits for monitor alerts, pins the clock, captures Extended with Loci, then Core, and leaves Core selected with its temporary Loci property removed. The final run wrote all 19 canonical PNGs and docs/media/screens/manifest.json, with the clock pinned at 2026-10-21T10:39:00.000Z. The manifest owns their routes, themes, viewports and alt text.

The first complete review found one framing regression: the new Areas sidebar entry pushed Simulation below the Extended Home capture's 1100-pixel window. The capture script now uses 1150 pixels for that scene only. This changes screenshot framing, not product layout. The whole canonical script was rerun after that correction.

The captures were reviewed by opening each PNG directly, not through a shared browser. The review covered both themes for all eight desktop scenes and all three phone scenes. It checked readable headings and controls, table alignment, current states, the synthetic-data label, the Loci connection and advice level, and timestamps against the pinned clock.

Files reviewed Change from the previous committed capture
control.desktop.{light,dark}.png New capture clock and manager; the warehouse navigation now includes physical Areas. The reseeded daily figures change with the demo date
orders.desktop.{light,dark}.png Current Orders list and shipped-order timeline, new manager, Areas navigation, reseeded order ids, customer names, counts and timestamps. The newest cross-dock row is Waiting; the script opens the newest shipped row below it
warehouse-setup.desktop.{light,dark}.png Current Warehouse setup with Areas navigation, new manager and clock; the 768-label plan is unchanged
extended-control.desktop.{light,dark}.png Current Extended navigation and daily figures, new manager and clock; the taller capture restores the visible Simulation entry
extended-waves.desktop.{light,dark}.png New manager, clock and Areas navigation; the empty Waves state is unchanged
extended-monitors.desktop.{light,dark}.png Current Floor Assessment and ranked alerts, seven active monitors, fresh stuck-order references and firing times, new manager and Areas navigation
extended-slotting.desktop.{light,dark}.png Loci connected, rules engine 0.2.0, L2 slot-class advice, Promote and Demote rows, and five SKUs held by Karyo; fresh advice times, manager and navigation
extended-capabilities.desktop.{light,dark}.png New administrator; Core remains selected with every Extended switch off
floor-inbox.phone.png The greeting names Alex Morgan; the empty claimed-work state and large Get next task button are unchanged
floor-menu.phone.png, extended-floor-menu.phone.png Recaptured and reviewed, byte-identical to the previous files. Core shows six transactions; Extended adds Sort and Pack-out

Seventeen PNGs change; the two floor menus do not. No error toast, failed Loci state, overlapping control or order timestamp later than the pinned clock was observed. The corrected Extended Home framing was reported to the coordinating maintainer rather than hidden. The screenshots do not show a new product feature merely because their bytes changed.

Additional checks and cleanup

From tests/e2e:

npm run test:helpers
npx playwright test --list --reporter=list

The helper suite executed 264 tests: 264 passed, 0 failed, 0 skipped. This includes the repository links and canonical screenshot manifest checks. An earlier invocation overlapped capture while the script had removed the old PNGs; two screenshot-presence checks failed then. The completed-capture reruns passed without a test or product change. The Playwright listing discovered 104 tests in 36 files; listing is not execution of those tests.

The owned Compose project was removed after the final capture and review:

podman-compose -p karyo-closeout-m -f <task-directory>/compose.yml down -v

This removes only this proof's containers, network and database volume. The named temporary browser session used during setup was closed; final review opened PNG files directly.

Limits

  • This is a local synthetic warehouse, not Atlas or a customer installation.
  • The certificate is self-signed, not publicly trusted.
  • The refusal is the lack of a Karyo grant, not a Keycloak realm-role authorization rule.
  • The screenshot script does not enable proximity, and these images do not prove proximity behaviour. The walk-distance record owns that evidence.
  • The full backend suite, realmTest, broker-backed Pact verification and external-agent sign-in were not run here. The failed nightly run remains a separate release concern.