r/LocalLLaMA • • 18d ago

Discussion Dialectic, Requirements, and Verifiable tests will drastically increase your model's code output quality

Creating a list of requirements and documentation/tests (in Cucumber or EARS style) with your model is a great way to improve it's code. Just got through a weekend long binary protocol build with Qwen3.8-27B (6K unsloth quant).. and fired up claude to review and it found the foundation was well engineered, but only missed a few security checks and a couple of errors in the python benchmark script comparing the old protocol with the new one.

Really comes down to:

  1. Design first. Goals, requirements, problems. How is this going to be used.

  2. Observation, simulation and tests are verifiable vs. assumptions. Tests and processes can be reviewed for "ritual".

  3. Dialectic: If the model comes to a crossroads, have it present options and NOT just choose-and-go, but initiate a dialog about design.

  4. Frequent repeatable tests, and review of tests to see if they meet the spirit of the requirement

  5. Every risk is a requirement.

Here's my prompt set ("skills" I guess) and a tool to install for various local harnesses:
https://github.com/bigattichouse/BluePrint

22 Upvotes

5 comments sorted by

6

u/philmarcracken 18d ago

Yep this is it. In my experience these local models can lay bricks, use a nailgun. They're not architects and even frontier api cant really be that either, nor would you want to be chained to them.

2

u/Queasy_Asparagus69 18d ago

thanks for sharing - some interesting ideas in there

2

u/txgsync 18d ago

This is the way. The flagship product that I code on has about 1000 Gherkin tests now.