Skip to content

Support custom metrics for all file formats across web, CLI, and MCP - #186

Open
kaveenh wants to merge 12 commits into
developfrom
feat/custom-metrics-all-formats
Open

Support custom metrics for all file formats across web, CLI, and MCP#186
kaveenh wants to merge 12 commits into
developfrom
feat/custom-metrics-all-formats

Conversation

@kaveenh

@kaveenh kaveenh commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Related Issues / Pull Requests

None

Description

Custom metrics (user-authored metric()/remedy() scripts) previously only worked with CSV. Web, CLI, and MCP now all load datasets through the same abstraction the built-in metrics already use, so Excel, JSON, NPZ, HDF5, and Parquet work everywhere.

Also fixes two bugs found along the way (a path-mangling bug in the CLI's custom-metric fallback, and remedy() silently never receiving metric_results via CLI/MCP), unifies the previously-duplicated starter template, and improves the web panel's error messages and UX.

What changes are proposed in this pull request?

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected; for instance, examples in this repository must be updated too)
  • This change requires a documentation update

Checklist:

  • My code modifies existing public API, or introduces new public API, and I updated or wrote documentation
  • I have commented my code
  • My code requires documentation updates, and I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Comment thread web/routes/custom.py Fixed
Comment thread web/routes/custom.py Fixed
Comment thread web/routes/custom.py Fixed
Comment thread web/routes/custom.py Fixed
kaveenh and others added 6 commits August 4, 2026 11:33
… through an exception'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… through an exception'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… through an exception'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… through an exception'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@kaveenh kaveenh added type: enhancement New feature or request python Pull requests that update python code labels Aug 4, 2026
@kaveenh
kaveenh marked this pull request as ready for review August 4, 2026 21:02
@kaveenh
kaveenh requested a review from a team as a code owner August 4, 2026 21:02
@kaveenh
kaveenh requested a review from jeanbez August 4, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update python code type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants