Repository navigation
Scripted regression tests to cut testing-agent token use - #340
Draft
zwanski-start wants to merge 1 commit into
Draft
zwanski-start wants to merge 1 commit into
zwanski-start wants to merge 1 commit into
Conversation
…utoForgeAI#157) Testing agents now run per-feature scripts registered in tests/regression/manifest.json before starting an agent session. Features whose script passes skip the LLM entirely; unscripted or failing features go to the agent, which is instructed to write/repair the script. Extract security.validate_bash_command so scripted commands use the same allowlist as agent Bash calls. Co-Authored-By: Claude Opus 5.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.
Closes #157
What changed
tests/regression/manifest.json({"<feature_id>": {"command": "...", "timeout": 300}}) from the generated project and runs each assigned feature's command from the project root. The timeout defaults to 300s and is capped at 900s; on timeout the whole process tree is killed. Commands are checked against the same bash allowlist and blocklist as the agent.validate_bash_command(command, project_dir).bash_security_hooknow calls it, and its behaviour is unchanged.Verification
python test_security.py: 169 passedruff checkon the changed files: cleansudois rejected.Left to do (why this is a draft)
regression_runner.py(manifest parsing, pass/fail/timeout, security rejection) have not been written.mypyand the full pytest suite have not been run.zwanski-start/autoforge. The agent's GitHub account only has read access to AutoForgeAI/autoforge (push returned 403), so the branch couldn't be pushed to origin.Assumptions
testing_prompt.md, so they will not start writing scripts on their own. The runner still uses any manifest it finds. Only new projects get the updated template.python, so the prompt suggests Node/npm/Playwright commands.🤖 Generated with Claude Code