Repository navigation
feat(course-access): any three courses free, then the club (rules VERSION 2) - #9357
Merged
Merged
Conversation
…SION 2) The bot rung lost every reader: zero course keys minted in production since the ladder went live on 2026-10-11, 50 people at /start in 30 days and one club card seen. step_of now returns FREE for the first three courses and PAID from the fourth on; no rung is BOT any more. STEP_BOT keys a reader already holds still open their course (may_open / stays_open unchanged). Tests 16/16, sealed with t27c-bootstrap 0.5.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
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 #9365
Why
The owner asked for any three courses to be free, with payment after that and no detour through the Telegram bot. Production data showed the bot rung lost everyone:
What
step_of(opened)returnsSTEP_FREEwhileopened < 3andSTEP_PAIDfrom then on. It no longer returnsSTEP_BOT.VERSION = 2. The header, the ladder comment and a VERSION 2 note record the decision.STEP_BOTitself is kept: a bot key a reader already holds still opens a bot step (new test).may_open,stays_openandSITE_CHECKOUTare unchanged.Consumers
step_of. Its vendored copy and regenerated logic follow in a gHashTag/trinity PR.step_of, so it needs no change. Re-vendoring it is optional.🤖 Generated with Claude Code