desk-review-inspected-fix

Notes

  • 2026-08-30 (MAN-9181): desk reviews no longer dead-end on cert_validate Check 1. sow_lines.inspected was only written by the field lane (field_updates progress/confirm-photo/completion, eod_closeout), which never runs for desk reviews. Fix (entirely-api 669ab6d, entirely-portal 4fdb3c2): (1) cert_validate auto-marks a desk-review project’s non-billing SOW lines Inspected (option id wD4FU via supabase_write_service.update_sow_line) at validation time — same auto-repair pattern as parent-service enrichment; skipped with a warning when a completed IN-SITU visit signals a mis-tagged field job; production days still gated by Check 12/Probe 10. (2) Check 1’s billing exemption widened from ADM-only to ADM + PRD-DAY (parity with eod_closeout/F4 coverage). (3) New POST /portal/projects/{id}/sow/{line_id}/inspection-status (owner/admin) → field_inspection.mark_inspected (production-days guard + F4 auto-advance intact); SowPanel shows a per-line inspection chip; /portal/sow-gate/compare returns inspection_status normalized across the id/”Inspected” writer conventions.

Connections