Skip to content

fix(entrypoint): forward review mode flags to run_agent.py - #20

Merged
dsiddharth2 merged 4 commits into
mainfrom
feat/fix-verification-test
May 24, 2026
Merged

fix(entrypoint): forward review mode flags to run_agent.py#20
dsiddharth2 merged 4 commits into
mainfrom
feat/fix-verification-test

Conversation

@dsiddharth2

Copy link
Copy Markdown
Owner

@

Summary

  • Adds "$@" to entrypoint.sh so Docker CMD args (--verify-fixes, --check-new-findings) are forwarded to run_agent.py
  • Without this fix, review mode flags passed via the ADO pipeline were silently dropped and every run did a full review

Test plan

  • Build Docker image and run with --verify-fixes flag, confirm it enters verify-only mode
  • Run with --check-new-findings, confirm it skips previous findings fetch
  • Run without flags, confirm default full review still works
    @

…ring

Coverage penalty (apply_coverage_penalty) was adding up to 50 phantom
points based on unreviewed file count rather than actual issues found.
This inflated scores on both first-time reviews and verify-only runs.

- Remove apply_coverage_penalty from PRScorer entirely
- Add calculate_verify_score for verify-only runs: penalty = sum of
  still_present findings by severity/category, fixed findings = 0
- Enrich fix_verifications with severity/category from prior findings
  in review_job._write_findings so post_findings can score them
- Coverage stats still tracked and displayed, just not penalized
…omment severity

- calculate_verify_score() now accepts review_modes and applies the same
  severity multipliers (security, migration, etc.) as full reviews, fixing
  the penalty inconsistency between full review and fix verification runs
- Posting loop uses mode-adjusted findings so inline comments show the
  correct severity (e.g. CRITICAL instead of WARNING for security findings)
- Remove CI Gate and Next Steps sections from PR summary comment
- Add e2e integration test (full review → fix verification, both posting)
- Add fix verification integration test for auto-detect re-push flow
- Gitignore live integration tests (test_e2e_review_then_verify,
  test_fix_verification) that contain org-specific ADO config
- Replace hardcoded org/repo/PR values in conftest.py with env vars
- Replace hardcoded repo name in test_phase2_scoring.py with generic
- Scrub company name from workspace_tools.py comment
@dsiddharth2
dsiddharth2 merged commit 4e61740 into main May 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant