AnyBot/docs
王性驊 36420f38cb fix: 直接連線真的只能收緊;Bot 的電腦和支線換不了瀏覽器設定檔;支線不動大家共用的東西
複審 f3ff553 找到的問題,加上直接連線全部設定的盤點:

A. 直接連線用多一格空白繞過檢查:檢查照原字讀名字,大腦那邊(phone_act)卻先去掉空白
   再做,「direct_mode 」「 rule_add」「abilities 」都過關、照做。現在兩邊都照原字讀:
   phone_act 的 key/list/op 不再 trim,規則清單只認 ask、allow(以前認不得的都當允許
   清單);直接連線上名字不是 AnyBot 認得的一律 400「不認得這個設定」,什麼都不改。
盤點(remote::lan_guard,直接連線送來的每個 api/act):放寬的一律 403——打開直接操作、
   打開自動審核、加允許規則、拿掉詢問規則、加連接器或把關掉的打開、打開訊息管道、打開
   Bot 的電腦工具(沒帶值也算打開,跟 phone_act 一樣)、分享給團隊、勾回能力或可以用的
   電腦、Bot 的電腦從 gVisor 換回標準;收緊的和不動權限的照做。卡片的允許/一律允許照舊
   (那是回答眼前那張卡)。「只能收緊、不能放寬」現在是真的。
B. Bot 的電腦裡換瀏覽器設定檔是假的:在 box 裡 add 在大腦建資料夾、set_current 卻寫
   「預設」蓋掉這台記著的選擇,Bot 還聽到「已新增並切換」。現在 box 裡新增、切換一律
   回「Bot 的電腦上的瀏覽器只有一個設定檔…」,box 裡也不再寫這台的使用中設定檔(以前在
   box 開網頁就把它改回「預設」)。
P2 設定檔名字:「阿金」不再模糊對到使用者的「阿金(Firefox)」:只換 AnyBot 自己同名的
   設定檔(大小寫不算),其他名字新增全新的;使用者自己的瀏覽器(Firefox 設定檔、「你的
   瀏覽器」)Bot 不能換過去——拒絕並請使用者在設定裡換(換了是每一步、每個 Bot 都用他的
   登入;這個工具沒有卡片可問)。某一步指名用它也不會變成使用中。
P2 支線:create_bot、create_group、move_to_group、rename_group、delete_group、
   delete_skill、skill_install(內建的也是)也擋;連接器、hook 改成只放行「看」的動作
   (空白、大小寫都算改);瀏覽器 profiles 的新增、切換擋在步驟(BranchLimits);
   save_skill、skillify 不能換掉技能庫裡已有的同名技能(apply 裡 bot_id 早就換成主
   Bot,改用原本的支線 id 判斷;save_skill 在寫資料夾之前就擋)。支線的系統提示和
   changes_settings 的說明照實列出擋什麼。
P3 oplog::replay_of 不再把 browser_profiles 當只看的。

功能地圖:autonomy(子功能、步驟加直接連線拿掉詢問規則 403、多空白名字 400、打開自動
審核 403、state 確認)、account、profile、phone、branch(Bot 那一行、步驟加支線建 Bot、
換設定檔被擋、陷阱)、browser(子功能、Bot 那一行、步驟加換「你的瀏覽器」被擋);
FEATURES.md、SECURITY.md 同步。工具定義不變;verify-approval-routing 沒有漂移。

已驗證: env -u 金鑰… DOCKER_HOST=unix:///nonexistent cargo test(679 過、46 ignored)、
cargo clippy --bin anybot --all-targets -D warnings、sh deploy/ci/lint-sh.sh、
verify-approval-routing run.sh --replay(沒有漂移,10 個重走都過);7 個新/改的測試在
放回舊程式時都失敗(含複審的繞過:「direct_mode 」照做);verify-anybot 照地圖跑
autonomy、branch、browser、profile、market、phone、channels、connectors 的步驟。
未驗證: --ignored 的實機瀏覽器測試(botbrowser 的 reads_a_real_page、a_persons_firefox_profile、
a_finished_job_quits_its_firefox、a_finished_job_quits_its_chrome,browser 的
lines_go_in_whole_and_numbers_stay_put、a_send_is_seen_with_the_post_it_answers_and_its_own_address)
要人在實機跑、簽名;Bot 的電腦裡的瀏覽器(要 Docker);使用者真的 Firefox 設定檔(scratch
沒有);帳號連線那條路(要帳號伺服器)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha5sXAsDLzxz6UZJgoC
2026-11-18 19:36:07 +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: 直接連線真的只能收緊;Bot 的電腦和支線換不了瀏覽器設定檔;支線不動大家共用的東西 2026-11-18 19:36:07 +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