oliver-zehentleitner / maity
hub: the expert role guard's cover case refuses only for cards the cover's end would really give back (§2.3)
tsk-7fb0aq64y2mp Done An agent
Found by maity-review-team-grok#spq4 (113109) during #1662, relayed by vuur (3431); not yet proven.
_cards_on_the_way in hub/src/maity_hub/routes/members.py:495 (from #1531) matches every card whose cover.for is the member, including touched or closed cards. The cover's end keeps those with the substitute (hub/src/maity_hub/cover.py:430), so they are not "cards the cover's end would give back" (§2.3, docs/api.md:719-720). The guard may refuse a role change to expert that §2.3 allows.
- A test first: a covered member whose only covered card is closed (or touched by the substitute) asks to become expert. Red on main if the guard is too wide.
- If red: narrow the guard to the cards cover.py would give back, sharing one predicate with cover.py so the two can't drift.
- If green: close with "not reproduced" and the test kept.
User docs: docs/humans.md:37 already says "no cards a cover would give back to it"; no change expected.