Repository navigation
fix(bob): degrade cleanly when pytest is absent on a fresh install - #3
Merged
Merged
Conversation
The kit core is dependency-free, so a bare `pip install agent-ultra-kit` has no pytest — bob's RED step then collected nothing and the doctor's bob check crashed. Now: run_pytest_step preflights pytest and returns a clear "pip install pytest" message (no misleading receipt written), the gate's live re-run fails closed with the same message, doctor reports WARN with the install hint instead of FAIL, demo skips the bob line without failing, and a `bob` extra (pytest>=7) plus README/docs notes document the one runtime dependency. Caught by a fresh-venv install test of main. 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.
A fresh
pip install agent-ultra-kithas no pytest (the core is dependency-free), so bob's RED step collected nothing and the doctor's bob check crashed with a traceback. Caught by installing main into a clean venv.Changes
run_pytest_steppreflights pytest and returns a clear "pip install pytest" message; no misleading receipt is written.doctorreports WARN with the install hint (13 pass / 1 warn / 0 fail on a bare install);demoskips the bob line without failing.bobextra:pip install agent-ultra-kit[bob]; README + docs note the one runtime dependency.Verification
bob run --mockblocks with the actionable message.bob run --mockgate PASSED (9 receipts).🤖 Generated with Claude Code