feat: A2A agent inner loop framework (2/3)#199
Open
mdear wants to merge 2 commits into
Open
Conversation
- Docker Compose local stack with PostgreSQL, Redis, MinIO, sandbox - Local sandbox entrypoint, VNC, browser automation services - Stack control scripts (stack_control.sh, local/*) - Backend Dockerfile + entrypoint for local development - Configuration: .stack.env.local, settings.yaml, model_configs - SQLAlchemy model fixes (UUID consistency, TimestampColumn) - Agent tool/runtime improvements (reasoning_content, field renames) - Credit billing_enabled toggle + usage handler refactor - E2B sandbox management, VNC URL support - 246 tests (unit, integration, smoke, E2E) - Documentation: architecture, getting-started, local-docker-sandbox - GitHub Copilot instructions and prompt templates
- A2A protocol: adapter server, backends (Copilot, Claude Code, Codex) - Agent inner loop: strategy pattern, tool bridge, routing - A2A billing: backend-aware credit calculation, provider-reported strategies - Circuit breaker, event stream adapter, multimodal support - Agent factory: inner loop strategy builder, converter - Health endpoint: A2A mode fields - CreditUsageHandler: A2A billing strategies - Config: A2A agent settings (inner_loop_mode, a2a_backend, billing) - 26 A2A agent tests + 10 billing strategy tests - 17 A2A design/implementation/runtime docs
This was referenced Apr 13, 2026
Author
|
I am continuing testing on branch feature/a2a-chat-inner-loop_3_of_3 and will not introduce churn on this PR unless requested by the team. |
Author
|
This PR is 2 out of a sequence of 3 PRs: #198 — #198: Docker sandbox runtime, local deploy stack, session lifecycle, frontend, test overhaul (389 files) #199 — #199: A2A inner loop strategy, backend registry, billing strategies, adapter server (74 incremental files) #200 — #200: Chat A2A turn loop, council A2A routing, cross-authority compaction (16 incremental files) |
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.
A2A Agent Inner Loop Framework (2/3)
74 files changed (incremental from 1/3) — A2A inner loop strategy, backend registry, billing strategies, and comprehensive test coverage.
A2A Inner Loop
A2AInnerLoopstrategy with SSE streaming clientCircuitBreaker(threshold=5) with automatic native fallbackEventStreamAdaptermapping SSE events to agent runtime eventsContextAdapterfor conversation history parity with native loopToolBridgefor bidirectional tool registration between backendsA2A Adapter Server & Backends
AdapterServer(FastAPI/uvicorn) running inside sandboxes on:18100simulate,copilot,claude_code,codexprovidersCopilotBackendusing GitHub Copilot SDK (github-copilot-sdk>=0.1.25)ClaudeCodeBackendandCodexBackendimplementationsstart-services.shA2A adapter startup sectionA2A Billing
CreditUsageHandler(a2a:prefix routing)token_based,provider_reported,noneAgentSettings: A2A billing strategy, multipliers, inner loop mode, timeout, fallback configEvents & Config
EventGroup,EventTypeenums andApplicationEventmodelDelegationFallbackEvent,CompactionAuthorityEvent,CompactionSkippedEventModelUsageEventA2A billing fields (billing_backend,is_user_key,premium_requests,model_multiplier)CompactionLockasync context manager for cross-authority compaction guardTesting
Docs