Skip to content

Add verified goal engine and controlled agent comparison - #143

Merged
bitomule merged 4 commits into
mainfrom
worktree-t-mav-goal-engine
Nov 13, 2026
Merged

bitomule merged 4 commits into
mainfrom
worktree-t-mav-goal-engine

Conversation

@bitomule

@bitomule bitomule commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Adds mav goal with driver-independent observation, planning, execution and verification. A model's done is recorded separately from a caller-defined condition; two fresh stable observations verify success. An already satisfied condition performs no actions.

The engine preserves navigation budgets and refusal policies, offers only supported operation/target pairs and declared text, discards stale decisions, and stops after partial or unknown delivery. AXe simulator input uses its checked snapshot/ref API; CUA uses fresh opaque tokens. Other drivers retain an explicitly weaker tree-preflight guarantee. MAV never invokes axe agent.

Includes the AXe v2.0.4 source analysis, CLI/YAML contract, synthetic live-comparison harness and independent oracle. Goto remains available in this PR. Its retirement requires a complete three-arm comparison, zero false successes, at least 27/30 verified positive runs without falling below the baseline, and the regression below. The complete final cohort passes: goal 30/30, goto 20/30, AXe agent 30/30 verified positives; false public successes 0, 0, 3 respectively across the negative cases. The initial 26/30 goal cohort is retained, with its form failures and subsequent context correction documented. Full methodology, metrics and per-trial data disclose provider, transport, observation-unit and shared-machine limitations. Goal was slower than goto in this run; this is not a speed claim.

Validation

  • make check: PASS (all Go tests and build).
  • go vet ./...: PASS; Homebrew packaging tests: PASS.
  • python3 -m unittest discover -s tools/goal-bench: 7 PASS, including missing/duplicate corpus rejection, independent heading/PID checks, timeout child cleanup and reviewed metric export.
  • mav flow lint examples/flows/goal.yaml: PASS.
  • Independent correctness and state-machine reviews found and verified fixes for replay, reference identity, progress, modal budgets and context/deadline handling. A final review reproduced two additional route/rotation regressions; both now pass without weakening existing tests.

TestGoalResolvesGotoStaleCoordinateRegression executes the old loop with a correct model choice while the target moves during planning: old goto sends its saved (50,20) point; goal discards the stale decision, uses the current target and verifies the destination. The same supplied choice isolates this regression from model randomness.

python3 tools/goal-bench/ablate.py removes one guard at a time, requires an executed failing assertion, restores the guard and reruns the same test. Output:

Guard / test Guard removed Restored
TestGoalVerifiesAndAlreadySatisfiedDoesNotAct FAIL PASS
TestGoalDiscardsDecisionWhenGeometryFocusOrValueChanges FAIL PASS
TestGoalModelDoneCannotVerifyAndNoCriterionStaysUnverified FAIL PASS
TestGoalNeverRepeatsPartialUnknownOrPostInputReadFailure FAIL PASS
TestGoalFlowFailureNeverReplaysDeliveredInput FAIL PASS
TestGoalNavigationKeepsUnchangedPolicyDespiteGeometryJitter FAIL PASS
TestGoalModalDoesNotConsumeNavigationBudget FAIL PASS
TestGoalCancellationDuringPreflightPreventsInput FAIL PASS
TestGoalHiddenTextAndHeadingCannotSatisfyCondition FAIL PASS
TestGoalNavigationCountsUnreferencedWizardTitlesAsProgress FAIL PASS
TestGoalRunRefusesKnownRotationWithoutValidatedScreenSize FAIL PASS
TestGoalUnknownReferenceCleanupNeverAllowsRetry FAIL PASS
TestGoalPlanningContextExplainsAppendCurrentValueAndPendingSave FAIL PASS
TestGoalPlanningHintComesFromVerifierAndCannotProveCompletion (hint supply) FAIL PASS
TestGoalPlanningHintComesFromVerifierAndCannotProveCompletion (expected-value redaction) FAIL PASS

Public content review: reviewed the English README, skill additions, help, design analysis, benchmark instructions, final and initial evaluation reports/data, and synthetic examples. No new public images, personal paths, device identities or private app names are included.

@bitomule
bitomule marked this pull request as ready for review November 13, 2026 10:03
@bitomule
bitomule merged commit 94b6399 into main Nov 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant