Desk-review cert CC: Permits.Inspections only for Manassas-originated
Date: 2026-07-30 · Decided by: Dustin · Commit: entirely-api 7e7d47a
Permits.Inspections@jeswork.com is the Manassas permits desk. The JES Triage cert route (Stephaney TO) carried it as unconditional CC under the 2026-07-06 every-legacy-cert rule, so incoming post-production desk reviews from other branches (e.g. Virginia Beach PPDRs) pre-filled it incorrectly.
Rule: on the JES Triage cert route, DESK REVIEW projects keep the Permits.Inspections CC only when the originating branch resolves to Manassas; any other or unresolvable branch sends with a blank CC. Legacy non-desk-review certs keep the unconditional CC (2026-07-06 rule unchanged).
Implementation: single source config.filter_cert_route_cc, applied
inside routes.cert.resolve_route via a new project param (all call
sites pass it: both send paths, preflight route_resolves, portal display
_resolve_cert_recipients, cert_gen, field_inspection) and in the cert-queue
display helper _route_for_record. Manual route-key overrides and the
/cert-gen/route-options dropdown still show the baseline route.
Verified live: VAB-9004 (VBeach PPDR) → cc []; R816 Willa Lane (Manassas
desk review) → cc [Permits.Inspections@jeswork.com].
Related: cert-delivery-routing, branch-derivation-shared-helper