Repository navigation
Conversation
Deep analysis never considered Data sections: they have no UI map table and parseResearchSections filters them out. Anything reachable only from a list item stayed invisible, so the Planner could not ground it. On a store with Add to cart in the product dialog, no cart tests were planned. Deep analysis now clicks the first item control of each Data section. It takes only real links and controls with aria-haspopup, aria-expanded or aria-controls, so an unlabelled row button such as Delete is never pressed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch is waiting to be deployed
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.
Problem
A plan for a pet store had 25 tests and none touched the cart. "Add to cart" only exists in the product dialog, which opens when a card is clicked, and deep research never clicked a card:
Data:sections with no UI map table.parseResearchSectionsdropsData:sections, so_discoverExpandablesnever sees them as candidates.The Planner's grounding rules then correctly refused to plan what research had not seen.
Change
performDeepAnalysisnow also clicks the first suitable item control in eachData:section (_findDataItems). This adds at most one click per list, on top ofmaxExpandableClicks.aria-haspopup,aria-expandedoraria-controls. Deep research must not press an unlabelled row button such as Delete on existing data, so this rule is deterministic, using ARIA attributes.WebElement.revealsContentholds that ARIA check, replacing the copy indriller.ts.Testing
tests/integration/deep-analysis-data-items-browser.test.ts: opens only the first item, follows links, never presses an undeclared button, skips past an unsafe control, tolerates a missing container.bun test tests/unit tests/integration: 1924 pass, 8 fail. The same 8 fail on a cleanmainlocally (7Provider, 1ApibotConfigParser).main: research found the product dialog andAdd to cart, and 4 of 7 planned tests add to the cart. The tests were generated, not executed.Known limits
The regression workflow needs a human approval because this touches
src/ai/.🤖 Generated with Claude Code