Commit Graph
299 Commits
Author SHA1 Message Date
David Santos caeb37ff0a feat(hub): time-limited fixed patterns — expire after N days (BIT-26790)
CI / Test ingest-api (push) Successful in 48s
CI / Test api (push) Successful in 47s
CI / Lint and typecheck admin-ui (push) Successful in 1m20s
CI / Validate Docker build (push) Successful in 4m29s
Add optional addedAt + expiresAfterDays to FixedPattern so each pattern
has a TTL. The resolve-fixed-patterns handler now skips expired patterns,
letting persistent errors resurface and forcing a real code fix instead
of indefinite suppression.

- Transient infra patterns (WSREP, Google API, session write) carry addedAt
  for audit but no expiry — they are permanent noise with no code fix.
- fix-duplicate-logo.js expires 14 days after 2026-07-17; if still firing
  after that the deploy or client filter is broken and needs attention.
- Response includes expired_pattern_count and per-pattern expired/expires_at.
2026-07-17 22:42:56 +00:00
David Santos 37ab9f1ccb fix(hub): BIT-25223 add fix-duplicate-logo.js resolve pattern + auto-apply on deploy
CI / Test api (push) Successful in 1m8s
CI / Test ingest-api (push) Successful in 1m9s
CI / Lint and typecheck admin-ui (push) Successful in 1m30s
CI / Validate Docker build (push) Successful in 5m22s
- resolveFixedPatterns.ts: add '%fix-duplicate-logo.js%' entry so any
  Chrome-style CRM JS error that reaches the hub is auto-resolved on deploy
- webhook-deploy.sh: call resolve-fixed-patterns after every service restart
  so code fixes clear stale hub incidents automatically (uses ERROR_RESOLVE_API_KEY
  from /etc/error-reporting/env which is already sourced by the script)

The 5 open incidents for ERRCLUSTER:33b4e527d8fd were bulk-resolved directly
(IDs 747145, 747381, 753209, 753550, 753551). Client-side noise filter (CRM PR #684)
prevents new occurrences.
2026-07-17 22:20:18 +00:00
David Santos 615d771ade fix(tools): drop multi-status filter in fleet audit — hub times out on comma-separated status values
CI / Test ingest-api (push) Failing after 40s
CI / Lint and typecheck admin-ui (push) Failing after 43s
CI / Validate Docker build (push) Failing after 42s
CI / Test api (push) Failing after 10m49s
Paperclip-Task-Id: BIT-25722
2026-06-22 07:22:16 +00:00
David SantosandPaperclip 3c307ea32d feat(hub): accept and expose paperclip_project_id on error records (BIT-25537)
- php-error bridge: accept paperclip_project_id / paperclipProjectId in
  CrmPhpPayload and promote into event context alongside project_slug/gitea_repo
- recent-errors: extract paperclip_project_id from context_json and emit as
  top-level field so error loop can route issues to the correct project board
  column without falling back to PAPERCLIP_ERROR_LOOP_PROJECT_ID_BY_SLUG
- Add tests for include/omit behaviour (mirrors gitea_repo coverage)
- Update ERROR_MONITORING_PUBLIC_API.md to document both optional fields

No DB migration required: field is stored in existing context_json column.

Co-Authored-By: Paperclip <[email protected]>
2026-06-18 02:15:49 +00:00
David SantosandPaperclip be735a16b6 feat(tools): add fleet error reporting audit script (BIT-25194)
CI / Test ingest-api (push) Successful in 2m18s
CI / Test api (push) Successful in 2m24s
CI / Lint and typecheck admin-ui (push) Successful in 3m14s
CI / Validate Docker build (push) Successful in 12m14s
Weekly routine that queries errors.bitreport.pt for each expected slug,
checks freshness against a configurable threshold, and creates Paperclip
correction issues for silent or stale reporters. Reads config from
/etc/paperclip/paperclip-fleet-error-audit.env.

Paperclip-Task-Id: BIT-25194
Co-Authored-By: Paperclip <[email protected]>
2026-06-15 07:21:16 +00:00
tiago-nevesandPaperclip 050a380230 fix(admin-ui): proxy /api/error-monitoring/* to Fastify API (BIT-25083)
CI / Test ingest-api (push) Successful in 1m51s
CI / Test api (push) Successful in 1m50s
CI / Lint and typecheck admin-ui (push) Successful in 2m15s
CI / Validate Docker build (push) Successful in 7m29s
Next.js catches /api/* before Fastify, causing 404 on resolve-fixed-patterns.
Add rewrite so external callers (error-loop via CRM_RESOLVE_API_URL) reach
the hub Fastify API on port 3200 via the canonical errors.bitreport.pt URL.

Paperclip-Issue: BIT-25083
Co-Authored-By: Paperclip <[email protected]>
2026-06-14 02:23:41 +00:00
spark bebbfb3e57 Merge pull request 'feat(hub): add resolve-fixed-patterns endpoint for CRM routing parity (BIT-25072)' (#11) from task/BIT-25072-resolve-fixed-patterns into master
CI / Test ingest-api (push) Successful in 2m52s
CI / Test api (push) Successful in 2m53s
CI / Lint and typecheck admin-ui (push) Successful in 3m14s
CI / Validate Docker build (push) Successful in 12m41s
feat(hub): add resolve-fixed-patterns endpoint for CRM routing parity (BIT-25072)
2026-06-14 02:04:22 +01:00
David Santos 7fe045d314 feat(hub): add resolve-fixed-patterns endpoint for CRM routing parity (BIT-25072)
CI / Test ingest-api (pull_request) Successful in 2m12s
CI / Test api (pull_request) Successful in 2m12s
CI / Lint and typecheck admin-ui (pull_request) Successful in 2m51s
CI / Validate Docker build (pull_request) Successful in 15m33s
POST /api/error-monitoring/resolve-fixed-patterns — resolves hub incidents
matching known-fixed/transient patterns from config/resolveFixedPatterns.ts.
Fixes 404 from run-error-loop-with-resolve.sh when CRM_RESOLVE_API_URL points
to the hub (CRM module removed in BIT-24199; hub now owns all error monitoring).

Patterns file is extensible; initial set covers Galera/WSREP transients,
Google API backendError, session_write_close cascades, and storage COMMIT noise.

Paperclip-Issue: BIT-25072
Paperclip-Agent: tiago-neves
2026-06-13 22:36:56 +00:00
spark 1181093739 Merge pull request 'docs(deploy): add .env runtime preservation rule (BIT-25008)' (#10) from task/BIT-25008-env-preservation into master
CI / Test ingest-api (push) Successful in 1m4s
CI / Test api (push) Successful in 2m3s
CI / Lint and typecheck admin-ui (push) Successful in 2m28s
CI / Validate Docker build (push) Successful in 13m22s
2026-06-11 17:31:48 +01:00
David SantosandPaperclip 2b8976551f docs(deploy): add .env runtime preservation rule (BIT-25008)
CI / Test ingest-api (pull_request) Successful in 2m7s
CI / Test api (pull_request) Successful in 2m11s
CI / Lint and typecheck admin-ui (pull_request) Successful in 3m21s
CI / Validate Docker build (pull_request) Successful in 15m49s
Adds .cursor/rules/bitreport-env-preservation.mdc enforcing DEPLOY_STANDARD.md §3.1.

Co-Authored-By: Paperclip <[email protected]>
2026-06-11 16:25:57 +00:00
spark 8bb129ac77 Merge pull request 'docs(deploy): add .env runtime preservation rules (BIT-25005)' (#9) from task/BIT-25008-env-preservation into master
CI / Test ingest-api (push) Successful in 1m29s
CI / Test api (push) Successful in 56s
CI / Lint and typecheck admin-ui (push) Successful in 2m37s
CI / Validate Docker build (push) Successful in 21m52s
docs(deploy): add .env runtime preservation rules (BIT-25005)
2026-06-11 17:13:56 +01:00
David Santos f19ff03dd6 docs(deploy): add .env runtime preservation rules (BIT-25005)
CI / Test ingest-api (pull_request) Successful in 1m35s
CI / Test api (pull_request) Successful in 2m14s
CI / Lint and typecheck admin-ui (pull_request) Successful in 3m1s
CI / Validate Docker build (pull_request) Successful in 24m7s
Propagate DEPLOY_STANDARD.md §3.1: add warning that cp .env.example .env is
only for initial bootstrap, prohibit overwriting existing prod .env, mandate
PRODUCTION_ACCESS_SYNC_LOG entries for ER_MYSQL_* changes.

Paperclip-Task: BIT-25008
2026-06-11 15:37:24 +00:00
spark 47f77e85de Merge pull request 'feat(hub): retire WDMI projects from error reporting (BIT-24704)' (#8) from task/BIT-24704-retire-wdmi into master
CI / Test ingest-api (push) Successful in 14m57s
CI / Test api (push) Successful in 19m18s
CI / Lint and typecheck admin-ui (push) Successful in 20m37s
CI / Validate Docker build (push) Failing after 11m9s
Merge BIT-24704: retire WDMI projects from error reporting

Revokes all WDMI-family ingest keys, deactivates collector sources,
and deletes project rows. ingest-api now returns 401 for retired slugs.

Deploy issue: BIT-24705
2026-06-08 15:44:48 +01:00
David SantosandCursor 8773f12b25 feat(hub): retire WDMI projects from error reporting (BIT-24704)
CI / Validate Docker build (pull_request) Failing after 12m46s
CI / Lint and typecheck admin-ui (pull_request) Failing after 13m16s
CI / Test api (pull_request) Failing after 13m20s
CI / Test ingest-api (pull_request) Successful in 15m35s
Block ingest for retired WDMI slugs, purge project data via migration,
remove WDMI runbooks, and add offboard-project helper for future retirements.

Co-authored-by: Cursor <[email protected]>
2026-06-08 14:26:06 +00:00
1sonhador ea41eb2205 ci: quote Gitea workflow YAML trigger keys as 'on'
CI / Test ingest-api (push) Successful in 30s
CI / Test api (push) Successful in 34s
CI / Lint and typecheck admin-ui (push) Successful in 1m11s
CI / Validate Docker build (push) Successful in 3m59s
CI / Test ingest-api (pull_request) Successful in 25s
CI / Test api (pull_request) Successful in 29s
CI / Lint and typecheck admin-ui (pull_request) Successful in 57s
CI / Validate Docker build (pull_request) Successful in 3m43s
2026-05-01 02:40:17 +01:00
spark 3ae3ac4fd1 Merge pull request 'feat(ingest-api): export error_hub_* Prometheus metrics (BIT-4932 / BIT-4903)' (#6) from task/BIT-4932-error-hub-prometheus-metrics into master
CI / Test ingest-api (push) Successful in 34s
CI / Test api (push) Successful in 39s
CI / Lint and typecheck admin-ui (push) Successful in 1m25s
CI / Validate Docker build (push) Successful in 5m24s
2026-04-21 07:42:41 +01:00
David Santos b7cbf528ee ingest-api: export error_hub_* Prometheus metrics for hub freshness alerts
CI / Test ingest-api (pull_request) Successful in 38s
CI / Test api (pull_request) Successful in 43s
CI / Lint and typecheck admin-ui (pull_request) Successful in 1m30s
CI / Validate Docker build (pull_request) Successful in 5m45s
Join er_projects in ingest auth to expose lowercase project slug. Record
error_hub_last_event_timestamp from stored events occurred_at and
error_hub_ingest_failures_total on HTTP 500 batches (BIT-4903 / BIT-4932).

Add integration assertion when ERROR_REPORTING_TEST_DATABASE_URL is set.

Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-4932
Paperclip-Run: 00b93610-8794-4264-81a9-6f4cb39a9d8d
Made-with: Cursor
2026-04-21 05:08:42 +00:00
spark 988b4c57a4 Merge pull request 'chore: add CONTRIBUTING and CODEOWNERS baseline (BIT-3492)' (#5) from task/BIT-3492-tier2-contributing-codeowners into master
CI / Test ingest-api (push) Successful in 25s
CI / Test api (push) Successful in 29s
CI / Lint and typecheck admin-ui (push) Successful in 1m10s
CI / Validate Docker build (push) Successful in 3m39s
2026-04-17 20:44:37 +01:00
David Santos 87e563f9c5 chore: add CONTRIBUTING and CODEOWNERS baseline
CI / Test ingest-api (pull_request) Successful in 27s
CI / Test api (pull_request) Successful in 31s
CI / Lint and typecheck admin-ui (pull_request) Successful in 1m1s
CI / Validate Docker build (pull_request) Successful in 3m46s
Paperclip-Agent: Diana Neves (urlKey diana-neves; id 4427016d-7e8f-46e9-9694-3d062e78cc3a)
Paperclip-Issue: BIT-3492
2026-04-16 16:50:58 +00:00
David Santos 7daa867374 chore(lab): sync working tree from Paperclip execution host (10.10.50.17)
CI / Test ingest-api (push) Has been cancelled
CI / Test api (push) Has been cancelled
CI / Lint and typecheck admin-ui (push) Has been cancelled
CI / Validate Docker build (push) Has been cancelled
2026-04-16 10:24:33 +00:00
David Santos 2d93c4a3fc Align web and admin-ui on Next 15.5 + React 19.2 (BIT-2516)
CI / Test ingest-api (push) Has been cancelled
CI / Test api (push) Has been cancelled
CI / Lint and typecheck admin-ui (push) Has been cancelled
CI / Validate Docker build (push) Has been cancelled
Pin matching versions in web/ and admin-ui/, document the decision and
Node requirement in README, and ignore TypeScript build info artefacts.

Made-with: Cursor
2026-04-12 19:53:18 +00:00
David Santos 1099cbb724 collector-worker: bound ingest POST with INGEST_PUSH_TIMEOUT_MS (BIT-2600)
CI / Test ingest-api (push) Has been cancelled
CI / Test api (push) Has been cancelled
CI / Lint and typecheck admin-ui (push) Has been cancelled
CI / Validate Docker build (push) Has been cancelled
Add AbortController timeout to pushEventsToIngest (error ingest_push_timeout),
env INGEST_PUSH_TIMEOUT_MS (default 60s, minimum 1s), Vitest coverage, and
compose/env.example documentation.

Made-with: Cursor
2026-04-12 11:51:03 +00:00
David Santos b29f72bef4 feat(api): BIT-2601 rate-limit typing, login preset, and rejection metrics
CI / Test ingest-api (push) Has been cancelled
CI / Test api (push) Has been cancelled
CI / Lint and typecheck admin-ui (push) Has been cancelled
CI / Validate Docker build (push) Has been cancelled
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
2026-04-12 11:29:31 +00:00
David Santos 6c22dc8bb9 ingest-api: serialize idempotent ingest to fix SQLSTATE 23000 races
CI / Test ingest-api (push) Has been cancelled
CI / Test api (push) Has been cancelled
CI / Lint and typecheck admin-ui (push) Has been cancelled
CI / Validate Docker build (push) Has been cancelled
Concurrent POSTs with the same Idempotency-Key could pass the initial
SELECT and collide on INSERT into er_ingest_idempotency (unique on
ingest_key_id + idempotency_key), surfacing ER_DUP_ENTRY and risking
duplicate occurrences. Acquire a per-key MySQL named lock before the
idempotency read; on duplicate insert, roll back and replay the stored
response. Document 503 idempotency_busy when GET_LOCK times out.

Adds an integration test for parallel identical idempotent requests (BIT-2530).

Made-with: Cursor
2026-04-12 10:34:15 +00:00
David Santos 78003b001d chore(errors): incremental tech debt — rate-limit typings, legacy web on Next 15
CI / Test ingest-api (push) Has been cancelled
CI / Test api (push) Has been cancelled
CI / Lint and typecheck admin-ui (push) Has been cancelled
CI / Validate Docker build (push) Has been cancelled
- api: Align rate-limit plugin docs with actual store (in-memory unless wired in
  index); type errorResponseBuilder context; augment FastifyRequest with optional
  ingest_token_id instead of casting to any.
- web: Upgrade to Next 15 / React 19; add ESLint 9 flat config, tsconfig,
  next-env.d.ts; outputFileTracingRoot so file tracing stays within this product tree.

Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-2479
Paperclip-Run: e3292ca4-a7b9-42f1-83ca-bc3d78906532
2026-04-12 09:23:04 +00:00
David Santos 0bd13bac5b feat(ci): implement Gitea Actions CI/CD pipeline
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
2026-04-12 09:23:04 +00:00
David Santos 14df06dca3 Align api Fastify range with ingest-api (BIT-2517).
Set fastify to ^4.28.1 in api/package.json and sync the lockfile
metadata. npm run build && npm test passed for api and ingest-api.

Made-with: Cursor
2026-04-12 08:37:08 +00:00
David Santos 228d97db78 fix(admin-ui): keep dashboard totals from stats summary
Fetch stats summary first and tolerate trend/recurrence failures with Promise.allSettled so KPI totals no longer fall back to the 500-row incidents list cap.
2026-04-10 23:25:40 +00:00
David Santos 5fede9ddd9 fix(admin-ui): derive dashboard KPI row from stats summary aggregates
Top KPI cards used the paginated incidents list, so totals stuck near the API list cap. When operational stats load, sum byProject rollups from GET /v1/stats/summary instead.

Paperclip-Issue: BIT-2202
Paperclip-Run: 4c8f9b0e-4283-4fd7-9c20-f032f14f3719
2026-04-10 23:00:26 +00:00
David Santos 1533b359df docs: add MONITORING.md hub entry point linked to fleet index (BIT-1949)
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
2026-04-09 21:58:41 +00:00
David Santos 6f991a85c4 docs: add hub runbook index (docs/runbooks/README.md)
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
2026-04-09 21:54:39 +00:00
spark 8eb0196400 Merge pull request 'feat(hub): php-error bridge + gitea_repo on recent-errors (BIT-1541, BIT-1291)' (#4) from feat/php-error-bridge-and-gitea-repo into master
Reviewed-on: #4
2026-04-08 19:34:15 +01:00
spark 0e4d359c09 Merge branch 'master' into feat/php-error-bridge-and-gitea-repo 2026-04-08 02:00:27 +01:00
David Santos ab992382bc fix(deploy): restart Fastify API on webhook promote + git safe.directory
BIT-1599 follow-up: recent-errors changes live in api/; restart
bitreport-error-reporting-api.service alongside other units.

Register ER_REPO_ROOT as a safe directory when root runs git against a
tree owned by error-reporting (avoids dubious ownership failure on
write-version-json / verify).

Paperclip: BIT-1599
Made-with: Cursor
2026-04-08 00:56:12 +00:00
David Santos 6e5d3ca2fc Merge branch 'feat/client-gitea-repo-context' (BIT-1599 php-error bridge + recent-errors gitea_repo) 2026-04-08 00:49:04 +00:00
David SantosandPaperclip 17781da9ec feat(api): expose gitea_repo on recent-errors rows (BIT-1291)
Extract gitea_repo from context_json and include it as a top-level field
on each row returned by GET /api/error-monitoring/recent-errors.
Supports gitea_repo, giteaRepo, repo_full_name, and repository keys.

Added unit tests covering the include and omit cases.

Paperclip-Issue: BIT-1291
Co-Authored-By: Paperclip <[email protected]>
2026-04-08 00:48:43 +00:00
David SantosandPaperclip f8c401a990 feat(admin-ui): add POST /api/error-monitoring/php-error bridge (BIT-1541)
Translates CRM-shaped ErrorMonitoringReporter payloads (project_slug,
gitea_repo at top level) to ingest-api /v1/ingest/events format.  Both
routing fields are promoted into the event context so they are persisted
in context_json and surfaced by GET /api/error-monitoring/recent-errors,
unblocking ERRSIG routing validation for CasamentoWeb.

Auth: X-Error-Monitoring-Key is forwarded as Bearer to the ingest-api;
the key must be registered in er_ingest_keys for the target project.

Paperclip-Issue: BIT-1541
Co-Authored-By: Paperclip <[email protected]>
2026-04-08 00:48:43 +00:00
Peter Spark a51b3e987a feat(clients): optional project_slug and gitea_repo on ingest context
PHP + Node reporters read ERROR_REPORTING_* env; ingest-api tests run contract on clients/.

Paperclip-Agent: 11179220-3cec-4f0f-880d-2771ff64fce8
Paperclip-Issue: BIT-1310
Paperclip-Run: 35ce1c21-9862-4c60-8b58-441d53b4b3bd
2026-04-07 02:12:55 +00:00
spark 54645842f7 feat(clients): support project_slug and gitea_repo metadata
Add optional routing metadata support in official clients.
2026-04-06 23:00:57 +01:00
David Santos ba7a971bc1 feat(clients): support project_slug and gitea_repo routing metadata
Extend official Node/PHP reporter clients to attach optional project routing metadata (`project_name`, `project_slug`, `gitea_repo`) via env/options so product repos can emit deterministic ERRSIG routing context at source.
2026-04-06 21:59:01 +00:00
Peter Spark 6ea0dce549 docs(devops): BIT-1044 runbook — SSH route vs pubkey failure modes
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
2026-04-05 23:05:32 +00:00
Peter Spark 06c77c429f docs(devops): link BIT-1079 from Importer SSH runbook (BIT-1044)
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
2026-04-05 22:51:29 +00:00
Peter Spark 0c451deb57 docs(runbook): BIT-1020 — clarify §6.1 links to docs/RUNBOOK_TRIAGE.md
§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
2026-04-05 22:34:17 +00:00
Peter Spark fea3f35fe3 docs(runbook): WDMI feed upload §4.1 maps BIT-1020 close criteria
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
2026-04-05 22:30:34 +00:00
Peter Spark 24270a9350 docs(runbook): WDMI feed upload §4 — BIT-1032 commit + per-retry timeout note
Reference WDMI_UBUNTU 83a71672 (CURLOPT_TIMEOUT escalation, hub payload_md5).

Paperclip-Issue: BIT-1032
Paperclip-Run: ed9b9dcb-e7c1-4cc7-91ce-496d130a5212
2026-04-05 22:29:31 +00:00
Peter Spark 700493d95f docs(devops): BIT-1044 isolation checks and verify failure hints
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
2026-04-05 21:20:25 +00:00
Peter Spark c8422fa10f docs(devops): runbook and verify script for Importer SSH (BIT-1044)
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
2026-04-05 19:27:40 +00:00
Peter Spark 410cd7e0aa feat(hub): expose occurred_at on recent-errors for CRM deploy verification
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
2026-04-05 19:15:22 +00:00
Peter Spark 50282ab4dd docs(runbook): BIT-1020 — WDMI_UBUNTU canonical mitigations in feed upload §4
- §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
2026-04-05 18:42:44 +00:00
Peter Spark 6a778a706a docs(runbook): BIT-922 §5.27 — point operators to BIT-1020 canonical thread
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
2026-04-05 18:27:11 +00:00