Problem: the agent's HTTP API (compliance-agent/src/api) has no machine-readable description. DAST seeds API endpoints from an OpenAPI document (#997 point 1), so a scan of our own agent cannot see its routes. Integrators also have nothing to generate clients from.
Change:
Describe the API as OpenAPI 3.1, generated from the handlers (e.g. utoipa) rather than written by hand, so it cannot drift.
Serve it at a well-known path (e.g. /api/openapi.json), behind the same auth as the API.
CI fails when a route has no description.
Acceptance: the document lists every route under /api/v1 with its parameters and auth, and the #997 point 1 seeding picks it up in a local scan.
Follow-up from #997 (DAST dogfooding).
**Problem:** the agent's HTTP API (`compliance-agent/src/api`) has no machine-readable description. DAST seeds API endpoints from an OpenAPI document (#997 point 1), so a scan of our own agent cannot see its routes. Integrators also have nothing to generate clients from.
**Change:**
1. Describe the API as OpenAPI 3.1, generated from the handlers (e.g. `utoipa`) rather than written by hand, so it cannot drift.
2. Serve it at a well-known path (e.g. `/api/openapi.json`), behind the same auth as the API.
3. CI fails when a route has no description.
**Acceptance:** the document lists every route under `/api/v1` with its parameters and auth, and the #997 point 1 seeding picks it up in a local scan.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up from #997 (DAST dogfooding).
Problem: the agent's HTTP API (
compliance-agent/src/api) has no machine-readable description. DAST seeds API endpoints from an OpenAPI document (#997 point 1), so a scan of our own agent cannot see its routes. Integrators also have nothing to generate clients from.Change:
utoipa) rather than written by hand, so it cannot drift./api/openapi.json), behind the same auth as the API.Acceptance: the document lists every route under
/api/v1with its parameters and auth, and the #997 point 1 seeding picks it up in a local scan.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9