Skip to content

Fix #255: Add escalated state field to enforce NoRestartAfterEscalation invariant#863

Merged
AlexMikhalev merged 1 commit intomainfrom
task/255-escalated-state-field
May 5, 2026
Merged

Fix #255: Add escalated state field to enforce NoRestartAfterEscalation invariant#863
AlexMikhalev merged 1 commit intomainfrom
task/255-escalated-state-field

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Implements the TLA+ Escalate action in the Rust supervisor.

  • Adds escalated: bool to AgentSupervisor
  • Sets escalated = true when should_restart() detects max restarts exceeded
  • Guards all restart actions with !self.escalated
  • Adds is_escalated() getter
  • Includes 4 unit tests covering escalation and the NoRestartAfterEscalation invariant

Refs #255

@AlexMikhalev AlexMikhalev merged commit 33a8d2c into main May 5, 2026
5 of 8 checks passed
@AlexMikhalev AlexMikhalev deleted the task/255-escalated-state-field branch May 5, 2026 09:40
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