Skip to content

Remove unused code following some UCP removal#4444

Draft
jmg-duarte wants to merge 3 commits into
mainfrom
jmgd/remove-ucp/cleanup
Draft

Remove unused code following some UCP removal#4444
jmg-duarte wants to merge 3 commits into
mainfrom
jmgd/remove-ucp/cleanup

Conversation

@jmg-duarte

Copy link
Copy Markdown
Contributor

Description

Removes a bunch of "dead code" — follow up to #4370 (comment)

Changes

  • Removes error paths that are no longer triggered

How to test

Existing tests

jmg-duarte added 3 commits May 7, 2026 09:41
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.
@jmg-duarte jmg-duarte requested a review from a team as a code owner May 26, 2026 10:16
@jmg-duarte jmg-duarte marked this pull request as draft May 26, 2026 10:16

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the stale label Jun 3, 2026
Base automatically changed from jmgd/remove-ucp/2 to main June 9, 2026 11:58
@github-actions github-actions Bot removed the stale label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant