Skip to content

Resources carry immutable labels, with actor defaults from templates - #3208

Open
Quentin Bisson (QuentinBisson) wants to merge 3 commits into
agent-substrate:mainfrom
QuentinBisson:feat/actor-labels
Open

Quentin Bisson (QuentinBisson) wants to merge 3 commits into
agent-substrate:mainfrom
QuentinBisson:feat/actor-labels

Conversation

@QuentinBisson

@QuentinBisson Quentin Bisson (QuentinBisson) commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Resources cannot carry their creator's identity, so downstream integrations cannot attribute actors beyond their names. Part of #186, scoped to creation-time labels.

Change

Add immutable metadata.labels in Kubernetes label format, bounded to 16 entries and 1024 bytes of keys and values together. ActorTemplate.actor_labels supplies defaults, actor values win, and the merged set is validated. Updates reject label changes and omission; kubectl ate create actor --labels sets them.

Treat nil and empty maps and slices equally during validation. PostgreSQL benchmarks use distinct keys and values: the snapshot fixture used TOAST with 4 KiB of labels and stayed inline at 1 KiB. Selectors and label mutation remain follow-ups.

Comment thread api/ateapi/v1/ateapi.proto Resolved
Comment thread api/ateapi/v1/ateapi.proto Resolved
Comment thread api/ateapi/v1/ateapi.proto Resolved
Comment thread api/ateapi/v1/ateapi.proto Resolved
@QuentinBisson Quentin Bisson (QuentinBisson) changed the title Actors carry labels set at creation, with defaults from their template Resources carry immutable labels, with actor defaults from templates Nov 12, 2026
@QuentinBisson

Copy link
Copy Markdown
Contributor Author

Thank you, your comments are addressed

Actors get labels at creation, in Kubernetes label format, with at most 64
entries and 4096 bytes of keys and values together; keys under ate.dev/ are
reserved. An ActorTemplate's actor_labels are defaults, and the actor's own
value wins on a key conflict. Labels are immutable after creation.

Part of agent-substrate#186.

Signed-off-by: QuentinBisson <[email protected]>

This branch has not been deployed

No deployments
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 area/api-machinery area/cli kind/feature An enhancement / feature request or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants