diff --git a/.ripr/suppressions.toml b/.ripr/suppressions.toml index cbfd48dbf..b08a7f092 100644 --- a/.ripr/suppressions.toml +++ b/.ripr/suppressions.toml @@ -45601,3 +45601,418 @@ kind = "exposure_gap" finding_id = "probe:tests_recorded_review_cli.rs:return_value:dc3d58c5" owner = "ub-review/core" reason = "weakly_exposed static-path gap on PR #1623; probe Ok(()): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by absent_lead_is_distinct_from_declared_missing_or_invalid_lead, bounded_pipe_capture_kills_and_reaps_timed_out_child, duplicate_intake_field_is_rejected_with_exact_raw_pin. Re-verify after any edit to tests/recorded_review_cli.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:3fa7e988" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Ok(()): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by accounting_matrix_releases_early_commands_before_required_build, actionlint_sensor_scopes_to_changed_workflow_files, actual_entrypoint_rejects_wrong_missing_stale_and_unqualified_evidence. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:75048809" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Ok(()): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by action_recommendation_is_explicit_and_compatibility_defaults_are_preserved, active_graph_does_not_reuse_stale_proof_receipts, active_graph_keeps_inline_delivery_and_proof_receipt_links. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:predicate:558d9d79" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe actual.get(key) == Some(value),: Strong oracle found: exact value or pattern assertion. Reached by accounting_settles_actual_duration_with_conservative_rounding, actual_entrypoint_rejects_wrong_missing_stale_and_unqualified_evidence, body_budget_drops_topics_and_preserves_inline_fallback_receipt. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:a9980e09" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe Ok(()): No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:fa97e59f" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe Ok(()): No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:84efa756" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe Ok(()): No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:418565b9" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe Ok(()): No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:predicate:b1b6c143" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe !verified && output.trim() == RECONCILIATION_REJECTION,: Strong oracle found: exact value or pattern assertion. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, child_output_file_wait_reports_timeout_and_cleans_temp_files, enable_regular_file_outputs_preserve_rendering_and_replay. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:5a9cdec3" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe Ok(()): No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:68c5089e" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe Ok(()): No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:142b350a" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe fs::create_dir(to)?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:49d89be0" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe let entry = entry?;: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by actual_entrypoint_rejects_wrong_missing_stale_and_unqualified_evidence, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, comment_plan_identity_field_gaps_name_the_missing_entry_field. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:1e04bc27" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe entry.file_type()?.is_file(),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by actual_entrypoint_rejects_wrong_missing_stale_and_unqualified_evidence, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, comment_plan_identity_field_gaps_name_the_missing_entry_field. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:5aa0e887" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe Ok(()): No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:2b027547" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe Ok(()): No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:predicate:82489e72" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe before == after,: Strong oracle found: exact value or pattern assertion. Reached by accounting_matrix_releases_early_commands_before_required_build, audit_ci_tokenless_cli_writes_receipts_without_repo_side_effects, broker_replans_after_discriminating_test_receipt_before_build_wind_down. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:69a1ce76" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Ok(()): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by audit_ci_tokenless_cli_writes_receipts_without_repo_side_effects, build_unsafe_review_inline_comments_skips_unchanged_line, campaign_oracle_rejects_wrong_result_and_delivery_rewrite. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:field_construction:babe931f" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe bin: PathBuf,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, comment_plan_schema_routes_before_binding_versioned_comments, corrections_bind_each_supported_family_to_its_exact_action. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:field_construction:7a4a2b21" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe program: &Path,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, changed_path_ordering_and_duplicates_cannot_move_the_digest. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:field_construction:a70ae5ac" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe cwd: &Path,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, changed_path_ordering_and_duplicates_cannot_move_the_digest. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:71a65d71" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe fs::symlink_metadata(program)?.is_file(),: Only relational oracle found; it may not discriminate the changed value exactly. Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, doctor_distinguishes_missing_and_spawn_failure. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:b9e9b2b2" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe let mut child = match cmd.spawn() {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by adoption_docs_match_setup_ci_current_surface, ambiguous_cross_surface_match_is_not_explained, artifact_contract_docs_match_ci_audit_verifier_coverage. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:25fb4c55" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Ok(child) => child,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, child_cleanup_bounds_persistent_interrupted_reaps. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:4462ba94" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Err(error) => {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, child_cleanup_waits_for_confirmed_exit_even_when_kill_reports_an_error. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:65574290" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe let status = match child.wait_timeout(Duration::from_secs(30))? {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by accounting_settles_actual_duration_with_conservative_rounding, adoption_docs_match_setup_ci_current_surface, ambiguous_cross_surface_match_is_not_explained. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:d9a7cc42" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Some(status) => status,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, candidate_plan_artifacts_preserve_identity_and_budget_status. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:ff117952" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe None => {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, doctor_distinguishes_missing_and_spawn_failure. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:54c712db" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Ok((: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, doctor_distinguishes_missing_and_spawn_failure. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:4c65cd7b" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"{}{}\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by cache_warm_keeps_failed_versions_unavailable, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, doctor_distinguishes_missing_and_spawn_failure. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:field_construction:5d4da536" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe for i,v in enumerate(a):: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by accounting_matrix_releases_early_commands_before_required_build, action_forwards_complete_trusted_diff_admission_inputs, action_forwards_prior_resolved_candidates_input. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:field_construction:3fdc5493" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe if v=='-X': method=a[i+1]: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:field_construction:efdf5131" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe else:: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, discriminating_and_head_failed_are_published_whatever_else_the_receipt_says, fixture_identity_and_diff_fail_closed_on_real_git_errors. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:c8b44d2e" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe (ASSET, \"archive_sha256\"),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by actual_entrypoint_rejects_wrong_missing_stale_and_unqualified_evidence, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:72075178" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe fs::symlink_metadata(&bin)?.is_file(),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by actual_entrypoint_rejects_wrong_missing_stale_and_unqualified_evidence, campaign_oracle_rejects_wrong_result_and_delivery_rewrite, comment_plan_schema_routes_before_binding_versioned_comments. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:42b5bc60" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe )?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:42b5bc60.2" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe )?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:402a12e0" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe &transport,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:eb778100" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe serde_json::to_vec(: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:c53b5b16" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe )?,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:71dc88bd" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe )?;: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:6609babd" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe } else {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, discriminating_and_head_failed_are_published_whatever_else_the_receipt_says, fixture_identity_and_diff_fail_closed_on_real_git_errors. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:892e64e8" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe },: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:d59735d3" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"false\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:6609babd.2" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe } else {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, discriminating_and_head_failed_are_published_whatever_else_the_receipt_says, fixture_identity_and_diff_fail_closed_on_real_git_errors. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:892e64e8.2" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe },: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:36797713" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"1\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:36797713.2" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"1\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:f13ccbb5" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"0\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:f2d9d9a5" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"5\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:ea9ecbdc" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"--posting\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:6609babd.3" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe } else {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, discriminating_and_head_failed_are_published_whatever_else_the_receipt_says, fixture_identity_and_diff_fail_closed_on_real_git_errors. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:892e64e8.3" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe },: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:0cd74c1c" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"123\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:50ad9fb0" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe ]));: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:78b40394" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"UB_REVIEW_MINIMAX_API_KEY\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:side_effect:838e6d20" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe \"UB_REVIEW_MINIMAX_API_KEY\",: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:c03a6f66" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe ));: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:side_effect:17a50e5b" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe ));: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:87e6723a" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe let (verified, verification) = c.invoke(: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, env_scrub_driver_invokes_isolated_plan, fixture_identity_and_diff_fail_closed_on_real_git_errors. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:c8272436" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe &[: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:3b0ebc2b" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe ],: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:105c0c1e" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe &[],: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:42b5bc60.3" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe )?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:79e343a5" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe packet_verdict(id, verified, &verification)?;: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:e48d03c4" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"-c\".to_owned(),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:6a64a499" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe UNAFFECTED_CONTRACTS.to_owned(),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:f23c9115" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe let expected = match *id {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by adoption_docs_match_setup_ci_current_surface, ambiguous_cross_surface_match_is_not_explained, artifact_contract_docs_match_ci_audit_verifier_coverage. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:ecb2f011" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"required-gap\" => {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by a_tree_without_a_cargo_workspace_records_no_lockfile_gap, accounting_matrix_releases_early_commands_before_required_build, baseline_gate_sensor_argvs_match_required_matrix. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:b33192ea" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"provider-finding\" => {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by anchoring_failure_keeps_the_model_finding_out_of_the_diagnostic, cache_artifacts_use_follow_up_result_provider, cache_events_include_provider_preflight_usage. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:e180cb47" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"provider-text\" => {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by absent_pr_thread_context_omits_reuse_rules, build_unsafe_review_inline_comments_surfaces_repair_queue_context, cache_artifacts_use_follow_up_result_provider. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:92031c40" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe \"off\" => {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, candidate_gate_job_is_model_off_artifact_only_and_without_privileged_inputs, cmd_enable_with_resolver_writes_release_workflow_offline. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:match_arm:3a28822c" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe _ => {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:f0c933c0" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe .as_array(): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:471de8e3" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe .as_object(): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:call_deletion:baefee79" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Ok(()): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:680052c4" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Ok(()): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:7af15df0" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe )?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:5c38aa43" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe }))?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:7af15df0.2" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe )?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:7af15df0.3" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe )?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:predicate:89af2e2f" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe && r[\"status\"] == 204),: Strong oracle found: exact value or pattern assertion. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, candidate_plan_artifacts_preserve_identity_and_budget_status, cmd_status_prints_notable_events. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:error_path:7af15df0.4" +owner = "ub-review/core" +reason = "reachable_unrevealed static-path gap on PR #1391; probe )?;: No assertion found on related tests. Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." +[[suppressions]] +kind = "exposure_gap" +finding_id = "probe:tests_archive_advisory_run.rs:return_value:184946f5" +owner = "ub-review/core" +reason = "weakly_exposed static-path gap on PR #1391; probe Ok(()): Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by campaign_oracle_rejects_wrong_result_and_delivery_rewrite, fixture_identity_and_diff_fail_closed_on_real_git_errors, frozen_archive_advisory_campaign. Re-verify after any edit to tests/archive_advisory_run.rs." diff --git a/docs/ARCHIVE_ADVISORY_RUN.md b/docs/ARCHIVE_ADVISORY_RUN.md new file mode 100644 index 000000000..128db1368 --- /dev/null +++ b/docs/ARCHIVE_ADVISORY_RUN.md @@ -0,0 +1,156 @@ +# Preliminary archive advisory-run campaign (#1341) + +Owner: release acceptance tests. This file and `tests/archive_advisory_run.rs` +are the complete slice. Installation remains with #1382, byte validation with +#1379, publication with #1344, and result producers with their existing owners. + +The executable Rust campaign consumes the strict #1382 frozen-archive contract: +`UB_ARCHIVE_PACKET` contains the preliminary Linux archive, checksum and +`manifest.json`; `UB_ADVISORY_INSTALL_RECEIPTS` contains a completed +`ub-review.archive_onboarding_rehearsal.v1` `bounded_pass` receipt and installed +`runtime/ub-review-action-release/ub-review`. It checks all frozen digests and +manifest equality, then invokes that installed executable. It does not install +or rebuild the executable. Source/toolchain manifest labels are not provenance. + +```sh +UB_ARCHIVE_PACKET=/absolute/frozen-packet \ +UB_ADVISORY_INSTALL_RECEIPTS=/absolute/strict-install-receipts \ +UB_ADVISORY_RECEIPTS=/absolute/new-campaign-receipts \ +cargo test --locked --test archive_advisory_run \ + frozen_archive_advisory_campaign -- --ignored --nocapture +``` + +The output directory must be new. The harness requires Linux x86_64, +`/usr/bin/git`, `/usr/bin/python3`, `uname` and `sh`. Its children receive a +cleared environment and an allowlisted PATH. The only curl implementation is +an inert synthetic adapter with exact `.invalid` URL routes; unknown routes +exit without networking. Provider and GitHub credentials are synthetic. The +Rust harness itself runs under Cargo; reviewed fixture commands have no Cargo +or rustc available. Each child has a 30-second direct-child kill/reap boundary, +not a general process-tree containment claim. + +`receipt.json` records the selected archive/binary/manifest/install receipt, +input diff/source hashes, verifier/harness hashes, exact argv, policy/provider +configuration, stdout/stderr hashes, result artifacts, payload, transport logs +and delivery receipts. A wrong expected conclusion must reject every emitted +run result. Successful submission must retain pending review identity 987; +pending creation is HTTP 201 and submission HTTP 200. A separate mismatched +ID 988 control records legacy CLI acceptance but must be rejected by the +campaign identity oracle. This does not qualify the legacy producer: #1317 +already owns production identity rejection. Git revision/diff commands must +exit successfully before their output becomes input evidence; the ordinary +regression checks all three operations against a real non-repository. The automatic test independently discriminates wrong result planes +and rewritten imported outcome bytes. Failed campaign attempts retain their +receipts and logs; intake errors reject before accepting any campaign evidence. + +| Slice | Executable observation | Acceptance boundary / owner | +|---|---|---| +| Model off | No provider calls; deterministic current result planes retained | Current producer reports gate `not_proven`; disabled applicability remains #1352/#1373 | +| Required evidence absent | Intelligent CI conclusion `inconclusive`, gate `not_proven` | Missing evidence cannot become a clean sufficient gate | +| Structured provider finding | Public summary payload prepared; private audit positive control retained only privately | Current verifier rejects resolved-candidate reconciliation; producer also labels merely prepared payload `publication_result: posted` (#959); both blockers | +| Provider outage | One synthetic preflight call; analysis and gate `not_proven` | No live provider qualification | +| Unstructured provider text | Two synthetic calls; degraded lane retained and analysis limited | Text is not promoted to findings | +| Missing credential | No transport invocation; current missing-input outcome | Synthetic environment contains no actual credentials | +| Prepared versus delivered | No post-result before posting; separate CLI post yields submitted synthetic review | #959 remains delivery authority; this exercises no actual GitHub endpoint | +| Delivery failure | Failed submit, cleanup path, nonzero strict post exit; original deterministic bytes unchanged | Existing error receipt reports `failure_stage: unknown` and null HTTP status despite adapter HTTP 500; producer gap remains open | + +The packet verifier is invoked for all six run packets. Five must succeed. +For the selected binary SHA-256 below, the structured-finding case must fail +with the exact current +`resolved_candidates.json does not match candidates plus follow-up outputs and +prior resolved candidates` rejection. Verifier success also fails this frozen observation; changed binary bytes +require refreshed expectations. The additive diagnostic imports the unchanged +verifier and runs its full sequence, retaining only the exact reconciliation +denial and the prepared-stage `neither post-result.json nor post-error.json +exists` denial that the first failure previously masked. It executes the +remainder of those functions and rejects every other failure. Its output says +the full packet remains rejected. A copied structured packet with +`CONTROL_INVALID_SCHEMA` must fail this diagnostic; an actual emitted-packet +mutation independently proved the full campaign now rejects that corruption. The final status is deliberately `bounded_observations_with_blockers`. +The prepared payload is checked before either synthetic post and already says +`publication_result: posted`; this is an unsupported producer label, not delivery +confirmation. A future producer fix must update this explicit observation and demonstrate +successful verification rather than silently inherit a positive claim. + +This campaign does not qualify final #816 archive bytes, signatures/provenance, +platforms, real Actions, live providers/delivery, or terminal/outcome authority +#957–#962. It does not execute an actual deterministic source-defect sensor: +required-evidence failure and imported result invariance are the bounded +controls. Joined privacy unit proof #1376 remains independent evidence. +#1217 DevOps is not an advisory-release prerequisite. + +## Local evidence, 2026-10-11 + +Selected source: `777d86a0fef6702f76502dd1c959c97d43600682`, tree +`b08c618989c3ea94936683810bcab3af5d0ee34a`. Preliminary local release-profile +build: `cargo build --release --locked`, Rust 1.95.0, x86_64 Linux. +Strict-install harness: #1382 head +`26402b044a57745ee4168b27e62329b041fa391b`; 17 scenarios/41 commands passed. +Advisory campaign: eight scenarios/25 commands; five packet verifier passes +and one explicitly retained structured-finding rejection. Runtime 4.77 seconds. + +| Evidence | SHA-256 | +|---|---| +| Selected archive | `120baf78e8b810a77496a10621e2e1c6c50884756636be93ff49fa30fc491600` | +| Installed binary | `7b0379029b108a264222e01cabf58a0f3c471ae845bb24b2cebea1f75750c8b6` | +| Strict-install receipt | `e8b291b30abaa7cda3e42b33dc1b31470a082e3e60eed6f68f466b2f927655e6` | +| Campaign receipt | `86894e8534287490ddc6229f55bdcaba04d9430c8430fdac72eb703fea4c307a` | +| Campaign harness | `6cd7f4e86fec940a0748eb660cad16876d47a634498e221f884a23db60d2f566` | +| Inert transport adapter | `450806daf64a6f399c7202ea82b7eb795908248110d577e56f0ad82272b224d7` | + +Raw campaign evidence is retained at `/tmp/advisory-run-receipts-reviewed` in +this executor, installation evidence at `/tmp/advisory-strict-install`, and +selected inputs at `/tmp/advisory-selected-archive`. These local files are not +hosted release assets. Earlier harness failures remain in separately numbered +receipt directories. Baseline local fmt/check/Clippy/full tests/docs/policy/ +verifier self-tests passed. After the bounded review adjustments, the campaign +and Clippy passed again. The archive test is intentionally ignored by ordinary +Cargo test because the selected archive and strict-install evidence are explicit +external inputs. The automatic oracle discrimination test runs ordinarily. + + +## Review repair evidence, 2026-10-11 + +Original head `e60f89125caf9a520453f2fc05eb376b62961fff` and the receipt table +above remain historical evidence. The repaired harness preserves the selected +archive/binary/strict-install digests and the preliminary source scope. Eight +scenarios now execute 28 commands, including independent unaffected-contract +and invalid-gate checks plus the mismatched identity observation. Five ordinary +run packet verifications succeed; the structured packet's ordinary verification +still rejects its exact documented reconciliation gap. The supplemental check +retains the precise prepare-stage missing-post denial as an additional observed +boundary, never a complete packet pass. + +Final repair campaign `/tmp/1391-repair-final-v2` passed in 5.42 seconds. Its +receipt SHA-256 is +`090b58a26df1f6272b76c67944bda6972e6ca8d4d20d49d049c707b863dc6ad5`; +harness `2068491d977618a82817165159a6089cbc48ec4f5d4a4d3b4add1ad905570ac2`; +transport adapter `f0d9dc76caeb02e61d64cba89c3da76681d8f8d7dc8b4b82e6f8507e538ff3a2`; +supplemental driver `766ed2ed4e113d1cf8ce262d221406fdabfaf28d5cc818105492d56032416eb6`. + +Discriminating evidence: `/tmp/1391-invalid-gate-mutant.log` is RED with the +exact invalid-schema rejection after mutating the actual structured output; +`/tmp/1391-git-fail-open-mutant.log` is RED after bypassing Git exit checking. +Both disposable mutations were restored. Ordinary tests also reject unexpected +verifier success, an unrelated or additional denial, and widening the known +gap to other modes. No production, verifier or strict-install code changed. +HTTP-status extraction remains with the resumed #1370/#1317 owner task; +its actual native HTTP500 regression is separately RED on owner87e28f8. + + +## Identity-negative specificity follow-up + +The negative observation now requires exactly `988/COMMENTED`, then checks +rejection against identity `987` alone. `987/PENDING` and `987/COMMENTED` both +match that identity and cannot count as an identity-negative control; the +automatic regression rejects both as negative evidence, and also rejects +`988/PENDING`. Restoring the old combined identity/state predicate is RED on +`987/PENDING` (`/tmp/1391-identity-specificity-old-oracle-red.log`), then restored +GREEN. No production or other campaign behavior changed. + +The complete eight-scenario/28-command campaign remains +`bounded_observations_with_blockers` at +`/tmp/1391-identity-specificity-campaign`. Receipt SHA-256 +`c1142c7c013903f653385caf0af93a257d813df0a6d3cd565f6893d4fcccc78e`; harness +`7969c613b54071f382fb7496bf0e9a40ce4aee999fb0baa67d0abb2c7f5b37c1`. Four automatic tests, +focused Clippy and fmt passed. Previous b7a41619 evidence is preserved above. diff --git a/tests/archive_advisory_run.rs b/tests/archive_advisory_run.rs new file mode 100644 index 000000000..f7b39f768 --- /dev/null +++ b/tests/archive_advisory_run.rs @@ -0,0 +1,879 @@ +//! #1341 preliminary archive CLI campaign. Installation stays with #1382. +#![cfg(all(target_os = "linux", target_arch = "x86_64"))] + +use anyhow::{Context, Result, ensure}; +use serde_json::{Value, json}; +use sha2::{Digest, Sha256}; +use std::fs; +use std::os::unix::fs::{PermissionsExt, symlink}; +use std::path::{Path, PathBuf}; +use std::process::{Command, Stdio}; +use std::time::Duration; +use wait_timeout::ChildExt; + +const ASSET: &str = "ub-review-x86_64-unknown-linux-gnu.tar.gz"; +const CASES: &[&str] = &[ + "off", + "required-gap", + "provider-finding", + "provider-outage", + "provider-text", + "missing-key", + "post-success", + "post-error", +]; + +fn sha(bytes: &[u8]) -> String { + format!("{:x}", Sha256::digest(bytes)) +} +fn read(path: &Path) -> Result { + Ok(serde_json::from_slice(&fs::read(path)?)?) +} +fn write(path: &Path, bytes: impl AsRef<[u8]>) -> Result<()> { + fs::create_dir_all(path.parent().context("parent")?)?; + fs::write(path, bytes)?; + Ok(()) +} +fn script(path: &Path, body: &str) -> Result<()> { + write(path, body)?; + fs::set_permissions(path, fs::Permissions::from_mode(0o755))?; + Ok(()) +} +fn checked_result(actual: &Value, expected: &Value) -> Result<()> { + for (key, value) in expected.as_object().context("expected result object")? { + ensure!( + actual.get(key) == Some(value), + "wrong result plane {key}: expected {value}, observed {}", + actual[key] + ); + } + Ok(()) +} +fn require_identity_negative_control(response: &Value) -> Result<()> { + checked_result(response, &json!({"id":988,"state":"COMMENTED"}))?; + ensure!( + checked_result(response, &json!({"id":987})).is_err(), + "mismatched review identity accepted by campaign oracle" + ); + Ok(()) +} + +const RECONCILIATION_REJECTION: &str = "verify-bun-review-artifacts: review/resolved_candidates.json does not match candidates plus follow-up outputs and prior resolved candidates"; +fn packet_verdict(id: &str, verified: bool, output: &str) -> Result<()> { + if id == "provider-finding" { + ensure!( + !verified && output.trim() == RECONCILIATION_REJECTION, + "frozen structured packet must retain its exact reconciliation rejection: {output}" + ); + } else { + ensure!(verified, "{id} packet contract failed: {output}"); + } + Ok(()) +} +fn copy_packet(from: &Path, to: &Path) -> Result<()> { + fs::create_dir(to)?; + for entry in fs::read_dir(from)? { + let entry = entry?; + let target = to.join(entry.file_name()); + if entry.file_type()?.is_dir() { + copy_packet(&entry.path(), &target)?; + } else { + ensure!( + entry.file_type()?.is_file(), + "regular packet files required" + ); + fs::copy(entry.path(), target)?; + } + } + Ok(()) +} +// Additive diagnostic: the ordinary verifier must still reject this exact packet. +// Continue only its documented reconciliation and prepare-only missing-post denials, retaining all other +// checks (including the remainder of that function). No production verifier edit. +const UNAFFECTED_CONTRACTS: &str = r#" +import contextlib, importlib.util, io, pathlib, sys +spec=importlib.util.spec_from_file_location('archive_contract',sys.argv[1]) +v=importlib.util.module_from_spec(spec); sys.modules[spec.name]=v; spec.loader.exec_module(v) +original=v.fail; denials=[] +def retained_failure(message): + if message in ('review/resolved_candidates.json does not match candidates plus follow-up outputs and prior resolved candidates','neither post-result.json nor post-error.json exists'): + denials.append(message) + else: original(message) +v.fail=retained_failure +with contextlib.redirect_stdout(io.StringIO()): + result=v.main(['archive_contract',sys.argv[2],'--expected-repo-kind','rust']) +if result!=0 or denials!=['review/resolved_candidates.json does not match candidates plus follow-up outputs and prior resolved candidates','neither post-result.json nor post-error.json exists']: original('expected exact reconciliation and prepared-stage missing-post denials') +print('unaffected contracts checked; reconciliation and prepared-stage missing-post denials retained; full packet remains rejected') +"#; +fn unchanged(before: &[u8], after: &[u8]) -> Result<()> { + ensure!( + before == after, + "delivery rewrote imported deterministic outcome" + ); + Ok(()) +} + +struct Campaign { + root: PathBuf, + bin: PathBuf, + manifest: Value, + intake: Value, + commands: Vec, + scenarios: Value, +} +impl Campaign { + fn receipt(&self, state: &str, error: Option) -> Result<()> { + write( + &self.root.join("receipt.json"), + serde_json::to_vec_pretty(&json!({ + "schema":"ub-review.archive_advisory_campaign.v1", "phase":"preliminary_local_archive", + "status":state, "error":error, "manifest":self.manifest, "intake":self.intake, + "harness_sha256":sha(include_bytes!("archive_advisory_run.rs")), "transport_adapter_sha256":sha(TRANSPORT.as_bytes()), + "commands":self.commands, "scenarios":self.scenarios, + "boundaries":{"provider":"inert synthetic curl adapter", "github":"inert synthetic curl adapter", "ambient_environment":"cleared", "live_calls":false}, + "pending":["final #816 bytes/provenance", "live provider/delivery", "Action execution", "platform matrix", "#957-#962 terminal/outcome authority", "#1352 disabled applicability", "#959 confirmed delivery", "general process-tree containment"] + }))?, + ) + } + fn invoke( + &mut self, + program: &Path, + cwd: &Path, + args: &[String], + env: &[(&str, String)], + ) -> Result<(bool, String)> { + if program == self.bin { + ensure!( + fs::symlink_metadata(program)?.is_file(), + "selected binary must remain regular" + ); + ensure!( + sha(&fs::read(program)?) == self.manifest["binary_sha256"], + "selected binary moved" + ); + } + let index = self.commands.len(); + let logs = self.root.join(format!("logs/{index}")); + fs::create_dir_all(&logs)?; + let mut cmd = Command::new(program); + cmd.args(args) + .current_dir(cwd) + .env_clear() + .env("PATH", self.root.join("bin")) + .env("HOME", &self.root) + .env("LC_ALL", "C") + .stdin(Stdio::null()) + .stdout(fs::File::create(logs.join("stdout"))?) + .stderr(fs::File::create(logs.join("stderr"))?); + for (key, value) in env { + cmd.env(key, value); + } + self.commands.push(json!({"program":program,"cwd":cwd,"argv":args,"state":"attempted", "environment":env.iter().filter(|(k,_)| !k.ends_with("KEY") && *k != "GITHUB_TOKEN").map(|(k,v)| json!([k,v])).collect::>(), "timeout_seconds":30})); + self.receipt("running", None)?; + let mut child = match cmd.spawn() { + Ok(child) => child, + Err(error) => { + self.commands[index]["state"] = json!("spawn_failed"); + return Err(error.into()); + } + }; + let status = match child.wait_timeout(Duration::from_secs(30))? { + Some(status) => status, + None => { + child.kill()?; + child.wait()?; + self.commands[index]["state"] = json!("timed_out_direct_child_reaped"); + anyhow::bail!("command timed out: {}", logs.display()); + } + }; + let stdout = fs::read(logs.join("stdout"))?; + let stderr = fs::read(logs.join("stderr"))?; + self.commands[index]["state"] = json!("exited"); + self.commands[index]["exit"] = json!(status.code()); + self.commands[index]["stdout_sha256"] = json!(sha(&stdout)); + self.commands[index]["stderr_sha256"] = json!(sha(&stderr)); + self.receipt("running", None)?; + Ok(( + status.success(), + format!( + "{}{}", + String::from_utf8_lossy(&stdout), + String::from_utf8_lossy(&stderr) + ), + )) + } + fn fixture_git(&mut self, cwd: &Path, args: &[String]) -> Result { + let (ok, text) = self.invoke(Path::new("/usr/bin/git"), cwd, args, &[])?; + ensure!(ok, "fixture git {args:?} failed: {text}"); + Ok(text) + } + fn cli(&mut self, args: &[String], env: &[(&str, String)]) -> Result<(bool, String)> { + let bin = self.bin.clone(); + let root = self.root.clone(); + self.invoke(&bin, &root, args, env) + } +} + +// No network client is present: even an unknown URL cannot escape this adapter. +const TRANSPORT: &str = r#"#!/usr/bin/python3 +import json, os, sys +a=sys.argv[1:]; method='GET'; url=''; body=None +headers=sys.stdin.read() +if 'Authorization: Bearer synthetic-fixture-value' not in headers: sys.exit(94) +for i,v in enumerate(a): + if v=='-X': method=a[i+1] + if v=='--data-binary': body=json.load(open(a[i+1][1:])); method='POST' if method=='GET' else method + if v.startswith('https://'): url=v +s=json.load(open(os.environ['CAMPAIGN_TRANSPORT'])) +status=200 +if url=='https://provider.invalid/v1/chat/completions' and method=='POST': + if s['provider']=='outage': status=503; result={'error':{'message':'synthetic unavailable'}} + else: result={'choices':[{'message':{'content':s['content']}}]} +elif url=='https://github.invalid/repos/example/repo/pulls/123' and method=='GET': result={'head':{'sha':s['head']}} +elif url=='https://github.invalid/repos/example/repo/pulls/123/reviews' and method=='POST': status=201; result={'id':987,'state':'PENDING'} +elif '/reviews/987/comments' in url and url.startswith('https://github.invalid/') and method=='GET': result=[] +elif url=='https://github.invalid/repos/example/repo/pulls/123/reviews/987/events' and method=='POST': + if s['post']=='error': status=500; result={'message':'synthetic submit error'} + elif s['post']=='mismatched': result={'id':988,'state':'COMMENTED','body':'synthetic submission'} + else: result={'id':987,'state':'COMMENTED','body':'synthetic submission'} +elif url=='https://github.invalid/repos/example/repo/pulls/123/reviews/987' and method=='DELETE': status=204; result={} +else: + print('unallowlisted transport: '+method+' '+url,file=sys.stderr); sys.exit(95) +with open(os.environ['CAMPAIGN_TRANSPORT_LOG'],'a') as f: f.write(json.dumps({'method':method,'url':url,'body':body,'status':status})+'\n') +print(json.dumps(result)); print('UB_REVIEW_HTTP_STATUS:'+str(status)) +sys.exit(22 if status>=400 else 0) +"#; + +fn intake(packet: &Path, installed: &Path) -> Result<(PathBuf, Value, Value)> { + let manifest = read(&packet.join("manifest.json"))?; + ensure!( + manifest["phase"] == "preliminary_local_archive" + && manifest["target"] == "x86_64-unknown-linux-gnu", + "preliminary Linux archive required" + ); + for (file, key) in [ + (ASSET, "archive_sha256"), + ( + "ub-review-x86_64-unknown-linux-gnu.tar.gz.sha256", + "checksum_sha256", + ), + ] { + ensure!( + sha(&fs::read(packet.join(file))?) == manifest[key], + "frozen {key} mismatch" + ); + } + let receipt = read(&installed.join("receipt.json"))?; + ensure!( + receipt["schema"] == "ub-review.archive_onboarding_rehearsal.v1" + && receipt["status"] == "bounded_pass", + "completed #1382 strict-install receipt required" + ); + ensure!( + receipt["frozen_manifest"] == manifest, + "installation used different frozen bytes" + ); + let bin = installed.join("runtime/ub-review-action-release/ub-review"); + ensure!( + fs::symlink_metadata(&bin)?.is_file(), + "regular installed executable required" + ); + ensure!( + sha(&fs::read(&bin)?) == manifest["binary_sha256"], + "installed executable digest mismatch" + ); + let identities = json!({"archive_path":packet,"install_receipt_path":installed,"install_receipt_sha256":sha(&fs::read(installed.join("receipt.json"))?), "install_harness_sha256":receipt["harness_sha256"], "archive_bytes":fs::metadata(packet.join(ASSET))?.len(), "binary_path":bin,"manifest_sha256":sha(&fs::read(packet.join("manifest.json"))?), "provenance":"source/toolchain manifest labels only; not cryptographic binary provenance"}); + Ok((bin, manifest, identities)) +} + +fn config(required: bool) -> String { + let mut text = String::from( + "profile = \"gh-runner\"\n[repo]\nkind = \"rust\"\nledger = \"\"\n[review]\nenable_default_lanes = false\n[[lanes]]\nid = \"archive-lane\"\nrole = \"Controlled archive fixture\"\nfocus = \"Inspect changed return value\"\n", + ); + for tool in [ + "tokmd", + "cargo-allow", + "ast-grep", + "ripr", + "unsafe-review", + "semgrep", + "actionlint", + "zizmor", + "gitleaks", + "cargo-fmt", + "cargo-check", + "cargo-test", + "cargo-clippy", + "cargo-doc", + "artifact-verifier", + "coverage", + "osv-scanner", + "cargo-audit", + "cargo-deny", + "shellcheck", + "cppcheck", + "test", + "build", + "miri", + "cargo-mutants", + ] { + text.push_str(&format!( + "\n[tools.{tool}]\nenabled = false\nrequired = {}\n", + required && tool == "tokmd" + )); + } + text +} +fn strings(args: &[&str]) -> Vec { + args.iter().map(|s| (*s).to_owned()).collect() +} + +fn campaign(c: &mut Campaign) -> Result<()> { + fs::create_dir(c.root.join("bin"))?; + for tool in ["git", "uname", "sh"] { + symlink(format!("/usr/bin/{tool}"), c.root.join("bin").join(tool))?; + } + script(&c.root.join("bin/curl"), TRANSPORT)?; + let (ok, text) = c.cli(&strings(&["--version"]), &[])?; + ensure!( + ok && text.trim() + == format!( + "ub-review {}", + c.manifest["version"].as_str().context("version")? + ), + "archive version mismatch: {text}" + ); + let repo = c.root.join("fixture repo"); + fs::create_dir(&repo)?; + write( + &repo.join("src/lib.rs"), + "pub fn answer() -> usize { 41 }\n", + )?; + let git = Path::new("/usr/bin/git"); + for args in [ + strings(&["init"]), + strings(&["config", "user.email", "archive@example.invalid"]), + strings(&["config", "user.name", "Archive Fixture"]), + strings(&["add", "."]), + strings(&["commit", "-m", "base"]), + ] { + let (ok, text) = c.invoke(git, &repo, &args, &[])?; + ensure!(ok, "fixture git: {text}"); + } + write( + &repo.join("src/lib.rs"), + "pub fn answer() -> usize { 42 }\n", + )?; + for args in [strings(&["add", "."]), strings(&["commit", "-m", "head"])] { + let (ok, text) = c.invoke(git, &repo, &args, &[])?; + ensure!(ok, "fixture git: {text}"); + } + let head = c.fixture_git(&repo, &strings(&["rev-parse", "HEAD"]))?; + let head = head.trim().to_owned(); + let base = c.fixture_git(&repo, &strings(&["rev-parse", "HEAD~1"]))?; + let diff = c.fixture_git(&repo, &strings(&["diff", "--binary", "HEAD~1", "HEAD"]))?; + write(&c.root.join("input.patch"), diff.as_bytes())?; + c.intake["input"] = json!({"base":base.trim(),"head":head,"diff_sha256":sha(diff.as_bytes()),"source_sha256":sha(&fs::read(repo.join("src/lib.rs"))?)}); + for id in CASES.iter().take(6) { + let root = c.root.join(id); + fs::create_dir(&root)?; + let cfg = root.join("config.toml"); + write(&cfg, config(*id == "required-gap"))?; + let content = if *id == "provider-text" { + "Readable synthetic lane evidence without structured JSON".to_owned() + } else { + json!({"summary":"Archive fixture needs a boundary regression for the changed return value.","inline_comments":[],"summary_only_findings":[{"severity":"medium","confidence":"high","reason":"Archive fixture needs a boundary regression for the changed return value.","evidence":"src/lib.rs return changes from 41 to 42 without a regression test."}],"internal_audit":{"surfaces_checked":["PRIVATE_ARCHIVE_AUDIT_SENTINEL"],"strongest_rejected_hypothesis":"PRIVATE_ARCHIVE_AUDIT_SENTINEL","remaining_local_uncertainty":null}}).to_string() + }; + let transport = root.join("transport.json"); + let log = root.join("transport.ndjson"); + write( + &transport, + serde_json::to_vec( + &json!({"provider":if *id=="provider-outage" {"outage"} else {"success"},"post":"success","head":head,"content":content}), + )?, + )?; + let out = root.join("packet"); + let mut args = strings(&["run", "--config"]); + args.push(cfg.display().to_string()); + args.extend(strings(&["--root"])); + args.push(repo.display().to_string()); + args.extend(strings(&["--base", "HEAD~1", "--head", "HEAD", "--out"])); + args.push(out.display().to_string()); + args.extend(strings(&[ + "--mode", + if id.starts_with("provider") || *id == "missing-key" { + "review-byok" + } else { + "intelligent-ci" + }, + "--fail-on-gate", + "false", + "--model-mode", + if id.starts_with("provider") || *id == "missing-key" { + "auto" + } else { + "off" + }, + "--provider-policy", + "minimax-only", + "--minimax-provider-kind", + "openai", + "--lanes", + "archive-lane", + "--model-concurrency", + "1", + "--max-model-calls", + "1", + "--max-inline-comments", + "0", + "--model-timeout-sec", + "5", + "--run-pass", + "opened", + "--posting", + if *id == "provider-finding" { + "review" + } else { + "artifact-only" + }, + "--github-repo", + "example/repo", + "--github-pull-number", + "123", + "--no-github-summary", + ])); + let mut env = vec![ + ("CAMPAIGN_TRANSPORT", transport.display().to_string()), + ("CAMPAIGN_TRANSPORT_LOG", log.display().to_string()), + ( + "UB_REVIEW_MINIMAX_API_URL", + "https://provider.invalid/v1/chat/completions".to_owned(), + ), + ]; + if *id != "missing-key" { + env.push(( + "UB_REVIEW_MINIMAX_API_KEY", + "synthetic-fixture-value".to_owned(), + )); + } + let (ok, text) = c.cli(&args, &env)?; + ensure!(ok, "{id} run failed: {text}"); + let verifier = + Path::new(env!("CARGO_MANIFEST_DIR")).join("scripts/verify-bun-review-artifacts.py"); + c.intake["packet_verifier_sha256"] = json!(sha(&fs::read(&verifier)?)); + let (verified, verification) = c.invoke( + Path::new("/usr/bin/python3"), + &root, + &[ + verifier.display().to_string(), + out.display().to_string(), + "--expected-repo-kind".to_owned(), + "rust".to_owned(), + ], + &[], + )?; + packet_verdict(id, verified, &verification)?; + if *id == "provider-finding" { + ensure!( + c.manifest["binary_sha256"] + == "7b0379029b108a264222e01cabf58a0f3c471ae845bb24b2cebea1f75750c8b6", + "known reconciliation observation is pinned to selected binary bytes; refresh expectations for other bytes" + ); + c.intake["unaffected_contract_driver_sha256"] = + json!(sha(UNAFFECTED_CONTRACTS.as_bytes())); + let check = |packet: &Path| { + vec![ + "-c".to_owned(), + UNAFFECTED_CONTRACTS.to_owned(), + verifier.display().to_string(), + packet.display().to_string(), + ] + }; + let (ok, text) = c.invoke(Path::new("/usr/bin/python3"), &root, &check(&out), &[])?; + ensure!(ok, "unaffected structured packet contracts failed: {text}"); + let corrupt = root.join("invalid-gate-control"); + copy_packet(&out, &corrupt)?; + let path = corrupt.join("review/gate_outcome.json"); + let mut gate = read(&path)?; + gate["schema"] = json!("CONTROL_INVALID_SCHEMA"); + write(&path, serde_json::to_vec_pretty(&gate)?)?; + let (ok, text) = + c.invoke(Path::new("/usr/bin/python3"), &root, &check(&corrupt), &[])?; + ensure!( + !ok && text.contains("gate outcome has wrong schema: 'CONTROL_INVALID_SCHEMA'"), + "unrelated gate corruption escaped retained denial: {text}" + ); + } + let gate = read(&out.join("review/gate_outcome.json"))?; + let terminal = read(&out.join("review/terminal_state.json"))?; + let review = read(&out.join("review/review.json"))?; + let expected = match *id { + "required-gap" => { + json!({"conclusion":"inconclusive","gate_result":"not_proven","analysis_result":"not_proven","publication_result":"not_proven"}) + } + "provider-finding" => { + json!({"conclusion":"pass","gate_result":"pass","analysis_result":"findings","publication_result":"posted"}) + } + "provider-text" => { + json!({"conclusion":"pass","gate_result":"pass","analysis_result":"limited","publication_result":"not_needed"}) + } + "off" => { + json!({"conclusion":"pass","gate_result":"not_proven","analysis_result":"not_proven","publication_result":"not_needed"}) + } + _ => { + json!({"conclusion":"pass","gate_result":"not_proven","analysis_result":"not_proven","publication_result":"not_proven"}) + } + }; + checked_result(&gate, &expected)?; + let mut wrong = expected.clone(); + wrong["conclusion"] = json!("fail"); + ensure!( + checked_result(&gate, &wrong).is_err(), + "wrong-outcome control accepted" + ); + let calls = if log.exists() { + fs::read_to_string(&log)? + } else { + String::new() + }; + if *id == "off" || *id == "required-gap" || *id == "missing-key" { + ensure!(calls.is_empty(), "{id} invoked transport"); + } else { + ensure!( + calls.lines().count() == 2 + || *id == "provider-outage" && calls.lines().count() == 1, + "{id} unexpected provider denominator" + ); + } + if *id == "provider-finding" { + let payload = fs::read_to_string(out.join("review/github-review.json"))?; + ensure!( + payload.contains("Archive fixture needs a boundary regression"), + "public finding lost" + ); + ensure!( + !payload.contains("PRIVATE_ARCHIVE_AUDIT_SENTINEL"), + "private audit leaked" + ); + let audit = + fs::read_to_string(out.join("review/model/archive-lane/internal_audit.json"))?; + ensure!( + audit.contains("PRIVATE_ARCHIVE_AUDIT_SENTINEL"), + "private positive control lost" + ); + ensure!( + !out.join("review/post-result.json").exists(), + "prepared payload claimed transport confirmation" + ); + posts(c, &out, &head)?; + } + if *id == "provider-text" { + ensure!( + review["model_lanes"] + .as_array() + .context("lanes")? + .iter() + .any(|r| r["status"] == "degraded"), + "text lane was not retained as degraded" + ); + } + c.scenarios[*id] = json!({"status":if verified {"observed_current_contract"} else {"blocked_packet_contract"},"expected":expected,"gate":gate,"terminal":terminal,"config_sha256":sha(&fs::read(&cfg)?),"transport_sha256":sha(&fs::read(&transport)?),"transport_log_sha256":sha(calls.as_bytes()),"packet_path":out,"gate_sha256":sha(&fs::read(out.join("review/gate_outcome.json"))?),"terminal_sha256":sha(&fs::read(out.join("review/terminal_state.json"))?),"review_sha256":sha(&fs::read(out.join("review/review.json"))?),"wrong_outcome_rejected":true,"unaffected_contracts_checked":true,"invalid_gate_control_rejected":*id=="provider-finding","packet_contract_verified":verified,"packet_verifier_output":verification}); + c.receipt("running", None)?; + } + ensure!( + c.scenarios + .as_object() + .context("scenarios")? + .values() + .all(|r| r["status"] != "not_run"), + "scenario omitted" + ); + Ok(()) +} +fn posts(c: &mut Campaign, out: &Path, head: &str) -> Result<()> { + let before = fs::read(out.join("review/gate_outcome.json"))?; + for (id, mode, expected_ok) in [ + ("post-success", "success", true), + ("post-error", "error", false), + ] { + let root = c.root.join(id); + fs::create_dir(&root)?; + let transport = root.join("transport.json"); + let log = root.join("transport.ndjson"); + write( + &transport, + serde_json::to_vec(&json!({"head":head,"post":mode}))?, + )?; + let mut args = strings(&["post", "--review-json"]); + args.push(out.join("review/github-review.json").display().to_string()); + args.extend(strings(&["--out"])); + args.push(root.display().to_string()); + args.extend(strings(&[ + "--repo", + "example/repo", + "--pull-number", + "123", + "--github-api-url", + "https://github.invalid", + "--github-token", + "synthetic-fixture-value", + "--fail-on-post-error", + ])); + let (ok, text) = c.cli( + &args, + &[ + ("CAMPAIGN_TRANSPORT", transport.display().to_string()), + ("CAMPAIGN_TRANSPORT_LOG", log.display().to_string()), + ], + )?; + ensure!(ok == expected_ok, "{id} unexpected post exit: {text}"); + unchanged(&before, &fs::read(out.join("review/gate_outcome.json"))?)?; + let receipt = read(&root.join(if expected_ok { + "post-result.json" + } else { + "post-error.json" + }))?; + checked_result( + &receipt, + &if expected_ok { + json!({"schema_version":1,"status":"ok","http_status":200,"comments":0}) + } else { + json!({"schema_version":1,"status":"failed","failure_tolerated":false,"fail_on_post_error":true,"http_status":null,"error_kind":"failed","failure_stage":"unknown"}) + }, + )?; + let pending = read(&root.join("pending-review-stdout.json"))?; + checked_result(&pending, &json!({"id":987,"state":"PENDING"}))?; + if expected_ok { + checked_result(&receipt["response"], &json!({"id":987,"state":"COMMENTED"}))?; + ensure!( + receipt["response"]["id"] == pending["id"], + "submitted review identity does not match actual pending response" + ); + } + let calls = fs::read_to_string(&log)?; + ensure!( + calls.contains("reviews/987/events"), + "{id} never reached submit boundary" + ); + ensure!( + !calls.contains("PRIVATE_ARCHIVE_AUDIT_SENTINEL"), + "audit reached outbound payload" + ); + let transaction = read(&root.join("delivery-transaction.json"))?; + if !expected_ok { + checked_result( + &transaction, + &json!({"state":"cleaned_up","cleanup":{"status":"succeeded"}}), + )?; + let rows = calls + .lines() + .map(serde_json::from_str::) + .collect::, _>>()?; + ensure!( + rows.iter().any(|r| r["method"] == "POST" + && r["url"] + .as_str() + .is_some_and(|u| u.ends_with("/reviews/987/events")) + && r["status"] == 500), + "missing failed submit control" + ); + ensure!( + rows.iter().any(|r| r["method"] == "DELETE" + && r["url"] + .as_str() + .is_some_and(|u| u.ends_with("/reviews/987")) + && r["status"] == 204), + "missing cleanup control" + ); + } + + if expected_ok { + let mismatch = root.join("mismatched-identity"); + fs::create_dir(&mismatch)?; + let mismatch_config = mismatch.join("transport.json"); + let mismatch_log = mismatch.join("transport.ndjson"); + write( + &mismatch_config, + serde_json::to_vec(&json!({"head":head,"post":"mismatched"}))?, + )?; + let mut mismatch_args = args.clone(); + let out_index = mismatch_args + .iter() + .position(|a| a == "--out") + .context("post output flag")? + + 1; + mismatch_args[out_index] = mismatch.display().to_string(); + let (accepted, text) = c.cli( + &mismatch_args, + &[ + ("CAMPAIGN_TRANSPORT", mismatch_config.display().to_string()), + ("CAMPAIGN_TRANSPORT_LOG", mismatch_log.display().to_string()), + ], + )?; + ensure!( + accepted, + "legacy mismatch observation changed; refresh against selected bytes: {text}" + ); + let mismatched_receipt = read(&mismatch.join("post-result.json"))?; + require_identity_negative_control(&mismatched_receipt["response"])?; + unchanged(&before, &fs::read(out.join("review/gate_outcome.json"))?)?; + c.intake["mismatched_identity_control"] = json!({"legacy_cli_accepted":true,"campaign_identity_oracle_rejected":true,"post_receipt":mismatched_receipt,"post_receipt_sha256":sha(&fs::read(mismatch.join("post-result.json"))?),"transport_log_sha256":sha(&fs::read(mismatch_log)?)}); + } + c.scenarios[id] = json!({"status":"observed_current_contract","post_receipt":receipt,"pending_review":pending,"pending_review_sha256":sha(&fs::read(root.join("pending-review-stdout.json"))?),"delivery_transaction":transaction,"delivery_transaction_sha256":sha(&fs::read(root.join("delivery-transaction.json"))?),"post_receipt_sha256":sha(&fs::read(root.join(if expected_ok {"post-result.json"} else {"post-error.json"}))?),"public_payload_sha256":sha(&fs::read(out.join("review/github-review.json"))?),"deterministic_bytes_unchanged":true,"transport_log_sha256":sha(calls.as_bytes()),"expected_exit_success":expected_ok}); + } + Ok(()) +} + +#[test] +#[ignore = "requires selected preliminary archive and completed #1382 install receipts; see docs/ARCHIVE_ADVISORY_RUN.md"] +fn frozen_archive_advisory_campaign() -> Result<()> { + let packet = + PathBuf::from(std::env::var("UB_ARCHIVE_PACKET").context("UB_ARCHIVE_PACKET required")?) + .canonicalize()?; + let installed = PathBuf::from( + std::env::var("UB_ADVISORY_INSTALL_RECEIPTS") + .context("UB_ADVISORY_INSTALL_RECEIPTS required")?, + ) + .canonicalize()?; + let root = PathBuf::from( + std::env::var("UB_ADVISORY_RECEIPTS").context("UB_ADVISORY_RECEIPTS required")?, + ); + ensure!( + root.is_absolute(), + "new absolute receipt directory required" + ); + fs::create_dir(&root)?; + let (bin, manifest, intake) = intake(&packet, &installed)?; + let scenarios = CASES + .iter() + .map(|id| ((*id).to_owned(), json!({"status":"not_run"}))) + .collect::>(); + let mut c = Campaign { + root, + bin, + manifest, + intake, + commands: vec![], + scenarios: Value::Object(scenarios), + }; + let result = campaign(&mut c); + c.receipt( + if result.is_ok() { + "bounded_observations_with_blockers" + } else { + "failed" + }, + result.as_ref().err().map(|e| format!("{e:#}")), + )?; + result +} + +#[test] +fn campaign_oracle_rejects_wrong_result_and_delivery_rewrite() -> Result<()> { + let expected = json!({"conclusion":"inconclusive","gate_result":"not_proven"}); + checked_result(&expected, &expected)?; + ensure!( + checked_result( + &json!({"conclusion":"pass","gate_result":"pass"}), + &expected + ) + .is_err(), + "wrong outcome survived" + ); + unchanged( + b"retained deterministic receipt", + b"retained deterministic receipt", + )?; + ensure!( + unchanged(b"retained deterministic receipt", b"rewritten by delivery").is_err(), + "delivery override survived" + ); + Ok(()) +} + +#[test] +fn fixture_identity_and_diff_fail_closed_on_real_git_errors() -> Result<()> { + let root = tempfile::tempdir()?; + let cwd = root.path().join("not-a-repository"); + fs::create_dir(&cwd)?; + let mut c = Campaign { + root: root.path().to_owned(), + bin: root.path().join("unused-binary"), + manifest: json!({}), + intake: json!({}), + commands: vec![], + scenarios: json!({}), + }; + for args in [ + strings(&["rev-parse", "HEAD"]), + strings(&["rev-parse", "HEAD~1"]), + strings(&["diff", "--binary", "HEAD~1", "HEAD"]), + ] { + let result = c.fixture_git(&cwd, &args); + let error = match result { + Ok(text) => anyhow::bail!("failed Git output accepted as identity/patch: {text}"), + Err(error) => error, + }; + ensure!( + error.to_string().contains("fixture git") && error.to_string().contains("failed:"), + "wrong failure route: {error}" + ); + ensure!( + c.intake.get("input").is_none() && !root.path().join("input.patch").exists(), + "failed git accepted input evidence" + ); + } + ensure!( + c.commands.len() == 3 + && c.commands + .iter() + .all(|r| r["state"] == "exited" && r["exit"] != 0), + "failure command receipts omitted" + ); + Ok(()) +} + +#[test] +fn known_packet_denial_cannot_accept_success_or_unrelated_failures() -> Result<()> { + packet_verdict("provider-finding", false, RECONCILIATION_REJECTION)?; + ensure!( + packet_verdict("provider-finding", true, "").is_err(), + "changed expected success accepted" + ); + ensure!( + packet_verdict("provider-finding", false, "gate outcome has wrong schema").is_err(), + "unrelated rejection accepted" + ); + ensure!( + packet_verdict( + "provider-finding", + false, + &format!("{RECONCILIATION_REJECTION}\nextra error") + ) + .is_err(), + "extra rejection masked" + ); + ensure!( + packet_verdict("off", false, RECONCILIATION_REJECTION).is_err(), + "known gap widened to other modes" + ); + Ok(()) +} + +#[test] +fn identity_negative_control_requires_exact_mismatch_and_submitted_state() -> Result<()> { + require_identity_negative_control(&json!({"id":988,"state":"COMMENTED"}))?; + for response in [ + json!({"id":987,"state":"PENDING"}), + json!({"id":987,"state":"COMMENTED"}), + json!({"id":988,"state":"PENDING"}), + ] { + ensure!( + require_identity_negative_control(&response).is_err(), + "wrong identity/state control accepted as identity-negative evidence: {response}" + ); + } + checked_result(&json!({"id":987,"state":"PENDING"}), &json!({"id":987}))?; + checked_result(&json!({"id":987,"state":"COMMENTED"}), &json!({"id":987}))?; + Ok(()) +}