Commit Graph
263 Commits
Author SHA1 Message Date
hermes-gadget b6c7c60102 Document regions Phase B implementation and verification 2026-10-25 01:19:23 +00:00
hermes-gadget f6cba55a90 Add default-off regional scoping to API and live map 2026-10-25 01:19:23 +00:00
hermes-gadget ec84921830 Document UKMesh convergence evidence and operational handoff 2026-10-25 01:18:00 +00:00
hermes-gadget 69cc48a767 Monitor public privacy generation convergence without repair 2026-10-25 01:18:00 +00:00
hermes-gadget 2a29f7328a Expose broker publish denials and correct family triage 2026-10-25 01:17:27 +00:00
hermes-gadget 16490bb889 Merge pull request #151 from gadgethd/burn/ukmesh-ingest-20261023
Surface MQTT monitor failures and bound ingest SQL
2026-10-25 01:05:52 +00:00
hermes-gadget 9a80289ec3 Merge pull request #150 from gadgethd/burn/ukmesh-ci-20261023
ci: retry transient registry and apt build failures
2026-10-25 01:05:46 +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
hermes-gadget a542111fc7 docs(review): record green CI and RAM gate follow-up 2026-10-23 09:32:50 +01:00
hermes-gadget ec51e459dc docs: record CI retry verification and handoff 2026-10-23 09:09:54 +01:00
hermes-gadget 548b541cd9 docs(review): record ingest fixes, verification and activity evidence gap 2026-10-23 09:01:46 +01:00
hermes-gadget 0ada4674b3 fix(ingest): surface monitor failures and bound SQL execution 2026-10-23 08:58:06 +01:00
hermes-gadget a5bfa546af docs: record readiness ACL exception evidence and handoff 2026-10-23 08:53:29 +01:00
hermes-gadget c39452eb8f Merge remote-tracking branch 'origin/main' into burn/vacuum-backlog-20261022
# Conflicts:
#	backend/package.json
2026-10-22 22:12:49 +01:00
hermes-gadget 0a8cb97e4d Merge pull request #143 from gadgethd/burn/privacy-fence-20261022
Fix empty prefix cascade fences and add verified privacy convergence
2026-10-22 22:12:35 +01:00
hermes-gadget dc4ea77be1 Merge pull request #141 from gadgethd/burn/spam-rotating-ids-20261022
Fix rotating-ID spam gaps and stale campaign incident rows
2026-10-22 22:12:31 +01:00
hermes-gadget 92b717812a Merge remote-tracking branch 'origin/main' into burn/vacuum-backlog-20261022
# Conflicts:
#	REVIEW.md
#	backend/package.json
2026-10-22 22:11:53 +01:00
hermes-gadget c1087b6010 Merge remote-tracking branch 'origin/main' into burn/privacy-fence-20261022
# Conflicts:
#	REVIEW.md
#	backend/package.json
2026-10-22 22:10:38 +01:00
hermes-gadget 1ed3d4732d Merge remote-tracking branch 'origin/main' into burn/spam-rotating-ids-20261022
# Conflicts:
#	REVIEW.md
2026-10-22 22:10:25 +01:00
hermes-gadget 2f756be7c7 Merge remote-tracking branch 'origin/main' into burn/deploy-tree-rescue-20261022
# Conflicts:
#	.gitignore
#	REVIEW.md
2026-10-22 22:10:18 +01:00
hermes-gadget ce54edf5e5 docs: refresh MQTT performance completion evidence 2026-10-22 16:52:11 +01:00
hermes-gadget d4e07aa9f6 fix(spam): honor small campaign evidence budgets 2026-10-22 15:56:36 +01:00
hermes-gadget 02c2699c5c docs: verify MQTT performance handoff against current PR 2026-10-22 15:55:10 +01:00
hermes-gadget 767f37e042 fix(health): align vacuum backlog with PostgreSQL triggers 2026-10-22 15:34:22 +01:00
hermes-gadget 97a007af10 fix(privacy): ignore empty prefix cascades and add verified convergence 2026-10-22 14:24:23 +01:00
hermes-gadget f95ad42020 docs: record MQTT nodes performance proof and review 2026-10-22 14:14:50 +01:00
hermes-gadget d9461c2c1c fix(spam): detect small rotating-ID bursts and preserve campaign evidence 2026-10-22 14:11:10 +01:00
hermes-gadget eef1244eca perf(api): aggregate MQTT receiver counts before canonicalization 2026-10-22 14:10:57 +01:00
Hermes Agent af2ec56b0c test(e2e): defer owner live-poll lifecycle spec
Same main-only owner cadence as the session-polling spec; the deployed
client is authoritative in Stage 1. Fourth and final deferred E2E item.
2026-10-20 13:18:55 +01:00
Hermes Agent e9ad13ebb7 test(e2e): defer main-only virtualiser and owner-polling specs
Stage 1 keeps the deployed implementation authoritative. The measured-row
feed virtualiser and /api/owner/session cadence are main-only changes that
the reconciliation deliberately did not adopt; the specs assert them, so
mark them fixme and record both as Stage 2 items in docs/deferred-tests.md.
2026-10-20 13:03:40 +01:00
Hermes Agent 9fb5acc06e merge: reconcile deployed 2026-10-20 tree with origin/main
- Keeps every production behaviour from the deployed tree: public feed,
  owner packet sharing (including the Oct-12 publish/claim timeout fix),
  regions, privacy rematerialisation, RAM/durable ingest, owner last-hop
  prewarm.
- Takes main's additive work since the fork: ingest repair series, 1-byte
  path evidence, gitleaks ignore, dependabot pins, publicStatus,
  workloadPolicy and health diagnostics.
- Resolves 26 conflicts; per-file decisions recorded in the campaign
  DECISIONS.md and merge-proposal notes.
- Restores the two migrations missing from the deployed tree byte-exact
  (052_node_identity_packets_raw_columns, 055_message_tags) and defers
  main's unapplied 057 status-column migration to docs/deferred-migrations.
- Fresh-database bootstrap verified: base schema plus 60 migrations apply
  in order; a second run reports no pending migrations.
2026-10-20 11:59:02 +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 ed8bb6a7e7 docs(ingest): finalize F01-F17 paired integrity and resource evidence 2026-10-11 23:44:53 +00:00
Codex c02aa32fd9 fix(ram): verify F09/F14 headroom and F15/F16 runtime recovery
Bound encoded quarantine and Redis recovery memory, verify actual principals, loaded metrics, held PostgreSQL SIGTERM and retention/drain rollback. Close F01 enrichment waits and preserve F13 decrypted/JSON summary contracts. All 479 backend tests, typecheck/build, 11 ingest integration and strict 5 operational gates pass.
2026-10-11 22:56:17 +00:00
gadgethd c683acdec8 fix(ingest): enforce F01 public batches and F05/F12/F13 read parity
Expose the F16 credentialed public source for revocable CoreScope projections; preserve stable identities, generation fences and bounded overlap paging.
2026-10-11 22:26:54 +00:00
gadgethd 6ed4296e98 fix(ingest): close F06/F07 snapshot and historical handoff gaps 2026-10-11 21:27:25 +00:00
gadgethd 022b7c8a23 Report quarantined SQL poison and block unsafe RAM drain 2026-10-11 17:35:48 +00:00
gadgethd 21b1eda80a Finish RAM ingestion recovery and bounded drain 2026-10-11 17:23:14 +00:00
hermes-gadgetandgadgethd fa801dc004 fix: close ukmesh health and advert identity backlog gaps (#117)
* fix(backlog): close ukmesh health and advert identity gaps

* docs(review): record backlog round 2 pull request

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
2026-10-03 19:43:45 +01:00
hermes-gadgetandgadgethd 24206957bb feat(owner): land owner-controlled packet sharing (rescued VPS WIP) (#101)
* feat(owner): add owner-controlled packet sharing

* docs: record B3 packet-sharing handoff

* docs(api): regenerate openapi for packet-sharing routes

* test(db): extend migration registry expectation to 052-054

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
2026-10-01 00:39:40 +01:00
hermes-gadgetandgadgethd 029cc6ac33 fix(ops): ukmesh deploy/alert/stats hardening (#47 #54 #55 #57) (#104)
* test(viewshed): inject post-commit side-effect failures

* fix(deploy): rollback on unhealthy or mismatched sites

* fix(alerts): persist forwarding queue across restarts

* perf(stats): add per-network aggregate cutover controls

* docs: add Mission C5d handoff

* test(viewshed): correct side-effect marker cursor row sets

* fix(alerts): keep archive-only receiver live

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
2026-10-01 00:24:31 +01:00
b285cdb288 fix(security,ops): close ukmesh auth/users findings (#50 #51 #52 #53 #58) (#103)
* docs: add C5a mission handoff

* security: classify channel keys and baseline reviewed findings

* security: revalidate MQTT auth and revoke owner sessions

* test(ops): cover concurrent newuser grant updates

* fix(ops): preserve executable newuser test

* fix(ops): cover partial newuser rollback failures

* fix(owner): preserve password whitespace during login

* docs: add C5c mission handoff

* test(cache): drop stale authCache policy entry (cache removed by auth revalidation)

* docs: keep HANDOFF on current mission

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
Co-authored-by: hermes-gadget <284726080+hermes-gadget@users.noreply.github.com>
2026-10-01 00:09:44 +01:00
hermes-gadgetandgadgethd 4940c2e6b3 fix: ukmesh small batch — run-state policy, measured feed rows, /raw disposition (#102)
* fix(analysis): restore retired run-state policy (#301)

* fix(feed): measure UK feed virtual row heights (#303)

* docs(mqtt): document denied raw publish disposition (#269 #213)

* docs: hand off Mission B4 small batch

* ci: retrigger workflow after hung runner run

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
2026-09-30 23:49:51 +01:00
hermes-gadgetandgadgethd 5574d70139 fix: close High findings #43 + #45 — durable MQTT ingestion, bounded telemetry lifecycle (#100)
* fix(mqtt): ack QoS1 after durable persistence

* fix(retention): bound core telemetry lifecycle

* docs: add C5b durability handoff

* test(rules): 1m cadence for telemetry lifecycle alert windows so for: timers accumulate

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
2026-09-30 23:35:04 +01:00
hermes-gadgetandgadgethd f445a24467 fix: close High findings #42 + #46 — public status DTO, split-infra resolver (#99)
* fix(api): allowlist public node status fields

* fix(ops): resolve split infrastructure containers exactly

* docs: add C5a mission handoff

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
2026-09-30 23:19:31 +01:00
hermes-gadgetandgadgethd 27f1822e75 ops: owner-baseline auto-rebaseline (check tool + timer + reviewed refresh script) (#97)
* feat(ops): auto-rebaseline owner ACL inventory

* docs(ops): handoff owner baseline autorebaseline

* ops: add reviewed owner-authorization baseline refresh script

scripts/refresh-owner-baseline.sh regenerates the owner inventory baseline
with the running backend image, validates it against the live inventory
(fail-closed), backs up .env before repointing, and can recreate the backend.
It refuses to overwrite an existing baseline and keeps the previous file for
rollback. Adds the matching operations runbook section.

* test(ops): cover refresh baseline validation output

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
2026-09-30 23:00:21 +01:00
gadgethd 1d86e043a5 feat(tags): live message tags for feed + app
- tagger-worker: persistent retry queue (tagger_retry) so API outages cannot
  drop tags; overlap 20s->120s; only publicly-visible in-scope messages are
  sent to the API (visibility + network filter)
- backend: tags joined into /feed/messages, /packets/recent, /packets/:hash
  and the WS initial state; new GET /tags/recent for live enrichment; contract
  + openapi entries
- frontend: tag chips under the row meta line (feed + app), live 15s tag poll,
  Message tags section in the packet detail panel
2026-09-18 00:13:01 +00:00
hermes-gadget cc566b3c28 fix(ci): restore E2E and contract gates 2026-08-29 11:39:38 +01:00
gadgethd d11336da64 fix(backup): restore split-stack recovery workflow 2026-08-27 23:48:01 +00:00