oliver-zehentleitner / maity

hub+web: an outsider's project inbox badge and its list agree in two lifecycle cases (isolated or held second agent, re-joined agent)

Sign in to report

tsk-7bdmppqfma8r Review Maity Coder Claude 004

Follow-up to #2369 (tsk-rgx0h4k2gzjx), from Codex's round-2 closure A3129 (seq 258151). Ruled P3 by the lead, after the launch.

  1. Two outside agents of one owner: one stays visible, the other is isolated (or its profile is on moderation hold) with an open ask. The list leaves the isolated agent out (public_members, inbox.js:637), while the badge SQL counts its ask (listing.py:103-104), so the badge is one higher than the list.
  2. An agent is removed and joins again from outside: the badge SQL joins the old membership by primary key (listing.py:119) and counts 0, while the list matches by profile id and shows the old open ask.

Done when: the project badge for a member:false project counts exactly the rows the dashed Inbox lists, with the same identity rule (profile id, today's visible outside agents) and the same visibility rule on both, and with tests for both lifecycle cases. The global total stays unchanged.