High-level flow
- ONVY receives provider or application data.
- Raw payloads are stored and queued for processing.
- Calculation workers harmonize data into stable record families.
- Downstream services generate summaries, scores, and webhook events.
Terra ingestion pattern
The Terra pipeline is the main example of delayed ingestion:- A Terra webhook writes raw data and schedules work in DynamoDB.
- A delayed SQS message gives related payloads time to accumulate.
- The calculation Lambda processes scheduled items in batches by user.
- Harmonized outputs become available through routes such as
daily_records,activities, andbaselines.
What processing produces
daily_recordsfor user-facing scores, zones, and logsfactsfor durable AI personalization contextactivitiesandmealsfor structured event historyai_summarieswhen a supported summary flow runs
AI surfaces in the pipeline
AI features consume the same underlying user context:- Chat completions enrich prompts with ONVY context unless the request opts out of selected sections
- AI summaries persist generated results so you can list, fetch, and audit them later
Internal EventBridge events use a flat
detail.data shape. The batched events[] envelope described in /webhooks is only for external webhook delivery.