[INFO] fetching crate agent-hooks-cli 0.12.1... [INFO] testing agent-hooks-cli-0.12.1 against 1.101.0-beta.1+cargoflags=--release for beta-release-1.101-2 [INFO] extracting crate agent-hooks-cli 0.12.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate agent-hooks-cli 0.12.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate agent-hooks-cli 0.12.1 [INFO] tweaked toml for crates.io crate agent-hooks-cli 0.12.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate agent-hooks-cli 0.12.1 on toolchain 1.101.0-beta.1 [INFO] running `"cargo" "+1.101.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"` [INFO] crate crates.io crate agent-hooks-cli 0.12.1 already has a lockfile, it will not be regenerated [INFO] running `"cargo" "+1.101.0-beta.1" "fetch" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"` [INFO] [stdout] d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791 [INFO] running `"docker" "start" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791"` [INFO] running `"docker" "inspect" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "metadata" "--no-deps" "--format-version=1"` [INFO] running `"docker" "inspect" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "build" "--frozen" "--message-format=json" "--release"` [INFO] [stderr] Compiling proc-macro2 v1.0.107 [INFO] [stderr] Compiling quote v1.0.47 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling libc v0.2.189 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling shlex v2.0.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.11 [INFO] [stderr] Compiling serde_core v1.0.229 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling pkg-config v0.3.34 [INFO] [stderr] Compiling smallvec v1.15.2 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling memchr v2.8.3 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling log v0.4.34 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling serde v1.0.229 [INFO] [stderr] Compiling autocfg v1.5.1 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling zmij v1.0.23 [INFO] [stderr] Compiling zerocopy v0.8.63 [INFO] [stderr] Compiling futures-core v0.3.34 [INFO] [stderr] Compiling getrandom v0.4.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde_json v1.0.151 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling futures-sink v0.3.34 [INFO] [stderr] Compiling itoa v1.0.18 [INFO] [stderr] Compiling futures-io v0.3.34 [INFO] [stderr] Compiling futures-channel v0.3.34 [INFO] [stderr] Compiling bytes v1.12.1 [INFO] [stderr] Compiling bitflags v2.13.1 [INFO] [stderr] Compiling zstd-safe v7.3.0 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling futures-task v0.3.34 [INFO] [stderr] Compiling typenum v1.20.1 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling anstyle-parse v1.0.0 [INFO] [stderr] Compiling doctest-file v1.1.1 [INFO] [stderr] Compiling pest v2.9.0 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling syn v3.0.4 [INFO] [stderr] Compiling syn v2.0.119 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling agent-hooks-adapters v0.12.1 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling regex-syntax v0.8.11 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling anstyle v1.0.14 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling hashbrown v0.17.1 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling colorchoice v1.0.5 [INFO] [stderr] Compiling anstream v1.0.0 [INFO] [stderr] Compiling jobserver v0.1.35 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling anyhow v1.0.104 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling cc v1.4.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling clap_lex v1.1.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling clap_builder v4.6.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling pest_meta v2.9.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling regex-automata v0.4.18 [INFO] [stderr] Compiling thread_local v1.1.10 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling zstd-sys v2.1.2+zstd.1.5.7 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling mio v1.2.2 [INFO] [stderr] Compiling uuid v1.26.0 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling socket2 v0.6.5 [INFO] [stderr] Compiling pest_generator v2.9.0 [INFO] [stderr] Compiling signal-hook-mio v0.2.5 [INFO] [stderr] Compiling toml_edit v0.20.7 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling serde_derive v1.0.229 [INFO] [stderr] Compiling tokio-macros v2.7.2 [INFO] [stderr] Compiling futures-macro v0.3.34 [INFO] [stderr] Compiling async-trait v0.1.92 [INFO] [stderr] Compiling clap_derive v4.6.4 [INFO] [stderr] Compiling tokio v1.53.1 [INFO] [stderr] Compiling futures-util v0.3.34 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling pest_derive v2.9.0 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling clap v4.6.6 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling chrono v0.4.45 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.23 [INFO] [stderr] Compiling agent-hooks-protocol v0.12.1 [INFO] [stderr] Compiling futures-executor v0.3.34 [INFO] [stderr] Compiling futures v0.3.34 [INFO] [stderr] Compiling interprocess v2.4.3 [INFO] [stderr] Compiling tokio-stream v0.1.19 [INFO] [stderr] Compiling agent-hooks-client v0.12.1 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling rusqlite v0.32.1 [INFO] [stderr] Compiling agent-hooks-history v0.12.1 [INFO] [stderr] Compiling agent-hooks-core v0.12.1 [INFO] [stderr] Compiling agent-hooks-cli v0.12.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 3m 32s [INFO] running `"docker" "inspect" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release"` [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling fastrand v2.5.0 [INFO] [stderr] Compiling tempfile v3.27.0 [INFO] [stderr] Compiling agent-hooks-cli v0.12.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 30.68s [INFO] running `"docker" "inspect" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--release"` [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.18s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/build/agent-hooks-cli/243bc620f9090697/out/agent_hooks-243bc620f9090697) [INFO] [stdout] [INFO] [stdout] running 114 tests [INFO] [stdout] test commands::agent::tests::missing_recipe_or_model_args_errors ... ok [INFO] [stdout] test commands::agent::tests::parses_ids_from_json_and_columns ... ok [INFO] [stdout] test commands::answer::tests::answer_falls_back_to_free_text ... ok [INFO] [stdout] test commands::agent::tests::modes_without_a_model_option_refuse_one ... ok [INFO] [stdout] test commands::agent::tests::parses_captured_listing_formats ... ok [INFO] [stdout] test commands::answer::tests::answer_selects_matching_option_case_insensitively ... ok [INFO] [stdout] test commands::agent::tests::yolo_args_can_be_exec_only ... ok [INFO] [stdout] test commands::agent::tests::model_args_follow_leading_subcommand_only ... ok [INFO] [stdout] test commands::hook::tests::daemon_verdict_keeps_allow_always_and_custom_input ... ok [INFO] [stdout] test commands::answer_tui::tests::free_text_only_requires_input_and_backspace_restores_incomplete_state ... ok [INFO] [stdout] test commands::hook::tests::context_cmd_timeout_env_override ... ok [INFO] [stdout] test commands::hook::tests::ignored_events_do_not_warn_unknown ... ok [INFO] [stdout] test commands::hook::tests::jcode_env_payload_ignored_when_empty_or_other_harness ... ok [INFO] [stdout] test commands::agent::tests::rejects_unknown_model_and_unlistable_agents ... ok [INFO] [stdout] test commands::answer_tui::tests::forbidden_custom_input_cannot_replace_an_option_or_answer_an_empty_question ... ok [INFO] [stdout] test commands::answer_tui::tests::single_select_switches_between_recommended_option_and_exact_custom_text ... ok [INFO] [stdout] test commands::answer_tui::tests::multi_select_preserves_options_and_custom_text_together ... ok [INFO] [stdout] test commands::answer::tests::live_answer_attaches_to_pre_tool_use_questions ... ok [INFO] [stdout] test commands::hook::tests::gate_events_wait_long_observe_fails_fast ... ok [INFO] [stdout] test commands::answer::tests::live_answer_leaves_promptless_pre_tool_use_alone ... ok [INFO] [stdout] test commands::hook::tests::jcode_env_payload_wins_over_argv ... ok [INFO] [stdout] test commands::hook::tests::context_cmd_receives_session_when_known ... ok [INFO] [stdout] test commands::agent::tests::splices_model_after_executable_and_keeps_prompt_one_arg ... ok [INFO] [stdout] test commands::hook::tests::context_cmd_stdin_is_null ... ok [INFO] [stdout] test commands::hook::tests::json_plus_trailing_payload_joined ... ok [INFO] [stdout] test commands::hook::tests::parse_context_output_shapes ... ok [INFO] [stdout] test commands::hook::tests::missing_socket_means_no_daemon_send ... ok [INFO] [stdout] test commands::hook::tests::parse_decision_keeps_answers_and_native_shapes ... ok [INFO] [stdout] test commands::hook::tests::piped_stdin_used_when_no_trailing_payload ... ok [INFO] [stdout] test commands::hook::tests::non_json_harness_not_treated_as_payload ... ok [INFO] [stdout] test commands::hook::tests::parse_decision_ask_shapes ... ok [INFO] [stdout] test commands::hook::tests::context_cmd_receives_contract_argv_and_returns_object ... ok [INFO] [stdout] test commands::hook::tests::parse_decision_defer_shapes ... ok [INFO] [stdout] test commands::install::tests::hook_command_quotes_paths_with_spaces ... ok [INFO] [stdout] test commands::install::tests::hook_command_quotes_context_cmd_with_whitespace ... ok [INFO] [stdout] test commands::hook::tests::json_first_arg_with_whitespace_prefix_routes_to_codex ... ok [INFO] [stdout] test commands::hook::tests::json_first_arg_routes_to_codex_with_payload_intact ... ok [INFO] [stdout] test commands::install::tests::hook_command_stamps_context_cmd_like_socket ... ok [INFO] [stdout] test commands::install::tests::hook_command_stamps_origin_after_context_cmd ... ok [INFO] [stdout] test commands::hook::tests::plain_harness_unchanged_regression ... ok [INFO] [stdout] test commands::hook::tests::context_cmd_failures_are_errors_not_panics ... ok [INFO] [stdout] test commands::install::tests::hook_command_unquoted_without_spaces ... ok [INFO] [stdout] test commands::install::tests::command_harnesses_install_the_legacy_event_sets ... ok [INFO] [stdout] test commands::install::tests::antigravity_named_bundle_installs_flat_lifecycle_entries ... ok [INFO] [stdout] test commands::install::tests::embedded_plugin_assets_leave_no_placeholders ... ok [INFO] [stdout] test commands::install::tests::hook_command_with_adapter_version ... ok [INFO] [stdout] test commands::install::tests::install_args_accept_bin_alias_and_context_cmd ... ok [INFO] [stdout] test commands::install::tests::antigravity_install_rewrites_wrong_shape_lifecycle_entries ... ok [INFO] [stdout] test commands::install::tests::gemini_installs_only_legacy_events_and_prunes_stale_aliases ... ok [INFO] [stdout] test commands::hook::tests::explicit_harness_still_wins_over_sniffing ... ok [INFO] [stdout] test commands::install::tests::staging_leaves_non_code_assets_untouched ... ok [INFO] [stdout] test commands::install::tests::jcode_install_creates_config_from_scratch ... ok [INFO] [stdout] test commands::install::tests::substitution_escapes_quotes_and_backslashes ... ok [INFO] [stdout] test commands::install::tests::substitution_unset_values_become_empty_strings ... ok [INFO] [stdout] test commands::install::tests::staging_substitutes_code_assets_idempotently_and_stays_managed ... ok [INFO] [stdout] test commands::install::tests::kiro_agent_config_is_a_valid_agent ... ok [INFO] [stdout] test commands::install::tests::toml_escape_keeps_windows_paths_valid ... ok [INFO] [stdout] test commands::install::tests::user_only_scope_drops_cwd_relative_project_paths ... ok [INFO] [stdout] test commands::self_install::tests::versions_compare_numerically ... ok [INFO] [stdout] test commands::install::tests::kiro_uninstall_keeps_a_default_the_user_changed_since ... ok [INFO] [stdout] test commands::user_hooks::tests::bad_files_fail_open_with_warnings ... ok [INFO] [stdout] test commands::user_hooks::tests::canned_ask_beats_canned_allow ... ok [INFO] [stdout] test commands::install::tests::substitution_writes_json_string_literals ... ok [INFO] [stdout] test commands::user_hooks::tests::canned_allow_always_and_suggestion_survive ... ok [INFO] [stdout] test commands::user_hooks::tests::canned_ask_escalates_with_reason ... ok [INFO] [stdout] test commands::user_hooks::tests::canned_defer_is_no_opinion_but_keeps_context ... ok [INFO] [stdout] test commands::install::tests::kiro_default_agent_restores_previous_value ... ok [INFO] [stdout] test commands::install::tests::jcode_installs_only_legacy_events_and_drops_stale_aliases ... ok [INFO] [stdout] test commands::install::tests::toml_list_hooks_mistral_rows_carry_types ... ok [INFO] [stdout] test commands::install::tests::kiro_default_agent_untouched_when_user_has_own_agent ... ok [INFO] [stdout] test commands::install::tests::toml_list_hooks_round_trip_preserves_foreign_content ... ok [INFO] [stdout] test commands::install::tests::jcode_installs_one_command_string_per_event ... ok [INFO] [stdout] test commands::install::tests::toml_list_hooks_reinstall_removes_rows_with_inner_comments ... ok [INFO] [stdout] test commands::install::tests::toml_list_hooks_reinstall_replaces_stale_binary_rows ... ok [INFO] [stdout] test commands::install::tests::kiro_default_agent_round_trip_without_prior_value ... ok [INFO] [stdout] test commands::install::tests::kiro_budget_comes_from_host_default ... ok [INFO] [stdout] test commands::user_hooks::tests::invalid_canned_answers_fail_closed_with_reason ... ok [INFO] [stdout] test commands::install::tests::install_false_is_normalize_only ... ok [INFO] [stdout] test commands::user_hooks::tests::commandless_when_respond_entries_parse ... ok [INFO] [stdout] test commands::user_hooks::tests::layers_accumulate_in_order_and_identical_handlers_run_once ... ok [INFO] [stdout] test commands::user_hooks::tests::merge_keeps_context_from_both_sources_and_never_on_ask ... ok [INFO] [stdout] test commands::user_hooks::tests::keys_normalize_case_insensitively ... ok [INFO] [stdout] test commands::user_hooks::tests::plain_canned_allow_is_kept ... ok [INFO] [stdout] test commands::user_hooks::tests::canned_respond_carries_static_context ... ok [INFO] [stdout] test commands::user_hooks::tests::merge_is_deny_over_ask_over_allow ... ok [INFO] [stdout] test commands::user_hooks::tests::deny_beats_context_and_drops_it ... ok [INFO] [stdout] test commands::user_hooks::tests::legacy_respond_shape_and_typos_are_rejected_not_ignored ... ok [INFO] [stdout] test commands::user_hooks::tests::omitted_timeout_parses_and_round_trips_absent ... ok [INFO] [stdout] test commands::user_hooks::tests::event_json_reaches_stdin_with_session_and_args ... ok [INFO] [stdout] test commands::user_hooks::tests::project_dir_search_stops_at_git_root_and_home ... ok [INFO] [stdout] test commands::user_hooks::tests::project_tier_adds_to_user_tier_per_event ... ok [INFO] [stdout] test commands::user_hooks::tests::project_cannot_authorize_environment_capture ... ok [INFO] [stdout] test commands::user_hooks::tests::respond_roundtrips_through_config_serialization ... ok [INFO] [stdout] test commands::user_hooks::tests::scaffold_parses ... ok [INFO] [stdout] test commands::user_hooks::tests::malformed_stdout_verdict_fails_closed ... FAILED [INFO] [stdout] test commands::user_hooks::tests::prompt_matches_substring_denies ... ok [INFO] [stdout] test commands::user_hooks::tests::nonzero_exit_beats_stdout_verdict ... FAILED [INFO] [stdout] test commands::user_hooks::tests::protocol_exit_codes ... ok [INFO] [stdout] test commands::user_hooks::tests::stdout_json_context_defers_with_context ... ok [INFO] [stdout] test commands::user_hooks::tests::stdout_plain_allow_and_explicit_allow_with_context ... ok [INFO] [stdout] test commands::user_hooks::tests::when_tool_match_returns_canned_blue_answers_without_spawning ... ok [INFO] [stdout] test commands::user_hooks::tests::oversized_stdout_is_denied_with_a_size_error_never_dropped ... ok [INFO] [stdout] test commands::hook::tests::context_cmd_timeout_kills_child_and_grandchildren ... ok [INFO] [stdout] test commands::user_hooks::tests::stdout_accepts_harness_native_shape ... ok [INFO] [stdout] test commands::user_hooks::tests::stdout_canonical_decision_roundtrips ... FAILED [INFO] [stdout] test commands::user_hooks::tests::spawned_deny_vetoes_canned_ask ... ok [INFO] [stdout] test commands::user_hooks::tests::protocol_exit_3_asks_with_question ... ok [INFO] [stdout] test commands::user_hooks::tests::plain_or_malformed_stdout_stays_ignored ... ok [INFO] [stdout] test commands::user_hooks::tests::contexts_join_in_entry_order_and_chatty_stdout_does_not_hang ... ok [INFO] [stdout] test commands::user_hooks::tests::merge_follows_entry_order_not_completion_order ... ok [INFO] [stdout] test commands::user_hooks::tests::timeout_kills_fail_open ... ok [INFO] [stdout] test commands::user_hooks::tests::local_hooks_fan_out_in_parallel ... ok [INFO] [stdout] test commands::user_hooks::tests::budget_caps_each_hook_so_the_parallel_total_fits ... ok [INFO] [stderr] error: test failed, to rerun pass `--bin agent-hooks` [INFO] [stdout] test commands::user_hooks::tests::omitted_timeout_inherits_the_harness_window ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- commands::user_hooks::tests::malformed_stdout_verdict_fails_closed stdout ---- [INFO] [stdout] agent-hooks: local hook ignored: cannot write stdin to 'printf '%s' '{"allow":true,"reason":"nope"}'' [INFO] [stdout] [INFO] [stdout] thread 'commands::user_hooks::tests::malformed_stdout_verdict_fails_closed' (3373) panicked at src/commands/user_hooks.rs:2007:36: [INFO] [stdout] {"allow":true,"reason":"nope"} must not be silently dropped [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x559478da9c61 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x559478dc130a - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x559478daecdc - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x559478d81f16 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x559478d9fec9 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x559478c0c400 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x559478da01f2 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x559478d81fc2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x559478d79c29 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x559478d82e8d - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x559478dc206c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x559478bc38dc - >::call_once [INFO] [stdout] 12: 0x559478bff26b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 13: 0x559478c0ca25 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 14: 0x559478c05e74 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 15: 0x559478c0f9b2 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 16: 0x559478da8ebf - ::new::thread_start [INFO] [stdout] 17: 0x77e01ae56dfa - [INFO] [stdout] 18: 0x77e01aeea3d4 - clone [INFO] [stdout] 19: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- commands::user_hooks::tests::nonzero_exit_beats_stdout_verdict stdout ---- [INFO] [stdout] agent-hooks: local hook ignored: cannot write stdin to 'printf '%s' '{"allow":false,"ask":true,"custom_input":"q"}'' [INFO] [stdout] agent-hooks: local hook ignored: cannot write stdin to 'exit 2' [INFO] [stdout] [INFO] [stdout] thread 'commands::user_hooks::tests::nonzero_exit_beats_stdout_verdict' (3377) panicked at src/commands/user_hooks.rs:1989:55: [INFO] [stdout] called `Option::unwrap()` on a `None` value [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x559478da9c61 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x559478dc130a - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x559478daecdc - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x559478d81f16 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x559478d9fec9 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x559478c0c400 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x559478da01f2 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x559478d81ff4 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x559478d79c29 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x559478d82e8d - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x559478dc206c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x559478dc2032 - core[5c14b8d5a259cc4e]::panicking::panic [INFO] [stdout] 12: 0x559478dc1e09 - core[5c14b8d5a259cc4e]::option::unwrap_failed [INFO] [stdout] 13: 0x559478bc115b - >::call_once [INFO] [stdout] 14: 0x559478bff26b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 15: 0x559478c0ca25 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 16: 0x559478c05e74 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 17: 0x559478c0f9b2 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 18: 0x559478da8ebf - ::new::thread_start [INFO] [stdout] 19: 0x77e01ae56dfa - [INFO] [stdout] 20: 0x77e01aeea3d4 - clone [INFO] [stdout] 21: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- commands::user_hooks::tests::stdout_canonical_decision_roundtrips stdout ---- [INFO] [stdout] agent-hooks: local hook ignored: cannot write stdin to 'printf '%s' '{"allow":true,"ask":false,"allow_always":false}'' [INFO] [stdout] [INFO] [stdout] thread 'commands::user_hooks::tests::stdout_canonical_decision_roundtrips' (3441) panicked at src/commands/user_hooks.rs:1951:36: [INFO] [stdout] {"allow":true,"ask":false,"allow_always":false} must decide [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x559478da9c61 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x559478dc130a - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x559478daecdc - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x559478d81f16 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x559478d9fec9 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x559478c0c400 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x559478da01f2 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x559478d81fc2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x559478d79c29 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x559478d82e8d - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x559478dc206c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x559478bc2d68 - >::call_once [INFO] [stdout] 12: 0x559478bff26b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 13: 0x559478c0ca25 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 14: 0x559478c05e74 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 15: 0x559478c0f9b2 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 16: 0x559478da8ebf - ::new::thread_start [INFO] [stdout] 17: 0x77e01ae56dfa - [INFO] [stdout] 18: 0x77e01aeea3d4 - clone [INFO] [stdout] 19: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] commands::user_hooks::tests::malformed_stdout_verdict_fails_closed [INFO] [stdout] commands::user_hooks::tests::nonzero_exit_beats_stdout_verdict [INFO] [stdout] commands::user_hooks::tests::stdout_canonical_decision_roundtrips [INFO] [stdout] [INFO] [stdout] test result: FAILED. 111 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.13s [INFO] [stdout] [INFO] running `"docker" "inspect" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791"` [INFO] running `"docker" "rm" "-f" "d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791"` [INFO] [stdout] d08de788e7cf89a65e78ca0dcdf8cc33a528d935772bc784586b24ae7c951791