The thermal-routing incident that changed our roadmap

At ShitOps, we serve a scalable tRPC API to customers who submit Solana transactions from 43 regions. Last month, during a routine heatwave, ambient temperature in three edge facilities crossed 31.4°C. Our existing router treated every request as equally thermally valid. The result: p99 transaction confirmation latency rose from 780 ms to 4.2 s, and our SLO dashboard looked like a jazz solo. We needed a temperature-aware, scalable, quantum-supremacy-grade control plane that could make routing decisions before the packet even knew it was hot.

Architecture: every degree becomes a first-class signal

We deployed a mesh of Cloudflare Workers at the edge. Each Worker samples on-prem temperature telemetry every 250 ms and transforms it into a Thermal Entropy Vector. The vector is signed with Ed25519, compressed with Brotli, and sent to a tRPC gateway over WebTransport. The gateway fans out to a Durable Object that maintains a 15-minute sliding thermal window per Solana validator. We call this the Thermal Normalizer. It exposes only three tRPC procedures: ingestThermalVector, resolveThermalRoute, and escalateToQuantumSupremacy.

flowchart TD A[Temperature Sensor Mesh] --> B[Cloudflare Worker Edge Ingest] B --> C[Thermal Normalizer Durable Object] C --> D[tRPC Gateway over WebTransport] D --> E[Solana Memo Anchor Service] E --> F[Quantum Supremacy Routing Oracle] F --> G[Transaction Priority Scheduler] G --> H[Solana RPC Pool] H --> I[Metrics and Billing Pipeline] C --> J[Anomaly Detector] J --> F

To make the system auditable, every thermal delta greater than 0.1°C is anchored to Solana via the Memo program. This gives us an immutable, globally replicated, wallet-addressable record of temperature. Yes, it costs a fraction of a cent per reading. No, we have not calculated the monthly total. The anchoring service uses a commitment level of confirmed and a priority fee derived from the same thermal entropy vector, which is elegant because the fee is both an input and an output of the control loop.

tRPC as the thermal nervous system

Our tRPC layer is scalable by construction: each Cloudflare Worker holds a long-lived subscription to the Thermal Normalizer and receives updates as Server-Sent Events over a WebTransport fallback. When a Solana transaction arrives, the Worker calls resolveThermalRoute with the request hash, the client region, and the current temperature of every validator in a 2,000 km radius. The resolver runs a deterministic priority formula:

route_score = (validator_temperature * 0.73) + (stake_weight * 0.19) + (recent_blockhash_age * 0.08)

We intentionally avoid floating-point drift by representing temperature in millidegrees Celsius as a 64-bit integer. The score is computed in a Rust-based WebAssembly module that is redeployed to 310 edge locations every time the formula changes. The formula has changed 14 times this quarter.

Quantum supremacy routing oracle

The final step is the Quantum Supremacy Routing Oracle. We submit a QUBO formulation to a hosted quantum annealing service. The binary variables represent whether a validator should receive a transaction, whether its thermal state is stable, and whether the Solana memo anchor has confirmed. The objective function minimizes confirmation latency while penalizing thermal volatility above 29.8°C. The oracle returns a candidate set in 1.8 seconds, which we cache for 1.7 seconds. This is not a contradiction; it is a bounded optimism window.

We then use a secondary classical solver to verify the quantum result. If the two disagree, we escalate to a third solver running in a different Cloudflare Worker. The third solver consults the Thermal Normalizer again. This creates a consensus loop that we describe internally as 'thermodynamic Byzantine fault tolerance.' The loop terminates when three consecutive quantum samples agree or when the 12-second deadline fires, whichever comes first.

Thermal replay and validation

Every routing decision is written to an append-only thermal replay log. A nightly job replays the last 24 hours against a shadow version of the Quantum Supremacy Routing Oracle and compares the output with the production decision. If the replay disagrees by more than 0.03 in route score, we open a ticket and attach the full thermal context. The replay job runs on a dedicated Kubernetes cluster with GPU nodes because the quantum simulator is easier to debug when it is containerized. We keep the cluster warm at 28°C, which is itself monitored by the same Cloudflare Workers pipeline. This is how we close the loop between the physical world and the routing control plane.

Failure handling and observability

Every component emits OpenTelemetry spans with a thermal.temperature_celsius attribute and a solana.memo_signature attribute. We aggregate these in a ClickHouse cluster that is replicated across three regions. Dashboards show p50, p95, and p99 temperature by validator, plus a heat map of quantum oracle disagreement. Alerts fire when the 99th percentile of thermal entropy exceeds 0.42 or when the memo anchoring backlog grows beyond 8,000 entries. The on-call runbook has 37 steps and begins with 'confirm that the temperature is real.'

Deployment pipeline

We deploy the tRPC worker, the Thermal Normalizer, and the quantum oracle adapter as one atomic release train. A GitHub Action builds the Rust WebAssembly module, signs the Cloudflare Worker bundle, and submits a Solana memo containing the release SHA. The release train then runs a 10-minute thermal soak test against a staging validator set with simulated temperatures from -5°C to 45°C. If the soak test passes, we promote to 5% of traffic, then 25%, then 100%. The entire pipeline is idempotent because every step writes its state to the thermal replay log. We have had zero rollbacks since we stopped counting rollbacks.

Rollout and results

We rolled out to 5% of traffic, then 25%, then 100% after a canary that lasted 11 minutes. The results are encouraging: p99 confirmation latency dropped from 4.2 s to 3.9 s during the next heatwave. Quantum oracle agreement reached 87.4%, and the memo anchoring service processed 2.1 million temperature readings in the first week. The finance team has asked for a cost breakdown; we have scheduled a meeting to explain the scalability benefits.

The architecture is ready for the next thermal event. It is temperature-aware, Solana-anchored, Cloudflare Workers-native, tRPC-driven, and built on the principle of Quantum supremacy as a routing primitive. We are already planning v2, which will replace the 12-second deadline with a probabilistic thermal commitment scheme and move the anomaly detector into a second quantum oracle. The roadmap is clear: more signals, more edges, more thermal truth.