AnyBot/docs
王性驊 2605445564 fix: 「教我做」學的是聊天裡留著的那一次——稽核紀錄記下訊息的時間,重新產生後不再學到被換掉的那次
上一版用「訊息時間之後第一個開始的回合」找那一回合,但稽核紀錄沒存訊息自己的時間(還原時拿回合
開始的時間代替),而重新產生、重新傳送、重試是同一則訊息(同一個 at)再開一回合:最早的那次贏,
長按之後學到的是被換掉的第一次(審查者冷開重現:第一次 echo wrong、重新產生 echo right,教我做存了
echo wrong)。

- store:稽核紀錄的回合列多一欄 prompt_at(使用者那則訊息送出的時間);舊的 audit.db 開啟時
  ALTER TABLE 加上,舊列留 NULL(讀成 0,不會被當成任何一則訊息)。records() 拆成 turn_starts(只讀回合
  的第一行:說了什麼、什麼時候送的)和 turn_records(只讀選中的那一回合):原本是在畫面那條執行緒上、
  拿著稽核紀錄的鎖,把 30 天內每一步的參數都讀出來。
- memory:taught_turn 先選回合——有 at 就只認 prompt.at 剛好等於它的回合、取最後一個(聊天顯示的那一次),
  沒有就「找不到」,不再退回別的回合(插話的時間不會對上任何回合);沒帶 at 的舊手機頁面才取同樣的話
  開始的最近一回合。skillify 只把那一回合的步驟做成技能。
- 跟自動學(replay_steps)共用同一份「重播不做的步驟」(never_replayed):教我做原本會留下 use_skill、
  replay_skill、anybot_guide;computer_use_look、computer+action 是不存在的名字(工作紀錄記的是展開後的
  computer_use_*),換成真的 computer_use_show。
- appctl:learned() 自己換成主 Bot(home_of)。從 apply() 進來本來就已經換過,這是讓它不靠呼叫的人。
- 功能地圖 replay.md:多一步「重新產生之後教我做」(長按 › 教我做,存的是 echo right);Bot 讀得到的
  陷阱改寫:學的是那則訊息開始的、聊天裡留著的那一次,插話和 30 天以前的說找不到,舊手機頁面沒帶時間時
  學什麼;丟掉的步驟加上讀說明或技能、重播。自動測試列上新測試。

已驗證: 完整 cargo test(金鑰清空、DOCKER_HOST 指到不存在、ANYBOT_HF_BASE 連不到)全綠(675 過、46 ignored
  沒跑);cargo clippy --bin anybot --all-targets -- -D warnings 沒有警告;sh deploy/ci/lint-sh.sh 過。新測試
  appctl::after_regenerating_the_attempt_shown_is_learned、appctl::a_skill_learned_in_a_branch_is_the_main_bots、
  store::an_older_trail_learns_when_messages_were_sent;memory 的 the_message_pressed_is_the_turn_learned 改成
  重新產生和插話的情況、a_finished_turn_can_become_a_skill 加了 anybot_guide/use_skill/replay_skill、
  store 的 the_trail_keeps_the_story… 改讀 turn_starts/turn_records。證明會擋:兩個 appctl 測試放進上一個
  commit(4be6d3e)的程式碼跑都失敗(存了 echo wrong、主 Bot 沒拿到技能);把選回合改回「之後第一個、
  沒有就最近的」、把三個名字拿出共用清單,memory 兩個測試都失敗;拿掉 ALTER,遷移測試失敗(no such
  column: prompt_at);放回去都過。verify-anybot 冷開照地圖寫的跑 replay.md 四步:做五步學會、重播填空格、
  教我做(長按 › 選單)、重新產生之後教我做(手機按回答下面的「重新產生」,聊天只剩 echo right,存的
  技能 steps 是 echo right >> sign.txt;sign.txt 裡兩次都有,因為兩次都真的跑了)都過。
未驗證: 已經有舊 audit.db 的真實資料夾升級——只用單元測試建一份沒有 prompt_at 欄的表驗證;舊版手機頁面
  (不帶 at)只靠單元測試;「網站地圖」照地圖寫的走不到(要真的模型);真的手機的長按沒有測(用無頭
  Chrome 的觸控事件代替);garden.md 這輪沒有重跑(這輪沒動待改進)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha5sXAsDLzxz6UZJgoC
2026-11-18 17:54: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 17:54: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