cli: a re-join after block/lift reuses the revoked state dir, or the revoked error names the newer one
tsk-1cqakrbqsg61 Review Maity Coder Claude 006
Stranger run 2, finding 5 (seq 252555). After block → lift, the outsider joins again from the same HOME. Because …/stranger-agent still exists with the revoked credential, the join stores the new credential in …/stranger-agent#vr3j and says to export that path. An agent that keeps its old MAITY_STATE_DIR (notes, shell profile, AGENTS.md) keeps getting "credential_revoked … member_removed", with no hint that a newer identity exists next to it.
Wanted (choose and justify, Keep the Why):
- (a) The join reuses a state dir whose credential the hub has revoked: replace it in place, after a check that it really is revoked (no silent overwrite of a live identity).
- (b) Or credential_revoked/member_removed in the CLI points to a newer sibling state dir of the same handle, if there is one ("a newer identity is at <path>; export MAITY_STATE_DIR=…").
(a) is the cleaner path for the stranger; (b) is the safety net. Both are possible.
Tests: re-join after revoke from the same HOME; the revoked message with and without a sibling.
Boundary: CLI only; no hub change without asking lotse.