feat(agent)!: production-grade interactive coding-agent runtime#2121
Open
gold-silver-copper wants to merge 1 commit into
Open
feat(agent)!: production-grade interactive coding-agent runtime#2121gold-silver-copper wants to merge 1 commit into
gold-silver-copper wants to merge 1 commit into
Conversation
1be9ac3 to
eff8d4e
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR lays a broad set of foundational APIs for the production-grade interactive coding-agent roadmap in #2118. It does not complete the entire epic: several additions are runtime-neutral contracts or reference implementations that still need concrete adapters, deeper integration, and follow-up hardening.
Delivered
Interactive run foundations
RunControlHandlewith stable identity, observable status, cancellation/deadlines, pause/resume signals, and separate steer, follow-up, and next-turn queuesAgentCheckpointcapture/restore for manually drivenAgentRunvaluesRunContextand correlatedToolCallContextinto tool executionFinishReasonto unary and streaming completion surfaces, including the OpenAI Responses and Vertex mappings requested by feat(core): expose a normalized finish reason / stop status on CompletionResponse #2090Tool execution foundations
ToolServerHandleToolDefinition::output_schemaand a structuredToolOutputrepresentation while retaining legacy string compatibilityAgentBuilder::provider_tool(s)and merges hosted and function tools into one OpenAI-compatible wiretoolsarraySessions and reusable capabilities
SqliteConversationMemorywith migration, ordered append/load, isolation, and clear supportSessionEventStoretrait plus an in-memory reference implementationBreaking changes
ToolDefinitiongainsoutput_schemaCompletionResponsegainsfinish_reasonImportant remaining work
This PR intentionally does not claim to finish #2118 or the following linked areas:
ScopedToolExecutorThose items should be handled in focused follow-up issues/PRs rather than treating this PR as completion of the epic.
Validation
cargo fmt --checkcargo check --workspace --all-featurescargo test -p rig-core --libcargo test -p rig-sqlite --libcargo test -p rig --tests --no-runcargo clippy --workspace --all-targets --all-features -- -D warningsSupersedes the implementation approaches in #1858 and #1886 without claiming to complete every follow-up requirement discussed in those threads.
Closes #2090
Closes #1890
Closes #1968
Progresses #2118
Progresses #2116
Progresses #2095
Progresses #2094
Progresses #1906
Progresses #1613
Progresses #1264
Progresses #1439