Remove unused code following some UCP removal#4444
Conversation
Scoring uses auction-level native prices and settlement verification reads prices from on-chain calldata, so per-solution UCPs are dead weight. Drop them from the autopilot domain `Solution`, the `SolutionError::InvalidPrice` variant, and the `proposed_solutions` price columns (now written as empty arrays). The `/solve` wire format is preserved for rolling-deploy safety: - autopilot tolerates a missing `clearingPrices` (`#[serde(default)]`) - our driver still emits it from existing settlement data `clearingPrices` is marked `deprecated: true` in the driver and orderbook OpenAPI specs. A follow-up PR will remove the field, the deprecation log, and the empty DB columns.
There was a problem hiding this comment.
Code Review
This pull request simplifies the solution domain conversion logic by removing the ZeroScore and SolutionError types, along with the Score::try_new validation. As a result, into_domain methods now return domain solutions directly instead of wrapping them in a Result. This allows for the removal of error-handling logic, error metrics tracking, and partition-filtering in run_loop.rs and shadow.rs. No critical issues were found, and there is no feedback to provide.
|
This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed. |
|
Claude finished @jmg-duarte's task in 2m 24s —— View job PR Review — Remove unused code following some UCP removal
SummaryClean, well-scoped follow-up to #4370. The cleanup falls out naturally once Correctness
Minor observations (non-blocking)
VerdictLGTM. The diff is purely subtractive on dead branches, no behavior change for the non-error paths, and grep confirms zero dangling references to the removed types. |
There was a problem hiding this comment.
Code Review
This pull request simplifies solution handling within the autopilot domain by removing the ZeroScore validation and its associated SolutionError type. Consequently, solutions are now processed directly as Solution rather than being wrapped in a Result, which streamlines the mapping, filtering, and partition logic in run_loop.rs, shadow.rs, and the solver DTOs. Additionally, logging for deprecated clearing prices has been enhanced to include more context, such as the solution ID and submission address. No review comments were provided, and there is no additional feedback to address.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Description
Removes a bunch of "dead code" — follow up to #4370 (comment)
Changes
How to test
Existing tests