AnyBot/docs
王性驊 8bb3ffc9b0 fix: localhost 只連它的 loopback 位址;測試不再搶 65535、不再共用帳號長連線
第五輪(新的獨立審查,沒有 P0/P1):

- localhost:只留它查到的 loopback 位址來連(舊 Mac 的 /etc/hosts 還有 fe80::1%lo0 localhost,
  上一輪會因此整個拒絕、還說成「不經過 Tailscale」);一個 loopback 都沒有才拒絕,並照實說是 /etc/hosts。
- 測試 bind_problems_are_said_as_they_are 原本真的去綁 65535(放掉再綁一次),可是 65535 在 macOS 對外
  連線的臨時連接埠範圍裡,平行的測試可能剛好拿走。改成檢查連接埠範圍(新的 lan_ports,bind_lan 也用它),
  不碰真的 65535。the_phone_page_binds_where_told_and_keeps_trying 放掉占位的連接埠後,接受範圍裡任何一個
  (放掉的那個可能被別的測試的連線拿走)。
- 早就有的測試互相干擾:tunnel 的測試把整個程式共用的帳號長連線開著,a_brain_too_old… 這時呼叫 to_brain
  會走那條長連線而失敗。兩個測試用同一把只在測試裡的鎖(tunnel::LINK_TESTS)輪流跑,tunnel 測試結束前把
  它開的長連線清掉。產品程式碼沒變。
- phone.md:已經連上的長連線不會中途重查,照 SECURITY.md、FEATURES.md 的寫法改。

已驗證: 完整 cargo test(金鑰清空、DOCKER_HOST 指到不存在)連跑兩次都全綠(654 過、47 ignored 沒跑);
  cargo test -- tunnel:: a_brain_too_old 連跑三次全綠(修之前三次都失敗);cargo clippy --bin anybot
  --all-targets -- -D warnings 沒有警告;sh deploy/ci/lint-sh.sh 過。回退各做一次都被測試抓到:localhost
  改回要全部是 loopback、連接埠範圍改回不含最後一個(65535 變空的)、tunnel 測試不拿鎖。
未驗證: 沒有接真的帳號伺服器(同前幾輪);手機頁面行為沒變,沒有重跑 verify-anybot。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:06:00 +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: localhost 只連它的 loopback 位址;測試不再搶 65535、不再共用帳號長連線 2026-11-18 12:06:00 +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