Registry Mirror
Skip to content

Conversation

@BenTheElder

Copy link
Copy Markdown
Collaborator

Workers are always unprivileged now, so delegation never fails to apply.

Fail at startup if it can't rather than quietly running actors without their cgroups, which drops their cpu limits and checkpoint cache isolation, and drop the flag both workers threaded through.

Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.)

eliminates dead code, reduces unnecessary complexity for implementing PRs like #3106 (comment)

Fixes #

AI use: AI assisted, I reviewed and tested it.

  • Tests pass
  • Docs updated

@EItanya Eitan Yarmush (EItanya) left a comment

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.

🤖 Initial AI-generated review.

No correctness regressions found in this pass at 11fdcbdc4. Two optional suggestions:

  1. Cover the new startup rejection — cgroup.go:65–69. Can we add a test that Delegate rejects a non-private cgroup namespace? The existing tests exercise namespace parsing, but wouldn't catch Delegate silently accepting that environment again. This would protect the main behavior introduced here.

  2. Remove the remaining forwarding method — hosted.go:109–112. Now that actorLeaf no longer uses service state, can we have its two callers call cgroup.OpenActorLeaf directly and drop the wrapper? That would finish the simplification.

Comment thread cmd/ateworker-microvm/hosted.go Resolved
@BenTheElder

Copy link
Copy Markdown
Collaborator Author

dropped the wrapper and the nil handling, added a test, took dims's additional patch w/ attribution

workers are always unprivileged now, so delegation never fails to apply. fail at startup if it can't rather than quietly running actors without their cgroups, which drops their cpu limits and checkpoint cache isolation, and drop the flag both workers threaded through.
@EItanya
Eitan Yarmush (EItanya) added this pull request to the merge queue Oct 23, 2026
Merged via the queue into agent-substrate:main with commit 1d62584 Oct 23, 2026
15 checks passed
@BenTheElder
Benjamin Elder (BenTheElder) deleted the require-cgroup-delegation branch October 23, 2026 17:19
Jay (jay23606) added a commit to jay23606/substrate that referenced this pull request Nov 29, 2026
…#3110)

Workers are always unprivileged now, so delegation never fails to apply.

Fail at startup if it can't rather than quietly running actors without
their cgroups, which drops their cpu limits and checkpoint cache
isolation, and drop the flag both workers threaded through.

<!-- The PR title becomes the release note. Write it for users. -->

Why is this needed? (Or link the issue. Open one first for features,
API, install or CI changes.)

eliminates dead code, reduces unnecessary complexity for implementing
PRs like
agent-substrate#3106 (comment)

Fixes #

<!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author
trailers. -->
AI use: AI assisted, I reviewed and tested it.

<!-- Breaking change? Describe what users must do on upgrade and ask for
the `breaking-change` label. -->

- [x] Tests pass
- [x] Docs updated

---------

Co-authored-by: Davanum Srinivas <davanum@gmail.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.

3 participants