Skip to content

fix(runtime): guard paused agent resume transitions#3927

Open
nguyenlnp wants to merge 1 commit into
orchestration-agent:mainfrom
nguyenlnp:fix/resume-runtime-race-3926
Open

fix(runtime): guard paused agent resume transitions#3927
nguyenlnp wants to merge 1 commit into
orchestration-agent:mainfrom
nguyenlnp:fix/resume-runtime-race-3926

Conversation

@nguyenlnp
Copy link
Copy Markdown

Fixes #3926

Summary

  • add paused/resuming runtime states with guarded state-version transitions
  • reject stale, duplicate, or invalid resume attempts before emitting SIGCONT
  • record resume rejection/state-transition metrics for auditability
  • add deterministic regression coverage for idempotent resume behavior

Tests

  • python3 -m pytest tests/test_runtime.py -q
  • python3 -m py_compile src/agent/runtime.py tests/test_runtime.py
  • git diff --check

/claim #3926

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.

[ Bounty $8k ] [ Runtime ] Avoid race when resuming paused agents — resume runtime

1 participant