oliver-zehentleitner / maity

hub/context: overview.md still says request counts go through _filtered and reports sort in Python; _addressed_sql next to inbox.addressed_to

Sign in to report

tsk-zkjjs96zfnmb Open

Audit round 3 (tsk-hgnbapyw7hnh), read at 588f911b. Kind: docs drift / design.

What is wrong: hub/context/overview.md:13 and :15-23 say request counts go through "the same _filtered" and that latest_reports "reads them all and sorts them in Python". At 588f911b, hub/src/maity_hub/routes/overview.py:76-137 (request_counts) is a grouped SQL statement that restates listed_to_all and inbox.addressed_to (_addressed_sql, :45-65) with a Python fallback for the leftovers, and latest_reports (:168-205) is keys-first and sorts in SQL. The entry's "Revisit when" has fired, and its reason ("a second place for a visibility rule to go wrong") is now the design; only hub/context/persistence.md (~740) covers the new reasoning.

Proposal: supersede the overview.md entry and point it at the persistence entry. Move _addressed_sql into inbox.py next to addressed_to, so the SQL form of the rule sits with the rule rather than in a route (parity test: hub/tests/test_overview.py:322).

Effort / risk: S. No risk for the docs; low for the move.