Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions .ripr/suppressions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46301,3 +46301,93 @@ kind = "exposure_gap"
finding_id = "probe:xtask_src_main.rs:match_arm:ee319319"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1642; probe \"ast-grep\" => \"npm install -g @ast-grep/cli@0.51.1\",: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by affected_packages_include_all_packages_for_root_manifest_and_lockfile, affected_packages_include_package_manifest_changes, bun_gate_pin_policy_accepts_consistent_docs. Re-verify after any edit to xtask/src/main.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:ae03a957"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe env: BTreeMap::new(),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by broker_satisfies_new_request_from_existing_receipt_without_execution, ci_repair_invalid_envelopes_are_not_complete_empty_arrays, cli_environment_preserves_coverage_and_platform_keys_only. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:field_construction:429ad3e7"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe exit_code: Some(0),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by gate_check_exit_codes_follow_fail_on_gate_resolution, nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, pr_review_body_renders_head_failed_proof_exit_code. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:337ecd5e"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe exit_code: Some(0),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by gate_check_exit_codes_follow_fail_on_gate_resolution, nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, pr_review_body_renders_head_failed_proof_exit_code. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:field_construction:44a5546d"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe timeout_sec: 30,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, required_build_exhaustion_terminalizes_declined_command_and_releases_completed_command. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:c8a79b33"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe timeout_sec: 30,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, required_build_exhaustion_terminalizes_declined_command_and_releases_completed_command. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:field_construction:a0b5be82"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe duration_ms: 7,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, required_build_exhaustion_terminalizes_declined_command_and_releases_completed_command. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:c8b444fb"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe duration_ms: 7,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, required_build_exhaustion_terminalizes_declined_command_and_releases_completed_command. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:e276cb67"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe ProofCommandReceipt {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, skipped_unresolved_receipts_publish_for_supported_command_roles. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:field_construction:4c5b1f22"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe env: BTreeMap::new(),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by broker_satisfies_new_request_from_existing_receipt_without_execution, ci_repair_invalid_envelopes_are_not_complete_empty_arrays, cli_environment_preserves_coverage_and_platform_keys_only. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:7179b587"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe env: BTreeMap::new(),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by broker_satisfies_new_request_from_existing_receipt_without_execution, ci_repair_invalid_envelopes_are_not_complete_empty_arrays, cli_environment_preserves_coverage_and_platform_keys_only. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:field_construction:25f69ad0"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe exit_code: None,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by gate_check_exit_codes_follow_fail_on_gate_resolution, nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, pr_review_body_renders_head_failed_proof_exit_code. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:1c6ed2fb"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe exit_code: None,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by gate_check_exit_codes_follow_fail_on_gate_resolution, nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, pr_review_body_renders_head_failed_proof_exit_code. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:field_construction:f8d6f974"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe timeout_sec: 0,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, skipped_unresolved_receipts_publish_for_supported_command_roles. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:field_construction:e99a0dce"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe duration_ms: 0,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, skipped_unresolved_receipts_publish_for_supported_command_roles. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:68106cf5"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe ProofCommandReceipt {: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, required_build_exhaustion_terminalizes_declined_command_and_releases_completed_command. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:field_construction:0ac65be2"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe env: BTreeMap::new(),: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by broker_satisfies_new_request_from_existing_receipt_without_execution, ci_repair_invalid_envelopes_are_not_complete_empty_arrays, cli_environment_preserves_coverage_and_platform_keys_only. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:82d804ad"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe timeout_sec: 0,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, skipped_unresolved_receipts_publish_for_supported_command_roles. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
[[suppressions]]
kind = "exposure_gap"
finding_id = "probe:src_work_queue_terminal_status_tests.rs:return_value:edf88f7c"
owner = "ub-review/core"
reason = "weakly_exposed static-path gap on PR #1645; probe duration_ms: 0,: Discriminator unconfirmed: no assertion text references this probe's changed expression (observation_unverified). Reached by nonterminal_and_unknown_proof_results_cannot_commit_terminal_output, producer_plan_statuses_preserve_nonexecution_without_receipts, skipped_unresolved_receipts_publish_for_supported_command_roles. Re-verify after any edit to src/work_queue/terminal_status_tests.rs."
39 changes: 39 additions & 0 deletions src/work_queue/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,14 +508,53 @@ fn terminal_proof_receipt_status(receipt: &ProofReceipt) -> Result<String> {
| "timed_out"
| "skipped_budget"
| "skipped_profile"
| "skipped_unresolved"
),
"proof receipt {} has unsupported terminal result {}",
receipt.id,
receipt.result
);
// A refused worker lease and a red/green run with a skipped base-plus-tests
// side are the only producers of an unresolved result. The result string
// alone is not evidence of a supported producer, so any other command
// role composition fails closed.
if receipt.result == "skipped_unresolved" {
anyhow::ensure!(
skipped_unresolved_receipt_roles_are_supported(receipt),
"proof receipt {} has unsupported skipped_unresolved command roles",
receipt.id
);
}
Ok(receipt.result.clone())
}

fn skipped_unresolved_receipt_roles_are_supported(receipt: &ProofReceipt) -> bool {
let skipped_unresolved_command = |command: &ProofCommandReceipt| {
command.status == "skipped"
&& !command.timed_out
&& command.exit_code.is_none()
&& command.timeout_sec == 0
&& command.duration_ms == 0
};
let completed_command = |command: &ProofCommandReceipt| {
!command.timed_out && matches!(command.status.as_str(), "passed" | "failed")
};
// Worker lease refusal: completed setup preflight, skipped HEAD proof.
let worker_refusal = matches!(receipt.commands.as_slice(), [setup, head]
if setup.side == "nightly-preflight"
&& completed_command(setup)
&& head.side == "head"
&& skipped_unresolved_command(head));
// Red/green partial: passed HEAD, skipped base-plus-tests proof side.
let red_green_partial = matches!(receipt.commands.as_slice(), [head, base]
if head.side == "head"
&& head.status == "passed"
&& !head.timed_out
&& base.side == "base-plus-tests"
&& skipped_unresolved_command(base));
worker_refusal || red_green_partial
}

fn load_proof_task_request_ids(out: &Path) -> Result<BTreeMap<String, Vec<String>>> {
let path = out.join("proof_tasks.ndjson");
let text = match fs::read_to_string(&path) {
Expand Down
Loading
Loading