Skip to content

feat(runtime): support external wait pause reasons - #446

Merged
zyssyz123 merged 7 commits into
mainfrom
codex/external-wait-reason-20261127
Nov 27, 2026
Merged

zyssyz123 merged 7 commits into
mainfrom
codex/external-wait-reason-20261127

Conversation

@zyssyz123

@zyssyz123 zyssyz123 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Search existing issues and pull requests to confirm this change is not a duplicate
  3. Open or identify the issue this pull request resolves or advances
  4. Use a Conventional Commits title for this pull request, and mark breaking changes with !
  5. Remember that the pull request title will become the squash merge commit message
  6. If CLA Assistant prompts you, sign CLA.md in the pull request conversation

Related Issue

Closes #445

Summary

ExternalWait gives hosts a shared pause reason for work such as human input and external Agent tasks. It carries a required wait_type with dot-separated ASCII identifiers and a required wait_id string whose meaning the host defines. Upstream Dify producers reserve dify.*. Graphon preserves the ID verbatim. Node events and runtime snapshots carry execution and frame identity, and the existing Human Input event and snapshot formats remain compatible.

The regression covers two frames running the same node, event and snapshot round trips, valid and invalid wait type names, and opaque IDs. The 54 focused tests pass on each of Python 3.12 and 3.13. All 29 documentation tests, Ruff, ty, import boundaries, and the lock check pass.

Review suggestion · Dify integration

Checklist

  • This pull request links the issue it resolves or advances
  • This pull request title follows Conventional Commits, and any breaking change is marked with !
  • If CLA Assistant prompted me, I signed CLA.md in the pull request conversation

zyssyz123 and others added 2 commits November 27, 2026 11:16
Persist the host wait ID and frame-local node execution identity through existing pause events and runtime snapshots. Leave job submission and result ownership with the host.
Comment thread src/graphon/entities/pause_reason.py Resolved
@zyssyz123
zyssyz123 merged commit 58e5c31 into main Nov 27, 2026
9 checks passed
@zyssyz123
zyssyz123 deleted the codex/external-wait-reason-20261127 branch November 27, 2026 07:45
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.

Support typed external wait pause reasons

2 participants