Skip to content

fix(subagent): clearer role vocab, lifecycle signals, and eval ergonomics (v0.8.53)#2684

Open
Hmbown wants to merge 1 commit into
codex/v0.8.53from
codex/v0.8.53-subagent-usability
Open

fix(subagent): clearer role vocab, lifecycle signals, and eval ergonomics (v0.8.53)#2684
Hmbown wants to merge 1 commit into
codex/v0.8.53from
codex/v0.8.53-subagent-usability

Conversation

@Hmbown
Copy link
Copy Markdown
Owner

@Hmbown Hmbown commented Jun 3, 2026

Part of the v0.8.53 stabilization cycle (PR group 3 — subagent usability & lifecycle). Targets the integration branch codex/v0.8.53.

Issues addressed

Scope / deconfliction

Verification

  • cargo test -p codewhale-tui --bins3948 passed, 0 failed.
  • cargo clippy -p codewhale-tui --bins → clean.
  • New tests: full role-vocabulary acceptance + error wording, agent_name session resolution, duplicate-name diagnostics, clipped-result sentinel, child-model annotation, and agent_eval/agent_close default-active.

🤖 Generated with Claude Code

…mics

Make the sub-agent surface easier for less-capable models to drive:

- Unify role/type vocabulary (#2649): normalize_role_alias now accepts the
  full set SubAgentType::from_str accepts (reviewer/implementer/verifier/...),
  and SubAgentType::from_str learns `planner`, so the dual-validation pass no
  longer rejects natural roles with a stale four-value hint. Error strings and
  schema descriptions now enumerate the real accepted aliases.
- agent_eval/agent_close always active (#2605) so a first call executes instead
  of hydrating its schema and forcing a double-invoke; both accept an
  `agent_name` session alias (#2650).
- Self-diagnosing name conflicts (#2656): the duplicate-name error names the
  conflicting agent_id and its status.
- Self-describing completion sentinels (#2658): subagent.done now carries
  result_clipped / summary_complete / next_action so the parent knows whether
  to trust the previous-line summary or call agent_eval.
- Actionable child-model-unavailable diagnostics (#2653): a provider 403/404
  is annotated with the model id and recovery path instead of a bare error.

Tests: role vocabulary acceptance + error wording, agent_name resolution,
duplicate-name diagnostics, clipped-result sentinel, child-model annotation,
agent_eval/agent_close default-active. Full tui suite green (3948), clippy clean.

Targets codex/v0.8.53 (v0.8.53 stabilization).
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmbown has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@Hmbown Hmbown added this to the v0.8.53 milestone Jun 3, 2026
@Hmbown Hmbown added v0.8.53 Targeting v0.8.53 whaleflow WhaleFlow branch/leaf workflow runtime and workflow mode branch-leaf Branch-and-leaf orchestration semantics labels Jun 3, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the sub-agent management system by keeping agent_eval and agent_close active to prevent double-invoking, expanding and aligning the accepted role aliases (e.g., adding planner, reviewer, verifier, and tool_agent aliases), and introducing self-describing completion fields (result_clipped, summary_complete, next_action) to the sub-agent sentinel. It also improves error handling by annotating child model access errors with actionable recovery hints and providing clearer duplicate session name errors. Relevant tests and documentation have been updated accordingly. There are no review comments to address, so no additional feedback is provided.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch-leaf Branch-and-leaf orchestration semantics v0.8.53 Targeting v0.8.53 whaleflow WhaleFlow branch/leaf workflow runtime and workflow mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant