Skip to content

Replace goto with the verified goal command - #145

Merged
bitomule merged 2 commits into
worktree-t-mav-goal-enginefrom
goal-command-migration
Nov 13, 2026
Merged

bitomule merged 2 commits into
worktree-t-mav-goal-enginefrom
goal-command-migration

Conversation

@bitomule

@bitomule bitomule commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Replaces goto with the verified goal command after the complete three-arm comparison passed in #143: goal 30/30 verified positives versus goto 20/30, with zero false goal success claims. Navigation and action share MAV's own engine; it never invokes AXe's autonomous agent.

Old CLI calls now fail before configuration, VM attachment, target selection, model calls or input, with a shell-quoted migration command. --arrived-when becomes --succeeded-when; YAML goto becomes goal and arrivedWhen becomes succeededWhen. Old YAML is rejected before VM or matrix preparation, including nested blocks and includes. Flow input declarations pass through the common parser, preventing collisions with objective literals.

Migrates active tests, synthetic flow fixtures, README, skill and hook advice. The historical loop is compiled only into tests, preserving the executed baseline regression. Adds the migration guide and 0.35.0 release notes with CLI/YAML before-and-after examples. Historical design reports remain labeled as such; old speed figures are not reused as goal claims.

Validation

  • make check: PASS; all Go tests and CLI build.
  • go vet ./...: PASS; 7 benchmark tests and 2 packaging tests: PASS.
  • Five valid migrated examples lint successfully; the missing-condition example is rejected. The built CLI returns goto_removed and an equivalent goal command.
  • Independent correctness and state-machine reviews are clean after fixing the reproduced VM-before-YAML-validation defect.
  • Six migration guard ablations: executed assertion FAIL without the guard, PASS restored (CLI retirement, YAML retirement/property, internal flow refusal, flag translation, flow input collision).
  • Flow-input regression before fix: loader accepted the collision and execution reached tools; restored: both reject it before any tool lookup or command. Required-field diagnostics also pass.
  • VM regression before fix: vm_unavailable, two tool lookups. Restored: flow_invalid containing goto_removed, zero calls in single and matrix modes.
  • Hook before migration: FAIL, advice lacked mav goal; migrated hook and its three targeted tests: PASS.

The migrated binary was rechecked on the fixture after retirement: direct navigation,
form submission and transition all verified; the false-final case remained stuck
without a success claim. This four-case smoke is not substituted for the complete
120-trial acceptance cohort in #143.

Focused regression output (the guards were restored before the green runs):

Before: TestGoalFlowLoadRejectsDeclaredInputQuotedLiteralCollision FAIL
        LoadFlow accepted an input that replaces quoted objective text
Before: TestGoalFlowExecutionRejectsInputCollisionBeforeResolvingConfigOrTools FAIL
        goal_blocked, lookups=18, commands=1
After:  both tests PASS, no tool lookup or command

Before: TestGoalMigrationReviewOldFlowDiagnosedBeforeVMAttachment FAIL
        vm_unavailable, calls=2
After:  TestGoalRetiredFlowDiagnosedBeforeVMAttachmentOrMatrix PASS
        single and matrix: flow_invalid / goto_removed, calls=0

Run the current guards with go test ./internal/mav -run 'Test(Retired|FlowRetirement|GotoMigration|GoalFlow|GoalRetiredFlow)' -count=1.

Publication of MAV 0.35.0 and Homebrew installed verification remain declared post-merge work for this task, after both dependent PRs merge. This PR targets the engine branch from #143.

Public content review: read the English README, skill, help, hook advice, migration guide, changelog, release notes and YAML examples; checked Spanish text and historical notices. New values and filenames are synthetic. No new public images, personal paths, device identities or private app names are included.

Editorial link recovery

The README linked docs/macos-scope-evaluation.md, but that file had never reached
main. History inspection found its creation at c95d354 and revisions 2161bc7,
185fa06 and 43ecc0608f9a2a90108734a3be47fa0db3b5cb1f. Restored that last existing
revision, including its macOS 26 TCC correction, with a historical notice and
anonymized reference-app names/private file details. No new evaluation, current
recommendation or functional work is added.

Editorial validation: the README destination is now a tracked file; its return
link resolves to README's existing “What does not carry over from iOS” anchor;
Markdown fences are paired. Read the recovered Spanish document and its notice.
Original historical blob SHA256:
b6fd5d2c6619d6b2a30a01db2a0bd1e8b9ea20a8f510ba14a90bbbed4be956ab.
The historical phases remain historical proposals, not a new task plan.

@bitomule
bitomule marked this pull request as ready for review November 13, 2026 10:04
@bitomule
bitomule merged commit a5b5ff2 into worktree-t-mav-goal-engine Nov 13, 2026
1 check passed
bitomule added a commit that referenced this pull request Nov 13, 2026
* Replace goto with the verified goal command (#145)

* Replace goto with goal and publish explicit migration guidance

* Restore historical macOS scope report linked from README

* Align release guidance with goal retirement and AXe corrections
bitomule added a commit that referenced this pull request Dec 2, 2026
* Replace goto with goal and publish explicit migration guidance

* Restore historical macOS scope report linked from README
bitomule added a commit that referenced this pull request Dec 3, 2026
* Replace goto with goal and publish explicit migration guidance

* Restore historical macOS scope report linked from README
bitomule added a commit that referenced this pull request Dec 3, 2026
* Replace goto with goal and publish explicit migration guidance

* Restore historical macOS scope report linked from README
bitomule added a commit that referenced this pull request Dec 3, 2026
* Replace goto with goal and publish explicit migration guidance

* Restore historical macOS scope report linked from README
bitomule added a commit that referenced this pull request Dec 3, 2026
* Replace goto with goal and publish explicit migration guidance

* Restore historical macOS scope report linked from README
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