{
  "name": "AI For Engineers, Part 4: The Big 4 Frontier Landscape — OpenAI, Anthropic, Google AI & xAI",
  "badge": "AI FOR ENGINEERS · PART 04 / 09",
  "children": [
    {
      "name": "Ch. 01: From LLM Mechanics to the Four Frontier Labs",
      "children": [
        {
          "name": "Core Principle: Evaluate OpenAI, Anthropic, Google AI, and xAI across four concrete engineering pillars—not marketing claims."
        },
        {
          "name": "Definitions, Verification & Engine",
          "children": [
            {
              "name": "Part 1 defined core terms; Part 2 enforced deterministic document checks; Part 3 traced tokenizers, attention, and fixed weights."
            },
            {
              "name": "Rule / Formula: Part 1 Terms → Part 2 Verify → Part 3 Engine"
            }
          ]
        },
        {
          "name": "Tiers & Finite Context Windows",
          "children": [
            {
              "name": "Compare flagship, workhorse, low-latency, and open-weights models plus shared token budgets across inputs and outputs."
            },
            {
              "name": "Rule / Formula: Budget = System + Docs + History + Output"
            }
          ]
        },
        {
          "name": "Standard Inference vs Reasoning",
          "children": [
            {
              "name": "Contrast direct single-pass token generation against extended reasoning scratchpads that trade latency for verification."
            },
            {
              "name": "Rule / Formula: More Reasoning Tokens → Higher Latency & Cost"
            }
          ]
        },
        {
          "name": "Skills, MCP Agents & Sandboxes",
          "children": [
            {
              "name": "Audit how each ecosystem loads reusable Skills, connects tools via Model Context Protocol, and isolates execution."
            },
            {
              "name": "Rule / Formula: Agent = Fixed-Weight LLM + MCP Tools + Sandbox"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 02: OpenAI: Pre-Training Scale to Reasoning Search",
      "children": [
        {
          "name": "Core Principle: OpenAI progressed from self-supervised Transformer pre-training to RL post-training and inference-time reasoning."
        },
        {
          "name": "Self-Supervised Scaling Laws",
          "children": [
            {
              "name": "GPT-1 through 175B-parameter GPT-3 trained stacked Transformer layers on unlabeled text corpora via next-token prediction."
            },
            {
              "name": "Rule / Formula: Loss = f(Parameters, Dataset Tokens, FLOPs)"
            }
          ]
        },
        {
          "name": "Supervised Tuning & RLHF",
          "children": [
            {
              "name": "InstructGPT and ChatGPT paired human-labeled demonstrations with reward-model reinforcement learning to follow prompts."
            },
            {
              "name": "Rule / Formula: Base Weights → SFT → RLHF Aligned Policy"
            }
          ]
        },
        {
          "name": "Shared Text, Vision & Audio",
          "children": [
            {
              "name": "GPT-4 and GPT-4o tokenized images and audio waveforms alongside text inside a single neural network architecture."
            },
            {
              "name": "Rule / Formula: Text + Image + Audio → Unified Token Stream"
            }
          ]
        },
        {
          "name": "Inference Reasoning Routers",
          "children": [
            {
              "name": "The o-series, GPT-5, and ChatGPT 6 Sol train via RL to emit intermediate verification chains during inference."
            },
            {
              "name": "Rule / Formula: Prompt → Reasoning Tokens → Verified Answer"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 03: OpenAI Matrix: Routers, o-Series, MCP & Codex",
      "children": [
        {
          "name": "Core Principle: OpenAI pairs unified flagship routers and o-series reasoning budgets with MCP tool servers and container sandboxes."
        },
        {
          "name": "GPT-5 / Sol, Mini & GPT-OSS 120B",
          "children": [
            {
              "name": "Flagship routers handle complex tasks, mini/nano tiers cut per-token latency, and GPT-OSS 120B supports local hosting."
            },
            {
              "name": "Rule / Formula: Context: 128K–400K Tokens | Open: 120B"
            }
          ]
        },
        {
          "name": "Configurable Reasoning Effort",
          "children": [
            {
              "name": "API callers dial o3, o4-mini, or Sol reasoning effort (low, medium, high) to bound hidden verification tokens."
            },
            {
              "name": "Rule / Formula: reasoning_effort ∈ [low, medium, high]"
            }
          ]
        },
        {
          "name": "Responses API, Codex & Operator",
          "children": [
            {
              "name": "Stateful Responses API connects MCP tool servers while Codex edits code, Operator drives browsers, and Deep Research cites."
            },
            {
              "name": "Rule / Formula: Responses API + MCP → Stateful Tool Loop"
            }
          ]
        },
        {
          "name": "Isolated Containers & Zero Retention",
          "children": [
            {
              "name": "Codex runs builds and unit tests in ephemeral network-disabled containers gated by human diff review and ZDR policies."
            },
            {
              "name": "Rule / Formula: Default Network = OFF | Merge Gate = Human"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 04: Anthropic: Constitutional RL, Features & MCP",
      "children": [
        {
          "name": "Core Principle: Anthropic centered its research on rule-guided post-training, internal feature mapping, and open tool standards."
        },
        {
          "name": "Constitutional AI (RLAIF)",
          "children": [
            {
              "name": "Post-training pipeline critiques and rewrites model completions against explicit principles before updating policy weights."
            },
            {
              "name": "Rule / Formula: Draft → Rule Critique → Revision → RL Update"
            }
          ]
        },
        {
          "name": "Sparse Autoencoder Feature Maps",
          "children": [
            {
              "name": "Maps dense hidden-layer embedding vectors into sparse, inspectable feature directions to audit deception and errors."
            },
            {
              "name": "Rule / Formula: Hidden Vector h → Sparse Feature Circuit"
            }
          ]
        },
        {
          "name": "200K to 1M Token Attention",
          "children": [
            {
              "name": "Tuned positional encodings and attention routing to sustain factual retrieval across multi-file engineering specs."
            },
            {
              "name": "Rule / Formula: Recall Tested Across 200K–1M Token Inputs"
            }
          ]
        },
        {
          "name": "Model Context Protocol (MCP)",
          "children": [
            {
              "name": "Replaced custom per-vendor tool glue with an open client-server protocol exposing resources, prompts, and tools."
            },
            {
              "name": "Rule / Formula: 1 MCP Server × N Host Clients = Zero Glue"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 05: Anthropic Matrix: Opus, Sonnet, Haiku & Code",
      "children": [
        {
          "name": "Core Principle: Anthropic organizes Claude into Opus, Sonnet, and Haiku with token-budgeted Extended Thinking and terminal agents."
        },
        {
          "name": "Opus, Sonnet & Haiku (5.5 / 4.5)",
          "children": [
            {
              "name": "Opus targets deep architecture, Sonnet runs daily IDE and agent loops, and Haiku handles low-latency routing."
            },
            {
              "name": "Rule / Formula: Context: 200K–1M Tokens + Prompt Caching"
            }
          ]
        },
        {
          "name": "Explicit Token Scratchpad Budgets",
          "children": [
            {
              "name": "Developers set exact thinking token caps in API calls rather than switching to a separate reasoning endpoint."
            },
            {
              "name": "Rule / Formula: budget_tokens ≤ max_tokens (Shared Window)"
            }
          ]
        },
        {
          "name": "Skills, Claude Code & Computer Use",
          "children": [
            {
              "name": "Loads modular SKILL.md instructions on demand while Claude Code runs CLI tests and Computer Use drives GUI apps."
            },
            {
              "name": "Rule / Formula: SKILL.md + MCP + CLI Loop → Verified Edit"
            }
          ]
        },
        {
          "name": "OS Sandboxes & ASL Thresholds",
          "children": [
            {
              "name": "Seatbelt and bubblewrap sandboxes restrict disk writes and outbound sockets alongside ASL capability gates."
            },
            {
              "name": "Rule / Formula: Write Scope = Workspace | Net = Allowlist"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 06: Google AI: Transformers, TPUs & Multimodality",
      "children": [
        {
          "name": "Core Principle: Google invented custom TPU accelerators and the 2017 Transformer architecture before unifying Brain and DeepMind."
        },
        {
          "name": "Word2Vec, TPUs & AlphaGo",
          "children": [
            {
              "name": "Pioneered learned vector embeddings, custom systolic-array TPU ASICs for matrix math, and policy-value RL search."
            },
            {
              "name": "Rule / Formula: TPU Systolic Array → Fast W × x + b Math"
            }
          ]
        },
        {
          "name": "Attention Is All You Need",
          "children": [
            {
              "name": "Replaced recurrent sequential bottlenecks with parallel multi-head attention across all token positions in a layer."
            },
            {
              "name": "Rule / Formula: Attention(Q,K,V) = softmax(QKᵀ / √dₖ) V"
            }
          ]
        },
        {
          "name": "Native Multimodal Pre-Training",
          "children": [
            {
              "name": "Unified Brain and DeepMind to train Gemini from scratch on interleaved text, code, audio waveforms, and video frames."
            },
            {
              "name": "Rule / Formula: 1 Tokenizer Pipeline Across 5 Modalities"
            }
          ]
        },
        {
          "name": "Million-Token Context Scale (By SKU)",
          "children": [
            {
              "name": "High-bandwidth optical interconnects across TPU pods distribute KV-cache memory—1M on Gemini 4 Argon and up to 2M on select SKUs."
            },
            {
              "name": "Rule / Formula: As of Nov 2026: Argon 1M | Select SKUs up to 2M"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 07: Google AI Matrix: Gemini 4, Flash & Antigravity",
      "children": [
        {
          "name": "Core Principle: Google spans Gemini 4 Argon, 3.8 Flash, open Gemma weights, NotebookLM grounding, and the Antigravity harness."
        },
        {
          "name": "Gemini 4 Argon, 3.8 Flash & Gemma",
          "children": [
            {
              "name": "Argon leads deep architecture across a 1M-token window (as of Nov 2026), 3.8 Flash streams low-latency media, and Gemma runs locally."
            },
            {
              "name": "Rule / Formula: Cloud: Argon / 3.8 Flash | Local: Gemma"
            }
          ]
        },
        {
          "name": "Controllable Thinking Levels",
          "children": [
            {
              "name": "API parameters tune internal reasoning budgets and parallel hypothesis evaluation before emitting structured outputs."
            },
            {
              "name": "Rule / Formula: thinking_level → Bounded Verification Compute"
            }
          ]
        },
        {
          "name": "AGY Harness, NotebookLM & Mariner",
          "children": [
            {
              "name": "Antigravity coordinates AGENTS.md rules, SKILL.md workflows, subagents, and MCP tools across IDE, CLI, desktop, and SDK."
            },
            {
              "name": "Rule / Formula: AGY = Rules + Skills + Subagents + MCP"
            }
          ]
        },
        {
          "name": "VPC-SC, CMEK & Sandbox Policies",
          "children": [
            {
              "name": "Protects supported Google-managed services via VPC-SC, paired with egress rules, CMEK keys, and no-training defaults."
            },
            {
              "name": "Rule / Formula: Supported VPC-SC + Egress Rules + CMEK + No-Train"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 08: xAI: Coherent GPU Fabrics, MoE & Live Retrieval",
      "children": [
        {
          "name": "Core Principle: xAI combined Mixture-of-Experts architectures with single-fabric Memphis GPU clusters and live retrieval pipelines."
        },
        {
          "name": "Grok-1 (314B Mixture-of-Experts)",
          "children": [
            {
              "name": "Open-weights 314B model routed each token through 2 of 8 experts per layer, decoupling parameter storage from FLOPs."
            },
            {
              "name": "Rule / Formula: 314B Total Params → ~25% Active Per Token"
            }
          ]
        },
        {
          "name": "Memphis Colossus Build (122 Days)",
          "children": [
            {
              "name": "Constructed a single-site liquid-cooled supercluster in 122 days to eliminate cross-datacenter bottlenecks in pre-training and RL."
            },
            {
              "name": "Rule / Formula: Single-Site Cluster → Zero WAN Bottleneck"
            }
          ]
        },
        {
          "name": "100K–200K+ GPUs & Grid Buffers",
          "children": [
            {
              "name": "Links 100K to 200K+ NVIDIA Hopper and Blackwell GPUs on one non-blocking RDMA fabric backed by battery grid buffers."
            },
            {
              "name": "Rule / Formula: Coherent RDMA + Battery Buffer → Fast Sync"
            }
          ]
        },
        {
          "name": "Live Stream Retrieval Injection",
          "children": [
            {
              "name": "Real-time X and web indexes populate the Context Window at query time while neural weights remain frozen."
            },
            {
              "name": "Rule / Formula: Live Feed → Context Tokens (ΔWeights = 0)"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 09: xAI Matrix: Grok-4, Think Mode & Source Filtering",
      "children": [
        {
          "name": "Core Principle: xAI pairs Grok-3/4 and Mini models with inspectable Think traces, DeepSearch loops, and source-filtering demands."
        },
        {
          "name": "Grok-3/4 Flagship & Grok Mini",
          "children": [
            {
              "name": "SKU-specific context windows (500K on Grok 4.7; up to 1M on long-context SKUs as of Nov 2026) via OpenAI/Anthropic-compatible SDKs."
            },
            {
              "name": "Rule / Formula: As of Nov 2026: Grok 4.7 500K (SKU-Dependent)"
            }
          ]
        },
        {
          "name": "Inspectable Backtracking Traces",
          "children": [
            {
              "name": "Think and Big Brain modes allocate extra inference tokens to test edge cases and revise faulty intermediate steps."
            },
            {
              "name": "Rule / Formula: Hypothesis → Check → Backtrack → Output"
            }
          ]
        },
        {
          "name": "Multi-Hop Retrieval & MCP Tools",
          "children": [
            {
              "name": "DeepSearch decomposes queries, fetches live web and X sources iteratively, and integrates structured tool calling."
            },
            {
              "name": "Rule / Formula: Query → Multi-Hop Fetch → Cited Synthesis"
            }
          ]
        },
        {
          "name": "Filtering Live Social Noise",
          "children": [
            {
              "name": "Live user posts can contain fabricated metrics or prompt injections; isolate untrusted text and enforce domain allowlists."
            },
            {
              "name": "Rule / Formula: Untrusted Stream ≠ Primary Engineering Spec"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 10: Cross-Lab Audit: Context Scale & Reasoning Limits",
      "children": [
        {
          "name": "Core Principle: Larger context windows and extended reasoning cut logic bugs—but neither prevents hallucinations without primary specs."
        },
        {
          "name": "Dated SKU Contexts (As of Nov 2026)",
          "children": [
            {
              "name": "OpenAI 128K–400K, Claude 200K–1M, Grok 4.7 500K (up to 1M SKU), and Gemini 4 Argon 1M—with separate input vs output token caps."
            },
            {
              "name": "Rule / Formula: Check Live SKU Docs: Input Cap ≠ Output Cap"
            }
          ]
        },
        {
          "name": "Long Context ≠ Zero Numeric Drift",
          "children": [
            {
              "name": "Dumping unindexed logs into a 1M window dilutes attention weights, risking 84.2°C → 94.2°C drift without scoped prompts."
            },
            {
              "name": "Rule / Formula: Curated Context > Unfiltered Token Dump"
            }
          ]
        },
        {
          "name": "Four Ways to Spend Inference FLOPs",
          "children": [
            {
              "name": "OpenAI reasoning_effort, Claude budget_tokens, Gemini thinking_level, and Grok Think trade latency for math/code checks."
            },
            {
              "name": "Rule / Formula: Housing Headroom: 85.0°C − 84.2°C = 0.8°C Margin"
            }
          ]
        },
        {
          "name": "Reasoning Cannot Replace Evidence",
          "children": [
            {
              "name": "Without SPEC-201 in the prompt, every reasoning model can still fabricate plausible phantom citations like SPEC-992."
            },
            {
              "name": "Rule / Formula: Missing Primary Source → Hallucination Risk"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 11: Cross-Lab Audit: MCP Portability & Agent Sandboxes",
      "children": [
        {
          "name": "Core Principle: Standardize tool integration on MCP and Skills while wrapping every autonomous agent in OS sandboxes and verify scripts."
        },
        {
          "name": "CLI, Cloud Container & GUI Loops",
          "children": [
            {
              "name": "Codex uses cloud containers, Claude Code and AGY run local/workspace CLI loops, and Operator/Mariner/CU drive browsers/GUIs."
            },
            {
              "name": "Rule / Formula: Match Agent Surface to Task Blast Radius"
            }
          ]
        },
        {
          "name": "Write One MCP Server, Swap Models",
          "children": [
            {
              "name": "Expose telemetry queries and verify_document.py via MCP once; connect OpenAI, Claude, Antigravity, or Grok without rewrites."
            },
            {
              "name": "Rule / Formula: MCP Tool Server → Vendor-Neutral Interface"
            }
          ]
        },
        {
          "name": "Filesystem, Network & Secret Gates",
          "children": [
            {
              "name": "Restrict writes to workspace paths, block arbitrary egress IPs, inject scoped tokens via vaults, and gate destructive commands."
            },
            {
              "name": "Rule / Formula: Read = Auto | Write = Scoped | Prod = Human"
            }
          ]
        },
        {
          "name": "Never Let an LLM Grade Itself Alone",
          "children": [
            {
              "name": "Regardless of vendor, pass generated specs and code through verify_document.py, compilers, and test suites before release."
            },
            {
              "name": "Rule / Formula: LLM Output → verify_document.py → Sign-Off"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 12: Engineering Roadmap: Parts 5–8 Deep Dives & Finale",
      "children": [
        {
          "name": "Core Principle: Next, Parts 5 through 8 audit each frontier provider in depth before Part 9 synthesizes a complete architecture."
        },
        {
          "name": "OpenAI Deep Dive (Aero-Blue & Pink)",
          "children": [
            {
              "name": "Audits GPT-5/Sol routing, o3/o4-mini reasoning budgets, stateful Responses API, MCP tools, Operator, and Codex sandboxes."
            },
            {
              "name": "Rule / Formula: Part 5 → OpenAI Stack & Container Controls"
            }
          ]
        },
        {
          "name": "Anthropic Deep Dive (Aero Drones)",
          "children": [
            {
              "name": "Examines Opus/Sonnet/Haiku, token-budgeted Extended Thinking, SKILL.md modules, MCP servers, Computer Use, and Claude Code."
            },
            {
              "name": "Rule / Formula: Part 6 → Claude Tiers, MCP & CLI Sandboxes"
            }
          ]
        },
        {
          "name": "Google AI (Part 7) & xAI (Part 8)",
          "children": [
            {
              "name": "Part 7 covers TPUs, Gemini 4 Argon, 3.8 Flash, NotebookLM, and Antigravity; Part 8 covers Colossus, MoE, and Grok Think."
            },
            {
              "name": "Rule / Formula: Part 7: Sentinel/Protocol | Part 8: B-9/Robby"
            }
          ]
        },
        {
          "name": "Production Multi-Model Synthesis",
          "children": [
            {
              "name": "Gort-VII and C-Protocol combine Parts 1–8 into a verified reference architecture for multi-model engineering teams."
            },
            {
              "name": "Rule / Formula: Part 9 → End-to-End Verified AI Playbook"
            }
          ]
        }
      ]
    }
  ]
}
