Commit Graph
62 Commits
Author SHA1 Message Date
gadgethd a3d86ea52a Preserve device proof when an operator map also references the grant 2026-12-03 17:31:17 +00:00
UKMesh Readiness 2fae3b52bb Size the regional rebuild for the verified 92-day corpus 2026-12-02 22:11:20 +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 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 004b89837d Restore interrupted DEV fixtures and bound LAN exposure 2026-11-24 00:17:12 +00:00
Codex 22aa187bee Prioritize durable MQTT acknowledgements and expose broker backlog 2026-11-18 10:39:45 +00:00
Codex ed57cf4a83 Make remote GPU propagation the lean HopReach default 2026-11-17 22:40:01 +00:00
Codex 7dea9dbac7 Allow bounded PostgreSQL bursts on the four CPU runtime 2026-11-17 15:44:33 +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 42698d26a2 Compress full-page WAL images in the lean PostgreSQL default 2026-11-17 04:58:10 +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 22ddb99928 Tune shared database scans and bound learning candidates 2026-11-16 22:24:49 +00:00
Codex 74215628ac Yield snapshot cache weighing and bound database memory 2026-11-16 20:18:08 +00:00
Codex a13aa0ff88 Use one path worker by default and structure progress logs 2026-11-16 12:54:06 +00:00
Codex f43c6df2b8 Separate DEV delivery controls from companion MQTT traffic 2026-11-15 07:06:19 +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
Codex 7896969abf docs(setup): align candidate onboarding and deployment prerequisites 2026-11-12 11:14:20 +00:00
Codex bb79103880 perf(mqtt): expose cache bounds and retain measured minute sweeps 2026-11-12 09:48:22 +00:00
Codex 68db992912 fix(mqtt): keep broker correlation limits finite and observable 2026-11-12 08:54:24 +00:00
Codex 13111ee992 Flush durable singleton packets without a timer wait and retain turn coalescing 2026-11-12 07:26:09 +00:00
Codex b8572800e4 build(dev): qualify local fixtures and add baseline tooling 2026-11-12 03:41:52 +00:00
ben 7fc66a0887 docs(env): document observer webhook and packet identity authority 2026-11-12 02:01:03 +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
ben 972d2ad75e chore(infra): remove dead compose/health-check/script assets and stale config
- delete compose.phase4.yml and docker-compose.infra-client.yml (no live path)
- delete unmounted health-check app.js/styles.css and three unreferenced scripts
- drop the retired ML env block and duplicate receipt key
- document OWNER_COOKIE_SECRET and GRAFANA_ADMIN_PASSWORD, fix example CORS
- remove the non-existent mosquitto-exporter scrape job and alerts
- delete the duplicate nginx .mjs location and stale proxy addresses
2026-11-12 01:51:11 +00:00
gadgethd 36f3741b74 Reconcile audited performance and correctness fixes with current main 2026-11-01 14:33:49 +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
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 f6cba55a90 Add default-off regional scoping to API and live map 2026-10-25 01:19:23 +00:00
Hermes Agent 9c65605515 Merge remote-tracking branch 'origin/main' into fix/public-decrypt-channels
# Conflicts:
#	docker-compose.yml
2026-10-21 00:46:12 +01:00
Hermes Agent 9b77aac103 fix(security): gate channel plaintext to public channels
UKM-C-02: every key in MESHCORE_CHANNEL_SECRETS was publishable by name via
/feed/messages, and packet detail returned payload.decrypted for any hash.
Committed PUBLIC_CHANNELS remain public; env-supplied secrets are now
confidential unless their name is explicitly listed in
PUBLIC_DECRYPT_CHANNELS. The feed route 404s for non-public names, the
history query fails closed, and packet detail strips decrypted/_summary
unless the channel hash is public.
2026-10-21 00:45:29 +01:00
Hermes Agent 48fb91acda chore(recovery): capture deployed 2026-10-20 working tree
Exact snapshot of the tree that produced the running images (HEAD 1f94bd8)
including the 199 uncommitted/untracked production changes: regions, owner
packet sharing, public feed, RAM ingest, privacy rematerialisation, path-beta
updates, migrations 052-060, tests and deploy scripts.

Excluded: .env*/knowledge.md/.private-config (gitignored secrets); runtime
backup receipts restored to HEAD; mosquitto ACL/passwd are gitignored (kept
in the private pre-change snapshot). No functional changes.
2026-10-20 11:37:34 +01:00
gadgethd 1d243222ef chore(sync): reconcile with production deploy tree — features, docs, plans gitignored
Bring main up to date with the live UKMesh production tree, reconciled
per-file (tree-wins for deployed features; main-wins where main evolved
past the tree's lineage; hand-merges for mixed files). Verified locally
on the deploy host: backend + frontend typechecks, backend unit suite
(543 pass / 0 fail), frontend suite (147 pass / 0 fail), OpenAPI
contract check, frontend production build, scripts typecheck.

Highlights:
- Deployed features land: tags + recent tags, owner public feed,
  Viterbi path prewarm and prior rebuilds, region participation,
  owner packet-sharing JWT scope, pathing docs, README updates.
- Main-side hardening retained: CI RAM steps + smoke cleanup trap,
  hardened scripts, gitleaks/logging rules, stale-MQTT observer
  protections, alert-receiver queue module, health-status refactor
  with tree retention additions (owner_packet_share_deliveries +
  public_feed_deliveries @30d, node_status_samples @30d — matching
  live TimescaleDB policies).
- Credential-generation client close restored on the tree's ownerAccess
  so the operator revocation tool (owner-auth:revoke) keeps working.
- Migrations renumbered to follow main's 058/059 ledger migrations:
  055_public_feed, 060_region_scope_participation,
  061_packet_share_owner_scope_and_jwt; migration-registry test
  assertions updated to the final numbering.
- Planning/report artifacts removed from the repo; local plans/, *.bak*
  patterns gitignored (deploy tree tidied to match).
2026-10-14 01:48:11 +00:00
gadgethd 21b1eda80a Finish RAM ingestion recovery and bounded drain 2026-10-11 17:23:14 +00:00
gadgethd 91cc3c29c5 fix(ram): repair identity, lock, handoff and writer recovery (F01 F02 F05 F06 F09 F10 F11 F12 F14 F15 F16) 2026-10-11 16:58:31 +00:00
gadgethd ebab933b50 Merge repaired perf ingest into RAM stack (#122 review fixes) 2026-10-11 16:35:37 +00:00
gadgethd cbf78a8a6c fix(ingest): align replay identity and gate shared sessions (F03 F04 F14 F15) 2026-10-11 16:18:39 +00:00
gadgethd 693d481518 feat(ingest): RAM-first ingestion prototype (opt-in, durable default)
Adds MQTT_INGEST_MODE=ram: validated+classified packets are admitted to a
bounded Redis Stream and acknowledged at admission; an in-process writer
consumes the stream via a consumer group and persists batches through the
same SQL as the durable path (batch size or max-age flush trigger).

- admission is strict and fail-closed: queue bounds refuse rather than drop,
  store unavailable = no acknowledgement (broker redelivers)
- commit handoff: XACK -> XDEL -> commit marker; observation_id is generated
  at admission and carried through the batch INSERT for a stable identity
  across the RAM -> PostgreSQL transition
- failed commits leave entries un-acked (PEL) and retry with backoff; writer
  restarts reclaim the PEL (own 0 reads + XAUTOCLAIM)
- recent-read endpoints merge pending stream entries (public, deduplicated by
  hash) so live views do not lag the flush window
- durable mode is the default and is behaviourally unchanged (same SQL via
  persistEntriesCore; full suite green: 434/434)
- new metrics: queue depth/bytes/age, admissions, commit latency/visibility
  latency, retries/reclaims
2026-10-11 13:34:13 +00:00
gadgethd d51a36be0c docs(ingest): document MQTT_INGEST_CONNECTIONS/SHARE_GROUP/FLUSH_MS; make queue default 1000 2026-10-11 05:21:19 +00:00
gadgethd b7bd60f629 fix(owner): preserve authorization inventory across reset 2026-08-27 23:48:01 +00:00
gadgethd 1d6b9ae1ff perf: retire raw multibyte chart decoding 2026-08-10 00:30:00 +00:00
gadgethd 9bb7a85552 fix: allow full WebSocket canary completion 2026-08-09 20:58:05 +00:00
gadgethd 4d9872768a perf: reduce monitoring load and retire path history 2026-08-09 19:37:59 +00:00
gadgethd dbe1d304ff perf: publish path learning deltas 2026-08-09 15:09:18 +00:00