Skip to content

fix(review): review prompts apply this repository's rules to every project #515

Closed

Description

@dan-petty

Part of #509.

Problem

The shared review prompts were written for this repository and are applied to every project:

  • House rules on every target:
    • PEP 758 except A, B: is declared valid whatever the target's Python;
    • an unnamed "this repository" section exempts private-network SSRF;
    • house rules (split timeouts, symlink-safe walks, no RFC1918 addresses in docs, http:// in config) create false positives elsewhere;
    • roadmap mandates turn feature ideas into MEDIUM findings.
  • Verifier prompt (moved from fix(review): verification discards real findings on substring triggers and malformed verdicts #513): verify_finding_system.md assumes this repository throughout: mypy --strict, "defined anywhere in the workspace", the "What this tool is: a DevOps CLI" section exempting internal connectors and console output, and RFC1918 addresses in docs. It also asks the verifier to cite exact lines that its unnumbered input cannot show. The verifier is given no project conventions at all.
  • Absence bans: "omit unless the linked context confirms absence", but linked context is never put into the generation prompt, so missing-auth and missing-validation defects are suppressed.
  • Lockfiles are excluded from review and never reach Trivy, and the model is told not to warn about pinned dependencies.
  • Classification: requirements.txt, CMakeLists.txt and HTML templates are reviewed with the documentation prompt.
  • Scope and attribution:
    • diff_map matches file names as substrings;
    • PR reviews scan the local checkout;
    • page splits have no overlap;
    • OSV range queries and Shodan CVE lists produce findings marked VERIFIED without a check.

Acceptance criteria

  • Project-specific rules come from the target's conventions file, not the shared prompts, for persona review and verification alike. The verifier receives the target's conventions.
  • Absence rules match the context the model is actually given.
  • Lockfiles and build files are reviewed as what they are.
  • Threat-intel findings are verified like any other.
  • Checked against the multi-language samples (feat(ai): validate devops ai tooling across the sample repositories #505).

Activity

  1. added this to the v0.2.23 milestone on Sep 24, 2026
  2. added
    type/bug
    scope/review
    priority/p1-high
    on Sep 24, 2026
  3. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    Closed by #526, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/reviewtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions