API Audit Engine

Status
in-flight
Tier
Tier 2 — Platform
Owner
Ryan Colston
Started
2026-05-01
Target launch
2026-06-01

One-line description. Verified reference docs for every API I publish to often, kept honest by a monthly drift detector that alerts when reality diverges.

Why

I was trying to see who opened my first Listing Legends agent newsletter in Kit. The MCP gave aggregate stats only, then 404'd on per-recipient endpoints. The frustration ("every time I try to do something with the Kit API, we can't") surfaced a real gap: I publish weekly to Ghost, send a Kit broadcast every Wednesday, deploy to Cloudflare for every site I ship — and didn't have a verified map of what those APIs can and can't do.

Five reference docs solve the immediate gap. A monthly drift detector keeps them honest. The cost of stale docs that quietly become wrong is invisible until something breaks in production at 9 UTC on a Sunday — this system pays for itself the first time it catches a breaking API change before code ships against the new shape.

Current state

In-flight. Five audits shipped to main on 2026-05-02 via !640. Drift detector + GitLab CI job live. First scheduled run fires 2026-06-01 at 9 UTC. First manual run triggered 2026-05-06 to validate the pipeline.

Next 3 actions

  1. Confirm first manual CI run completes successfully — slim image + pip install + GCP_SA_KEY auth all work end-to-end (#191)
  2. Close the (unverified) markers in the BigQuery and Cloudflare reference docs using the now-verified spec snapshots (#189)
  3. Decide whether .strikes state stays in git or moves to BigQuery — defer until first real drift cycle proves git churn is real (#190)

Decisions log

Open issues

References

What this covers

API Reference doc Strategy Snapshot bytes Live coverage
Kit Kit-API-Reference.md OpenAPI 3.0 522KB 45 paths, 15 webhooks
BigQuery BigQuery-API-Reference.md Google Discovery 551KB 42 endpoints + 50 INFORMATION_SCHEMA views
Cloudflare Cloudflare-API-Reference.md OpenAPI 3.0 9.6MB 1,838 paths (audit covers ~70)
Ghost Ghost-API-Reference.md Doc-page hash ~18KB normalized 50+ endpoints, 31 webhooks
FUB FUB-API-Reference.md Doc-page hash varies Existing project, integrated

Why this hub exists

Five separate hubs would fragment a single system. Future me (or a new contributor) lands on one page that says "this is the audit engine, here's what it covers, here's what's open, here's the code" — instead of having to assemble that picture from six places.