AnyBot/docs
王性驊 10d29281c3 refactor: 核准關卡的規則搬到 gate.rs,用表格測試
工程基礎計畫 E9(grok-build 把權限判斷放在獨立、可測的 crate)。行為不變。

- gate::by_kind(關卡順序第 6 步):Mac 的 App(讀一次、改一次、送出每次)、螢幕(自己的桌面不問、看一次、每個 App 操作一次、不能點 AnyBot 自己)、帳號裡別台電腦的螢幕(看和操作各一次)、瀏覽器(讀已登入的分頁問一次)、其他照 tools::decide_on。要找目標 App 才問系統(照原本只在操作這台螢幕時)。
- gate::always_ask(第 8 步):付款/傳送/刪除這類點擊、寄信和傳訊息、沙盒外的 AppleScript,每次都問;拒絕的還是拒絕。回傳要不要清掉自動審核的備註、是不是不能一律允許。
- agent::spawn 只呼叫這兩個(少了約 100 行);要等人回答的第 3–5 步、要問模型的第 7 步留在原地。SCREEN_CONTROL_GRANT 和 screen_control_ask 搬到 gate.rs(說明照舊)。
- 功能地圖 safety.md 註明第 6、8 步的規則在 gate.rs。

已驗證:cargo test 569 全過(原本測核准的 agent 測試都過);新的表格測試 gate::tests 兩個(第 6 步 16 種情況、第 8 步 8 種);cargo clippy -D warnings 過。
未驗證:無。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:32:31 +08:00
..
demo One computer-and-phone still, and the README stops advertising its style guide 2026-11-10 14:21:06 +08:00
en version_0_1_1-alpha 2026-11-11 16:19:06 +08:00
feature-map refactor: 核准關卡的規則搬到 gate.rs,用表格測試 2026-11-17 11:32:31 +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: 核准關卡的規則搬到 gate.rs,用表格測試 2026-11-17 11:32:31 +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