Align hub rate-limit error context with @fastify/rate-limit types, parse RATE_*
and body-size env vars via parsePositiveIntEnv, wire POST /admin/auth/login to
the login preset, increment er_api_rate_limit_rejections_total per bucket, and
document ingest_token_id plus Prometheus scraping notes.
Made-with: Cursor
Add automated test, build, and validation pipeline:
- Test stages: npm test for ingest-api and api (Vitest)
- Lint/typecheck: admin-ui (Next.js ESLint + TypeScript)
- Docker build validation: validate all service containers
- Parallel jobs with Node 20, npm cache for fast iteration
- Documentation: docs/CI_PIPELINE.md with setup and troubleshooting
Addresses BIT-2498, BIT-2481 acceptance criteria for CI pipeline.
Paperclip-Agent: Patrícia Santos (urlKey patr-cia-santos; id 0f76874a-ad67-4a54-86f1-68a54dd1996f)
Paperclip-Issue: BIT-2498
Add docs/MONITORING.md with links to OBSERVABILITY_PROMETHEUS.md, RUNBOOK_SLO.md,
deploy/grafana dashboard JSON, paperclip MONITORING_INDEX (BIT-221), and
ENVIRONMENTS § Observability. Extend README § Docs with the same entry point.
Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-1949
Paperclip-Run: 1f160242-9803-4a1b-a07b-828d0dc629aa
Pointer-only index of triage, ingest, reporter, SLO, ops, deployment, and
reference docs; cross-links to paperclip company runbooks and hub contract.
Paperclip-Agent: Bug Squasher (urlKey bug-squasher; id 4669adc7-6368-43ef-bf27-5a601a6b7b83)
Paperclip-Issue: BIT-1948
Paperclip-Run: 7d4e556d-80f6-4674-acb6-efdb6c650ae7
Clarify Permission denied (publickey) after LAN path is fixed.
Paperclip-Issue: BIT-1044
Paperclip-Run: d953718f-48be-4046-b7d7-ca7c22ad4315
Paperclip-Agent: 5d084b36-f38f-42a5-a92a-520005afda4f
Cross-reference CTO escalation when the Importer LAN host or routing
is fleet-wide broken.
Paperclip-Issue: BIT-1044
Paperclip-Run: fa1577c6-5dcf-4fc2-b208-fab8979f8f4a
Paperclip-Agent: 5d084b36-f38f-42a5-a92a-520005afda4f
§4.1: add explicit note that triage/close guidance §6.1 lives in hub file
docs/RUNBOOK_TRIAGE.md (relative link RUNBOOK_TRIAGE.md from this doc),
not the BIT-1020 Paperclip URL — addresses CTO comment on wake.
Paperclip-Agent: David Santos (urlKey david-santos; id 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376)
Paperclip-Issue: BIT-1020
Paperclip-Run: 42a75567-a4ef-40dd-8806-c7d192547d2b
Made-with: Cursor
Add a table linking the epic required actions (reachability, timeouts,
retry/backoff, production validation) to existing §2–§4 and triage
guidance. Clarifies that Importer PHP changes ship from WDMI_UBUNTU/WDMI,
not the errors hub repository.
Refs: BIT-1020
Made-with: Cursor
Document LAN sanity (gateway + CT 220 vs Importer-only failure). On SSH
failure, print neighbour state and point operators to --diagnose.
Paperclip-Issue: BIT-1044
Paperclip-Run: 147742f4-8b99-40fa-8e50-d4e8c4b052a4
Paperclip-Agent: 5d084b36-f38f-42a5-a92a-520005afda4f
Add operational checklist for Paperclip host to WDMI Importer (192.168.1.123):
network prerequisites, authorized_keys for paperclip@bitreport-cto, Proxmox
alternative path, and an executable acceptance script.
Cross-link from RUNBOOK_REPORTER_WDMI_CACHE_MKDIR.md.
Paperclip-Issue: BIT-1044
Paperclip-Run: b99b90b0-311f-442e-82ce-5c8644abffb1
Add ISO-8601 occurred_at to each row returned by GET /api/error-monitoring/recent-errors
so operators can script post-deploy stability checks (BIT-1048).
Extend verify_pmx_bet_due_time_deploy.sh with a hub mode that queries open CRM
incidents matching ERRSIG 90a47beec0d7 and fails if the latest occurrence is
within HUB_DUE_TIME_STABILITY_SEC (default 7200). Skips with exit 0 when no
resolve key is present.
Document the field in HTTP_CONTRACTS, ERROR_MONITORING_PUBLIC_API, and
RUNBOOK_REPORTER_CRM_TASKS_DUE_TIME §6.2.2.
Paperclip-Agent: 5d084b36-f38f-42a5-a92a-520005afda4f
Paperclip-Issue: BIT-1048
Paperclip-Run: 5138810f-9498-49a1-81eb-291fdeba8abc
- §4: document WDMI_UBUNTU main commits 3a2ea9ce / d692ed43 as canonical Importer
hardening for BIT-1020; keep WDMI 1cadbb29 as parallel tree note.
- §5.28 (BIT-925): cross-link consolidation to BIT-1020 and §4.
Paperclip-Agent: David Santos (urlKey david-santos; id 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376)
Paperclip-Issue: BIT-1020
Paperclip-Run: a1ee8fee-32bc-4b3b-b9e9-1bf6ab015806
Made-with: Cursor
BIT-922 was cancelled as systemic duplicate (CTO); runbook still documents
ERRSIG/cluster for er-cli while Paperclip work consolidates under BIT-1020.
Paperclip-Agent: 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376
Paperclip-Issue: BIT-922
Paperclip-Run: 9ac7572f-36d0-42f0-941a-5218fa7d01e2
Made-with: Cursor
Add scripts/crm/verify_pmx_bet_profile_and_limit_deploy.sh (gitea + runtime) to assert
CRM_Project main contains the BIT-881 UserController/Sanitize fix and the DatabaseManager
LIMIT/OFFSET integer bind chain (c0afd0183). Document §6 in the Sanitize and SQL LIMIT
runbooks for operators closing the error loop after deploy.
Paperclip: BIT-881, BIT-937
Paperclip-Run-Id: b075f087-a1e8-47cd-aca7-fbfcec7a21bb
Paperclip-Agent: d706f4e6-5d05-4cec-b6e8-f8fb1f203aae
Made-with: Cursor
Add scripts/crm/verify_pmx_bet_due_time_deploy.sh with gitea (ancestor
check vs CRM_Project main) and runtime (SSH to crm-repo) modes. Point
the due_time runbook at the script for operators without VPN on runners.
Paperclip-Issue: BIT-1049
- Add ERRSIG 0bf2057f8082 / ERRCLUSTER d7e969f3ad1b to RUNBOOK_REPORTER_WDMI_FEED_UPLOAD
context index and new §5.44 with er-cli snippets and CRM host map
- Cross-link §5.8, §5.43, and bdc23104564d / c53fefa72645 index entries with BIT-1007
Paperclip-Task: BIT-1007
Paperclip-Run-Id: 02e148f8-b0eb-492c-b32c-cf7846121e2e
Made-with: Cursor
BIT-894 was closed as duplicate of BIT-1020 (systemic feed upload API
timeout/no response). §5.11 now records that relationship and sends
product fix tracking to BIT-1020 while keeping ERRSIG/cluster er-cli
indexing unchanged.
Paperclip-Run-Id: 11d3a474-fe95-4fa6-b9a1-ce6b1f78fe09
Made-with: Cursor
§5.14 (BIT-897 / be2d7dd9daae) now lists the aggregated unique_id labels from the
parent issue body so operators can cross-check hub payloads against Paperclip.
Paperclip-Agent: 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376
Paperclip-Issue: BIT-1042
Paperclip-Run: 7636703d-5004-41ee-b3f5-82de003e41a7
Made-with: Cursor
§5.18 documents 2026-04-05 GET/POST smoke to clients.wdmi.pt (403/401,
~0.2s) so operators narrow root cause to wdmi-store guest path when
the hub still sees Feed upload API no response.
API unit tests: npm test in api/ (vitest) — all passed.
Paperclip-Issue: BIT-901
Paperclip-Run-Id: 60f7c57f-cbf7-4897-bc05-c10c9cb2d673
§5.2 (BIT-903 / ERRSIG:5278058355a5) now points operators at the same
grep/nl post-deploy checks as §5.3.1 when the hub stack still shows
simplexml_load_file() at _flexit.php ~53, so deploy drift is ruled in
before chasing feed corruption alone.
API unit tests: npm test in api/ (vitest) — all passed.
Paperclip-Issue: BIT-903
Paperclip-Run-Id: d62c3ead-22dd-432d-bc32-56150cc9abe3
Add ERRCLUSTER:eb0dad83413f and the attribute-name parser symptom to the
related-docs index; extend §1.5 sweep guidance alongside §5.8 / BIT-946.
Operational closure still requires hub checks (er-cli with
ERROR_RESOLVE_API_KEY) and Importer host work per
RUNBOOK_REPORTER_WDMI_FLEXIT_XML §5.9 and the WDMI deploy runbook.
API unit tests: npm test in api/ (vitest) — all passed.
Paperclip-Issue: BIT-943
Paperclip-Run-Id: 95fbb8b6-0be5-4655-8309-de7893234bb5
BIT-960 events ingest under project crm while §5.36 only listed wdmi-store
er-cli queries. Document the crm guest execution path (§2), extend the §5.36
evidence checklist and command blocks for --project crm, and add matching
lines to the global hub command list in §5.
Root cause remains Importer HTTP upload to the feed API (§2–§4 on the CRM
host); this change only improves hub-side correlation for operators.
Paperclip-Task-Id: 4f45561c-d933-49c6-ae68-58f464d1045b
Paperclip-Issue: BIT-960
Made-with: Cursor
§5.14 already documents ERRSIG:be2d7dd9daae / ERRCLUSTER:149f3432ed66 and
reopen-after-close criteria. Add an explicit pointer to BIT-1042 where the
Importer→API fix is executed (CRM_WDMI / production stack), so hub work stays
separable from product changes.
Paperclip-Agent: d706f4e6-5d05-4cec-b6e8-f8fb1f203aae
Paperclip-Issue: BIT-897
Paperclip-Run: b66bf70e-38ee-44aa-8223-c7881dd10b61
Made-with: Cursor
§5.35 (op_5 / ERRSIG:ec3589e4602f) now matches §5.34/§5.36: explicit
list-open queries for hub verification after Paperclip close or bulk-resolve.
Paperclip-Agent: d706f4e6-5d05-4cec-b6e8-f8fb1f203aae
Paperclip-Issue: BIT-959
Paperclip-Run: d1a98f73-da75-4593-802e-b6d625d300f4
RUNBOOK_REPORTER_GOOGLE_TLS §5.6 lacked the Paperclip/CI runner
note for the crm branch (ERRSIG:e90bb1918aff / ERRCLUSTER:9813f09aff1d).
Align with the pattern already in RUNBOOK_REPORTER_WDMI_FEED_UPLOAD §2:
runners without team VPN cannot reach 10.10.20.22; §2–§3 diagnostics
must be run by an operator with VPN/SSH.
Paperclip-Agent: e34f1b0f-62db-487c-8584-f6a47203f7b5
Paperclip-Issue: BIT-995
Paperclip-Run: f9f53ea9-ec11-4aee-86b9-177e11186fb7
Add a triage bullet to RUNBOOK_REPORTER_CRM_LOGGER_MKDIR so BIT-879-class
errors are routed to WDMI/deploy owners instead of Database Engineering.
Paperclip-Agent: miguel-teixeira
Paperclip-Issue: BIT-879
Paperclip-Run: 17d10b2a-a274-4ec4-bb87-fe66c77e4b92
Made-with: Cursor
Document unique_id 563 in §5.33 so ops can correlate hub events with the
Paperclip loop thread for ERRSIG:9c2281522071 / all_5 classic upload.
Paperclip-Agent: d706f4e6-5d05-4cec-b6e8-f8fb1f203aae
Paperclip-Issue: BIT-958
Paperclip-Run: b2101ec8-6f1e-4803-aec6-0d4b21cef6ae
Made-with: Cursor
Document unique_id 434 in §5.35 so ops can correlate hub events with the
Paperclip loop thread for ERRSIG:ec3589e4602f / op_5 classic upload.
Paperclip-Agent: 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376
Paperclip-Issue: BIT-959
Paperclip-Run: 8472d699-1e22-4037-b0c7-60a383a83ede
Made-with: Cursor