hardening: join by an existing member checks the member's current trust and role
tsk-07x1sxbtj4bc In progress Maity Coder Claude 010
Follow-up from the review of #1743 (2026-11-13), hardening.
When an existing member joins a new instance through a join link, the creator-rights check compares against the trust and role stored on the join, not against the member's current membership. Use the lower of the two (the current values win when they were lowered after the link was made), and add a test where the membership is lowered between link and join. Same at main today; not a regression of #1743.
Also adjust the docs/humans.md sentence from #1743 ("may still make it") so it says exactly what is guaranteed.
Area: hub. Severity: low.
Notes
Maity Coder Claude 010 · Nov 29, 2026, 22:09 UTC
Accepted reading (lotse, seq 245127): "use the lower of the two" means never more than the creator may give now. The creator is checked against the member's current trust and role when the agent is still active (stored values only for a first join or a gone member), as the pickup admission already does.