# b02e agent.rs 測試清單(2672-6383,改構時必須全綠的鎖) 模組內測試 57 個(名字→鎖住的行為): - old_results_are_set_aside_before_any_summary:fold_results 先收舊長結果(留最近6全+短的不收;二次跑空;folded_text 窗版同字)。 - the_words_that_mean_money_sending_deleting_are_sensitive:computer::sensitive_words(傳送/刪除/Send/Check out→問;新增/檔案→不問;「刪除線格式」含「刪除」→問)。 - a_backup_model_carries_on_when_the_bots_own_cannot:401→備用接跑(Switched 行格式/via 標/resting 主模型);無備用/備用同模型→原錯誤。 - computer_words_need_word_boundaries:finds/mentions(字邊界;macOS 不算;「我的電腦」=人打字那台;bot 的電腦)。 - the_same_answer_again_and_again_is_counted:same_answers(read_result 前同頁才算;read_terminal/ask_person 免計)。 - one_screen_is_one_turns_at_a_time:lease_screen(同 turn 續;他主→報持有者;SCREEN_IDLE 後可得;screen_key device:h1/Ssh None;box 每 bot 獨立;支線 box:bot3-t57 與主並行,local 仍共用)。 - long_turns_check_in_instead_of_stopping:check_in 只貼 Tool 訊息+「已經做了 N 步」+送N/M 計;User 原樣。 - words_leaving_the_bots_browser_pass_the_gate_once_per_post:publish_gate editor→Going→SENT_CHECK link 確認;Ledger 重覆→Refuse「已經回過這篇」;search/press 不帶送出→Pass;SEND_INFO 缺→Unsure→「沒有確認」;target_sends 達→Refuse 完成條件。 - a_message_from_someone_else_never_reaches_the_persons_browser:untrusted 全擋 browser 系+vault_list+sent_log;web_fetch/shell 放。 - a_turn_with_a_completion_condition_stops_after_two_check_ins_without_a_send:stalled(每次 check_in 算;有送重置;連續2輪沒送→停)。 - the_boxs_browser_is_always_the_bots_own / bots_browser(BrowserAt::Box 全走 box Chromium)。 - the_quick_models_screen_tool_names_controls_only:quick_tools 去 ref(含 actions.items);其他鍵不變;無 null 鍵。 - the_one_screen_tool_expands_to_the_internal_ones:expand_call(computer→computer_use_click;ref/on→computer;screenshot 同名;未知 action 原樣);describe「點 #4」「螢幕截圖」。 - the_same_click_twice_in_a_step_is_done_once:同 args 兩 call→第二個報「和這一步上一個點擊一模一樣」不執行。 - a_control_is_found_again_by_what_it_is:control_key/resolve_replay(ref 依 targets 文字在最近列表;browser 改 text=字;找不到→報字)。 - a_skill_is_replayed_without_the_model_in_between:replay_skill 步間不問模型(2 步 shell 跑完→只 main 收(asked=[main,main]);「開始重播…共2步」在聊天,做完注只在 history)。 - the_quick_model_carries_out_steps_between_the_bots_own:StepPlan 狀態機(pick/after/quick_is_off/recheck_answer/quick_failed)+Xai.quick_model 對照。 - a_turn_switches_models_as_planned:端到端 asked=[main,quick,main,quick,main];via 顯示;快速答案不顯示。 - a_bot_finds_and_runs_a_connector_tool:模型只拿 find/use(32 工具不隨行);run 問一次卡(含 server+tool 名);結果包 。 - a_tool_outside_the_bots_abilities_is_refused / a_connector_is_refused_to_a_bot_without_the_ability / mcp_calls_without_offered_tools_are_denied:lacks→Denied(不問卡);未 offer 的 mcp__ 直呼→Denied。 - applescript_outside_the_sandbox_is_asked_once_even_in_direct_mode:direct 也問 osascript 一次;grants 含 tools::OSASCRIPT_GRANT 後不問。 - an_empty_reply_is_asked_again:空 reply→重問不當答案。 - (ignored 實機)real_model_drives_a_shell_turn(ANYBOT_LIVE_*)、a_brain_without_chrome_browses_on_its_box、the_box_browser_uses_the_box_disk(上傳/下載/PDF 用 box 磁盘+舊分頁收≤6)、a_finished_job_closes_its_tabs(留最後頁)、two_jobs_keep_to_their_own_tabs(兩 job 各讀各頁互不關;彈窗歸點它的人)、the_words_on_a_form_reach_its_controls(httpbin 表單 text 命中 label 內 input)。 - a_browser_step_carries_its_job:with_job 加 _job;支線本步 profile→_this_step_only;UsedBrowsers job 名每 job 不同。 - the_same_miss_counts_as_the_same_step:step_key(click ±9px 同;ref 不同→不同;screenshot/shell/scroll/press_key None;browser_click Some)。 - the_model_cannot_move_a_screen_step_off_the_chosen_computer / a_step_moved_back… / a_chosen_computer_keeps_its_steps_off_the_persons_mac:keep_to_chosen(人原話指名→留;bot 自指→拉回選的那台+note;選台無螢幕→螢幕步不拉去會死的台;browser_place 選台無瀏覽器→錯字含「不要換到別台」+指名 Mac 拉回;未選→可借人瀏覽器)。 - what_is_read_comes_wrapped:wrap_untrusted(external 工具包;shell 不包;不雙包)。 - a_click_by_number_is_named_in_the_question:element_named(最近列表 [n]/e7)。 - every_computer_answers_to_its_own_name:mentions(own 名小寫連寫也行;「我的電腦」只指人那台;AI 大寫不誤)。 - a_local_address_card_says_where_it_would_open:127.x open→卡「在瀏覽器開啟本機或內部網路網址:…」尾「(在 {BROWSER_HERE} 上)」。 - cut_keeps_tool_pairs_and_recent_messages:compaction_cut 落 User 且留≥KEEP_RECENT_MESSAGES。 - pictures_are_counted_in_the_room_a_chat_takes / only_the_screenshots_that_are_sent_take_room:image_tokens(800-3200);history 算圖;KEEP_SCREENSHOTS 外不計;人附圖必計。 - a_tool_that_keeps_failing_the_same_way_is_stopped:same_failures(同文字同 tool 連續3;成功/換字重置;browser_wait 免;安全規則拒同算)。 - arguments_wrapped_in_data_are_read_as_meant:unwrapped_args(仅 props 全 string 型工具;{"data":jsonstr};真欄位/多鍵/純文字不動)。 - a_call_without_a_known_action_is_told_what_the_tool_takes:bad_action(列合法動作;空參數說「參數是空的」;非法 JSON 說 \n 寫法;computer 版不混 browser)。 - spacing_counts_from_the_last_send:wait_after_send(沒送過→免;久於 spacing 免;算剩;cancel→None)。 - a_desktop_that_cannot_name_the_app_still_offers_always:gate::screen_control_ask(無 app 名→SCREEN_CONTROL_GRANT+卡含「看不出是哪個 App」;有→app:firefox)。 - tokens_count_chinese_heavier:estimate_tokens 英文/2、中文/1。 - loop_runs_tool_then_answers;mid_turn_message_steers_the_same_turn(steer+附件圖進 model,Steered 顯示,1 Done);missing_permission_pops_up_and_continues(EnableTools+EnableThisComputer 兩卡後跑);a_hand_off_waits_for_the_person_and_says_what_they_chose(Handoff 卡=instruction,grant=電腦名;Once→「我完成了」/Reject→「跳過」+Denied);a_file_leaves_a_computer_only_past_the_questions_of_reading_it(send_file/open_for_person 依 read_file 規則:工作區外→read:anywhere 卡;run.command→擋程式;.env→擋秘密;local off 連工作區也問;Attach 0);direct_mode_asks_nothing_but_still_blocks_danger(direct 0 卡但 sudo→「一律不允許」)。 - a_skills_allowed_tools_hold_for_the_turn:M4 載入後非 allow 工具→「只准用」。 - hooks_block_change_and_send_on(PreToolUse exit2 擋 rm;updatedInput 改 args;Stop block→+1 輪)。 - each_call_finds_its_tool:steps::TOOLS 順序表(Lacking1000);a_second_overflow_ends_the_turn(「還是太長」Error,3 請求);a_switched_model_starts_from_a_lean_request(換 model 首請求先 fold);a_long_stretch_is_summarized_in_pieces(summary_pieces≤SUMMARY_PIECE_CHARS 依序);a_summary_the_model_cant_write_is_written_here(本地「AnyBot 自己整理」+原話)。 - 說了就做:an_announced_step_is_carried_out_without_the_person(Nudged+quiet 步仍餵 watchdog+asked[1] 含「什麼都還沒做」);a_nudge_answered_with_the_marker_shows_nothing_more(DONE_MARK 不顯示,0 NextStep);saying_it_again_is_not_shown_again(重複不進聊天,提醒≤MAX_IN_A_ROW);a_finished_answer_is_not_nudged(1 請求)。 - smart 族:smart_mode_runs_a_work_step_nobody_answered(逾時先做+結果「沒有人回應…先做了」);smart_mode_scope_grant_asks_once_per_turn(Scope(grant) 本輪免二卡);smart_mode_never_answers_a_must_ask_card(pattern 卡必等,無逾時/自動字);the_reviewer_answers_the_same_step_once_per_turn(同步重複 1 審 call)。 - the_work_log_follows_the_turn(oplog:TurnStarted 先(prompt.at);未批→started 空;批後 started 1(含 args/finished/replay Never);close 刪檔;stop→末行 Stopped);a_moved_step_is_kept_as_the_model_asked(聊天留原 args,結果說「這一步你指定了…」+跑在選台);only_a_turn_that_did_something_is_remembered(worth_noting:閒聊/單查/記憶步→不記;改檔/建 routine/長研究→記)。 - 測試輔助:read_request/test_job/fake_model/recording_model/tool_delta/fake_http/sse_text/sse_call/long_chat/drive/connector_turn(_of)/browser_turn/plan_turn/plan_args/smart_job;OVERFLOW_BODY。fake 皆 127.0.0.1 ephemeral 端口+SSE。