Skip to content

refactor: turn phase SM, Agent domains, steer cascade, typed exits#126

Merged
davidrhodus merged 1 commit into
mainfrom
refactor/turn-sm-domains-cascade-errors
Jul 20, 2026
Merged

refactor: turn phase SM, Agent domains, steer cascade, typed exits#126
davidrhodus merged 1 commit into
mainfrom
refactor/turn-sm-domains-cascade-errors

Conversation

@davidrhodus

Copy link
Copy Markdown
Contributor

Summary

  • Enforce legal TurnPhase transitions and keep cancel/failed paths tearing down turn-scoped backgrounds (including explore children).
  • Compose Agent into task/report/workspace/subagent domain holders; table-drive review quality repairs from REVIEW_QUALITY_CASCADE.
  • Soft-firewall hi-tools protocol vs infra; centralize one-shot exit codes on TurnOutcome and TopLevelErrorKind.

Test plan

  • cargo test --manifest-path crates/hi-agent/Cargo.toml --lib (630 passed)
  • cargo test --manifest-path crates/hi-cli/Cargo.toml -- one_shot_exit
  • cargo check --manifest-path crates/hi-cli/Cargo.toml

Encode legal TurnPhase transitions, mirror cancel/failed cleanup for
turn-scoped backgrounds and explore children, compose Agent into task/
report/workspace/subagent holders, table-drive review quality repairs
from REVIEW_QUALITY_CASCADE, soft-firewall hi-tools protocol vs infra,
and centralize one-shot exit codes on TurnOutcome plus TopLevelErrorKind.
@davidrhodus
davidrhodus merged commit 9cd2cfd into main Jul 20, 2026
@davidrhodus
davidrhodus deleted the refactor/turn-sm-domains-cascade-errors branch July 20, 2026 23: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.

1 participant