PIPELINE.md is the forward-looking roadmap. Items below were finished and were moved here on 2026-11-18 so PIPELINE shows only open work. The original text is preserved verbatim.
The client is real and speaks the protocol through the official Kotlin MCP SDK.
-
Wired into ToolBroker & RuntimeCompositionRoot — ✅ Complete. Implemented
LazyMcpTooland registered adopted operations inRuntimeCompositionRoot(supporting both user and project scopes) without eager process or network connection spawning on project load. Activation is deferred until tool execution, and tool outputs are strictly markedTrustLevel.UNTRUSTED. Verified with live agent execution inMcpToolBrokerIntegrationTest. -
User Adoption Flow — ✅ Complete. Implemented
McpAdoptionServiceto inspect server catalogs (tool names, descriptions, input schemas), adopt specific operations, and unadopt them, persisting records viaMcpOperationAdoptionStore. -
Idle Lifecycle Manager — ✅ Complete. Implemented
McpLifecycleManagerand idle release support inLazyMcpTool(releaseIfIdle,inFlightCount,lastActivityMillis,idleTimeoutMillis), wired intoRuntimeCompositionRoot. Idle server connections are released without losing offline adopted descriptor catalogs or interrupting in-flight calls, and transparently re-activate on subsequent calls (McpLifecycleManagerTest). -
Adoption-Hash Migration — ✅ Complete. Implemented
McpDescriptorHash.normalizeSdkInputSchemaandMcpOperationAdoptionStore.migrateAdoptionHashes(plus in-place row migration duringresolve) to recompute canonical descriptor hashes from persisteddescriptionandinput_schema_jsonacross canonical/SDKToolSchemaupgrades without mass un-adoption (McpOperationAdoptionStoreTest). -
Security Regression Suite &
<tool_descriptor>Structural Sandbox Fencing — ✅ Complete. Added<tool_descriptor source="mcp:<serverId>" operation="<op>">fencing and delimiter escaping inPromptAssembler,SubjectKind.MCP_SERVERcapability validation/revocation enforcement inSqliteCapabilityManagerandCapabilityResolver.resolveForTool, and the 7-test security regression suite inMcpSecurityRegressionTest. -
External / Non-Kotlin Interoperability Suite — ✅ Complete. Added
McpExternalInteropTestexercising bothstdioandStreamable HTTPend-to-end against a non-Kotlin Python MCP server process (external_mcp_server.py) throughMcpServerStore,McpAdoptionService,McpOperationAdoptionStore,McpServerActivator,LazyMcpTool, andMcpLifecycleManager. -
JsonRpc.ktCleanup — ✅ Complete. MovedJsonRpc.ktout ofagent/mcp-core/src/jvmMainintoagent/mcp-core/src/jvmTest. -
Activation write/capability gap closure — ✅ Complete. Added user-scope
mcp_serverswrite path (McpServerRegistryupsert/delete) and MCP-server capability issuance on adopted-server activation (SubjectKind.MCP_SERVER) with dedicated tests (McpServerRegistryTest,McpCapabilityIssuanceTest). -
Upstream: the SDK's
ToolSchemamodels five keys with no catch-all, so unmodeled top-level JSON Schema keywords are dropped. RFC-0031's "Protocol layer" amendment records why that is tolerable. A passthrough fix should still be filed upstream.
The design and implementation are in place across schema, kernel, capability, executor, and daemon.
- Spawning (
WorkerSpawner): aCOMPOSITEtask creates a worker session (role = WORKER,parent_session_id= driver's session ID), verifies driver holdsPermission.WORKER_CREATE, delegates requested capabilities viaCapabilityManager.delegate()withBudget.split(ways), creates a child Run viaRunCreator.createForUserMessage(brief as initial user message), and parks the composite task withTaskResult.park(SuspendedOperation.ChildRun(childRunId, childSessionId), AWAITING_INPUT). - Driving the child and resuming the parent (
SqliteExecutor): writing parent's continuation row precedes recursive synchronous child driving (drive(childRunId)). On child reaching any terminal state (normal completion, budget ceiling, or error),resumeAwaitingParent(childRunId)removes continuation, commits worker outcome summary viaWorkerCommitter, sets composite parent task toCOMPLETED(or cascadesFAILED), transitions parent run back toRUNNING(orFAILED), and resumes parent execution. DEPENDS_ON/SKIPPEDtraversal:pendingTasksForscanstasksin ordinal order and traversesexecution_edges. AFAILEDorSKIPPEDprerequisite cascadesSKIPPEDto downstream tasks in the database; non-terminal prerequisites are skipped over to find later runnable independent siblings; tasks with zero or all completed prerequisites execute.worker_spawn_requestsschema: Added table and index (idx_worker_spawn_task) toschema/project.sqlrecording spawn briefs, capability delegation lists, budget split ways, and linked worker session/child run IDs.- Treeless isolation (
WorkerCommitter): AddedWorkerCommitterseam incommonMainand JGitGitWorkerCommitterin:agent:daemonusingTreelessWorkerto commit outcome summaries underrefs/aidos/workers/<workerSessionId>without checking out working trees. - Automated Verification: End-to-end unit and integration test suite in
DriverWorkerOrchestrationTestverifies permission gates, delegation with budget division, DAG dependency resolution, cascading skip states, and recursive child execution with parent resumption.
2026-11-09 update: Implemented automated JVM contract test KernelSchemaMapTest in :agent:storage asserting that every non-derived persisted kernel data class (Run, Task including approvalChannel/approvalPhrase, Attempt, Capability, ContentNode, ProvenanceEdge, DegradationEvent, ScheduledJob, Budget, ContextItem, ProjectSummary, SessionSummary, ModelDescriptor, ProviderRetention, ToolCall) maps to a canonical column in schema/ (project.sql, user.sql, and vault.sql). Forms the third leg of CI alongside schema/check.py and module test suites. Verified with $env:PYTHONUTF8=1; python schema/check.py and gradle :storage:jvmTest.
2026-11-09 update: Implemented virtual model resolution (aidos:chat, aidos:embed, aidos:stt), locality-first filtering, group certificate renewal, and supervised child-process layer splitting across trusted peers:
- Virtual Model Resolution & Routing (
VirtualModelRouter): Filters configured and peer-advertised candidate models by request locality before any network contact. QueriesPOST /aidin/v1/routeon candidate peers, verifies origin placement against origin's trust store (origin verifies anchor and every helper in a split route), maps placements (clusterfor trusted peers/helpers,remoteif untrusted helper or remote peer, 403locality_violationif locality excludes candidates, 503model_unavailableif permitted candidates are offline), and enforces warm local fallback pinning inGlobalModelRuntimeagainst LRU eviction while peer candidates are active. - Peer Delegation RPC & Mid-Request Recovery: Mounted
/aidin/v1/endpoints (/route,/chat/completions,/embeddings,/audio/transcriptions,/systemone) over mTLSPeerLinkinAidinNodeandEngineHttpServer. Enforces hop limit 1 (delegated requests never re-delegate). Non-streaming requests retry once on local fallback upon peer loss or409 plan_changed/503 peer_busy; streaming requests emit SSE{"type":"peer_lost","retryable":true}and next request resolves locally without waiting for heartbeat timeout. - Group Certificate Renewal (
AidinNode): Group admins renew member certificates overPeerLinkwhen validity drops below threshold (default 7 days) and pushCertificateRenewalwire frames without re-pairing. - Supervised Child-Process Layer Splitting (
SplitProcessSupervisors):HelperProcessSupervisorrunsggml-rpc-server -H 127.0.0.1 -p <port> -c <cache>as an isolated child OS process, exposes it only via authenticated tunnel to the active plan's anchor, and drains/stops onContributionPolicytriggers (unplug, low battery, severe thermal).AnchorProcessSupervisorgenerates versioned plans (SplitModelPlanner), opens loopback127.0.0.1:<port>tunnel listeners to each helper, supervisesllama-serverwith--rpcand--tensor-split, and handles child aborts or helper drops by stoppingllama-server, marking the split model unavailable for immediate virtual model fallback, and triggeringRESTARTre-planning with remaining healthy group members.
- Dictator Integration: Dictator's
AidosProviderupdated to resolve chat viaaidos:chatwhile keeping dictationlocal_only. - Verification: Verified with 51 unit/integration tests in
:engine:aidin:jvmTest(SplitInferenceTest,AidinNodeTest), 153 unit/integration tests in:engine:enginehost:jvmTest(VirtualModelAndDelegationTest,LocalityEnforcementTest, etc.), and:engine:modelruntime:jvmTest.