Repository navigation
cli, e2e, hero-demo: add ax fork task and wire Step 3 Turn 2 session reuse - #670
Open
aprajitaarora13 wants to merge 1 commit into
Open
aprajitaarora13 wants to merge 1 commit into
aprajitaarora13 wants to merge 1 commit into
Conversation
Collaborator
Collaborator
|
I don't think we should add a "fork" now as we haven't pinned down the exact design of Task inheritance lineage. |
Member
|
Agreed, let's come back to this in 0.5.0. |
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.
Part 2 of #649 (stacked on the
ForkTaskAPI/server PR).Adds the
ax forkCLI command, Kind E2E coverage for multi-turn snapshot forking, and Step 3 Turn 2 session reuse inhack/hero-demo/:cmd/ax/fork.go,cmd/ax/main.go,cmd/ax/task.go):ax fork task <source-task> <new-task> [--goal] [--session-id] [--env KEY=VALUE] [--label KEY=VALUE] [--no-resume] [-- command...], creating the forked task and resuming it by default unless--no-resumeis set.Parent Taskinax describe taskwhen populated.cmd/ax/fork_test.go.test/e2e/launcher/ax-harness,test/e2e/launcher_test.go):TestE2E_PureImageLauncherto fork Turn 2 from Turn 1's parked snapshot viaax fork task, verifying that Turn 2 inheritsspec.sessionId, sees Turn 1's workspace state (runs=2), completes with the new goal, and cleans up its snapshot tag onax delete task.hack/hero-demo/run.sh,hack/hero-demo/README.md):Completed+TASK_RESULT_SUCCEEDED+Outputrather than polling/workspace/.ax/launcher-done, forks Turn 2 (hero-demo-starter-task-turn2) from Turn 1 reusinghero-demo-session, verifies Turn 2 completes with inheritedSession IDandParent Task, and marks Step 3PASS.Closes #649.
Verified:
make verify(golangci-lint: 0 issues).go test ./cmd/ax/...passes.bash -n hack/hero-demo/run.shand./hack/hero-demo/run.sh --step 3pass.