test(insights): pin the briefing read and generation before moving them

This commit is contained in:
Marc-André Bombeck committed 2026-10-23 15:31:36 +02:00
1 parent 98875debf4
commit db623ef8bc
46 files changed
+6597

No files matched your search

@@ -0,0 +1,32 @@
{
"status": 401,
"body": {
"data": null,
"error": "Not authenticated",
"meta": {
"errorCode": "auth.missing",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 401,
"action": null,
"meta": null,
"warnings": null,
"error": {
"type": "HttpError",
"message": "Not authenticated"
}
}
],
"effects": [],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,35 @@
{
"status": 403,
"body": {
"data": null,
"error": "This AI feature is turned off in your settings",
"meta": {
"capability": "briefing",
"reason": "user_disabled",
"errorCode": "module.disabled",
"module": "insights",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 403,
"action": null,
"meta": null,
"warnings": null,
"error": {
"type": "AiUnavailableError",
"message": "This AI feature is turned off in your settings"
}
}
],
"effects": [],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,52 @@
{
"status": 200,
"body": {
"data": {
"insights": null,
"cached": false,
"legacyPayload": false,
"revalidating": true,
"hasProvider": true,
"generationFailed": false,
"generationFailureClass": null,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": false,
"hasProvider": true,
"languageMismatch": false,
"readerLocale": "en",
"revalidating": true
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "enqueueForceWarm",
"args": [
{
"userId": "<id:1>",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,92 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+11:00:00"
},
"cached": true,
"cachedAt": "anchor+0d+11:00:00",
"legacyPayload": false,
"revalidating": false,
"hasProvider": true,
"generationFailed": false,
"generationFailureClass": null,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": true,
"hasProvider": true,
"legacyPayload": false,
"revalidating": false
},
"warnings": null,
"error": null
}
],
"effects": [],
"stored": {
"insightsCachedAt": "anchor+0d+11:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+11:00:00"
},
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,90 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor-1d+16:00:00"
},
"cached": true,
"cachedAt": "anchor+0d+10:00:00",
"legacyPayload": false,
"revalidating": true,
"hasProvider": true,
"generationFailed": false,
"generationFailureClass": null,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": true,
"hasProvider": true,
"legacyPayload": false,
"revalidating": true
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "enqueueForceWarm",
"args": [
{
"userId": "<id:1>",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+10:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor-1d+16:00:00"
},
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,77 @@
{
"status": 200,
"body": {
"data": {
"insights": null,
"cached": false,
"legacyPayload": false,
"revalidating": true,
"hasProvider": true,
"generationFailed": false,
"generationFailureClass": null,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": false,
"hasProvider": true,
"languageMismatch": true,
"readerLocale": "en",
"revalidating": true
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "enqueueForceWarm",
"args": [
{
"userId": "<id:1>",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+11:00:00",
"insightsCachedLocale": "de",
"cachedPayload": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+11:00:00"
},
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,52 @@
{
"status": 200,
"body": {
"data": {
"insights": null,
"cached": false,
"legacyPayload": false,
"revalidating": true,
"hasProvider": true,
"generationFailed": false,
"generationFailureClass": null,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": false,
"hasProvider": true,
"languageMismatch": false,
"readerLocale": "en",
"revalidating": true
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "enqueueForceWarm",
"args": [
{
"userId": "<id:1>",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+11:00:00",
"insightsCachedLocale": null,
"cachedPayload": "{not json",
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,62 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Legacy",
"recommendations": [
"Drink water."
]
},
"cached": true,
"cachedAt": "anchor+0d+11:00:00",
"legacyPayload": true,
"revalidating": true,
"hasProvider": true,
"generationFailed": false,
"generationFailureClass": null,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": true,
"hasProvider": true,
"legacyPayload": true,
"revalidating": true
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "enqueueForceWarm",
"args": [
{
"userId": "<id:1>",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+11:00:00",
"insightsCachedLocale": null,
"cachedPayload": {
"summary": "Legacy",
"recommendations": [
"Drink water."
]
},
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,102 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+09:00:00"
},
"cached": true,
"cachedAt": "anchor+0d+09:00:00",
"legacyPayload": false,
"revalidating": false,
"hasProvider": true,
"generationFailed": true,
"generationFailureClass": "rate-limit",
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": true,
"hasProvider": true,
"legacyPayload": false,
"revalidating": false
},
"warnings": null,
"error": null
}
],
"effects": [],
"stored": {
"insightsCachedAt": "anchor+0d+09:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+09:00:00"
},
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"reason": "all-providers-failed",
"httpStatus": 429,
"failureKind": null
},
"ipAddress": null
}
],
"usage": []
}
}
@@ -0,0 +1,71 @@
{
"status": 200,
"body": {
"data": {
"insights": null,
"cached": false,
"legacyPayload": false,
"revalidating": true,
"hasProvider": true,
"generationFailed": true,
"generationFailureClass": "format",
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": false,
"hasProvider": true,
"languageMismatch": false,
"readerLocale": "en",
"revalidating": true
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "enqueueForceWarm",
"args": [
{
"userId": "<id:1>",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"reason": "provider-error",
"httpStatus": null,
"failureKind": null
},
"ipAddress": null
},
{
"action": "insights.briefing-failure",
"details": {
"reason": "invalid-json",
"httpStatus": null,
"failureKind": null
},
"ipAddress": null
}
],
"usage": []
}
}
@@ -0,0 +1,78 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+10:00:00"
},
"cached": true,
"cachedAt": "anchor+0d+10:00:00",
"legacyPayload": false,
"revalidating": false,
"hasProvider": true,
"generationFailed": false,
"generationFailureClass": null,
"briefingOmittedReason": "ungrounded"
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate.read"
},
"meta": {
"cached": true,
"hasProvider": true,
"legacyPayload": false,
"revalidating": false
},
"warnings": null,
"error": null
}
],
"effects": [],
"stored": {
"insightsCachedAt": "anchor+0d+10:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+10:00:00"
},
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"reason": "briefing-ungrounded",
"httpStatus": null,
"failureKind": null
},
"ipAddress": null
}
],
"usage": []
}
}
@@ -0,0 +1,55 @@
{
"status": 401,
"body": {
"data": null,
"error": "Not authenticated",
"meta": {
"errorCode": "auth.missing",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 401,
"action": null,
"meta": null,
"warnings": null,
"error": {
"type": "HttpError",
"message": "Not authenticated"
}
}
],
"effects": [],
"stored": {
"insightsCachedAt": "anchor+0d+10:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+10:00:00"
},
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"reason": "briefing-ungrounded",
"httpStatus": null,
"failureKind": null
},
"ipAddress": null
}
],
"usage": []
}
}
@@ -0,0 +1,35 @@
{
"status": 403,
"body": {
"data": null,
"error": "This AI feature is turned off in your settings",
"meta": {
"capability": "briefing",
"reason": "user_disabled",
"errorCode": "module.disabled",
"module": "insights",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 403,
"action": null,
"meta": null,
"warnings": null,
"error": {
"type": "AiUnavailableError",
"message": "This AI feature is turned off in your settings"
}
}
],
"effects": [],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,29 @@
{
"status": 413,
"body": {
"data": null,
"error": "Request body exceeds 16384 bytes",
"meta": {
"errorCode": "http.payload_too_large",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 413,
"action": null,
"meta": null,
"warnings": null,
"error": null
}
],
"effects": [],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,86 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+11:00:00"
},
"cached": true,
"cachedAt": "anchor+0d+11:00:00",
"legacyPayload": false
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"briefingless": false,
"cached": true,
"legacyPayload": false
},
"warnings": null,
"error": null
}
],
"effects": [],
"stored": {
"insightsCachedAt": "anchor+0d+11:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+11:00:00"
},
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,276 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"locale": "en",
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,275 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,62 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+11:00:00"
},
"cached": true,
"cachedAt": "anchor+0d+11:00:00",
"legacyPayload": false
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"cached": true,
"locale": "en",
"rate_limited_fallback": true
},
"warnings": null,
"error": null
}
],
"effects": [],
"stored": {
"insightsCachedAt": "anchor+0d+11:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Cached summary.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+11:00:00"
},
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,29 @@
{
"status": 429,
"body": {
"data": null,
"error": "Maximum 10 insight generations per hour.",
"meta": {
"errorCode": "http.rate_limited",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 429,
"action": null,
"meta": null,
"warnings": null,
"error": null
}
],
"effects": [],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,32 @@
{
"status": 500,
"body": {
"data": null,
"error": "Interner Serverfehler",
"meta": {
"errorCode": "http.internal",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 500,
"action": null,
"meta": null,
"warnings": null,
"error": {
"type": "TypeError",
"message": "Invalid authentication tag length: 0"
}
}
],
"effects": [],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,275 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 2100
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 2100,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 2100,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,251 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"disclaimer": "Consult your doctor.",
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"disclaimer": "Consult your doctor.",
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,271 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "off",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_usage_level": "frugal",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000
},
"promptChars": 39012,
"promptSha256": "9b74ece939faf8f6643d894cc718bd3e0925133e2c6c12d98dfb3f9d68c82d61"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "de"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "de"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "de",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "c98e2d8e9f112318293af870eaa7c15d342f7f37a12047b0fd4e2a7f66d84676",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,278 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"insights_features_downgraded": true,
"insights_features_hard_downgraded": false,
"insights_features_oversize_bytes": 6100000,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34783,
"promptSha256": "2aeca4de2fc6397815465ac4de27a2267fdfc69cd4a607b2e19d7b06502bc040"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "raw",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,278 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"insights_features_downgraded": true,
"insights_features_hard_downgraded": true,
"insights_features_oversize_bytes": 5400000,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34193,
"promptSha256": "f11bae5de41f1344113977970c832df38427bcdf4b24a6f7fb8b05cef899c5af"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "11a4fb0ae0188e5a95cbe69124afaccdb326b76ea8e8ad73affbc819255a01cc",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "raw",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,32 @@
{
"status": 422,
"body": {
"data": null,
"error": "Your data exceeds the AI payload size limit. Reduce the data window or exclude optional blocks in Settings > AI.",
"meta": {
"errorCode": "http.invalid",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 422,
"action": null,
"meta": {
"insights_payload_oversize_bytes": 5200000,
"insights_payload_too_large": true
},
"warnings": null,
"error": null
}
],
"effects": [],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": []
}
}
@@ -0,0 +1,58 @@
{
"status": 429,
"body": {
"data": null,
"error": "Daily AI token budget reached. Insights will be available again tomorrow.",
"meta": {
"errorCode": "insights.generate.budgetExceeded",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 429,
"action": {
"name": "insights.briefing.budget_exceeded"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"cap": 1600000,
"include_raw": false,
"limit": "owner-cap",
"operatorAfter": 0,
"owner": "user",
"since_days": 400,
"stage": "generate",
"surface": "job",
"totalAfter": 5000000
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 5000000,
"operatorTokens": 0,
"messageCount": 0
}
]
}
}
@@ -0,0 +1,103 @@
{
"status": 422,
"body": {
"data": null,
"error": "AI provider rejected the request. Check your API key in Settings > AI",
"meta": {
"errorCode": "http.invalid",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 422,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_chain_attempts": 2,
"insights_chain_first_provider": "anthropic",
"insights_chain_first_status": 401,
"insights_chain_outcome": "all-failed",
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "all-providers-failed",
"locale": "en",
"httpStatus": 401,
"failureKind": null
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "all-providers-failed",
"httpStatus": 401,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,103 @@
{
"status": 429,
"body": {
"data": null,
"error": "AI provider rate-limited the request",
"meta": {
"errorCode": "http.rate_limited",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 429,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_chain_attempts": 1,
"insights_chain_first_provider": "anthropic",
"insights_chain_first_status": 429,
"insights_chain_outcome": "all-failed",
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "all-providers-failed",
"locale": "en",
"httpStatus": 429,
"failureKind": null
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "all-providers-failed",
"httpStatus": 429,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,103 @@
{
"status": 503,
"body": {
"data": null,
"error": "AI provider temporarily unavailable, try again in a moment",
"meta": {
"errorCode": "http.unavailable",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 503,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_chain_attempts": 2,
"insights_chain_first_provider": "anthropic",
"insights_chain_first_status": 401,
"insights_chain_outcome": "all-failed",
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "all-providers-failed",
"locale": "en",
"httpStatus": 401,
"failureKind": null
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "all-providers-failed",
"httpStatus": 401,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,103 @@
{
"status": 422,
"body": {
"data": null,
"error": "AI provider connection failed. Check your AI settings",
"meta": {
"errorCode": "http.invalid",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 422,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_chain_attempts": 2,
"insights_chain_first_provider": "anthropic",
"insights_chain_first_status": null,
"insights_chain_outcome": "all-failed",
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "all-providers-failed",
"locale": "en",
"httpStatus": null,
"failureKind": null
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "all-providers-failed",
"httpStatus": null,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,103 @@
{
"status": 503,
"body": {
"data": null,
"error": "AI provider temporarily unavailable, try again in a moment",
"meta": {
"errorCode": "http.unavailable",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 503,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_chain_attempts": 2,
"insights_chain_first_provider": "anthropic",
"insights_chain_first_status": 404,
"insights_chain_outcome": "all-failed",
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "all-providers-failed",
"locale": "en",
"httpStatus": 404,
"failureKind": null
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "all-providers-failed",
"httpStatus": 404,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,102 @@
{
"status": 422,
"body": {
"data": null,
"error": "AI provider connection failed. Check your AI settings",
"meta": {
"errorCode": "http.invalid",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 422,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_provider_body_excerpt": "{\"error\":\"status 400\"}",
"insights_provider_error": "upstream answered 400",
"insights_provider_status": 400,
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "provider-error",
"locale": "en",
"httpStatus": 400,
"failureKind": "http"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "provider-error",
"httpStatus": 400,
"failureKind": "http",
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,102 @@
{
"status": 422,
"body": {
"data": null,
"error": "AI provider rejected the request. Check your API key in Settings > AI",
"meta": {
"errorCode": "http.invalid",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 422,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_provider_body_excerpt": "{\"error\":\"status 401\"}",
"insights_provider_error": "upstream answered 401",
"insights_provider_status": 401,
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "provider-error",
"locale": "en",
"httpStatus": 401,
"failureKind": "http"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "provider-error",
"httpStatus": 401,
"failureKind": "http",
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,102 @@
{
"status": 429,
"body": {
"data": null,
"error": "AI provider rate-limited the request",
"meta": {
"errorCode": "http.rate_limited",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 429,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_provider_body_excerpt": "{\"error\":\"status 429\"}",
"insights_provider_error": "upstream answered 429",
"insights_provider_status": 429,
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "provider-error",
"locale": "en",
"httpStatus": 429,
"failureKind": "http"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "provider-error",
"httpStatus": 429,
"failureKind": "http",
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,102 @@
{
"status": 503,
"body": {
"data": null,
"error": "AI provider temporarily unavailable, try again in a moment",
"meta": {
"errorCode": "http.unavailable",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 503,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_provider_body_excerpt": "{\"error\":\"status 500\"}",
"insights_provider_error": "upstream answered 500",
"insights_provider_status": 500,
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "provider-error",
"locale": "en",
"httpStatus": 500,
"failureKind": "http"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "provider-error",
"httpStatus": 500,
"failureKind": "http",
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 0,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,97 @@
{
"status": 422,
"body": {
"data": null,
"error": "AI response was not valid JSON",
"meta": {
"errorCode": "http.invalid",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 422,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "invalid-json",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "invalid-json",
"httpStatus": null,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,98 @@
{
"status": 422,
"body": {
"data": null,
"error": "AI response was cut off before the JSON completed. Raise the token limit (INSIGHTS_MAX_TOKENS)",
"meta": {
"errorCode": "ai_response_truncated",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 422,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"insights_response_truncated": true,
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "invalid-json",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "invalid-json",
"httpStatus": null,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,295 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 900,
"ungroundedCount": 1
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000
},
"promptChars": 35302,
"promptSha256": "2b3978fcf41077f56835864a67264bea403c0dc31a6bd211ecc469afa16d8a7d"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Your readings held steady this week, with no surprises.",
"signalsOfDay": [
{
"sourceMetric": "weight",
"tone": "info",
"headline": "Weight is steady",
"nudge": "Keep weighing in at the same time each morning.",
"delta": null
}
],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 900,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 2100,
"operatorTokens": 0,
"messageCount": 2
}
]
}
}
@@ -0,0 +1,280 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Yesterday's briefing, grounded when it was written.",
"signalsOfDay": [],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": null
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"briefing_fallback": "previous-cached",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200,
"ungroundedCount": 1
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000
},
"promptChars": 35302,
"promptSha256": "2b3978fcf41077f56835864a67264bea403c0dc31a6bd211ecc469afa16d8a7d"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": {
"paragraph": "Yesterday's briefing, grounded when it was written.",
"signalsOfDay": [],
"keyFindings": []
},
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 2400,
"operatorTokens": 0,
"messageCount": 2
}
]
}
}
@@ -0,0 +1,294 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": "ungrounded"
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"briefing_fallback": "stripped",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200,
"ungroundedCount": 1
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000
},
"promptChars": 35302,
"promptSha256": "2b3978fcf41077f56835864a67264bea403c0dc31a6bd211ecc469afa16d8a7d"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "briefing-ungrounded",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "briefing-ungrounded",
"httpStatus": null,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
},
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 2400,
"operatorTokens": 0,
"messageCount": 2
}
]
}
}
@@ -0,0 +1,294 @@
{
"status": 200,
"body": {
"data": {
"insights": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"cached": false,
"legacyPayload": false,
"briefingOmittedReason": "ungrounded"
},
"error": null
},
"events": [
{
"status": 200,
"action": {
"name": "insights.generate"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"briefing_fallback": "stripped",
"cached": false,
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"include_raw": false,
"model": "claude-parity",
"providerType": "anthropic",
"scopes": 13,
"since_days": 400,
"tokensUsed": 1200,
"ungroundedCount": 1
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000
},
"promptChars": 35302,
"promptSha256": "2b3978fcf41077f56835864a67264bea403c0dc31a6bd211ecc469afa16d8a7d"
}
]
},
{
"effect": "recordBriefingFailure",
"args": [
{
"userId": "<id:1>",
"reason": "briefing-ungrounded",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "blood-pressure",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "pulse",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "weight",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "bmi",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "mood",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "medication-compliance",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "general",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:SLEEP_DURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:STEPS",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:BLOOD_GLUCOSE",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:OXYGEN_SATURATION",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:HEART_RATE_VARIABILITY",
"locale": "en"
}
]
},
{
"effect": "enqueueStatusGeneration",
"args": [
{
"userId": "<id:1>",
"metric": "metric:RESTING_HEART_RATE",
"locale": "en"
}
]
}
],
"stored": {
"insightsCachedAt": "anchor+0d+12:00:00",
"insightsCachedLocale": "en",
"cachedPayload": {
"summary": "Your tracked metrics held steady over the last 30 days.",
"classification": "gut",
"findings": [],
"correlations": [],
"recommendations": [],
"dataQuality": {
"coverage": "good",
"gaps": [],
"confidence": "hoch"
},
"dailyBriefing": null,
"briefingGeneratedAt": "anchor+0d+12:00:00"
},
"snapshotHash": "4ac15bc271309c63b3b5d1e43a3367f7abdf952d3f4351bb1b22aa364bcb630a",
"audit": [
{
"action": "insights.briefing-failure",
"details": {
"dateKey": "day+0",
"reason": "briefing-ungrounded",
"httpStatus": null,
"failureKind": null,
"locale": "en",
"triedAt": "anchor+0d+12:00:00"
},
"ipAddress": null
},
{
"action": "insights.generate",
"details": {
"privacyMode": "aggregated",
"tokensUsed": 1200,
"providerType": "anthropic",
"chainProviderType": "anthropic",
"fallbackHopCount": 0,
"model": "claude-parity"
},
"ipAddress": null
}
],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 2400,
"operatorTokens": 0,
"messageCount": 2
}
]
}
}
@@ -0,0 +1,76 @@
{
"status": 502,
"body": {
"data": null,
"error": "The generated insight did not pass the safety check and was discarded. Try regenerating.",
"meta": {
"errorCode": "insights.generate.outboundScreened",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 502,
"action": {
"name": "insights.generate.outbound_blocked"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"locale": "en",
"reason": "risk_score",
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,74 @@
{
"status": 409,
"body": {
"data": null,
"error": "Profile scope changed during insight generation",
"meta": {
"errorCode": "insights.generate.profileScopeChanged",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 409,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
@@ -0,0 +1,74 @@
{
"status": 409,
"body": {
"data": null,
"error": "Insight scope changed during generation",
"meta": {
"errorCode": "insights.generate.scopeChanged",
"requestId": "<requestId>"
}
},
"events": [
{
"status": 409,
"action": {
"name": "insights.feature_cache.miss"
},
"meta": {
"ai_reasoning_effort": "medium",
"ai_reasoning_job": "daily_briefing",
"ai_reasoning_source": "job",
"include_raw": false,
"since_days": 400
},
"warnings": null,
"error": null
}
],
"effects": [
{
"effect": "ensureUserMoodRollupsFresh",
"args": [
"<id:1>"
]
},
{
"effect": "provider",
"args": [
{
"surface": "job",
"chain": [
"anthropic"
],
"params": {
"temperature": 0.3,
"maxTokens": 2500,
"responseFormat": "json",
"timeoutMs": 180000,
"reasoning": {
"effort": "medium",
"summaries": false
}
},
"promptChars": 34773,
"promptSha256": "2197bdec8af3ff7034e7b533788ac94d36b64d4edf8d211bbacfac7e2298ad72"
}
]
}
],
"stored": {
"insightsCachedAt": null,
"insightsCachedLocale": null,
"cachedPayload": null,
"snapshotHash": null,
"audit": [],
"usage": [
{
"dateKey": "day+0",
"totalTokens": 1200,
"operatorTokens": 0,
"messageCount": 1
}
]
}
}
File diff suppressed because it is too large. Load diff