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.
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>
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.
* 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.
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.
- 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
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.
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.
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