AnyBot/mobile
王性驊 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
..
badge-96.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon-180.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-192.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-512.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-maskable-192.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon-maskable-512.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon.svg 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
index.html fix: 連接器「一律允許」過也照樣式的「一律詢問」問;審核員讀參數有上限;hook 和規則同一張卡 2026-11-18 19:18:38 +08:00
manifest.webmanifest 合併: 手機網頁的改良(web-pwa-polish):新訊息進場、iOS 鍵盤、觸感、主畫面捷徑、通知上直接允許/拒絕 2026-11-17 13:54:10 +08:00
novnc.js People watch and help on the bots' computer through VNC (noVNC), carried by the account server 2026-11-05 23:05:44 +08:00
screen.html design: 手機網頁顏色跟著電腦版、改成 Claude 手機 App 的感覺,實點修好 12 個問題 2026-11-16 23:16:38 +08:00
sw.js 合併: 手機網頁的改良(web-pwa-polish):新訊息進場、iOS 鍵盤、觸感、主畫面捷徑、通知上直接允許/拒絕 2026-11-17 13:54:10 +08:00