AnyBot/docs
王性驊 e755e5878d fix: 「教我做」帶附件的訊息、更新前的回合也學得到;稽核紀錄加不了新欄位時照樣寫
- 帶附件的訊息:送給模型的那一份會在使用者的字後面接上附件的說明(app.rs 組歷史時),工作紀錄記的
  就是那一份,所以短訊息的前 40 字對不上,只會說「找不到(只找得到 30 天內…)」。現在帶了 at 就只認
  時間(那則訊息本身),技能的名字和說明用 attach::typed_part 拿掉附件說明、只留使用者打的字;
  照字找的路(沒帶 at 的舊手機頁面)也先拿掉附件說明再比。
- 更新前的回合:那時的稽核紀錄沒記訊息時間(讀成 0),帶了 at 一定對不上。對不上時改在「沒記時間」
  的回合裡照字找最近一次——有記時間的回合不會被這樣找到,所以插話、重新產生的判斷不受影響;風險只有
  更新前 30 天內、插話剛好跟某一回合開頭一樣,跟舊手機頁面同一種,陷阱照實寫。
- 稽核紀錄:ALTER TABLE 失敗(例如另一個 AnyBot 正拿著寫入鎖)時,回合那一列原本因為指名 prompt_at
  而寫不進去,手機的稽核時間軸也跟著空掉。insert_turn 寫不進時改寫不帶 prompt_at 的版本;讀的時候沒有
  那一欄就當時間不知道。
- verify-anybot:phone 多一個 upload <css> <檔>(DOM.setFileInputFiles,代替系統的檔案選擇器),
  用來驗證聊天的附件;SKILL.md、ctl 的用法一起寫。
- 功能地圖 replay.md:陷阱補上「這一版以前做的回合照字找」;自動測試列上新測試。
- 沒改:學習步驟裡的 computer_use_show、當掉後「繼續」把一件事拆成兩回合——都不會讓 Bot 或使用者
  誤會到要寫進陷阱。

已驗證: 完整 cargo test(金鑰清空、DOCKER_HOST 指到不存在、ANYBOT_HF_BASE 連不到)全綠(678 過、46 ignored
  沒跑);cargo clippy --bin anybot --all-targets -- -D warnings 沒有警告;sh deploy/ci/lint-sh.sh 過。新測試
  memory::a_message_with_a_file_and_an_older_turn_can_be_taught、store::the_trail_keeps_writing_when_the_new_column_cannot_be_added
  (真的讓 ALTER 失敗:另一條連線 BEGIN IMMEDIATE 拿著寫入鎖)、attach::the_words_typed_come_back_from_the_models_copy。
  證明會擋:taught_turn 換回上一個 commit(2605445)的版本,帶附件的訊息「找不到」;拿掉沒記時間的
  照字找,更新前的回合「找不到」;拿掉不帶 prompt_at 的 insert 和讀法,回合一列都沒寫進去;放回去都過。
  verify-anybot 冷開照地圖寫的跑 replay.md 四步都過;另外用新的 upload 在手機選一個檔案(清單.txt)送
  「看這張」,假模型收到的是「看這張\n\n[附件「清單.txt」…]」,長按 › 教我做 存成技能「看這張」、說明
  「示範學會:看這張」、一步 echo 看過 >> seen.txt。
未驗證: 真的手機選檔案(用 DOM.setFileInputFiles 代替系統的檔案選擇器)和長按(用無頭 Chrome 的觸控事件);
  已經有舊 audit.db、而且裡面有更新前回合的真實資料夾——只用單元測試;ALTER 失敗的情況只在單元測試裡造出來;
  「網站地圖」照地圖寫的走不到(要真的模型)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha5sXAsDLzxz6UZJgoC
2026-11-18 19:27:21 +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: 「教我做」帶附件的訊息、更新前的回合也學得到;稽核紀錄加不了新欄位時照樣寫 2026-11-18 19:27:21 +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