Repository navigation
feat(harness): typed terminal outcomes and turn/message lifecycle events #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
109 commits
Select commit
Hold shift + click to select a range
4527970
feat(harness): add retry types and terminal helpers
senamakel 046252d
feat(harness): add terminal rendering support
senamakel 551cc70
test(harness): add terminal tests
senamakel c73c423
fix(tinyagents-harness): drop Hash from TerminalReason
senamakel 0040fce
feat(harness): implement terminal outcome classification
senamakel 383c5bc
feat(events): add turn, message and outcome events
senamakel adc35ce
refactor(harness): split agent loop entry from run loop
senamakel d4633e4
fix(agent_loop): populate new fields on queued message applied event
senamakel 8f521b5
feat(agent-loop): add middleware hooks to the agent driver
senamakel 6a91eaa
refactor(agent_loop): extract driver module from agent loop
senamakel fb5937f
test(agent_loop): register terminal outcome test module
senamakel ae127d0
refactor(agent_loop): split entry point from run loop
senamakel 4f337a8
chore(agent_loop): import terminal outcome types
senamakel 180c889
fix(harness): sanitize run failure outcome message
senamakel d00e9fa
fix(agent_loop): preserve terminal outcome when sanitizing hosted fai…
senamakel d914469
feat(agent_loop): add lifecycle tests for agent loop
senamakel b593892
feat(harness): add agent loop module
senamakel 271bba4
feat(agent_loop): track turn boundaries and capture queued messages
senamakel 114d45b
test(harness): add coverage for event module
senamakel eb91f1c
feat(runtime): refresh system prompt prefix on context changes
senamakel 6c49dab
test(runtime): cover terminal outcome delivery ordering
senamakel 57d033f
feat(runtime): add lifecycle hooks to the agent driver
senamakel cebaad3
refactor(session): extract session state into dedicated module
senamakel 763d87d
refactor(session): extract session state into dedicated module
senamakel 899b073
feat(harness): expose terminal outcome and turn lifecycle events
senamakel 096e73c
style: apply rustfmt formatting across harness and runtime crates
senamakel 34d7262
chore(harness): silence clippy too_many_arguments and filter lifecycl…
senamakel 150d100
Merge origin/main into harness-uplift/terminal-outcome
senamakel 357ec72
refactor(events): derive default for event types
senamakel 4622042
test(harness): cover transcript mirroring across recovery and steering
senamakel c79025d
test(harness): cover agent loop lifecycle transitions
senamakel 2a0a3ea
refactor(agent_loop): extract lifecycle handling into its own module
senamakel 94c9b9a
refactor(agent_loop): split agent loop into focused modules
senamakel dc99ff6
test(agent_loop): cover tool surface and loop run paths
senamakel 41f4f46
test(harness): cover halted terminal outcome for guard halts
senamakel c2c50c9
feat(harness): add repeat progress middleware
senamakel 9c5e9a0
feat(runtime): add session driver for turn execution
senamakel 5e59c96
refactor(agent_loop): split driver, runtime, and types into modules
senamakel 39a0eaf
refactor(agent_loop): extract driver module from agent loop
senamakel 98fbd8d
feat(tests): add integration test for loop as graph
senamakel 9fffc16
feat(agent_loop): add terminal outcome handling for agent runs
senamakel f5571e4
refactor(harness): extract turn control into its own module
senamakel 98714f2
docs(harness): document terminal outcome and transcript event semantics
senamakel 98ac462
style: apply rustfmt formatting across agent loop and session tests
senamakel e1bf8cd
Resolve main merge conflict for terminal outcome
senamakel 216c0a1
Preserve graph guard halt terminal state
senamakel 4669757
fix(agent_loop): report accurate terminal reasons for limits and errors
senamakel 3baec10
fix(agent_loop): clear active model call on error and mark failed runs
senamakel 67668ec
fix(agent_loop): only attach limit kind to limit errors
senamakel 3dcca4c
chore(agent_loop): import TerminalClass
senamakel 469851b
refactor(terminal): simplify limit kind conversion
senamakel bdedb74
refactor(agent_loop): drop limit-stop bookkeeping from tool turn
senamakel d1e31cb
style: wrap long line in run loop
senamakel b18808d
feat(agent_loop): add runtime driver and context types
senamakel 9382bba
test(harness): add terminal tests
senamakel d6fca09
refactor(agent_loop): extract driver module from agent loop
senamakel a0316a3
refactor(agent_loop): extract mixed-turn handling into its own module
senamakel e3892b2
test(agent_loop): cover mixed structured turn closing before queued d…
senamakel 815703c
test(agent_loop): use tinyinference_llm response format in lifecycle …
senamakel f7ea35f
test(agent_loop): cover repeated final turn in mixed structured lifec…
senamakel e83e965
test(agent_loop): script tool-based structured output in lifecycle test
senamakel 94572ef
test(loop_as_graph): cover failing after_agent preserving the origina…
senamakel 7b8f73e
fix(tinyagents-harness): expose mark_model_call_failed publicly
senamakel 25250be
test(loop_as_graph): update AgentRun import path in middleware test
senamakel 724c685
style: apply rustfmt formatting to agent loop driver and lifecycle tests
senamakel 5326782
Merge origin/main into harness-uplift/terminal-outcome
senamakel 42e5d76
Merge origin/main into harness-uplift/terminal-outcome
senamakel 3053037
fix(agent_loop): treat non-success terminal outcomes as failed
senamakel 2dbb53f
fix(agent_loop): report the tool-call limit kind on partial stops
senamakel a4fa5ef
test(loop-as-graph): narrow tool cap stop test to the graph engine
senamakel 3b1b26d
chore: I don't see a diff in your message — the "Diff:" section is em…
senamakel 091259a
test(agent_loop): cover cache-served runs not claiming provider start
senamakel 2825862
test(loop_as_graph): cover failing after_agent on a successful run
senamakel 912f835
docs(harness): document typed terminal outcome on run events
senamakel a942821
fix(harness): provider_started after cache lookup; docs for lifecycle…
senamakel b49f0f7
docs(graph): document LoopState::limit_kind
senamakel 3c2d29d
refactor(harness): move context compaction into the run loop
senamakel 84c46c6
test(context): cover cleared limit kind not leaking into later errors
senamakel 1cde0be
feat(agent_loop): add lifecycle tests for run loop
senamakel 28e2198
test(agent_loop): drop token args from text_response call
senamakel e2bf7ab
docs(harness): document per-message payload capture and graph loop ev…
senamakel 614c0db
docs(events): clarify per-message payload capture for applied messages
senamakel 3589ed1
fix(agent_loop): clear active model call before after-model middleware
senamakel 4c7f0b0
feat(agent_loop): add terminal outcome handling to agent loop
senamakel a86761e
test(agent_loop): collapse middleware import onto one line
senamakel e36254c
fix(runtime): deliver terminal hooks when the turn future is dropped
senamakel f08fd78
feat(agent_loop): add runtime driver and context types
senamakel 14104d6
refactor(agent_loop): extract driver module from agent loop
senamakel 8dc1641
fix(agent_loop): report the terminal outcome set by after_agent
senamakel d6a1479
feat(agent_loop): add graph driver and harness entry point
senamakel 4df1e88
test(agent_loop): cover suspended outcomes and graph tool-cap kind
senamakel 4071dfa
feat(agent-loop): add graph-driven agent loop driver
senamakel cc2bf97
test(harness): cover cache-hit provider attribution and error sanitiz…
senamakel c86a215
test(runtime): qualify Message import in hosted error test
senamakel 7ac6125
feat(harness): add turn control and terminal event handling
senamakel 5659aba
test(runtime): wait for outcomes before asserting in driver tests
senamakel bcd28fb
test(agent_loop): cover mixed payload capture for queued messages
senamakel b9efa7c
test(agent_loop): use default payload capture in lifecycle test
senamakel fd39592
test(agent_loop): drop redundant struct update syntax in lifecycle test
senamakel dbc56a0
refactor(agent_loop): extract runtime helpers into dedicated module
senamakel 62bf67f
feat(agent_loop): add terminal output for agent loop events
senamakel c66788c
fix(agent_loop): match summarization usage errors by value
senamakel ce752f8
test(harness): cover timeout phase mapping in terminal outcomes
senamakel 112b871
test(harness): align call timeout test with provider phase
senamakel ea8a4e7
style: rustfmt terminal tests
senamakel 2b9fae6
fix(harness): classify summarizer failures from their inner error
senamakel 6a2ff2b
test(harness): use model error in summarizer classification test
senamakel 6f63e94
fix(agent_loop): backfill timeout phase on terminal outcomes
senamakel 44450b4
fix(tinyagents-harness): qualify TerminalReason path in timeout check
senamakel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.