Skip to content

ateapi: ActorStatus.state_transition_time records when the state last changed - #2647

Open
Davanum Srinivas (dims) wants to merge 2 commits into
agent-substrate:mainfrom
dims:actor-state-transition-time
Open

Davanum Srinivas (dims) wants to merge 2 commits into
agent-substrate:mainfrom
dims:actor-state-transition-time

Conversation

@dims

@dims Davanum Srinivas (dims) commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

kubectl ate get actors now shows how long each actor has been in its current state in an IN STATE column. A new status.state_transition_time field records state changes; update_time cannot provide this because it changes on every write.

  • Tests pass: go test -race on controlapi, the kubectl-ate printer and apivalidation; go vet; hack/verify/codegen.sh and hack/verify/proto-fmt.sh.
  • Appropriate changes to documentation are included in the PR: docs/api-guide.md.

@dims Davanum Srinivas (dims) changed the title [WIP] ateapi: ActorStatus.state_transition_time records when the state last changed ateapi: ActorStatus.state_transition_time records when the state last changed Oct 14, 2026
@dims
Davanum Srinivas (dims) marked this pull request as ready for review October 14, 2026 14:13
@dims
Davanum Srinivas (dims) force-pushed the actor-state-transition-time branch 3 times, most recently from 3c2e5ce to c60c79e Compare October 17, 2026 01:45
ActorStatus.state_transition_time is stamped on every state change and at
creation; `kubectl ate get actors` shows it as IN STATE. update_time moves
on every write, so time in a state was not knowable.
The whole-actor comparisons list the server-stamped fields to skip;
the new timestamp is one of them. Create asserts it is set.
@bowei Bowei Du (bowei) added area/api User-facing API changes area/api-machinery area/cli kind/feature An enhancement / feature request or implementation labels Oct 19, 2026
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.

2 participants