docs: add AGENTS.md and CLAUDE.md for AI coding agents #3192
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 303 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.342
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #3192"
general
weight: 0.35
tariq-hasan
Purpose of this PR
Adds an
AGENTS.mdat the repository root and a thinCLAUDE.mdthat imports it, as requested in #3187.Fixes #3187
Proposed changes:
AGENTS.md: agent behavior policy, repository map, tooling, themakecommands CI runs, a table of generated files with the command that regenerates each one, and commit/PR hygiene. The structure followskubeflow/trainerandkubeflow/sdk; the content is specific to this repo.CLAUDE.md: a single line,@AGENTS.md, so there is one source of truth.Change Category
Rationale
Every command and rule in
AGENTS.mdwas checked against theMakefileand every workflow in.github/workflows/that runs on pull requests, rather than copied from the sibling repos. Two things CI enforces that the contributor guide does not mention are called out explicitly:go mod tidyis checked in both the root andtest/e2emodules.DEPLOY_METHOD=helmandDEPLOY_METHOD=kustomize.It also collects every generated file and its regeneration command in one table (for example, CRDs live in both
config/crd/basesand the Helm chart and are kept in sync withmake update-crd), since these steps are spread across different sections of the guide today.One question for maintainers:
kubeflow/trainerandkubeflow/sdkimplementCLAUDE.mdas a git symlink toAGENTS.md, while the issue suggests an@AGENTS.mdimport. I went with the import as written in the issue (it works on every OS, but only Claude Code resolves the@syntax). Happy to switch to a symlink to match the sibling repos if you prefer.Checklist
Additional Notes
AI usage disclosure: I used Claude Code to help draft
AGENTS.md. I reviewed every line and verified each command, path and rule against theMakefile,.github/workflows/integration.yaml, and the repository contents.