You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ax-server accepts resource names that Substrate rejects (RFC 1123); failure surfaces asynchronously as ActorCreationFailed #370
ax apply accepts any metadata.name. Names are only validated when the controller creates the Substrate ActorTemplate/Actor, which require an RFC 1123 label. A name with an uppercase letter is therefore accepted by ax-server, stored in Redis, and then fails asynchronously with a confusing ActorCreationFailed condition; the user has to run ax describe (or read controller logs) to learn that the name was the problem.
ax apply -f task.yaml prints task.ax.io/Task-With-Caps created. Seconds later:
Ready False ActorCreationFailed creating actor default/Task-With-Caps: rpc error: code = InvalidArgument desc = actor.metadata.name: Invalid value: "Task-With-Caps": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-' ...
Because the controller also derives the template name as <task>-tmpl-<hash>, the same failure hits the template first and is swallowed as a WARN (see #366).
Expected
ax-server should reject the manifest at apply time with the same rule ([a-z0-9]([-a-z0-9]*[a-z0-9])?, max 63 chars), for Task, Gateway, Workspace and Model names alike.
Suggested fix
Add the check to the manifest validation in internal/server/server.go (one regexp shared by all four kinds) and a table test with a few invalid names.
Activity
feat(server): reject resource names that are not RFC 1123 labels
feat(server): reject resource names that are not RFC 1123 labels (goo…
Remove experimental Antigravity planner integration (google#370)