Skip to content

feat: add degradation signal to activity feed API response #840

@Aureliolo

Description

@Aureliolo

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:lowNice to have, can deferscope:smallLess than 1 day of workspec:apitype:featureNew feature implementationv0.5Minor version v0.5v0.5.3Patch release v0.5.3

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions