feat(tools): 复活 list_directory/copy_path 开 @<会话id> 只读历史通道;recall 收敛纯记忆三 op
- recall 删 files/link 两 op(沙箱外克隆必漂移:link 漏抄 mint_public_link 的 realpath 符号链接防线,整删即消洞);description 重写:去跨工具越权指引与 重复细节,补纯文本返回契约与空态语义;count 补 minimum/maximum/default - list_directory:单层 ls、≤200 条、隐藏项不列;'@<sid>/<rel>' 列历史会话, 条目输出 @sid/ 全形路径可直抄进 copy_path - copy_path:历史成果唯一进口。resolvePastPath 校验单点(形状+存在+同用户); 目标拒 @(历史只读、写只进本会话)、撞名拒覆盖、预算 200 文件/200MB、 符号链接整趟拒绝防逃逸;导入后 read_file/vision/mint 全量生效,零核心沙箱改动 - advising:阶段硬闸名单加入 copy_path,白名单点名放行 list_directory - definitions 保持按 name 字母序;ARCHITECTURE 记部分复活与撤销理由 (生产 terminal 在远端 executor 容器,host-tasks 被 wrapper unmount, 当年「统一走 terminal」的删除理由不覆盖跨会话场景) - 验证:harness 23/23(@ 下钻/跨用户/撞名/symlink/退役 op 回归);node --check 全过 版本 2.2.0 → 2.3.0
This commit is contained in:
@@ -113,12 +113,13 @@ const DEFAULTS = {
|
||||
// 模型 profile(prompt + tools 名单组合):platforms 里的模型用 profile: <名> 引用。
|
||||
model_profiles: {
|
||||
// advising:顾问阶段(sessions.phase)专用组合——不由模型配置引用,而是 resolveProfileName 在
|
||||
// advising 时强制命中:顾问只聊和读、不写(write_file 已移除,批内幻觉调用另由引擎挡下),
|
||||
// advising 时强制命中:顾问只聊和读、不写(write_file/edit_file/copy_path 不在名单,批内幻觉调用另由引擎挡下;
|
||||
// list_directory 入选——翻阅历史目录是顾问高频刚需),
|
||||
// 例外是 profile(画像元信息,不碰任务目录;顾问问答恰是收集称谓/偏好密度最高的时刻)
|
||||
// 与 recall(日记只读翻阅;用户和顾问聊「上次那个事」恰是回忆查询的高峰场景);
|
||||
// 唯一出口是 handoff;tools_deny 必须显式清空:不配 = 继承全局 ['lab','handoff'],
|
||||
// allow 滤完再叠 deny 会把 handoff 自己禁掉(同 lab 组合的教训)。
|
||||
advising: { tools_allow: ['read_file', 'fetch', 'handoff', 'profile', 'recall'], tools_deny: [], system_prompt_file: 'advising-system.txt' },
|
||||
advising: { tools_allow: ['read_file', 'list_directory', 'fetch', 'handoff', 'profile', 'recall'], tools_deny: [], system_prompt_file: 'advising-system.txt' },
|
||||
// lab:统一入口元工具自测组合——tools 收缩到 1 个,其余能力经 lab(help) 现场发现。
|
||||
// tools_deny 必须显式清空:不配 = 继承全局 ['lab'],deny 后叠加会把 lab 自己禁掉 → 零工具。
|
||||
lab: { tools_allow: ['lab'], tools_deny: [], system_prompt_file: 'lab-system.txt' },
|
||||
|
||||
Reference in New Issue
Block a user