The override returned any integer without checking it. A negative PID makes
os.kill signal a process group (-1 signals every process the reloader may
signal), and zero signals the reloader's own group. Resolution already
matches the broker by process name, so remove the override and the tests
that exercised it.
Add scripts/verify-reloader-init-shim.sh: an isolated Compose run that
builds the reloader image, starts mosquitto with init: true, and proves an
ACL change is enforced only after the reloader's SIGHUP, with no broker
restart.
Co-authored-by: Hermes <hermes@vexcore.org>
The weekly drill had not produced a receipt since 1 Nov: it restored the
database but the app could not start against it.
- owner tables now live in core on the meshcore database, so point
OWNER_DATABASE_URL there instead of the legacy meshcore_owner_auth
- pass POSTGRES_PASSWORD to the migrate and backend containers: ownerAuth
overrides the URL password from that variable, so the owner pool got an
empty credential (28P01)
- set search_path on the restored cluster: pg_dump restores data, not role
config, and the owner queries are unqualified (42P01)
- owner lookup verification now reads core.owner_accounts/owner_account_nodes
Verified: drill passed against backup-20261122T013003Z, schema 135,
migrations/integrity/owner_lookup/readiness all passed, receipt published.
Co-authored-by: gadgethd <gadgethd@users.noreply.github.com>
Readiness no longer requires a prior successful forward, so a fresh alert volume lets Alertmanager start. Archive-only mode now returns 503 with Retry-After instead of acknowledging undeliverable alerts, and GET /metrics exposes queue state plus delivery counters.
* feat(telemetry): persist and expose radio settings from MQTT status
Status envelopes already carried a top-level radio string, but ingest
dropped it, so every ukmesh surface showed nothing while CoreScope (which
canonicalises the four-number spelling) showed it fine.
- add core.node_status_samples.radio (migration 136) and refresh both
canonical and public projections
- extract the field in statusTelemetry with a bounded, control-character
free value; persist it through insertNodeStatusSample
- expose it on /node-status/latest, /node-status/history and /mqtt-nodes
- show the radio line on the public repeater details card, fetched lazily
per selection and formatted from the canonical MHz,kHz,SF,CR spelling
* test(migrations): track the migration band head instead of pinning 135
* ci(readiness): stop racing the one-shot migrator with compose --wait
compose reports a one-shot container that exits before the wait loop starts
as 'container ... exited (0)' and fails the gate. Start timescaledb with
--wait, start db-migrate separately, then read its real exit status with
docker wait.
* chore(quality): add fleet pattern checks (hcheck)
Commit-time check for failure modes the existing CI lint/type/test jobs do
not cover. Legacy violations, where present, are recorded in
.hcheck-baseline.json; new ones fail.
* chore(quality): refresh hcheck baseline after rule refinements
Rules now exempt bounded retries, steady-state pollers and loops with an exit
path, and report a joined shell command at the line it starts.
* chore(quality): staged floor with a real test check (F7)
No verify.toml meant no completion evidence at all. Required: the
no-infrastructure test subset (Mosquitto reloader + CI retry helper, 12 tests).
lint and hcheck run advisory: this repo has no ruff config (364 findings on
defaults) and no hcheck baseline, so requiring them would certify nothing.
The excluded GDAL/Postgres/Redis suites are named in scripts/test.sh.
* chore(quality): declare the default task and refresh the floor script
* chore(quality): refresh the floor script (quoting, vacuous-scope, hcheck)
* chore(quality): incremental lint says when it has nothing to check
---------
Co-authored-by: hermes <hermes@local>
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.
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.
* 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.
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.
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.
* 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>
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
Remove the shadow-mode fallback that rebuilt owner authority from
OWNER_MQTT_USERNAME_MAP and broker ACL write stanzas whenever the verified
grant list was empty. Broker write scope is not ownership, and the fallback
survived revocation.
- empty verified list now returns [] in every mode
- sessions carry the credential generation and are rejected when it changes
- credential-generation read failures throw instead of returning 0, which
compared equal to every pre-rotation session
- newuser.sh no longer writes an operator-config grant from a broker-log key;
it requires --confirm-owner-grant NODE_ID
Audit: backend/src/owner/ownerAccess.ts:owner-credential-generation-revocation
ukmesh-owner-access:shadow-fallback-regrants-revoked-acl-scope
ukmesh/newuser-broker-log-node-key-promoted-to-operator-config-grant
- /readyz returns only database and MQTT state; owner-ACL generations,
reconciliation errors and workload identity stay on the local-only surface
- an invalid network scope on a public WS upgrade returns 400 instead of
throwing out of verifyClient
- POST /alerts requires a bearer token (fail-closed) and both in-repo senders
send it; Alertmanager reads its token from a provisioned file
Audit: backend/src/index.ts:GET-readyz.publishes-owner-authorization-and-analysis-internals
ws.verifyclient.invalid-network-scope-uncaught-exception
backend/src/workers/alert-receiver.ts:POST-alerts:unauthenticated-alert-ingest-to-operator-webhook
* Fix analysis state, worker observability, feed layout and maintenance (#113)
* fix(analysis): restore tested retired workload policy
* fix(owner): prewarm last-hop cache with bounded progress reporting
* fix(metrics): use real link worker heartbeat for queue alerts
* fix(feed): measure virtual rows and preserve scroll anchors
* fix(ops): reject Compose metadata drift before replacement
* fix(maintenance): archive inactive nodes across roles and bridge states
* docs(review): record validation and heartbeat audit findings
* fix(maintenance): retain private identities during stale cleanup
* fix(ops): consume Compose service output before adoption checks
* test(owner): cover prewarm scheduling recovery and shutdown
* test(e2e): isolate server ports and Vite dependency caches
* test(feed): cover empty filters and arrivals at the top
* test(map): budget two cold bootstraps in mode persistence check
* docs(review): record continuation regressions and final verification
* fix(alerts): match queue heartbeats to their scrape reporter
* test(feed): preserve packet anchors across scroll-mode changes
* test(owner): verify incremental prewarm cache refreshes
* fix(maintenance): preserve packet privacy fence during public cleanup
* fix(maintenance): recheck inactive sightings before archive and delete
* fix(owner): serve fresh cache hits during background prewarm
* test(map): give each viewport its own startup budget
* test(map): load valid terrain and coverage tiles in local fixtures
* fix(metrics): export unknown heartbeat when Redis initialization fails
* test(path): control worker-pool deadlines independently of thread startup
* test(e2e): await owner and map readiness before state assertions
* test(feed): check fractional viewport and spacer invariants
* docs(review): record green expanded verification checkpoint
* fix(maintenance): acquire visibility before node locks and skip busy rows
* test(maintenance): retain concurrent RF-only activity in native fixtures
* fix(owner): replace regrouped last-hop buckets during refresh
* test(owner): verify warm regrouping with actual last-hop SQL
* test(maintenance): retain concurrently committed node consent
* test(maintenance): avoid a waiting consent-trigger deadlock
* test(feed): verify responsive anchoring in Firefox and WebKit
* docs(review): reconcile completed checks and remote CI evidence
* docs(review): correct checkpoint wording
* test(maintenance): verify privacy fences on native PostgreSQL
* test(health): verify link heartbeat publisher lifecycle
* docs(review): record stop-signal handoff and remaining verification
---------
Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
* fix(feed): preserve scroll anchors across scroll-mode flips
React 19.3 fires the window scroll listener before React commits its new
row range, so updateViewport could overwrite the last known content offset
with the new-mode artifact (0) before the anchor-preserving layout effect
ran — dropping the feed to the top on a responsive resize.
Detect the scroll-mode flip (internal container <-> document scrolling) in
updateViewport and transfer the last known content offset into the new mode
before the anchor effect evaluates.
Verified: feed-virtualizer e2e (both viewports) and the full public-desktop
suite under react 19.2.8 and 19.3.0.
* fix(#553): sync replace-container test harness
* test(ops): sync replace-container harness with adoption + infra flows (#553)
Union of both branch evolutions: Compose adoption drills (check-compose-adoption
staging, MOCK_ADOPTION_* modes, adoption/long-service/overlay cases) plus the
infra-compose staging and timescaledb resolver drill assertions. Fixes the
Workers-and-Compose gate failing on this PR.
Verified locally: 16/16 drills pass.
---------
Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
Co-authored-by: hermes-gadget <284726080+hermes-gadget@users.noreply.github.com>