Commit Graph
112 Commits
Author SHA1 Message Date
gadgethd e09a837fdb Read bounded regional packet ranges in physical heap order 2026-12-05 01:10:54 +00:00
gadgethd 506335bee8 Probe the health-check JSON endpoint without starting another Node runtime 2026-12-04 22:09:46 +00:00
gadgethd 99bf7994b2 Enroll verified observer devices through the portal and isolated broker worker 2026-12-03 17:11:35 +00:00
UKMesh Readiness 2fae3b52bb Size the regional rebuild for the verified 92-day corpus 2026-12-02 22:11:20 +00:00
UKMesh Readiness 107693e4b3 Retain region decode hints under load and budget the worker CPU 2026-12-01 06:13:25 +00:00
UKMesh Readiness 03237b4385 Probe live exporter listeners and reserve Redis exporter check headroom 2026-12-01 04:00:48 +00:00
gadgethd 2d25316446 Reserve path resolution capacity for foreground reads 2026-12-01 00:58:51 +00:00
gadgethd 2d03c3812b Verify RF fallback and decouple DEV monitoring 2026-11-27 20:27:22 +00:00
gadgethd eab389c387 Merge current main into ukmesh-dev
Adapt main fixes to DEV ownership of split MQTT intake, private projections, lean Compose, and on-demand charts. Preserve deployed migration identities and standalone owner sessions.
2026-11-27 20:21:28 +00:00
gadgethd d9611ad549 Protect DEV dependencies, replay storage and WebSocket capacity 2026-11-27 18:58:27 +00:00
gadgethd fde49a5850 Split durable MQTT ingest from the HTTP and WebSocket API 2026-11-27 17:53:22 +00:00
gadgethd b9864abe0c Reload MQTT ingest passwords on the persistent transport 2026-11-27 17:26:26 +00:00
gadgethd f0ae834a32 Isolate static origins and owner authorization startup 2026-11-27 17:08:58 +00:00
hermes-gadgetandgadgethd 54bc4f1444 fix(deploy): reconcile VPS configuration drift into main
The running stack carried uncommitted config: stats budget variables, the tropo-data website mount, and Grafana 12.4.15. Commit them as the source of truth, keep a 300 s budget default so a fresh deploy cannot regress to the 60 s abort, and pin Grafana to the digest that is actually running.

Co-authored-by: gadgethd <ben@ukmesh.com>
2026-11-27 17:07:04 +00:00
gadgethd a8dd07279e Keep DEV chart refreshes within their analytics budget
Give multibyte fact coverage and backfill the same separate limits as PR #276. Aggregate identical packet summaries once before classifying channels, preserving the complete observation counts and chart limits.
2026-11-27 15:39:53 +00:00
gadgethd 97e3ee6d4b Build and run the guided Health Check from its reviewed fork 2026-11-24 02:12:13 +00:00
gadgethd 703dee0b19 Bound PostgreSQL and worker memory for the lean DEV VM 2026-11-22 04:50:59 +00:00
Codex 6ff0fbef92 Emit an explicit flush default for guarded Compose consumers 2026-11-18 10:50:59 +00:00
Codex 22aa187bee Prioritize durable MQTT acknowledgements and expose broker backlog 2026-11-18 10:39:45 +00:00
hermes-gadget 8e091a41a0 feat(tagger): local UKMesh tagger backend with TypeSafe/Jev fallback (#253)
* feat(tagger): local UKMesh tagger backend with TypeSafe/Jev fallback

Port of the tagger that has been running in production from the deployment
tree but existed in no commit: it was an uncommitted local modification on
the UKMesh VPS, so any deploy from origin/main would have silently reverted
tagging to the TypeSafe cloud call.

Changes carried over verbatim from the deployed tree:

- `TAGGER_BACKEND` selects the backend: `local` (default) calls the UKMesh
  tagger (`ukmesh-tagger/run-base4`) on the pinned GPU lane through the GPU
  gateway; `jev` keeps the original TypeSafe call as a rollback lever.
- Local responses are reshaped into the same `answers` structure `flatten()`
  already consumes, so tag storage is unchanged.
- `TAGGER_URL` / `TAGGER_MODEL_ID` / `TAGGER_API_KEY` (or
  `TAGGER_API_KEY_FILE`) configure the local endpoint; startup fails loudly
  when the selected backend has no key instead of silently tagging nothing.
- Every `message_tags` reference is qualified as `mesh.message_tags`, matching
  the schema move (migration 078). Unqualified references depended on the
  connection search_path.
- `api_tag()` now takes `(sender, message)` and builds the state string itself.

`docker-compose.yml` passes the four `TAGGER_*` variables through to the
tagger-worker service with the same defaults the deployment uses.

Verified: `python3 -m py_compile` clean; `docker compose config -q` clean;
`test_tagger_candidates.py` collects (8 skipped without a database).

* test(tagger): fixture mirrors the deployed schema (mesh.message_tags)

The candidate-paging fixture built `public.message_tags`, which is exactly the
stale duplicate the qualified worker exists to stop writing to. Migration 121
moved the table to `mesh`; the fixture now creates `mesh.message_tags` and
addresses it fully qualified, so the test asserts the real target instead of
the compatibility name.

* test(tagger): follow api_tag's (sender, message) signature in the revocation case

api_tag now takes the message parts rather than a pre-rendered state string, so
the side_effect stub must accept two arguments. Passing one raised TypeError
instead of the intended RuntimeError and the assertion read as a tagging bug.
2026-11-18 02:03:06 +00:00
Codex ed57cf4a83 Make remote GPU propagation the lean HopReach default 2026-11-17 22:40:01 +00:00
Codex 6a9d0a0615 Run lean statistics queries one at a time 2026-11-17 11:26:08 +00:00
Codex 52f37250e1 Keep regional bulk reads from replacing interactive buffers 2026-11-17 08:46:40 +00:00
Codex 04c70b5626 Bound region query scratch memory at its settings owner 2026-11-17 05:40:26 +00:00
Codex 05205fa543 Bound regional scans and stagger owned fixture maintenance 2026-11-17 01:53:46 +00:00
Codex 0413738620 Scope analytics scan planning and refresh fixture statistics 2026-11-16 23:34:07 +00:00
Codex a13aa0ff88 Use one path worker by default and structure progress logs 2026-11-16 12:54:06 +00:00
Codex b8c7e50cdc Retain logs from every DEV service in the journal 2026-11-15 07:39:17 +00:00
Codex f43c6df2b8 Separate DEV delivery controls from companion MQTT traffic 2026-11-15 07:06:19 +00:00
Codex 411b83331e Check Alloy readiness without starting a second Go process 2026-11-15 04:52:44 +00:00
Codex 14f0f6b1e3 Pair local memory limits and bound Alloy's Go heap 2026-11-15 04:40:11 +00:00
Codex 8eb87e9810 Make lean resource and connection budgets the main defaults 2026-11-14 01:35:22 +00:00
Codex 959fe142ad fix(regions): supervise bounded privacy-certified snapshot repair 2026-11-12 11:55:49 +00:00
ben 5ef4b7bace chore(hopreach): publish and reference derived source v0.1.32-ukmesh.4
Upstream is already at its latest release (v0.1.32, 61efac0); the vendored
tree had drifted from the public corresponding-source tag. Publish the exact
current tree as v0.1.32-ukmesh.4 (58b2eb9) and update provenance, source-offer
and release references. No behaviour change.
2026-11-12 01:53:29 +00:00
ben d9f07bc38e chore(infra): fix monitor probe, trust split and stale config
- remove duplicate YAML key left by the deleted Mosquitto alerts
- probe mesh-health-check's real /api/bootstrap endpoint
- app/website nginx trust only their own Anubis edge
- use the default POSTGRES_USER for the tagger DB
- drop the unused Mosquitto 1883 listener and CORS/doc drift
2026-11-12 01:53:29 +00:00
hermes-gadget 75a1458be6 feat(observers): notify operator when a registration request arrives (#224)
Post every accepted observer registration to the operator Discord webhook configured by OBSERVER_REGISTRATION_WEBHOOK_URL. Delivery is fire-and-forget and never fails the public request.

Also fix the custom DNS lookup used by deliverWebhook: Node's autoSelectFamily requests every resolved address with all=true, and answering that call with a scalar address throws ERR_INVALID_IP_ADDRESS, so webhook delivery failed on the Node 26 base image.
2026-11-12 01:38:29 +00:00
hermes-gadget 763c6fe8b4 p2: switch packet identity readers to UID authority with hash rollback 2026-11-03 15:05:59 +00:00
gadgethd 80810c0c9f Resubscribe explicitly after MQTT recovery and allow durable shutdown 2026-11-01 21:16:28 +00:00
gadgethd 685e070a25 Normalize live observer timestamps and require delivery readiness 2026-11-01 21:02:19 +00:00
gadgethd 6ca461499c Resolve merged receiver config and identify the fixed CI channel fixture 2026-11-01 14:38:11 +00:00
gadgethd 36f3741b74 Reconcile audited performance and correctness fixes with current main 2026-11-01 14:33:49 +00:00
gadgethd 844f564905 fix(compose): give the health worker the verified-backup receipt paths, pin and mounts 2026-10-25 20:06:54 +00:00
gadgethd 078b417c49 Merge release/security-20261025; reconcile 61 conflicts and 19 findings
Port security remediation onto the newer main/VPS behavior. Preserve applied
migration names using exact checksum proof; retain durable ingest, egress,
worker recovery, telemetry normalization and newer main operational fixes.

Ledger: docs/reviews/20261025-merge-ledger.md
Validation: backend tsc/build; 708 tests, 0 fail, 3 DB skips; frontend
tsc/build; 166 tests, 0 fail, 10 opt-in browser skips; contract check;
confirmed-grant onboarding and isolated authenticated receiver fixtures.

Resolved paths:
- .env.example
- .github/workflows/ci.yml
- .gitignore
- .gitleaks.toml
- backend/package-lock.json
- backend/src/api/contracts.ts
- backend/src/api/routes.ts
- backend/src/api/routes/auditwave.integration.test.ts
- backend/src/api/routes/auditwave.performance.test.ts
- backend/src/api/routes/exports.test.ts
- backend/src/api/routes/misc.test.ts
- backend/src/api/routes/owner.ts
- backend/src/api/routes/ownerPacketSharing.test.ts
- backend/src/api/routes/regions.test.ts
- backend/src/api/routes/regions.ts
- backend/src/db/ownerAuth.ts
- backend/src/db/packetBatch.integration.test.ts
- backend/src/index.ts
- backend/src/metrics.ts
- backend/src/mqtt/client.ts
- backend/src/mqtt/envelopeSafety.test.ts
- backend/src/mqtt/envelopeSafety.ts
- backend/src/owner/ownerAccess.ts
- backend/src/owner/ownerLastHopPrewarm.test.ts
- backend/src/owner/ownerLastHopPrewarm.ts
- backend/src/owner/ownerRepository.ts
- backend/src/owner/packetShareForwarder.test.ts
- backend/src/owner/packetShareForwarder.ts
- backend/src/owner/packetShareRepository.integration.test.ts
- backend/src/owner/packetShareRepository.ts
- backend/src/owner/publicFeedForwarder.test.ts
- backend/src/owner/publicFeedForwarder.ts
- backend/src/owner/publicFeedRepository.ts
- backend/src/path-learning/rebuild.ts
- backend/src/ram/liveRead.ts
- backend/src/repositories/nodes.ts
- backend/src/spam/cluster.test.ts
- backend/src/spam/cluster.ts
- backend/src/spam/config.ts
- backend/src/spam/repository.ts
- backend/src/tools/rebuildRegionParticipation.ts
- backend/src/workers/alert-receiver.ts
- backend/src/workers/synthetic-monitor.ts
- backend/src/ws/server.ts
- backup-receipts/latest.json
- backup-receipts/latest.json.sig
- docker-compose.yml
- docs/openapi.yaml
- docs/operations.md
- docs/spam-detection.md
- frontend/playwright.config.ts
- frontend/src/components/Map/RegionsMap.tsx
- frontend/src/components/Map/regionOverlay.test.ts
- frontend/src/components/Map/regionOverlay.ts
- frontend/src/pages/RegionsPage.tsx
- frontend/src/pages/TopologyPage.browser.test.ts
- frontend/src/pages/regions-page.css
- frontend/src/pages/regionsModel.ts
- frontend/test/e2e/dashboard.spec.ts
- tagger-worker/Dockerfile
- vacuum-compressed-chunks.sh
2026-10-25 04:42:05 +00:00
gadgethd 882777eae7 Merge origin/main into deployed tree; reconcile all 52 conflicts
Preserve deployed behavior and adopt main fixes. Full per-file decisions and
checksum proof: docs/reviews/20261025-merge-ledger.md.

Resolved 52 paths:
- .env.example
- .gitignore
- backend/package.json
- backend/src/api/contracts.ts
- backend/src/api/routes/misc.ts
- backend/src/api/routes/owner.ts
- backend/src/api/routes/ownerPacketSharing.test.ts
- backend/src/api/routes/regions.test.ts
- backend/src/api/routes/regions.ts
- backend/src/db/index.ts
- backend/src/db/packetBatch.integration.test.ts
- backend/src/db/packetBatch.test.ts
- backend/src/db/packetBatch.ts
- backend/src/db/packetInput.ts
- backend/src/health/status.ts
- backend/src/health/statusIntegrity.test.ts
- backend/src/index.ts
- backend/src/metrics.test.ts
- backend/src/mqtt/client.ts
- backend/src/mqtt/statusTelemetry.test.ts
- backend/src/mqtt/statusTelemetry.ts
- backend/src/owner/ownerLastHopPrewarm.ts
- backend/src/owner/packetShareForwarder.ts
- backend/src/owner/publicFeedForwarder.test.ts
- backend/src/owner/publicFeedForwarder.ts
- backend/src/owner/publicFeedRepository.ts
- backend/src/ram/liveRead.ts
- backend/src/ram/liveStore.test.ts
- backend/src/ram/runtime.integration.test.ts
- backend/src/ram/writerRuntime.ts
- backend/src/repositories/nodes.ts
- backend/src/spam/cluster.test.ts
- backend/src/spam/cluster.ts
- backend/src/spam/config.ts
- backend/src/tools/rebuildRegionParticipation.ts
- backend/src/workers/alert-receiver.test.ts
- backend/src/workers/alertDeliveryQueue.ts
- backend/src/workers/privacy-rematerialization.ts
- backend/src/ws/server.ts
- backup-receipts/latest.json
- backup-receipts/latest.json.sig
- docker-compose.yml
- docs/openapi.yaml
- docs/spam-detection.md
- frontend/src/components/Map/RegionsMap.tsx
- frontend/src/components/Map/regionOverlay.test.ts
- frontend/src/components/Map/regionOverlay.ts
- frontend/src/pages/RegionsPage.tsx
- frontend/src/pages/regions-page.css
- frontend/src/pages/regionsModel.ts
- rf-coverage/config.ukmesh.yaml
- tagger-worker/Dockerfile

Validation: backend tsc; 673 tests, 670 pass, 0 fail, 3 DB skips; frontend
tsc/build; default frontend 166 tests, 0 fail (10 opt-in browser skips);
contract:check; fixture-only Compose config and adoption tests.
2026-10-25 04:30:19 +00:00
hermes-gadget 1c6d95d05c test(path-beta): give the worker-pool replacement budget room for a cold start 2026-10-25 04:19:50 +00:00
hermes-gadget 1fc8ec91ea Merge pull request #164 from gadgethd/burn/ukmesh-preheat-20261023
feat(owner): observable last-hop prewarm and a Compose adoption guard
2026-10-25 02:07:01 +00:00
hermes-gadget 418ba258e8 feat: report owner prewarm progress and guide Compose adoption repair 2026-10-25 01:50:28 +00:00
hermes-gadget b7a744ba53 merge: security remediation onto the production line
Combines the 11-commit security remediation with the five production
feature commits (message tags, region filters, observer tx counts,
region name probes, compose region list).

Conflict resolution:
- docker-compose: union of owner-share and public-feed env; public_feed_deliveries
  added to the retention targets; privacy-remat-worker service adopted from the
  remediation branch (already running in production).
- contracts/misc/db/openapi/tagger-worker: remediation side (privacy predicate,
  fenced re-read, overlap hashes) - it is the superset.
- vacuum-compressed-chunks.sh: kept the production-proven infra-compose
  resolution; the remediation branch version is a follow-up.
2026-10-25 01:33:02 +00:00
hermes-gadget f6cba55a90 Add default-off regional scoping to API and live map 2026-10-25 01:19:23 +00:00
gadgethd 0b6a352087 fix(release): separate trust anchors and key the export cache to visibility
Three unrelated trust-anchor defects:

- exports: /api/v1/exports/nodes.* set a 15-minute public cache with no
  visibility key. Add a generation-derived weak ETag, Vary, X-Visibility-
  Generation, optional v= with 412 + no-store on mismatch, 60s max-age, and a
  post-query generation re-read that downgrades mid-flight redactions. A
  generation read failure is 503 + no-store instead of a cached 200.
- release: keyless signing moved out of the image matrix into a sign job
  restricted to refs/tags/v*, behind the release-signing environment, with an
  in-script ref check as defence in depth. Branch dispatches still build.
- restore: the drill no longer copies the verify key into the receipt
  directory. Both sides require an out-of-band sha256 pin, reject a key inside
  the receipts tree (including symlinks), and fail closed on mismatch. Compose
  mounts the key from its own directory and passes the pin.

Docs updated for the new key layout and pin.

Audit: backend/src/api/routes/exports.ts:nodes-export:public-cache-not-keyed-to-visibility-generation
       supply-chain/release-workflow:keyless-signing-identity-not-bound-to-release-ref
       ukmesh/restore-receipt-verify-key-published-with-receipt
2026-10-23 16:41:26 +00:00