Skip to content

Agentic handbook overhaul#119

Merged
kalambet merged 36 commits into
mainfrom
peter/agentic-handbook-overhaul
Jul 20, 2026
Merged

Agentic handbook overhaul#119
kalambet merged 36 commits into
mainfrom
peter/agentic-handbook-overhaul

Conversation

@kalambet

Copy link
Copy Markdown
Member

Agentic handbook overhaul

Rebuilds the ChainSafe Engineering Handbook from a Docusaurus/GitBook documentation site into a flat, agent-first handbook written for both humans browsing on GitHub and AI agents consuming it via MCP / llms.txt.

Why

The premise of the rewrite: engineering practices are a competitive asset, AI agents are now first-class users of those practices, and the handbook should be authored for both audiences. The old site was a human-only Docusaurus build; this PR drops the web-app tooling and reorganizes the content into a structure agents can load as context and humans can read directly.

What changed

New structure

  • operating-model/ — the operator/agent contract: collaborator statement, gates & escalation, model & tool selection, MCP/llms.txt, memory conventions.
  • invariants/ — engineering invariants, the .invariants framework (deep-linked, not duplicated), and agent-era invariants.
  • workflows/ — PR authoring, code review, repo & CI setup, testing & QA, infrastructure & DevOps, incident response, release & deploy, OneFlow.
  • languages/ — per-ecosystem guidance (Go, Rust, TypeScript, Solidity, Daml, Python, Zig), each split into architect / developer / reviewer roles plus shared idioms.md and gotchas.md.
  • skills/ — 18 packaged Anthropic Skills (per-language architect/developer/reviewer, code review, PR author, research-plan-implement) authored via skill-creator.
  • references/ — attribution, sources, contributors.
  • career/ — career ladders, 360-review cadence, and people-process reference (moved out of the engineering core).

New top-level guiding documents

  • VISION.md — company mission, vision, values.
  • PRINCIPLES.md — General Engineering Principles (ten principles).
  • AGENTS.md / CLAUDE.md — agent entrypoint: read-order, escalation rules, operator contract.
  • README.md — rewritten as the human entrypoint.
  • llms.txt, NOTICE — agent discovery and third-party attribution.

Tooling

  • Removed the Docusaurus stack: docusaurus.config.js, sidebars.js, babel.config.js, tsconfig.json, package.json, yarn.lock, src/, static/, and the old docs/ tree.
  • Added link checking via lychee (lychee.toml, .lycheecache, .github/workflows/link-check.yml), a skills-sync check (scripts/check-skills-sync.sh, .github/workflows/skills-sync.yml), and a skill-description tuning workflow.
  • Updated .github/CODEOWNERS for the new layout.

Scale

169 files changed (+11,063 / −15,082). The deletions are almost entirely the removed Docusaurus build and the migrated GitBook content; the additions are the new agent-first content and skills.

Attribution

Third-party content (the chainsafe-research-plan-implement skill adapted from Boris Tane; the Forest AI policy originally adapted from Ghostty) is credited in NOTICE and inline, per Section 4(d) of the Apache 2.0 License.

Review notes

  • Start with AGENTS.md and operating-model/collaborator-statement.md to understand the new contract model.
  • README.md "How it's organized" is the fastest map of the new directory structure.
  • Content was aggregated from existing org practices with original authors credited via CODEOWNERS and inline headers.

Generated with Claude Code reviewed and edited by a human.

dhyaniarun1993 and others added 4 commits June 8, 2026 09:42
* exclude exmaple urls and update dead links

* update lychee exclude list

* fix timeouts and caches
* add "idiomatic rust" to skills

* add lychee.toml

* address Hubert's comments
* Fix .invariants references to starter kit and plural dotfile name.

Rename invariance-framework.md to invariants-framework.md, replace
.invariance with .invariants across handbook/skills/llms.txt, point
upstream links at boorich/.invariants-starter-kit and GitHub Pages
landing, and replace invariance.html with a redirect to the hosted site.

* Restore Peter's pointer-page structure.

Keep deep-link map shape, inline-rules placeholder, and anchor-TBD rows;
add only plural naming and starter kit URLs.

* Link pointer page to starter kit policy sections.

Replace TBD rows with anchors for naming, lifecycle, and versioning; keep PR-COMMENT.md local-only.

* fix merge error

* fix invariants links

---------

Co-authored-by: Peter Kalambet <peter@kalambet.dev>
Serve llms.txt at handbook.chainsafe.io/llms.txt and redirect the bare
domain to the README, reusing the existing Git-connected Pages project
(deploys natively on push to main, previews per PR — no GH Action needed).

- scripts/build-pages.sh assembles the public/ publish dir (copies the
  root llms.txt in; extensible for future build steps). Set as the Pages
  build command, output dir public/.
- public/_redirects: / -> README (301).
- public/_headers: serve /llms.txt as text/plain; charset=utf-8.
- public/llms.txt is generated at build time, git-ignored; the root
  llms.txt stays the single source of truth.
- Normalize handbook references to handbook.chainsafe.io/llms.txt and
  rewrite the discovery doc for the Pages Git-integration mechanism.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploying engineering-handbook with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7bdb7bd
Status: ✅  Deploy successful!
Preview URL: https://de0ce842.engineering-handbook-8f2.pages.dev
Branch Preview URL: https://peter-agentic-handbook-overh.engineering-handbook-8f2.pages.dev

View logs

Audited all 23 docs.canton.network deep links cited across the DAML
pages against the live docs; every topic→page citation still holds
except one dead link, plus two improvements surfaced by the audit.

- Remove dead m3-functional-programming link (developer.md): the page
  is gone; its content was folded into Language Fundamentals, already
  linked in the same row.
- Add m6-testing-upgrades ("Testing Upgrades") to the upgrades
  references (developer.md table + prose, reviewer.md): existing but
  previously unlinked page covering dpm upgrade-check, both-DAR CI
  gating, and downgrade testing — load-bearing for the HARD FAIL
  upgrade review tier.
- Soften the "Full API" claim on m3-testing (idioms.md): it's a
  tutorial, not an API reference.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kalambet
kalambet merged commit 0d26038 into main Jul 20, 2026
3 checks passed
@kalambet
kalambet deleted the peter/agentic-handbook-overhaul branch July 20, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants