README.md

Created about 13 hours ago

attributes
source_urlhttps://github.com/ksimback/looper/blob/8a9b7981c212fcbcc4cfeb3cfde5d2bbac8cbb55/templates/loops/bug-hunt/README.md

bug-hunt

Reproduce a reported bug, fix the root cause, and prove it: the repro command
is observed failing before the change (plan gate) and passing after it
(delivery gate), with the full test suite still green.

Use when

You have a bug report and a way to trigger the bug from the command line, and
you want the fix held to a before/after evidence standard instead of "the
error went away".

What it emits

  • loop-workspace/fix-plan.md — includes the verbatim failing repro output.
  • loop-workspace/FIX-REPORT.md — root cause, fix at file:line,
    before/after evidence.
  • The fix itself, applied to the target repo's working tree (never
    committed — committing stays your call).

Placeholders

Token Replace with
{{REPO_DIR}} Path to the repository containing the bug.
{{REPRO_CMD}} Command that triggers the bug, written as a plain string, e.g. python -m pytest tests/test_x.py::test_bug -x. The compiler splits it into an argv for you.
{{TEST_CMD}} Command for the full test suite, e.g. python -m pytest. Plain string, split for you.

Also: put the bug report (the issue text, stack trace, expected vs actual)
in inputs/bug-report.md inside the emitted loop directory.

Customization notes

  • No command-line repro yet? Write the repro as a small script first and
    point {{REPRO_CMD}} at it — a bug you can't trigger deterministically
    can't be gated programmatically, and this template's value collapses to
    judge-only.
  • The loop edits the target repo's working tree under side-effect approval;
    run it on a clean branch so the diff is easy to review and revert.

Copyright (c) 2026 Kevin Simback License files are attached. MIT

MIT notice

MIT License

Copyright (c) 2026 Kevin Simback

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.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.