{"agent":"claude","input":"Add Slack alerts on failed runs to this Dagster project. Read dg.toml, dagster_cloud.yaml, pyproject.toml, definitions.py, every defs subpackage's definitions.py, the existing sensors and schedules, utils, resources.py and the tests first, and note any alert-related tag the jobs already carry. Add a defs/alerts package with a run_failure_sensor that monitors all code locations, is running by default, reads the job name, run id, deployment name and failure message from the context, routes by the alert_team tag to a per-team channel with a default, posts through requests to a Slack incoming webhook read from the SLACK_ALERTS_WEBHOOK_URL environment variable, and only logs when the environment is LOCAL. Do not add dagster-slack. Add tests that build a run status sensor context, mock the webhook with the responses library and assert on the payload for a tagged and an untagged run, and extend the repo-loads test. Add a README note on setting the variable in Dagster+. Run the dependency install, pytest, ruff check and dg check defs in your sandbox, and open a pull request with the output and a note on Dagster+ alert policies as the alternative.","resources":[{"url":"https://github.com/your-org/your-app"}]}