new-site/scripts/workers/services
justin 058d4d426a feat(compliance): admin verification gate + durable submission evidence
Per request: after the customer signs but BEFORE we submit to the government, hold
the order for a human to verify the prepared filing is correct.

- MCS-150 handler (mcs150-update + usdot-reactivation): new admin-verification gate
  after the signature gate -- if not admin_approved, set fulfillment_status=
  'ready_to_file', create a HIGH-priority 'VERIFY before filing' admin todo, and
  STOP (no FMCSA submission). job_server injects admin_approved from the dispatch
  payload (mirrors client_approved).
- New admin endpoint POST /api/v1/admin/compliance-orders/:id/approve-submit
  (requireAdmin): verifies status=ready_to_file, re-dispatches the worker with
  admin_approved=true to proceed to actual submission.
- Durable submission EVIDENCE: the web/fax submitters only wrote confirmation
  screenshots to an ephemeral temp dir. Now _upload_submission_evidence copies the
  FMCSA confirmation screenshot + attested PDF + fax_log_id to MinIO under
  filings/<slug>/<order>/evidence/ and records the keys on the order, so we keep
  proof of every government submission.

(state-trucking + the FCC handlers already gate via admin todos / auto_filing.py;
this brings MCS-150 to parity and adds evidence retention.)
2026-06-09 22:50:30 -05:00
..
telecom fix(proxy): parse proxy creds with URL-reserved chars (e.g. '#') correctly 2026-06-05 18:34:19 -05:00
__init__.py feat(npi): wire 6 healthcare services into catalog, intake, items, handlers, portal 2026-06-05 01:25:05 -05:00
base_handler.py Use Word VM PDF converter instead of raw LibreOffice in base handler 2026-05-04 11:02:49 -05:00
bdc_filing.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
boc3_filing.py fix: worker emails (localhost:25 -> SMTP relay) + create ERPNext SO on webhook payment 2026-06-09 14:40:46 -05:00
boc3_playwright.py BOC-3: use relay_integration.load_card_from_erpnext() for proper card matching 2026-05-30 22:46:52 -05:00
breach_response.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
calea_ssi.py Fix MinioStorage.upload_file → .upload + suppress instant delivery during eSign pause 2026-05-04 10:59:45 -05:00
campaign_review.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
canada_crtc.py Add Canadian Wholesale Vendor Reference Guide to CRTC binder 2026-05-27 11:11:47 -05:00
carrier_closeout.py Wire fulfillment alerts to Telegram + surface order progress in portal + even out ERPNext sync 2026-06-07 03:17:46 -05:00
ccpa_audit.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
cdr_analysis.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
cdr_storage_tier.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
consent_audit.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
contractor_review.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
cores_frn_registration.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
cpni_certification.py Fix MinioStorage.upload_file → .upload + suppress instant delivery during eSign pause 2026-05-04 10:59:45 -05:00
dc_agent.py Fix MinioStorage.upload_file → .upload + suppress instant delivery during eSign pause 2026-05-04 10:59:45 -05:00
dnc_review.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
dot_drug_alcohol.py DOT D&A binder: add driver enrollment guidance + Form G roster 2026-06-02 21:39:50 -05:00
dot_esign.py fix: worker emails (localhost:25 -> SMTP relay) + create ERPNext SO on webhook payment 2026-06-09 14:40:46 -05:00
ein_application.py Wire fulfillment alerts to Telegram + surface order progress in portal + even out ERPNext sync 2026-06-07 03:17:46 -05:00
esign_stamp.py trucking: stamp e-signature exactly on form signature lines + state authorization gate 2026-06-02 16:44:19 -05:00
fcc_carrier_registration.py Production readiness fixes: 3 critical + 2 high-priority 2026-05-04 05:28:13 -05:00
fcc_compliance_checkup.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
fcc_full_compliance.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
flowroute.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
flsa_audit.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
fmcsa_web_submitter.py add dev mode guards: skip FMCSA submission, fax, and web filing in non-production environments 2026-05-30 22:28:59 -05:00
foreign_carrier_affiliation.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
foreign_qualification.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
form_499_initial.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
form_499a.py Fix MinioStorage.upload_file → .upload + suppress instant delivery during eSign pause 2026-05-04 10:59:45 -05:00
form_499a_discontinuance.py Wire CPNI, CALEA, 499-A engagement, and discontinuance to generic eSign 2026-05-04 10:53:59 -05:00
form_499q.py Fix handler return types: return file path lists not dicts 2026-05-04 02:23:21 -05:00
handbook_review.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
hazmat_phmsa.py fix: worker emails (localhost:25 -> SMTP relay) + create ERPNext SO on webhook payment 2026-06-09 14:40:46 -05:00
ink_signature_plotter.py Add portable Line-us pen-arm support to ink-signature pipeline 2026-06-07 03:45:46 -05:00
mailbox_setup.py fix: worker emails (localhost:25 -> SMTP relay) + create ERPNext SO on webhook payment 2026-06-09 14:40:46 -05:00
mcs150_update.py feat(compliance): admin verification gate + durable submission evidence 2026-06-09 22:50:30 -05:00
new_carrier_bundle.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
npi_provider.py esign: make signing copy fully generic - remove all ink references from website/API 2026-06-07 05:06:26 -05:00
ocn_registration.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
porkbun.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
privacy_policy.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
renewal_handler.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
rmd_filing.py Fix MinioStorage.upload_file → .upload + suppress instant delivery during eSign pause 2026-05-04 10:59:45 -05:00
signature_stamper.py trucking: stamp e-signature exactly on form signature lines + state authorization gate 2026-06-02 16:44:19 -05:00
state_puc_filing.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
state_trucking.py fix: worker emails (localhost:25 -> SMTP relay) + create ERPNext SO on webhook payment 2026-06-09 14:40:46 -05:00
state_trucking_authorization.py trucking: stamp e-signature exactly on form signature lines + state authorization gate 2026-06-02 16:44:19 -05:00
stir_shaken.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00