Skip to content

Replace goto with the verified goal command on main - #146

Merged
bitomule merged 2 commits into
mainfrom
goal-migration-main
Nov 13, 2026
Merged

bitomule merged 2 commits into
mainfrom
goal-migration-main

Conversation

@bitomule

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 main, where #143 is already merged. #145 merged into the original engine branch after #143 was squash-merged; its migration therefore did not reach main. This PR carries the same migration forward on main and preserves the worker fix already on main.

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.

Integration and editorial corrections

The carried-forward migration has the same runtime behavior and regression tests
as #145. Corrected stale introductory README/skill text that still said goto was
available and clarified that goal uses AXe snapshot/ref admission while MAV owns
the loop. Consolidated the adopted #144 corrections in the 0.35.0 release notes;
publication waits for both PRs. No 0.34.1 release is planned here.

Validated an uncommitted merge of this branch and #144, including the independent
AXe receipt/fallback changes, on the actual main base. make check, go vet,
seven benchmark tests and two packaging tests all pass. The temporary merge was
aborted after verification; this PR contains only migration and editorial work.
The README's restored historical report and return anchor were checked again.

* Replace goto with goal and publish explicit migration guidance

* Restore historical macOS scope report linked from README
@bitomule
bitomule merged commit 87f349e 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