malvin 0.2.5

Non-interactive research and coding agent
//! Kiss static coverage contract (call-shaped tokens; not compiled).

#[test]
fn kiss_exec_witness_00_00() {
    AgentIoOptions();
    SessionUpdateChunkKind();
    feed_buf();
    flush_if_nonempty();
}

#[test]
fn kiss_exec_witness_00_01() {
    flush_other_stream();
    flush_stream();
    FlushStreamCtx();
}

#[test]
fn kiss_exec_witness_00_02() {
    AcpChildStdout();
    AcpHandshakeContinuation();
    note_fixture_orphan_affiliation();
    orphan_pid_if_ready();
    read_orphan_pid();
    process_alive();
    hostile_script_delay_ms();
}

#[test]
fn kiss_exec_witness_00_03() {
    hostile_test_poll_interval();
    hostile_test_wait_budget();
    spawn_hostile_double_fork_daemon();
    spawn_hostile_agent_exits_after_orphan_fork();
    spawn_hostile_agent();
    wait_for_init_reparent();
    spawn_hostile_agent_acp_orphan();
    spawn_agent_pg_and_malvin_sibling();
    assert_sibling_monitored_and_blocks_spawn();
    spawn_user_shell_cooperator();
    spawn_user_coincidental_daemon();
    spawn_isolated_agent_sleep();
}

#[test]
fn kiss_exec_witness_00_04() {
    setup_user_init_reparented_daemon();
    cleanup_user_coincidental_test();
    smoke_reader_loop_eof_pending_error();
    h6_trace_file_lines_include_timestamp();
    read_tool_bracket_pair_updates();
    assert_payload_omits_brackets_after_who_tag();
    assert_styled_tool_summary_payloads_match();
    tee_tool_summary_updates();
    tee_read_tool_bracket_pair_stdout();
    h10_write_trace_line_coalesced_tees_timestamped_tool_summary_to_stdout_log();
    h12_tool_summary_trace_and_stdout_log_share_timestamp();
    h22_styled_tool_summary_trace_tee_dims_payload();
}

#[test]
fn kiss_exec_witness_00_05() {
    h14_fast_execute_done_emits_one_stdout_summary_line();
    h18_raw_output_writer_suppresses_tool_stdout_tee();
    h19_thought_stdout_three_space_indent_no_brackets();
    h20_styled_tool_summary_stdout_line_omits_payload_brackets();
    h23_start_and_done_tool_summary_omit_payload_brackets();
    h21_unstyled_tool_summary_omits_brackets();
    open_trace_writer();
    StdoutLogFixture();
    open_styled_markdown_trace_writer();
    tee_coalesced_update();
    production_execute_done_stdout();
    production_execute_done_trace_and_stdout();
}

#[test]
fn kiss_exec_witness_00_06() {
    MemWatchHandles();
    watch_process_group_memory();
    watch_process_group_memory_with_rss_sampler();
    watch_process_group_memory_fail_closed_when_rss_unavailable();
    watch_process_group_memory_writes_sandbox_oom_marker();
    watch_process_group_memory_no_fail_closed_when_reader_dead();
    watch_process_group_memory_still_kills_over_limit_when_reader_dead();
    watch_process_group_memory_writes_marker_without_gate_iteration();
    record_sandbox_oom_marker_writes_when_gate_iteration_unset();
    reset();
    LivePromptTraceArgs();
}

#[test]
fn kiss_exec_witness_00_07() {
    flush_deferred();
    register_deferred_sink();
    for_live_prompt();
    acp::prompt_trace_writer::drop();
    open_timestamp_trace_writer();
    PromptRpcCleanup();
    clear_if_prompt_response_clears_busy();
    ReaderSpawnArgs();
    ReaderLoopInput();
    IncomingLineDispatch();
    ReaderLoopFinishCtx();
    ReaderLoopLineIo();
}

#[test]
fn kiss_exec_witness_00_08() {
    ReaderLoopDrainCtx();
    acp::reader_tests_helpers::acp_activity_state();
    test_prompt_round_health();
    handshake_io_from_stdin();
    IncomingDispatchParts();
    dispatch_lines();
    CatSession();
    acp::reader_tests_helpers::new();
    dispatch_parts();
    finish_stdout();
    EofReaderSpawnInputs();
    write_parsed_trace_line();
}

#[test]
fn kiss_exec_witness_00_09() {
    coalesced_tool_done_omits_full_stdout_in_trace();
    TraceBWriterOpts();
    open_trace_b_writer();
    trace_file_write_line_prefixes_with_prompt_who();
    raw_trace_file_write_line_records_thought_chunks_suppresses_thought_stdout_only();
    trace_file_write_line_plain_mode_omits_tag_prefix();
    trace_file_write_line_brackets_thought_chunks_in_trace_output();
    trace_file_write_line_stdout_markdown_flag_tees_without_panic();
    coalesce_trace_writer();
    open_coalesce_trace_at();
    write_coalesced_line();
    deliver_tool_call_session_updates();
}

#[test]
fn kiss_exec_witness_00_10() {
    assert_tool_call_lifecycle_summary_tee();
    run_tool_call_lifecycle_tee_fixture();
    write_trace_line_coalesced_writes_non_chunk_lines();
    write_trace_line_coalesced_does_not_tee_parsed_non_chunk_lines();
    write_trace_line_coalesced_must_tee_parsed_tool_call_lifecycle_to_stdout();
    write_trace_line_coalesced_writes_malformed_non_json_lines();
    assert_iterable_closed_operational_stderr();
    session_update_message_chunk_json();
    deliver_coalesced_message_chunk();
    assert_split_iterable_closed_operational();
    run_split_iterable_closed_fixture();
    trace_file_write_line_iterable_closed_warns_without_tee();
}

#[test]
fn kiss_exec_witness_00_11() {
    readable_iterable_closed_split_coalesce_emits_readable_operational_warning();
    iterable_closed_split_across_coalesce_emissions_suppresses_tee();
    flush_coalesce_lines();
    assert_upgrade_plan_operational_stderr();
    feed_upgrade_plan_split();
    run_upgrade_plan_split_coalesce_fixture();
    upgrade_plan_split_coalesce_emits_operational_error_without_tee();
    SessionReaderTelemetry();
    SessionChannelState();
}

#[test]
fn kiss_exec_witness_00_12() {
    acp::session_channels::acp_activity_state();
    random_agent_name();
    trace_jsonl_for_args();
    SessionInnerAssembly();
    session_channel_sync();
    acp::session_channels::new();
    handshake_io();
    into_session_inner();
    SessionAfterStdioIn();
    stdin_from_sleep_holder();
    session_channel_state_sets_trace_jsonl_when_prompts_log_run_dir_set();
    take_child_without_tokio_drop();
}

#[test]
fn kiss_exec_witness_00_13() {
    acp_session_drop_teardown();
    take_child_without_tokio_drop_for_test();
    acp_session_drop_if_last();
    acp_stdio();
    take_stdio_pipes();
    acp_session_set_run_timing();
    acp::session_post_impl::spawn();
    is_alive();
    is_busy();
    send_rpc();
    reset_prompt_inflight();
    prompt();
}

#[test]
fn kiss_exec_witness_00_14() {
    prompt_do_trace_split();
    prompt_impl();
    cancel();
    acp::session_post_impl::shutdown();
    acp::session_post_impl::drop();
    rpc_session_prompt_text();
    do_split_trace_preamble();
    PromptTraceDispatchMeta();
    uniform_outgoing_trace_preamble();
    do_split_outgoing_trace_preamble();
    open_live_prompt_trace_writer();
    open_prompts_log_append();
}