← Về thư mục
tests/test_cli_code_mode_test_runner.py
- _cli · function · L36-L37 — def _cli()
- _cfg · function · L40-L45 — def _cfg(tmp_path, *, max_turns: int = 4) -> Config
- _args · function · L48-L58 — def _args(**overrides) -> SimpleNamespace
- _ScriptedChat · class · L61-L74 — class _ScriptedChat
- init · method · L64-L66 — def init(self, replies)
- call · method · L68-L74 — def call(self, messages, cfg, **kwargs)
- _json_payload · function · L77-L78 — def _json_payload(out: str) -> dict
- _submit_naming_the_observed_cell · function · L96-L115 — def _submit_naming_the_observed_cell(messages) -> str
- test_explicit_code_mode_completes_headless_with_a_preauthorized_test_command · function · L118-L151 — def test_explicit_code_mode_completes_headless_with_a_preauthorized_test_command( tmp_path, monkeypatch, capsys )
- test_explicit_code_mode_refuses_before_any_model_call_when_bash_is_unauthorizable · function · L154-L178 — def test_explicit_code_mode_refuses_before_any_model_call_when_bash_is_unauthorizable( tmp_path, monkeypatch, capsys )
- _frame_statuses · function · L181-L189 — def _frame_statuses(cfg) -> list[str]
- test_a_preflight_refusal_closes_the_frame_the_agent_opened · function · L193-L217 — def test_a_preflight_refusal_closes_the_frame_the_agent_opened( tmp_path, monkeypatch, capsys, mode )
- test_a_preflight_that_raises_still_closes_the_frame · function · L220-L241 — def test_a_preflight_that_raises_still_closes_the_frame(tmp_path, monkeypatch)
- broken · function · L232-L233 — def broken(self)
- test_closing_an_unrun_frame_never_writes_a_frame_the_agent_does_not_own · function · L244-L263 — def test_closing_an_unrun_frame_never_writes_a_frame_the_agent_does_not_own( tmp_path, )
- test_the_refusal_is_plain_text_without_json · function · L266-L282 — def test_the_refusal_is_plain_text_without_json(tmp_path, monkeypatch, capsys)
- test_allow_test_command_is_validated_before_anything_runs · function · L294-L312 — def test_allow_test_command_is_validated_before_anything_runs( tmp_path, monkeypatch, capsys, argv_mode, command, message )
- test_the_receipt_is_described_as_the_worker_report_it_is · function · L315-L355 — def test_the_receipt_is_described_as_the_worker_report_it_is()
- test_the_opt_in_is_parsed_as_a_repeatable_flag · function · L358-L373 — def test_the_opt_in_is_parsed_as_a_repeatable_flag()
- _agent · function · L376-L385 — def _agent(tmp_path, **kwargs)
- test_the_opt_in_is_an_exact_command_rule_not_a_glob · function · L388-L422 — def test_the_opt_in_is_an_exact_command_rule_not_a_glob(tmp_path)
- decision · function · L401-L407 — def decision(target: str, root: str | None = None) -> str
- test_preflight_tracks_what_could_really_authorize_the_runner · function · L425-L442 — def test_preflight_tracks_what_could_really_authorize_the_runner(tmp_path, monkeypatch)
- test_under_the_guardian_only_a_standing_rule_authorizes_the_runner · function · L445-L470 — def test_under_the_guardian_only_a_standing_rule_authorizes_the_runner( tmp_path, monkeypatch )
- test_the_fragment_teaches_the_contract_the_host_enforces · function · L474-L482 — def test_the_fragment_teaches_the_contract_the_host_enforces(mode)
- test_a_detected_fragment_carries_none_of_the_armed_contract_teaching · function · L486-L499 — def test_a_detected_fragment_carries_none_of_the_armed_contract_teaching(mode)
- test_the_mode_fragment_promises_only_what_the_run_keeps · function · L512-L547 — def test_the_mode_fragment_promises_only_what_the_run_keeps( monkeypatch, tmp_path, task_mode, allowed )
- _fake_kernel_agent · function · L550-L574 — def _fake_kernel_agent(monkeypatch, tmp_path, *, task_mode, replies)
- _Kernel · class · L553-L561 — class _Kernel
- init · method · L554-L555 — def init(self, a, *k)
- execute · method · L557-L558 — def execute(self, a, *k)
- shutdown · method · L560-L561 — def shutdown(self)
- test_an_armed_code_mode_observation_names_its_durable_cell · function · L577-L591 — def test_an_armed_code_mode_observation_names_its_durable_cell(monkeypatch, tmp_path)
- test_an_unarmed_observation_is_byte_for_byte_unchanged · function · L594-L605 — def test_an_unarmed_observation_is_byte_for_byte_unchanged(monkeypatch, tmp_path)
- test_the_web_executor_names_the_cell_only_when_the_contract_is_armed · function · L608-L637 — def test_the_web_executor_names_the_cell_only_when_the_contract_is_armed()
- executor · function · L613-L627 — def executor(mode)
- test_a_missing_cell_refusal_says_where_the_id_comes_from · function · L640-L650 — def test_a_missing_cell_refusal_says_where_the_id_comes_from()
- test_the_run_tells_the_model_which_exact_commands_are_preauthorized · function · L653-L689 — def test_the_run_tells_the_model_which_exact_commands_are_preauthorized( monkeypatch, tmp_path )