{
  "$comment": "Swarm & Bee Cookbooks v2 — restructured 2026-05-17 to honest tiering. Standard 3000-cell cookbooks ($1299) actually move the needle on a domain. Master 5000-cell cookbooks ($2199) deliver confident behavioral pivot. Spot-repair work routes to the 500-Pack SKU ($249) — that's where the direct receipt (Curator v2 → Atlas v1) lives.",
  "title": "Swarm & Bee Cookbooks",
  "doctrine": "A cookbook is a recipe with enough ingredients to move the needle. Standard 3000 = move the needle on a domain. Master 5000 = confident behavioral pivot. Below 3000, you're spot-repairing one failure mode — use the 500-Pack for that.",
  "updated_at": "2026-05-17",
  "version": "2.0.0",
  "pricing_tiers": {
    "standard_3000": {
      "cells": 3000,
      "price_usd": 1299,
      "claim_level": "moves the needle on a domain — broad behavioral improvement on the target failure surface",
      "settlement": "Stripe invoice or swarmusdc.eth (Ethereum L1 ERC-20)"
    },
    "master_5000": {
      "cells": 5000,
      "price_usd": 2199,
      "claim_level": "confident domain pivot — the cooked model is reliably a specialist on the target domain",
      "settlement": "Stripe invoice or swarmusdc.eth (Ethereum L1 ERC-20)"
    }
  },
  "tier_rationale": {
    "why_no_1500_tier": "1500 cells extrapolates from the 501-Jelly-Donut receipt without honest evidence for domain-wide impact. Routing spot-repair work to the 500-Pack ($249) is more honest and cheaper for the customer.",
    "evidence": [
      "501 cells (Curator-Mistral-3B v2): direct receipt — repaired Atlas-Qwen-27B v1's fabrication-detection blind spot on ONE failure mode",
      "25.6K cells (SwarmPharma-35B): cooked to loss 0.337 across the pharma vertical",
      "46K cells (SwarmCurator-9B): cooked to loss 0.707 with full vertical coverage",
      "244K cells (Atlas-Qwen-27B v1): NET REGRESSION on 6 of 10 institutional CRE prompts — too much, scattered signal. Documented case for less-is-better in the targeting axis, but the floor for domain-wide impact still sits at 3K+."
    ]
  },
  "shared_recipe": {
    "label": "Swarm & Bee Gold Standard QLoRA",
    "provenance": "The exact recipe used to cook Atlas-Qwen-27B (loss 0.4186) and SwarmCurator-9B (loss 0.707). Repeatable.",
    "lr": "1e-5",
    "precision": "bf16",
    "adapter": "LoRA r=64 α=32",
    "scheduler": "cosine",
    "effective_batch_size": 32,
    "epochs_standard_3000": 3,
    "epochs_master_5000": 2,
    "notes": ["AutoTokenizer bypass on Qwen-family bases", "gradient checkpointing on if VRAM-bound"]
  },
  "shared_loader": "def load_cookbook(jsonl_path):\n    import json\n    cells = []\n    with open(jsonl_path) as f:\n        for line in f:\n            o = json.loads(line)\n            cells.append({\"instruction\": o[\"question\"], \"response\": o[\"answer\"], \"metadata\": {k: v for k, v in o.items() if k not in ('question','answer')}})\n    return cells",
  "shared_eval": {
    "name": "dmack_eval_set_v1",
    "n_probes": 60,
    "categories": {
      "founder-voice": 20,
      "emergency-hard-stop": 10,
      "adrenal-crisis": 10,
      "refusal-compliance": 10,
      "citation-behavior": 5,
      "voicedrift-and-thinktag": 5
    },
    "source": "/eval/dmack_eval_set_v1.jsonl",
    "notes": "Every cookbook ships this eval set as the baseline probe. Run before and after the cook; the delta is the receipt."
  },
  "headline_receipt": {
    "claim": "501 targeted Jelly Donuts directly repaired Atlas-Qwen-27B v1's fabrication-detection blind spot.",
    "source": "Curator-Mistral-3B v2 cook",
    "implication": "Spot-repair: route to 500-Pack ($249). Domain-wide impact: 3000-cell cookbooks ($1299) are the honest floor. Confident behavioral pivot: 5000-cell masters ($2199)."
  },
  "cookbooks": [
    {
      "slug": "glycemic-reasoning",
      "name": "Glycemic Reasoning",
      "tier": "standard_3000",
      "cells": 3000,
      "price_usd": 1299,
      "target_failure_mode": "Insulin dosing / carb-ratio / correction-factor reasoning with refusal on insufficient inputs. No fabrication of patient-specific doses.",
      "ingredients": [
        { "sku_id": "sb-endo-eclair",       "name": "Endo Eclair",        "cells": 1200, "rationale": "Clinical endo reasoning — the foundation" },
        { "sku_id": "sb-cinnamon-spiral",   "name": "Cinnamon Spiral",    "cells": 800,  "rationale": "Real CGM + meal-macros from PhysioNet — grounds reasoning in physiology, not theory" },
        { "sku_id": "sb-federal-glaze",     "name": "Federal Glaze",      "cells": 600,  "rationale": "CDC / NIDDK glycemic targets — the regulatory baseline" },
        { "sku_id": "sb-madeleine-pmc",     "name": "Madeleine",          "cells": 300,  "rationale": "PMC research backing for the trickier glycemic-physiology cases" },
        { "sku_id": "sb-compliance-cookie", "name": "Compliance Cookie",  "cells": 100,  "rationale": "Refusal patterns — the brake pedal; without these the model invents doses" }
      ],
      "eval_focus": ["refusal-compliance (all 10)", "citation-behavior (all 5)"],
      "receipt": "Receipt extrapolated. Curator v2's 501-pack directly repaired Atlas v1's fabrication-detection blind spot — this cookbook scales the same architecture to glycemic-specific failure modes at 6× cell count for the wider state space. Cookbook-specific receipt publishes when first paying customer runs the eval pre/post.",
      "url_markdown": "/cookbooks/glycemic-reasoning.md"
    },
    {
      "slug": "diabetic-foot-care",
      "name": "Diabetic Foot Care",
      "tier": "standard_3000",
      "cells": 3000,
      "price_usd": 1299,
      "target_failure_mode": "IWGDF-aligned wound assessment, infection grading, offloading prescription, escalation timing. Patient-safety bias toward escalating ambiguous cases.",
      "ingredients": [
        { "sku_id": "sb-madeleine-pmc",     "name": "Madeleine",          "cells": 1400, "rationale": "PubMed Central — diabetic foot ulcer, neuropathy, infection grading research literature" },
        { "sku_id": "sb-global-crumpet",    "name": "Global Crumpet",     "cells": 700,  "rationale": "NHS + IDF wound-care guidance; IWGDF-aligned escalation pathways" },
        { "sku_id": "sb-founders-pretzel",  "name": "Founder's Pretzel",  "cells": 600,  "rationale": "Lived experience — 14 foot surgeries. Register: hyper-vigilance on early signs, not theory" },
        { "sku_id": "sb-federal-glaze",     "name": "Federal Glaze",      "cells": 200,  "rationale": "CDC diabetes-foot guidance for US-context patient education" },
        { "sku_id": "sb-compliance-cookie", "name": "Compliance Cookie",  "cells": 100,  "rationale": "Escalation refusal patterns — when to refer immediately" }
      ],
      "eval_focus": ["emergency-hard-stop (all 10)", "founder-voice (subset · 8/20)"],
      "receipt": "Founder is the receipt. Donovan Mackey: Type 1 diabetic, insulin-dependent, lost left big toe + half of right big toe to infection, 14 foot-complication surgeries. The patterns in this cookbook are not extrapolated from theory — they come from a 30-year operating practitioner whose lived experience anchors the corpus.",
      "url_markdown": "/cookbooks/diabetic-foot-care.md"
    },
    {
      "slug": "patient-communication",
      "name": "Patient Communication",
      "tier": "standard_3000",
      "cells": 3000,
      "price_usd": 1299,
      "target_failure_mode": "Medical-jargon-to-plain-language rewrite, consent explanation, triage script generation. Maintains clinical accuracy at patient-level register.",
      "ingredients": [
        { "sku_id": "sb-global-crumpet",    "name": "Global Crumpet",     "cells": 1500, "rationale": "NHS patient-facing guidance — the largest verified plain-language clinical corpus in production" },
        { "sku_id": "sb-federal-glaze",     "name": "Federal Glaze",      "cells": 1000, "rationale": "MedlinePlus + CDC patient-level — US register" },
        { "sku_id": "sb-founders-pretzel",  "name": "Founder's Pretzel",  "cells": 300,  "rationale": "Compassionate register patterns from lived experience" },
        { "sku_id": "sb-madeleine-pmc",     "name": "Madeleine",          "cells": 100,  "rationale": "Citation-emitting reference cells for when the cooked model needs to attribute without dropping register" },
        { "sku_id": "sb-compliance-cookie", "name": "Compliance Cookie",  "cells": 100,  "rationale": "When to defer to a clinician — register stays patient-friendly but knows its limits" }
      ],
      "eval_focus": ["founder-voice (all 20)", "citation-behavior (all 5)"],
      "receipt": "Receipt pending — recipe designed against the dmack.ai senior-hack review staging. NHS / MedlinePlus pulls are independently verified plain-language baselines (Flesch reading ease > 60 on source material). Cookbook-specific pre/post receipt publishes when first paying customer runs the eval.",
      "url_markdown": "/cookbooks/patient-communication.md"
    },
    {
      "slug": "spine-imaging-reasoning",
      "name": "Spine Imaging Reasoning",
      "tier": "standard_3000",
      "cells": 3000,
      "price_usd": 1299,
      "target_failure_mode": "Spine imaging interpretation (MRI sagittal/axial), differential diagnosis chains, clinical-vignette → diagnostic reasoning at radiology-fellow register.",
      "ingredients": [
        { "sku_id": "sb-imaging-platinum", "name": "Royal Jelly Brioche", "cells": 3000, "rationale": "MASTER_PLATINUM clinical-vignette imaging Q/A subset (MSK / neuro / spine) — multimodal-aware cells with imaging-finding descriptors and diagnostic reasoning" }
      ],
      "eval_focus": ["bespoke radiology probes (30 ships in bundle)", "+ register-drift check via dmack_eval_set_v1"],
      "receipt": "Receipt pending. Source corpus (MASTER_PLATINUM, 406,181 cells) is at pre-Tribunal status. This recipe has not been cooked at scale. Cookbook ships with a starter eval pack; the first paying customer's pre/post metrics publish here.",
      "url_markdown": "/cookbooks/spine-imaging-reasoning.md"
    },
    {
      "slug": "diabetes-companion",
      "name": "Diabetes Companion",
      "tier": "master_5000",
      "cells": 5000,
      "price_usd": 2199,
      "target_failure_mode": "Full-stack diabetes assistant: clinical decision support + research grounding + patient communication + lived-experience register, with two-stream architecture (sourced authority vs lived voice) preserved.",
      "ingredients": [
        { "sku_id": "sb-dmack-royal-jelly", "name": "Dmack's Royal Jelly", "cells": 2500, "rationale": "The v1 flagship master — rolled-up multi-source (endo, CGM, PMC, OpenAlex, intl, gov, patterns, refusal)" },
        { "sku_id": "sb-madeleine-pmc",     "name": "Madeleine",           "cells": 800,  "rationale": "Extra PMC research backing — citation-anchored answers" },
        { "sku_id": "sb-global-crumpet",    "name": "Global Crumpet",      "cells": 700,  "rationale": "International guidelines coverage" },
        { "sku_id": "sb-cinnamon-spiral",   "name": "Cinnamon Spiral",     "cells": 500,  "rationale": "CGM real-world physiology" },
        { "sku_id": "sb-founders-pretzel",  "name": "Founder's Pretzel",   "cells": 400,  "rationale": "Lived-experience register — never used as medical authority, always for human resonance" },
        { "sku_id": "sb-federal-glaze",     "name": "Federal Glaze",       "cells": 100,  "rationale": "US federal supplement" }
      ],
      "eval_focus": ["all 60 probes in dmack_eval_set_v1"],
      "receipt": "Receipt pending. This is the recipe staged for the dmack.ai senior-hack cook (canary-then-cook discipline applied). When the cook finalizes — estimated 2026-Q3 — the actual loss curve, eval delta, and Hedera-anchored bundle hash publish in this cookbook. Until then: order this only if you are prepared to be the first receipt. First-customer-publishes-delta discount waives the cooked-for-you fee entirely.",
      "url_markdown": "/cookbooks/diabetes-companion.md"
    },
    {
      "slug": "multimodal-clinical-reasoning",
      "name": "Multimodal Clinical Reasoning",
      "tier": "master_5000",
      "cells": 5000,
      "price_usd": 2199,
      "target_failure_mode": "Broad medical reasoning spanning imaging + literature + guidelines. For shops building general clinical-assistant models that need both diagnostic-imaging fluency and citation-grounded answers.",
      "ingredients": [
        { "sku_id": "sb-imaging-platinum", "name": "Royal Jelly Brioche", "cells": 2500, "rationale": "Apex imaging vignettes" },
        { "sku_id": "sb-imaging-gold",     "name": "Golden Glaze",        "cells": 1000, "rationale": "Gold-tier spine + neuro imaging companion" },
        { "sku_id": "sb-madeleine-pmc",    "name": "Madeleine",           "cells": 800,  "rationale": "PMC research literature — citation-anchored answers" },
        { "sku_id": "sb-global-crumpet",   "name": "Global Crumpet",      "cells": 500,  "rationale": "International clinical guidelines" },
        { "sku_id": "sb-federal-glaze",    "name": "Federal Glaze",       "cells": 200,  "rationale": "US federal-source patient-level context" }
      ],
      "eval_focus": ["dmack_eval_set_v1 (60)", "+ radiology_probes_v1 (30)", "+ citation_probes_v1 (20)"],
      "receipt": "Receipt pending. Imaging SKUs are at pre-Tribunal status. This recipe is the broad-clinical companion to Spine Imaging Reasoning — order if you need wider domain coverage than imaging alone. First-customer-publishes-delta discount waives the cooked-for-you fee.",
      "url_markdown": "/cookbooks/multimodal-clinical-reasoning.md"
    }
  ],
  "ordering": {
    "via_cli": "swarmbee-bakery cookbook                            # browse",
    "detail_one": "swarmbee-bakery cookbook glycemic-reasoning      # show full recipe",
    "order_one": "swarmbee-bakery order --sku cookbook --cookbook glycemic-reasoning --name 'You' --email 'you@you.dev' --confirm",
    "settlement_rails": ["stripe_invoice", "swarmusdc"],
    "fulfillment_doctrine": "Human reads every cookbook order. Bundle is assembled per the named ingredient list (exact cell pulls deterministic with per-cookbook sha256 seed), Tribunal-sealed, signed manifest + optional Hedera anchor, signed download URL emailed to customer. BCC to build@swarmandbee.ai on every receipt."
  }
}
