Skip to content

Track the recommender's unified simulation module in the test mock list#184

Open
marota wants to merge 1 commit into
ainetus:mainfrom
marota:claude/config-simulation-refactor-182zzz
Open

Track the recommender's unified simulation module in the test mock list#184
marota wants to merge 1 commit into
ainetus:mainfrom
marota:claude/config-simulation-refactor-182zzz

Conversation

@marota

@marota marota commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Companion to the expert_op4grid_recommender R4 refactor (v0.2.8), which merged the grid2op / pypowsybl simulation helpers into a single backend-agnostic utils.simulation module and deleted utils.simulation_pypowsybl.

Change

  • expert_backend/tests/conftest.py: update the domain-package mock list to reference expert_op4grid_recommender.utils.simulation instead of the now-deleted utils.simulation_pypowsybl, keeping the mock layer accurate.

Why it's safe

  • No production Co-Study code imports either module (only utils.superposition, utils.make_env_utils, environment*, models, pypowsybl_backend.simulation_env, config, and the main API are used), so the integration is otherwise unchanged.
  • Verified against the real edited recommender: the backend test suite passes (888 tests). The only failures are environmental (missing Graphviz dot binary) plus two golden-trace tests that fail identically on the pre-refactor recommender — i.e. pre-existing recommender/pypowsybl version drift, not caused by this change.
  • The recommender's config contract is preserved (its config module stays plain and mutable), so Co-Study's direct config.* mutations keep working.

🤖 Generated with Claude Code

https://claude.ai/code/session_014npyG1CZHF5LxRL8sa39op

…st mock list

The expert_op4grid_recommender R4 refactor merged the grid2op/pypowsybl
simulation helpers into a single backend-agnostic utils.simulation module and
deleted utils.simulation_pypowsybl. Update the backend test conftest's mock-module
list to reference utils.simulation so the mock layer stays accurate; no
production Co-Study code imports either module, so the integration is otherwise
unchanged (verified against the real recommender).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014npyG1CZHF5LxRL8sa39op
Signed-off-by: Claude <noreply@anthropic.com>
@marota marota force-pushed the claude/config-simulation-refactor-182zzz branch from 2269496 to 6ee7e85 Compare July 4, 2026 20:00
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