AnyBot/docs
王性驊 3e1f960488 fix: 連接器「一律允許」過也照樣式的「一律詢問」問;審核員讀參數有上限;hook 和規則同一張卡
使用者的決定:樣式寫的「一律詢問」(`connector(…)`,只比對、不問模型)蓋過連接器的「一律允許」。
以前 `mcp:slack` 一律允許過,`connector(slack__post_message)` 就擋不住。現在:
- steps.rs 的 connector_decision(連接器一步的第 6–8 關,一個地方):先比對「一律詢問」樣式——
  符合就跳卡片寫那條規則、沒有「一律允許」(一律允許過、直接操作開著都一樣);再看一律允許;
  其他照舊交給 reviewed()(自動審核/直接操作)。
- 用一般的話寫的規則不看一律允許過的連接器(使用者選的:不要每一步都問模型);地圖、FEATURES、
  SECURITY 照實寫:直接操作的三條預設擋不住一律允許過的連接器,要擋就寫成樣式。以前的一律允許照樣有效。
- 一律放行、自動審核關著:不比對(跟其他步驟一樣)。

審查的 P2 一起改:
- 審核員讀的參數有上限:4000 字以內全部,更長的給前 3000、後 1000,中間寫省略了幾字
  (整段塞進去會撐爆模型的上下文、審核失敗);卡片照舊前 160 字。
- hook 的「ask」跟規則放在同一張卡(以前 run_call 先問一張、Connector 再問一張);run_call 的
  通用 hook 詢問不再管 Connector。
- 新增 `connector(…)` 規則對不上任何連接器的工具(顯示名稱、大小寫、中文名稱的代號、64 字截斷)
  時說出來:mcp::rule_names_nothing;電腦的設定頁在那條規則下面寫,手機新增時跳「已新增。不過…」。
  Bot 沒有能加規則的工具,不用改。
- 地圖的用字:autonomy-still-asks、autonomy-review、autonomy-patterns 寫出一律允許過的例外;
  connectors 的陷阱不再一句寫「直接操作不問」又寫「直接操作也一樣」。
- connectors 加真的步驟「一律允許也照樣式問」;autonomy 原本的連接器步驟搬過去(autonomy 快到
  9,000 字),autonomy 留走不到的步驟指過去。

特性表(新的 connector_decisions_are_characterized,38 列):一律允許 有/無 × 直接操作 有/無 ×
規則(關著、詢問樣式、允許樣式、兩種樣式、別的連接器的樣式、話寫的規則〔審核員說詢問/都不符合/
答不出來〕、允許樣式+話寫的詢問),加上 hook 兩列;每列寫 Allow/Allow+note/Ask[一律允許會記的]
和原因、問了模型幾次。tool_specs_are_locked、approval_decisions_are_characterized 沒有 diff。
沒改 remote.rs(loosens_guard 沒碰)。

已驗證: 全部 cargo test(不帶金鑰、DOCKER_HOST 指到不存在)679 通過;新的 an_ask_pattern_wins_over_a_connectors_grant、
  a_hook_ask_and_a_rule_make_one_card_for_a_connector_step 在改之前失敗(一律允許過照跑、兩張卡),
  a_failed_review_asks_about_a_connector_step、the_reviewer_reads_a_huge_argument_by_its_ends、
  a_connector_rule_that_names_nothing_is_said_so、connector_decisions_are_characterized、phone 的 rule_add 提醒;
  clippy -D warnings、lint-sh、verify-approval-routing run.sh --replay(跟基準一樣);
  verify-anybot:connectors 每一步可跑的照 md 原文冷跑全過(target/verify-anybot/20261118-180143:
  打錯大小寫的規則跳提醒、一律允許過的 e0 照樣跳卡片、只有允許/拒絕,allow_rules 還是 ["mcp:echo"]),
  autonomy 也全過(-180216)
未驗證: 電腦設定頁那行提醒的樣子(要開視窗);直接操作那一半的實機(區網的手機打不開,用 app 層測試);
  --ignored 的實機測試
未簽: 審批路徑——要人類簽名才能合併,沒有合併、沒有推

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha5sXAsDLzxz6UZJgoC
2026-11-18 19:18:38 +08:00
..
demo docs: README 重寫——跟上這一週的功能,圖從現在這版重拍 2026-11-18 08:10:55 +08:00
en version_0_1_1-alpha 2026-11-11 16:19:06 +08:00
feature-map fix: 連接器「一律允許」過也照樣式的「一律詢問」問;審核員讀參數有上限;hook 和規則同一張卡 2026-11-18 19:18:38 +08:00
specs Rewrite decompilation comments as behaviour specs; move reverse-engineering docs out of the repo; drop third-party marks from UI strings (i18n tables synced) 2026-11-09 16:37:33 +08:00
architecture.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
install.md design: Bot 的電腦的桌面也換成思源黑體(第 14 版),拿掉粉圓 2026-11-16 22:18:32 +08:00
memory.md 記憶: each bot keeps its own, remembers like a person, and decides for itself 2026-11-11 09:35:59 +08:00
multi-device.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
plan-2026-11-computer-use.md Plan: smoother computer use and box logins that survive a rebuild 2026-11-06 22:06:49 +08:00
plan-2026-11-engineering.md refactor: 工具呼叫改成 TurnTool trait:28 個工具照原本的順序排成一張清單,不再是一長串 if 2026-11-17 13:43:57 +08:00
plan-2026-11-improvements.md 記憶: a page to see it, a few lines picked while typing, a local model 2026-11-11 07:46:50 +08:00
protocol.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
readme-style.md Readmes: the shape top-starred projects use, and no more overflow 2026-11-10 14:14:27 +08:00
release.md make, README and docs: build and install from source 2026-11-04 22:16:45 +08:00
skills.md version_0_1_1-alpha 2026-11-11 16:19:06 +08:00