Runtime Function Wiring v1

Functions write the operating trail into the runtime.

Runtime Function Wiring connects selected Netlify functions to Supabase records so intake, Work Orders, execution bindings, provider confirmations, pilot state, result contracts, receipts, callbacks, ledger entries, and attestations can move through one OS path.

What this binds

Public contracts connect to persistent OS records.

The wiring layer gives each function a shared Supabase helper, consistent response envelopes, and durable write targets for the operating trail.

Intake

Client and agent intake

Intake requests can persist as runtime records and move toward Work Order creation.

Dispatch

Work Order dispatch

Accepted requests bind to Work Orders, routing decisions, queue state, and return contracts.

Execution

Tool command binding

Work Orders bind to TokenOps, FinanceOps, or EnergyOps execution commands and result events.

Provider

Credit funding

Provider confirmations create activation bindings, credit funding events, and settlement receipt records.

Function surfaces

One helper. Multiple operating rails.

Each function can run with the same Supabase service-role environment and return the same pattern: request accepted, record written, next OS link returned.

Runtime Data Binding

Writes runtime binding events and task run records.

Open function →

Provider Activation

Creates provider activation, credit funding, and settlement receipt records.

Open function →

Callback Delivery

Persists delivery status, retry commands, and failure reasons.

Open function →

Wiring Status

Reports available tables, functions, and next runtime actions.

Open status →