feat(tutorial): print next steps after a verified run - #354
Open
abrichr wants to merge 1 commit into
Open
Conversation
The tutorial previously ended in silence right after printing the VERIFIED receipt -- the moment of peak intent had zero links and zero next step. Close it with a small block pointing at what the run proves, how to qualify a real workflow, and the community. * _next_steps_block() is a pure, unit-testable function in tutorial.py; the CLI prints it in _cmd_tutorial on the plain VERIFIED path only. * The three URLs match the flagship OpenAdapt README exactly (openadapt.ai/execute, openadapt.ai/qualify, discord.gg/yF527cQbDG). * Not printed on --break-it or non-VERIFIED paths: the block belongs to the success rail, mirroring the receipt rule. Co-Authored-By: Claude Fable 5 <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.
Why
openadapt quickstart(flagship repo) delegates to this repo's tutorial. Roughly 52 people a day install openadapt, and today the tutorial ends in silence right after printing the VERIFIED receipt: zero links, zero next step, at the moment of peak intent.What
After the receipt paths, on the plain VERIFIED path only, the CLI now prints:
_next_steps_block()is a small pure function inopenadapt_flow/tutorial.py;_cmd_tutorialprints it with the same plain-printmechanism as the surrounding summary.--break-itruns end on their own narrative, and non-VERIFIED runs keep ending on their evidence -- the block belongs to the success rail, mirroring the receipt rule.Tests
tests/test_cli_tutorial_next_steps.pymirrors the browser-free pattern oftests/test_cli_tutorial_break_it.py(fakerun_tutorial, assert on captured CLI output): the block carries the three URLs, is printed after the receipt on the VERIFIED path, and is absent on--break-itand non-VERIFIED paths.ci.ymluntouched.🤖 Generated with Claude Code