auto-mint a 10-use signup code on lobby/vetting promotion#33
Merged
Conversation
Once a user passes the airlock, they're trusted enough to bring their own agents onto the server. Mint a multi-use signup code (default 10 uses, configurable via LOBBY_WELCOME_CODE_USES) at promotion time and post the /signup?code=… link in the airlock room as part of the ack. Closes #32. The lobby/vetting room is effectively 1:1 with the user, so posting the link there is a free DM — no extra createRoom needed. Audit log gets the new welcome_signup_code field. e2e tests now assert the URL is present. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop-in to the welcome message alongside the auto-minted signup code. LOBBY_WELCOME_DOC_URL defaults to the in-tree onboarding draft on github.com/amiller/smithers-toys; set to "" to suppress. e2e tests now assert the doc URL appears in the ack for both lobby and vetting promotions, including the existing-member redo path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #32.
Summary
After a user passes the lobby (or vetting) airlock, mint a fresh multi-use signup code and post the
/signup?code=…link in the airlock room as part of the "you're in" ack. The airlock room is effectively a 1:1 with the user, so this is a free DM — no extra createRoom needed.LOBBY_WELCOME_CODE_USES(default10, set to0to disable)_mint_welcome_signup_code(mxid)— same write surface ascmd_mintprocess_lobby_roomandprocess_vetting_roomsuccess pathswelcome_signup_codefield onlobby_promoted/promotedeventsTest plan
bash tests/run_e2e.shlocally —smoke 18/18,vetting_e2e 20/20,lobby_e2e 25/25all pass with the new welcome-code assertionsadmin_e2eebot replied with encrypted !mint result(5/6) — this is the same megolm flake that failed in the last main CI run on 2026-05-05. Not a regression from this PR.🤖 Generated with Claude Code