Repository navigation
Conversation
Fix dotenv load order; add mock|real backend adapters with shared Authorization headers (PromQL / ES DSL / AWX); persist failed and timeout incidents; drive rollback from scenario healthy_thresholds; secure Alertmanager webhooks with Bearer tokens; add oom scenario via fixtures; keep tests fixture-driven with no hardcoded catalog values. Co-authored-by: Preston Zhao <czhao255@wisc.edu>
Spell out Stages 0–5 with replicable exit criteria aligned to PRR practice, and mark what this branch actually implements next. Co-authored-by: Preston Zhao <czhao255@wisc.edu>
Move Prometheus, Elasticsearch, and AWX/mock adapters out of tools.py so dispatch stays thin and adapters can evolve independently. Co-authored-by: Preston Zhao <czhao255@wisc.edu>
Bound blast radius (max hosts, allowlist, forbidden host patterns) before approval/execution, and append deny/allow events to an audit log. Co-authored-by: Preston Zhao <czhao255@wisc.edu>
Add config validation readiness endpoint, in-process counters, and a sliding-window webhook rate limiter. Document package layout updates. Co-authored-by: Preston Zhao <czhao255@wisc.edu>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Production-readiness follow-up after the hardening merge, grounded in Prometheus / Elasticsearch / Alertmanager / AWX docs (via Exa).
autosre.bootstrap)AUTOSRE_BACKEND_MODE=mock|realwith sharedAuthorizationheaders — PromQLquery_range, ES index_search, AWX job template launchfailed/timeout/denied/partial, not only successeshealthy_thresholdsreplace brittle 0.7×max heuristicwebhook_labels/webhook_keywords),GET /incidents/{id}oom/cache-servicevia fixtures; tests read fromscenarios.json/fixtures/*(seedocs/TEST_SCENARIOS.md)Plan artifact:
/opt/cursor/artifacts/plans/autosre_production_readiness_7f2a.plan.mdVerification
Test plan
docs/TEST_SCENARIOS.md)ruff check .pytest+eval.py --simulate