Webwright
Webwright copied to clipboard
fix: remove stale workspace-mode prompts from persistent_browser.yaml
Summary
- Replaced bare
final_script.pyreference in Helpful Command Patterns with the correct run-folder pathfinal_runs/run_<id>/final_script.py - Replaced hardcoded
final_runs/run_003/paths inimage_qaexamples with genericrun_<id>placeholders - Replaced oversimplified done-gate constraint ("final_script.py is the final artifact") with a pointer to the full Completion Gate, including
self_reflectionand Chromium-release requirements - Added
summary_user_promptoverride referencingjudge_config.jsoninstead of the defaultself_reflect_config.jsoninherited frombase.yaml
Why
PR #16 fixed local_browser.yaml and called out that persistent_browser.yaml had the same copy-pasted workspace-mode prompts that don't accurately reflect the execution model. Specifically:
- The bare
final_script.pyinspect pattern implied the script lives at the workspace root, but in this mode it lives underfinal_runs/run_<id>/ - The
image_qaexamples had hardcodedrun_003paths, making them misleading for other run IDs - The done-gate global constraint only mentioned
final_script.pyas the final artifact, omitting the requiredself_reflectionpass and Chromium release steps - The inherited default
summary_user_promptreferencesself_reflect_config.jsonbut this mode usesjudge_config.json
Changes
src/webwright/config/persistent_browser.yaml: prompt cleanup as described above
Testing
pytest tests/ -v
============================= test session starts =============================
platform win32 -- Python 3.14.3, pytest-7.4.4, pluggy-1.6.0
collected 7 items
tests/unit/test_tool_model_routing.py::test_model_claude_sets_top_level_anthropic_model PASSED
tests/unit/test_tool_model_routing.py::test_model_claude_does_not_declare_per_tool_overrides PASSED
tests/unit/test_tool_model_routing.py::test_extract_model_block_reads_top_level_model PASSED
tests/unit/test_tool_model_routing.py::test_extract_model_block_rejects_missing_block PASSED
tests/unit/test_tool_model_routing.py::test_resolve_model_config_path_prefers_explicit_arg PASSED
tests/unit/test_tool_model_routing.py::test_resolve_model_config_path_falls_back_to_workspace_snapshot PASSED
tests/unit/test_tool_model_routing.py::test_resolve_model_config_path_raises_when_nothing_found PASSED
7 passed, 238 warnings in 0.12s