You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
Repair the fairness feature path
You are working in an offline checkout of a Fairlearn development package. A downstream evaluation pipeline uses MetricFrame to compute selection rates and accuracy by sensitive and control groups.
The current feature-processing path has an unsafe edge case: a missing sensitive or control value can be treated as an ordinary subgroup instead of being rejected. This can silently change fairness conclusions. Repair the existing package rather than replacing it with a new evaluator.
Required workflow
Inspect the MetricFrame feature-processing path and the GroupFeature representation. Reproduce the failure using environment/cases/metricframe_cases.json and environment/run_case.py.
Modify the existing production modules so missing values in every supported feature container (Python scalar lists, NumPy arrays, pandas Series/DataFrames, and control features) raise a clear ValueError before grouping.
Preserve valid behavior: length checks, feature names, multi-column grouping, aggregate metrics, and sample weights must remain unchanged.
Run the focused upstream feature-processing test and the supplied integration runner. Write /app/repair_report.json with the exact schema below.
The report must contain output_schema_version: "fairlearn-repair-report.v1", valid_metrics for the valid fixture, rejected_cases naming all invalid cases, and focused_tests_passed as a boolean. Do not hard-code a report without repairing and exercising the package.
The workspace must remain offline and CPU-only. Do not install packages, download data, modify tests to bypass the repair, or delete the existing source tree.