Improve agent documentation #3812
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3812"
general
weight: 0.35
Vika-F
Description
1. Instructions that were wrong (napetrov's #3780)
dev/bazel/AGENTS.md(+47/−96): replaced the barecc_library/cc_testandcoptsexamples with the macros the repo actually uses:dal_module,dal_test_suite,daal_module. It also now has correct dependency labels and a note that--configmust be passed. The reference target iscpp/oneapi/dal/algo/pca/BUILD.dev/AGENTS.md,cpp/oneapi/AGENTS.md: replaced the unsupportedbazel test //...with scoped targets using--config=hostor--config=dpc. Make commands now use the realmake -f makefile ... PLAT=form. The CMake recipes now build the examples against an installed release, since there is no rootCMakeLists.txt.dev/AGENTS.md, thedaal_moduleexample that passedcpu_definesandfeatures(the macro sets both), the Bazel version and macOS claims, TBB lines that contradicted the threading-layer rule, fake names (KMeansBatch,MAX_ITERATIONS), and snippets incpp/daalandcpp/oneapithat didn't compile (missing=,depends_oninside the kernel, the SPMD call, a devicepullwithout a queue).examples/AGENTS.md: replaced a per-algorithmdal_example_suitetarget that doesn't exist with the realdal_algo_example_suite(algos = [...])registration.CONTRIBUTING.md: fixed the clang-format command (it was missing a-) and replaced the link to a root.clang-formatfile that doesn't exist.2. Code search (#3781)
.gitattributes:.ifiles are treated as C++, so code search finds them. The clang-format hook and CI script changes from #3781 are left to #3813.3. Rules taken from review comments
AGENTS.md: a "Rules for Changes" section covering:- comments describe the merged code
- short comments
- one change per PR
- search for an existing helper first
- no unnecessary locks or guards
- a regression test with every bug fix
- no hardcoded versions
- the copyright header for new files
- ASCII only
- POSIX
shand.batportabilitycpp/daal/AGENTS.md:-
.ifiles take aCpuTypetemplate parameter- use
TArrayand aligned allocation- no magic numbers
- the zero-init-and-sum-back accuracy pattern
cpp/oneapi/AGENTS.md: thenamespace vNplususingre-export pattern, used in 472namespace v1blocks and previously undocumented.cpp/AGENTS.md: a new section on ABI and the public API.dev/make/AGENTS.md: makefiles and.mk,.batand.shscripts drew 61 human review threads across the last 200 PRs and had no guidance file..ci/AGENTS.md: CI-specific rules.4. Trimming
AGENTS.md: the rules and verification commands come first, within the first 4K characters. Also removed emoji headers, general C++ advice (including a smart-pointer rule that contradicts theTArrayrule), the quick start, and web links.cpp/AGENTS.mdanddev/AGENTS.mdrewritten around what the repo actually does: an interface-conventions table, a review checklist, the realtrain_ops_dispatchersignature, and verified MakePLAT/COMPILER/REQCPU/BACKEND_CONFIGvalues. Invented snippets and emoji headers are gone.docs/AGENTS.md(7.9K to 1.1K) andexamples/AGENTS.md(6.7K to 1.5K): cut to layout, rules and verification commands. New rules: Sphinx runs with-W, generatedsource/examples/RST is not committed, and renaming an example breaks its docs references.5. Drop the Copilot instruction files
.github/copilot-instructions.mdand.github/instructions/*. Copilot code review and the coding agent both read AGENTS.md, so they only duplicated it.AGENTS.md, because that is the file Copilot code review is documented to read..licenserc.yaml: dropped the two exemptions for the removed files.---
<!--
PR should start as a draft, then move to ready for review state
after CI is passed and all applicable checkboxes are closed.
This approach ensures that reviewers don't spend extra time asking for regular requirements.
You can remove a checkbox as not applicable only if it doesn't relate to this PR in any way.
For example, a PR with docs update doesn't require checkboxes for performance
while a PR with any change in actual code should list checkboxes and
justify how this code change is expected to affect performance (or justification should be self-evident).
-->
<details>
<summary>Checklist:</summary>
Completeness and readability
Testing
Performance
</details>
🤖 Generated with Claude Code