Skip to content

Add ResourceMetadata to both actor and atespace resources.#409

Merged
Haven Xia (HavenXia) merged 1 commit into
agent-substrate:mainfrom
juli4n:api_alignment
Jul 9, 2026
Merged

Add ResourceMetadata to both actor and atespace resources.#409
Haven Xia (HavenXia) merged 1 commit into
agent-substrate:mainfrom
juli4n:api_alignment

Conversation

@juli4n

@juli4n Julian Gutierrez Oschmann (juli4n) commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Replace actor_id and atespace name with metadata field which holds common fields.

This commit only changes the ate-apiserver to support this field, but intentionally skips upstream / downstream systems (such as kubectl-ate, atenet, atelet, etc) to keep the scope manageable. This will come in subsequent PRs.

Subsequent PRs will rework Create/Update/Delete/List methods to align with the style guide (validations, preconditions, etc).

#149

atespace := &ateapipb.Atespace{
Metadata: &ateapipb.ResourceMetadata{Name: req.GetName()},
}
stored, err := s.persistence.CreateAtespace(ctx, atespace)

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.

nit: storedAtespace, like storedActor in create_actor.go.

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.

Or both use stored as I saw in update_actor.go there's just updated.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

Comment thread pkg/proto/ateapipb/ateapi.proto Outdated
// metadata.atespace is always empty; the atespace's identity is metadata.name.
message Atespace {
string name = 1;
// Common resource metadata: uid, version, timestamps.

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.

nit: missing name before uid?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@HavenXia Haven Xia (HavenXia) added the area/api User-facing API changes label Jul 8, 2026
Replace actor_id and atespace name with `metadata` field which
holds common fields.

This commit only changes the ate-apiserver to support this field, but
intentionally skips upstream / downstream systems (such as kubectl-ate,
atenet, atelet, etc) to keep the scope manageable. This will come in subsequent PRs.
@HavenXia Haven Xia (HavenXia) merged commit af1f005 into agent-substrate:main Jul 9, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api User-facing API changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants