Skip to main content
NOXPORT LABSNoxport Labs
PRODUCTION GLASS-BOX CASE STUDY · TRANSACTIONAL + AGENT-READY

DrKalashnikova.com: Multi-Branch Transactional Booking & Agent-Ready Engineering

How Noxport Labs engineered a deterministic production web platform across 4 physical branches and 1 virtual route: SQLite WAL serialization with fencing tokens, symmetric ±60m cross-branch transit guards, feature-gated Payment FSM and LiveKit WebRTC rooms, and an RFC 9110 / ETag 304 / OAuth 2.1 MCP edge.

VERIFIED PRODUCTION DEPLOYMENT · EXPLICIT ISSUER BOUNDARY

Live production system running at https://drkalashnikova.com. Noxport Labs acts strictly as the engineering & software implementation_case issuer; authoritative operational, licensing, schedule, and pricing facts belong exclusively to the portal operator and official registries.

drkalashnikova.com
100 / 100
Protocol Scan (20.11.2026)

Public isitagentready.com protocol scan — verifies machine headers & discovery only.

N = 0
Organic Citations (25.11.2026)

Stage 0 organic measurement baseline separated cleanly from protocol lint scores.

WAL · ±60m
4 Branches + 1 Virtual Route

BEGIN IMMEDIATE serialization, fencing_counter, and symmetric cross-branch conflict window.

Feature-Gated
7-Gate FSM & LiveKit TURN

Payment FSM and split-auth WebRTC shipped behind runtime flags, disabled until activation.

01 · SIX PRODUCTION SUBSYSTEMS

Glass-Box engineering invariants without exposing NDA client internals

Prompts, internal weights, client contracts, server IPs, and private endpoints remain strictly under NDA. Below are the verifiable engineering invariants of all 6 subsystems.

Interactive Subsystem Architecture Inspector (01–06)
Click any subsystem to inspect invariants · all 6 blocks rendered in SSR below
SUBSYSTEM 01PRODUCTION ACTIVE

Dual-Audience HTTP Edge & Cache Safety

Routes identical domain truths across browser HTML and clean agent Markdown while protecting CDN/proxy caches against MIME collisions.

Engineering Transferability: Prevents headless AI crawlers from hitting hydration shells while guaranteeing humans never receive raw Markdown from shared reverse proxies.
Verifiable Contract Invariants
Accept: text/markdown;q=0.9, text/html;q=0.5
-> Vary: Accept, Accept-Encoding
-> ETag: "md-7f4e91c0..." | If-None-Match => 304
-> Link: </llms.txt>; rel="describedby"
01 · Dual-Audience HTTP Edge & Cache Safety
PRODUCTION ACTIVE

Routes identical domain truths across browser HTML and clean agent Markdown while protecting CDN/proxy caches against MIME collisions.

  • RFC 9110 q-weighted Accept header parser prevents Accept: */* browsers from triggering Markdown responses.
  • Node.js diagnostics_channel listener preserves Vary: Accept alongside deterministic "md-<sha256_16>" ETag and 304 Not Modified.
  • RFC 8288 & RFC 9727 Link headers expose /llms.txt and API schemas; SHA-256 semantic lastmod prevents artificial sitemap churn.
  • Regex sitemap guard (/\.(xml|txt|json|vcf)$/i) drops static machine endpoints from human crawl graphs.
Prevents headless AI crawlers from hitting hydration shells while guaranteeing humans never receive raw Markdown from shared reverse proxies.
02 · Deterministic Multi-Branch Booking & WAL Concurrency
PRODUCTION ACTIVE

Eliminates double-booking and impossible physical transit collisions across 4 physical branches and 1 virtual route under strict transaction serialization.

  • Single-source 3-way occupancy check merges branch schedules, active temporary holds, and confirmed bookings inside SQLite WAL BEGIN IMMEDIATE.
  • Monotonic fencing_counter prevents stale requests or out-of-order workers from mutating slot state.
  • Symmetric ±60-minute physical travel conflict window (targetStart < holdEnd + 60 && holdStart < targetEnd + 60) vs exact interval check for virtual routes.
  • Fail-closed cutoff window (20m–4h before start) downgrades safely to PREFERENCE_ONLY; stale scope edits return 409 PREFLIGHT_SCOPE_MISMATCH.
Directly transferable to any marketplace, field-service dispatch, or multi-location scheduling product where resource contention breaks naive CRUD locks.
03 · Fail-Closed Payment FSM & Encrypted Vault
FEATURE-GATED (OFF BY DEFAULT)

Full 7-gate payment engine designed against double charges, orphaned webhooks, and partial state — kept feature-gated off until commercial billing activation.

  • getCheckoutReadiness() enforces 7 sequential invariants plus deterministic Idempotency-Key + SHA-256 payload mismatch rejection (409 IDEMPOTENCY_KEY_CONFLICT).
  • availabilityRevision lock aborts checkout (409) if schedule occupancy changes between preflight and charge initialization.
  • Leased creation_unknown reconciliation resolves upstream gateway timeouts idempotently; webhooks validate raw HMAC signatures + integer minor-unit amounts.
  • Atomic revokeOrder rollback paired with AES-256-GCM vault encryption, hashed inv2_/rec2_ single-use tokens, and dual durable outbox streams.
Production-grade blueprint for fintech, paid SaaS, and escrow platforms where a single webhook race or floating-point rounding discrepancy leaks revenue.
04 · Hardened WebRTC Room & Split Role Auth
FEATURE-GATED (OFF BY DEFAULT)

Built on LiveKit SFU and Cloudflare TURN with server-enforced split authentication blocking client-side privilege escalation; disabled behind feature flag until activation.

  • URL parameter tampering (?role=patient -> doctor) is rejected server-side with 401 DOCTOR_AUTH_REQUIRED tied to isolated CRM session credentials.
  • Fail-closed 503 TELEMEDICINE_SECRET_NOT_CONFIGURED prevents insecure fallback keys; history.replaceState scrubs sensitive invite tokens after handshake.
  • Video pipeline locks contentHint: "detail" + degradationPreference: "maintain-resolution", coupled with ResizeObserver anti-occlusion and hot setSinkId audio routing.
  • Strict magic-byte binary inspection rejects renamed HEIC/HEIF blobs masquerading as JPEG/PNG with 415 UNSUPPORTED_HEIC_FORMAT.
Protects high-detail visual workflows (design inspection, telehealth prep, document verification) against broken uploads, NAT drops, and role spoofing.
05 · Machine-Callable Agent API & Declarative WebMCP
PRODUCTION ACTIVE

Combines OAuth 2.1 PKCE MCP endpoints, idempotent tool invocation, declarative WebMCP registration, and unified Schema.org disambiguation.

  • MCP JSON-RPC 2.0 validates OAuth 2.1 + PKCE S256 tokens and pairs Idempotency-Key with SHA-256 request hashes (X-Idempotent-Replay or -32009 / 409 conflict).
  • Declarative WebMCP registers typed tools strictly when browser exposes navigator.modelContext — zero synthetic JS polyfills.
  • Single-Source Fact Projection keeps HTML, crawler Markdown, Schema.org JSON-LD, XML sitemaps, and MCP tool payloads synchronized from one TypeScript model.
  • Strict issuer boundary: engineering portal attests only to software delivery while domain pricing/registry facts point strictly to primary operators.
Lets software agents and search indexers read structured facts and invoke safe tools deterministically without scraping fragile CSS selectors.
06 · Sub-Second SSR & Atomic Server Operations
PRODUCTION ACTIVE

Keeps serialized Next.js React Server Component flight data compact, operator alerts PII-free under 4KB, and deployments atomic with zero proxy downtime.

  • Signature-keyed RSC payload pruning removes heavyweight nested article trees from initial HTML serialization.
  • Mobile CRM operator digests pack bounded non-PII telemetry into <4KB Deflate-9 base64url strings.
  • Caddy Admin API applies reverse-proxy route updates atomically in-place without dropping active connections.
  • Automated pre-merge CI branch verification blocks @ts-ignore, as any, test.skip, and unapproved >30% source deletions.
Ensures predictable sub-second TTFB for SEO/GEO bots alongside repeatable, unbreakable operations on multi-tenant VPS infrastructure.
02 · SCHEMATICS & INVARIANT SIMULATORS

Zero-PII architectural diagrams and interactive state-machine verification

±60m Cross-Branch Conflict Simulator
CONFLICT (409 BLOCKED)

Existing confirmed hold: 09:30–10:00 (Branch A). Test an incoming 30-min slot request:

Incoming slot start10:45 – 11:15
hold=[09:30..10:00] target=[10:45..11:15] buffer=60m
targetStart < holdEnd + 60 && holdStart < targetEnd + 60 => CONFLICT (rejected atomically in WAL)
7-Gate Payment FSM Preflight Inspector
FEATURE-GATED OFF
G1 · Feature Flag Gate
FEATURE_PAYMENTS_ENABLED === true
Mobile operator status telemetry is bounded in <4KB Deflate-9 base64url payloads with PII stripped.
01 · Dual-Audience HTTP Edge & Vary: Accept Cache Boundary
Vector schematic of Dual-Audience HTTP Edge routing HTML SSR vs RFC 9110 Markdown with ETag 304 and Vary Accept isolation
RFC 9110 q-weighted Accept routing, Node diagnostics_channel Vary protection, deterministic ETag/304, and SHA-256 semantic lastmod.
02 · SQLite WAL BEGIN IMMEDIATE, Fencing & ±60m Conflict Buffer
Diagram of SQLite WAL BEGIN IMMEDIATE booking transaction with monotonic fencing token and symmetric plus-minus 60 minute cross-branch buffer
3-source occupancy unification, monotonic fencing_counter, symmetric ±60m cross-branch physical transit check, and 20m–4h fail-closed cutoff.
03 · Feature-Gated 7-Gate Payment FSM & LiveKit/TURN Split Auth
Architecture diagram showing feature-gated 7-gate payment finite state machine with AES-256-GCM vault and LiveKit SFU plus Cloudflare TURN split role authentication
Default-disabled modules: 7-gate Checkout FSM + AES-256-GCM vault + HMAC webhook verify alongside server-enforced LiveKit split role auth.
04 · Single-Source Fact Projection & Separated Baseline Metrics
Single-source fact graph schematic projecting to HTML, Markdown, JSON-LD, and MCP while keeping 100/100 protocol scans separate from N = 0 organic citations
Synchronized HTML, Markdown, Schema.org JSON-LD, XML, and OAuth 2.1 MCP projection with explicit 100/100 protocol vs N = 0 citation split.
03 · CROSS-INDUSTRY TRANSFERABILITY

How these verified subsystems transfer to SaaS, fintech, and marketplaces

Target Sector / System TypeReused Case ArchitectureEngineering Problem Resolved
Marketplaces & Multi-Branch BookingSQLite/PG serialization, monotonic fencing tokens, symmetric travel conflict windows, 409 preflight checks.Eliminates double-booking and physically impossible courier/specialist handoffs.
Fintech, Escrow & Metered SaaS7-gate checkout preflight, Idempotency-Key SHA-256 guards, creation_unknown leases, integer minor-unit HMAC verify.Prevents duplicate charges, webhook race corruption, and floating-point balance drift.
Enterprise SaaS & Documentation PortalsSync <head> in first 15 KiB, RFC 9110 Vary: Accept Markdown + ETag/304, OAuth 2.1 PKCE MCP, SSOT projection.Serves fast SSR HTML to humans and clean verifiable facts + typed tools to software agents.
Regulated Client Portals & TelehealthServer-enforced CRM role tokens (blocking ?role= URL tampering), contentHint: detail, magic-byte inspection.Prevents unauthorized role elevation, low-bitrate blurring, and broken HEIC uploads.
Need comparable booking concurrency, payment safety, or Agent-Ready HTTP architecture?
B2B ENGINEERING INTAKE · DIRECT ARCHITECTURE REVIEW

Scope your platform or architecture review

Share your contact and, if available, your domain URL. A senior systems engineer will inspect your stack and propose a clear execution scope.

Direct transmission to isolated Noxport CRM. Zero third-party ad brokers.