Skip to content

Replace actor template namespace/name pair with ActorTemplate substrate ObjectRef in internal protos - #1304

Open
Zoe Zhao (zoez7) wants to merge 1 commit into
agent-substrate:mainfrom
zoez7:actor-template-objectref
Open

Replace actor template namespace/name pair with ActorTemplate substrate ObjectRef in internal protos#1304
Zoe Zhao (zoez7) wants to merge 1 commit into
agent-substrate:mainfrom
zoez7:actor-template-objectref

Conversation

@zoez7

Copy link
Copy Markdown
Collaborator

Both Atelet and Ateom internal APIs consume actor template namespace/name pair to telemetry. Updated them to use the new Substrate ActorTemplate proto instead of the legacy CRD one.

@zoez7
Zoe Zhao (zoez7) force-pushed the actor-template-objectref branch from 71b19ba to dfe7e8c Compare August 29, 2026 00:50

message TerminateWorkloadRequest {
reserved 4, 5;
reserved "actor_template_namespace", "actor_template_name";

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.

Don't reserve fields. Just drop them and reuse the IDs. We are breaking the API anyways.


// ObjectRef references a Substrate resource by its (atespace, name) identity.
// Mirrors ateapipb.ObjectRef, which internal protos do not import.
message ObjectRef {

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.

ObjectRef is a concept of the control plane API (mgmt plane) where we need a way for resources to reference another resources. We could introduce the same concept in the atelet API (control plane), although I'm not sure how useful that is.

If we adopt it, we should use it consistently, for example, we have atespace, actor_name , which could be an ObjectRef too, but for actors we also have an actor_uid which isn't in the ObjectRef (I guess that could be a separate top level field alongside actor ?

ObjectRef actor;
string actor_uid;
ObjectReg  actor_template;

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.

2 participants