Add a minimal run verb that drives the engine from a prompt#237
Merged
Conversation
A small driver: take a prompt, select the default build workflow, stamp the prompt as the plan's task description, run the existing pipeline engine, and render the typed result (success + cost, or the typed failure). The engine is built behind an injected factory so the unit test exercises the whole path with a fake backend and no network. This is the minimal driver only. The fuller artifact-contract verb (cost/session log, a named working branch, a verdict document) is a deliberate later expansion, not part of this change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The new unit test draws against the frozen tests/unit package total; declare it (the established pattern for new test coverage) so the shared budget gate stays green without re-baselining the package. Co-Authored-By: Claude Opus 4.8 (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.
What
Adds a small
bonfire run PROMPTverb: prompt → plan → engine.run, wired to the existingPipelineEngine.task_description, runs the engine, and renders the typedPipelineResult(success + cost, or the typed failure as stage/gate/error).--workflow/--budgetoptions; exits 0 (success) / 1 (failure) / 2 (unknown workflow).This is the minimal driver only. The fuller artifact-contract verb (cost/session log, a named working branch, a verdict document) is a deliberate later expansion.
Tests
tests/unit/test_run_command.py— happy path, failure path, prompt-reaches-task_description, unknown-workflow; all network-free via an injected fake backend.Local sanity:
ruff check+ruff format --checkclean, protocol-doc citations 0 drift, full suite 5497 passed. (2 unrelated--versiontests fail only in the local venv, which lacksbonfiredist-metadata so__version__falls back to0.1.0a2; CI's fresh install resolves1.0.1and they pass — independent of this change.)🤖 Generated with Claude Code