Skip to content

fix(flows): expose unrecoverable turn failures - #22

Merged
futrime merged 2 commits into
mainfrom
fix/flow-unrecoverable-export
Aug 24, 2026
Merged

fix(flows): expose unrecoverable turn failures#22
futrime merged 2 commits into
mainfrom
fix/flow-unrecoverable-export

Conversation

@DongyunZou

@DongyunZou DongyunZou commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • expose Unrecoverable through the backend-neutral hmz.flows API
  • document why flow authors need the exception in bounded retry loops
  • add a contract test proving the flow-facing name is the agent-layer exception object
  • remove the pre-existing README trailing whitespace that made the repository's all-files pre-commit CI fail on a clean runner

Why

The official humanize1:gen-plan flow must distinguish transient turn failures from failures that cannot succeed on retry. Importing hmz.agents directly would violate the flow layering contract, so the vocabulary needs to be forwarded by hmz.flows.

This is the prerequisite for humanfia/flowverse#2, which contains the complete backend-neutral gen-plan convergence fix.

Verification

  • uv run pytest -q tests/test_flow_interface.py
  • uv run pre-commit run --all-files
  • GitHub CI check job passed on commit d66ad04

@futrime
futrime merged commit 4c57a90 into main Aug 24, 2026
6 checks passed
@futrime
futrime deleted the fix/flow-unrecoverable-export branch August 24, 2026 14:54
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.

2 participants