Skip to content

feat: expose operation attempt in contexts#549

Merged
zhongkechen merged 5 commits into
mainfrom
codex/expose-operation-attempt
Jul 17, 2026
Merged

feat: expose operation attempt in contexts#549
zhongkechen merged 5 commits into
mainfrom
codex/expose-operation-attempt

Conversation

@zhongkechen

@zhongkechen zhongkechen commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • expose the 1-based current attempt on StepContext
  • expose the same attempt on WaitForConditionCheckContext
  • replace process-global retry counters in the step retry examples with durable attempt-based behavior
  • add regression coverage proving retry behavior is independent of warm Lambda process state

Testing

  • hatch run test:all (2887 passed, 2 skipped)
  • hatch run dev-examples:test (81 passed, 2 skipped)
  • affected retry example tests on the final rebased branch (4 passed)
  • hatch run types:check
  • hatch fmt --check (core and examples packages)

Closes #526
Closes #520

@zhongkechen
zhongkechen merged commit 6aa6a02 into main Jul 17, 2026
12 checks passed
@zhongkechen
zhongkechen deleted the codex/expose-operation-attempt branch July 17, 2026 22:50
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.

[Feature]: Expose the number of attempts to the operation context Fix flaky cloud retry example tests with retained SAM stacks

3 participants