# Graph Agent Protocol (GAP) Documentation > Typed GraphQL-profile gateway, progressive discovery, batched federation, and zero-trust governance runtime in Rust (32 crates). ## English Documentation - [GAP Documentation Hub](https://vnknowledge2014.github.io/GraphProtocol/index.html): Unified typed GraphQL-profile gateway, progressive discovery, and zero-trust runtime governance for AI agents. - [What is GAP?](https://vnknowledge2014.github.io/GraphProtocol/getting-started/what-is-gap.html): Understand why Direct-MCP hits prompt bloat and N+1 waterfalls, and how a unified GAP supergraph solves both. - [10-Minute Quickstart](https://vnknowledge2014.github.io/GraphProtocol/getting-started/quickstart.html): Validate gap.toml, boot the Walking Skeleton REST + MCP supergraph, run a joined query, and attach an AI host. - [GraphQL & GAP Basics](https://vnknowledge2014.github.io/GraphProtocol/learn/graphql-and-gap-basics.html): Zero-jargon foundations: unified supergraph analogy, types, scalars, nullability (!), and interactive 1:1 query-to-JSON explorer. - [Arguments, Mutations & Joins](https://vnknowledge2014.github.io/GraphProtocol/learn/queries-mutations-joins.html): Filter with variables, run safe @sideEffect dry-run mutations, traverse cross-branch edges, and translate REST/MCP habits to GAP. - [GAP Academy — Hands-On Courses](https://vnknowledge2014.github.io/GraphProtocol/academy/index.html): Structured Odyssey-style tracks combining theory, real CLI drills, fill-in-the-blank challenges, and persistent progress tracking. - [Course 1: Lift-Off — First Supergraph](https://vnknowledge2014.github.io/GraphProtocol/academy/liftoff-first-supergraph.html): 4 hands-on lessons: scaffold with gap init, wire OpenAPI + MCP branches, verify /readyz, and run your first cross-branch query. - [Course 2: MCP, AG-UI & AI Assistants](https://vnknowledge2014.github.io/GraphProtocol/academy/mcp-and-ai-assistants.html): 4 lessons: defeat 203,421-token prompt bloat, master L0->L1->L2 discovery, wire Claude/Cursor --stdio, and stream AG-UI SSE. - [Course 3: REST, SQL & N+1 Batching](https://vnknowledge2014.github.io/GraphProtocol/academy/connectors-and-batching.html): 4 lessons: diagnose N+1 waterfalls, batch with x-gap-in-param (INV-18), add SQL & Code AST branches, and approve proposals safely. - [Course 4: Zero-Trust, Cedar & HTTP/3](https://vnknowledge2014.github.io/GraphProtocol/academy/enterprise-zero-trust.html): 4 lessons: enforce T0/T1/T2 + , write Cedar two-person rules, block rug pulls & SSRF, and deploy HTTP/3 QUIC. - [Three-Plane Architecture](https://vnknowledge2014.github.io/GraphProtocol/concepts/architecture.html): Why Execution, Discovery, and Control sit on strictly separated planes backed by lock-free ArcSwap snapshots and AVL OrdMap. - [Progressive Disclosure (651 Tokens)](https://vnknowledge2014.github.io/GraphProtocol/concepts/progressive-disclosure.html): Walk through L0 __metaGraph, L1 __search, and L2 __type with Cedar visibility bitsets from N=10 to N=1,000 tools. - [GAP-QL & Batched Joins](https://vnknowledge2014.github.io/GraphProtocol/concepts/gap-ql-and-joins.html): Use standard GraphQL queries parsed by apollo-compiler alongside bounded DataLoader batching and honest crossover rules. - [Native Graph Connectors (NGC)](https://vnknowledge2014.github.io/GraphProtocol/connectors/overview.html): Connect REST/OpenAPI, SQL, GraphQL, gRPC, sandboxed CLIs, and Code ASTs declaratively with propose-not-activate gates. - [MCP, A2A & AG-UI Facades](https://vnknowledge2014.github.io/GraphProtocol/agents/facades-and-hosts.html): Expose one gateway simultaneously over MCP 2026-07-28, A2A v1.0 Agent Cards, and AG-UI v1.0 interactive SSE approvals. - [System-1 Routers & HTTP/3 QUIC](https://vnknowledge2014.github.io/GraphProtocol/agents/routers-and-http3.html): Compare measured BASELINE_FALLBACK vs System-1 providers (Laya, Jev, Gemini Decision 1) and dual-stack HTTP/3 QUIC transport. - [Zero-Trust Governance & Cedar](https://vnknowledge2014.github.io/GraphProtocol/security/zero-trust.html): Configure T0/T1/T2 trust tiers, Cedar two-person mutation rules, DriftMonitor anti-rug-pull freeze, EgressGuard SSRF, and BLAKE3 audits. - [Interactive Lab & Calculator](https://vnknowledge2014.github.io/GraphProtocol/lab/playground.html): Experiment with real GAP-Bench numbers, test live gap serve queries, track your 6-level checklist, and take the 6-question quiz. - [CLI, Runbooks & 32 Crates](https://vnknowledge2014.github.io/GraphProtocol/reference/cli-and-ops.html): Reference all 15 gap CLI subcommands, 9 Prometheus incident runbooks, 28.86 ms SIGKILL recovery, and the 32-crate DAG map. - [20 Invariants, STE-100 & Paper](https://vnknowledge2014.github.io/GraphProtocol/reference/invariants-and-glossary.html): Audit INV-01..20 verification status, ASD-STE100 controlled vocabulary, BibTeX citation, and full camera-ready paper PDF/HTML. ## Tài liệu Tiếng Việt (Vietnamese) - [Trang chủ Tài liệu GAP](https://vnknowledge2014.github.io/GraphProtocol/vi/index.html): Cổng gateway GraphQL định kiểu chặt chẽ, khám phá lũy tiến và quản trị zero-trust cho AI Agent. - [GAP là gì?](https://vnknowledge2014.github.io/GraphProtocol/vi/getting-started/what-is-gap.html): Hiểu vì sao Direct-MCP phình prompt và dính lỗi N+1, và cách một supergraph GAP thống nhất giải quyết cả hai. - [Khởi chạy Nhanh (10 phút)](https://vnknowledge2014.github.io/GraphProtocol/vi/getting-started/quickstart.html): Kiểm tra gap.toml, bật Walking Skeleton REST + MCP, chạy truy vấn gộp đầu tiên và gắn vào AI host. - [Nhập môn GraphQL & GAP](https://vnknowledge2014.github.io/GraphProtocol/vi/learn/graphql-and-gap-basics.html): Kiến thức nền dễ hiểu: ẩn dụ siêu đồ thị thống nhất, kiểu dữ liệu, scalar, quy tắc khác null (!) và bộ dựng truy vấn 1:1. - [Tham số, Mutation & Nối nhánh](https://vnknowledge2014.github.io/GraphProtocol/vi/learn/queries-mutations-joins.html): Lọc dữ liệu với biến tham số, chạy mutation an toàn qua @sideEffect và đối chiếu tư duy cho kỹ sư REST & Direct-MCP. - [Học viện GAP — Khóa học Thực chiến](https://vnknowledge2014.github.io/GraphProtocol/vi/academy/index.html): Lộ trình học tập thực chiến kiểu Odyssey kết hợp lý thuyết, bài tập điền khuyết lệnh thật và lưu tiến độ tự động. - [Khóa 1: Lift-Off — Siêu đồ thị Đầu tiên](https://vnknowledge2014.github.io/GraphProtocol/vi/academy/liftoff-first-supergraph.html): 4 bài thực hành: khởi tạo bằng gap init, nối OpenAPI + MCP, kiểm tra /readyz và gửi truy vấn gộp liên nhánh đầu tiên. - [Khóa 2: MCP, AG-UI & Trợ lý AI](https://vnknowledge2014.github.io/GraphProtocol/vi/academy/mcp-and-ai-assistants.html): 4 bài thực hành: thoát bẫy 203.421 token, làm chủ khám phá L0->L1->L2, nối Claude/Cursor --stdio và phát luồng SSE AG-UI. - [Khóa 3: REST, SQL & Gom lô N+1](https://vnknowledge2014.github.io/GraphProtocol/vi/academy/connectors-and-batching.html): 4 bài thực hành: bắt bệnh thác nước N+1, gom lô x-gap-in-param (INV-18), thêm SQL & Code AST và duyệt snapshot an toàn. - [Khóa 4: Zero-Trust, Cedar & HTTP/3](https://vnknowledge2014.github.io/GraphProtocol/vi/academy/enterprise-zero-trust.html): 4 bài thực hành: phân tầng T0/T1/T2, viết luật Cedar duyệt 2 người, chặn rug-pull & SSRF và vận hành HTTP/3 QUIC. - [Kiến trúc 3 Mặt phẳng](https://vnknowledge2014.github.io/GraphProtocol/vi/concepts/architecture.html): Vì sao Thực thi, Khám phá và Kiểm soát tách thành 3 mặt phẳng độc lập trên nền snapshot ArcSwap và AVL OrdMap. - [Khám phá Lũy tiến (651 Tokens)](https://vnknowledge2014.github.io/GraphProtocol/vi/concepts/progressive-disclosure.html): Theo dõi từng bước L0 __metaGraph, L1 __search và L2 __type kèm visibility bitset ở quy mô 10 đến 1.000 tool. - [GAP-QL & Gom Lô Join](https://vnknowledge2014.github.io/GraphProtocol/vi/concepts/gap-ql-and-joins.html): Dùng truy vấn GraphQL chuẩn apollo-compiler với cơ chế gom batch DataLoader và bảng ngưỡng hòa vốn minh bạch. - [Kết nối Dữ liệu (NGC)](https://vnknowledge2014.github.io/GraphProtocol/vi/connectors/overview.html): Ánh xạ REST/OpenAPI, SQL, GraphQL, gRPC, CLI sandbox và Code AST vào chung hợp đồng NGC kèm duyệt Proposal. - [Tích hợp MCP, A2A & AG-UI](https://vnknowledge2014.github.io/GraphProtocol/vi/agents/facades-and-hosts.html): Phục vụ đồng thời giao diện MCP 2026-07-28, tác vụ ngang hàng A2A v1.0 và luồng duyệt AG-UI v1.0 SSE. - [Định tuyến System-1 & HTTP/3 QUIC](https://vnknowledge2014.github.io/GraphProtocol/vi/agents/routers-and-http3.html): So sánh thực nghiệm BASELINE_FALLBACK với các adapter System-1 (Laya, Jev, Gemini) và tầng truyền tải HTTP/3 QUIC. - [Bảo mật Zero-Trust & Cedar](https://vnknowledge2014.github.io/GraphProtocol/vi/security/zero-trust.html): Thiết lập phân tầng T0/T1/T2, luật Cedar duyệt 2 người, DriftMonitor chống rug-pull, EgressGuard SSRF và chuỗi BLAKE3. - [Phòng Lab & Bộ tính Token](https://vnknowledge2014.github.io/GraphProtocol/vi/lab/playground.html): Thử nghiệm số liệu thật GAP-Bench, chạy truy vấn gap serve sống, theo dõi checklist 6 cấp và làm bài kiểm tra. - [Tra cứu CLI, Runbooks & 32 Crates](https://vnknowledge2014.github.io/GraphProtocol/vi/reference/cli-and-ops.html): Tra cứu trọn bộ 15 lệnh gap CLI, 9 runbook xử lý sự cố Prometheus, phục hồi SIGKILL 28,86 ms và 32 crate Rust. - [20 Bất biến, STE-100 & Bài báo](https://vnknowledge2014.github.io/GraphProtocol/vi/reference/invariants-and-glossary.html): Kiểm tra 20 bất biến chuẩn tắc INV-01..20, từ điển kiểm soát ASD-STE100, trích dẫn BibTeX và toàn văn bài báo PDF/HTML. ## Academic Paper & Citation - [GAP Academic Paper (HTML)](https://vnknowledge2014.github.io/GraphProtocol/paper/gap-paper.html) - [GAP Academic Paper (PDF)](https://vnknowledge2014.github.io/GraphProtocol/paper/gap-paper.pdf) - [CITATION.cff](https://vnknowledge2014.github.io/GraphProtocol/CITATION.cff)