Skip to content

orchestrator-sm: carry recovery attempt on RecoverComponent - #407

Draft
rusty1968 wants to merge 1 commit into
OpenPRoT:mainfrom
rusty1968:sm-recover-attempt
Draft

orchestrator-sm: carry recovery attempt on RecoverComponent#407
rusty1968 wants to merge 1 commit into
OpenPRoT:mainfrom
rusty1968:sm-recover-attempt

Conversation

@rusty1968

@rusty1968 rusty1968 commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Effect::RecoverComponent now carries { id, attempt } instead of just id. attempt is the component's consecutive-recovery count (0 on the first try), taken straight from the core's retry counter.

Passing it in-band lets the Platform driver pick a recovery source per attempt (e.g. slot A → slot B → golden) without keeping its own counter, which could drift from the core's since the driver never sees when a recovery succeeds.

No behavior change in the core: the retry cap is still measured against the same counter; attempt only rides out on the effect. Tests updated.

Emit the per-component retry count as RecoverComponent { id, attempt } so
the driver picks a recovery source per attempt without its own counter.
@rusty1968
rusty1968 force-pushed the sm-recover-attempt branch from ba45811 to e69afa8 Compare August 7, 2026 23:08
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