Skip to content

Fix orphaned golden actors by using deterministic actor IDs in ActorTemplateReconciler#526

Open
Troy Chiu (troychiu) wants to merge 1 commit into
agent-substrate:mainfrom
troychiu:fix-orphaned-golden-actors
Open

Fix orphaned golden actors by using deterministic actor IDs in ActorTemplateReconciler#526
Troy Chiu (troychiu) wants to merge 1 commit into
agent-substrate:mainfrom
troychiu:fix-orphaned-golden-actors

Conversation

@troychiu

Copy link
Copy Markdown
Contributor

This PR fixes an issue where reconciliation retries in PhaseInitial left orphaned actors in ateapi when CreateActor succeeded but status update failed.

Fixes #525

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@troychiu
Troy Chiu (troychiu) force-pushed the fix-orphaned-golden-actors branch from d81b4cb to 0944556 Compare July 24, 2026 21:37
switch at.Status.Phase {
case atev1alpha1.PhaseInitial:
actorID := uuid.NewString()
actorName := string(at.UID)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kubernetes UIDs (https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids) should be compatible with resource names, which are enforced by standard RFC-1123 DNS label rules.

@EItanya Eitan Yarmush (EItanya) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

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.

ActorTemplateReconciler orphans golden actors in ateapi on reconciliation retries

2 participants