* fix(owner): add revocable server-side sessions
* test(owner): isolate the revoked-session e2e
* fix(owner): make session creation and revocation race-safe
- Stamp owner_sessions rows with clock_timestamp() and exclude the new
session from the cap prune, so a login delayed on the per-user advisory
lock cannot revoke its own freshly issued credential.
- Revoke the grant and its sessions in one transaction, and match the
effective-grant predicate used for authorization, so a legacy unverified
row cannot keep sessions alive after the last real grant is revoked.
- Return 503 rather than 500 when the credential-generation store is
unavailable during login, matching the session route's fail-closed status.
- Isolate the owner integration test from ambient DB environment, add
real-Postgres regressions for the three defects, and run the suite in CI.
---------
Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
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.
- 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
Consolidates the stacked backend, privacy, network-intelligence, frontend, operations, mobile, and owner-cache changes after resolving main conflicts and passing the full CI suite.