Deployed runtime: email, signatures, and billing

CapabilityEnvironment variablesDev / production rule
Email backendNAVIGATOR_EMAIL_BACKENDMust be sendgrid outside the harness
Outbound SendGridSENDGRID_API_KEY, SENDGRID_FROM_EMAILRequired outside the harness
SendGrid base URLSENDGRID_BASE_URLOfficial hosts only outside the harness
Inbound URL gateSENDGRID_INBOUND_SECRETRequired outside the harness
Inbound signatureSENDGRID_INBOUND_PUBLIC_KEYRequired when summary review is enabled
Attachment scannerNAVIGATOR_CLAMD_ADDRRequired in every deployed profile; private clamd only
Event webhookSENDGRID_EVENTS_SECRET, SENDGRID_EVENTS_PUBLIC_KEYRequired outside the harness
Threaded mailNAVIGATOR_PARSE_HOST, NAVIGATOR_LAWYER_NOTIFY_EMAILBoth values enable it
Summary opt-inNAVIGATOR_SUMMARY_ENABLEDEnables durable review
Summary identityNAVIGATOR_DEPLOYMENT_ID, NAVIGATOR_SUMMARY_CHANNEL_IDDurable review coordinates
Summary FirmNAVIGATOR_SUMMARY_FIRM_IDOptional; unset uses the Firm wearing the neon brand
Summary accountNAVIGATOR_SUMMARY_PROVIDER_ACCOUNTOptional; defaults to sendgrid
Summary envelopeNAVIGATOR_SUMMARY_ENVELOPE_RECIPIENTSUnset/off by default; blank values fail
SMSNAVIGATOR_SMS_NUMBER, TWILIO_AUTH_TOKEN, TWILIO_ACCOUNT_SIDOff by default; a number needs both
Voice linesNAVIGATOR_VOICE_NUMBERSOptional brand_key=+E164 pairs; omitted Brands keep their own
SMS test numbersNAVIGATOR_SMS_TEST_RECIPIENTSStaging secret: the only numbers simulated matters may text
SMS reply accountTWILIO_ACCOUNT_SIDReplies need live production egress and sender registration
Summary Gemini modelNAVIGATOR_SUMMARY_GEMINI_MODELOptional Vertex model override
Summary Gemini locationNAVIGATOR_SUMMARY_GEMINI_LOCATIONOptional Vertex location override
Summary input limitNAVIGATOR_SUMMARY_MAX_INPUT_CHARSOptional input limit
Summary output limitNAVIGATOR_SUMMARY_MAX_OUTPUT_TOKENSOptional output limit
DKIM fenceNAVIGATOR_DKIM_REQUIRE_DOMAINOptional domain pin
Lawyer-sender DKIM checknone (always on)Must pass for sender's own domain on every lawyer command/relay
Internal ops noticesSLACK_WEBHOOK_URLOptional; otherwise captured in memory
Per-Project client-view noticesSLACK_BOT_TOKENRequired outside the harness; creates private Project channels
Inbox notice FirmSLACK_MESSAGES_FIRM_IDOptional; unset uses the Firm wearing Neon
Dash0 endpointDASH0_ENDPOINTOptional staging-only integration declaration
Dash0 datasetDASH0_DATASETRequired with DASH0_ENDPOINT
Dash0 tokenDASH0_TOKENEncrypted Secret Manager input; required with DASH0_ENDPOINT
Signature providerNAVIGATOR_SIGNATURE_PROVIDERfake/docusign; unset fails boot; fake refuses production
DocuSign endpointDOCUSIGN_BASE_URLDeclares DocuSign; demo in dev, live in production
DocuSign accountDOCUSIGN_ACCOUNT_IDEnvironment-specific account
DocuSign JWT IDsDOCUSIGN_INTEGRATION_KEY, DOCUSIGN_USER_IDPreferred auth path
DocuSign JWT proofDOCUSIGN_PRIVATE_KEY, DOCUSIGN_OAUTH_BASEPreferred auth path
DocuSign static authDOCUSIGN_ACCESS_TOKENShort-lived fallback
DocuSign signerDOCUSIGN_SIGNER_EMAIL, DOCUSIGN_SIGNER_NAMERequired signer identity
DocuSign webhookDOCUSIGN_HMAC_KEY, DOCUSIGN_WEBHOOK_SECRETRequired once DOCUSIGN_BASE_URL is set
Xero tenantXERO_TENANT_ID, XERO_BASE_URLAll Xero values select real billing
Xero OAuth clientXERO_CLIENT_ID, XERO_CLIENT_SECRETOtherwise stub billing
Xero OAuth tokenXERO_TOKEN_URL, XERO_SCOPE, XERO_ACCESS_TOKENOtherwise stub billing

The signature provider is a closed enum, SignatureProviderKind: fake (the local signature loop — envelopes on disk, local sign pages, DocuSign-Connect-shaped HMAC-signed completion webhooks; dev and CI only, refuses production) or docusign (the real eSignature REST API). There is no implicit default: unset refuses to boot. An envelope on the fake provider carries one of two statuses, EnvelopeStatus: sent (anchors validated against the prepared PDF, PDF stored) or completed (every recipient signed, documents and certificate filed). There is no third state. Tests fail the loop on purpose with the third enum, Fault — send, view, or webhook — and the durable envelope keeps its last true state across every injected failure. Before anything is sent, on either provider, prepare_envelope groups the manifest's fields into per-signer, per-role tabs (SignatureFieldKind::tabs_key picks the tab type, the recipient's role picks the sign page) and refuses the send with a typed SignatureError::TabValidation when a field names no recipient, or SignatureError::AnchorValidation when the prepared PDF's text lacks the field's nlsig- anchor. Off the loop, a matter's execution reading is another closed enum, OnboardingStatus (store/src/projects.rs): pitch — no completed, Navigator-sent onboarding envelope on the matter's onboarding notation — or official — that envelope has completed a loop Navigator itself sent. It is additive to MatterLifecycle (pitch/active/closed), which it does not change, and surfaces on the matter page, through navigator project lifecycle, and in the Portal. The funnel the prospective client walks is itself a closed enum, FunnelEvent (telemetry/src/lib.rs), whose steps are enumerated with their fields in docs/observability.md — lead_captured, offer_accepted (a start-door acceptance: the offer's matter, notation, and proposed terms exist), intake_complete, review_entered, and sent — every field an identifier, never client content.