Русская версия Contributing guide Code of Conduct
Publishable documentation site and book about modern secure AI agent architecture.
- a GitHub Pages site built with
MkDocsandMaterial for MkDocs - a multilingual documentation structure
- the first published part of the book on safe agent architecture
- a small runnable reference package in
agent_runtime_ref/ - a modern Python-first tooling setup based on
uv
uv sync --group docs --group dev
uv run mkdocs serveThe local site will be available at http://127.0.0.1:8000/.
uv run ruff check .
uv run ty check
uv run mkdocs build --strict
.venv/bin/python -m unittest discover -s testsThe repository now includes a minimal runnable skeleton package:
.venv/bin/python -m agent_runtime_refIt contains a tiny reference runtime, policy layer, capability catalog, memory layer, background maintenance path, telemetry emitter, rollout readiness gate, and a YAML-based config loader designed to match Parts III and VII of the book.
You can also run the explicit demo commands:
.venv/bin/python -m agent_runtime_ref simulate-run
.venv/bin/python -m agent_runtime_ref inspect-memory --memory-class profile
.venv/bin/python -m agent_runtime_ref dump-events --user-input "Please open a ticket for this issue."
.venv/bin/python -m agent_runtime_ref check-rollout --signal offline_eval_pass=false
.venv/bin/python -m agent_runtime_ref simulate-run --user-input "What language preference do you remember?"There is also a short docs walkthrough in docs/appendix/reference-package.md.
If you want notebooks or data analysis tooling:
uv sync --group researchThe research group already includes marimo and polars.
The repository includes a GitHub Actions workflow for GitHub Pages:
- build with
uv - strict
mkdocs build --strict - Pages deployment from the
docs-prodbranch
actions/configure-pages@v5 has an important limitation: if Pages have never been enabled in the repository before, the default GITHUB_TOKEN may not be able to bootstrap the Pages site automatically.
There are two correct ways to handle the first setup:
- Enable Pages once in
Settings -> Pagesand chooseGitHub Actions. - Add a
PAGES_PATsecret with sufficient permissions, and the workflow can enable Pages automatically.
If the github-pages environment has deployment branch restrictions, make sure it explicitly allows deployments from docs-prod.
PAGES_PAT should be a real token, not GITHUB_TOKEN:
- for a Personal Access Token:
repoor Pages write permission - for a GitHub App:
administration:writeandpages:write
mainis the source-of-truth development branchdocs-prodis the publication branch used for GitHub Pages deployment
uvfor environment and dependency managementrufffor lintingtyfor type checkingMkDocs + Material for MkDocsfor publishingMermaidandObservable Plotfor visual content
This repository is published under CC BY-SA 4.0.