Skip to content

Simplify trajectory capture scopes - #779

Merged
bradhilton merged 2 commits into
mainfrom
agent/trajectory-round3
Jul 27, 2026
Merged

Simplify trajectory capture scopes#779
bradhilton merged 2 commits into
mainfrom
agent/trajectory-round3

Conversation

@bradhilton

Copy link
Copy Markdown
Collaborator

Summary

  • add art.no_capture() as a ContextVar capture barrier that hides enclosing trajectories while allowing explicit nested capture
  • remove the unused TrajectoryGroup context manager, current_trajectory_group(), and implicit trajectory-to-group collection
  • keep art.trajectory_group() as a pure concurrent aggregator and isolate iterable materialization, validation, and child execution from ambient capture

Validation

  • capture suite: 70 passed
  • complete trajectory suite: 268 passed
  • full ty check src tests passed
  • Ruff, formatting, lock consistency, and sdist/wheel build passed

The removed group-context API was introduced after the latest published release and has no repository consumers.

@bradhilton
bradhilton merged commit 76bb2d6 into main Jul 27, 2026
7 checks passed
@bradhilton
bradhilton deleted the agent/trajectory-round3 branch July 27, 2026 21:23
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