← Back to Pull requests

Keep every AGENTS.md to the standard (quality kit 2.3.0) #19

Closed
unknown closed this pull request without merging on Nov 23, 2026 15:02 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 14:44 UTC
Author

What this changes

Quality kit 2.3.0: the agent instruction files join the kit, as the owner decided on 2026-11-23 (the shared rules become a kit-managed block in every AGENTS.md).

  • A Markdown managed block. kind = "markdown" blocks sit between two HTML comments, <!-- >>> kleidos-quality <id> (...) --> and <!-- <<< kleidos-quality <id> -->, which Claude Code strips before an agent reads the file. They are checked like the TOML and YAML blocks.

  • The organization-rules block (base profile), from quality/agents/block.md, written into each root AGENTS.md. The sync replaces the section pasted by hand under the same heading (numbered or not, as in qa); without one it goes before ## Other repositories, else at the end. This repository's own AGENTS.md now carries it.

  • The agent-docs guard, quality/agent_docs.py, copied to .github/quality/agent_docs.py. It runs as the kleidos-agent-docs hook of the pre-commit-base block and, from the kit at the recorded commit, as a step of reusable-lint.yml. It checks the files, the import, stray @ names, CLAUDE.local.md, rules files for one tool, size budgets, named paths and scripts, relative links, named skills and subagents, and the block. quality/tests/test_agent_docs.py plants each defect.

  • The standard is published as docs/agent-docs.md, linked from docs/quality.md (intro, the mechanisms table, the base profile and rules tables, the lint workflow row) and from the README.
  • How it was tested

    No hardware.

  • python -m unittest discover -s quality/tests (all pass, including 33 new guard tests and 9 new block tests), python -m unittest discover -s tests, pre-commit run --all-files, mypy, reuse lint, the header check, sync.py --release-check (2.3.0, newer than 2.2.0).

  • Impact preview: this kit synced into fresh clones of boards, brand, social, cla, qa, videos, agents and posts. Each gets the block (only the two marker lines are new, since the hand-pasted text was already identical; in qa the numbered ## 5. Organization rules heading becomes the block's) and passes both the kit check and the guard with no findings. meter has not adopted the kit yet.
  • Checklist

  • The documentation is updated in the same change, or none was needed.

  • Everything is in English, and commit messages are in the imperative mood.

  • I contribute this under the license of this repository (CONTRIBUTING.md).
  • Diff: 317 lines (+237 / -80) across 3 files Reviewer: jmrplens Review duration: 18m
    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 · 317 lines diff across 3 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.345
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #19"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.4% (MEDIUM) · Higher = larger blast radius
    45.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.9% · Safe to merge
    17.9%