# BlueShop business world: source audit

Audit date: **25 October 2026**. Scope: **static presentation and pinned source audit**.

The presentation now exposes 39 capability areas, 21 roles and participants, 32 journeys,
and 232 audited action records. Every action has a short description, source references and related
participants. Canonical staff names replace the previous editorial aliases.

The [redundancy review](redundancy-review.md) consolidates the support journey and
identifies remaining overlaps. Action records include summary/detail views and
access variants; they are not 232 distinct customer outcomes. The original source
inventory remains intact, and old support links resolve through explicit aliases.

The presentation separates the five business worlds from Platform & engineering.
Growth & marketing contains six commercial capability views and five business
journeys. Software delivery, MCP delegation and technical maintenance have a
dedicated section. Capability views can select the relevant actions for their
business context, while keeping every audited action identity and source mapping.
Stock reporting belongs to Fulfil; profile and address tasks remain in Care.
The public storefront locale service supports assigning language selection to
Anonymous Visitor and Customer, correcting its former inherited platform participants.

This is a complete reconciliation of the enumerated source surfaces below. It is a
static business interpretation, not proof of every internal code branch, a permission
matrix, live role provisioning, integration availability or successful runtime behavior.

## Source baseline

| Owning repository | Audited revision                           |
| ----------------- | ------------------------------------------ |
| Backend           | `7d8f500e1c7f5705017b0e3c439042667cdf2ddc` |
| Frontend          | `bf2a239de89b9b161da7a7ac12f78af97c82bbc8` |
| Infrastructure    | `7b98005a0883fdd1b3b35036f1a865ed416b8484` |

Production source was inspected in `backend/services/*/src/main/java`, relevant shared
infrastructure, generated service OpenAPI contracts, the MCP publication registry,
`frontend/apps`, `frontend/auth/src`, `frontend/shared/src`, identity provisioning and
the canonical Metabase dashboard definitions. Tests, fixtures, nested worktrees,
dependencies and third-party code are excluded. Specifications and proposed Offer
redesigns do not establish implemented behavior.

The machine-readable [source inventory](source-inventory.json) retains operation
identities, evidence paths, authorization expressions, aliases, classifications and
the exact capability/action mapping or exclusion reason. It also retains the frontend
census, role registry, MCP tool delegation and reviewed automation workflows. File
locations refer to the owning workspace repository at the revisions above.

## Reconciliation

| Service        | Canonical OpenAPI operations |
| -------------- | ---------------------------: |
| Catalog        |                           83 |
| Cart           |                           15 |
| Order          |                           17 |
| Payment        |                            0 |
| Recommendation |                            3 |
| Stock          |                           72 |
| Logistics      |                           10 |
| Customer       |                           25 |
| Review         |                           14 |
| Support        |                           23 |
| Marketing      |                           17 |
| Notification   |                           15 |
| Analytics      |                            6 |
| MCP gateway    |                           15 |
| API gateway    |                            0 |
| **Total**      |                      **315** |

All 315 canonical operations are classified and reconciled. The source census also
finds five controller methods absent from those contracts: three MCP OAuth metadata
methods and two API-gateway Swagger login methods. These bring the annotated-handler
total to 320. Three functional GET registrations serve or redirect problem-type
documentation, and ten gateway rules proxy internal OpenAPI documentation. All 333
records have a presentation mapping or an explicit exclusion. Aliases are retained
as transport variants and are not counted as additional business capabilities.

All **73 published MCP tools** resolve to the owning service operation, customer or
staff surface, effect and confirmation policy. They are delegated access channels;
they do not create a second business owner or bypass downstream authorization.

The frontend census covers **100 route declarations** in 11 route-producing files,
**129 HTTP/resource call sites**, **1,053 template event bindings** (277 external HTML
and 776 inline), and **11 local event-listener registrations**. Literal paths,
locally resolved route constants, redirects, wildcard paths, matchers and dynamic
expressions are retained. All **165 behavior families** are mapped. Visual controls,
dialogs, pagination and similar UI affordances remain grouped with their capability;
they are not inflated into separate business actions. Static call-site counts do
not establish that every runtime URL, template expression or state combination works.

Twenty configured Metabase subjects are individually discoverable in **Business
dashboards**. Native warehouse reporting remains a separate capability. Report
configuration and source queries establish intended views; no current live report
result, numerical gain or data freshness is claimed.

## What was missing

| Area                        | Presentation additions                                                                                                                                              |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Catalog                     | Staged price approval, product statistics, audit history, quality checks, product relations, deletion/copying and source reconciliation                             |
| Stock                       | CSV imports, thresholds, warehouse measures, routing, replenishment, warehouse registry, transfers, counts, bins, valuation, aging, traceability and reconciliation |
| Demand and checkout         | Owned backorders, reservation lifecycle, uncertain checkout recovery and scheduled expiry                                                                           |
| Reviews                     | Customer deletion/media lifecycle, moderation queue and SLA, separate merchant response authority                                                                   |
| Support                     | Owned ticket/order context, customer-visible conversation versus internal notes, SLA policy and response-template maintenance/preview                               |
| Marketing and notifications | Campaign lifecycle, consent confirmation, localized template preview, price-drop inbox and failed-message reprocessing                                              |
| Reporting and assistance    | Twenty dashboard subjects, filtered warehouse insights and all published MCP delegation boundaries                                                                  |
| Background behavior         | Completed-day stock measures, monthly valuation, replenishment suggestions, expiry checks, due counts, reservation release, purchase-order and backorder timeouts   |

The original 133 action statements contained a payment-status enum presented as an
action. That entry was removed. One hundred source-backed statements were added,
giving 232 current actions. Actions are stakeholder-level summaries; several source
operations can support one action, and broader capability summaries can overlap
specialized workflows. Action counts are not API counts.

The final semantic review separates changing a price from approving it, public
promotion browsing from applying a cart benefit, staff order lookup from customer
history, and basket-change invalidations from quantity mutations. Recommendation
serving covers placement-specific strategy fallback rather than only popular items.

## Actors and permissions

The map retains **Catalog Manager**, **Stock Manager**, **Logistics Manager**,
**Marketing Manager**, **Support Agent** and **Analytics Viewer**. It distinguishes
**Review Moderator** from **Merchant Representative**, and adds the API-recognized
**Warehouse Staff** and **Warehouse Lead** roles. **BlueShop Services** represents
event consumers and scheduled business jobs. Customer, visitor, administrator,
platform operator, assistant, identity, communication channels, delivery automation,
supplier and carrier remain distinct participants.

The source role registry records `admin`, `app-admin`, `app-catalog-manager`,
`app-stock-manager`, `app-support-agent`, `app-analytics-viewer`,
`app-logistics-manager`, `app-marketing-manager`, `catalog-admin`, `support-admin`,
`review-moderator`, `merchant`, `warehouse-staff`, `warehouse-lead`, `developer`,
`viewer` and `employee`, with evidence and provisioning status. Technical roles,
compatibility authorities and employee markers do not automatically create distinct
business personas. The `app-admins`, `app-catalog-managers`, `app-stock-managers`
and `app-support-agents` names are groups and are recorded separately.

Important source distinctions:

- Warehouse Staff and Warehouse Lead are admitted only by specific receipt, bin and
  traceability guards. They do not inherit Stock Manager access to valuation,
  adjustments, imports, procurement or warehouse configuration.
- Analytics Viewer can read the warehouse registry but cannot mutate it or call the
  Stock Manager-only valuation endpoint. Analytics access does not follow merely
  from having a marketing or stock role.
- Review moderation accepts `review-moderator` plus explicit catalog/admin
  alternatives. Merchant replies accept `merchant` plus explicit catalog/admin
  alternatives. These are different authorities.
- A moderator-only role is recognized by the Review API but is not admitted by the
  inspected catalog-backoffice route guard. This presentation records that mismatch;
  it does not repair it.
- The inspected Terraform module declares the core catalog, stock, support and
  analytics roles. Logistics and marketing assignments appear in the identity
  recovery manifest. Dedicated merchant, moderator and warehouse staff/lead role
  provisioning was not established. Live Keycloak grants were not queried.
- The **Related roles** list describes participation in an action. Some grouped
  actions contain different read/write permissions, ownership checks, assignment
  rules or internal service identities. Consult the operation evidence before
  treating a participant list as an authorization decision.

## Explicit boundaries

- **Payments:** checkout records a payment-method choice and currently creates a
  paid-order fact without provider collection. The Payment service contains
  lifecycle vocabulary but no production controller, payment aggregate or provider
  collection/settlement/refund workflow. The enum-only action and hypothetical
  payment-completion journey are excluded from the active map.
  The separate Order confirmation command moves `PENDING_PAYMENT` to `PAID` in
  application code. Its OpenAPI description still says `PROCESSING`; the map follows
  the implementation and records that documentation mismatch.
- **Returns:** quarantine, inspection and stock-condition decisions are physical
  stock behavior. They do not execute a monetary refund.
- **Notifications:** configured transports, consent, recipient identity, preferences,
  retry policy and eligible business facts govern delivery. Threshold configuration
  alone does not prove an alert was sent. Live email/Slack delivery was not tested.
  Price-drop and back-in-stock detection create notification records; marketing
  email consent is a separate policy. The storefront's new-arrival subscription
  request targets `POST /v1/notifications/subscribe` on Catalog, but no matching
  Catalog or Notification controller/contract operation was found. That action is
  explicitly partial in the map.
- **Loyalty:** the customer projection consumes delivered orders with a delivered
  timestamp. An order being created alone does not establish loyalty qualification.
- **Supplier and carrier:** recorded counterparties and physical handover are
  represented. No dedicated supplier portal or live carrier API feed was established.
- **Technical helpers:** OAuth discovery, Swagger assets, problem documentation,
  documentation proxy rules, E2E fixture mutations and selected internal recovery or
  projection-maintenance endpoints have explicit technical classifications or
  exclusion reasons in the inventory. Supporting relays, retention and metrics jobs
  are recorded separately from business automation.
- **Framework endpoints:** automatically supplied Actuator, Springdoc, Keycloak and
  third-party endpoints are outside the application-owned operation census. Gateway
  forwarding does not create an additional business capability for every proxy path.

## Verification and maintenance

`check-world.mjs` verifies source-record classification, MCP delegation, frontend
family mapping, canonical actor names, action descriptions and evidence, stable
references and discoverability from the five worlds. The browser audit verifies all items on the spatial canvas and inspects actions,
responsibilities, artwork separation and responsive layout. There is no pagination.
These checks validate the presentation and its pinned inventory. They do not replace
the owning services’ CI or live business acceptance.

The [verification record](verification.json) records local checks and the latest
visual regression pass: all 476 routes at 938×1133, 1280×800, 1024×768, 768×1024,
390×844 and 360×800. Every action, capability, actor and journey is rendered without
pagination. Artwork and content regions do not intersect, all default views fit
below the heading, and group navigation preserves every item. Five high-resolution
transparent illustrations replace enlarged detail crops; vector symbols remain
sharp while zooming. Browser errors were zero, and representative screenshots were
inspected locally. Earlier paged-navigation evidence is retained as a previous phase
in the verification record.

The latest copy review covers all capability and action descriptions, participant
descriptions and goals, and journey and step descriptions. It explains functional
behavior and business outcomes while retaining the canonical role names, action
identities, source mappings and implementation boundaries. Technical evidence stays
in this audit and the source inventory. Capability and action descriptions now occupy
the main canvas at a readable initial size. The homepage title shares the artwork's
camera; zoom, drag, Fit, return-home and normal-motion resize checks passed.

When an owning source revision changes, re-enumerate the affected surfaces and
review their business meaning before updating this inventory. A passing inventory
check alone cannot prove that later backend/frontend changes are covered.

No production code, identity provisioning or infrastructure was changed for this
audit. Publication is tracked separately through the owning Lab CI and GitOps pipeline.
