Skip to content

agent-sandbox: remove the per-request Job path - #1179

Open
huydhn wants to merge 1 commit into
agent-sandbox/k8s-claimsfrom
agent-sandbox/k8s-remove-jobs
Open

huydhn wants to merge 1 commit into
agent-sandbox/k8s-claimsfrom
agent-sandbox/k8s-remove-jobs

Conversation

@huydhn

@huydhn huydhn commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Once tasks run through claims, the Job path is dead code, and it keeps RBAC the dispatcher no longer needs (create Jobs, read pod logs). Removing it leaves one way to run a task and narrows the dispatcher to creating and deleting claims.

  • Deletes the Job builder/poller/log reader and the jobs + pods + pods/log RBAC; the dispatcher can now only create, get and delete sandbox claims.
  • The admission policy becomes pod-only (agent-sandbox-task-pods, same rules minus the Job-level ones) beside the claims policy; deploy.sh prunes the old agent-sandbox-task-jobs objects.
  • The task image's ENTRYPOINT becomes sandboxd; tests and docs assert the SandboxTemplate instead of the Job manifest.

Stack created with GitHub Stacks CLI • Give Feedback 💬

@huydhn
huydhn added this pull request to stack #1180 November 12, 2026 17:49
@huydhn
huydhn force-pushed the agent-sandbox/k8s-remove-jobs branch from 5141576 to 9659d84 Compare November 12, 2026 18:11
@huydhn huydhn changed the title agent sandbox/k8s remove jobs agent-sandbox: remove the per-request Job path Nov 12, 2026
@huydhn
huydhn force-pushed the agent-sandbox/k8s-remove-jobs branch from 9659d84 to 5597f86 Compare November 12, 2026 19:14
@huydhn
huydhn removed this pull request from stack #1180 November 12, 2026 19:14
@huydhn
huydhn added this pull request to stack #1183 November 12, 2026 19:15
@huydhn
huydhn force-pushed the agent-sandbox/k8s-remove-jobs branch from 5597f86 to 63d5c30 Compare November 12, 2026 21:48
@huydhn
huydhn force-pushed the agent-sandbox/k8s-remove-jobs branch 2 times, most recently from bb2ef87 to e66b886 Compare November 27, 2026 23:12
@huydhn
huydhn force-pushed the agent-sandbox/k8s-remove-jobs branch from e66b886 to 8fd55f0 Compare November 28, 2026 01:41
> - Delete job_manifest/job_state/task_result and the Job RBAC: every task now runs through a SandboxClaim and sandboxd, so the dispatcher holds no pod or Job access at all.
> - Admission policy is now pod-only (agent-sandbox-task-pods) plus the claims policy; deploy.sh prunes the old agent-sandbox-task-jobs policy and binding.
> - The task image's ENTRYPOINT is sandboxd; tests and docs assert the SandboxTemplate instead of the Job manifest.
@huydhn
huydhn force-pushed the agent-sandbox/k8s-remove-jobs branch from 8fd55f0 to ff21008 Compare November 28, 2026 01:54
@huydhn
huydhn requested a review from izaitsevfb November 28, 2026 09:01
@huydhn
huydhn marked this pull request as ready for review November 28, 2026 09:02

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant