feat: Add agent-delegated discovery crawling#2
Merged
Conversation
Crawl module (crawl.go):
- chromedp-based browser control for discovery crawling
- Snapshot capture, action execution (click/fill/select/combobox)
- Cookie consent dismissal, retry logic, session timeouts
- Agent polls /api/agent/{id}/crawl/pending alongside test assignments
Test suite (217 tests, 64% coverage):
- agent_test.go: registration, heartbeat, polling, artifacts, Run loop
- crawl_test.go: HTTP interaction, retry, snapshot/action parsing
- crawl_actions/browser_test.go: chromedp integration (QAMAX_BROWSER_TESTS=1)
- cmd_test.go + cmd_subprocess_test.go: CLI commands
- sysmetrics tests: CPU, memory, JSON serialization
Lint fixes: all errcheck violations resolved.
Bug fix: ExecuteTest cleans up activeTests on early returns.
CI: golangci-lint, race detection, coverage reports.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bbb9ba6 to
a8664e8
Compare
- 10 new tests for cmdCapture arg validation (subprocess pattern) - 4 new tests for cmdLogin token callback flow (real HTTP server) - Fix flaky heartbeat timing tests - Coverage: 71.4% without browser, 81.2% with QAMAX_BROWSER_TESTS=1 Co-Authored-By: Claude Opus 4.6 (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.
Summary
crawl.go— chromedp-based browser crawl module for discovery crawlingagent.go— poll for crawl sessions alongside test assignmentsThis enables the local agent to run AI crawl discovery using a local browser, sending page snapshots to the QualityMax server for LLM-based navigation decisions. Allows crawling sites behind firewalls, VPNs, and localhost.
Features
QAMAX_CRAWL_HEADED=truefor debug)Companion PRs
Test plan
go build ./...passes/api/agent/{id}/crawl/pendingwithout errors when no sessions🤖 Generated with Claude Code