Skip to content

Reject task runtime edits that existing actors cannot apply - #4

Open
fkautz wants to merge 2 commits into
mainfrom
fix/353-task-spec-edits
Open

fkautz wants to merge 2 commits into
mainfrom
fix/353-task-spec-edits

Conversation

@fkautz

@fkautz fkautz commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Upstream PR creation is restricted, so this review PR is hosted in the fork. Its base matches google/ax main.

AX currently accepts image/command/environment edits but keeps the actor bound to its original template. Make runtime fields immutable at the update API and return FailedPrecondition with delete-and-recreate guidance. Suspend/resume and gateway references remain editable; default-image normalization preserves equivalent reapplications. This deliberately avoids automatic replacement of a stateful actor.

Fixes google#353.

TDD and validation

This branch starts independently from origin/main (d8ed0fe) and has two commits:

  1. e553da6 adds the regression and fails on the original behavior.
  2. fd3564e implements the fix; the regression and complete suite pass.

Reproduce the red/green transition by checking out either commit and running:

go test ./internal/server -run '^TestTaskRuntimeSpecEditsAreRejected$' -count=1 -v

Validated: go test ./... -count=1, targeted -race tests, go mod tidy with unchanged module files, make build, and git diff --check.

Review

Codex review: no actionable regressions identified; the new API tests also passed in the review environment. Some reviewer test runs were blocked by its listener sandbox; the validation above was run separately with local listener access.

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.

Task spec edits provision a new template but leave the actor on its old image

1 participant