docs: add agent knowledge base and dev/review skills #13
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 440 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.364
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #13"
general
weight: 0.35
cheyang
Agents working on Patio (Copilot cloud agent and code review, the CLI, Codex, Cursor, Claude Code) have to rediscover the architecture, the deployment contracts, and the lessons from past reviews on every task. README and
doc/have also drifted from the code in several places. This PR adds a layered knowledge base so development and review agents start from verified facts.What's included
AGENTS.md(always loaded;CLAUDE.mdis a symlink to it): repo map, startup/shutdown model, the compatibility-sensitive contracts (HTTP API, env vars and CLI flags,patio:metric names, engine and router protocols, RBG addressing), verified commands, conventions, definition of done, and code that is unused at runtime..github/instructions/.instructions.md: short path-scoped rules fortopo,engine/api/app.py,metrics, andtests. Copilot cloud agent and Copilot code review inject them based on the files a change touches..agents/skills/patio-dev: development workflow plus playbooks for adding a topology client (the most active area, see #6, #9, #7), an inference engine, or metric rules, with architecture (including Mermaid diagrams), configuration, and testing references..agents/skills/patio-review*: review procedure, severity rubric, a "don't flag" list based on maintainer decisions in #3, a per-area checklist, and known issues..venv/added to.gitignorebecauseAGENTS.mdtells agents to create one.Skills live in
.agents/skills/, which Copilot (cloud agent, code review, CLI, app, VS Code) and other Agent Skills tools read.AGENTS.mdalso links them directly for tools without skill discovery.No runtime code changes.
How it was verified
AGENTS.mdwere run on Python 3.12:pip install -e ".[dev]",pytest(61 passed),python tests/run_mock_tests.py,patio --help.pydantic.v1validators on v2 models; Prometheus counter family names.file:linecitations, resolve. All Mermaid diagrams render.Worth a look
.agents/skills/patio-review/references/known-issues.mdrecords verified problems that this PR documents but does not fix, so reviewers can flag new code that copies them. Among them:unregister()only runs on uvicorn >= 0.29, butpyproject.tomlallowsuvicorn>=0.15.0.unregister()retries 60 x 3 s on the SIGTERM path, which can outlast the pod grace period.pydantic.v1validators inapi/protocol.pynever run on the v2 models.--scrape-engine-metrics falsestill enables scraping (type=bool).--enable-fastapi-docsis ignored, so/docsis always served.RBG_env var names, theHEARTBEAT_INTERVALdefault (10, not 30), a metric mapping that doesn't exist, andINFERENCE_ENGINE_ENDPOINThaving no default.These fit better in small follow-up PRs. Under the maintenance rule in
AGENTS.md, a PR that fixes one also removes its entry.Supersedes #12 (same commit, now opened from the fork branch
cheyang:cheyang-agent-knowledge-base).