agent-Specialization/modules/execution_plane/__init__.py
JOJO 27aeed70ca feat(execution-plane): Execution Contract 与替身执行器(改造第 4 步)
- modules/execution_plane:ExecutionBackend 协议(E1-E4 首版接口面)+
  FakeExecutionBackend 内存替身(零真实副作用)
- 接入:MainTerminal.execution_backend 属性(默认 None=真实链路),
  handle_tool_call 的 run_command 前台/后台、write_file、edit_file 四分支注入
- 替身路径自动跳过浅版本备份(不触真实磁盘)
- 契约文档 docs/execution_contract.md(本地文档目录,不入库):
  E1-E10 接口面归纳、权限分工、Host/Docker 后端映射
- 验收:ExecutionPlaneFakeBackendTest 全绿(替身接收 E1-E4 调用、
  结果结构同构消费、零磁盘写入、默认路径回归)
2026-09-07 23:00:31 +08:00

14 lines
644 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""Execution PlaneRuntime ↔ 执行环境分层docs/execution_contract.md
- base.ExecutionBackend执行环境后端协议E1-E4 首版接口面)
- fake.FakeExecutionBackend内存替身执行器Runtime 独立测试用)
接入方式MainTerminal/WebTerminal 实例的 ``execution_backend`` 属性
(默认 None = 现有 Host/Docker 真实链路;注入实现后工具编排层
handle_tool_call 的 E1-E4 分支改走该后端)。
"""
from modules.execution_plane.base import ExecutionBackend
from modules.execution_plane.fake import FakeExecutionBackend
__all__ = ["ExecutionBackend", "FakeExecutionBackend"]