Skip to content

Add Pi invocation execution with fixture-based integration tests#832

Draft
dersam wants to merge 1 commit intodersam/pi-provider-message-parsingfrom
dersam/pi-provider-invocation-execution
Draft

Add Pi invocation execution with fixture-based integration tests#832
dersam wants to merge 1 commit intodersam/pi-provider-message-parsingfrom
dersam/pi-provider-invocation-execution

Conversation

@dersam
Copy link
Contributor

@dersam dersam commented Mar 2, 2026

Complete the Pi provider's end-to-end execution path with:

  • Duration tracking: measure wall-clock time via Process::CLOCK_MONOTONIC
    and record in Stats#duration_ms on successful completion
  • Fixture-based integration tests using use_command_runner_fixture:
    • pi_simple_response: single-turn Q&A, verifies response extraction,
      session ID, turn count, token usage, cost, and duration
    • pi_tool_use_response: multi-turn with tool call (read), verifies
      final text response after tool use, 2 turns, accumulated stats
  • Functional test for simple_pi_agent.rb example workflow, verifying
    the full Roast workflow execution path with CommandRunner stubbing
  • Example workflow: examples/simple_pi_agent.rb

14 new tests (42 Pi invocation + 1 functional), full suite: 1000 tests.

Copy link
Contributor Author

dersam commented Mar 2, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Complete the Pi provider's end-to-end execution path with:

- Duration tracking: measure wall-clock time via Process::CLOCK_MONOTONIC
  and record in Stats#duration_ms on successful completion
- Fixture-based integration tests using use_command_runner_fixture:
  - pi_simple_response: single-turn Q&A, verifies response extraction,
    session ID, turn count, token usage, cost, and duration
  - pi_tool_use_response: multi-turn with tool call (read), verifies
    final text response after tool use, 2 turns, accumulated stats
- Functional test for simple_pi_agent.rb example workflow, verifying
  the full Roast workflow execution path with CommandRunner stubbing
- Example workflow: examples/simple_pi_agent.rb

14 new tests (42 Pi invocation + 1 functional), full suite: 1000 tests.
@dersam dersam force-pushed the dersam/pi-provider-message-parsing branch from cc37153 to ca2f382 Compare March 2, 2026 19:39
@dersam dersam force-pushed the dersam/pi-provider-invocation-execution branch from 4215cfa to f221490 Compare March 2, 2026 19:39
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