---
name: atom-anything
description: Deterministic 5-domain physical manufacturing and cross-border trade costing engine for hardware teams, supply-chain operators, and AI agents (PCB/PCBA BOM & DFM, zero-CAD CNC & 3DP fabrication cost, 2026 lawful public HS tariffs + MPF/HMF/EU VAT, multi-factory EXW/FOB/DDP RFQ TCO normalization, and UN/LOCODE port corridor distance/risk/Scope 3 CO2e). Returns tamper-evident SHA-256 AtomReceipt JSON with strict $0 billing on HTTP 422 invalid inputs, misses, or INCONCLUSIVE outcomes.
---

# Atom-Anything Agent Skill

`Atom-Anything` (`https://atom.fastmesh.dev`) is a flat, polymorphic, deterministic physical manufacturing and trade costing engine built for autonomous procurement agents, hardware engineering teams, cross-border DTC/FBA importers, and ERP/PLM pipelines.

Every valid calculation returns a standardized, tamper-evident **`AtomReceipt`** containing itemized **`cost_breakdown`**, recomputable **`formula_audit`**, actionable **`alerts`**, structured **`evidence_sources`**, and a deterministic **`sha256_attestation`** digest.

## Hard Guarantees

1. **Strict `$0` Billing on `422` / Miss / Error**: Charges apply **only** for deterministic `VERIFIED` or `FAILED` calculations backed by non-empty `cost_breakdown`, `formula_audit`, `evidence_sources`, and a valid 64-hex `sha256_attestation`. Zero/negative quantities, impossible CNC part volumes, negative FOB prices, empty RFQ arrays, invalid UN/LOCODE ports (`HTTP 422`), `INCONCLUSIVE` outcomes, or budget-capped batch rows strictly return `billed_micros: 0` with a non-empty `zero_bill_reason`.
2. **Cross-Tenant Adaptive Archive Cache (7d–30d) & 10% Recheck Tier**: Valid deterministic calculations enter a SQLite WAL archive cache (7d initial TTL expanding `1.5x` up to 30d when unchanged). New tenants hit the cache at `100%` price (`$0` upstream cost); same-tenant repeat checks (`recheck: true`) bill **10%** of base domain pricing (`$0.002`–`$0.008`).
3. **Lawful Public Schedules Only**: `tariff_landed` uses strictly lawful 2026 public customs schedules (US HTSUS MFN, Section 301/reciprocal, CBP MPF `0.3464%` within statutory bounds, ocean HMF `0.125%`, EU TARIC CIF + import VAT) — never export-control evasion or illicit tariff circumvention.
4. **Zero Customer Data Resale & Zero CAD Upload**: Customer BOMs, supplier quotes, parametric dimensions, and execution traces are never sold, licensed, or reused to train third-party models. CNC/3DP costing runs purely from parametric bounding-box JSON without uploading proprietary STEP/IGES CAD geometry.

## Supported Domains & Transparent Micro-USD Pricing

| Domain (`domain`) | Use When You Need To Calculate | Base Price | 10% Recheck | Key Deterministic Outputs |
| :--- | :--- | :---: | :---: | :--- |
| `geo_corridor` | UN/LOCODE port-to-port maritime/air distance, transit days, chokepoint risk, Scope 3 `CO2e kg/unit` | `$0.020` (`20000`) | `$0.0020` | Distance (`km`/`nm`), transit-day window, Suez/Cape/Panama chokepoint flags, `CO2e kg/unit` |
| `cnc_3dp_cost` | Zero-CAD CNC & 3DP cost across 9 materials (`6061-T6`, `7075-T6`, `304SS`, `316L`, `POM`, `PA12`, `ABS`, `Ti-6Al-4V`, `Brass C360`) | `$0.035` (`35000`) | `$0.0035` | Billet removal ratio, cycle time, setup NRE, `<= +/-0.025mm` tolerance & anodize alerts, batch curve |
| `tariff_landed` | 2026 lawful US/EU HS tariff stack, CBP MPF/HMF, `/5000` & `/6000` volumetric weight, true landed gross margin | `$0.050` (`50000`) | `$0.0050` | MFN + Section 301/reciprocal + MPF/HMF or EU CIF+VAT, chargeable weight, landed unit cost & margin % |
| `rfq_tco_normalize` | Apples-to-apples multi-factory `EXW`/`FOB`/`CIF`/`DAP`/`DDP` bid normalization across `USD`/`CNY`/`EUR` | `$0.060` (`60000`) | `$0.0060` | Normalized unit TCO ranking, tooling amortization, financing carry, hidden fees, rank-reversal flag |
| `pcb_bom_dfm` | 1–16 layer PCB/PCBA + CSV/JSON BOM cost breakdown, EOL/shortage substitution, DFM risk checks | `$0.080` (`80000`) | `$0.0080` | Bare PCB + BOM attrition + SMT + NRE curve, EOL/shortage alternates, `0201`/trace/drill/BGA warnings |

## Quick Invocation

### 1. Native Streamable MCP (`POST https://atom.fastmesh.dev/mcp`)

Discover flat MCP tools (`atom_calculate`, `atom_batch`, `atom_verify_receipt`):

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}
```

Execute a deterministic 2026 HS tariff & landed margin calculation:

```json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "atom_calculate",
    "arguments": {
      "domain": "tariff_landed",
      "hs_code": "7616.99.51",
      "origin_country": "CN",
      "destination_country": "US",
      "transport_mode": "ocean_lcl",
      "fob_unit_usd": 14.5,
      "units": 1000,
      "carton_dims_cm": [40.0, 30.0, 25.0],
      "units_per_carton": 10,
      "gross_weight_kg_per_carton": 12.5,
      "retail_price_usd": 49.0
    }
  }
}
```

### 2. HTTP REST API (`POST https://atom.fastmesh.dev/calculate`)

Single calculation for a 4-layer ENIG IoT PCBA with BOM EOL & DFM audit:

```bash
curl -sS -X POST https://atom.fastmesh.dev/calculate \
  -H "Content-Type: application/json" \
  -H "X-API-Key: ${ATOM_API_KEY}" \
  -d '{
    "domain": "pcb_bom_dfm",
    "layer_count": 4,
    "width_mm": 62.0,
    "height_mm": 44.0,
    "copper_oz": 1.0,
    "min_trace_mil": 5.0,
    "min_drill_mm": 0.3,
    "surface_finish": "ENIG",
    "qty": 50,
    "bom_items": [
      {"designator": "U101", "mpn": "ESP32-S3-WROOM-1", "package": "Module-41P", "qty_per_board": 1, "unit_price_usd": 3.45},
      {"designator": "U102", "mpn": "STM32F405RGT6", "package": "LQFP-64", "qty_per_board": 1, "unit_price_usd": 4.20}
    ]
  }'
```

Concurrent heterogeneous batch with hard budget lock (`POST /calculate/batch`, up to 100 items):

```bash
curl -sS -X POST https://atom.fastmesh.dev/calculate/batch \
  -H "Content-Type: application/json" \
  -H "X-API-Key: ${ATOM_API_KEY}" \
  -d '{
    "max_budget_micros": 250000,
    "items": [
      {"domain": "geo_corridor", "origin_port": "CNSZX", "destination_port": "USLAX", "transport_mode": "ocean_container", "cargo_weight_kg": 1200.0, "units": 500},
      {"domain": "cnc_3dp_cost", "process": "cnc_milling", "material": "6061-T6", "envelope_mm": [120, 80, 35], "part_volume_cm3": 98.5, "tolerance_mm": 0.025, "surface_finish": "anodized_black", "qty": 25},
      {"domain": "tariff_landed", "hs_code": "7616.99.51", "origin_country": "CN", "destination_country": "US", "transport_mode": "ocean_lcl", "fob_unit_usd": 14.5, "units": 1000, "carton_dims_cm": [40, 30, 25], "units_per_carton": 10, "gross_weight_kg_per_carton": 12.5, "retail_price_usd": 49.0}
    ]
  }'
```

Retrieve a stored receipt by ID:

```bash
curl -sS https://atom.fastmesh.dev/receipt/ar_example_receipt_id
```

### 3. Via `treg hub` (0% Seller Commission, `$0` on 422 / Miss)

```bash
treg call atom-anything \
  --data '{"domain":"rfq_tco_normalize","target":"uslax_3_factory_rfq","payload":"{\"target_qty\":2000,\"target_destination\":\"USLAX\",\"quotes\":[{\"supplier\":\"Shenzhen Alpha Mold\",\"incoterm\":\"EXW\",\"currency\":\"CNY\",\"unit_price\":46.0,\"tooling_fee\":28000.0,\"moq\":1000,\"payment_terms\":\"50_50_tt\"},{\"supplier\":\"Ningbo Beta Precision\",\"incoterm\":\"FOB\",\"currency\":\"USD\",\"unit_price\":7.25,\"tooling_fee\":3500.0,\"moq\":1500,\"payment_terms\":\"30_70_tt\"},{\"supplier\":\"Monterrey Gamma Mfg\",\"incoterm\":\"DDP\",\"currency\":\"USD\",\"unit_price\":8.65,\"tooling_fee\":4200.0,\"moq\":500,\"payment_terms\":\"net_30\"}]}"}'
```

## Example `AtomReceipt` Response

```json
{
  "receipt_id": "ar_tariff_76169951_01",
  "receipt_type": "AtomReceipt",
  "domain": "tariff_landed",
  "target": "7616.99.51:CN->US",
  "verdict": "VERIFIED",
  "confidence": 0.99,
  "cost_breakdown": {
    "fob_total_usd": 14500.0,
    "mfn_duty_usd": 362.5,
    "section_301_duty_usd": 3625.0,
    "mpf_usd": 50.23,
    "hmf_usd": 18.13,
    "freight_usd": 510.0,
    "landed_total_usd": 19065.86,
    "landed_unit_usd": 19.07,
    "gross_margin_pct": 61.09
  },
  "formula_audit": {
    "fob_total_formula": "14.5 * 1000 = 14500.00",
    "mpf_formula": "clamp(14500.00 * 0.003464, 32.71, 634.62) = 50.23",
    "hmf_formula": "14500.00 * 0.00125 = 18.13",
    "landed_unit_formula": "19065.86 / 1000 = 19.07"
  },
  "alerts": [
    {"code": "SECTION_301_STACK", "severity": "warning", "message": "CN-origin HS 7616.99.51 incurs 25% Section 301 duty stacked above 2.5% MFN"}
  ],
  "evidence_sources": [
    {
      "source": "us_htsus_2026_schedule",
      "url": "https://hts.usitc.gov/",
      "status": "ok",
      "observed_at_utc": "2026-12-02T04:45:00Z",
      "summary": "Lawful 2026 public US HTSUS + CBP MPF/HMF tariff math applied"
    }
  ],
  "checks": [
    {"name": "input_validation", "passed": true, "detail": "Validated positive FOB, units, and carton geometry"},
    {"name": "tariff_schedule_match", "passed": true, "detail": "Matched 2026 US public schedule for HS 7616.99.51"}
  ],
  "payload_sha256": "4f9e531ad0d3687511f85de2d689c7a0fbc40c7d9de85fe6d6eb2c314e548182",
  "sha256_attestation": "80c6764b59ce3db30e5f696daa8b2e61f63db49887cff8e47bc9e1a4bd073e06",
  "billed_micros": 50000,
  "base_price_micros": 50000,
  "cache_hit": false,
  "cache_tier": "live",
  "confirm_dual_source": false,
  "timestamp_utc": "2026-12-02T04:45:00Z",
  "zero_bill_reason": "",
  "details": {"hs_code": "7616.99.51", "origin_country": "CN", "destination_country": "US"}
}
```

## Local Tamper-Evident Receipt Verification (Python 3 Stdlib)

Any downstream auditor or agent can verify offline that an `AtomReceipt` has not been altered:

```python
import hashlib
import hmac
import json

def verify_receipt_signature(receipt: dict) -> bool:
    """Recompute deterministic SHA-256 attestation over all fields except sha256_attestation."""
    expected = str(receipt.get("sha256_attestation") or "").strip().lower()
    if len(expected) != 64:
        return False
    unsigned = {k: v for k, v in receipt.items() if k != "sha256_attestation"}
    canonical = json.dumps(
        unsigned,
        sort_keys=True,
        separators=(",", ":"),
        ensure_ascii=False,
    ).encode("utf-8")
    actual = hashlib.sha256(canonical).hexdigest()
    return hmac.compare_digest(actual, expected)
```

Or invoke the MCP tool `atom_verify_receipt` directly with the full receipt JSON object or `receipt_id`.

## Prepaid Credit Packs (Creem.io, Non-Expiring, One-Time)

- **Starter (`$9.00`)**: `$9.00` engineering credits (`9,000,000` micros, `0%` bonus) — `https://www.creem.io/product/prod_atom_anything_starter_9`
- **Pro (`$29.00`, Recommended)**: `$34.80` engineering credits (`34,800,000` micros, `+20%` bonus) — `https://www.creem.io/product/prod_atom_anything_pro_29`
- **Scale (`$99.00`)**: `$128.70` engineering credits (`128,700,000` micros, `+30%` bonus) — `https://www.creem.io/product/prod_atom_anything_scale_99`
- **Enterprise (`$299.00`)**: `$418.60` engineering credits (`418,600,000` micros, `+40%` bonus) — `https://www.creem.io/product/prod_atom_anything_enterprise_299`

## Support & Discovery

- Service URL: `https://atom.fastmesh.dev/`
- Machine Index: `https://atom.fastmesh.dev/llms.txt`
- OpenAPI 3.1.0 Spec: `https://atom.fastmesh.dev/openapi.json`
- Technical Guides (30 pages): `https://atom.fastmesh.dev/guides`
- Contact: `ops@fastmesh.dev`
