{
  "name": "AI For Engineers, Part 7: Google AI Deep Dive — Gemini, Grounding & Antigravity",
  "badge": "AI FOR ENGINEERS · PART 07 / 09",
  "children": [
    {
      "name": "Ch. 01: From Anthropic to Google's Vertical AI Stack",
      "children": [
        {
          "name": "Core Principle: Google operates custom TPU silicon, Gemini models, cloud APIs, Workspace apps, and agent harnesses in one stack."
        },
        {
          "name": "Gort-VII & C-Protocol Audit",
          "children": [
            {
              "name": "Picking up from Anthropic's Claude and MCP stack, we inspect Google's end-to-end silicon, model, cloud, and agent architecture."
            },
            {
              "name": "Rule / Formula: Stack = TPU → Gemini → Vertex/Workspace → AGY"
            }
          ]
        },
        {
          "name": "Trillium & Ironwood TPU Pods",
          "children": [
            {
              "name": "Custom systolic arrays accelerate Neural Network matrix multiplications for both Pre-Training gradients and low-latency Inference."
            },
            {
              "name": "Rule / Formula: Layer Output = Activation(Input × Weights + Bias)"
            }
          ]
        },
        {
          "name": "NotebookLM, Vertex & Workspace",
          "children": [
            {
              "name": "Specialized context engines attach source citations, enterprise IAM perimeters, and Workspace document permissions around Gemini."
            },
            {
              "name": "Rule / Formula: Prompt Context ≠ Model Weight Retraining"
            }
          ]
        },
        {
          "name": "Antigravity, Mariner & Jules",
          "children": [
            {
              "name": "Google wraps Gemini in multi-surface harnesses, browser coordinate tools, and sandboxed cloud VMs for multi-step engineering tasks."
            },
            {
              "name": "Rule / Formula: Agent = LLM + Tool Schemas + Control Loop"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 02: Gemini Argon, Flash & Multimodal Tokenization",
      "children": [
        {
          "name": "Core Principle: Gemini maps text, code, audio, images, and video frames into discrete Tokens inside one shared Context Window."
        },
        {
          "name": "Unified Token & Embedding Space",
          "children": [
            {
              "name": "Text subwords, code symbols, audio chunks, image tiles, and video frames map to integer Token IDs and Embedding vectors in one pass."
            },
            {
              "name": "Rule / Formula: Shared Context = Text + Code + Audio + Video Tokens"
            }
          ]
        },
        {
          "name": "Fixed Weights, Depth & Width",
          "children": [
            {
              "name": "A 1M-token Gemini 4 Argon Context Window (as of Nov 2026) expands Attention across positions, while Layer Width and Weights stay fixed."
            },
            {
              "name": "Rule / Formula: Attention(Q, K, V) routes cross-modal context"
            }
          ]
        },
        {
          "name": "Deep Think Reasoning & Code",
          "children": [
            {
              "name": "Trained with Reinforcement Learning verification, Argon explores parallel reasoning paths before emitting final architectural outputs."
            },
            {
              "name": "Rule / Formula: Argon → Complex Proofs, Audits & Multi-Repo Code"
            }
          ]
        },
        {
          "name": "Tunable Thinking Token Budgets",
          "children": [
            {
              "name": "Gemini 3.8 Flash ingests raw video and audio without transcripts, letting engineers cap thinking tokens to bound latency and cost."
            },
            {
              "name": "Rule / Formula: Latency & Cost ∝ Input + Thinking + Output Tokens"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 03: Gemini Live WebSockets, Omni & Native TTS",
      "children": [
        {
          "name": "Core Principle: Gemini 3.8 Live streams bidirectional audio and video over WebSockets with asynchronous tool execution."
        },
        {
          "name": "Bidirectional WebSocket Sessions",
          "children": [
            {
              "name": "Streams live microphone audio, screen shares, and hardware camera frames with sub-second turnaround and stateful session resumption."
            },
            {
              "name": "Rule / Formula: Client ⇄ WSS Stream (Audio + Frames + Tool JSON)"
            }
          ]
        },
        {
          "name": "Barge-In & Async Function Calls",
          "children": [
            {
              "name": "Voice Activity Detection cancels superseded speech on interruption while background tools fetch LOG-104 metrics asynchronously."
            },
            {
              "name": "Rule / Formula: VAD Interrupt → Cancel Buffer → Re-attend Context"
            }
          ]
        },
        {
          "name": "Gemini Omni 1.2, Veo & Imagen",
          "children": [
            {
              "name": "Generates frame-referenced video transitions, synchronized soundscapes, and clean typographic diagrams via unified google-genai APIs."
            },
            {
              "name": "Rule / Formula: First/Last Frame + Prompt → Temporally Coherent MP4"
            }
          ]
        },
        {
          "name": "Controllable Studio Voice Synthesis",
          "children": [
            {
              "name": "Produces multi-speaker 24 kHz broadcast audio directly from text tokens using locked voice profiles such as Charon and Puck."
            },
            {
              "name": "Rule / Formula: Text Tokens → Acoustic Codec → PCM Broadcast Audio"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 04: NotebookLM: Bounding Hallucinations via Citations",
      "children": [
        {
          "name": "Core Principle: NotebookLM restricts Inference to uploaded primary documents and attaches inline passage-level citations."
        },
        {
          "name": "Source-Only Context Grounding",
          "children": [
            {
              "name": "Grounds answers in uploaded PDFs, Docs, and code, substantially increasing abstention when requested metrics are absent."
            },
            {
              "name": "Rule / Formula: Closed-Corpus Grounding + Human Span Check"
            }
          ]
        },
        {
          "name": "Catching Drift on LOG-104",
          "children": [
            {
              "name": "Verifies LOG-104 seal-housing peak (84.2°C) within SPEC-201 ceiling (85.0°C) while catching 94.2°C drift and phantom IDs."
            },
            {
              "name": "Rule / Formula: 84.2°C (LOG-104) ≤ 85.0°C (SPEC-201) [0.8°C Margin]"
            }
          ]
        },
        {
          "name": "Click-to-Highlight Citations",
          "children": [
            {
              "name": "Synthesized claims carry numbered citation badges that scroll to the cited passage so engineers can verify exact interpretation."
            },
            {
              "name": "Rule / Formula: Claim Span → Source Document ID + Character Offset"
            }
          ]
        },
        {
          "name": "Reports, Mind Maps & Audio",
          "children": [
            {
              "name": "Synthesizes Cited Briefing Docs, hierarchical Mind Maps, and interactive two-host Audio Overviews grounded in the same source pack."
            },
            {
              "name": "Rule / Formula: Corpus → Cited Report + Mind Map + Audio Overview"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 05: Vertex AI, Context Caching & Workspace Integration",
      "children": [
        {
          "name": "Core Principle: Vertex AI provides Context Caching, Model Garden, and enterprise grounding alongside Gemini for Workspace."
        },
        {
          "name": "Model Garden & Enterprise Search",
          "children": [
            {
              "name": "Serves Gemini, Claude, and open weights in one control plane while grounding Prompts against BigQuery tables, Drive, and issue trackers."
            },
            {
              "name": "Rule / Formula: Query → Vertex Search Chunks → Cited Response"
            }
          ]
        },
        {
          "name": "Vertex AI Context Caching",
          "children": [
            {
              "name": "Caches prefix Attention KV tensors to discount cached input tokens and shorten prefill TTFT depending on prefix length and cache hits."
            },
            {
              "name": "Rule / Formula: Cached Prefix KV → Lower Input Cost & Prefill TTFT"
            }
          ]
        },
        {
          "name": "GKE, Terraform & SQL Diagnostics",
          "children": [
            {
              "name": "Gemini Cloud Assist inspects live Cloud Logging traces, VPC firewall rules, GKE pod crashes, and BigQuery query plans in console."
            },
            {
              "name": "Rule / Formula: Telemetry Logs + IaC State → Root-Cause Diff"
            }
          ]
        },
        {
          "name": "Docs, Sheets, Slides, Meet & Vids",
          "children": [
            {
              "name": "Formerly Workspace Duo/Duet AI, Gemini drafts specs across Drive apps and Google Vids strictly inside domain access-control boundaries."
            },
            {
              "name": "Rule / Formula: Zero Foundation Weight Training on Tenant Data"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 06: GenAI SDK, Interactions API, MCP & A2A",
      "children": [
        {
          "name": "Core Principle: The unified google-genai SDK pairs stateful Interactions API loops with open MCP tools and Agent2Agent cards."
        },
        {
          "name": "One SDK for Studio & Vertex AI",
          "children": [
            {
              "name": "Unified Python, TypeScript, Go, and Java SDK supporting streaming tokens, Pydantic structured outputs, and multimodal file uploads."
            },
            {
              "name": "Rule / Formula: response_schema = PydanticModel → Validated JSON"
            }
          ]
        },
        {
          "name": "Server-Side State & Background Jobs",
          "children": [
            {
              "name": "Tracks multi-turn Context Window history, tool-call orchestration, and asynchronous background tasks via server-managed interaction IDs."
            },
            {
              "name": "Rule / Formula: previous_interaction_id → Stateful Turn Chain"
            }
          ]
        },
        {
          "name": "Verified Web & Geospatial Chunks",
          "children": [
            {
              "name": "Attaches live Google Search queries, source URLs, and Google Maps place metadata directly to generated response segments."
            },
            {
              "name": "Rule / Formula: grounding_metadata → Web URI + Segment Indices"
            }
          ]
        },
        {
          "name": "Tool Servers & Agent2Agent Cards",
          "children": [
            {
              "name": "Passes MCP client sessions directly as Gemini tools while A2A Agent Cards publish auth, schemas, and endpoints for peer delegation."
            },
            {
              "name": "Rule / Formula: MCP = Agent↔Tool | A2A = Agent↔Agent"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 07: Google Antigravity (v2.28): Multi-Surface Harness",
      "children": [
        {
          "name": "Core Principle: Antigravity (v2.28) wraps cloud Gemini and local GPU models across four core surfaces plus IDE extensions."
        },
        {
          "name": "Command Center, Artifacts & Cron",
          "children": [
            {
              "name": "Orchestrates parallel autonomous agents with Side Panel Artifacts, sidecar:// interactive viewers, and background /schedule timers."
            },
            {
              "name": "Rule / Formula: Harness = Context Assembly + Tools + Sandbox Loop"
            }
          ]
        },
        {
          "name": "agy Terminal Runner & AI IDE",
          "children": [
            {
              "name": "Runs interactive TUI or headless CI tasks (agy -p) alongside the standalone IDE with Tab-to-Jump and inline visual code diffs."
            },
            {
              "name": "Rule / Formula: Slash Workflows: /plan · /boost · /compact · /goal"
            }
          ]
        },
        {
          "name": "Python Agent SDK & Editor Plugins",
          "children": [
            {
              "name": "Extends VS Code, JetBrains, Visual Studio, Zed, Xcode, and Eclipse, while google-antigravity streams .thoughts and .tool_calls in code."
            },
            {
              "name": "Rule / Formula: from google.antigravity import Agent"
            }
          ]
        },
        {
          "name": "Cloud Frontier + Local NVFP4 GPUs",
          "children": [
            {
              "name": "Routes deep reasoning to Gemini 4 Argon or 3.8 Flash while delegating local jobs to resident workstation vLLM engines over LAN."
            },
            {
              "name": "Rule / Formula: Cloud API + Local NVFP4 Cluster → Unified Harness"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 08: AGY Rules, SKILL.md Skills & Dynamic Subagents",
      "children": [
        {
          "name": "Core Principle: Rules and SKILL.md packages load deterministic procedures into Inference context using progressive disclosure."
        },
        {
          "name": "AGENTS.md & Scoped Rule Budgets",
          "children": [
            {
              "name": "AGY v2.28 enforces 24 KB per rule file and a 20k-token defaultRulesBudget (demoting overflow to path pointers; builtin plugins exempt)."
            },
            {
              "name": "Rule / Formula: User Rules ≤ 24 KB | 20k Budget (Overflow → Pointer)"
            }
          ]
        },
        {
          "name": "SKILL.md Progressive Disclosure",
          "children": [
            {
              "name": "Loads only skill name and description initially; pulls full SKILL.md procedures and scripts/verify_document.py only when activated."
            },
            {
              "name": "Rule / Formula: Skill = Instructions + Scripts (0 Weight Updates)"
            }
          ]
        },
        {
          "name": "Dynamic Parallel Subagent Spawning",
          "children": [
            {
              "name": "Instantiates scoped subagents in isolated git branches or worktrees, returning concise verified summaries to the parent coordinator."
            },
            {
              "name": "Rule / Formula: Parent Agent → Parallel Subagents → Merged Summary"
            }
          ]
        },
        {
          "name": "Eager vs. Lazy Schema Loading",
          "children": [
            {
              "name": "Registers core tools eagerly and loads lazy MCP schemas on demand, with a 180s default harness timeout per synchronous tool call."
            },
            {
              "name": "Rule / Formula: Lazy Schema Load → Preserves Context Token Budget"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 09: Project Mariner, Astra & Normalized UI Control",
      "children": [
        {
          "name": "Core Principle: Gemini Computer Use maps screen targets onto a 0-to-1000 grid with confirmation gates for high-consequence actions."
        },
        {
          "name": "Parallel Cloud Browser VMs",
          "children": [
            {
              "name": "Executes up to 10 concurrent web tasks in isolated containers and replays demonstrated multi-step UI workflows via Teach & Repeat."
            },
            {
              "name": "Rule / Formula: Screenshot Tokens + DOM Tree → Structured UI Action"
            }
          ]
        },
        {
          "name": "AGY Side-Panel Browser & Puppeteer",
          "children": [
            {
              "name": "Verifies rendered web apps, console logs, network status codes, and bounding-box geometry directly inside the Antigravity workspace."
            },
            {
              "name": "Rule / Formula: Render → Inspect DOM Rects → Zero Overflow Check"
            }
          ]
        },
        {
          "name": "Normalized 0–1000 Coordinate Grid",
          "children": [
            {
              "name": "Predicts click_at, type_text_at, and scroll_at targets in resolution-independent [0, 1000] space across web, desktop, and Android UIs."
            },
            {
              "name": "Rule / Formula: Pixel(x, y) = (Grid_x / 1000 × W, Grid_y / 1000 × H)"
            }
          ]
        },
        {
          "name": "Rolling Camera Memory & Safety Gate",
          "children": [
            {
              "name": "Tracks physical schematics and hardware rigs across live video frames while enforcing require_confirmation checkpoints on critical actions."
            },
            {
              "name": "Rule / Formula: If High-Impact Click → require_confirmation = true"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 10: Jules, Gemini CLI, Deep Research & Co-Scientist",
      "children": [
        {
          "name": "Core Principle: Google deploys specialized control loops for async GitHub PRs, shell automation, and multi-agent hypothesis testing."
        },
        {
          "name": "Isolated Cloud VM Repo Engineer",
          "children": [
            {
              "name": "Clones GitHub repos into a sandboxed VM, upgrades dependencies, runs test suites until green, and opens a reviewable pull request."
            },
            {
              "name": "Rule / Formula: Clone Repo → Plan → Edit → Pytest Pass → Open PR"
            }
          ]
        },
        {
          "name": "Open-Source Shell & MCP Agent",
          "children": [
            {
              "name": "Lightweight terminal companion alongside agy CLI supporting local shell commands, file patches, Search grounding, and MCP servers."
            },
            {
              "name": "Rule / Formula: Prompt + Local Repo + MCP Tools → Verified Patch"
            }
          ]
        },
        {
          "name": "Multi-Hop Web & Drive Synthesis",
          "children": [
            {
              "name": "Formulates an explicit research plan, iteratively queries web and authorized Drive/Gmail sources, and exports cited Docs briefings."
            },
            {
              "name": "Rule / Formula: Plan Queries → Read Sources → Fill Gaps → Cite"
            }
          ]
        },
        {
          "name": "Tournament Hypothesis Ranking",
          "children": [
            {
              "name": "Coordinates Generation, Reflection, and Ranking subagents using Elo pairwise comparisons to prioritize wet-lab experimental designs."
            },
            {
              "name": "Rule / Formula: Generate → Critique → Elo Rank → Lab Validation"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 11: IAM, VPC-SC, Model Armor & Scripted Audits",
      "children": [
        {
          "name": "Core Principle: Defense-in-depth pairs sandboxed harnesses, supported VPC-SC perimeters, egress rules, and Model Armor with Python checks."
        },
        {
          "name": "Scoped Subagents & OAuth Accounts",
          "children": [
            {
              "name": "Restricts subagents to read-only or no-network sandboxes, isolates edits in git worktrees, and scopes OAuth via AGY_ACCOUNT."
            },
            {
              "name": "Rule / Formula: Least Privilege = Scoped Tools + Explicit /plan Gate"
            }
          ]
        },
        {
          "name": "Supported VPC-SC, Egress & ZDR Scope",
          "children": [
            {
              "name": "Protects supported Google-managed services with VPC-SC, paired with egress rules, CMEK, no-training terms, and eligible ZDR."
            },
            {
              "name": "Rule / Formula: Supported VPC-SC + Egress Lock + IAM + ZDR Scope"
            }
          ]
        },
        {
          "name": "Prompt Injection & PII Screening",
          "children": [
            {
              "name": "Inspects both user Prompts and retrieved external documents or URLs to block indirect prompt injection before tool execution."
            },
            {
              "name": "Rule / Formula: Untrusted PDF/URL → Model Armor Scan → Safe Context"
            }
          ]
        },
        {
          "name": "5-Part Spec + verify_document.py",
          "children": [
            {
              "name": "Pairs structured JSON/citation prompts with Python verification scripts that quarantine numeric drift or phantom spec IDs."
            },
            {
              "name": "Rule / Formula: Audit(Draft, LOG-104, SPEC-201) == 0 Drift Errors"
            }
          ]
        }
      ]
    },
    {
      "name": "Ch. 12: Engineering Synthesis & Handoff to xAI / Grok",
      "children": [
        {
          "name": "Core Principle: Match Gemini context caching, NotebookLM citations, and AGY sandboxes to workload risk—then join Part 8 on xAI."
        },
        {
          "name": "Argon vs. 3.8 Flash vs. 3.8 Live",
          "children": [
            {
              "name": "Route deep reasoning to Argon, batch multimodal/code loops to Flash with KV Context Caching, and real-time voice/vision to Live."
            },
            {
              "name": "Rule / Formula: Match Thinking Budget & Modality to SLA Latency"
            }
          ]
        },
        {
          "name": "Citations + Deterministic Scripts",
          "children": [
            {
              "name": "Use NotebookLM or Vertex Search to bind claims to primary sources, then execute verify_document.py to enforce zero numeric drift."
            },
            {
              "name": "Rule / Formula: Primary Evidence + Citation + Script = Verified Doc"
            }
          ]
        },
        {
          "name": "Context Dilution & Over-Privilege",
          "children": [
            {
              "name": "Avoid dumping unfiltered repos without SKILL.md progressive disclosure or running browser/shell agents without confirmation gates."
            },
            {
              "name": "Rule / Formula: Never Equate 1M Context Window with 0% Hallucination"
            }
          ]
        },
        {
          "name": "xAI & Grok at the Studio Desk",
          "children": [
            {
              "name": "Proceed to Part 8 as Unit B-9 and Robby take the Studio Desk to audit xAI, Colossus GPU scaling, Grok reasoning, and API tooling."
            },
            {
              "name": "Rule / Formula: Next: eng_p8 · Unit B-9 & Robby (Studio Desk)"
            }
          ]
        }
      ]
    }
  ]
}
