Commit Graph
302 Commits
Author SHA1 Message Date
Codex 2b4613a81a Add CoreScope and Beacon development workspace 2026-11-14 00:41:48 +00:00
Codex c1d1d01b71 Untangle database read ownership and local qualification lifecycles 2026-11-13 22:07:29 +00:00
Codex 847bc79007 Apply pending local migrations before restarting a prepared DEV stack 2026-11-13 18:18:18 +00:00
Codex 59d2392a17 Bound resolver graph storage and page feed metadata before aggregation 2026-11-13 16:49:11 +00:00
Codex 5b85d8ed3b Improve indexed node lookups and qualify database read performance 2026-11-13 15:32:33 +00:00
Codex 148609230c refactor(contracts): remove unused descriptive protocol metadata 2026-11-12 21:21:27 +00:00
Codex 6a3089c0d3 fix(ci): read canonical observer identities in the data-plane probe 2026-11-12 19:34:43 +00:00
Codex 5dfff10db3 test(contracts): verify queue defaults across runtimes and operator examples 2026-11-12 19:28:12 +00:00
Codex 0c4013183f refactor(ci): share owned fixtures and validate operational contracts 2026-11-12 19:12:43 +00:00
Codex fad74caffc refactor(contracts): generate shared queue and public metadata bindings 2026-11-12 18:40:56 +00:00
Codex b51a99571d fix(api): fence public analysis delivery and bound live relay updates 2026-11-12 14:18:27 +00:00
Codex 0975d07d0a docs: reconcile 2.0 runbooks, privacy notice and performance evidence 2026-11-12 12:42:09 +00:00
Codex 959fe142ad fix(regions): supervise bounded privacy-certified snapshot repair 2026-11-12 11:55:49 +00:00
Codex b5c5b6d8ef chore(release): prepare 2.0 candidate identity and upgrade notes 2026-11-12 10:28:32 +00:00
Codex 9978a6091c fix(backup): verify owner lookups in the canonical schema 2026-11-12 10:08:33 +00:00
Codex bdbe1d4a8e fix(backup): restore Timescale archives under isolated restore mode 2026-11-12 09:58:18 +00:00
Codex a3cdb248be perf(ci): reuse Go compiler caches without reusing test results 2026-11-12 09:21:35 +00:00
Codex f70dc183ed Record actual public SQL plans and lifecycle policy state for qualification 2026-11-12 07:37:31 +00:00
Codex 0903fe1563 Classify the earlier security closure report as historical evidence 2026-11-12 07:29:53 +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 aa973a2d67 Record comparable ingest CPU WAL SQL and memory evidence in one command 2026-11-12 07:14:54 +00:00
Codex 70352812f3 Keep local ingest replay bounded and qualify RAM gates with TAP 2026-11-12 07:07:57 +00:00
Codex 264865ac6d fix(ci): qualify current migration head and colored preview startup 2026-11-12 06:45:24 +00:00
Codex a5c540cf59 perf(map): avoid presence-only rebuilds and coalesce status renders 2026-11-12 06:45:24 +00:00
Codex fd241e6ad7 test(perf): benchmark production dashboard presence updates 2026-11-12 06:07:39 +00:00
Codex 2bb41dddf4 fix(dev): preserve meaningful recent windows in snapshot benchmarks 2026-11-12 03:52:35 +00:00
Codex de2f2ab961 fix(dev): detach local app services from launcher sessions 2026-11-12 03:42:55 +00:00
Codex b8572800e4 build(dev): qualify local fixtures and add baseline tooling 2026-11-12 03:41:52 +00:00
ben 26d0d3789f docs(local-sample): document the local backend ACL and owner DB 2026-11-12 01:53:29 +00:00
ben eb23b0401c test(tools): add local sample database loader and MQTT replay harness
- load the local sample CSVs through COPY staging tables into a migrated DB
- replay packet receptions as observer JSON envelopes, or status telemetry
- local-only Mosquitto config and runbook; dataset stays out of Git
- 157k-row load completes in seconds with --fast
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
hermes-gadget 60667df5ac ci: stop seeding a marker table the freshness guard rejects
The readiness fixture created public.ci_init_completed to hold the entrypoint
open past the first health probe. The merged migration bootstrap refuses any
database whose relations do not match the shipped base schema, so the marker
now fails the smoke stack before migrations run. pg_sleep alone already holds
the entrypoint open; the table was never read.
2026-11-11 23:42:44 +00:00
hermes-gadget e4da855d37 Merge main into revamp/backend-2026-11
One conflict, in the visibility-convergence fixture: main's row-level prefix
fence (074) landed after this branch forked, alongside the branch's statement
fence (066) and post-move reassertion (134). The fixture now re-applies the
full chain in migration order (066 -> 074 -> 134) and asserts the post-move
row triggers on core.private_node_prefixes. 074 sorts between the branch's
073 and 078 slots, so the two bands compose without renumbering.
2026-11-11 22:21:01 +00:00
dependabot[bot] 051fda337e chore(deps-dev): bump @types/node (#209)
Bumps the scripts-dependencies group in /scripts with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 26.6.5 to 26.6.6
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: scripts-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-11 22:11:43 +00:00
hermes-gadget ec7fdfd452 ci: unblock the empty-volume smoke stack and its post-move browser fixtures (#220)
* ci: create the owner-auth database in the smoke stack

The backend derives its owner connection from DATABASE_URL with the database
name swapped for meshcore_owner_auth, and dies at startup when that database is
absent. Production creates it out of band (newuser.sh, restore-drill.sh); a
fresh CI volume never did, so 'Build every application image and smoke an
empty-volume stack' failed with 'database meshcore_owner_auth does not exist'.

Mirror production: an init-hook script creates the database and applies the
shipped owner-auth.sql to it. The SQL is mounted outside initdb so it is not
applied to the main database as well.

* test(tagger): build the fixture in the post-move ops namespace

The suite creates its own database and then runs the worker's real poll SQL,
which reads ops.public_visibility_state, ops.packet_visibility_materialization_state,
ops.privacy_rematerialization_queue and ops.tagger_retry since the P1 moves.
The fixture still created those tables in public, so all eight tests failed with
'relation "ops.packet_visibility_materialization_state" does not exist'.

This was masked until now: the smoke stack never got past backend startup, so
this step never ran. packets and message_tags stay unqualified - the worker
resolves those through the connection search_path, as the deployed P1
search_path does.

Verified against a disposable TimescaleDB with the same invocation CI uses:
8 tests, OK.

* ci: read the smoke-stack assertions from the post-move schemas

The empty-volume smoke readback still queried nodes, packets, packet_paths and
packet_hourly_stats by their pre-move public names. 116/123/124/125 moved them to
core and mesh, so the psql step failed with 'relation "packet_hourly_stats" does
not exist' once the stack got far enough to run it.

Use the canonical names; the public spellings are compatibility views at best and
for two of these relations no longer exist.

* test(e2e): warm the MapLibre module graph during setup

maplibre-gl is excluded from optimizeDeps because Vite's pre-bundling
rewrites the worker URL and kills it, so the first cold request pays for
transforming the whole module graph. On the CI runner that is 41-47s for
maplibre-gl-worker.mjs (measured from the retained traces on run
41887037964), which is most of the 60s map-health budget in the map specs:
the map starts ~57s after the document load and the assertion expires just
before the basemap turns healthy.

Playwright starts webServer before globalSetup, so warm the two heaviest
dev-server modules there. The cost moves into setup; assertions stay tight.
Failures are logged and ignored - this is never a gate.

Fixes #190

* test(e2e): log module warm-up response shape

The CI warm-up reported 200/116ms, but the browser still waited 47.8s for the
worker module and the map stayed loading. Log Content-Length and Content-Type
for each warm-up response so we can distinguish the transformed worker from a
fast SPA fallback before changing the fix.
2026-11-05 21:57:57 +00:00
hermes-gadget 79190f8382 fix(ci): ship the external-consumer SQL checker with the worker image (#196)
The Workers and Compose job runs the worker suite inside the built image
(`python -m unittest discover -s /app/tests`). The relation-qualification
test resolved the checker as `<repo>/scripts/check_external_consumer_sql.py`
via `Path(__file__).parents[2]`, which inside the container is `/scripts`,
and the image only carries `viewshed-worker/`, so the job died with
`ModuleNotFoundError: check_external_consumer_sql` before any test ran.

The image builds with `context: viewshed-worker`, so a repo-level `scripts/`
file cannot be COPYed in without widening the build context (and the release
workflow). Move the implementation next to the worker (`viewshed-worker/
check_external_consumer_sql.py`), leave a thin shim at the old path so
`backend`'s `test:external-consumers:sql` keeps working from a checkout, and
add the module to the Dockerfile COPY.

The test now resolves the module from the worker root, and a new in-image
test asserts the checker imports from that root, so dropping it from the
image fails with a named test instead of a bare import error.
2026-11-05 16:44:29 +00:00
hermes-gadget d42c36a8b5 fix(ci): assert the migration head, not the file count (#189)
The readiness script compared the number of schema_migrations rows with the
number of .sql files. The runner supersedes some files (011 -> 044), so the
ledger is legitimately smaller: 67 rows against 71 files on main. The step
therefore failed on the merge commit and took main CI red.

Assert that the highest-sorted migration is recorded instead, and log the
ledger counts so a future failure is visible rather than silent under set -e.
The replay check still proves nothing is pending.
2026-11-04 18:25:35 +00:00
hermes-gadget 48d37867c1 p2: exclude non-wire legacy rows from coverage gate 2026-11-04 17:59:26 +00:00
hermes-gadgetandHermes f00e533b49 fix(owner): converge feed ACL writes and recover readiness evidence (#186)
* fix(owner): use authenticated diagnostics for rebaseline decisions

* fix(owner): await reconciliation after committed feed changes

* fix(owner): preserve baseline ACL evidence and expose history repair plans

* docs(privacy): park unattended global convergence design

* fix(ci): wait for final PostgreSQL TCP server before migrations

* docs(review): record Lane L CI proof and credential escalation

---------

Co-authored-by: Hermes <hermes@local>
2026-11-04 17:27:04 +00:00
hermes-gadget 384226c16b p2: harden identity backfill and reader statistics 2026-11-03 16:01:26 +00:00
hermes-gadget a469bcbffa p2: add background identity coverage check 2026-11-03 15:21:39 +00:00
hermes-gadget 8099a48aa0 p2: complete packet identity backfill and alias census 2026-11-03 13:50:57 +00:00
hermes-gadget 813289a19c test: add external consumer schema regression checks 2026-11-03 13:15:21 +00:00
hermes-gadget f3d94fb59b p1: qualify analytics relation in network unification script 2026-11-03 13:03:33 +00:00
hermes-gadget 82e73b48db p1: qualify operational scripts after core and mesh moves 2026-11-03 13:03:15 +00:00
hermes-gadget 477c2546c1 p1: qualify remaining worker nodes references 2026-11-03 12:44:28 +00:00
hermes-gadget 7ab05a0ae7 p1: qualify network unification runs for ops 2026-11-03 00:21:02 +00:00
hermes-gadget b7897f7cdc p1: move unreferenced ops simulation tables 2026-11-02 23:41:31 +00:00
hermes-gadget cd27866d39 p1: rehearse 071/072 and add reader role stubs 2026-11-02 11:31:24 +00:00
hermes-gadget 3c421c8217 p1: adopt approved 30G G1a floor 2026-11-02 02:17:13 +00:00