Skip to content

feat(review): validate devops ai tooling across the sample repositories - #542

Merged
dan-petty merged 1 commit into
release/v0.2.23from
feat/505-validate-across-samples
Sep 24, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.23from
feat/505-validate-across-samples

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Closes #505.

Why

Nothing showed whether AST parsing, repository maps, file analysis and reviews work on projects that are not Python.

Changes

  • devops review samples validate [NAMES] [--category] [--review] [--all] [--seed] (sample_validation.py, commands/review.py). It saves one JSON report per category under .data/reviews/sample-validations/<run>/, recording:

    • the parser that read each file (tree-sitter, regex fallback or none) and its symbols;
    • file analysis: language, symbols, dependencies;
    • the multilingual repository map of each sample;
    • with --review: the category's synthetic defect corpus, generated from the samples, reviewed (default persona, or --all) and scored.
  • Problems per category:

    • a language read by the regex fallback, and files without symbols;
    • code with no AST support, and code the analysis reads as plain text or labels C++ as C;
    • an empty map;
    • a review that found nothing, lost everything to verification, or failed.

    A failed review is recorded, not fatal. Unfetched samples are named with the command to fetch them.

  • --category is repeatable on samples list/fetch/validate (it kept only the last).

  • Docs: a Sample Repositories section in docs/SELF_IMPROVEMENT.md; command references regenerated.

First full run (--review, default persona, 64 minutes)

Category Files Parser Symbols Repomap files Found / reported / injected
Python 18 fallback (stdlib) 623 16 0 / 0 / 2
TS/JS 37 fallback 54 102 4 / 3 / 20
Go 5 fallback 191 18 1 / 1 / 4
Rust 37 fallback 763 27 2 / 2 / 6
Java 85 fallback 1,649 90 5 / 4 / 24
C# 116 none 0 0 3 / 2 / 14
C/C++ 24 none 0 1 1 / 1 / 10
Terraform 5 fallback 439 41 0 / 0 / 2
Kubernetes/Helm 59 mostly none 7 14 6 / 5 / 8
Dockerfiles 14 none 0 0 5 / 3 / 14
Shell 3 none 0 0 0 / 0 / 2
Docs 13 none 0 78 1 / 1 / 3

28 of 109 injected defects were found (26%), and 22 were still reported.

Failures filed

The remaining misses are model quality, which #475 measures per backend.

Test plan

  • tests/test_review_sample_validation.py (12 tests):
    • a category report with each problem;
    • each review problem;
    • the command's report;
    • --review with a stand-in review, scored;
    • a failed review recorded;
    • unfetched samples;
    • repeated categories.
  • tests/test_review_samples.py updated for multi-category selection
  • uv run devops ci --force: all 13 gates pass

Nothing showed whether AST parsing, repository maps, file analysis and reviews work
on projects that are not Python.

`devops review samples validate` saves a JSON report per category of fetched sample,
recording:
- the parser that read each file and its symbols;
- what file analysis made of each file;
- what the multilingual repository map shows;
- with --review, the category's synthetic defect corpus, reviewed and scored.

Each report names its problems: the regex fallback, files without symbols, code with
no AST support, mislabelled code, an empty map, and a review that found nothing or
failed. --category is now repeatable.

The first full run (64 minutes, default persona) found 28 of 109 injected defects and
kept 22. Its failures are filed as #535 to #541, beside the open #506.

Closes #505
@dan-petty dan-petty added this to the v0.2.23 milestone Sep 24, 2026
@dan-petty dan-petty added type/feature Type feature: a new function scope/ai AI review pipeline, personas, prompts, LLM client, or RAG priority/p1-high Priority P1: high-impact work for the next planned milestone labels Sep 24, 2026
@dan-petty
dan-petty merged commit 7b3ced4 into release/v0.2.23 Sep 24, 2026
7 checks passed
@dan-petty
dan-petty deleted the feat/505-validate-across-samples branch September 24, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/p1-high Priority P1: high-impact work for the next planned milestone scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant