Skip to content

refactor(python): type durable authoring runtime boundaries - #369

Merged
swkeever merged 8 commits into
mainfrom
skeever/python-native-any-boundaries
Sep 24, 2026
Merged

swkeever merged 8 commits into
mainfrom
skeever/python-native-any-boundaries

Conversation

@swkeever

Copy link
Copy Markdown
Collaborator

Durable function authoring used Any and casts around the optional execution runtime, so callback, batch-result, and wait-state mistakes could pass static checks. This change models that runtime with typed protocols, carries handler and state types through the public API, and validates dynamic callback and duration inputs without changing package entrypoints or requiring the optional runtime for ordinary SDK users.

The tests now use typed runtime fixtures and check retry, wait, batch, default-step, and duration behavior before starting the local scheduler. Native mypy and basedpyright rules enforce explicit-Any restrictions for this module and its tests. The installed wheel retains 100% public type completeness without --ignoreexternal.

Validation: poe checks passes on this rebased head (2,237 tests, 100% runtime line and branch coverage, wheel/sdist and optional-dependency consumers). The canonical poe quality mutation gate passed immediately before a clean rebase over a disjoint client test: 756 killed, 338 statically invalid, zero survivors, uncovered mutants, timeouts, or crashes. CI will rerun the complete gate on this head.

@swkeever
swkeever marked this pull request as ready for review September 24, 2026 13:16
@swkeever
swkeever requested a review from a team as a code owner September 24, 2026 13:16
@swkeever

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T13:22:43.822606Z 4e783b2 Manual request
🔒 Security Review ✅ Completed 2026-09-24T13:22:22.635942Z 4e783b2 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 4e783b28f2

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 4e783b28f2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@swkeever
swkeever merged commit 0e85b2f into main Sep 24, 2026
9 checks passed
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