new-site/scripts/workers/services
justin a3aeedd716 mcs150: census-prefilled intake-completion flow + completeness gate
Closes the data gap for orders that bypass the full intake (e.g. the DOT
compliance-remediation pipeline) and for all MCS-150 variants:

- Worker intake-completeness gate (mcs150_update): before filling, check the
  customer-required operational fields the FMCSA census cannot supply
  (operation classification, cargo, CURRENT annual mileage, email; plus
  signer/address for new-registration/reactivation, and states-of-operation
  for 150B hazmat). If missing, email the customer a census-pre-filled intake
  link and hold the order at fulfillment_status='awaiting_intake' with an admin
  todo, instead of fabricating a blank filing. The existing intake PUT endpoint
  already re-dispatches the worker on submit, so filing auto-resumes.
- Intake wizard (Wizard.astro): when resuming ?order=CO-xxx for a DOT/MCS order,
  seed still-empty fields from the FMCSA census (name/address/fleet/interstate)
  so the customer only confirms the operational details.
- /api/v1/dot/census now also returns total_drivers + a normalized
  carrier_operation_code for the prefill.
- MCS150Step.astro extended to collect every field the filler needs across all
  variants: mailing address, cdl_drivers, primary_vehicle_type,
  reason_for_filing, usdot_revoked, cell/fax, hazmat-safety-permit block
  (needs_hmsp, operating states, security plan), and intermodal-equipment
  provider counts; all prefill from intake_data.

verify_mcs150_variants.py covers 150/150B/150C end-to-end (ALL PASS).
2026-06-10 14:03:28 -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 mcs150: enrich intake from FMCSA carrier census before PDF fill 2026-06-10 12:35:52 -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 mcs150: enrich intake from FMCSA carrier census before PDF fill 2026-06-10 12:35:52 -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 mcs150: census-prefilled intake-completion flow + completeness gate 2026-06-10 14:03:28 -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