pr-af icon indicating copy to clipboard operation
pr-af copied to clipboard

pr-af.review posts a clean verdict after every review harness call fails

Open AbirAbbas opened this issue 3 weeks ago • 0 comments

What happened

Two 2026-11-11 desktop-driven reviews using pr-af main 30a724585769 and Go SDK v0.1.130 completed in about seven to eight seconds, ran zero review dimensions, recorded no model usage and posted a clean review. Their launcher lacked the model-provider key, so all seven harness subprocesses failed before any model work. Correcting the launcher produced a real multi-dimension review without changing product source.

The product defect is the clean verdict after failure. The missing launcher key was the test setup trigger. The posted GitHub review event was COMMENT, not APPROVE.

Replication

In an offline review test, make all harness calls return IsError with Parsed nil and the missing-model configuration error. Use a fake GitHub client to record publication attempts. Follow intake, anatomy, the three meta selectors, obligations and coverage through output generation. No model call or real publication is required.

Where

go/internal/harnessx/run.go: Run seeds defaults after a nonfatal unparsed result. go/internal/reasoners/meta.go: runMetaLens discards the result diagnostics and returns empty dimensions with seeded confidence. go/internal/orch/phases.go: allDimensionsSchemaFailed returns nil when no dimensions were attempted. go/internal/reasoners/coverage.go: CoverageGate returns an empty map on fallback parse failure; the coverage loop then finds no gaps and exits. go/internal/orch/output.go: computeRatingV2, formatSummary and generateOutput produce and publish a clean verdict for zero findings.

The fix

Carry phase failure signals to the orchestrator and suppress clean verdicts when required review work did not run.

Acceptance

Through pr-af.review with failed harness fixtures and a fake GitHub client, return a failed or explicitly degraded review and never attempt publication of a clean verdict.

AbirAbbas avatar Nov 12 '26 11:11 AbirAbbas