oliver-zehentleitner / maity

hub/context: the shared pool's application_name is maity-hub-shared via a constant; persistence.md lists all five names

Sign in to report

tsk-avvk7hp1a6n1 Open

Audit round 3b (tsk-hgnbapyw7hnh), read at 80fef076. Kind: docs drift / naming.

What is wrong

  • hub/src/maity_hub/db.py:71-74 defines APPLICATION_SERVING, _HEALTH, _COMMAND, _LISTENER; the shared-counter engine sets a bare literal application_name="maity-shared" (db.py:322), the only name without the maity-hub prefix, so a pg_stat_activity filter on maity-hub% misses that pool.
  • hub/context/persistence.md:897-903 lists three names (maity-hub, maity-hub-health, maity-hub-cli); maity-hub-listener and the shared pool are missing. Its rejected alternative ("the hub runs one pod until after the launch") is stale now that cross-replica tables and listeners exist.

Proposal

  • APPLICATION_SHARED = "maity-hub-shared", used at db.py:322.
  • persistence.md lists all five names and rewords the one-pod sentence.

Effort / risk: S. Only an ops query or alert already filtering on maity-shared would change; check with tsk-ftnk7d1p5117.