Quality Streak Loop
Runs realistic scenarios and fixes failures until the suite passes N times in a row with no regressions.
Before you use this component
This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.
Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.
Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.
- Source publisher
- Claude Code Templates
- Creator supplied by source
- Not listed in source
- Pinned source version
- a344359459263d73d8948651c789244093c02e4e
- License evidence
- LICENSE
Source preview
cli-tool/components/loops/evaluation/quality-streak-loop.md
--- name: quality-streak-loop description: Runs realistic scenarios and fixes failures until the suite passes N times in a row with no regressions. category: evaluation interval: 20m stop-condition: The scenario suite passes N consecutive times (e.g. 5) with zero failures. components: [agent:performance-testing/test-automator, hook:testing/test-runner, command:testing/test-quality-analyzer] tags: [evaluation, reliability, testing, loop] --- # Quality Streak Loop > **Loop Engineering** — don't trust a single green run. Require a *streak* of clean passes to prove stability before stopping. ## 🎯 Goal Exercise the product with realistic scenarios, fix every failure, and keep going until the suite passes N consecutive times — catching flakiness and intermittent bugs. ## ⏱️ Schedule Suggested interval: `20m`. ## ▶️ Run it ``` /loop 20m "Run the realistic scenario suite. Fix any failure you find, including flaky ones. Reset the streak counter on any failure. Continue until the suite passes 5 times in a row." ``` ## 🔁 Iteration steps 1. **Perceive** — run the scenario suite via the `test-runner` hook. 2. **Reason** — analyze failures (real bug vs flake) with `/test-quality-analyzer`. 3. **Plan** — fix the failure and harden the test. 4. **Act** — implement the fix with `test-automator`; reset the streak on any failure. 5. **Observe** — repeat; only stop after N consecutive clean runs. ## 🛑 Stopping condition N consecutive passes (default 5) with zero failures or flakes. ## 🧩 Referenced components - `agent:performance-testing/test-automator` — fixes and hardens tests. - `hook:testing/test-runner` — auto-runs the suite. - `command:testing/test-quality-analyzer` — distinguishes real bugs from flakes. ## 💡 Example The suite passes 4 times then a timing-dependent test flakes; the loop stabilizes it with a deterministic clock and restarts the streak until it hits 5 clean.
Preview capped at 60,000 characters. Download the bundle for every original file and notice.
Read the redistribution license
MIT License Copyright (c) 2025 Daniel (San) Ávila Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Bundle SHA-256: df46e96a272c3bc5bb57e371281512704a54758c2546869e8b5a63ca28206053. Files are served as downloads and are never executed by this page.