Review syntax after model without typo whitelist
This commit is contained in:
+14
-10
@@ -1,18 +1,22 @@
|
||||
# Controlled syntax-review demo
|
||||
|
||||
The current live-demo input in `demo.py` is `print("hello"` with its final
|
||||
closing parenthesis missing. The preceding preparation commit contained the
|
||||
valid baseline `print("hello")`; the one-character edit is already committed.
|
||||
The current live-demo input in `demo.py` is `print("hello` with its closing
|
||||
quote and parenthesis missing. The preceding successful run used a source
|
||||
with only its closing parenthesis missing. Both forms require model inference.
|
||||
|
||||
To repeat the live demonstration later, restore the valid baseline in a
|
||||
separate preparation commit, then delete only its final closing parenthesis
|
||||
in a new live commit. The Actions reviewer sends exactly `print("hello"` to the
|
||||
SmolLM2 model. It preserves the committed input and writes the validated repair
|
||||
to `reviewed.py` in the review bundle. Jenkins verifies that bundle, builds the
|
||||
short versioned demo PDF, tests the reviewed program, and packages the release.
|
||||
separate preparation commit, then introduce a small syntax error in a new live
|
||||
commit. The Actions reviewer sends the committed source line to SmolLM2 without
|
||||
matching it against a list of expected typos. It preserves the original and
|
||||
writes the model's validated proposal to `reviewed.py` in the review bundle.
|
||||
Before executing model output, the validator checks that it contains only the
|
||||
demo's `print("hello")` behavior. Jenkins verifies the bundle, builds the short
|
||||
versioned demo PDF, tests the reviewed program, and packages the release.
|
||||
|
||||
The final-project workflow runs the reviewer and pipeline unit tests. Jenkins
|
||||
then has a separate `Compile and execute model-reviewed Python` stage: it
|
||||
Gitea Actions checks the source SHA, runs the real model, then executes the
|
||||
reviewed program and requires exactly `hello` on standard output. Jenkins
|
||||
runs reviewer and pipeline unit tests after that inference, then has a separate
|
||||
`Compile and execute model-reviewed Python` stage: it
|
||||
compiles the verified `reviewed.py`, runs it, and requires exactly `hello` on
|
||||
standard output. The original broken `demo.py` is intentionally not executed.
|
||||
Legacy `pricing.py` tests belong to the older application and are not part of
|
||||
|
||||
Reference in New Issue
Block a user