Skip to content

engine-api: signal placeholder routes with X-AGT-Backend-Status header #3092

Description

@Ricky-G

Summary

The Engine API placeholder routes (trust, audit, agents, decisions) return 200 OK with spec-conformant empty payloads. Studio consumers cannot tell a real empty result from a not-yet-implemented backend without inspecting the body.

Context

Raised as a non-blocking follow-up in the review of PR #3085 (issue #3066). Returning 200 with an empty collection (rather than 501) is intentional and contract-conformant, but it hides the placeholder status from clients.

Proposal

Emit an X-AGT-Backend-Status: placeholder response header on the routes whose backend is not yet wired, so Studio consumers have a signal without polling items. Remove the header per route as each real backend lands.

Scope

  • agent-governance-python/agent-mesh/src/agentmesh/engine_api/routes/ (trust, audit, agents, decisions)
  • Tests asserting the header is present on placeholder routes and absent once a backend is implemented.

Follow-up from PR #3085, issue #3066.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions