Repository navigation
feat(cli): semantic validator deprecation & structural positional oracles (#436) - #579
Merged
dan-petty merged 1 commit intoSep 25, 2026
Conversation
dan-petty
deleted the
feat/436-semantic-validator-positional-oracles
branch
September 25, 2026 16:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary & Context
Closes #436
Audits AI review schemas and validators to strip keyword-matching assertions in favor of strict structural schema boundaries and positional enumeration / structural positional oracles.
Key Changes
src/devops_cli/config/constants.py(CONST_REVIEW_PROMPT_PLACEHOLDER_BASENAMES,CONST_REVIEW_TITLE_FILLER_WORDS,CONST_AUTH_HEADER_CLAIM_KEYWORDS,CONST_AUTH_HEADER_CODE_PATTERNS,CONST_AUTH_DISPATCH_PATTERNS,CONST_FIXTURE_CREDENTIAL_KEYWORDS,CONST_MASKED_SYNTAX_ERROR_PHRASES,CONST_UNINITIALIZED_CLAIM_KEYWORDS,CONST_MONOLOGUE_PREFIXES,CONST_COMPLIMENT_PHRASES,CONST_COMPLIMENT_NEGATIONS,CONST_HALLUCINATION_FORBIDDEN_WORDS).has_scratchpad_phraseregex incanonicalize_finding_locationin favor of strict structural location grammar parsing (_LOCATION_REGEX,_TARGET_LOCATION_REGEX,_EMBEDDED_LOCATION_REGEX), cleanly rejecting conversational scratchpad text while supporting Windows drive letters and space-delimited paths.finding_id: Added structural positional identifierfinding_id: int | Nonewith aliases (id,index) toFindingschema insrc/devops_cli/ai/review_schema.py. Safe before-validator coerces numeric IDs without breaking string IDs onSavedFinding._bind_verdicts_to_findingsinsrc/devops_cli/ai/review/verification.pyto bind verdicts via positionalfinding_idfirst, eliminating title-drift and verdict-misbinding vulnerabilities, with identity fallback.src/devops_cli/ai/tasks/verify_finding_system.mdto requirefinding_idin verdict output arrays.canonicalize_finding_location,_match_verdict_by_positional_oracle, and_check_missing_header_hallucinationinto pure helpers, maintainingtests/test_structural_positional_oracles.pywith structural tuple equality assertions.Verification
uv run pytest tests/test_structural_positional_oracles.py -v: 11/11 passeduv run pytest tests/test_review_verification.py -v: 84/84 passeduv run devops scan complexity: All modified files compliant (uv run devops ci: 10/10 Gated CI Quality Gates passing