{
  "name": "AI For Engineers, Part 9: Grand Finale — Complete Series Synthesis & Engineering Playbook",
  "badge": "AI FOR ENGINEERS · PART 09 / 09",
  "children": [
    {
      "name": "Ch. 01: Studio A Finale: Unifying the 9-Part Stack",
      "children": [
        {
          "name": "Core Principle: Engineering reliability requires unifying Transformer math, Big 4 toolchains, and deterministic verification."
        },
        {
          "name": "Unifying the 9-Part Reference",
          "children": [
            {
              "name": "Following Part 8's xAI audit, Gort-VII and C-Protocol synthesize all nine briefings into one operational engineering playbook."
            },
            {
              "name": "Rule / Formula: Parts 01–08 → Unified Production Playbook"
            }
          ]
        },
        {
          "name": "Vocabulary, Verification & LLM Math",
          "children": [
            {
              "name": "Part 1 locked 18 core definitions; Part 2 built verify_document.py; Part 3 dissected manifolds, 2017 Attention, RoPE, SwiGLU, and KV caches."
            },
            {
              "name": "Rule / Formula: Foundations = Definitions + Verification + Math"
            }
          ]
        },
        {
          "name": "Four Frontier Engineering Stacks",
          "children": [
            {
              "name": "Part 4 set our 4-pillar rubric; Parts 5–8 audited OpenAI, Anthropic, Google AI, and xAI across models, MCP APIs, agents, and sandboxes."
            },
            {
              "name": "Rule / Formula: Big 4 = OpenAI | Anthropic | Google AI | xAI"
            }
          ]
        },
        {
          "name": "Fixed Weights vs. Active Context",
          "children": [
            {
              "name": "Uploading specs or instructions in a prompt changes token activations inside the context window, never the underlying neural weights."
            },
            {
              "name": "Rule / Formula: y = f_θ(x_context), where θ stays frozen"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 02: Parts 1 & 2: Core Terms & Verified Documents",
      "children": [
        {
          "name": "Core Principle: Part 1 defined the 18 canonical terms; Part 2 defeated hallucinations using 5-part specs and verify_document.py."
        },
        {
          "name": "LLM, Layers, Depth, Width & Tokens",
          "children": [
            {
              "name": "Stacked layers transform token embeddings via learned parameters and weights; layer width d_model stays fixed regardless of prompt length."
            },
            {
              "name": "Rule / Formula: 1 Token ≈ 0.75 English words; d_model = const"
            }
          ]
        },
        {
          "name": "Training Paradigms vs. Context Skills",
          "children": [
            {
              "name": "Unsupervised/self-supervised pre-training, supervised learning, and RL update weights; Skills and Persistent Agents save external state only."
            },
            {
              "name": "Rule / Formula: Skill = Context Instructions + Scripts (Δθ = 0)"
            }
          ]
        },
        {
          "name": "Role, Context, Task, Format, Verify",
          "children": [
            {
              "name": "Single-shot prompts invite fluent hallucinations; staged synthesis grounds claims in primary evidence and explicit acceptance thresholds."
            },
            {
              "name": "Rule / Formula: Spec = Role + Context + Task + Format + Verify"
            }
          ]
        },
        {
          "name": "Catching Drift with verify_document.py",
          "children": [
            {
              "name": "Against LOG-104 (84.2°C housing peak) and SPEC-201 (85.0°C ceiling), verify_document.py flags 94.2°C drift and phantom SPEC-992."
            },
            {
              "name": "Rule / Formula: LOG-104: 84.2°C ≤ 85.0°C | Reject 94.2°C & SPEC-992"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 03: Part 3 Recap: Inside the Transformer Engine",
      "children": [
        {
          "name": "Core Principle: Part 3 opened the LLM engine: manifolds, superposition, 2017 Attention, RoPE, SwiGLU, KV caches, and weight stages."
        },
        {
          "name": "Affine Math, RMSNorm & Superposition",
          "children": [
            {
              "name": "Nonlinearities prevent linear matrix collapse, residual highways and RMSNorm stabilize depth, and superposition models feature packing."
            },
            {
              "name": "Rule / Formula: h_l = h_(l-1) + Block(RMSNorm(h_(l-1)))"
            }
          ]
        },
        {
          "name": "Scaled Dot-Product & Causal Masks",
          "children": [
            {
              "name": "Vaswani et al. (2017) replaced serial recurrence with QKᵀ/√dₖ scaled dot-product attention and upper-triangular causal masking."
            },
            {
              "name": "Rule / Formula: Attn(Q,K,V) = softmax(QKᵀ / √dₖ + M)V"
            }
          ]
        },
        {
          "name": "RoPE, Multi-Head QKVO & SwiGLU",
          "children": [
            {
              "name": "Rotary position embeddings encode relative distance while multi-head QKVO and SwiGLU MLP banks hold two-thirds of parameters."
            },
            {
              "name": "Rule / Formula: RoPE + Multi-Head QKVO + SwiGLU (~2/3 Params)"
            }
          ]
        },
        {
          "name": "KV Cache, GQA, NVFP4 & 3 Stages",
          "children": [
            {
              "name": "Separates compute-bound prefill from bandwidth-bound decode across KV caches, GQA, FlashAttention, MoE, NVFP4, and 3 stages."
            },
            {
              "name": "Rule / Formula: Prefill/Decode + NVFP4 + Pre-Train/SFT/Pref-RL"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 04: Parts 4–6: Evaluation Rubric, OpenAI & Anthropic",
      "children": [
        {
          "name": "Core Principle: Part 4 built our 4-pillar audit rubric; Parts 5 and 6 examined OpenAI's reasoning stack and Anthropic's MCP and Claude Code."
        },
        {
          "name": "Four Engineering Evaluation Pillars",
          "children": [
            {
              "name": "Every frontier vendor is tested on (1) Context & Reasoning, (2) APIs, MCP & Workspaces, (3) Coding/Research Agents, and (4) Sandbox Governance."
            },
            {
              "name": "Rule / Formula: Models → MCP/APIs → Agents → Sandboxes"
            }
          ]
        },
        {
          "name": "GPT-5/Sol, o-Series & Responses API",
          "children": [
            {
              "name": "Tunable reasoning_effort with mid-chain Python and file search, strict JSON Schema outputs, Canvas, Codex, Operator, and Deep Research."
            },
            {
              "name": "Rule / Formula: Responses API + Strict JSON Schema + Codex"
            }
          ]
        },
        {
          "name": "Claude Tiers, Caching & Citations",
          "children": [
            {
              "name": "Opus, Sonnet, and Haiku offer 200K–1M context, controllable Extended and Interleaved Thinking, 90% cached-prefix savings, and exact citations."
            },
            {
              "name": "Rule / Formula: Prompt Cache = −90% Input Cost | −85% Latency"
            }
          ]
        },
        {
          "name": "Open JSON-RPC Protocol & Repo Agent",
          "children": [
            {
              "name": "Anthropic open-sourced MCP (Resources, Tools, Prompts) and built terminal-native Claude Code with Plan Mode, subagents, and PreToolUse hooks."
            },
            {
              "name": "Rule / Formula: MCP = Open JSON-RPC Bridge (N+M vs N×M)"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 05: Parts 7 & 8: Google Full Stack & xAI Colossus",
      "children": [
        {
          "name": "Core Principle: Part 7 audited Google's TPU-to-Antigravity stack; Part 8 audited xAI's 200K-GPU Colossus cluster, Dual SDKs, and DeepSearch."
        },
        {
          "name": "Gemini 4 Argon, 3.8 Live & NotebookLM",
          "children": [
            {
              "name": "Million-token multimodal ingestion on custom TPUs (1M on Argon as of Nov 2026), Context Caching, and closed-corpus NotebookLM citations."
            },
            {
              "name": "Rule / Formula: Gemini 1M Context (Argon) + NotebookLM Citations"
            }
          ]
        },
        {
          "name": "AGY v2.28 Hybrid Agent Control Plane",
          "children": [
            {
              "name": "AGY App, CLI, IDE, Python SDK, and 6 IDE plugins run dynamic subagents, MCP servers, Jules, Mariner, and local GB10 vLLM."
            },
            {
              "name": "Rule / Formula: AGY v2.28 = 4 Core Surfaces + Plugins × Hybrid GPU"
            }
          ]
        },
        {
          "name": "Grok-3/4, Think Mode & Grok Studio",
          "children": [
            {
              "name": "Trained on 200K+ Memphis GPUs, Grok exposes inspectable Think Mode traces, 500K–1M SKU windows, Grok Studio, and live X."
            },
            {
              "name": "Rule / Formula: Colossus 200K+ GPUs → Grok 500K–1M + Think Mode"
            }
          ]
        },
        {
          "name": "Dual SDK Drop-In & DeepSearch",
          "children": [
            {
              "name": "xAI's REST API accepts OpenAI and Anthropic SDKs via base-URL swap, with default no-training APIs and optional Enterprise ZDR."
            },
            {
              "name": "Rule / Formula: Dual SDK + Default No-Train + Opt Enterprise ZDR"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 06: Table A: Context Windows & Multimodal Handling",
      "children": [
        {
          "name": "Core Principle: Match context budget, prefix caching, and native modality parsing to your exact engineering input payload."
        },
        {
          "name": "128K–400K+ · Active Visual Reasoning",
          "children": [
            {
              "name": "GPT-5/Sol & o3/o4 inspect diagrams via mid-chain Python crop/zoom, pair with WebRTC Realtime audio and Sora, and auto-cache prompt prefixes."
            },
            {
              "name": "Rule / Formula: OpenAI: 128K–400K+ | Mid-Chain Vision + Audio"
            }
          ]
        },
        {
          "name": "200K–1M · Exact PDF & Citation Spans",
          "children": [
            {
              "name": "Claude Opus/Sonnet parse dense PDF text + charts simultaneously, return exact character/page citations, and cut cached input token cost by 90%."
            },
            {
              "name": "Rule / Formula: Anthropic: 200K–1M | Citations API + 90% Cache"
            }
          ]
        },
        {
          "name": "1M Argon (Up to 2M SKU) · Multimodal",
          "children": [
            {
              "name": "Gemini 4 Argon (1M as of Nov 2026) & 3.8 Live ingest repos, CAD PDFs, audio, and video natively in one TPU pass, plus NotebookLM."
            },
            {
              "name": "Rule / Formula: Google (Nov 2026): Argon 1M | Select SKUs ≤ 2M"
            }
          ]
        },
        {
          "name": "500K Grok 4.7 (Up to 1M SKU) · Live",
          "children": [
            {
              "name": "Grok 4.7 (500K as of Nov 2026; select SKUs up to 1M) pairs Think Mode traces with vision parsing and live X practitioner posts."
            },
            {
              "name": "Rule / Formula: xAI (Nov 2026): Grok 4.7 500K | Select SKUs ≤ 1M"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 07: Table B: MCP, APIs & Local/Cloud Harnesses",
      "children": [
        {
          "name": "Core Principle: Standardize tool servers on open JSON-RPC MCP so your engineering tools run across all four APIs and local GPUs."
        },
        {
          "name": "Responses API, Strict Schema & Canvas",
          "children": [
            {
              "name": "Stateful previous_response_id chaining, grammar-enforced JSON Schema outputs, Python/TS Agents SDK, native MCP client, and Canvas co-editing."
            },
            {
              "name": "Rule / Formula: Responses API + JSON Schema + Agents SDK"
            }
          ]
        },
        {
          "name": "Messages API, Native MCP & DOTS",
          "children": [
            {
              "name": "Originator of JSON-RPC MCP (Resources, Tools, Prompts), direct remote MCP API connector, live Artifacts sandbox, and DOTS modular skill routing."
            },
            {
              "name": "Rule / Formula: Messages API + Remote MCP + Artifacts/DOTS"
            }
          ]
        },
        {
          "name": "Interactions API, A2A & Antigravity",
          "children": [
            {
              "name": "google-genai Interactions API, A2A protocol, and AGY v2.28 (App, CLI, IDE, SDK + 6 IDE plugins) uniting Gemini with local GB10 vLLM."
            },
            {
              "name": "Rule / Formula: GenAI SDK + A2A + AGY (Cloud + Local NVFP4)"
            }
          ]
        },
        {
          "name": "Dual OpenAI/Anthropic SDK & Studio",
          "children": [
            {
              "name": "Drop-in REST compatibility with both OpenAI and Anthropic client SDKs via base_url swap, Structured Outputs, MCP tool bridges, and Grok Studio."
            },
            {
              "name": "Rule / Formula: Dual-SDK Endpoint + Structured JSON + MCP"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 08: Table C: CLI/Repo Coding & Research Agents",
      "children": [
        {
          "name": "Core Principle: Recall Part 1: an Agent pairs a model with tools and a multi-step control loop; Persistent Agents checkpoint external state."
        },
        {
          "name": "Agents vs. Persistent Agents",
          "children": [
            {
              "name": "An agent combines an LLM, tools, and a control loop; a persistent agent saves session state externally without retraining weights."
            },
            {
              "name": "Rule / Formula: Agent = LLM + Tools + Loop (ΔWeights = 0)"
            }
          ]
        },
        {
          "name": "Codex, Claude Code, AGY & Jules",
          "children": [
            {
              "name": "OpenAI Codex (cloud VMs + CLI), Anthropic Claude Code (git-worktree subagents), and Google Antigravity + Jules async GitHub PRs."
            },
            {
              "name": "Rule / Formula: Repo: Codex | Claude Code | AGY + Jules"
            }
          ]
        },
        {
          "name": "Operator, Computer Use & Mariner",
          "children": [
            {
              "name": "OpenAI Operator automates cloud browsers, Anthropic Computer Use drives desktop pixels, and Google Mariner + Astra run web/vision."
            },
            {
              "name": "Rule / Formula: GUI: Operator | Computer Use | Mariner/Astra"
            }
          ]
        },
        {
          "name": "Deep Research vs. xAI DeepSearch",
          "children": [
            {
              "name": "OpenAI and Gemini Deep Research synthesize dense multi-hop specs; xAI DeepSearch fuses web papers with live X outage/CVE reports."
            },
            {
              "name": "Rule / Formula: Specs: Deep Research | Live Web+X: DeepSearch"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 09: Table D: Sandboxes, Permissions & Verification",
      "children": [
        {
          "name": "Core Principle: Never grant raw shell or write access without kernel sandboxes, PreToolUse hooks, unit tests, and verify_document.py."
        },
        {
          "name": "Network-Off MicroVMs & CLI Sandboxes",
          "children": [
            {
              "name": "Cloud Codex disables internet during tests; local CLI pairs approval policies with Seatbelt/Landlock sandboxes; API defaults to no training."
            },
            {
              "name": "Rule / Formula: MicroVM Net-Off + Approval Policy × OS Sandbox"
            }
          ]
        },
        {
          "name": "Plan Mode, Seatbelt & Tool Hooks",
          "children": [
            {
              "name": "Start read-only in Plan Mode; confine processes via Seatbelt or bubblewrap; attach PreToolUse and PostToolUse hooks to gate writes with pytest."
            },
            {
              "name": "Rule / Formula: Plan Mode + Seatbelt/bwrap + PreToolUse Hooks"
            }
          ]
        },
        {
          "name": "Model Armor, VPC-SC & Commercial ZDR",
          "children": [
            {
              "name": "Google pairs Antigravity scopes, supported VPC-SC perimeters, egress rules, and Model Armor; xAI separates default no-training from Enterprise ZDR."
            },
            {
              "name": "Rule / Formula: AGY Scopes + Model Armor | xAI Enterprise ZDR"
            }
          ]
        },
        {
          "name": "Tests, verify_document.py & Red-Team",
          "children": [
            {
              "name": "Sandboxes stop rogue syscalls, not hallucinations; verify outputs with pytest, verify_document.py (84.2°C vs 85.0°C), and clean-session audits."
            },
            {
              "name": "Rule / Formula: Exit 0 Required: pytest ∧ verify_document.py"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 10: Reference Pattern: Cloud + Local NVFP4 Stack",
      "children": [
        {
          "name": "Core Principle: Combine cloud frontier context windows with resident local NVFP4 models, reusable SKILL.md files, and automated linters."
        },
        {
          "name": "AGENTS.md Rules & On-Demand Skills",
          "children": [
            {
              "name": "Keep always-on AGENTS.md rules compact (<20K tokens) and load SKILL.md workflows progressively so attention stays focused on primary evidence."
            },
            {
              "name": "Rule / Formula: Always-On Rules + Progressive SKILL.md Load"
            }
          ]
        },
        {
          "name": "Dell GB10 Resident vLLM Engines",
          "children": [
            {
              "name": "NVFP4 fits Qwen 3.5 122B (:8000) and DeepSeek-R1 32B (:8001) in 128GB RAM, keeping inference on LAN when cloud fallbacks/WAN are blocked."
            },
            {
              "name": "Rule / Formula: LAN vLLM + Outbound Firewall + Local-Only MCP"
            }
          ]
        },
        {
          "name": "Task-Specific Frontier Delegation",
          "children": [
            {
              "name": "Route >500K-token repo/PDF sets to Gemini 4 Argon or NotebookLM, refactors to Claude Code or Codex, and live incident checks to DeepSearch."
            },
            {
              "name": "Rule / Formula: Route by Context Size, Tool Fit & Data Policy"
            }
          ]
        },
        {
          "name": "Automated Script & Media Verification",
          "children": [
            {
              "name": "Every generated code diff, spec, or render artifact is gated by deterministic scripts: pytest, verify_document.py, lint_episode.py, and ffprobe."
            },
            {
              "name": "Rule / Formula: Generate → Lint/Verify → Red-Team → Human Sign"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 11: The 5-Step Operational Engineering Checklist",
      "children": [
        {
          "name": "Core Principle: Execute these five concrete steps on every engineering specification, repository change, and automated workflow."
        },
        {
          "name": "Author a 5-Part Input Specification",
          "children": [
            {
              "name": "Define Role, Primary Evidence (LOG-104, SPEC-201, code), Task, grammar-locked Format (JSON Schema), and explicit Verification Acceptance Rules."
            },
            {
              "name": "Rule / Formula: Step 1: Role + Context + Task + Schema + Rules"
            }
          ]
        },
        {
          "name": "Pin Primary Sources & Modular Skills",
          "children": [
            {
              "name": "Ground claims in closed-world files or cached prefixes, store repeatable procedures in SKILL.md, and run /compact before context recall degrades."
            },
            {
              "name": "Rule / Formula: Step 2: Primary Evidence + Prefix Cache + Skills"
            }
          ]
        },
        {
          "name": "Plan First, Execute Inside Sandboxes",
          "children": [
            {
              "name": "Inspect plans in read-only Plan Mode first; run repo and GUI agents inside Seatbelt, bubblewrap, or network-off VMs gated by PreToolUse hooks."
            },
            {
              "name": "Rule / Formula: Step 3: /plan Read-Only → Kernel/VM Sandbox"
            }
          ]
        },
        {
          "name": "Deterministic Scripts + Clean Red-Team",
          "children": [
            {
              "name": "Step 4: Gate outputs with verify_document.py, pytest, and linters. Step 5: Audit diffs and specs in a clean zero-history session via a 2nd model."
            },
            {
              "name": "Rule / Formula: Step 4: Code Gate ∧ Step 5: Clean-Session Audit"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 12: Series Sign-Off: Accountable Engineering",
      "children": [
        {
          "name": "Core Principle: Models compute token probabilities over context activations; engineers own specifications, containment, and sign-off."
        },
        {
          "name": "Definitions, Verification & LLM Math",
          "children": [
            {
              "name": "18 canonical terms, 5-part specs, verify_document.py against drift and phantom citations, manifolds, 2017 Attention, RoPE, SwiGLU, and KV caches."
            },
            {
              "name": "Rule / Formula: Tokens + Transformers + Deterministic Checks"
            }
          ]
        },
        {
          "name": "Multi-Vendor Frontier Interoperability",
          "children": [
            {
              "name": "Route workloads across OpenAI, Anthropic, Google AI, xAI, and local NVFP4 GPUs using open JSON-RPC MCP servers and portable SDK interfaces."
            },
            {
              "name": "Rule / Formula: Open MCP + Hybrid Local/Cloud Routing"
            }
          ]
        },
        {
          "name": "Probabilistic Model, Deterministic Gate",
          "children": [
            {
              "name": "LLMs propose fast token continuations over context activations; compilers, pytest, verify_document.py, and accountable engineers verify truth."
            },
            {
              "name": "Rule / Formula: Model Proposes → Script Verifies → Engineer Signs"
            }
          ]
        },
        {
          "name": "AI For Engineers Curriculum Complete",
          "children": [
            {
              "name": "From Studio A—on behalf of Dr. Ada, Dr. Alan, Unit B-9, Robby, Aero-Blue, Aero-Pink, Gort-VII, and C-Protocol—ship verified systems."
            },
            {
              "name": "Rule / Formula: END OF TRACK A · AI FOR ENGINEERS (09 / 09)"
            }
          ]
        }
      ]
    }
  ]
}
