# metropolitandiagnostic.com — full documentation Site: https://metropolitandiagnostic.com Publisher: SING LLC (Wyoming ID 2026-002035528) / ZYNTHIO Contact: corey@zynthio.ai Last updated: 2026-11-24 ## What this site is metropolitandiagnostic.com is a static, zero-dependency web application: a deterministic "Diagnostic & Architecture Simulator" workbench. It models pipeline latency, throughput, and monthly cost for developer scenarios, runs deterministic rule checks, verifies a schema/protocol checklist, and exports JSON/CSV with a SHA-256 spec receipt. Everything runs client-side in the browser; there is no backend, no API, no database, and no tracking. ## Page inventory | Path | Purpose | | --- | --- | | `/` | Landing page + three-step wizard workbench + reference presets + methodology | | `/privacy/` | Privacy policy (zero collection) | | `/terms/` | Terms of use | | `/contact/` | Publisher contact (corey@zynthio.ai) | | `/disclosure/` | Affiliate/paid-placement disclosure, methodology notes, editorial policy | | `/llms.txt` | Concise machine-readable summary | | `/llms-full.txt` | This file | | `/robots.txt`, `/sitemap.xml` | Crawler directives | ## Workbench: inputs The scenario form accepts six numeric inputs, each range-validated client-side (out-of-range values are rejected before evaluation): | Input | Symbol | Range | Unit | | --- | --- | --- | --- | | Origin latency | `latencyMs` | 0–60,000 | ms | | Edge hit rate | `edgeHitRate` | 0–1 | fraction | | Target load | `rps` | 0–10,000,000 | requests/second | | Cost per 1k requests | `costPer1k` | 0–100,000 | USD | | Average payload | `payloadKb` | 0–1,000,000 | KiB | | Worker nodes | `nodes` | 1–1,000 | count | ### Built-in presets | Preset id | Name | latencyMs | edgeHitRate | rps | costPer1k | payloadKb | nodes | | --- | --- | --- | --- | --- | --- | --- | --- | | `edge-cache` | Edge-cached static assets | 18 | 0.82 | 2400 | 0.04 | 42 | 4 | | `gateway-direct` | Direct gateway, no cache | 64 | 0.0 | 900 | 0.11 | 88 | 4 | | `batch-imaging` | Batch imaging ingest | 210 | 0.05 | 140 | 0.38 | 1200 | 4 | | `mcp-tool-call` | MCP tool-call round trip | 92 | 0.0 | 320 | 0.19 | 12 | 4 | ## Formulas (deterministic, ES2022) 1. **Effective latency** = `latencyMs * (1 - edgeHitRate) + edgeLatencyMs * edgeHitRate`, where `edgeLatencyMs` is fixed at 6 ms. 2. **p95 latency estimate** = `effectiveLatencyMs * 1.9`. 3. **Capacity (req/s)** = `nodes * 1000 / (effectiveLatencyForHitRate * (1 + payloadKb / 500))`. For the capacity sweep the hit-rate term uses the same effective-latency blend; the published `capacityRps` for a scenario uses `hitRate = edgeHitRate`. 4. **Headroom ratio** = `capacityRps / targetRps` (Infinity when target is 0; serialized as `null` in exports). 5. **Monthly cost (USD)** = `(rps * secondsPerMonth / 1000) * pricePer1k`, where `secondsPerMonth` defaults to 2,592,000 and `pricePer1k = costPer1k + max(0, payloadKb - 256) / 1000 * 0.9`. ## Verdict logic - `needs-optimization` (score 0) if headroom < 1 (saturated) OR p95 > 500 ms (slow). - `cost-review` (score 50) if monthly cost > $2,000. - `healthy` (score 100) otherwise. ## Rule checks (evaluateRules) | id | Pass condition | | --- | --- | | `latency-budget` | p95LatencyMs <= 500 | | `headroom` | headroomRatio finite and >= 1.25 | | `cost-budget` | monthlyCostUsd <= 2000 | | `payload-reasonable` | payloadKb <= 2048 | | `hit-rate-sane` | 0 <= edgeHitRate <= 1 | ## Compliance checklist (export gate) `json-schema` (md-diag-receipt/v1), `deterministic`, `no-pii`, `units`, `provenance` — all required, all asserted at export time by construction (the exporter only emits the canonical schema with no PII fields). ## Export formats - **JSON**: `{schema: "md-diag-receipt/v1", site, preset|custom, exportedAt, result, receipt:{sha256, canonicalBytes}}` - **CSV**: metric/value/unit rows for the headline figures. - **Spec receipt**: SHA-256 (hex) over `canonicalJson(payload)` — recursively key-sorted JSON, UTF-8. `canonicalBytes` is the UTF-8 byte length. Anyone can recompute the hash to verify an export. ## SVG tradeoff chart Step 2 renders an inline SVG sweeping edge hit rate 0→1: effective latency (accent), capacity req/s (green), monthly cost (amber dashed), with a marker at the current scenario's hit rate. Pure SVG, no libraries. ## Guarantees and limits - Zero external requests: no CDNs, fonts, trackers, or npm packages. `styles.css`, `js/core.mjs`, `js/app.js` are the only assets. - No PII collected, stored, or transmitted. - Models are educational bounds, not measurements; see /disclosure/ for methodology caveats. - Legal pages: /privacy/, /terms/, /contact/, /disclosure/.