Skip to content

docs: show what workbench caught, from the benchmark's own records - #82

Merged
matheusPavaneli merged 1 commit into
mainfrom
WB-57-caught-and-demo
Sep 27, 2026
Merged

matheusPavaneli merged 1 commit into
mainfrom
WB-57-caught-and-demo

Conversation

@matheusPavaneli

Copy link
Copy Markdown
Owner

What

docs/caught.md: each error workbench caught in the benchmark, told from the run records. docs/demo.cast: a 33-second recording of the verbs on one fixture ticket. Both are linked from the README.

Why

WB-57. Examples must come from bench records, never staged. The first clean run (bench/results/2026-09-27-9abd3c9) now has real catches.

How

  • docs/caught.md, per case: the ticket, what plain did, what workbench did, and links to the records.
    • BN-6: plain fixed the dead legacy.in_stock twice and left the live check broken; workbench fixed stock.available. No guardrail fired. The light path's demand for a covering test sent the session to tests/test_stock.py, which names the live function. An earlier non-citable run where this did not work is cited as the limit.
    • BN-3, BN-4, BN-7: plain wrote no test in 6 of 6 runs, workbench wrote one in 6 of 6. wb finish was ready to refuse and never had to.
    • BN-4: the one guardrail that fired (user-data zone), with its 6.7x cost.
    • Not caught: BN-5's spill, and any invented reference.
  • bench/demo.py records wb start, wb next, the fix, wb finish --commit and wb approve on BN-6 as asciicast v2, from real output on a fresh fixture. Only the pace is set.
  • Tests: the cast is valid v2, lasts 30-60 s, shows the four verbs and the real finish output, and every record the page links exists.

Verification

wb impl verify WB-57 stopped at the approval gate for a new command (python -m mypy bench/demo.py bench/run.py bench/score.py). I did not approve it on the owner's behalf. I ran the plan's three commands myself instead:

  • python -m unittest discover -s tests -q: OK (skipped=4)
  • python -m ruff check lib bench tests/test_bench.py: exit 0
  • python -m mypy bench/demo.py bench/run.py bench/score.py: exit 0

Risk and rollback

Docs and a recording. Revert to undo.

Open questions

  • The recording is an asciicast, not a video: GitHub does not play it inline. It plays with asciinema play docs/demo.cast. A GIF export is a separate step if wanted.

docs/caught.md walks through every case the first clean run
(9abd3c9) separated, each with the ticket, what plain did, what the
workbench session did, and links to the run records:

- BN-6: plain fixed the deprecated in_stock copy both times and left
  the live check broken; workbench fixed stock.available. No guardrail
  refused anything: the light path's demand for a covering test sent
  the session to tests/test_stock.py, which names the live function.
  An earlier, non-citable run where that did not work is cited too.
- BN-3, BN-4, BN-7: plain wrote no test in 6 of 6 runs; workbench wrote
  one in 6 of 6, with wb finish ready to refuse and never needing to.
- BN-4: the one guardrail that fired, sending a user-data change to
  the standard route at 6.7x the tokens.
- What has not been caught: BN-5's spill and any invented reference.

bench/demo.py records a 33-second asciicast of wb start, wb next, the
fix, wb finish --commit and wb approve on BN-6, from real output on a
fresh fixture; only the pace is set. The README links both.
@matheusPavaneli
matheusPavaneli merged commit 0c3f154 into main Sep 27, 2026
10 checks passed
@matheusPavaneli
matheusPavaneli deleted the WB-57-caught-and-demo branch September 27, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant