Skip to content

Add executor runtime lease reclamation - #1753

Open
Jesse McGinnis (brayzn) wants to merge 4 commits into
agent-substrate:mainfrom
brayzn:codex/olympus-runtime-lease
Open

Jesse McGinnis (brayzn) wants to merge 4 commits into
agent-substrate:mainfrom
brayzn:codex/olympus-runtime-lease

Conversation

@brayzn

Copy link
Copy Markdown

Summary

  • add a durable actor runtime lease with token/generation fencing and heartbeat renewal
  • reclaim expired executor-owned actors natively before releasing their workers
  • preserve the router's read-only ResumeActor fast path and use an explicit executor lease claim
  • keep golden actor reconciliation lease-aware and preserve durable snapshots on crash

Recovery contract

The executor renews every 30 seconds. A 120-second lease expires without heartbeats; the ate-api reaper claims the expired row, terminates the live workload, releases the worker, marks the actor CRASHED, and removes the lease. A running command is not resumed after executor death; its durable workspace snapshot remains the recovery input.

Validation

  • go test ./cmd/ateapi
  • go test -count=1 ./cmd/ateapi/internal/controlapi ./cmd/ateapi/internal/store/atepg ./cmd/atenet/internal/router/ingress
  • go test ./... (all relevant packages pass; existing non-TTY color tests fail in internal/e2e)

Maya Wang (mayawang) and others added 4 commits September 9, 2026 08:37
…container can collide with it (agent-substrate#1547)

mirroring agent-substrate#1496


> It's a good idea to open an issue first for discussion.

- [ ] Tests pass
- [x] Appropriate changes to documentation are included in the PR
…bstrate#1573)

Cherry-picking agent-substrate#1565

- [ x ] Tests pass
- [ x ] Appropriate changes to documentation are included in the PR
@google-cla

google-cla Bot commented Sep 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

4 participants