Review syntax after model without typo whitelist
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Demo refresh implementation and evidence
|
||||
|
||||
**28 November correction:** The current demo input is `print("hello` (closing quote and parenthesis missing). The revised reviewer does not list allowed typo strings; it runs the real model for syntax-invalid one-line input, statically checks that output contains only the hello demo behavior, then executes the reviewed file. Actions performs only SHA verification before inference. The one-character preparation instructions and old test counts below describe the earlier run and must not be used as current rehearsal instructions. Current evidence and limits are in `../../HANDOFF.md` and `evidence/two-character-local/README.txt`.
|
||||
|
||||
This change prepares the existing Actions -> Jenkins -> PDF/tests -> versioned ZIP pipeline for the live missing-parenthesis demonstration. It does not execute that rehearsal or draft the final course report.
|
||||
|
||||
## What the job builds
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
Local real-model feasibility evidence for the two-character syntax repair
|
||||
Date: 2026-11-28 UTC
|
||||
Source bytes: print("hello followed by a newline (closing quote and parenthesis missing)
|
||||
Source commit containing those bytes: 1d20412bd6435acae9182c23b13919affa10bcb4
|
||||
Reviewer code: modified local worktree based on that commit; this is not Gitea run 49.
|
||||
|
||||
Pinned model: HuggingFaceTB/SmolLM2-135M-Instruct
|
||||
Quantized model: SmolLM2-135M-Instruct.Q4_0.gguf
|
||||
Quantized SHA-256: f68203bfb98b1b1e8c64fac75fab10c4e36acac081609573b4df0fcc19c90dd9
|
||||
Runtime: llama.cpp b12785 / llama-completion, pinned in reviewer/model-lock.json
|
||||
The real adapter checked the model and executable hashes before inference.
|
||||
|
||||
Real local reviewer output:
|
||||
status: corrected
|
||||
input_tokens: 22
|
||||
output_tokens: 5
|
||||
raw stdout repr: ' print("hello")\n\n\n'
|
||||
accepted reviewed file: print("hello") followed by a newline
|
||||
tests/smoke_demo.py executed reviewed.py: exit 0, exact stdout hello\n
|
||||
original committed source: untouched
|
||||
The complete review.json, raw_response.txt, runtime_response.json and
|
||||
reviewed.py are saved beside this file. They are local evidence, not a ready
|
||||
Actions bundle or released ZIP. No complete cgroup memory measurement was made
|
||||
for this local inference.
|
||||
|
||||
Post-inference local checks:
|
||||
reviewer contract tests: 4 passed
|
||||
pipeline tests: 19 passed, 5 host skips for pinned TeX-image dependencies
|
||||
focused short-PDF build in pinned TeX image: 1 page
|
||||
offline preview PDF SHA-256: 36c3d2eb86465ebd13b6f6283cd9eaac803d5f7a0b6b89d6af666db68bdb90d9
|
||||
offline preview path: ../outputs/demo-refresh-checks/two-character-preview-not-a-release.pdf
|
||||
synthetic PDF identity: run 999999, version 9.9.9, Jenkins label offline-check
|
||||
These synthetic identifiers are for validating the PDF path only; no release
|
||||
was reserved, issued or published.
|
||||
|
||||
Gitea run 49 failure context:
|
||||
Source commit: 1d20412bd6435acae9182c23b13919affa10bcb4
|
||||
Reviewer exit: 3
|
||||
Job memory peak: 210,649,088 bytes / 384,000,000-byte ceiling
|
||||
OOM kills: 0
|
||||
Old input-string guard prevented inference. Its memory peak is not a
|
||||
successful inference memory result. The next pushed code commit requires a
|
||||
new Actions run and matching Jenkins SOURCE_SHA.
|
||||
@@ -0,0 +1,3 @@
|
||||
print("hello")
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "1d20412bd6435acae9182c23b13919affa10bcb4",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Model proposed runnable hello program",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\n+print(\"hello\")\n",
|
||||
"input_tokens": 22,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-28T22:19:58.010821Z",
|
||||
"finished_at": "2026-11-28T22:20:00.481811Z",
|
||||
"elapsed_seconds": 2.471008,
|
||||
"input_sha256": "c0d5724fe3e83134697d04f1cd9bb510dbd323df79aa5a7af56ce56ab05618d3",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"prompt": "Input: print(\"hi\"\nOutput: print(\"hi\")\nInput: print(\"hello\nOutput:",
|
||||
"raw_stdout": " print(\"hello\")\n\n\n",
|
||||
"prompt_eval_tokens": 22,
|
||||
"sampler_total_tokens": 27,
|
||||
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
|
||||
"runtime_log_counter_lines": [
|
||||
"0.01.556.888 I common_perf_print: samplers time = 0.41 ms / 27 tokens",
|
||||
"0.01.556.983 I common_perf_print: prompt eval time = 308.23 ms / 22 tokens ( 14.01 ms per token, 71.37 tokens per second)"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
# Proposed report contribution: Member 1
|
||||
|
||||
**28 November evidence update:** The historical one-character results below remain valid for the earlier run. The current two-character input is `print("hello` and the reviewer no longer matches input against a typo list. A real local SmolLM2 run corrected it with 22 input and 5 output tokens; its reviewed file passed the hello execution test. See `evidence/two-character-local/README.txt`. A new Actions run and full cgroup measurement are still required before calling this a live integrated result. Final documentation should describe the current output-only safety rule and use the new live run's measured figures, not copy the historical one-character description as current behavior.
|
||||
|
||||
For Member 2 to integrate into the required **“Configuring and Running the DevOps Pipeline”** chapter. This is prose and table content only; no shared LaTeX or deployed dashboard file was edited.
|
||||
|
||||
## Why a model is in this pipeline
|
||||
|
||||
Reference in New Issue
Block a user