FIELD MANUAL 01Under the counter

The quiet machinery behind one photograph.

A model may observe. Policy must verify. Only the customer may authorise.

Production boundaryVersioned decisions
Morrow rule 01Recognition is not authority.
  1. One photograph
  2. Evidence before identity
  3. Policy before purchase
  4. A passkey before payment
05
purpose-built views
06
retrieval lanes
≤09
visual finalists
≤02
precision finalists
00
card digits retained
02Deployment topology

Three rooms. Deliberately separate keys.

Public interaction, orchestration, and checkout never share the same authority.

  1. Public desk

    TanStack web app

    Camera, upload, account, live inspection

    VercelPWAClerk
  2. Control room

    Fastify API

    Ownership, validation, state and approval

    RESTSSEZod
  3. Restricted floor

    BullMQ workers

    Recognition, merchants, checkout, retention

    RedisNo public portBounded concurrency

Server-side instruments

  • R2private image objects
  • PostgreSQLledger + pgvector
  • Visionstructured observation
  • Shopify UCPlive variants + carts
  • Pravascoped payment authority
03Inspection line

Nine stations. Every hand-off leaves a receipt.

Select a station to inspect its contract.

Station 01

Intake

InputPhoto + exact/similar intent
MethodPresigned upload goes directly to private object storage.
OutputImage reference + immutable scan ID
Trust gateOwner, MIME type and byte limit validated
Latency moveAPI never proxies the image bytes
04Retrieval observatory

Five views. Six search lanes. One verdict that can be audited.

Switch traces to see why “looks similar” is useful for recall, but insufficient for authority.

Trace B · no readable identifier

Shape starts recall. It does not prove identity.

Illustrative execution trace
01Aligned views
FULLcontextOBJECTshapeLABELmarksOCRtextTHUMBstatus

Object class · silhouette · controls · colour · material

02Parallel recall

QUERY · wireless mouse · black ergonomic shell · scroll wheel

  • Exact IDskip
  • Strict textfamily
  • Broad textranked
  • Text vectorranked
  • Cabinetempty
  • Live UCPvariant
03Fuse + compare
RRFrank agreement
B1B2B3TOP 2 · PRECISION ONLY IF CLOSE

Up to nine imaged finalists; three per isolated comparison.

04Bounded outcome
Connected alternativeThe customer must choose it explicitly.
Policy receipt
Close source-backed variant, but no exact identifier.
Prava gate
Allowed only after that chosen live variant is refreshed.

Consensus, not one score

Weighted reciprocal-rank fusion combines incomparable retrievers without pretending their scores are probabilities.

Unknown earns nothing

Unreadable brand, size or variant fields remain unknown; they never become positive visual evidence.

Compute follows doubt

Only plausible finalists receive image comparison; only the closest two may receive a precision pass.

Money is downstream

Prava starts after identity, source variant, stock, currency, budget and user choice have passed policy.

05Decision core

Perception supplies evidence. Code decides what it means.

Observed evidence
  • Barcode
  • Visible text
  • Image traits
  • Prior confirmation
  • Catalogue facts

Observer + retriever

Structured claims, candidates and explicit unknowns.

No commerce toolsNo purchase authority

Deterministic policy

Normalisation, weights, hard contradictions and candidate margin.

Allowed outcomes
  • Exactidentifier + no fatal contradiction
  • Likely / similarrequires an explicit choice
  • Ambiguous / stoppedask for the smallest useful evidence
Fatal contradiction register
Barcode differs
Reject
Model or part differs
Reject
Exact size differs
Reject
Identifier missing
Abstain
Visual-only agreement
Likely / alternative
Adaptive compute

More work only when uncertainty can change the decision.

  • Known repeathash cache + cabinet history
  • Clear identifierexact lookup + contradiction check
  • Uncertain instancebounded rerank + one precision pass

Relative compute, not benchmark latency.

06Durable workflow

The request survives refreshes, retries and restarts.

HTTP starts work. The ledger owns progress.

  1. A

    Evidence

    1. IMAGE UPLOADED
    2. PREPROCESSING
    3. EVIDENCE EXTRACTED
  2. B

    Identity

    1. CANDIDATES RETRIEVED
    2. VERIFYING
    3. EXACT / SIMILAR
  3. C

    Commerce

    1. SEARCHING MERCHANTS
    2. OFFERS READY
    3. AWAITING APPROVAL
  4. D

    Authority

    1. SESSION CREATED
    2. CHECKOUT IN PROGRESS
    3. ORDER / FAILURE
Insufficient evidenceasks for one useful view, then resumes the same scan.
Uncertain checkoutstops for reconciliation; it is never automatically retried.
Version checkrejects stale jobs before they overwrite newer evidence.
07Operating discipline

Designed to fail visibly, recover narrowly and scale calmly.

Scale by queue

API, recognition, merchant search and checkout scale independently.

Retry by risk

Extraction may retry. An uncertain charge never does.

Ledger every choice

Evidence, provenance, policy version and outcome remain auditable.

Bound model spend

Reserve atomically, settle from provider tokens, stop at the user cap.

Credential boundary
Browser may see
  • Scan and evidence
  • Verified offers
  • Prava secure frame
  • Order status
Worker only
  • Encrypted delivery data
  • Scoped credential in memory
  • Final-total reconciliation
  • Merchant executor secret
Never reaches browser or logs
  • Prava secret key
  • One-time card token
  • Dynamic security code
  • Raw card number
ITEM-SCOPED
AMOUNT-SCOPED
SHORT-LIVED
Release instrument panel

Thresholds freeze before the held-out test run.

  • Exact precisionMEASURE
  • Wrong-variant false positivesMINIMISE
  • Retrieval recall at 1 / 5 / 10MEASURE
  • Source-backed offer coverageMEASURE
  • No-result rateBOUND
  • p95 stage latencyBOUND
  • Cost per verified orderBOUND

North star: verified correct orders / completed orders.

24 hOriginal upload
7 dProcessed views
0 dPayment credential storage
Field test

Now give the machinery something real to inspect.

Show it. Verify it. Get it.

Open Morrow

Merchant of Tomorrow

The old mercantile promise, finally made simple.

UNCERTAIN PRODUCTS ARE NEVER PURCHASED WITHOUT USER CONFIRMATION.

MOR-1907-1842 · London & BengaluruSee it → Verify it → Get it