Skip to content

[CXP-3538] Add zombieChildrenCount and zombieNetRate fields to Process proto#481

Merged
wiyu merged 1 commit into
masterfrom
wyu/CXP-3538
May 15, 2026
Merged

[CXP-3538] Add zombieChildrenCount and zombieNetRate fields to Process proto#481
wiyu merged 1 commit into
masterfrom
wyu/CXP-3538

Conversation

@wiyu
Copy link
Copy Markdown
Contributor

@wiyu wiyu commented May 11, 2026

Summary

  • Adds uint32 zombieChildrenCount = 28 and double zombieNetRate = 29 to the Process message in proto/process/agent.proto.
  • Regenerates process/agent.pb.go and process/agent.proto_builder.go via inv codegen.all.
  • Schema-only change — fields default to zero; population logic lands in a follow-up agent story.

Context

JIRA: CXP-3538

The process-agent today emits one record per zombie process. We plan on replacing that with per-parent aggregation: for each parent we report how many zombie children it has (zombieChildrenCount) and the net rate at which zombies are accumulating under it (zombieNetRate). Landing the schema here first so a release can be cut before the agent change starts depending on it.

Notes

  • double for zombieNetRate because the net rate can be negative (creations − reapings).

Test plan

  • inv codegen.all regenerates cleanly, no unexpected file changes
  • go build ./process/... ./proto/... ./pb/... ./gogen/... succeeds
  • go test ./process/... passes

🤖 Generated with Claude Code

@wiyu wiyu marked this pull request as ready for review May 15, 2026 17:44
@wiyu wiyu requested review from a team as code owners May 15, 2026 17:44
@wiyu wiyu changed the title Add zombieChildrenCount and zombieNetRate fields to Process proto [CXP-3538] Add zombieChildrenCount and zombieNetRate fields to Process proto May 15, 2026
Copy link
Copy Markdown

@kkhor-datadog kkhor-datadog left a comment

Choose a reason for hiding this comment

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

double for zombieNetRate because the net rate can be negative

I don't know what this means, there is no unsigned equivalent of the double data type

@wiyu
Copy link
Copy Markdown
Contributor Author

wiyu commented May 15, 2026

double for zombieNetRate because the net rate can be negative

I don't know what this means, there is no unsigned equivalent of the double data type

@kkhor-datadog - Maybe not the best wording from claude, but double was chosen as the value can be negative (in the case of zombies being reaped) and this may have a decimal digit.

Adds two new fields to the Process message in proto/process/agent.proto
to support per-parent zombie aggregation (CXP-3538, RFC-driven, parent
epic CXP-3442). Schema-only change — fields default to zero until a
follow-up agent story populates them. Backward-compatible: older
consumers ignore the new fields, newer consumers see zero defaults.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants