Skip to content

feat: add controlled terminal agent core - #9

Draft
Nothing1596 wants to merge 1 commit into
feat/terminal-permission-contractfrom
feat/terminal-agent-core
Draft

Nothing1596 wants to merge 1 commit into
feat/terminal-permission-contractfrom
feat/terminal-agent-core

Conversation

@Nothing1596

Copy link
Copy Markdown
Owner

概要

在权限契约之上增加默认关闭的 Python 终端管理层与四个模型工具,底层仍使用可替换 transport。

改动

  • 新增 TerminalSettings、TerminalManager 和可替换风险分类器
  • 新增 terminal_exec/read/write/stop,强制 argv-first,不隐式经过 shell
  • 新命令始终确认;进程授权只覆盖同一 session 的后续交互
  • 限制 cwd、argv、超时、读写尺寸和模型可见输出
  • 清理 ANSI/危险控制字符并脱敏,原始输出不进入聊天日志
  • 接入 bootstrap、AppContext、设置服务和 ResourceRegistry
  • 提供 fake transport 与线程安全/授权撤销/崩溃测试

安全边界

  • 默认关闭,无 OS 沙箱,以 Sakura 当前用户权限执行
  • shell 必须显式作为 argv 调用并按高风险处理
  • 同时只允许一个活动会话

验证

  • Python unit suite: 956 passed, 1 skipped
  • Python integration suite: 147 passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant