CLI, Blueprints & TE-Bus SDK
corridor.kdl · 164 B TEFW · FIPS 203/204 Quickstart
curl -fsSL https://thermoedge.ai/install.sh | sh $ thermo doctor && thermo init --template highway $ thermo keygen --profile ml-dsa-65 && thermo sign corridor.kdl --epoch 1 $ thermo verify corridor.bundle.json --min-epoch 0 && thermo audit corridor.kdl $ thermo sbom corridor.kdl --out corridor.sbom.cdx.json
Field Blueprints (KDL + Rust)
Hardware Bill of Materials & Envelope
Active TE-Bus Hardware Contract Pins
corridor.kdl Manifest
ThermoEdge Runtime Cartridge (#![no_std] Rust)
Three-Minute Quickstart
From empty folder to verified 72-hour blackout simulation
$ thermo init --template highway --out corridor.kdl $ thermo validate corridor.kdl $ thermo plan corridor.kdl $ thermo sim corridor.kdl --outage grid,fiber --hours 72 $ thermo apply corridor.kdl --state .thermo-state.redb
Prefer zero CLI install? Open the interactive WASM planner — it compiles the exact same Rust crate inside your browser.
CLI Command Surface
| thermo init --template highway | Scaffolds a physics-ready corridor.kdl manifest and starter workload. |
| thermo fmt / thermo validate | Canonical KDL formatting plus offline SRAM, cycle, and band validation. |
| thermo plan | Computes DAG diff, ITU-R Fresnel clearance, solstice autonomy, BOM, and 164 B wire frames. |
| thermo sim --outage grid,fiber --hours 72 | Stress-tests multi-day blackouts and verifies zero-drop cascade migration. |
| thermo apply --canary 10% | Pushes Merkle-verified state and battery-guarded delta OTA through Fleet or thermo-fleetd. |
| thermo drift / ledger | Audits live hardware battery SoC, noise floors, and Joule odometers against declared KDL. |
| thermo qualify --crypto-profile global | Proves 5-tier bit-exact cross-target determinism, SM3/CNSA/KpqC/CRA profiles & coded fault-recovery quorum. |
| thermo mcp | Starts a stdio MCP server exposing inspect/plan/sim/sigql tools with ask-gated apply. |
| thermo sigql / thermo-wave sigql | Compiles and executes declarative SigQL queries (FFT, ASOF JOIN, CORRELATE, OSL+TDR) with Filter Fusion & WGSL export. |
| thermo-fleetd --bind 127.0.0.1:9655 | Starts the standalone sovereign HTTP + embedded ACID Fleet & CoT/GeoJSON/MQTT control plane. |
| thermo-bench gui / tui / gang-flash | Launches the native pure-Rust Tile-SDF desktop window, SSH terminal HUD, or 20-slot USB programmer. |
Electro-Mechanical Specification · 60-Pin Unified Contract
TE-Bus pinout & plug-and-play TE-Pod auto-discovery
Every TE-Core C0–C4 compute slice and modular TE-Pod shares this electrical contract. Carrier upgrades never require board respins or driver rewrites.
| Pins | Signal Group | Rail / Logic | Direction | Hardware Contract Role |
|---|---|---|---|---|
| P1 - P6 | VBAT_LTO / VHARV / GND | 3.3V - 48V | In/Power | Battery-first storage rail & regulated solar/dT feed with inline PMIC IQ cutoff |
| P7 - P10 | J_SENSE_P / J_SENSE_N | Differential | Telemetry | Dual-rail Coulomb/shunt pins feeding hardware-signed JoulesSource::Measured receipts |
| P11 - P12 | WAKE_IRQ / S0_S3_LSW | 1.8V / 3.3V | Control | Micro-watt S0 sentinel interrupt & hard load-switch gate keeping SOM hosts OFF until S3 burst |
| P13 - P18 | QSPI0 / OSPI_CLK+IO | 1.8V | Bidir | Zero-copy XIP weights & deterministic quantized burst path |
| P19 - P24 | CANFD_0 / RS485_DE+TX+RX | 3.3V Logic | Bidir | Industrial vehicle, traffic cabinet, Modbus RTU & SDI-12 hydrology bridge |
| P25 - P28 | GNSS_1PPS / PTP_SYNC | 3.3V | Input | Sub-20 ns corridor TDMA hopping, CoMP phase alignment & UTC stamping |
| P29 - P36 | MIPI_CSI0 / LVDS_4L | SLVS / D-PHY | Input | Global-shutter HDR optical & LWIR thermal sensor stream into Pod-Sight |
| P37 - P44 | PCIE_GEN3_TX/RX_2L | HCSL / CML | Bidir | High-speed SDR baseband, NVMe spool, or optical crosslink DMA fabric |
| P45 - P48 | I2C_POD_ID / POD_RST | 1.8V / 3.3V | Bidir | Auto-discovery EEPROM manifest + calibration table for hot-swapped TE-Pods |
| P49 - P52 | RF_SAW_LOCK / PTT_EN | 3.3V | Output | Hardware channel-lock assertion enforcing 47 USC 302a(d) sub-960 MHz exclusion |
| P53 - P56 | SWD / JTAG / UART_CLI | 1.8V / 3.3V | Debug | Gang-programming debug bridge & offline ThermoEdge Bench UART telemetry |
| P57 - P60 | PQC_ATTEST / TAMPER_N | 1.8V | Bidir | Hardware PQC identity sealing, enclosure breach detect & cryptographic zeroize |
Programmatic CDK · thermo-sdk
Build large GIS corridors in type-safe Rust
use thermo_iac::sdk::{CorridorBuilder, Watts, Meters};
use thermo_iac::catalog::{ApplianceKind, CoreTier, LinkPolicy, PodKind};
pub fn build_coastal_corridor() -> String {
CorridorBuilder::new("ca_hwy1_bigsur", "coastal_temperate")
.dark_store_days(14)
.add_node("mile_44_bluff", ApplianceKind::Marker, CoreTier::C3Pro)
.with_pods(&[PodKind::Wx, PodKind::Radar])
.with_location(36.2214, -121.7412, Meters(94.0))
.add_node("harbor_light_07", ApplianceKind::Bulb, CoreTier::C2Standard)
.with_location(36.2450, -119.7681, Meters(18.0))
.add_link("bluff_to_harbor", "mile_44_bluff", "harbor_light_07", LinkPolicy::AllPathPareto)
.to_kdl()
} Authenticated REST & MCP API Surface
Pass your signed .thermoedge.ai browser session cookie or mint a scoped Personal Access Token (tei_pat_...) inside Console → CLI Keys for CI pipelines and coding agents.
| GET | /api/models/catalog | Public | Lists all 12 #![no_std] Physical AI models, quantization specs, and 48 B vs raw KB metadata. |
| POST | /api/ai/estimate | Cookie / PAT | Computes joint compute + downlink radio TX joules across TE-Core C0-C4 with CFAR / W0410 checks. |
| POST | /api/cloud/corridor-run | Cookie / PAT | Runs multi-node blackout, RF scan E0406, and coded quorum fault-recovery simulations. |
| GET / POST | /api/fleet · /api/fleet/claim | Cookie / PAT | Reads user fleet digital twin roster and binds hardware PQC identities cleanly. |
| POST | /api/fleet/sigql | Bearer (thermo-fleetd) | Runs pure-Rust SigQL queries with filter fusion, causality enforcement, and confidence bounds. |
| GET / POST | /api/portals · /api/portals/{id}/sync | Cookie / PAT | Connects and syncs GitHub, Gmail, Dropbox, Slack, S3/R2, or custom webhooks with SHA-256 receipts. |
On-Silicon Contract · thermo-wire
164-Byte `#![no_std]` Binary Manifest
Every node in corridor.kdl compiles into a fixed 164-byte little-endian TEFW binary frame carrying appliance ID, compute tier, pod bitmask, coordinates, dark-store floor, cascade policy, Merkle root, 64-byte PQC signature, and hardware CRC-32 trailer.
MAGIC(4) | VER/META(4) | PODS(2) | DAYS(2) | SOC/RULE(1) | ID_HASH(8) | GEO(11) | WORKLOAD(32) | MERKLE(32) | SIG(64) | CRC32(4) = 164 B
CLI Authentication Example
Passwordless PAT Bearer Calls
$ curl -H "Authorization: Bearer tei_pat_YOUR_KEY" \ https://studio.thermoedge.ai/api/fleet $ thermo mcp --token tei_pat_YOUR_KEY