Add measured SmolLM2 syntax reviewer and Member 1 evidence
myfileagent-python-ci/pipeline/head This commit looks good

This commit is contained in:
Codex
2026-11-27 03:03:39 +00:00
parent 5373351a7e
commit edd87d6b7f
69 changed files with 1505 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# Proposed report contribution: Member 1
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
The learning goal is to demonstrate measured automated review inside the team's existing Gitea Actions → Jenkins → LaTeX/tests → versioned ZIP pipeline. A deterministic parser can detect this missing parenthesis more cheaply; the local model is used to *propose* a repair. The deterministic validator then permits only adding the final `)` to `print("hello"`, checks syntax again, and runs the reviewed artifact's hello smoke test. The source commit remains unchanged. The model cannot select commands, files, credentials or release destinations. This narrow demo does not prove that the model prevents major bugs in general Python programs.
The chosen model is [SmolLM2-135M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct) (Apache-2.0) in a pinned third-party [Q4_0 GGUF](https://huggingface.co/QuantFactory/SmolLM2-135M-Instruct-GGUF) with [llama.cpp b12785](https://github.com/ggml-org/llama.cpp/releases/tag/b12785). Exact revisions, hashes, prompt and settings are in `reviewer/model-lock.json`. The verified raw completion was ` print("hello")` followed by whitespace; its surrounding whitespace was removed, the input's newline restored, and the exact accepted diff recorded. The runtime counters were 23 prompt and 5 generated tokens. Unknown counters remain null.
Three fresh container trials with a private GGUF copy charged to the same cgroup peaked at 236,150,784, 233,103,360 and 238,735,360 bytes, with elapsed times 3.848678, 3.941480 and 1.812362 seconds. The 250,000,000-byte cap trial peaked at 234,405,888 bytes, returned `corrected`, had no OOM kill and passed the hello smoke test. The measurement includes reviewer and model child processes and cgroup-charged cache. It is local feasibility evidence. The actual Actions execution image and shared-host Grafana window still require integration verification. Failed experiments matter: the interactive CLI produced unrelated code, and a server variant exceeded the target at 261,754,880 bytes; batch/context reduction and the completion executable were needed.
## AI reviewer SWOT (controlled one-line syntax task)
| Strengths | Weaknesses | Opportunities | Threats |
| --- | --- | --- | --- |
| Repeatable commit-linked proposal and raw-response log; measured token/time use. | Small model needed prompt constraints; output needed narrow whitespace cleanup; consumes memory. | Automate review records and compare proposals against deterministic tests. | Invalid edits, unavailable weights/runtime, prompt sensitivity, false confidence if validation is skipped. |
## Human reviewer SWOT (same task)
| Strengths | Weaknesses | Opportunities | Threats |
| --- | --- | --- | --- |
| Can infer intent and question requirements; can review broader context. | Availability and speed vary; repetitive one-character errors are easy to overlook. | Teach code-review discipline and improve fixtures and acceptance criteria. | Fatigue, inconsistent review, missed defects or overconfidence. |
These are qualitative comparisons, not measured productivity claims. A human still approves implementation scope, integration and release policy. Member 2's separate Actions/Jenkins SWOT charts address the instructor's two-tool rubric item.
## Validator and process contribution
Requirements enter as a Gitea issue; the source change is a Git commit. Actions should call the reviewer on that full SHA and publish an immutable result bundle. Jenkins must verify SHA/run/attempt and hashes before building the LaTeX PDF or executing the reviewed file. Unit tests, Python syntax parsing and the hello smoke test serve different gates. Prometheus/Grafana associate actual review counters with the same run window and show host load; host load is not proof of model-only memory. The versioned ZIP is the deployment artifact, subject to Member 2's durable version reservation and fresh-download verification.
The guide's page 5 maps the 100-point rubric to issue tracking, version control, trigger, build visibility, tests, artifact, SWOT, configuration, report and cloud execution; it also identifies reverse documentation as the explicit +5 bonus. The separate official instructor rubric was not among the files attached to this chat, so Member 2 should verify this wording against the instructor copy before final report submission.
A read-only Prometheus range query around the three final local trials recorded node exporter `up=1` in ten 30-second samples, with host CPU query values about 52.7–80.2% and host available memory 352,559,104–531,513,344 bytes. These values reflect the entire shared Droplet and the two-minute CPU rate; they are context, not proof that the model caused those changes. The raw query responses and UTC window are in `handoff/member1/evidence/prometheus-host-window.json`. The final Grafana token/host dashboard and end-to-end demo screenshots are pending Member 2's integration.