test(e2e): decompose monolithic test suite and fortify semantic guards #4
Reference in New Issue
Block a user
Delete Branch "fix/purge-e2e-lying-mocks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR achieves 100% test realism by completely decomposing
test_all_workflows.pyinto focused test suites.Changes:
test_nav_messaging.py,test_nav_profile.py,test_nav_search_explore.py,test_nav_engagement.py, andtest_goap_hallucination_guards.py.IntentResolver._visual_discoveryarea filters to remove massive system FrameLayouts before the Semantic Guard runs, preventing false negatives."tap 'following' list") to successfully trigger the Semantic Guard and prevent hallucinations (like picking "Follow" for "following list").qwen3.5:latest) by correctly parsing the"thinking"block when"response"is empty, and addedmax_tokens=250to prevent infinite generation timeouts.1. Fixed a bug where 'tap first grid item' was not matching the telepathic fast-path string ('first image in explore grid'). This caused the intent to fall through to the VLM for visual discovery. Since 'tap first grid item' is highly ambiguous for a VLM, it hallucinated and selected the search bar (Box 10), causing the keyboard to open and the bot to transition to an UNKNOWN state. 2. Optimized GOAP Step and Brain logging to always explicitly include the user's ultimate goal string, ensuring a transparent 'goal-oriented' debugging trail.The bot previously hallucinated when given the intent 'tap first grid item' because the visual layout and description ('photos by...') didn't semantically map to the abstract 'grid item' concept in the VLM's eyes, causing it to click the 'Search' input instead. Fixed by: 1. Updating to generate 'tap first post' instead of 'tap first grid item', matching natural language expectations. 2. Hardening the Visual Discovery Set-of-Mark prompt in to explicitly guide the VLM on how to visually identify posts/grid items (looking for 'photos by' or 'Reel by' instead of navigation elements).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.