-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add degradation signal to activity feed API response #840
Copy link
Copy link
Closed
Labels
prio:lowNice to have, can deferNice to have, can deferscope:smallLess than 1 day of workLess than 1 day of workspec:apitype:featureNew feature implementationNew feature implementationv0.5Minor version v0.5Minor version v0.5v0.5.3Patch release v0.5.3Patch release v0.5.3
Description
Context
When any activity data source fails, the endpoint returns 200 OK with partial data and no indication that data is missing. Operators see WARNING logs, but API consumers have no signal.
Proposed Solution
Add a degraded_sources field to the response metadata (or use X-Degraded-Sources header) listing which data sources failed. E.g., "degraded_sources": ["cost_tracker", "tool_invocation_tracker"].
Files
src/synthorg/api/controllers/activities.py- Possibly
src/synthorg/api/dto.py(PaginatedResponse metadata)
Source
Found during PR #832 review (silent-failure-hunter agent).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
prio:lowNice to have, can deferNice to have, can deferscope:smallLess than 1 day of workLess than 1 day of workspec:apitype:featureNew feature implementationNew feature implementationv0.5Minor version v0.5Minor version v0.5v0.5.3Patch release v0.5.3Patch release v0.5.3