Skip to content

Reasoning modes fixes - #366

Merged
AbdallahS merged 5 commits into
mainfrom
reasoning-modes-fixes
Jul 29, 2026
Merged

Reasoning modes fixes#366
AbdallahS merged 5 commits into
mainfrom
reasoning-modes-fixes

Conversation

@kstrauch94

Copy link
Copy Markdown
Collaborator
  • Fix various bugs with reasoning modes in the propagator

Comment thread src/constraint_handler/propagator.py Outdated
# stage 2: get reasoning mode atoms for propagator
# stage 3: report results on first model found here
self.reasoning_mode_stage_lits: dict[Literal[1, 2], int] = {1: -1, 2: -1}
self.reasoning_stage: Literal[0, 1, 2] = 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is self.reasoning_stage used anywhere? If yes, is it intended that it's declared as 0,1,2 while the comment above as well as self.optimization_stage_lits talk about stages 1,2,3?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It is not used. It is probably some old code. I deleted it! Thanks for spotting it.

Comment thread src/constraint_handler/propagator.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it intentional that this nogood isn't locked?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I guess there is no intention behind this decision. I will add the lock since it makes sense to have it. I will push it and merge if all tests pass.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The performance test failed initially (6.04sec > 6sec). It isn't related to this PR, it's just that the test threshold is too tight. I usually just rerun the failed job and with a bit of luck the time goes under 6sec.

@AbdallahS
AbdallahS merged commit 49f39a3 into main Jul 29, 2026
26 of 28 checks passed
@AbdallahS
AbdallahS deleted the reasoning-modes-fixes branch July 29, 2026 06:08
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