Skip to content

Fix: always activate profile to ensure dynamic mode#28

Merged
haraldschilly merged 2 commits into
mainfrom
fix/always-activate-profile
Apr 16, 2026
Merged

Fix: always activate profile to ensure dynamic mode#28
haraldschilly merged 2 commits into
mainfrom
fix/always-activate-profile

Conversation

@haraldschilly
Copy link
Copy Markdown
Owner

Summary

  • Always call apply_injection_profile() on every run, even when the profile values haven't changed. Previously, if the SolMate was manually switched to "static" mode, the optimizer would never switch back to "profile" mode until the next profile change.
  • Bumps version to 0.5.0.

Test plan

  • uv run pytest — 60 tests pass, 100% coverage on logic.py
  • ops/dry-run.sh — dry run works correctly (no activation)
  • ops/run.sh — confirmed "Profile 'dynamic' activated" even with no profile change

🤖 Generated with Claude Code

haraldschilly and others added 2 commits April 16, 2026 10:34
Previously, when the computed profile hadn't changed, the code returned
early and skipped apply_injection_profile(). This meant that if someone
manually switched to "static" mode, the optimizer would never switch
back to "profile" mode until the next profile change.

Now apply_injection_profile() runs on every non-dry-run invocation,
ensuring the SolMate is always in profile mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@haraldschilly haraldschilly merged commit cecb630 into main Apr 16, 2026
1 check passed
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