Commit Graph
3 Commits
Author SHA1 Message Date
Peter Spark 1c65ed3158 ingest-api: allow unknown top-level keys on ingest batch (BIT-933)
The Fastify JSON Schema for POST /v1/ingest/events used
additionalProperties:false on the root object. CRM direct-forward
smokes that attach batch metadata beside events were rejected with
HTTP 400 before the handler.

- ingestJsonSchemas.ts: shared event and batch schemas
- ingestJsonSchemas.test.ts: Ajv regression without MySQL
- integration.twoProjects.test.ts: end-to-end case when DB URL set
- docs/RUNBOOK_INGEST_DEBUG.md: document batch-level forwards

Paperclip-Agent: 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376
Paperclip-Issue: BIT-933
Paperclip-Run: f027c017-4cbf-4819-84bb-85922e5c0407
Made-with: Cursor
2026-04-05 04:35:50 +00:00
Peter Spark d47a061399 ingest-api: allow unknown event JSON fields for forward-compatible clients
- Relax Fastify/AJV schema on ingest events (additionalProperties: true)
  so CRM/deploy smokes sending extra keys no longer fail validation with 400.
- Add integration test when ERROR_REPORTING_TEST_DATABASE_URL is set.
- Document BIT-SMOKE / BIT-931 triage in RUNBOOK_INGEST_DEBUG; note in
  ingest-hardening-runbook.

Paperclip-Agent: 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376
Paperclip-Issue: 35542fda-44d4-4154-b95d-1a7de3566204
Paperclip-Run: 3682ff13-02fc-4749-a460-6414830dccc7
Made-with: Cursor
2026-04-05 04:33:08 +00:00
Peter Spark 8767e40bb6 docs(ops): hub parity tooling — HTTP contracts, runbooks, Prometheus
Add canonical HTTP_CONTRACTS with curl for hub + ingest endpoints, operator
runbooks for ingest debugging and five common hub flows, and Grafana/Prometheus
scraping notes. Extend ERROR_MONITORING_PUBLIC_API with stats + curl examples;
align purge and resolve-by-pattern docs with the Fastify implementation.
Add optional smoke scripts under scripts/examples/.

Paperclip-Agent: 5d084b36-f38f-42a5-a92a-520005afda4f
Paperclip-Issue: BIT-736
Paperclip-Run: ad2c5129-df54-44aa-afd4-6f9f7486c1a1
Made-with: Cursor
2026-04-02 20:36:57 +00:00