Help consumer AI agents Discover/Confirm with complete RunVars - #12
Merged
Conversation
Estimate a conservative pkb_parallel from JVM cores and heap, resolve pkb_parallel=auto into that integer in the final run profile, and ship a framework CHROME_HEADLESS config when the consumer does not override it. Discover-hint and AGENT-GUIDE now emit a complete diagnostic pkb_runvars and tell agents to inspect pkb_run_profile after the run. Co-authored-by: ds-code-t <ds-code-t@users.noreply.github.com>
Co-authored-by: ds-code-t <ds-code-t@users.noreply.github.com>
ds-code-t
marked this pull request as ready for review
August 27, 2026 15:53
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
Dan asked for four related 2.1.10 improvements so consumer AI agents run Discover/Confirm faster and stop being confused by RunVar inheritance.
mvn testnow has an explicit completepkb_runvars:pkb_browser=CHROME_HEADLESS, a conservative highpkb_parallel,pkb_reportingmode=diagnostic,pkb_loglevel=warn,pkb_reportretention=failed. Isolate / live Workbench stays one paused scenario.DiagnosticCli discover-hintprints the estimated integer parallel count (not80and not a placeholder).pkb_parallel=autoresolves at run start and the integer is stamped intopkb_run_profile.CHROME_HEADLESSyaml. Consumerpkb_configpath/ configs mapping still wins when present.pkb_runvars, then readpkb_run_profilefrom catalog / run-index / summary. Workbench diagnostic MCP tools surface that field.Parallel formula
max(2, min(availableProcessors, floor(maxMemoryMB / 512), 24))fromRuntime.availableProcessors()andRuntime.maxMemory()only. Cap is 24 so a 32-core / 64GiB box does not blindly start 32 Chrome workers.CHROME_HEADLESS fallback
ParsingMap.initializeConfigsloads the consumer config mapping first. IfCHROME_HEADLESSis already present (any case), that local yaml wins. Otherwise Pickleball injectsMETA-INF/pickleball/configs/CHROME_HEADLESS.yaml(--headless=new, fixed window size, noMAXIMIZE,QUIT_LOCAL_DRIVER).CHROME/EDGE/GRID/SAUCEconsumer configs are unchanged.Complete snapshot
pkb_runvarsremains the only controlled input. After a diagnostic run,run-catalog.json,run-index.json, andsummary.jsonall carryrunProfile. Workbenchworkbench_diagnostic_*tools return that JSON. The worker still resolves internally throughPickleballRunnerand still rejectspkb_run_profileas input.Functionality-change coverage
AGENTS.mdand the relevant feature-map entry.docs/agent/feature-map.mdremains accurate.docs/agent/repository-index.mdis current.Pointer files
maven-consumer-project/AGENTS.mdand.github/copilot-instructions.mdstay short. No version bump. No GUI Workbench work. Did not changeagent-pointer-eval.feature.Validation
python3 scripts/verify_agent_contract.pypython3 scripts/sync_consumer_guidance.py --checkpython3 scripts/refresh_agent_index.py --check./gradlew test(BUILD SUCCESSFUL)./gradlew publishToMavenLocalpkb_browser=CHROME_HEADLESS,pkb_tags=@diagnostic-single or @diagnostic-reporting— 2 scenarios passed, including new parallel/Chrome/discover-hint/catalogrunProfilechecks@agent-pointer-evalis not on@all/@regression(contract check + feature tags). Default@alldoes not start that harness. Did not "fix"agent-pointer-eval.feature.Did not run full
@all.