
backprop
Bug → spec protocol. When a bug is found or a test fails, trace the cause
by juliusbrusseeFree
Description
backprop is a skill from the cavekit project that turns a bug into a change in the specification. Plan-then-execute fixes tend to repair the code and forget the spec, while spec-driven development also edits the spec, so the same failure becomes harder to repeat. The skill runs when a test fails during build verification, when a user reports a bug, after a post-mortem of a production incident, or when the check skill flags a violation and finds its root cause. Its six steps begin with TRACE: read the failure output or bug report, find the exact file and line where the behaviour is wrong, and name the root cause in one short sentence. After that, the skill decides whether a new invariant in the spec's verification section (§V) would catch the bug if it came back. If so, it appends an entry to the backprop section (§B) of the spec. md in a project that uses the cavekit format.…
Highlights
- Turns bugs into spec invariants
- Triggers on test failure or bug report
- Six-step trace-to-spec protocol
- Appends entries to section B of SPEC.md
- Pairs with the check and build skills
Ratings & Reviews
No ratings yet
Be the first to rate backprop.
People also visit
backprop FAQ
What is backprop?
A skill that records a bug as a change to the spec, so the same mistake can be caught in future.
When does it run?
When a test fails during build verification, when a user reports a bug, after a production incident post-mortem, or when check flags a violation with its root cause found.
What does the TRACE step do?
It reads the failure output or bug report, finds the exact file and line of the wrong behaviour, and names the root cause in one short sentence.
Does it only fix code?
No. It also decides whether a new invariant would catch the bug if it came back, and appends it to section B of SPEC.md.
What does it need?
A SPEC.md file in the cavekit format, with its verification section and backprop section.
What are the best backprop alternatives?
Popular alternatives to backprop include build, debug and diagnose. See all backprop alternatives


















