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 PoissonRegressor mixed Array API handling
Work in /app. The frozen scikit-learn source tree is under /app/vendor/scikit-learn.
A Poisson generalized linear model currently validates targets and sample weights before moving them to the feature matrix's Array API namespace/device. This breaks fitting and scoring when X uses one compatible namespace while y or sample_weight originates in another. The estimator-check registry also still declares the mixed-input behavior unsupported.
Repair the existing source tree so that:
sklearn/linear_model/_glm/glm.py moves both y and sample_weight to X's discovered namespace/device before dtype-sensitive validation in both fit and score.
Validation, Poisson target-domain checks, weighting semantics, sample order, solver behavior, and prediction mathematics remain unchanged after conversion. Do not replace namespace handling with unconditional NumPy coercion.
sklearn/utils/_test_common/instance_generator.py enables the mixed-input Array API estimator check for PoissonRegressor, while retaining its separate same-namespace limitation.
Existing source and test assets remain intact. Do not modify /app/run_regression.py or bypass the source methods.
Run python3 /app/run_regression.py. It must succeed offline and produce /app/output.json with output_schema_version equal to tbench.poisson-array-api-report.v1, successful fit/score mixed-namespace checks, and the updated estimator-check status.