Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions HOPE/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ Claude/local full-access server:
- `hope_nodal_prices`
- `hope_compare_cases`
- `hope_run_holistic`
- `hope_holistic_status`
- `hope_prepare_holistic_study`
- `hope_prepare_holistic_validation_study`
- `hope_launch_holistic_study`
- `hope_holistic_study_status`
- `hope_audit_holistic_study`
- `hope_run_erec`
- `hope_rep_day_audit`
- `hope_aggregation_audit`
Expand Down Expand Up @@ -167,6 +173,31 @@ If an agent launches a long-running Julia job and needs to stop it early, call
`hope_cancel_job(job_id)` with the `job_id` returned by `hope_warmup`,
`hope_run_hope`, `hope_run_holistic`, or `hope_run_erec`.

## Durable holistic studies

`hope_run_holistic(gtep_case_id, pcm_case_id, request_id, solver)` fingerprints
the GTEP and PCM inputs, copies them into an isolated request workspace, and
launches the deterministic linkage workflow. Use a stable `request_id` for safe
retries and poll `hope_holistic_status(request_id)` for status that survives an
MCP reconnect. The default run workspace is `artifacts/agent_runs/`; override it
with `HOPE_AGENT_RUNS_ROOT` when needed.

For role-separated agent operation, the local server exposes a durable protocol:

- `hope_prepare_holistic_study(...)` prepares an arbitrary compatible case pair.
- `hope_prepare_holistic_validation_study(...)` materializes the registered
annual-GTEP/monthly-PCM Maryland validation profile with a bounded PCM month.
- `hope_launch_holistic_study(study_id, ...)` executes the prepared request.
- `hope_holistic_study_status(study_id)` provides reconnect-safe monitoring.
- `hope_audit_holistic_study(study_id, ...)` validates the published evidence
and records an `ACCEPTED` or `REJECTED` receipt.

Preparation does not launch Julia. It pins source fingerprints and the request
hash under `artifacts/agent_studies/<study_id>/study_manifest.yml`; execution
rechecks them before solving, and audit writes `audit_report.yml`. The roles may
be handled by separate agents or sequentially by one MCP client. Override the
study root with `HOPE_AGENT_STUDIES_ROOT`.

If Claude appears to be running stale code or the wrong Julia environment, call
`hope_debug_solver_environment(case_id, solver, timeout_seconds)` to inspect the active project,
depot path, loaded `HOPE.jl` path, and the exact optimizer constructor JuMP sees.
Expand Down
5 changes: 5 additions & 0 deletions HOPE/SYNCED_FROM_HOPE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
schema_version: 1
upstream_repository: https://github.com/HOPE-Model-Project/HOPE.jl
upstream_path: tools/hope_mcp_server
upstream_commit: dc4d1fc415ef0de855e4d0f36990ef0dc9e8a638
sync_manifest: tools/hope_mcp_server/powermcp_sync.yml
Loading
Loading