From ff70cf3d7d51763afe5769e0227403f5ab636b2c Mon Sep 17 00:00:00 2001 From: Yvette Carlisle Date: Tue, 30 Jun 2026 07:16:46 +0800 Subject: [PATCH] {"schema":"decodex/commit/1","summary":"Split real-world job consolidation report DTOs after strict validation.","authority":"manual"} --- .../consolidation_reports.rs | 35 +++++++++++++++ .../real_world_job_benchmark/job_reports.rs | 44 ++++--------------- 2 files changed, 43 insertions(+), 36 deletions(-) create mode 100644 apps/elf-eval/src/bin/real_world_job_benchmark/consolidation_reports.rs diff --git a/apps/elf-eval/src/bin/real_world_job_benchmark/consolidation_reports.rs b/apps/elf-eval/src/bin/real_world_job_benchmark/consolidation_reports.rs new file mode 100644 index 00000000..e29c37bd --- /dev/null +++ b/apps/elf-eval/src/bin/real_world_job_benchmark/consolidation_reports.rs @@ -0,0 +1,35 @@ +use crate::{ConsolidationReviewAction, Deserialize, Serialize}; + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub(crate) struct ConsolidationJobReport { + pub(crate) proposal_count: usize, + pub(crate) proposal_usefulness: Option, + pub(crate) lineage_completeness: Option, + pub(crate) review_action_correctness: Option, + pub(crate) source_mutation_count: usize, + pub(crate) proposal_unsupported_claim_count: usize, + pub(crate) executable_gaps: Vec, + pub(crate) proposals: Vec, +} + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub(crate) struct ConsolidationProposalReport { + pub(crate) proposal_id: String, + pub(crate) proposal_kind: String, + pub(crate) usefulness_score: f64, + pub(crate) min_usefulness_score: f64, + pub(crate) lineage_completeness: f64, + pub(crate) expected_review_action: ConsolidationReviewAction, + pub(crate) actual_review_action: ConsolidationReviewAction, + pub(crate) review_action_correct: bool, + pub(crate) source_mutation_count: usize, + pub(crate) unsupported_claim_count: usize, +} + +#[derive(Clone, Debug, Deserialize, Serialize)] +pub(crate) struct ConsolidationExecutableGapReport { + pub(crate) primitive: String, + pub(crate) follow_up_issue: String, + pub(crate) reason: String, + pub(crate) blocks_fixture_pass: bool, +} diff --git a/apps/elf-eval/src/bin/real_world_job_benchmark/job_reports.rs b/apps/elf-eval/src/bin/real_world_job_benchmark/job_reports.rs index 9e15a0f8..bf5aafcc 100644 --- a/apps/elf-eval/src/bin/real_world_job_benchmark/job_reports.rs +++ b/apps/elf-eval/src/bin/real_world_job_benchmark/job_reports.rs @@ -1,6 +1,12 @@ +mod consolidation_reports; + +pub(super) use consolidation_reports::{ + ConsolidationExecutableGapReport, ConsolidationJobReport, ConsolidationProposalReport, +}; + use crate::{ - AuthorityRecoveryDrillArtifact, ConsolidationReviewAction, CostReport, Deserialize, - OperatorDebugEvidence, Serialize, TraceExplainability, TypedStatus, + AuthorityRecoveryDrillArtifact, CostReport, Deserialize, OperatorDebugEvidence, Serialize, + TraceExplainability, TypedStatus, }; #[derive(Debug, Deserialize, Serialize)] @@ -108,40 +114,6 @@ pub(super) struct RetrievalQualityReport { pub(super) trap_context_count: usize, } -#[derive(Clone, Debug, Deserialize, Serialize)] -pub(super) struct ConsolidationJobReport { - pub(super) proposal_count: usize, - pub(super) proposal_usefulness: Option, - pub(super) lineage_completeness: Option, - pub(super) review_action_correctness: Option, - pub(super) source_mutation_count: usize, - pub(super) proposal_unsupported_claim_count: usize, - pub(super) executable_gaps: Vec, - pub(super) proposals: Vec, -} - -#[derive(Clone, Debug, Deserialize, Serialize)] -pub(super) struct ConsolidationProposalReport { - pub(super) proposal_id: String, - pub(super) proposal_kind: String, - pub(super) usefulness_score: f64, - pub(super) min_usefulness_score: f64, - pub(super) lineage_completeness: f64, - pub(super) expected_review_action: ConsolidationReviewAction, - pub(super) actual_review_action: ConsolidationReviewAction, - pub(super) review_action_correct: bool, - pub(super) source_mutation_count: usize, - pub(super) unsupported_claim_count: usize, -} - -#[derive(Clone, Debug, Deserialize, Serialize)] -pub(super) struct ConsolidationExecutableGapReport { - pub(super) primitive: String, - pub(super) follow_up_issue: String, - pub(super) reason: String, - pub(super) blocks_fixture_pass: bool, -} - #[derive(Clone, Debug, Deserialize, Serialize)] pub(super) struct UnsupportedClaimReport { pub(super) suite_id: String,