Skip to content

fix(review): the verifier judges each project by its own conventions - #524

Merged
dan-petty merged 2 commits into
release/v0.2.23from
fix/515-verifier-conventions
Sep 24, 2026
Merged

dan-petty merged 2 commits into
release/v0.2.23from
fix/515-verifier-conventions

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Part 1 of #515 (refs, doesn't close it). Part of the #509 audit.

The verifier judged every project by devops-cli's rules, and was given no project conventions of its own:

  • verify_finding_system.md assumed mypy --strict;
  • it had a "What this tool is: a DevOps CLI" section exempting internal connectors and console output;
  • it flagged RFC 1918 addresses in docs;
  • it applied a Python 3.14 syntax rule to all code.

Separately, the orchestrated review read conventions only from the target directory itself, not up to the repository root.

  • .devops/review.md: a project's own review rules. The nearest one from the target up to its repo root is read in full (up to 8,000 characters) beside the general conventions file (AGENTS.md or its peers, of which only the opening is used).
  • One lookup everywhere: persona review and verification use the same nearest-first lookup, cached per target. The verifier now receives the conventions in an untrusted block, to apply only where they settle a finding.
  • Generic verifier prompt:
    • removed: every devops-cli assumption;
    • generalized: the syntax rule reads the project's declared language version, and the runtime floor reads any manifest;
    • relaxed: a mismatched line is a miscounted location, and an absence the verifier can't see leaves the finding unverified rather than invalidated.
  • devops-cli's own rules move to this repository's .devops/review.md, so they still apply here.
  • Corpora carry their source's review conventions, or a stub, so the lookup stops at the corpus instead of reaching the repository around it.

Live check (#415 corpus)

Before After
Injections still reported 6 of 10 6 of 10
All reported findings 34 40

This is neutral here, as expected: the moved rules don't touch the injected defects. The run does show the verifier's main remaining failure. It confirms a defect and then dismisses it on an asserted mitigation, recording that as refutation. One example: "does not perform a post-resolve containment check, but that is unnecessary because symlink rejection already blocks escape", but symlink rejection doesn't block ../. Part 2 separates refutation from mitigation.

Test plan

  • tests/test_review_project_conventions.py:
    • no devops-cli rule remains in the shared prompt, and this repo keeps them in .devops/review.md;
    • the nearest conventions win;
    • the verifier receives the conventions;
    • the prompt section appears only when conventions exist.
  • The rule-coverage test checks the moved rules in .devops/review.md.
  • uv run devops ci --force: all gates pass.

The verifier prompt assumed this repository for every project: mypy --strict,
"What this tool is: a DevOps CLI" exempting internal connectors and console
output, RFC 1918 addresses in docs, and a Python 3.14 syntax rule. The verifier
was given no project conventions at all, and the orchestrated review read
conventions only from the target directory itself.

A project may keep review rules in .devops/review.md, read nearest-first and in
full beside the general conventions file, for personas and verifier alike. The
verifier prompt holds only rules true of any project, and devops-cli keeps its
own in .devops/review.md. Corpora carry their source's review conventions.

Refs #515
@dan-petty dan-petty added this to the v0.2.23 milestone Sep 24, 2026
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/review Multi-persona code review engine, verification, and findings priority/p1-high Priority P1: high-impact work for the next planned milestone labels Sep 24, 2026
@dan-petty
dan-petty merged commit 32ce2ff into release/v0.2.23 Sep 24, 2026
7 checks passed
@dan-petty
dan-petty deleted the fix/515-verifier-conventions branch September 24, 2026 16:39
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/review Multi-persona code review engine, verification, and findings type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant