AnyBot/docs
王性驊 4303646e51 fix: AnyBot 瀏覽器的步驟也照你的「一律詢問」和自動審核——樣式規則一律比對,直接操作不再略過
InBotsBrowser(AnyBot 自己的瀏覽器、web_fetch)從來不經自動審核,所以:
- `tool(browser_click)`、`web(domain:…)` 這些樣式規則對 AnyBot 瀏覽器完全沒作用(地圖拿它們當例子);
- 直接操作時,本機或內部網路的網址、從別台電腦上傳檔案直接做,連「一律詢問」都不看;
- 「一律允許」過的本機網址(browser:private)也不看規則。
修好前的證據:an_ask_pattern_stops_the_bots_browser、private_pages_and_uploads_go_through_the_persons_rules
在舊程式失敗(點擊、開網址、web_fetch 都直接跑;一律允許過的內部網址沒問)。測試用帳號裡別台電腦的
瀏覽器(連不到就失敗)和 web_fetch 本機網址(本來就擋),舊程式也不會在這台開真的瀏覽器。

修法(steps.rs 的 InBotsBrowser,跟連接器同一套):
- 安全規則先(中繼資料、鎖定時的本機網址),再比對「一律詢問」樣式(ask_pattern:只比對、不問模型)——
  本來不用問、一律允許過的瀏覽器步驟和 web_fetch 也比;符合就一張卡寫那條規則、沒有「一律允許」,
  按了允許就不再跳下面那張。
- 本來就要問的(本機網址、上傳:這台的工作資料夾外、別台電腦的檔案)交給 reviewed():自動審核的
  允許樣式不跳卡片(結果最後寫「自動審核:符合…」),話寫的規則給審核員看;直接操作只看「一律詢問」
  (以前直接跳過)。一律允許過的不再給審核員看,跟連接器一樣。
- 不用問的步驟不給審核員看:點一下不會多等一次模型。
- 卡片沒有電腦名稱時不再寫「(在  上)」。

地圖:browser 加真的步驟「照你的「一律詢問」」(樣式卡、web_fetch 也問、內部網址給審核員看,
全部拒絕、沒開瀏覽器)和陷阱;autonomy、safety、FEATURES 第 16 節、SECURITY 照實寫。
沒碰 src/botbrowser.rs、src/remote.rs(loosens_guard 沒碰);tool_specs_are_locked、
approval_decisions_are_characterized 沒有 diff。

已驗證: 全部 cargo test(不帶金鑰、DOCKER_HOST 指到不存在)682 通過,含新的 an_ask_pattern_stops_the_bots_browser、
  private_pages_and_uploads_go_through_the_persons_rules、the_bots_browser_is_not_held_up_by_rules_about_other_things;
  clippy -D warnings、lint-sh、verify-approval-routing run.sh --replay(跟基準一樣);
  verify-anybot:browser 每一步可跑的照 md 原文冷跑全過(target/verify-anybot/20261118-192608:
  「在瀏覽器打開 http://127.0.0.1:9/(符合你的「一律詢問」規則:web(domain:127.0.0.1))」只有允許/拒絕,
  web_fetch 也問,192.168.1.5 先給審核員看,全部 denied、沒開瀏覽器),autonomy 也全過(-192347)
未驗證: 直接操作那一半的實機(區網的手機打不開,靠 agent 測試);真的開網頁、點、上傳(scratch 沒有 Docker,
  在這台開會出現真的瀏覽器);動到瀏覽器那條路要人跑的 --ignored 實機測試(沒跑):
  agent::tests::{a_brain_without_chrome_browses_on_its_box, a_finished_job_closes_its_tabs, the_box_browser_uses_the_box_disk,
  the_words_on_a_form_reach_its_controls, two_jobs_keep_to_their_own_tabs}、
  botbrowser::tests::{a_finished_job_quits_its_chrome, a_finished_job_quits_its_firefox, a_persons_firefox_profile, reads_a_real_page}、
  browser::tests::{a_send_is_seen_with_the_post_it_answers_and_its_own_address, drives_a_dashboard, lines_go_in_whole_and_numbers_stay_put,
  numbers_controls_inside_web_components}
未簽: 審批路徑、瀏覽器——要人類跑 --ignored 並簽名才能合併,沒有合併、沒有推

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha5sXAsDLzxz6UZJgoC
2026-11-18 19:26:53 +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: AnyBot 瀏覽器的步驟也照你的「一律詢問」和自動審核——樣式規則一律比對,直接操作不再略過 2026-11-18 19:26:53 +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