Skip to content

Add back OverwriteReason - #1549

Merged
ia0 merged 1 commit into
google:mainfrom
ia0:reason
Oct 15, 2026
Merged

ia0 merged 1 commit into
google:mainfrom
ia0:reason

Conversation

@ia0

@ia0 ia0 commented Oct 15, 2026

Copy link
Copy Markdown
Member

No description provided.

@ia0
ia0 requested a review from reyammer October 15, 2026 08:28

@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 refactors how model prediction overwrite reasons are handled and exposed. It introduces an OverwriteReason enum (with variants LowConfidence, OverwriteMap, and RulesVeto) in the library, stores this reason in ModelDebugInfo, and updates the CLI, Python bindings, and tests to consume this structured information directly instead of recalculating it. Feedback is provided regarding the use of let-chains (&& let) in rust/cli/src/main.rs, which is an unstable Rust feature and will fail to compile on stable Rust compilers; it should be rewritten using stable combinators like and_then and map.

Comment thread rust/cli/src/main.rs
@ia0
ia0 merged commit 98c2c70 into google:main Oct 15, 2026
29 checks passed
@ia0
ia0 deleted the reason branch October 15, 2026 08:44
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.

2 participants