Skip to content

Migrate Control Room to v0.6 public API - #11

Merged
miraflor merged 1 commit into
mainfrom
v0.6-phase4d-control-room
Aug 28, 2026
Merged

Migrate Control Room to v0.6 public API#11
miraflor merged 1 commit into
mainfrom
v0.6-phase4d-control-room

Conversation

@miraflor

Copy link
Copy Markdown
Owner

Summary

Migrate the Control Room's Hosoe Simple and Standard code generation to the
CGE-Core v0.6 public API.

Changes

  • Generated Hosoe scripts now use:

    • CGE
    • SplCGE / StdCGE
    • solve_benchmark()
    • benchmark.scenario()
    • benchmark.value()
    • Scenario.set()
    • Scenario.solve()
    • Result.compare()
  • Remove generated-code dependence on:

    • PyCGE
    • model_calibrate()
    • model_sim()
    • model_modify_sim()
    • model_solve()
    • model_compare()
  • Update Hosoe-facing Control Room terminology from BASE/SIM to
    benchmark/scenario where it represents the public workflow.

  • Update the Control Room target from v0.5.0 to v0.6.0.

  • Migrate the frozen Standard-CGE tariff fixture to the public v0.6 lifecycle.

  • Add regression guards ensuring the Control Room continues to generate the
    public API rather than drifting back to the legacy engine interface.

  • Preserve the dedicated IFPRI and CAMCGE generators unchanged.

Scope

This PR does not change:

  • economic equations;
  • engine.py;
  • solver behavior;
  • the public API itself;
  • IFPRI implementation;
  • CAMCGE implementation;
  • the closure architecture.

Validation

The Control Room regression suite passes locally, including execution of the
frozen v0.6 generated script with a real solver.

Merge policy

Do not merge until all CI checks are green.

Migrate the Hosoe Simple and Standard Control Room generators to the
CGE-Core v0.6 public workflow.

Generated scripts now use CGE, SplCGE/StdCGE, solve_benchmark(),
benchmark.scenario(), Scenario.set(), Scenario.solve(), benchmark.value(),
and Result.compare() instead of the legacy PyCGE BASE/SIM state machine.

Update Hosoe-facing Control Room terminology from BASE/SIM to
benchmark/scenario where it describes the public workflow.

Migrate the frozen generated-code fixture and regression tests to the
v0.6 public API.

Preserve the validated dedicated IFPRI and CAMCGE execution paths.
No economic equations, engine behavior, or closure abstractions are changed.
@miraflor
miraflor marked this pull request as ready for review August 28, 2026 16:13
@miraflor
miraflor merged commit 7ccb423 into main Aug 28, 2026
11 checks 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