{"slug": "step-by-step-interactive-guide-on-github-pages-zero-build-living-documentation", "title": "Step-by-Step Interactive Guide on GitHub Pages: Zero-Build Living Documentation for AI Agent Governance", "summary": "A developer behind the pipeline-ai project published a self-contained, zero-build interactive guide on GitHub Pages that visually walks through the system's deterministic AI-agent governance mechanisms. The single-file HTML/CSS/vanilla-JS guide demonstrates five pain points, including a fail-closed PreToolUse hook enforcing delivery TTLs and immutable paths, bounded output that truncates verbose test logs from 84 KB to 1 KB while preserving failed_tests and truncated flags, and a dual-audience CLI with -dry-run and --schema introspection. An architectural rule, D-46, is designed to keep the guide current as the project evolves.", "body_md": "[When building engineering tools for AI agents, you eventually hit a paradox: the more deterministic and well-engineered the architecture becomes, the harder it is to explain through a traditional](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe6gbs5wwbc4mf6p3bwhg.jpg) `README.md`.\n\nIn **`pipeline-ai`**, we accumulated six in-depth technical articles, dozens of architectural decisions in `docs-ai/DECISOES.md`, 16 modular skills, and a unified pure-Go CLI featuring *Bounded Output*, *Dual-Audience CLI*, Gemini 4 Hydrogen *Thinking Tier* routing, a native `govulncheck` supply-chain sensor, and DORA telemetry. Everything was documented — yet trapped inside a static \"wall of text.\"\n\nTo solve this, we built and published the **[`pipeline-ai` Step-by-Step Interactive Guide](https://rodrigodosanjosoliveira.github.io/pipeline-ai/)** on GitHub Pages. In this 7th article of the series, we break down why we built it, its 100% self-contained zero-build architecture, the five real-world pain points it demonstrates visually, and how architectural rule **D-46** keeps it permanently up to date.\n\nMarkdown is great for reference manuals, but it struggles when your goal is to build a **fast mental model** of deterministic workflows:\n\n`PreToolUse` hook blocks edits outside an active delivery or inside `immutable_paths` feels abstract. Watching an agent attempt an edit, get intercepted by the hook, and only proceed after `delivery open` makes the concept click in seconds.`84 KB` to `1 KB` is just a statistic. Visually comparing a flooded context window against a structured JSON payload with `failed_tests` and `truncated: true` makes the value obvious.\nWe wanted a **visual, step-by-step browser experience** without introducing frontend bloat (Node.js, bundlers, JS frameworks, or external CDNs) into a repository whose core invariant is simplicity and zero external dependencies.\n\n`docs/interactive/index.html`)\nThe entire guide lives inside a **single self-contained file**: `docs/interactive/index.html` (HTML + CSS + vanilla JS + inline SVG). It works identically whether hosted on GitHub Pages or opened locally via `file://` with no web server.\n\n**Zero Build Step & Zero CDNs:**\n\n`npm`, Vite, React, or external fonts. All styling, state management, and animated SVG diagrams are embedded directly in the file.\n**Desktop-First Layout with Persistent Sidebar & Responsive SVG:**\n\n`clamp(210px, 42vh, 360px)`), ensuring the animated diagram, step explanation, and navigation controls fit comfortably above the fold on both laptops and ultrawide monitors.\n**Reading Experience & Keyboard Ergonomics:**\n\n`⌘K` / `Ctrl+K`):`#/01-governanca/1`):` document.title`):`←` and `→` navigate steps, `Space` toggles autoplay, and `R` resets the current lesson.\nEach lesson starts with a **real pain point** in AI-assisted engineering and walks step by step through the deterministic `pipeline-ai` mechanism that solves it — linking directly to the deep-dive articles via the **`APROFUNDE-SE NO TEMA`** section:\n\n| # | Lesson | Real Pain Point | `pipeline-ai` Solution | \n|---|---|---|---|\n| **01** | **Deterministic Governance (`PreToolUse`)** | Agents edit protected code without scope, tests, or role authorization. | Fail-closed `PreToolUse` hook enforcing active delivery TTL,`editor_agents` , and`immutable_paths` . | \n| **02** | **Bounded Output (`84 KB → 1 KB`)** | Verbose `go test ./...` logs overflow context windows and trigger hallucinations. | *Smart Test Filtering* and deterministic truncation preserving`failed_tests` ,`truncated` , and`omitted_bytes` . | \n| **03** | **Dual-Audience CLI (`-dry-run` / `--schema`)** | Human-only CLIs hang on `stdin` or force brittle regex parsing. | `-agent` /`-json` mode, TTY detection,`--schema` introspection,*Helpful Errors* , and read-only`-dry-run` preview (D-47). | \n| **04** | **Gemini 4 Hydrogen Thinking Tiers** | Routing every task to a single expensive model wastes quota and latency. | `model_routing` matrix assigning`low` ,`medium` , and`high` per skill + pure-Go Semantic Sensor (`net/http` ). | \n| **05** | **Supply Chain (`-vuln`), Debt & DORA** | Silent vulnerabilities, forgotten shortcuts, and blind delivery pipelines. | Native `govulncheck` sensor (`-vuln` ),`pipeline-ai debt` ledger, and DORA telemetry with HTML dashboard. | \n\nPublishing to `https://rodrigodosanjosoliveira.github.io/pipeline-ai/` is automated through `.github/workflows/deploy-pages.yml` (DEL-047), designed with least-privilege permissions (**`SEC-CI-01`**):\n\n`main` touching `docs/interactive/**` or the workflow file itself (plus manual `workflow_dispatch`).` contents: read`, `pages: write`, and `id-token: write`.` docs/interactive` directly with `actions/upload-pages-artifact` and deploys via `actions/deploy-pages` — no arbitrary build scripts or third-party packages on the runner.\nThe biggest risk of any interactive guide is going stale two weeks after launch. In `pipeline-ai`, we solved this by making guide maintenance an **enforced pipeline rule**.\n\nArchitectural decision **D-46** (recorded in `docs-ai/DECISOES.md` and embedded directly in `.agents/skills/docs-update/SKILL.md`) mandates:\n\nWhenever a delivery introduces a user- or agent-facing feature worthy of demonstration, or publishes a new article in `docs-ai/artigos/`, the `docs-update` agent must update `LESSONS` and `LESSON_ARTICLES` in `docs/interactive/index.html`.\n\nThis paid off immediately in the very next delivery (`DEL-048`, `-dry-run` preview mode): `docs-update` automatically updated lesson `03-dual-audience` and its references before opening the PR. The Interactive Guide is no longer a side project — it is a **living artifact synchronized on every delivery**.", "url": "https://wpnews.pro/news/step-by-step-interactive-guide-on-github-pages-zero-build-living-documentation", "canonical_source": "https://dev.to/rodrigodosanjosoliveira/step-by-step-interactive-guide-on-github-pages-zero-build-living-documentation-for-ai-agent-2cho", "published_at": "2026-11-30 14:37:52+00:00", "updated_at": "2026-11-30 14:46:14.039695+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-safety"], "entities": ["pipeline-ai", "GitHub Pages", "Gemini 4 Hydrogen", "govulncheck"], "also_reported_by": [], "takeaway": "A single self-contained HTML file with inline CSS, vanilla JS and SVG can deliver interactive agent-governance documentation on GitHub Pages or via file:// with no build step or CDN dependencies.", "recommendation": {"advice": "Document agent governance mechanisms as interactive step-by-step lessons tied to real pain points, and enforce a rule like D-46 so the guide stays in sync with the architecture.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/step-by-step-interactive-guide-on-github-pages-zero-build-living-documentation", "markdown": "https://wpnews.pro/news/step-by-step-interactive-guide-on-github-pages-zero-build-living-documentation.md", "text": "https://wpnews.pro/news/step-by-step-interactive-guide-on-github-pages-zero-build-living-documentation.txt", "jsonld": "https://wpnews.pro/news/step-by-step-interactive-guide-on-github-pages-zero-build-living-documentation.jsonld"}}