BOUNDARY-FIRST ARCHITECTURE

Tenant Isolation, Private R2 Storage & Zero AI Rewriting

ProCERT enforces tenant boundaries, safety lock-outs, and role permissions at the Cloudflare Worker and D1 database layer—never in browser UI conventions alone.

D1 BOUNDARY

Strict TenantScope & Cross-Tenant Negative Testing

Every operational table in app/ carries a non-null tenant_id column and leads lookup indexes with tenant_id. Route handlers never query raw D1 outside TenantScope.

  • Session, paired bay-device token, and scoped inspector link are resolved server-side before any query runs.
  • Any request parameter supplying a conflicting tenantId or role is rejected immediately with 403 Forbidden.
  • Every release must pass the automated multi-tenant negative test suite verifying zero cross-tenant leakage between Tenant A and Tenant B.
PRIVATE R2 STORAGE

Tenant-Prefixed R2 & Authenticated 206 Byte-Range Streaming

Uploaded OEM manuals, statutory certificates, and verification photos live strictly under tenants/<tenantId>/ prefixes with zero public bucket access.

  • API payloads never leak raw R2 keys or bucket names—only authorised application routes after D1 ownership verification.
  • Original linearised PDFs stream via authenticated HTTP 206 Partial Content byte ranges with X-Content-Type-Options: nosniff.
  • Compensating cleanup deletes newly written R2 objects if a paired D1 metadata batch fails.
ZERO-RETENTION INGEST

Stateless PDF Ingest & Zero Copyrighted Manual Library

ProCERT never hosts or distributes a central library of copyrighted OEM manuals. Workshops upload only manuals and certificates they hold rights to use.

  • ingest/ (probus-pdf-v1) holds declarative vendor parsing profiles only—never retained customer PDFs.
  • Queue jobs issue short-lived presigned R2 URLs scoped to the exact tenant object key and wipe container scratch on completion.
  • Zero day-to-day runtime dependency: once indexed, all shop-floor searches run 100% inside app/ D1 and R2.
NO AI HALLUCINATION & CLEAN EXIT

Verbatim PDF Anchoring, Strict CSP & SHA-256 Exit Archive

ProCERT never uses generative AI to rewrite safety interlock procedures or OEM torque/parameter tables, and never locks customer data inside proprietary formats.

  • Search jumps directly to verbatim [0.0, 1.0] normalised coordinates on your uploaded PDFs and human-authored Quick Cards.
  • Strict Content-Security-Policy (style-src 'self', script-src 'self') across every estate with zero inline styles.
  • Export a complete portable archive (structured JSON/CSV, all original PDFs/photos, and manifest.sha256.json) at any time.
RBAC & OPERATOR ACCOUNTABILITY

No anonymous "Workshop" logins

Named accounts use email/passkey sessions with server-side revocation, while shop-floor tablets use revocable bay-device tokens paired with individual setter PINs or QR badges. External inspectors receive scoped time-limited links whose uploads enter a pending_review quarantine queue—never live machine clearance.

ZERO SHARED PRODUCTION DATA

Isolated Fictional Demo Compartment

Trent Valley Precision Machining Ltd runs on its own dedicated Worker, D1, R2 bucket, and captured email outbox—completely separated from customer production tenants.

Open demo.procert-solutions.dev ->

Fictional worked example · Resets nightly 03:00 UTC