20 KiB
20 KiB
SSW590 Group 7 final-project demo handoff
Updated 28 November 2026. This is the current documentation-preparation record for the Gitea Actions → real SmolLM2 review → Jenkins → LaTeX/tests → versioned ZIP demo. A broken-input commit exists, but this handoff does not assert that its complete Actions → Jenkins rehearsal has succeeded. The older secure-delivery/HANDOFF.md is for Assignment 8 and is unrelated to this demo. The original Member 1 record is HANDOFF.txt; the earlier deployed integration record is ci/HANDOFF.txt.
Run 49 failure and revised live review contract (28 November 2026)
- Commit
1d20412bd6435acae9182c23b13919affa10bcb4changeddemo/demo.pyfromprint("hello"toprint("hello, removing the closing quote as well as the already-missing parenthesis. Gitea Actions run 49, attempt 1, reported reviewer exit 3. Its job cgroup peaked at 210,649,088 bytes under the 384,000,000-byte hard ceiling, with zero OOM kills. Code inspection shows the old adapter's input-string whitelist rejected this source before invoking the model; the generic assertion hid that diagnostic. The run created no ready bundle, Jenkins release or new Grafana token event. - At the user's direction, the reviewer no longer enumerates permitted typo strings. A valid Python source still bypasses inference. An invalid, bounded one-line source goes to the pinned real model. Before executing the proposal, the reviewer requires a Python AST containing only the demo's
print("hello")behavior and the same final-newline policy. It rejects extra code or different behavior. Actions now performs only exact-SHA verification before inference;ci/run_live_review.pyexecutes the reviewed program after inference and requires the hello smoke test to pass before bundling. It prints the reviewer diagnostic on operational errors. Jenkins retains its post-inference unit and compile/execute stages. - The reviewer unit suite no longer lists potential broken strings. Its four contract tests read the current committed demo input, check safe output, reject extra model code, check operational diagnostics, and confirm valid-input bypass. The pipeline fixture stub no longer enumerates broken strings. The current
demo/README.mdand short PDF text describe the repair generically; the PDF verifies the actual committed source, reviewed program and exact diff rather than requiring a one-character edit. - One local pinned SmolLM2 inference on the current two-character input returned raw stdout
print("hello")followed by newlines, 22 measured input / 5 output tokens, statuscorrected; the resultingreviewed.pyexecuted with exact stdouthello. The revised reviewer tests passed 4/4. Local pipeline tests passed 19/19, with five TeX-image-only tests skipped on the host. A focused PDF build in the pinned TeX image produced one page from that real local response. Its synthetic run 999999 and version 9.9.9 identify an offline preview, not a release. Evidence is underhandoff/member1/evidence/two-character-local/; the preview is../outputs/demo-refresh-checks/two-character-preview-not-a-release.pdf. This local run did not measure a complete Actions job cgroup peak; run 49's 210 MB peak occurred before inference and is not a successful-model memory result. - This repair is based directly on failed commit
1d20412…in a separate worktree. It needs a new pushed SHA, a new successful Actions run, and a Jenkins build bound to that new SHA/run/attempt. The already deployed Grafana presentation source from local commit66b544cb1fa9bf2c839441de4275716202d1ef1dis included in this tip, so the new remote dashboard JSON will match Grafana's provisioned copy.
Live Grafana display now included in source
- After the successful Jenkins repair, the live metrics textfile recorded 23 input / 5 output tokens, 4.492204 seconds review duration, 286,928,896 bytes complete-job memory peak, a 384,000,000-byte enforced ceiling, and release label 1.0.7. The peak used 74.72% of the ceiling. The original 250,000,000-byte model-selection goal is a soft warning and remains visible in panel descriptions and raw metric
review_job_memory_target_exceeded{mode="live"} 1. - The final-project Grafana dashboard colors measured peak green below 320,000,000 bytes, yellow from there, and red near the ceiling from 360,000,000. The Memory capacity used card shows peak/ceiling: green below 85%, yellow from 85%, red from 95%. The hard-ceiling card is green. The static token-count availability card was removed; its raw availability metrics remain in Prometheus. This changes presentation, not measurements or enforced limits.
- The source dashboard JSON was copied to the live provisioned file, and a read-only Grafana resource-store snapshot confirmed the new memory panel, thresholds and removal of the static availability panel. The copy in this worktree has the same SHA-256 as the live provisioned JSON. Run 49 failed before new token metrics could be published, so the live textfile's last successful values remain from the earlier successful run.
Latest live attempt and Jenkins repair (28 November 2026)
- The user pushed
32a3c6f3f055c8a840f5bde9784137bfa39c8493tofeature/final-ci-demo. Gitea Actions run 47, attempt 1 produced a bundle that Jenkinsfinal-project-livebuild #5 retrieved and verified against that SHA. Jenkins reserved version 1.0.6. Thus earlier statements below that this tip was unpushed or that no refresh version had been reserved are superseded. - Build #5 failed in Publish measured live review metrics, before the PDF, tests, reviewed-program execution and ZIP. Docker reported
invalid mount config for type "bind": bind source path does not exist: /home/jenkins/agent/workspace/final-project-live. That path is inside the Jenkins agent's Docker volume and is not a Docker-host path. The failure says nothing about the model's correction or the tests; those stages were skipped. The live Grafana token counters were not updated by this build. ci/toolchain.sh metricsnow streams the four verified metrics inputs into the isolated helper container through standard input. It retains the existing host metrics-directory mount, read-only root, private tmpfs, network isolation, CPU and memory limits, and ledger semantics.sh -nandgit diff --checkpassed. An isolated replay of the build #5 inputs into a temporary metrics directory succeeded with 23 input / 5 output tokens and release label 1.0.6; this was not written to the live Grafana directory. Evidence:handoff/member1/evidence/jenkins-build-5-metrics-repair.txt.- The repair requires a new commit, Actions run, and matching Jenkins
SOURCE_SHA, because Jenkins checks the bundle against its checkout. Build #5 remains a failed historical attempt. Version 1.0.6 was reserved for its original run identity; a new run can reserve a later version. The user leads the rehearsal and can use the interactive push helper to publish the repair.
Source state and ownership
- Shared base:
5373351a7e7ac2bc0f34bae19c25383de3843ca7. Prepared demo branch in Gitea:feature/final-ci-demo; this local checkout isfeature/final-demo-refresh. - Preparation commit
1bb4e0a9dde2e57380bd85156ffe5ceb0896340aadded the valid demo source and short PDF/versioned live demo changes. Commitd118a677e0a67795336e8c8fddadd7412c68806dadjusted the memory ceiling, warning, and Grafana display. Both were pushed by the user using the interactive credential helper. - Reviewer-test implementation commit
3ad7836e5b7e70b1c1fd95934c95748979534ab6focuses the demo tests and separates the Jenkins reviewed-program stage. The subsequent handoff, Actions-log and restored-README changes reached Gitea in commit32a3c6f3f055c8a840f5bde9784137bfa39c8493. The local../outputs/push-ssw590-demo-refresh.shchecks the expected tip and remote head and asks for credentials only in the user's interactive SSH terminal; it stores none. The earlier preparation commits used[skip ci]; commit32a3c6f…triggered live Actions run 47. - After that test commit reached Gitea,
10db5a6adfb69c614a0ba75261b9f19c9bcf805adeleteddemo/README.mdandd8cb38616aa3ef60cdcde91032e8f150fe2add10committed the one-character brokendemo/demo.pyinput. The README deletion was unrelated to the demo edit and was restored in32a3c6f…. The current branch remains already broken for live inference; each new tip needs its own matching Actions run and Jenkins SOURCE_SHA. - Member 1 owns
reviewer/,demo/, reviewer tests and source evidence. Member 2 originally integrated the Actions, Jenkins, bundle/ZIP, version reservation, shared CI and monitoring. Subsequent demo refresh changes were made with the user's authorization and are identified below. Final LaTeX course documentation remains deferred at the user's request.
Implemented review and live pipeline
reviewer/__main__.pyimplementspython3 -m reviewer --input FILE --source-commit FULL_SHA --out-dir FRESH_DIR.review.jsonrecords source commit, model ID, status, summary, diff, input tokens and output tokens. A corrected or already valid input returns 0 withreviewed.py; rejection returns 2 without it; operational error returns 3 without it and with diagnostics where possible. The source is preserved. Valid input bypasses inference with an empty diff. The only accepted repair is the final)inprint("hello"; the model does not supply commands for execution. Canonical broken and corrected fixtures are intests/fixtures/demo_broken.pyandhandoff/member1/canonical-reviewed.py; fake fixture counts are never live evidence.reviewer/model-lock.jsonlocksHuggingFaceTB/SmolLM2-135M-Instruct, quantizedSmolLM2-135M-Instruct.Q4_0.ggufat SHA-256f68203bfb98b1b1e8c64fac75fab10c4e36acac081609573b4df0fcc19c90dd9, and llama.cppllama-completionrelease b12785, commit55d482814bb3b985daa7bfa175c6d628fc27beac. It records runtime/library checksums, CPU settings, token limits and the 250,000,000-byte workload target.reviewer/prepare_runtime.pychecks the locked artifacts. Reproduction and failed experiments are inhandoff/member1/runtime.mdandhandoff/member1/evidence/..gitea/workflows/final-project.ymlchecks out the exact pushed SHA, runs reviewer and CI tests, prepares the locked runtime, invokes real inference, and uploads a SHA/run/attempt-bound review ZIP plus raw model and resource evidence.ci/run_live_review.pymeasures the whole job cgroup, including preparation, child inference process and private tmpfs model.ci/final_project.pyverifies bundle identity and hashes before Jenkins uses the reviewed file. Rejections and invalid artifacts stop publication.Jenkinsfile.final-projectfetches and verifies the exact Actions bundle, reserves a durable release version, publishes measured live metrics, builds the short demo PDF, runs tests, then packages and archives the release. The older full manual remains available separately. The shortdemo/demo_report.texanddemo/build_demo_pdf.pyshow committed broken source, raw model output, accepted repair, one-character diff, model/run identity, tokens, elapsed time, memory, hashes and release version. An offline one-page preview from saved real run 43 evidence is at../outputs/demo-refresh-checks/offline-preview-not-a-release.pdf; its printed 1.0.5 was a test label, not a release reservation.- The durable version is reserved before PDF/test/package stages. The PDF and build manifest, test receipt, ZIP filename, ZIP
VERSION.txt/README/manifest/release metadata, and companion downloadable PDF/checksum use the same version. A retry of the same verified identity reuses the immutable release. The Actions review predates version reservation and retains its original source/run/hash identity.
Latest test correction and exact on-stage edit
demo/containsdemo.py,build_demo_pdf.py,demo_report.tex, andREADME.md. The earlier prepareddemo/demo.pywas exactly one line,print("hello"), plus a newline. Remote commitd8cb386…has already removed its final), yieldingprint("hello"plus newline. The broken committed source is the review input, not the successful program to run. For a future repeat, restore the valid baseline in a separate prep commit before making a new one-character live edit.- The final-project Actions and Jenkins unit-test commands now discover only
tests/test_reviewer.pyandci/tests; unrelated legacytests/test_pricing.pyis excluded from this demo pipeline.Jenkinsfile.final-projecthas a separate Compile and execute model-reviewed Python stage. The existingci/final_project.py testcommand compiles the verifiedreviewed.py, callstests/smoke_demo.py, and independently executesreviewed.py, requiring exit 0 and exacthello\noutput. Only then isout/test-result.jsonwritten and packaging allowed. Source details:demo/README.mdandhandoff/member1/demo-refresh.md. - The Gitea Actions step Run real model, show accepted repair and measure memory now prints the source commit, locked model ID, measured tokens, raw model response, accepted one-character diff, and a reviewed-program smoke PASS message after the smoke check succeeds. These lines come from the real review bundle fields and the executed reviewed file; they are meant to make the fix visible in the Actions log without downloading the artifact. The bundle's
review.jsonand the short Jenkins PDF remain the durable evidence. Jenkins build #5 accepted the resulting run 47 bundle; its console log alone does not establish the appearance of the Actions log display. - Verification of the latest test selection:
python3 -m unittest discover -s tests -p 'test_reviewer.py' -vpassed 17/17 locally on 28 November;git diff --checkpassed before commit. The new stage layout has not yet been seen in live Jenkins. The previously establishedci/testsand smoke behavior were not rerun solely for this label/selection change.
Monitoring and memory behavior
ci/publish_live_metrics.pyupdates cumulativereview_input_tokens_totalandreview_output_tokens_totalonly after Jenkins verifies a live Actions bundle. SHA/run/attempt ledger entries prevent double counting on retry; null counts add nothing and fixtures are refused. Grafana shows cumulative counters that can increase after Jenkins publication and a Prometheus scrape. The prior 23/5 latest-run gauges remain in data for historical evidence but their flat time-series panels were removed.- The user prefers the graphs to rise for each inference, while avoiding a new trusted publishing service. In this pipeline, inference occurs in Gitea Actions and Jenkins only verifies/publishes; each distinct successful live Actions run is counted once when Jenkins reaches its metrics stage. Counts remain unchanged during Actions. A failed/unpublished review and an Actions run that is never passed to Jenkins do not increment the graph. That timing and scope should be stated during the presentation.
- The deployed final-project dashboard source is
monitoring/grafana/provisioning/dashboards/json/final-project.json; the live provisioned copy was checked in Grafana's v13 resource store. Host CPU and available-memory charts remain. Latest review duration, age, tokens availability, whole-job memory peak, target warning and hard ceiling are status cards, not flat time-series. The collector and zero counter baseline were checked; see../outputs/demo-refresh-checks/grafana-loaded-panels.json,collector-baseline.txt, and Prometheus baseline JSON files. The user's signed-in Grafana view should be visually checked during the rehearsal. Host-load charts include other services and do not measure model-only memory. - The complete inference workload target remains 250,000,000 bytes. Actions now has a 384,000,000-byte hard ceiling, with swap disabled. An observed target overage is recorded as a warning in resource evidence, bundle, log and PDF if inference succeeds. An actual hard-ceiling OOM or model failure still stops the ready bundle. The previous live run reached the old page-rounded 249,999,360-byte cap with 433
memory.events.maxevents; natural uncapped peak is unknown. The new ceiling was checked in a local Docker cgroup; see../outputs/demo-refresh-checks/memory-policy-check.txt. No new live inference measurement under the higher ceiling has been claimed.
Evidence already obtained; limits
- Earlier live integration at commit
c735c8c6934c3084944de3077dfba027bf423bef: Gitea Actions run 43 SUCCESS, real model 23 input / 5 output tokens, 3.0561 seconds, corrected output, whole-job peak 249,999,360 bytes, no OOM kill. Jenkinsfinal-project-livebuild #1 SUCCESS, 39 tests including reviewed-file smoke, and an older 170-page PDF in immutable release 1.0.4. Build #2 rejected an invalid run before release; build #3 reused byte-identical 1.0.4. The downloaded ZIP, companion checksum, payload hashes, PDF identity and extracted Python behavior were checked. This proves the earlier integrated pipeline, not the newer short-PDF rehearsal. Raw bundle, review, resource, Jenkins, Prometheus and issue evidence are indexed inci/evidence/live-integration/summary.jsonand explained inci/HANDOFF.txt. - Earlier local Member 1 trials and raw responses are in
handoff/member1/evidence/; the acceptance trial measured 234,405,888 bytes under a 250,000,000-byte cap. These are local feasibility runs, not deployed Actions runs. The offline short-PDF build, targeted test logs, dashboard storage check, memory cgroup check, and one-page cue-sheet build are under../outputs/demo-refresh-checks/and../outputs/rehearsal-notes/. User-facing rehearsal PDFs are../outputs/rehearsal-pdfs/SSW590_Rehearsal_Full.pdfandSSW590_Rehearsal_One_Page.pdf. The one-page cue sheet is one column and asks the presenter to take only web UI actions. - The user has committed the one-character demo edit and Gitea Actions run 47 produced a verified bundle. Jenkins build #5 reserved 1.0.6 but failed before PDF/tests/package publication, so there is still no complete new Actions → Jenkins rehearsal or released ZIP verified by this agent. No new screenshots of its Actions/Jenkins/Grafana sequence are held here. Do not quote the offline 1.0.5 preview or failed 1.0.6 reservation as an issued release, the fixture counts as live tokens, or the old capped memory peak as the natural peak under 384 MB. The new dashboard should be visually checked by the signed-in user; an authenticated Grafana API check was unavailable.
Next integration and documentation evidence
- Push the fast-forward metrics-helper repair commit on top of
32a3c6f3f055c8a840f5bde9784137bfa39c8493. This tip will have a new full SHA and new Actions run because Jenkins requires the selected run's SHA to match its checkout. Do not reuse run 47 for the new SHA. The interactive helper checks the exact old remote tip and stores no credentials. - In the user-led rehearsal, save the successful new Actions run ID/attempt, reviewer raw response, review JSON, token counts, resource JSON and uploaded bundle. Then trigger Jenkins with that exact new SHA and identity in
livemode, capture the separate compile/execute stage, test receipt, one-page PDF, issued version and downloaded ZIP/checksum. Check Grafana counter increase after Jenkins publishes and Prometheus scrapes; save UI screenshots and exact timestamps. The user requested that the assistant not operate the system during rehearsal unless asked. - Use this handoff and
handoff/member1/report-contribution.md,metrics-proposal.md,demo-refresh.md,ci/HANDOFF.txt, and the new rehearsal evidence to write the final course documentation later. Clearly separate earlier 1.0.4 integration, offline preview, and new live rehearsal results. Report any failure or memory-target overage plainly.