Skip to content

Preserve requested and effective agent identity - #604

Merged
GraciousGazelles merged 27 commits into
mainfrom
agent/request-effective-identity-successor
Aug 15, 2026
Merged

GraciousGazelles merged 27 commits into
mainfrom
agent/request-effective-identity-successor

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Aug 14, 2026 •

Copy link
Copy Markdown
Collaborator

Restores phase-compatible requested-versus-effective identity for collab agent lifecycle items on the current main line.

Summary:

  • preserves requested model and reasoning effort separately from observed effective identity
  • keeps unknown terminal effective identity explicit instead of inferring it from request metadata
  • carries the contract through lifecycle replay, V1/V2 app-server projection, TUI rendering, analytics, usage, TypeScript, and Python SDK surfaces
  • adds focused regression coverage and exact hosted validation routes for the cross-surface candidate
  • shares the full-candidate validation fixture across the route and plan test suites
  • validates route priorities consistently across both validation planners
  • keeps the generated Python SDK byte-stable and exercises full regeneration in the targeted SDK lane

Validation:

  • just fmt
  • python3 .github/scripts/test_ci_planners.py (254 tests passed)
  • exact-head GitHub-hosted Python SDK targeted lane (run 31879026360)
  • exact-head pull-request checks, including SDK regeneration and cross-platform build/test lanes

Rust compilation and tests are intentionally delegated to GitHub-hosted validation.

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

Copy link
Copy Markdown

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 implements a phase-compatible collab-spawn identity contract across the system, ensuring that requested model/reasoning effort aliases are preserved at spawn start and observed effective selections are captured at terminal completion. It introduces four required nullable fields (requestedModel, requestedReasoningEffort, effectiveModel, and effectiveReasoningEffort) to the collaboration tool call schema and updates the analytics reducer, TUI rendering, Python SDK, and associated tests. Feedback from the review highlights opportunities to refine the TUI rendering match logic to prevent redundant output, eliminate duplicate validation logic and redundant function calls in the validation plan script, and optimize HashMap merging allocations in the collaboration agent lifecycle module.

Comment thread codex-rs/tui/src/multi_agents.rs Resolved
@GraciousGazelles
GraciousGazelles force-pushed the agent/request-effective-identity-successor branch 4 times, most recently from bda192e to 0fc5ff1 Compare August 14, 2026 21:40
@GraciousGazelles
GraciousGazelles force-pushed the agent/request-effective-identity-successor branch from 0fc5ff1 to 0f87dae Compare August 15, 2026 00:26
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Aug 15, 2026
Merged via the queue into main with commit 2d8a054 Aug 15, 2026
84 checks passed
@GraciousGazelles
GraciousGazelles deleted the agent/request-effective-identity-successor branch August 15, 2026 10:48
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