Compare commits

..
Author SHA1 Message Date
Codex 1449a8bf68 Record combined real-model local integration evidence
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-27 03:13:15 +00:00
Codex edd87d6b7f Add measured SmolLM2 syntax reviewer and Member 1 evidence
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-27 03:03:39 +00:00
glovely 5373351a7e Merge pull request 'Finalize Assignment 9 Zammad implementation and manual 1.11.1' (#23) from assignment9/ticket-management into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m13s
Reviewed-on: #23
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-22 03:02:02 +00:00
nkogut 0d835a15b9 Persist controller Python dependency across container recreation
Team manual PDF / manual (push) Successful in 2m19s
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-22 02:07:08 +00:00
nkogut 596a357cd8 Correct final manual 1.11.1 title date to November 20
myfileagent-python-ci/pipeline/head There was a failure building this commit
Team manual PDF / manual (push) Successful in 1m59s
myfileagent-python-ci/pipeline/pr-main There was a failure building this commit
2026-11-22 01:52:44 +00:00
nkogut cfc59d3511 Publish final manual 1.11.1 through official Actions build
myfileagent-python-ci/pipeline/head There was a failure building this commit
Team manual PDF / manual (push) Successful in 2m2s
2026-11-22 01:39:35 +00:00
nkogut 6fc01c26a9 [skip ci] Use native diagram proportions verified in manual layout
myfileagent-python-ci/pipeline/head There was a failure building this commit
2026-11-22 01:28:59 +00:00
nkogut 99f04d48a8 [skip ci] Refine verified vector diagram spacing for final pipeline
myfileagent-python-ci/pipeline/head There was a failure building this commit
2026-11-22 01:11:37 +00:00
Codex 3ba3940557 Finalize manual 1.11.1 diagram, chapter numbering and acceptance record
myfileagent-python-ci/pipeline/head There was a failure building this commit
Team manual PDF / manual (push) Successful in 2m20s
2026-11-22 01:00:08 +00:00
Codex e908359208 Reduce idle service footprint and record swap recovery checks 2026-11-21 23:21:42 +00:00
nkogut 22ac58c30b Fix duplicate labels in repeated Zammad table headers
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 1m59s
2026-11-21 21:52:22 +00:00
Codex 19f66a7845 Build Assignment 9 manual through existing Actions pipeline
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Failing after 2m0s
2026-11-21 21:37:46 +00:00
Codex 831dcc4b54 Reuse dated prior capacity evidence with explicit timing boundaries 2026-11-21 02:23:23 +00:00
Codex e459785351 Complete TA permissions evidence and align Hosts and Bitwarden registries 2026-11-21 01:44:40 +00:00
Codex 98a3a6d39e Record authenticated host firewall and effective SSH audit
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-21 01:35:51 +00:00
Codex 54a2dd85fb Fix shared scheduler workers and verify full TA browser workflow
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-21 01:10:16 +00:00
Codex 34edd679ea Record verified cloud firewall rules and attachment screenshots 2026-11-18 21:13:48 +00:00
Codex 5f33bf4a4f Retain approved SSH exception and record read-only exposure evidence 2026-11-18 21:10:53 +00:00
Codex 9b0d7aed14 Capture Grafana evidence and complete Chapter 7 deliverable audit 2026-11-18 21:04:09 +00:00
Codex 4a18c2e67b Document Zammad implementation with actual evidence and review gaps 2026-11-18 20:52:43 +00:00
Codex 114fb4b11a Implement minimal Zammad support desk and verified workflow 2026-11-18 20:36:02 +00:00
137 changed files with 3976 additions and 15 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: Team manual PDF
on:
push:
branches: [main, manual-build-validation, assignment7/manual-1.9.2, assignment8/evidence-documentation]
branches: [main, manual-build-validation, assignment7/manual-1.9.2, assignment8/evidence-documentation, assignment9/ticket-management]
jobs:
manual:
runs-on: manual-latex
+95
View File
@@ -0,0 +1,95 @@
SSW590 Group 7 — Member 1 handoff (2026-11-26 America/New_York)
Owner: Member 1; branch: feature/final-ai-review
BASE_SHA / demonstrated source_commit: 5373351a7e7ac2bc0f34bae19c25383de3843ca7
Current implementation SHA: resolve `git rev-parse feature/final-ai-review` after fetching this branch; it is printed in the delivery message.
Scope and changed paths:
reviewer/__init__.py, __main__.py, llama_adapter.py, model-lock.json, prepare_runtime.py
demo/demo.py
tests/fixtures/demo_broken.py, tests/smoke_demo.py, tests/test_reviewer.py
handoff/member1/canonical-fixture.json, canonical-reviewed.py, runtime.md,
metrics-proposal.md, report-contribution.md, integration-check.md, evidence/**
HANDOFF.txt
No workflow, Jenkins, version/packaging, shared LaTeX, or deployed monitoring file was edited.
Canonical fixture contract for Member 2:
Input: tests/fixtures/demo_broken.py, exact bytes `print("hello"\n`.
Accepted output: handoff/member1/canonical-reviewed.py, exact bytes `print("hello")\n`.
Sample fixture JSON: handoff/member1/canonical-fixture.json. Its 24/8 counts are FAKE and mode=fixture.
CLI: python3 -m reviewer --input FILE --source-commit FULL_SHA --out-dir FRESH_DIR
corrected/unchanged => exit 0 and reviewed.py; rejected => exit 2, no reviewed.py;
operational error => exit 3, no reviewed.py and review.json where possible.
Required seven JSON fields remain stable. Extras include mode, revision, UTC times,
elapsed_seconds, input hash and raw-response references. Valid input bypasses model,
preserves exact bytes, has empty diff and mode=bypass. A fixture override uses
REVIEWER_BACKEND_COMMAND and mode=fixture. Real mode uses the pinned local adapter.
Model response cleanup removes surrounding whitespace only, preserves raw stdout,
restores source newline policy, and still requires exact one-character repair.
Prerequisites and reproduction:
Python 3.12+ standard library, Linux amd64, Docker for cgroup measurement,
outbound HTTPS for first-time model/runtime download, and compatible libgomp1.
Read handoff/member1/runtime.md for exact lock, checksums and Docker command.
python3 -m reviewer.prepare_runtime --dest /tmp/ssw590-member1-runtime
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -v
export REVIEWER_MODEL_PATH=/tmp/ssw590-member1-runtime/SmolLM2-135M-Instruct.Q4_0.gguf
export REVIEWER_LLAMA_COMPLETION=/tmp/ssw590-member1-runtime/llama-b12785/llama-completion
# Make libgomp.so.1 available in the image/loader path.
python3 -m reviewer --input tests/fixtures/demo_broken.py \
--source-commit 5373351a7e7ac2bc0f34bae19c25383de3843ca7 \
--out-dir /tmp/ssw590-review-new-001
python3 tests/smoke_demo.py /tmp/ssw590-review-new-001/reviewed.py
Use a fresh output directory for each invocation.
Actual local results:
19 unittest cases passed, including the two preexisting pricing cases; public CLI
corrected/rejected/unchanged/error and argparse usage distinction were exercised.
The finalized real model returned corrected/exit 0 and the smoke test passed.
All three fresh private-model cgroup trials: 23 prompt / 5 output tokens, no OOM;
natural peaks 236150784, 233103360, 238735360 bytes; durations 3.848678,
3.941480, 1.812362 seconds. A 250000000-byte hard-cap run peaked at
234405888 bytes, no OOM, corrected and smoke passed.
Sample successful real bundle: handoff/member1/evidence/acceptance-250m/.
Sample operational error: handoff/member1/evidence/error-missing-model/review.json
(exit 3, null counts, no reviewed.py).
Raw response, runtime counter lines, resource/OOM output and machine summary:
handoff/member1/evidence/{trial-1,trial-2,trial-3,acceptance-250m,measurements.json}.
Actual read-only host load query window: evidence/prometheus-host-window.json.
Dashboard metrics, null handling and report/SWOT content: handoff/member1/*.md.
Member 2 branch 4feb5881... accepted the recorded real review through its
unmodified bundle, verify, smoke and metrics commands locally; details and
the synthetic-run limitation are in handoff/member1/integration-check.md.
A combined temporary checkout found one Member 2 smoke exception mismatch. A
minimal return-code-to-ValueError fix in its owned ci/final_project.py made
all 19 local CI tests pass. In Member 2 pinned image, both 19-test suites
passed, including the five image-dependent cases. See integration-check.md.
A real-model local combined dry run under the 250000000-byte cap passed at
241446912 bytes; the isolated PDF/ZIP gates also passed. It used temporary
commit a40ffe1..., synthetic run ID 1 and isolated version 1.0.1; it is
neither a deployed Actions/Jenkins release nor scraped token metrics.
Evidence: handoff/member1/evidence/local-integration-dryrun/.
Known failures and limits:
Initial interactive CLI produced unrelated code. A server variant's private-model
peak was 261754880 bytes and failed the memory target; default-batch completion
also exceeded the target in two trials. These are retained under evidence/experiments/.
The smaller context/batch one-process completion configuration is the successful one.
This is local feasibility. The actual Actions/Jenkins image, end-to-end ZIP release,
token collector/Grafana panels and demo screenshots are not yet verified.
Gitea branch push from this SSH session is currently blocked by missing HTTPS
credentials; no working Git SSH identity is available. The committed branch
remains in this separate checkout until an authenticated push is available.
The separate official instructor rubric was not attached here; guide page 5's rubric
mapping was read, and the instructor copy should be checked before final submission.
Current BASE_SHA already contains the reviewed Homework 8/9 documentation branch
heads 4fa2bed7..., 6e2873cc... and 0d835a15...; no documentation rewrite was needed.
Next integration action / explicit dependency:
Member 2 should fetch this branch and consume the canonical fixture immediately,
then install pinned llama-completion + libgomp1 in its execution image, repeat the
checksum and memory smoke check, and wire the exact real review bundle into its
Actions/Jenkins transfer gate. Member 2 owns the textfile collector and Grafana
provisioning; integrate metrics-proposal.md only after verifying the deployed paths.
Coordinate any change to CLI flags, seven JSON fields, mode semantics, newline rule,
model runtime environment names or 250000000-byte boundary before consumption.
No uncommitted intended changes should remain after the final branch commit.
+1
View File
@@ -0,0 +1 @@
print("hello")
+9
View File
@@ -27,3 +27,12 @@ and resolved delivery while Gitea remained healthy. The chapter records response
timing, restart persistence, an approved/merged operational change and owned follow-up
issues. External IPv4 port evidence is included; IPv6 and skipped external HTTPS
capture remain explicit limits. The documentation was approved and published through Gitea Actions; version 1.9.2 incorporates the final editorial and layout corrections.
Assignment 9 adds an official Zammad support desk behind the existing HTTPS
proxy, small per-service resource caps, persistent database/search/storage and
backups, synthetic support tickets, customer isolation and an Agent-only TA
account. A Gitea issue links the customer request to engineering work; the
existing HTTPS monitoring job and dashboard are extended. Actual test results,
screenshots, failure corrections and required evidence gaps are retained. The
version 1.11.1 includes the completed browser workflow evidence, an updated
deployment diagram and the automated manual-build identity.
+4
View File
@@ -19,6 +19,10 @@
\bottomrule
\endlastfoot
\parbox[t]{2.7cm}{\raggedright November 20, 2026\\ 1.11.1\\ NK, CDX} & Complete browser acceptance and supporting evidence for the Zammad implementation. & Codex corrected scheduler threading and derived search indexes, exercised ticket 71007 through separate TA and Customer browser sessions, captured read-only TA identity/permissions and retained the human-authenticated SSH audit. The team subsequently requested the final TikZ routing, section numbering and draft-text cleanup; these editorial changes and one Gitea manual-only verification build are recorded with version 1.11.1. \\
\parbox[t]{2.7cm}{\raggedright November 18, 2026\\ 1.11.0\\ NK, CDX} & Implement instruction Chapter 7 with minimal resource use and update the newest team manual source. Consolidated under the first workday; later browser workflow, read-only role/group checks, SSH audit and source reconciliation retain their actual evidence timestamps. & The user authorized SSH through \texttt{ssw590-codex}, selected the newest documentation branch rather than main, deferred its merge, upgraded the Droplet, requested lower service ceilings, approved synthetic accounts and issue 22, and later requested full ongoing documentation with actual screenshots. Codex deployed the official stack, corrected an initially excessive heap and a Puma worker-setting interpretation, staged initialization, added limits and monitoring, tested tickets/customer isolation/TA access and backup/recovery, and retained explicit evidence limits. A recovery collector was corrected to distinguish real scrape timestamps from query times. The user expressly prohibited PDF compilation until a later authorized Jenkins build. \\
\parbox[t]{2.7cm}{\raggedright November 8, 2026\\ 1.10.1\\ GDL, NK, CDX} & Continue the handoff; verify and document the release and recovery evidence. & Codex checked the merged and later branch work separately, assisted with approved v1 and v2 releases, and recorded immutable digests, scan results, staging idempotence and human production approvals. It orchestrated the approved rollback and staging-only port mismatch, documented the overnight recovery delay, added the HTTPS probe, checked Grafana, and audited archived evidence. The team reviews the manual and evidence. \\
\parbox[t]{2.7cm}{\raggedright November 7, 2026\\ 1.10.0\\ GDL, NK, CDX} & Prepare the service, trusted agent, Ansible automation and delivery pipeline. & The previous Codex inspected the existing Droplet, adapted the starter, locked dependencies, built the trusted agent and installed Ansible and the Docker collection. It assisted with pinned SSH, scoped Jenkins credentials, registry authentication, proxy routes, security scans, a synthetic secret gate and reviewed delivery code. The team provided access and reviewed changes; Codex preserved the limitations and unfinished work in the handoff. \\
+4
View File
@@ -20,6 +20,10 @@
\bottomrule
\endlastfoot
November 20, 2026 / 1.11.1 & NK, CDX & Completed TA browser create/assign/internal-note/public-reply/close on ticket 71007, verified Customer visibility, and added Agent-only role/group and privileged SSH audit evidence. Final editorial revision clarifies the vector TikZ diagram, normalizes Chapter 14 numbering and removes the closing draft-status text. & \ChapterRef{SupportTicketManagement}, \AppendixRef{AIPromptLog} \\
November 18, 2026 / 1.11.0 & NK, CDX & Consolidated assignment entry (first workday; evidence retains actual capture dates). Completed browser workflow and role/group evidence, privileged SSH audit, source publication, Hosts and Bitwarden credential references. Added the Support Ticket Management with Zammad chapter for instruction Chapter 7 / team Assignment 9. Recorded official revision, small per-service limits, upgraded-host observations, private HTTPS networking, synthetic accounts/tickets, least-privilege TA API tests, bidirectional issue 22 linkage, backup and isolated recovery evidence. Added actual screenshots and an explicit required-deliverable gap audit. Updated Hosts, password-store hints and AI log. Source-only draft; no PDF compilation authorized. & \ChapterRef{SupportTicketManagement}, \ChapterRef{Hosts}, \ChapterRef{Passwords} \\
November 8, 2026 / 1.10.1 & GDL, NK, CDX & Completed the secure delivery evidence audit, expanded the architecture with actual hosts, volumes and private paths, and linked release records, scans and recovery output. Recorded the v1 and v2 promotions, human decisions, production rollback samples, staging port-mismatch failure and delayed recovery. Added production HTTPS monitoring and preserved its limitation: the probe started after rollback. Recorded the unverified historical scanner database version and stateful rollback limitations. & \ChapterRef{SecureDeliveryRollback}, \ChapterRef{Hosts} \\
November 7, 2026 / 1.10.0 & GDL, NK, CDX & Established the Assignment 8 service and delivery foundation. Locked application dependencies and base image; prepared a dedicated Jenkins agent with Python, Docker, Ansible and the Docker collection. Configured pinned SSH, restricted deployment credentials, registry access, Caddy routes and separate staging and production Compose projects. Added tests, dependency and secret scans, image scanning, approval and Ansible deployment. Reviewed and merged the foundation and follow-up security corrections; documented initial validation and the health-check timeout investigation. & \ChapterRef{SecureDeliveryRollback} \\
+5
View File
@@ -27,3 +27,8 @@
\item[\textbf{SLO}] Internal target for the indicator over a defined window. \hfill Reference: \hyperref[GlossaryRef:slo]{p.~\pageref*{GlossaryRef:slo}}
\item[\textbf{error budget}] Allowed unsuccessful fraction implied by a reliability target. \hfill Reference: \hyperref[GlossaryRef:errorbudget]{p.~\pageref*{GlossaryRef:errorbudget}}
\end{description}
\begin{description}[style=nextline,leftmargin=3.1cm,labelindent=0pt]
\item[\textbf{Zammad}] The official multi-container support desk used for ticket ownership, customer replies and internal notes. See \ChapterRef{SupportTicketManagement}.
\item[\textbf{internal note}] An Agent conversation entry that must be excluded from the customer view; verified separately from a customer-visible reply.
\item[\textbf{TA Agent}] The named non-administrator evaluator identity with ticket permissions limited to the Startup Support group.
\end{description}
+4 -3
View File
@@ -8,20 +8,21 @@ This chapter lists the hosts used in the development environment for this
assignment and any that will be configured in future assignments.
\section{Host Registry}
\begin{tabularx}{\linewidth}{L{3.4cm}L{2.6cm}Y}
\begin{longtable}{L{3.4cm}L{2.6cm}L{7.0cm}}
\caption{Host Registry\label{Table:HostRegistry}}\\
\toprule \textbf{Host Name} & \textbf{Provider} & \textbf{Purpose / Notes}\\ \midrule
\endfirsthead
\multicolumn{3}{l}{\small\itshape Host Registry (continued)}\\
\toprule \textbf{Host Name} & \textbf{Provider} & \textbf{Purpose / Notes}\\ \midrule
\endhead \bottomrule \endlastfoot
\texttt{ssw590-group7-}\newline\texttt{droplet} & DigitalOcean & Ubuntu Linux development environment at \texttt{142.93.193.110}; 1 virtual CPU, 1 GB memory, and 25 GB storage; normally administered through the non-root \texttt{codex} account; the team supplied the UFW check from a root shell. October 9 evidence: IPv6 disabled, attached Cloud Firewall permits inbound 22/80/443 only, UFW inactive. Hosts the MyFileAgent Gitea service at \href{https://myfileagent.tech}{\texttt{myfileagent.}\allowbreak\texttt{tech}} through Caddy-managed HTTPS. Gitea remains bound to \texttt{127.0.0.1:3000}; an authenticated SSH local forward is retained as an administrative fallback.\\
\texttt{ssw590-group7-}\newline\texttt{droplet} & DigitalOcean & Ubuntu at \texttt{142.93.193.110}; originally 1 CPU, 1 GB RAM and 25 GB storage. User-confirmed new Basic plan: 1 vCPU, 2 GB RAM, 50 GB disk at \$12/month. November 18 observed root filesystem: 48 GB, plus 2 GB swap. Non-root \texttt{codex} administration. Current cloud rules and attachment are evidenced; November 20 privileged SSH audit confirms UFW inactive and password/keyboard-interactive SSH disabled. Cloud firewall permits inbound 22/80/443; the team's SSH source-IP exception is retained. Existing Gitea, Jenkins, proxy, monitoring and pricing services retained. See \ChapterRef{SupportTicketManagement}.\\
\texttt{gitea} & Existing Droplet & Repository-scoped Actions runner ID 1; temporary TeX jobs on the same host. Team-owned, capacity one, no public runner/compiler ports; runner 192 MiB and jobs 256 MiB. HTTPS to \href{https://myfileagent.tech}{Gitea}; separate Docker bridges. Runner state is outside Git; service health was checked during setup. See \ChapterRef{AutomatedManualBuild}.\\
\texttt{ci.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Jenkins 2.580.1 at \href{https://ci.myfileagent.tech/login}{HTTPS login}; public browser access, authentication required. Caddy forwards to \texttt{jenkins:8080} on the private bridge. Host port 8080 is loopback-only; no agent port is published. Team-owned, controller builds, persistent \texttt{jenkins-home}. Login, restart and main build 2 verified October 9, 2026; CI AAAA query returned no address. Named Matrix admin access team-confirmed; public-access approval remains unresolved. At the October 9 baseline, backup/monitoring was not established. Assignment 7 subsequently added HTTPS probes and host monitoring; monitoring does not establish Jenkins backup/restore. See \ChapterRef{JenkinsContinuousIntegration}.\\
\texttt{metrics.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Grafana OSS 13.2.4 at \href{https://metrics.myfileagent.tech/login}{HTTPS login}; authentication required, anonymous access and signup disabled in provisioning. Caddy forwards privately to \texttt{grafana:3000}. Persistent Grafana volume; six-panel monitoring and two-panel runbook dashboards; team Discord alert route. See \ChapterRef{SREMonitoringReliability}.\\
\href{https://staging.myfileagent.tech}{\texttt{staging.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech}} & Existing Droplet & Staging pricing service; Caddy forwards HTTPS privately to port 8000.\\
\href{https://app.myfileagent.tech}{\texttt{app.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech}} & Existing Droplet & Production-like pricing service; Caddy forwards HTTPS privately to port 8000.\\
\href{https://support.myfileagent.tech}{\texttt{support.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech}} & Existing Droplet & Zammad 7.2.3-0008, official ten-container Compose project \texttt{dos-support}; Caddy TLS to nginx :8080 over the existing edge network. No Zammad host ports published. Private database/search/cache dependencies, named persistent volumes, startup backup and small CPU/RAM limits. TA Agent \texttt{ta.agent} has group ticket access, not Admin. See \ChapterRef{SupportTicketManagement}.\\
\texttt{prometheus} & Existing Droplet & Prometheus v3.15.1 on the private monitoring bridge at port 9090; separate persistent volume, 30-second scrapes, seven-day/512 MB block retention. No public port published.\\
\texttt{node-exporter} & Existing Droplet & Node Exporter v1.12.1, private port 9100; read-only host root/proc/sys and host PID namespace for whole-host CPU, memory and filesystem collectors.\\
\texttt{blackbox-}\allowbreak\texttt{exporter} & Existing Droplet & Blackbox Exporter v0.29.1, private port 9115; probes Gitea/Jenkins HTTPS login URLs with TLS verification. Same-Droplet probes do not prove reachability from all external networks.\\
\end{tabularx}
\end{longtable}
+9 -1
View File
@@ -8,7 +8,7 @@
\section{Assignment Purpose}
This report records the team's developing DevOps environment and the work
completed through Assignment 7, retaining the Assignment 5 automated
completed through Assignment 9, retaining the Assignment 5 automated
manual-build work described in \ChapterRef{AutomatedManualBuild}. The earlier chapters establish Linux
\phantomsection\label{GlossaryRef:bash}Bash command-line skills, the Ubuntu working environment, host configuration, and
password-management concepts. Earlier assignments extended that foundation
@@ -25,6 +25,14 @@ Caddy-managed HTTPS, a DigitalOcean Cloud Firewall, and a verified two-member
repository workflow.
\section{Team and Environment}
Assignment 9 extends the existing deployment with the official Zammad support
desk, private dependencies, HTTPS, synthetic ticket workflows and
least-privilege TA access. Instruction Chapter 7 is recorded in
\ChapterRef{SupportTicketManagement}, including monitoring, backup/recovery,
minimal resource settings and explicit unfinished evidence. This source draft
has not been compiled; final PDF verification awaits the user's authorized
Jenkins build.
The work was completed by Nicholas Kogut and Gowri Das Lovely. The execution
environment is an Ubuntu Linux Droplet hosted on DigitalOcean, accessed remotely
with PuTTY. Docker provides the repeatable application environments used for
+10 -2
View File
@@ -7,7 +7,7 @@
For security reasons, passwords in this document are stored only as links to another password store (shared BitWarden cloud account), never as the credential itself. When a new credential is created, add a row naming the user and server, add the corresponding entry to the password manager, and record only the password manager's entry name here.
\section{Credential Registry}
\begin{tabularx}{\linewidth}{L{1.8cm}L{2.6cm}L{3.4cm}Y}
\begin{longtable}{L{1.8cm}L{2.6cm}L{3.4cm}L{5.0cm}}
\caption{Credential Registry\label{Table:CredentialRegistry}}\\
\toprule \textbf{User} & \textbf{Server} & \textbf{Credential Reference} & \textbf{Rotation / Notes}\\ \midrule
\endfirsthead
@@ -25,4 +25,12 @@ Group 7 & Actions runner & Restricted state: \texttt{.runner} & Outside Git; mod
\texttt{jenkins-}\allowbreak\texttt{ci} & Jenkins / Gitea & Jenkins credential: \texttt{gitea-}\allowbreak\texttt{jenkins-ci} & Global PAT: repo write; user/org read. Rotate on compromise.\\
Group 7 & Grafana & Bitwarden: \path{bitwarden-grafana} & Never publish the password. The restricted initial-password file outside Git is a bootstrap value and must not be used to reset the changed login.\\
Group 7 & Discord alert route & Restricted \path{grafana-discord-webhook} and private routing provisioning outside Git & Secret URL excluded from source and screenshots. Rotate/revoke through the team Discord integration if compromised; preserve resolved delivery.\\
\end{tabularx}
Startup Admin & Zammad support & Bitwarden: \path{zammad-admin} & Login \path{startup.admin@example.test}; named administrator. Rotate on compromise.\\
\texttt{student.}\allowbreak\texttt{agent} & Zammad support & Bitwarden: \path{zammad-student-agent} & Startup Support Agent access only.\\
\texttt{ta.agent} & Zammad support & Bitwarden: \path{zammad-ta-agent} & Agent role only. Supply privately in Canvas; revoke after evaluation.\\
\texttt{demo.}\allowbreak\texttt{customer} & Zammad portal & Bitwarden: \path{zammad-demo-customer} & Synthetic Customer for portal workflow and visibility tests.\\
\texttt{other.}\allowbreak\texttt{customer} & Zammad portal & Bitwarden: \path{zammad-other-customer} & Separate synthetic Customer for ticket-isolation tests.\\
Zammad database & PostgreSQL & Bitwarden: \path{zammad-postgres} & Private deployment variable \texttt{POSTGRES\_PASS}; excluded from Git.\\
Database superuser & PostgreSQL & Bitwarden: \path{zammad-postgres-superuser} & Private deployment variable \texttt{POSTGRES\_SUPERUSER\_PASS}; excluded from Git.\\
Zammad search & Elasticsearch & Bitwarden: \path{zammad-elasticsearch} & Private deployment variable \texttt{ELASTICSEARCH\_PASS}; the variable does not establish enabled search authentication.\\
\end{longtable}
+24
View File
@@ -195,3 +195,27 @@
howpublished = {\url{https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/}},
note = {Accessed: October 28, 2026}
}
@misc{ZammadDockerA9,
author = {{Zammad Foundation}},
title = {Install with Docker},
year = {2026},
howpublished = {\url{https://docs.zammad.org/en/latest/install/docker-compose.html}},
note = {Accessed November 18, 2026; deployment observations use the recorded pinned checkout}
}
@misc{ZammadPinnedComposeA9,
author = {{Zammad Foundation}},
title = {Official Docker Compose deployment, pinned source revision},
year = {2026},
howpublished = {\url{https://github.com/zammad/zammad-docker-compose/tree/cb5ab9c805310515f4a55e70e94f9b4a28fa24a5}},
note = {Checkout inspected November 18, 2026}
}
@misc{ZammadDockerRestoreA9,
author = {{Zammad Foundation}},
title = {Backup and Restore (Docker)},
year = {2026},
howpublished = {\url{https://docs.zammad.org/en/latest/appendix/backup-and-restore/docker-compose.html}},
note = {Accessed November 18, 2026; restore procedure documented, not executed}
}
@@ -0,0 +1,694 @@
\chapter{Support Ticket Management with Zammad}
\ChapterLabel{SupportTicketManagement}
\index{Zammad}\index{support tickets}\index{least privilege}
% Chapter introduction is intentionally unnumbered so the eleven implementation
% sections retain their natural 14.1--14.11 numbering.
This chapter implements Chapter 7 of the instructor's
\path{dosManual-V1.53-1.pdf} as team Assignment 9. Chapter numbers in this
cumulative team manual differ from the instruction manual. The work extends
the existing Droplet, Gitea, Jenkins, Caddy, monitoring and pricing deployments.
It uses the official Zammad Compose stack and published images. Optional mail,
SSO, alert-to-ticket automation, new exporters and new pipelines are excluded.
All ticket customers and correspondence are synthetic.
The starting documentation is branch
\path{assignment8/evidence-documentation}, commit
\path{6e2873cc6bb476dab5ae680efb7ff6b997579081}, version 1.10.1,
which was newer than main. The isolated implementation worktree is
\path{/home/codex/dos-support/team-repository}, branch
\path{assignment9/ticket-management}. Initial sanitized implementation commit
\texttt{114fb4b} retains the previous manual and adds support configuration and
evidence. Local source is also saved under \path{HW9/team-repository}.
The complete manual is compiled by the existing Gitea Actions
\textit{Team manual PDF} workflow. The PDF build stamp identifies the source
revision, run and attempt; the full Jenkins application pipeline is separate.
\begin{devopsNote}[What the evidence establishes]
HTTPS login reachability, API account and ticket operations, customer isolation,
TA group access, a generated backup, and an nginx-only restart test were
executed. A public login probe does not establish authenticated workflow
correctness. API checks do not substitute for separate customer and TA browser
checks. Browser screenshots are added only after actual observations; the
historical baseline limitations are stated alongside their source evidence.
\end{devopsNote}
\section{Baseline, capacity and preservation of earlier work}
The initial host had a 24 GB root filesystem with 22 GB used (94\%) and
1.6 GB available. The full upstream stack was downloaded and started; startup
caused severe resource contention and repeated Elasticsearch exits with code
137. That exit code alone does not identify the cause. The team subsequently
upgraded the Droplet. After reboot, measurements showed one CPU, approximately
2 GB physical RAM, 2 GB swap, and a 48 GB root filesystem with 26 GB available
(46\% used). Active swap traffic and zero idle CPU showed that startup was
competing with the existing services. Initial Rails migrations and seeding
eventually exited successfully with code zero.
The instructor's capacity baseline was not captured completely before the first
installation. The user initially deferred capacity work, later requested
resource diagnosis, and chose a small proof of concept with explicit limits.
The team supplied the upgraded plan at documentation review: DigitalOcean
Basic, 1 vCPU, 2 GB RAM, 50 GB nominal disk, at \$12/month. The observed 48 GB
root filesystem is distinct from the plan's advertised disk capacity. This
records the user's plan/price statement, not a new billing-console audit or a
claim that alternatives were compared before the resize. The small deployment is a tested lab configuration,
not a claim of compliance with Zammad's general production sizing guidance.
The existing services and their volumes were retained. Initial HTTPS checks
returned Gitea 200, Jenkins 403 (access-controlled response), Grafana 302,
production health \texttt{v1/ok}, and staging health \texttt{v2/ok}.
Prometheus was found stopped after the host restart. It was restarted; a
premature HUP during startup caused exit 129, after which it was restarted
again and its readiness endpoint was checked before using its data. This is
recorded separately from the controlled Zammad outage.
The post-installation audit captures all six prescribed command outputs:
Docker version, Compose version, \texttt{free -h}, \texttt{df -h}, bounded
\texttt{docker stats --no-stream}, and Docker network inventory, in
\path{support/evidence/chapter7-final-audit.json}. These are explicitly
post-install measurements, not a reconstructed original six-command baseline.
Historical Grafana comparisons provide retained before/after observations
with their collection gaps visible.
\paragraph{Reuse of the prior assignment's dated baseline.}
The team confirms that no system changes occurred between completion of the
preceding assignment and starting this assignment. Existing evidence can
therefore support continuity of the recorded configuration, while retaining
its original dates. In particular,
\path{documentation/evidence/assignment7/documentation-host-comparison-2026-10-28.json}
records one CPU, Docker 29.8.1, Compose v5.5.1, 1,008,177,152 bytes total RAM,
1,073,737,728 bytes swap, and a 24,883,167,232-byte root filesystem.
Its point-in-time available RAM was 217,042,944 bytes and root available
space was 12,422,406,144 bytes. These dynamic values are October 28 samples,
not measurements taken immediately before the November installation; an
unchanged configuration does not imply unchanged utilization or disk use.
The retained November 18 Grafana screenshots add contemporaneous whole-host
before/startup/after observations, and the recorded pre-resize versus
post-resize capacities support the upgrade comparison. These sources are
used together rather than declaring all baseline evidence absent.
The remaining historical gap is the complete, contemporaneous six-command
capture required by Step 1, especially per-container statistics and network
inventory. A later snapshot or a stopped-Zammad test cannot recreate those
original observations. The plan selected and recurring cost are documented;
a pre-resize comparison of alternative paid plans is not established by
capacity measurements alone.
\section{Official deployment revision and images}
The separate deployment directory is
\path{/home/codex/dos-support/zammad-docker-compose}. The official repository
\url{https://github.com/zammad/zammad-docker-compose} was cloned and detached at
\path{cb5ab9c805310515f4a55e70e94f9b4a28fa24a5}.
The official deployment guide and pinned repository are the source references
for the supplied stack, scenarios and environment variables
\cite{ZammadDockerA9,ZammadPinnedComposeA9}.
Docker Compose reported version 5.5.1 and accepted the external-network
scenario's \texttt{!reset} syntax. The kernel's existing
\texttt{vm.max\_map\_count} was 1048576; no privileged sysctl change was needed.
\begin{longtable}{L{4.0cm}L{8.8cm}}
\caption{Official selected image inventory}\label{Table:ZammadImages}\\
\toprule Service & Published image tag\\\midrule\endhead
Rails, nginx, initialization, scheduler, websocket, backup &
\path{ghcr.io/zammad/zammad:7.2.3-0008}\\
Elasticsearch & \path{elasticsearch:9.5.5}\\
PostgreSQL & \path{postgres:17.12-alpine}\\
Redis & \path{redis:8.10.3-alpine}\\
Memcached & \path{memcached:1.6.45-alpine}\\\bottomrule
\end{longtable}
Ten containers share five image tags; a new custom help-desk image was not
built. Captured local image IDs, resource caps, service state, networks and
volume mounts are in \path{support/evidence/deployment-manifest.json}.
Local image IDs are not represented as registry manifest digests.
\section{Private networks, proxy and minimal settings}
\begin{figure}[htbp]
\centering
\begingroup
\linespread{1}\selectfont
\begin{tikzpicture}[
box/.style={draw=devopsBlue,rounded corners=2pt,align=center,
font=\fontsize{10}{13}\selectfont,text width=3.8cm,minimum height=1.6cm,inner sep=6pt,fill=white},
newbox/.style={box,fill=devopsLightBlue},
store/.style={box,fill=black!5},
arrow/.style={-{Stealth[length=2.5mm]},thick,draw=devopsBlue},
edgeLabel/.style={font=\footnotesize,fill=white,inner sep=3pt,align=center}]
% Explicit grid positions reserve separate lanes for every connection.
\node[box] (browser) at (0,0) {Customer / student\\TA browser};
\node[box] (proxy) at (0,-3.2) {Existing Caddy\\TLS :443\\HTTP redirect :80};
\node[box] (old) at (-4.8,-3.2) {Existing Gitea / Jenkins\\Pricing: staging\\and production};
\node[store] (oldvol) at (-4.8,0) {Existing Gitea data\\Jenkins home / TLS storage\\Pricing configuration};
\node[box] (monitor) at (4.8,-3.2) {Prometheus / Blackbox\\Grafana / Node Exporter};
\node[store] (monvol) at (4.8,0) {Metrics history\\Dashboards / alert rules\\Exporter configuration};
\draw[draw=devopsBlue,dashed,rounded corners=4pt]
(-7.05,-15.0) rectangle (7.05,-5.1);
\node[anchor=north west,font=\small\bfseries,text=devopsBlue]
at (-6.85,-5.3) {New Zammad private network};
\node[newbox] (nginx) at (0,-6.9) {Zammad nginx :8080\\Private + proxy networks};
\node[newbox] (app) at (0,-10.1) {Rails :3000 / websocket\\Scheduler / one-shot init};
\node[newbox] (data) at (-4.8,-10.1) {PostgreSQL :5432\\Redis :6379\\Memcached :11211\\Elasticsearch :9200};
\node[newbox] (backup) at (4.8,-10.1) {Official backup container\\Private project network};
\node[store] (vol) at (0,-13.4) {Named database / search / Redis\\Shared application storage\\Backup volumes};
\draw[arrow] (browser.south)--node[edgeLabel,right]{HTTPS}(proxy.north);
\draw[arrow] (proxy.west)--(old.east);
\draw[arrow] (old.north)--(oldvol.south);
\draw[arrow] (monitor.north)--(monvol.south);
\draw[arrow,dashed] (monitor.west)--(proxy.east);
\draw[arrow] (proxy.south)--node[edgeLabel,right]{private HTTP}(nginx.north);
\draw[arrow] (nginx.south)--(app.north);
\draw[arrow] (app.west)--(data.east);
\draw[arrow] (app.south)--(vol.north);
\draw[arrow] (data.south)--(-4.8,-13.4)--(vol.west);
\draw[arrow] (backup.south)--(4.8,-13.4)--(vol.east);
\end{tikzpicture}
\endgroup
\caption{Actual logical service and storage boundaries. Only Zammad nginx
joins \texttt{myfileagent-gitea\_edge}; all dependencies remain on
\texttt{dos-support\_default}. Dashed line is the HTTPS probe through Caddy.
Grouped boxes represent multiple containers, not combined processes.}
\label{Figure:ZammadArchitecture}
\end{figure}
The retained official scenario removes nginx's host port with
\texttt{ports: !reset []}. Resolved Compose validation confirmed no published
host port for any Zammad service. The actual external network is
\path{myfileagent-gitea_edge}; the project network is
\path{dos-support_default}. The non-secret example is
\path{support/.env.example}; the real \path{.env} is outside the team repository,
mode 600. Distinct generated application database, administrative database and
search credentials replace defaults. PostgreSQL's application and superuser
roles are separate. Search security remains as supplied upstream on the
private network; a generated search password variable is not a claim that
Elasticsearch authentication was enabled.
\begin{verbatim}
COMPOSE_PROJECT_NAME=dos-support
COMPOSE_FILE=docker-compose.yml:scenarios/add-external-network-to-nginx.yml:
scenarios/apply-resource-limits.yml:local/minimal.yml
ZAMMAD_NGINX_EXTERNAL_NETWORK=myfileagent-gitea_edge
ZAMMAD_FQDN=support.myfileagent.tech
ZAMMAD_HTTP_TYPE=https
NGINX_SERVER_SCHEME=https
ELASTICSEARCH_JAVA_OPTS=-Xms128m -Xmx128m
ZAMMAD_WEB_CONCURRENCY=0
\end{verbatim}
The displayed Compose file list wraps for readability; the real environment
stores it on one line. The upstream HTTPS scheme is retained even though
Caddy's upstream connection uses HTTP, to preserve secure cookies and CSRF
behavior. Client-IP attribution was not customized; no broad trusted-proxy
range is asserted. API setup follows the application's normal CSRF tokens and
session cookies; security checks were not disabled.
\subsection{Small proof-of-concept limits}
\begin{longtable}{L{4.2cm}L{2.1cm}L{2.0cm}L{4.5cm}}
\caption{Saved per-container ceilings, not preallocated reservations}\label{Table:ZammadLimits}\\
\toprule Service & RAM cap & CPU cap & Additional setting\\\midrule\endhead
Elasticsearch & 384 MiB & 0.35 & Heap 128 MiB initial/max\\
Rails & 384 MiB & 0.40 & Single Puma process; 1--3 threads\\
Scheduler & 384 MiB & 0.25 & Required services use shared-process threads; unused AI/incoming-mail workers disabled\\
Websocket & 192 MiB & 0.15 & Official command retained\\
Backup & 192 MiB & 0.15 & Startup backup enabled\\
PostgreSQL & 128 MiB & 0.25 & Existing initialized volume\\
Redis & 48 MiB & 0.10 & 16 MB data maximum; no eviction\\
Memcached & 32 MiB & 0.10 & 8 MB cache; one thread, 64 connections\\
nginx & 64 MiB & 0.15 & No published host port\\
Initialization & 512 MiB & 0.35 & Saved limit for future runs; completed prior to this limit\\\bottomrule
\end{longtable}
These are experimental limits for kilobytes of demonstration data. Heap size
is only part of Elasticsearch's total usage. Its upstream 1 GB heap was first
reduced to 256 MB, then 128 MB. At the later checkpoint the constrained
services reported zero restarts and Rails was healthy. Search startup was
slow and emitted garbage-collection overhead messages; long-term stability
is not inferred from a short successful workflow. The sum of service ceilings
is not a promise that the complete host can sustain every ceiling at once.
If a required service fails, preserve logs and raise only the demonstrated
limiting setting. Do not silence failures or remove the required search or
backup services to claim success.
\paragraph{November 20 browser-test correction.}
Although the container remained running, a later actual browser ticket-create
test could not find the existing synthetic Customer. The user search index
contained only one record. Scheduler process inspection showed that the
general delayed-job and scheduled-job workers were absent; its cgroup counters
recorded three killed processes under the original 384 MiB ceiling.
An initial 512 MiB scheduler trial still lost the delayed-job worker and
recorded one killed process. Inspection of the matching upstream
\path{lib/background_services/service_config.rb} established that a worker
count of zero selects shared-process threading, whereas one forks a separate
Rails process. The earlier attempt to minimize workers by setting each to one
was therefore counterproductive. Required session-management, scheduled-job
and delayed-job services were corrected to zero-worker threaded mode, the
scheduler ceiling was restored to 384 MiB, and unused AI/incoming-mail workers
were disabled. The Elasticsearch heap remained 128 MiB.
This records a functional failure that API CRUD and container-running checks
had not detected; the completed browser test is the acceptance check for the
correction, not merely a successful container restart.
\section{Validation, initialization and startup operations}
\paragraph{Post-build footprint tuning, November 21.}
After manual build 29, the team reported nearly full swap. A current SSH
audit found about 2 GiB swap used with roughly 472 MiB available RAM.
Jenkins, Elasticsearch and the three Zammad Ruby services held most of the
swapped pages; the many Elasticsearch rows were threads of one JVM.
A 96 MiB Elasticsearch heap trial did not complete the bounded primary-shard
recovery check and emitted GC pressure, so the 128 MiB setting was restored.
The saved override sets \texttt{MALLOC\_ARENA\_MAX=2} for Elasticsearch,
Rails, websocket and scheduler, and disables unused Elasticsearch ML.
The existing Jenkins controller heap was reduced from 256 to 192 MiB with
the 448 MiB container cap and persistent home retained. All 83 saved Jenkins
build records had a final result before its restart. No volume was deleted,
swap was not forcibly disabled, and no paid capacity change was made.
Restarts released old swapped pages, which is immediate relief rather than
proof of a lasting reduction; later warm-state measurements are required.
These changes postdate the build-29 artifact and are included in this
version's source configuration and verification record.
Run commands in the deployment directory so the same private environment and
all scenarios are loaded:
\begin{verbatim}
cd /home/codex/dos-support/zammad-docker-compose
docker compose config --quiet
docker compose config --services
docker compose pull
docker compose up -d
docker compose ps -a
docker compose logs --tail=50 zammad-init zammad-railsserver zammad-nginx
\end{verbatim}
Do not publish resolved Compose output containing secrets. The observed
one-shot initialization container exited zero after migrations, seeds and
initial index setup. It is expected to be stopped, not continuously running.
During initial contention the waiting Rails, scheduler, websocket and backup
containers were paused so initialization could finish. They were later
recreated with the saved small settings and restarted. For a constrained
restart, first bring up PostgreSQL, Redis, Memcached and Elasticsearch, then
Rails, then nginx, websocket, scheduler and backup. Check actual readiness,
not just container state. Puma's zero-worker mode means one process; an early
saved value of one was corrected before this constrained deployment.
\section{DNS, HTTPS and certificate verification}
\url{https://support.myfileagent.tech/} resolves to the existing Droplet
\texttt{142.93.193.110}. A new hostname route was appended to the existing
Caddyfile; all prior host routes were preserved:
\begin{verbatim}
support.myfileagent.tech {
reverse_proxy zammad-nginx:8080
}
\end{verbatim}
The original is retained as \path{Caddyfile.before-assignment9}. Caddy
validation succeeded before reload. Normal HTTPS requests returned 200
without bypassing certificate validation. The ChatGPT browser displayed the
actual first-run wizard and later login page. Caddy provides WebSocket
forwarding; Zammad's websocket service remains in the official stack.
The final observation at 20:45:47 UTC on November 18 returned HTTP 200 for
support, Gitea login, Jenkins login, Grafana login, production health and
staging health. HTTP support access followed a redirect to HTTPS. The trusted
certificate identifies support.myfileagent.tech, issuer Let's Encrypt YE1,
valid November 18, 2026 at 19:20:36 UTC through February 16, 2027 at
19:20:35 UTC. Default trust-chain and hostname verification remained enabled.
Evidence: \path{support/evidence/final-observations.json}.
\begin{figure}[htbp]\centering
\includegraphics[width=.64\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/support-login.png}
\caption{Actual support HTTPS login page after initialization and account setup.
No password fields are populated in this screenshot. A login page alone does
not establish successful authenticated access.}\label{Figure:ZammadLogin}
\end{figure}
\section{Firewall and exposure checks}
External TCP connection attempts from the Windows workstation could not reach
\texttt{142.93.193.110} on 8080, 5432, 9200, 6379 or 11211. These are
observations from that source and time, not a universal connectivity proof.
The resolved Compose configuration publishes none of those Zammad ports.
Published-port avoidance is independently important because Docker networking
can bypass assumptions about host firewall rules.
Earlier team evidence recorded a DigitalOcean Cloud Firewall permitting
22/80/443, UFW inactive and IPv6 disabled. Those historical observations are
not relabeled as a new post-upgrade firewall audit. A current authenticated
DigitalOcean inspection now confirms the cloud firewall and attachment;
the privileged host audit was subsequently completed on November 20. The earlier Gitea foundation chapter records an
instructor-cleared exception allowing key-only SSH from changing source
addresses. The team explicitly carries that policy forward; no SSH source-IP
restriction was requested or applied in this assignment. Verify the actual
key-only controls and retain that exception rather than claiming IP filtering.
The final
observation found no support AAAA answer and no global IPv6 interface address;
listeners on \texttt{[::]} alone do not establish public IPv6 access.
The original unprivileged UFW attempt failed because sudo required a password;
that historical failure remains in \path{chapter7-final-audit.json}.
The team then authenticated the read-only audit through SSH. Its raw output is
\path{support/evidence/host-security-audit.txt}, captured November 20 at
20:33:14 EST (November 21, 01:33:14 UTC). UFW is inactive. IPv4 INPUT and
OUTPUT policies are ACCEPT, FORWARD is DROP, with Docker-managed bridge
and forwarding chains. IPv6 base policies are ACCEPT. Therefore the host
firewall is not an independent inbound port allowlist; the attached cloud
firewall supplies that restriction. Docker ACCEPT entries for private
container ports do not alone prove public exposure; published bindings and
external checks are recorded separately below.
Effective \texttt{sshd -T} output reports
\texttt{pubkeyauthentication yes}, \texttt{passwordauthentication no},
\texttt{kbdinteractiveauthentication no}, and
\texttt{permitemptypasswords no}. Root login is
\texttt{without-password} (keys permitted), not disabled. No rules or SSH
settings were changed during this audit.
The renewed external checks are in
\path{support/evidence/firewall-exposure-recheck.json}: HTTPS returned 200,
all five internal TCP ports timed out from the external workstation, none of
the five Zammad frontend/dependency containers published a host port, and
only nginx joined the existing proxy network. The instruction requires
checking both cloud controls and host/container networking; it does not
mandate a particular screenshot format. One current rules/attachment capture
from the DigitalOcean console or an equivalent authenticated API export,
combined with these command results, is sufficient evidence of the two layers.
The authenticated console showed
\texttt{ssw590-group7-gitea-firewall}, six rules and one attached Droplet:
\texttt{ssw590-group7-droplet}, described as 2 GB / 50 GB / NYC1. Its only
inbound allowances are TCP 22, 80 and 443 from all IPv4/IPv6 sources; other
inbound traffic is blocked. Outbound ICMP, all TCP and all UDP remain allowed.
No internal Zammad port is allowed. No cloud rule or attachment issue was
found relative to the recorded policy and SSH exception; nothing was changed.
Structured evidence is \path{support/evidence/digitalocean-firewall-verification.json}.
\begin{figure}[htbp]\centering
\includegraphics[width=.85\linewidth,height=.82\textheight,keepaspectratio]{hw9_images/digitalocean-firewall-rules-full.png}
\caption{Actual complete DigitalOcean firewall rule capture, November 18.
The original PNG can be zoomed to inspect all inbound and outbound rules.}
\label{Figure:ZammadCloudFirewallRules}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.70\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/digitalocean-firewall-attachment.png}
\caption{Actual firewall attachment to the upgraded team Droplet. This is
the same firewall whose complete rules are captured in the preceding figure.}
\label{Figure:ZammadCloudFirewallAttachment}\end{figure}
Do not add public rules for Zammad dependencies or monitoring ports. Keep
80 only for the existing redirect/certificate mechanism and HTTPS on 443.
\section{Accounts, ticket workflow and least privilege}
The created local accounts are \texttt{startup.admin}, \texttt{student.agent},
\texttt{ta.agent}, \texttt{demo.customer}, and \texttt{other.customer}; all
use synthetic \texttt{example.test} email identities. TA Agent has only the
Agent role and full ticket permissions in \texttt{Startup Support}, sufficient
for create, assign, reply and close; it has no Admin role. Public account
creation was disabled. No mail channel, external notification or real customer
address was configured.
\begin{longtable}{L{1.6cm}L{5.1cm}L{6.4cm}}
\caption{Synthetic ticket examples and observed workflow}\label{Table:ZammadTickets}\\
\toprule Number & Example & Observed result\\\midrule\endfirsthead
\toprule Number & Example & Observed result\\\midrule\endhead
71002 & Portal access question & Open/unassigned; Demo Customer; normal priority.\\
71003 & Pricing investigation & Open, Student Agent owner, Demo Customer, normal priority; internal note and public reply.\\
71004 & Support HTTPS configuration & Closed, Student Agent owner, Demo Customer, normal priority; resolution and issue 22 link.\\
71005 & Second customer's private request & Access denied when requested as the first customer.\\
71006 & TA permissions verification & TA created, assigned to self, replied, and closed using its Agent account.\\\bottomrule
\end{longtable}
The customer API view of ticket 71003 excluded the internal marker
\texttt{INTERNAL-DEMO-NOTE}. Requesting ticket 71005 as the other customer
returned access denial. TA authentication and reading ticket 71003 succeeded;
its role list contained only Agent. TA ticket 71006 exercised create, own,
reply and close. Machine-readable results are in
\path{support/evidence/workflow-verification.json},
\path{ticket-evidence.json} and \path{account-ids.json} in the same directory.
Separate browser checks authenticated as TA Agent and displayed ticket 71004
with its issue link and ticket 71003 with its internal note. After signing
out, the browser authenticated as demo.customer. Its overview showed its own
tickets, ticket 71003 showed the public reply without the internal note,
and opening ticket 71005 displayed ``You are not authorized to open this
Ticket.'' TA CRUD was tested through the API, distinct from browser login/read.
\begin{figure}[htbp]\centering
\includegraphics[width=.47\linewidth,height=.65\textheight,keepaspectratio]{hw9_images/ta-internal-note.png}\hfill
\includegraphics[width=.47\linewidth,height=.65\textheight,keepaspectratio]{hw9_images/customer-public-reply.png}
\caption{Actual ticket 71003 browser views: TA can see the internal note
(left); the customer sees the request and public Agent reply (right).}
\label{Figure:ZammadNoteVisibility}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.47\linewidth,height=.62\textheight,keepaspectratio]{hw9_images/customer-ticket-list.png}\hfill
\includegraphics[width=.47\linewidth,height=.62\textheight,keepaspectratio]{hw9_images/customer-other-ticket-denied.png}
\caption{Customer overview with open/closed examples (left), and explicit
denial for the other customer's ticket 71005 (right).}
\label{Figure:ZammadCustomerIsolation}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.68\linewidth,height=.68\textheight,keepaspectratio]{hw9_images/ta-resolved-ticket.png}
\caption{Authenticated TA Agent view of the resolved ticket and its clickable
engineering issue link, without administrator access.}
\label{Figure:ZammadTAResolved}\end{figure}
\subsection{Private TA access and evaluation checklist}
The November 20 administrator browser inspection opened TA Agent's existing
profile read-only: Agent selected, Admin and Customer unchecked, Startup
Support Full permission, and active status. The dialog was canceled without
submission. The administrator signs in using
\texttt{startup.admin@example.test}; the originally generated
\texttt{startup.admin} identifier was not accepted by the login form.
Use the email identifier with the existing private password; no credential
was reset or replaced.
\begin{figure}[htbp]\centering
\includegraphics[width=.47\linewidth]{hw9_images/ta-agent-profile.png}\hfill
\includegraphics[width=.47\linewidth]{hw9_images/ta-agent-role-group.png}
\caption{Read-only TA Agent identity (left) and Agent-only role with Full
Startup Support ticket permissions (right). No access settings were changed.}
\label{Figure:ZammadTARoleGroup}\end{figure}
Evaluation URL: \url{https://support.myfileagent.tech/}. Login name:
\texttt{ta.agent}; display name: TA Agent. The separate generated passwords
are stored privately in
\path{/home/codex/dos-support/accounts.private.json} with mode 600, outside Git.
Actual database secrets are in the private deployment environment.
The Passwords chapter defines the team's Bitwarden reference names for all
five Zammad accounts and three deployment secret variables. Those names
are the credential handoff convention; secret values remain outside this manual.
The Basic plan is 1 vCPU, 2 GB RAM and 50 GB disk at \$12/month.
The approved temporary local credential copy was removed after browser tests;
the Droplet's private store is retained. Supply the TA username and password privately in Canvas
submission text, outside the PDF and repository, as required by the manual.
The TA should sign in, select Startup Support, inspect tickets 71002--71004,
open the issue link in 71004, create a synthetic ticket, set customer/priority,
assign it to self, post a public reply, and close it with a verification note.
No SSH or administrator account is required for evaluation. Keep the desk and
TA login available through the announced grading window; its dates have not
been supplied. Revoke temporary access only after grading and retention needs
are confirmed.
\section{Engineering traceability and resolution}
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/22}{Gitea issue 22}
is titled ``Verify resource-limited Zammad HTTPS support deployment.'' It was
created as \texttt{nkogut} after explicit team approval and links back to
\href{https://support.myfileagent.tech/\#ticket/zoom/4}{support ticket 71004}.
Its acceptance criteria cover trusted HTTPS, no published dependency ports,
customer/agent access, monitoring and recorded recovery results. A
customer-visible HTML note in ticket 71004 links to the issue and records
the observed resolution. The issue remains open for the remaining acceptance
and publication checks; its existence is not evidence of a reviewed merge.
No application code change or new Jenkins integration was necessary for this
manual ticket-to-engineering link. Existing branch protection and the earlier
review/check workflow remain applicable to implementation source publication.
\begin{figure}[htbp]\centering
\includegraphics[width=.75\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/gitea-issue-22.png}
\caption{Actual Gitea issue 22, including its reverse link to synthetic ticket
71004. The screenshot records an open issue, not a completed review.}
\label{Figure:ZammadEngineeringIssue}
\end{figure}
\section{Existing monitoring extension}
The support root URL was appended to the existing Prometheus \texttt{https}
job. The Gitea, Jenkins and production application targets, \texttt{/probe}
path, \texttt{http\_2xx} module, 30-second interval and relabeling were retained.
No duplicate job, new exporter or new alert rule was introduced. The saved
configuration passed \texttt{promtool check config}. After startup readiness,
an instant query returned \texttt{probe\_success=1} for the support URL.
Three panels were appended to the existing provisioned team SRE dashboard:
\begin{verbatim}
probe_success{job="https",instance="https://support.myfileagent.tech/"}
probe_duration_seconds{job="https",instance="https://support.myfileagent.tech/"}
(probe_ssl_earliest_cert_expiry{job="https",
instance="https://support.myfileagent.tech/"} - time()) / 86400
\end{verbatim}
They are labeled Zammad HTTPS reachable (0/1), Zammad probe duration (seconds),
and TLS certificate remaining lifetime (days). Existing host CPU, memory and
filesystem panels are retained for before/after comparisons; these describe
the whole host, not individual containers. Provisioned JSON is saved in
\path{monitoring/grafana/provisioning/dashboards/json/team-sre.json}.
An authenticated Grafana session displayed all three Zammad panels alongside
the existing host and Gitea/Jenkins panels. Screenshots show the actual
support reachability dip/recovery, probe-duration measurements and roughly
89.93 days of certificate lifetime. The TLS field's unit was changed from
an auto-scaling duration to a literal days suffix, so it does not display
weeks under a days title. Exporter scrape
\texttt{up=1} and destination \texttt{probe\_success=1} are different checks.
The login probe verifies TLS, HTTP and timing, not login or ticket persistence.
\begin{figure}[htbp]\centering
\includegraphics[width=.75\linewidth,height=.77\textheight,keepaspectratio]{hw9_images/grafana-recovery-window.png}
\caption{Actual authenticated Grafana view, November 18, 15:37--15:41 New York
time. Zammad reachability falls to zero for the controlled frontend outage
and returns to one; the existing dashboard also shows probe duration.}
\label{Figure:ZammadGrafanaRecovery}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.75\linewidth,height=.77\textheight,keepaspectratio]{hw9_images/grafana-support-duration-tls-days.png}
\caption{Actual support duration and certificate-lifetime panels, with TLS
lifetime explicitly displayed in days. A later duration spike remains visible;
these measurements do not establish a latency objective or uninterrupted uptime.}
\label{Figure:ZammadGrafanaTLS}\end{figure}
\subsection{Whole-host before/after comparison}
The historical window from 13:30 New York time includes pre-installation
observations, the original overloaded startup period and the post-upgrade,
limited-stack period. CPU rises toward 100\% during the first startup and is
around 40--50\% at the later screenshot. Available memory and root available
space are shown in the retained Node Exporter panels. Root available space
increased after the disk upgrade; this cannot be attributed to application
tuning alone. The memory capacity also changed, so absolute available memory
is not a like-for-like workload comparison. Missing data during the stopped
Prometheus/restart interval is left as a gap; it does not mean zero usage or
prove service availability. Earlier Gitea probe failures around the initial
overloaded startup are retained in the historical view, rather than hidden
as a claim that all earlier services stayed continuously available.
\begin{figure}[htbp]\centering
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-cpu-before-after.png}
\caption{Reused whole-Droplet CPU panel before and after installation and
upgrade; observation gaps are preserved.}\label{Figure:ZammadHostCPU}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-memory-before-after.png}
\caption{Reused available-host-memory panel over the same historical window;
this is not per-container usage.}\label{Figure:ZammadHostMemory}\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-memory-disk.png}
\caption{Reused root-filesystem available-space panel. The post-upgrade
increase is interpreted alongside the changed disk capacity, not as disk
space reclaimed by stopping a container.}\label{Figure:ZammadHostDisk}\end{figure}
\section{Controlled outage, persistence and backup}
The isolated test stopped only \texttt{zammad-nginx}, then restarted it in a
\texttt{finally} recovery path. No volume was removed. The first collector
used query-evaluation timestamps; because different query times do not prove
different scrapes, that collector was corrected to also query
\texttt{timestamp(probe\_success\{...\})}. The corrected test records two
distinct failed scrape timestamps before recovery. The corrected test ran
20:38:30--20:39:53 UTC on November 18 (15:38:30--15:39:53 New York time).
Failed scrapes were at 20:38:39.371 and 20:39:09.371 UTC; the recovered
successful scrape was 20:39:39.371 UTC. These are sampled observations, not
exact outage boundaries. Use the latest
\path{support/evidence/recovery-evidence.json}, retaining its actual timestamps,
rather than inferring an exact outage length from sampled data.
\begin{figure}[htbp]\centering
\begin{tikzpicture}[x=.085cm,y=1.8cm]
\draw[-{Stealth}] (-5,0)--(105,0) node[right]{\scriptsize seconds};
\draw[-{Stealth}] (0,-.10)--(0,1.35) node[above]{\scriptsize probe success};
\draw[devopsBlue,thick] (0,1)--(30,0)--(60,0)--(90,1);
\foreach \x/\y in {0/1,30/0,60/0,90/1}{\fill[devopsBlue] (\x,\y) circle[radius=1.5pt];}
\foreach \x in {0,30,60,90}{\draw (\x,0)--(\x,-.04) node[below]{\scriptsize\x};}
\node[left] at (0,1){\scriptsize 1};
\node[below,align=center] at (45,-.30){\scriptsize Origin: November 18, 2026, 20:38:09.371 UTC\\\scriptsize Failed scrapes: +30 s, +60 s; recovered sample: +90 s};
\end{tikzpicture}
\caption{Graph of the four distinct recorded scrape instants from the
corrected recovery test. Connecting lines guide the eye only; intermediate
availability and exact transition times are not inferred. The matching
Grafana dashboard screenshot is a separate outstanding browser check.}
\label{Figure:ZammadRecoverySamples}\end{figure}
The final audit queries the full 15:37--15:41 New York test window: Gitea
login, Jenkins login and production health each returned nine successful
probe samples; support included zero and one. This supports sampled continuity
of earlier services during the isolated test, not uninterrupted availability
outside the samples.
After frontend recovery, TA authentication still worked, ticket 71003 was
present, and the retained conversation included the internal note. This is
web-service restart persistence, not database restore or off-site backup.
The official backup container logged \texttt{backup finished :)} after a
startup backup. Metadata-only inspection found
\path{20261118152258_zammad_db.psql.gz} (6,804,179 bytes) and
\path{20261118152258_zammad_files.tar.gz} (126 bytes). Contents were not
exposed; the small file archive does not prove attachment restoration.
It writes to \path{dos-support_zammad-backup}; the shared
application volume is \path{dos-support_zammad-storage}. Other retained
volumes are \path{dos-support_postgresql-data},
\path{dos-support_elasticsearch-data} and \path{dos-support_redis-data}.
Memcached is disposable; Rails, nginx, websocket, scheduler and init do not
each need an independent data volume.
\subsection{Startup, shutdown, recovery and restore runbook}
\begin{enumerate}
\item For status, use \texttt{docker compose ps -a} and bounded logs from the
deployment directory. Check Rails health, successful init exit, search
readiness and destination probe; a running container is insufficient.
\item For routine shutdown use \texttt{docker compose stop}; for restart use
\texttt{docker compose start} with the retained containers. To apply changed
limits, validate first and use \texttt{docker compose up -d} for the affected
services. Preserve the private environment and volume names.
\item For a failed frontend, inspect nginx and Rails logs, restore the last
working non-secret configuration and matching private environment, validate,
start the affected services, and verify HTTPS plus authenticated ticket read.
Raise only a demonstrated failing resource limit; do not disable earlier
assignments. Recheck the complete required workflow after each adjustment.
\item Before a restore, follow the backup/restore instructions from the exact
recorded upstream revision and compatible application/database images. Preserve
an additional copy of current volumes, choose a verified matching backup,
stop application writers and stage the selected timestamped archives under
\path{/var/tmp/zammad/restore/} in the backup volume. The built-in restore
uses the latest filename timestamp; do not stage ambiguous backups or the
\texttt{latest\_zammad} links. Starting the stack triggers restoration and
other application services wait. Follow the matching guide's file-storage
cleanup requirements only after preserving current data and authorizing
destructive changes; none were performed here. Rebuild the search index and
verify database, attachments, authentication and a known ticket afterward.
The official Docker-specific restore guide is linked for operators
\cite{ZammadDockerRestoreA9}; this exercise did not execute a restore.
\item Never use \texttt{docker compose down -v}, remove the persistent volumes,
or run a broad Docker prune as part of this lab. A same-Droplet backup is not
protection against loss of the Droplet or its disk. Off-Droplet replication is
not claimed.
\end{enumerate}
\subsection{November 20 browser acceptance and indexing repair}
Customer autocomplete initially failed because the derived User search index
contained only one record. The official model methods
\texttt{User.search\_index\_reload(worker: 0)} and
\texttt{Ticket.search\_index\_reload(worker: 0)}, followed by
\texttt{SearchIndexBackend.refresh}, completed successfully using the existing
image and scheduler limits. The scheduler was paused during this one-time
operation and restarted afterward. Database records and volumes were retained.
The User index then contained six records and Customer autocomplete found
the existing Demo Customer. The saved JSON records the operation and exit status.
Logged in as \texttt{ta.agent}, the browser created ticket 71007, selected
Demo Customer, assigned TA Agent, retained normal priority, submitted an
internal note and then submitted a customer-visible resolution reply with
state closed. A separate Demo Customer login displayed the public reply and
closed state, with internal article 13 absent. This supplements, rather than
relabels, the earlier API-only CRUD test on ticket 71006. No SMTP delivery
was attempted. The earlier open, assigned and closed example tickets remain.
\begin{figure}[htbp]
\centering\includegraphics[width=\textwidth]{hw9_images/ta-browser-closed-reply.png}
\caption{TA Agent browser workflow: saved internal note, public resolution,
assigned owner, normal priority and closed state on ticket 71007.}
\label{fig:taBrowserClosedReply}
\end{figure}
\begin{figure}[htbp]
\centering\includegraphics[width=\textwidth]{hw9_images/customer-browser-closed-reply.png}
\caption{Demo Customer sees ticket 71007's public resolution and closed
state; the internal TA note is excluded from the conversation.}
\label{fig:customerBrowserClosedReply}
\end{figure}
\section{Deliverable coverage, final rechecks and remaining gaps}
\begin{longtable}{L{3.2cm}L{6.2cm}L{3.4cm}}
\caption{Required Chapter 7 deliverable audit}\label{Table:ZammadCoverage}\\
\toprule Required aspect & Saved evidence / chapter location & Verification boundary\\\midrule\endfirsthead
\toprule Required aspect & Saved evidence / chapter location & Verification boundary\\\midrule\endhead
Deployment / continuity & Revision, images, manifest, architecture, final HTTPS observations & All six HTTPS checks returned 200\\
Capacity and versions & Initial observations, user-confirmed Basic 1 vCPU/2 GB/50 GB at \$12/month, explicit limits & Full pre-install command baseline cannot be reconstructed\\
Persistence / backups & Named volume manifest, backup success, retained ticket/conversation & Database restore not tested\\
HTTPS / exposure & Certificate, redirect, blocked ports, private networks, cloud rules/attachment, privileged host audit and effective SSH & UFW inactive; cloud firewall restricts inbound ports\\
Accounts / TA & Agent-only TA/group access, API CRUD 71006, browser workflow 71007 & Browser create, assign, internal/public reply and close verified\\
Three ticket examples & Open 71002, assigned 71003, closed 71004; internal note/public reply & Browser visibility/isolation screenshots included\\
Engineering link & Issue 22 and ticket 71004 bidirectional link, resolution note, screenshot & Issue remains open\\
Monitoring & Existing job, three displayed panels, successful probe and host comparison & Authenticated Grafana screenshots included\\
Recovery graph & Corrected timestamps, source graph, Grafana recovery window, retained conversation & Two failed distinct scrapes and recovery verified\\
Manual / source & This chapter, Hosts, password hints, history, AI log, sanitized configuration & Versioned source; PDF build identity in the build stamp\\\bottomrule
\end{longtable}
Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

+8 -7
View File
@@ -49,17 +49,17 @@
\definecolor{devopsLightBlue}{RGB}{232,240,247}
% Replace these values for each assignment.
\newcommand{\AssignmentTitle}{Secure Delivery and Rollback}
\newcommand{\AssignmentNumber}{8}
\newcommand{\DocumentVersion}{1.10.1}
\newcommand{\DocumentStatus}{Final Draft}
\newcommand{\AssignmentTitle}{Support Ticket Management with Zammad}
\newcommand{\AssignmentNumber}{9}
\newcommand{\DocumentVersion}{1.11.1}
\newcommand{\DocumentStatus}{Final submission}
\newcommand{\CourseNumber}{SSW 590}
\newcommand{\CourseName}{DevOps Principles and Practices}
\newcommand{\Instructor}{Darian Muresan}
\newcommand{\StudentNames}{Nicholas Kogut\\Gowri Das Lovely}
\newcommand{\PDFAuthors}{Nicholas Kogut and Gowri Das Lovely}
\newcommand{\Organization}{Stevens Institute of Technology}
\newcommand{\DocumentDate}{November 8, 2026}
\newcommand{\DocumentDate}{November 20, 2026}
\newcommand{\DueDate}{Not specified}
% Generated only in the build workspace; never committed by the workflow.
\newcommand{\BuildSuffix}{+local.unverified}
@@ -73,8 +73,8 @@
pdftitle={\CourseNumber\ --- Assignment \AssignmentNumber: \AssignmentTitle},
pdfauthor={\PDFAuthors},
pdfcreator={Darian Muresan, Ph.D., with OpenAI Codex and Anthropic Claude Code},
pdfsubject={SSW 590 Assignment 8 secure delivery and rollback},
pdfkeywords={DevOps, delivery, security, Ansible, Jenkins, rollback, monitoring}
pdfsubject={SSW 590 Assignment 9 support ticket management with Zammad},
pdfkeywords={DevOps, Zammad, support tickets, HTTPS, monitoring, persistence}
}
\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
@@ -159,6 +159,7 @@
\include{devopsJenkinsContinuousIntegration}
\include{devopsSREMonitoringReliability}
\include{devopsSecureDeliveryRollback}
\include{devopsSupportTicketManagement}
\bibliographystyle{IEEEtran}
\bibliography{devopsReferences}
+11
View File
@@ -0,0 +1,11 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "fixture-model",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 24,
"output_tokens": 8,
"schema_version": 1,
"mode": "fixture"
}
+1
View File
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,3 @@
print("hello")
@@ -0,0 +1,9 @@
review_exit=0
memory_peak=234405888
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=250000000 swap=250000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:50:52.216343Z",
"finished_at": "2026-11-27T02:50:55.608664Z",
"elapsed_seconds": 3.392288,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"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": 23,
"sampler_total_tokens": 28,
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
"runtime_log_counter_lines": [
"0.01.863.495 I common_perf_print: samplers time = 0.70 ms / 28 tokens",
"0.01.863.506 I common_perf_print: prompt eval time = 373.99 ms / 23 tokens ( 16.26 ms per token, 61.50 tokens per second)"
]
}
@@ -0,0 +1 @@
image_id=sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1 repo_digests=["python@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1"]
@@ -0,0 +1,2 @@
f68203bfb98b1b1e8c64fac75fab10c4e36acac081609573b4df0fcc19c90dd9 /tmp/ssw590-member1-runtime/SmolLM2-135M-Instruct.Q4_0.gguf
c52fdce909b3e55b2e763e9a8b08b2b006281ebc5b5c6c8ea91e5d2075c8fd27 /tmp/ssw590-member1-runtime/llama-b12785-bin-ubuntu-x64.tar.gz
@@ -0,0 +1,16 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": null,
"status": "error",
"summary": "FileNotFoundError: review could not complete",
"diff": "",
"input_tokens": null,
"output_tokens": null,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:54:29.892888Z",
"finished_at": "2026-11-27T02:54:29.902307Z",
"elapsed_seconds": 0.009205,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"diagnostic": "FileNotFoundError: model file missing"
}
@@ -0,0 +1,3 @@
print("hello")
@@ -0,0 +1,9 @@
review_exit=0
memory_peak=252751872
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=400000000 swap=400000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:49:21.951797Z",
"finished_at": "2026-11-27T02:49:23.813683Z",
"elapsed_seconds": 1.861456,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"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": 23,
"sampler_total_tokens": 28,
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
"runtime_log_counter_lines": [
"0.01.206.980 I common_perf_print: samplers time = 0.30 ms / 28 tokens",
"0.01.207.091 I common_perf_print: prompt eval time = 162.90 ms / 23 tokens ( 7.08 ms per token, 141.19 tokens per second)"
]
}
@@ -0,0 +1,35 @@
Loading model...
▄▄ ▄▄
██ ██
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
██ ██
▀▀ ▀▀
build : b12785-55d482814
model : /tmp/ssw590-member1-runtime/SmolLM2-135M-Instruct.Q4_0.gguf
ftype : Q4_0
modalities : text
available commands:
/exit or Ctrl+C stop or exit
/regen regenerate the last response
/clear clear the chat history
/read <file> add a text file
/glob <pattern> add text files using globbing pattern
> Repair the syntax of this Python line. Return only the corrected Python line, without markdown. Preserve the string and all behavior. Source: print("hello"
```python
def fix_s(s):
return s.replace("hello", "world")
print
Exiting...
@@ -0,0 +1,23 @@
Command being timed: "/tmp/ssw590-member1-runtime/llama-b12785/llama-cli -m /tmp/ssw590-member1-runtime/SmolLM2-135M-Instruct.Q4_0.gguf -p Repair the syntax of this Python line. Return only the corrected Python line, without markdown. Preserve the string and all behavior. Source: print("hello" -n 24 -c 256 -t 1 -tb 1 --temp 0 --seed 1 --single-turn --simple-io --no-display-prompt --no-warmup --cache-ram 0 --no-show-timings"
User time (seconds): 1.63
System time (seconds): 0.17
Percent of CPU this job got: 51%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:03.47
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 199624
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 103
Minor (reclaiming a frame) page faults: 26576
Voluntary context switches: 586
Involuntary context switches: 1859
Swaps: 0
File system inputs: 208248
File system outputs: 8
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,9 @@
review_exit=0
memory_peak=261754880
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=400000000 swap=400000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:47:00.387748Z",
"finished_at": "2026-11-27T02:47:08.610118Z",
"elapsed_seconds": 8.222346,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
"raw_response_file": "raw_response.txt",
"runtime_response_file": "runtime_response.json"
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,17 @@
{
"content": " print(\"hello\")",
"timings": {
"cache_n": 0,
"prompt_n": 23,
"prompt_ms": 237.676,
"prompt_per_token_ms": 10.333739130434783,
"prompt_per_second": 96.77039330853769,
"predicted_n": 5,
"predicted_ms": 164.39,
"predicted_per_token_ms": 41.0975,
"predicted_per_second": 24.332380315104327
},
"tokens_evaluated": 23,
"tokens_predicted": 5,
"stop": true
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,9 @@
REVIEW_EXIT=0
166805504
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=250000000 swap=250000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:42:25.211366Z",
"finished_at": "2026-11-27T02:42:27.997506Z",
"elapsed_seconds": 2.786359,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
"raw_response_file": "raw_response.txt",
"runtime_response_file": "runtime_response.json"
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,17 @@
{
"content": " print(\"hello\")",
"timings": {
"cache_n": 0,
"prompt_n": 23,
"prompt_ms": 149.368,
"prompt_per_token_ms": 6.494260869565217,
"prompt_per_second": 153.9821112955921,
"predicted_n": 5,
"predicted_ms": 94.937,
"predicted_per_token_ms": 23.73425,
"predicted_per_second": 42.13320412484069
},
"tokens_evaluated": 23,
"tokens_predicted": 5,
"stop": true
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,9 @@
review_exit=0
158756864
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=250000000 swap=250000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:42:50.812903Z",
"finished_at": "2026-11-27T02:42:53.550712Z",
"elapsed_seconds": 2.737334,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
"raw_response_file": "raw_response.txt",
"runtime_response_file": "runtime_response.json"
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,17 @@
{
"content": " print(\"hello\")",
"timings": {
"cache_n": 0,
"prompt_n": 23,
"prompt_ms": 178.552,
"prompt_per_token_ms": 7.7631304347826084,
"prompt_per_second": 128.81401496482817,
"predicted_n": 5,
"predicted_ms": 111.208,
"predicted_per_token_ms": 27.802,
"predicted_per_second": 35.968635349974825
},
"tokens_evaluated": 23,
"tokens_predicted": 5,
"stop": true
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,9 @@
review_exit=0
124366848
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=250000000 swap=250000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:42:54.996583Z",
"finished_at": "2026-11-27T02:43:00.428698Z",
"elapsed_seconds": 5.432061,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
"raw_response_file": "raw_response.txt",
"runtime_response_file": "runtime_response.json"
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,17 @@
{
"content": " print(\"hello\")",
"timings": {
"cache_n": 0,
"prompt_n": 23,
"prompt_ms": 628.636,
"prompt_per_token_ms": 27.331999999999997,
"prompt_per_second": 36.587150592711836,
"predicted_n": 5,
"predicted_ms": 125.677,
"predicted_per_token_ms": 31.41925,
"predicted_per_second": 31.82762160140678
},
"tokens_evaluated": 23,
"tokens_predicted": 5,
"stop": true
}
@@ -0,0 +1,3 @@
total used free shared buff/cache available
Mem: 1967 1519 74 6 546 448
Swap: 2047 1989 58
@@ -0,0 +1 @@
exit=0 oom=false limit=250000000 swap=250000000
@@ -0,0 +1,5 @@
review_input_tokens_available{mode="live"} 1
review_input_tokens{mode="live"} 23
review_output_tokens_available{mode="live"} 1
review_output_tokens{mode="live"} 5
review_completed_timestamp_seconds{mode="live"} 1795749111
@@ -0,0 +1,3 @@
print("hello")
@@ -0,0 +1,15 @@
{
"attempt": "1",
"jenkins_build": "local",
"mode": "live",
"payload_sha256": {
"README.txt": "147f950ba0b4bff5177d637af9f5922e2c4fa98d677c703f8728307c85a6ef64",
"report-1.0.1.pdf": "befd6de9a1c70ec506c7eea2267f2d936fd498b5bd84711960709686fec005b0",
"review.json": "70a73a447cda74626729377cf71c13add1427f37bc1467a0cc214dc84bc97536",
"reviewed.py": "b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180"
},
"run_id": "1",
"schema_version": 1,
"source_commit": "a40ffe1982c162e5f7cfaa204bb6e0e20c37010e",
"version": "1.0.1"
}
@@ -0,0 +1,8 @@
review_exit=0
241446912
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
@@ -0,0 +1,18 @@
{
"source_commit": "a40ffe1982c162e5f7cfaa204bb6e0e20c37010e",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T03:08:24.826807Z",
"finished_at": "2026-11-27T03:08:27.187495Z",
"elapsed_seconds": 2.360665,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
"raw_response_file": "raw_response.txt",
"runtime_response_file": "runtime_response.json"
}
@@ -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": 23,
"sampler_total_tokens": 28,
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
"runtime_log_counter_lines": [
"0.01.607.636 I common_perf_print: samplers time = 1.02 ms / 28 tokens",
"0.01.607.649 I common_perf_print: prompt eval time = 511.47 ms / 23 tokens ( 22.24 ms per token, 44.97 tokens per second)"
]
}
@@ -0,0 +1,27 @@
{
"kind": "local integration dry run; not Gitea Actions or Jenkins",
"integration_commit": "a40ffe1982c162e5f7cfaa204bb6e0e20c37010e",
"member1_commit": "edd87d6b7fef7509e155282ff29350881c0eb9ca",
"member2_commit": "4feb58810a90baf361bfd5be7fee376d22bfcd80",
"member2_temporary_fix": "Convert failing Member 1 smoke subprocess return code to ValueError in ci/final_project.py; not committed to Member 2 branch",
"run_id": "1 (synthetic local)",
"attempt": "1",
"version": "1.0.1 (isolated state)",
"review_status": "corrected",
"input_tokens": 23,
"output_tokens": 5,
"elapsed_seconds": 2.360665,
"memory_limit_bytes": 250000000,
"memory_peak_bytes": 241446912,
"oom_kill": 0,
"unit_tests": {
"member1": 19,
"member2": 19,
"image": "sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1"
},
"pdf_pages": 170,
"zip_sha256": "995ce3ee25bf8df9ce171efa2072af2f2836f4dfb938965f819e7bf6eaec9c0a",
"zip_payload_hashes_verified": 4,
"extracted_program_stdout": "hello\\n",
"metrics_note": "Formatted locally; not scraped by Prometheus or shown in Grafana"
}
@@ -0,0 +1,4 @@
{
"result": "passed",
"reviewed_sha256": "b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180"
}
@@ -0,0 +1 @@
995ce3ee25bf8df9ce171efa2072af2f2836f4dfb938965f819e7bf6eaec9c0a ssw590-live-1.0.1.zip
@@ -0,0 +1,55 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"method": "Docker cgroup v2 memory.peak after private model copy, no swap, whole reviewer and llama-completion process tree; includes tmpfs model pages and cgroup-charged file cache",
"memory_target_bytes": 250000000,
"records": [
{
"trial": 1,
"mode": "live",
"status": "corrected",
"input_tokens": 23,
"output_tokens": 5,
"elapsed_seconds": 3.848678,
"memory_peak_bytes": 236150784,
"cgroup_limit_bytes": 400000000,
"oom_kill": 0,
"model_copy": "private tmpfs within cgroup"
},
{
"trial": 2,
"mode": "live",
"status": "corrected",
"input_tokens": 23,
"output_tokens": 5,
"elapsed_seconds": 3.94148,
"memory_peak_bytes": 233103360,
"cgroup_limit_bytes": 400000000,
"oom_kill": 0,
"model_copy": "private tmpfs within cgroup"
},
{
"trial": 3,
"mode": "live",
"status": "corrected",
"input_tokens": 23,
"output_tokens": 5,
"elapsed_seconds": 1.812362,
"memory_peak_bytes": 238735360,
"cgroup_limit_bytes": 400000000,
"oom_kill": 0,
"model_copy": "private tmpfs within cgroup"
},
{
"trial": "acceptance-250m",
"mode": "live",
"status": "corrected",
"input_tokens": 23,
"output_tokens": 5,
"elapsed_seconds": 3.392288,
"memory_peak_bytes": 234405888,
"cgroup_limit_bytes": 250000000,
"oom_kill": 0,
"model_copy": "private tmpfs within cgroup"
}
]
}
@@ -0,0 +1,200 @@
{
"source": "existing local Prometheus API",
"window_start_utc": "2026-11-27T02:48:00.836093+00:00",
"window_end_utc": "2026-11-27T02:52:31.906785+00:00",
"step_seconds": 30,
"trial_intervals_utc": [
{
"started_at": "2026-11-27T02:50:00.836093Z",
"finished_at": "2026-11-27T02:50:04.684844Z"
},
{
"started_at": "2026-11-27T02:50:23.948898Z",
"finished_at": "2026-11-27T02:50:27.890688Z"
},
{
"started_at": "2026-11-27T02:50:30.094374Z",
"finished_at": "2026-11-27T02:50:31.906785Z"
}
],
"queries": {
"node_up": {
"promql": "up{job=\"node\"}",
"response": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node"
},
"values": [
[
1795747680.836,
"1"
],
[
1795747710.836,
"1"
],
[
1795747740.836,
"1"
],
[
1795747770.836,
"1"
],
[
1795747800.836,
"1"
],
[
1795747830.836,
"1"
],
[
1795747860.836,
"1"
],
[
1795747890.836,
"1"
],
[
1795747920.836,
"1"
],
[
1795747950.836,
"1"
]
]
}
]
}
}
},
"host_cpu_percent": {
"promql": "100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[2m])))",
"response": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"instance": "node-exporter:9100"
},
"values": [
[
1795747680.836,
"63.90000000001035"
],
[
1795747710.836,
"72.81111111114215"
],
[
1795747740.836,
"59.322222222237755"
],
[
1795747770.836,
"58.71111111113958"
],
[
1795747800.836,
"64.36666666665892"
],
[
1795747830.836,
"75.31111111114215"
],
[
1795747860.836,
"80.19999999999224"
],
[
1795747890.836,
"65.65555555551934"
],
[
1795747920.836,
"58.57777777774673"
],
[
1795747950.836,
"52.699999999992244"
]
]
}
]
}
}
},
"host_mem_available_bytes": {
"promql": "node_memory_MemAvailable_bytes{job=\"node\"}",
"response": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node"
},
"values": [
[
1795747680.836,
"449515520"
],
[
1795747710.836,
"383606784"
],
[
1795747740.836,
"425607168"
],
[
1795747770.836,
"352559104"
],
[
1795747800.836,
"377438208"
],
[
1795747830.836,
"502824960"
],
[
1795747860.836,
"522153984"
],
[
1795747890.836,
"498524160"
],
[
1795747920.836,
"513839104"
],
[
1795747950.836,
"531513344"
]
]
}
]
}
}
}
}
}
@@ -0,0 +1,3 @@
print("hello")
@@ -0,0 +1,9 @@
review_exit=0
memory_peak=236150784
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=400000000 swap=400000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:50:00.836093Z",
"finished_at": "2026-11-27T02:50:04.684844Z",
"elapsed_seconds": 3.848678,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"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": 23,
"sampler_total_tokens": 28,
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
"runtime_log_counter_lines": [
"0.02.939.758 I common_perf_print: samplers time = 1.72 ms / 28 tokens",
"0.02.940.259 I common_perf_print: prompt eval time = 542.08 ms / 23 tokens ( 23.57 ms per token, 42.43 tokens per second)"
]
}
@@ -0,0 +1,3 @@
print("hello")
@@ -0,0 +1,9 @@
review_exit=0
memory_peak=233103360
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=400000000 swap=400000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:50:23.948898Z",
"finished_at": "2026-11-27T02:50:27.890688Z",
"elapsed_seconds": 3.94148,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"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": 23,
"sampler_total_tokens": 28,
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
"runtime_log_counter_lines": [
"0.01.649.391 I common_perf_print: samplers time = 0.46 ms / 28 tokens",
"0.01.649.465 I common_perf_print: prompt eval time = 232.25 ms / 23 tokens ( 10.10 ms per token, 99.03 tokens per second)"
]
}
@@ -0,0 +1,3 @@
print("hello")
@@ -0,0 +1,9 @@
review_exit=0
memory_peak=238735360
low 0
high 0
max 0
oom 0
oom_kill 0
oom_group_kill 0
container_exit=0 oom=false limit=400000000 swap=400000000
@@ -0,0 +1,18 @@
{
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T02:50:30.094374Z",
"finished_at": "2026-11-27T02:50:31.906785Z",
"elapsed_seconds": 1.812362,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"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": 23,
"sampler_total_tokens": 28,
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
"runtime_log_counter_lines": [
"0.01.081.421 I common_perf_print: samplers time = 0.45 ms / 28 tokens",
"0.01.081.431 I common_perf_print: prompt eval time = 199.34 ms / 23 tokens ( 8.67 ms per token, 115.38 tokens per second)"
]
}
+35
View File
@@ -0,0 +1,35 @@
# Member 1 to Member 2 integration check
Checked against Member 2 branch `feature/final-ci-demo` at `4feb58810a90baf361bfd5be7fee376d22bfcd80` on 2026-11-27 UTC. The recorded real review under `evidence/acceptance-250m/` was passed through that branch's unmodified `ci/final_project.py` in a temporary local directory.
| Gate | Result |
| --- | --- |
| `bundle --mode live` | Passed; canonical ZIP created |
| `verify --mode live` | Passed; exact identity and hashes accepted |
| `test` | Passed; reviewed file SHA-256 `b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180` |
| `metrics` | Formatted input availability 1/count 23, output availability 1/count 5 |
The compatibility run used synthetic run ID `1`, attempt `1`, and a supplied timestamp. It did not run Gitea Actions, Jenkins, Prometheus scraping, Grafana, or release publication. It must not be presented as the live end-to-end demo or monitoring evidence.
Integration points on Member 2's branch:
1. `.gitea/workflows/final-project.yml` currently invokes `ci/fixtures/reviewer_stub.py`, labels the bundle `fixture`, and triggers only on `feature/final-ci-demo` and `final-project-demo`. Replace that step in Member 2's owned workflow with `python3 -m reviewer ...` and `bundle --mode live` after merging this reviewer. The Actions runner needs the locked model, runtime, `libgomp1`, and a fresh output directory. Run the model checksum and full workload memory check there before claiming the 250,000,000-byte target for CI.
2. `Jenkinsfile.final-project` currently offers only `MODE=fixture`. Member 2 should expose `live` only after the Actions live artifact and runtime check succeed. The existing downstream validator already accepts `mode=live` and rejects fixture metadata under that mode.
3. The metrics formatter accepts our live review counts. Member 2 owns writing those metrics to the deployed collector path and verifying actual Prometheus samples and Grafana panels. Use the real completed timestamp from the Actions run, not the synthetic local value.
4. The existing `final-project-fixture` Jenkins job points at `feature/final-ci-demo`; a live run needs an integrated branch/job revision and exact SHA/run/attempt pairing. Preserve the immutable release state volume and agree the live version baseline before publishing.
No shared contract change was needed. The reviewer emits the seven required fields, `mode=live`, and measured integer token counts. Its `raw_response.txt` and `runtime_response.json` are local evidence files; Member 2's four-file bundle intentionally packages only `reviewed.py`, `review.json`, `bundle.json`, and `SHA256SUMS`.
## Combined-check finding
The Member 1 patch applied cleanly to a temporary checkout of Member 2's published branch. Member 1's 19 tests passed. Member 2's local suite initially had one error: its `test_review` invokes the now-present `tests/smoke_demo.py` with `check=True`; when that script rejects a deliberately bad reviewed file, Python raises `CalledProcessError`, while `ci/tests/test_pipeline.py::test_runtime_failure_reaches_smoke` expects `ValueError` containing `smoke`. This is an exception-type mismatch in Member 2's owned `ci/final_project.py`, not a release success. The failure still blocks publication as intended.
A temporary proof changed the invocation in `test_review` to capture the return code and raise `ValueError('Member 1 smoke test failed')` on nonzero. With that change, all 19 Member 2 local tests passed, including the smoke-failure test; five TeX/image-dependent cases were skipped outside the pinned image. Member 2 should make and commit that minimal change in their owned file before the combined branch CI run. No shared reviewer schema or exit-code change is required.
## Pinned-image real-model local dry run
An exact temporary integration commit `a40ffe1982c162e5f7cfaa204bb6e0e20c37010e` combined Member 2's `4feb5881...`, Member 1's `edd87d6...`, and the temporary smoke exception fix described above. Both 19-test suites passed in Member 2's pinned TeX image (`sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1`). The real reviewer ran in the pinned Python image under a 250,000,000-byte Docker hard cap: corrected, 23 input / 5 output tokens, 2.360665 seconds, 241,446,912-byte cgroup peak, no OOM. Its raw output and resource records are in `evidence/local-integration-dryrun/`.
The unmodified Member 2 bundle, verify, PDF build, smoke, publish and metrics commands then passed locally from a self-contained exact-SHA clone. The PDF had 170 pages. An isolated `1.0.1` local ZIP had SHA-256 `995ce3ee25bf8df9ce171efa2072af2f2836f4dfb938965f819e7bf6eaec9c0a`; its companion checksum and four payload hashes verified, and extracted `reviewed.py` printed `hello`. The ZIP, full local logs and README are under the user-facing `outputs/local-real-integration-a40ffe1/` directory on this host. The first PDF attempt failed because a Git worktree pointer was outside the container; a self-contained clone fixed the test setup.
This is a local dry run with synthetic Actions run ID `1`, `jenkins_build=local`, isolated version state, and local metric formatting. It is not a Gitea Actions/Jenkins run, deployed `1.0.1` release, or Prometheus/Grafana token evidence. Member 2's fixture `1.0.3` release remains the last reported deployed fixture result.
+36
View File
@@ -0,0 +1,36 @@
# Proposed final-project metrics and Grafana panels
**Status:** proposal only. Member 2 owns deployed `monitoring/` changes and must verify the actual scrape/collector configuration. The repository currently scrapes the `node` job every 30 seconds and Node Exporter enables only CPU, meminfo and filesystem collectors. No live review-token panel or textfile collector was deployed by Member 1.
## Ingestion contract
After exact bundle identity/hash validation, a trusted host-side step may atomically replace one `.prom` textfile under a dedicated read-only Node Exporter mount. Enable `--collector.textfile` and `--collector.textfile.directory=...` explicitly. Do not mount a writable host path into the Actions job. Retain the completed sample for at least two 30-second scrapes, then verify `up{job="node"} == 1`, `node_textfile_scrape_error == 0`, the sample timestamp and the query result. Keep source SHA/run/build links in an annotation or evidence manifest, never as metric labels.
| Metric | Type/unit | Meaning |
| --- | --- | --- |
| `review_input_tokens{mode="live"}` | gauge, tokens | Exact prompt tokens from the pinned runtime. Omit if unknown. |
| `review_output_tokens{mode="live"}` | gauge, tokens | Exact generated tokens, including any stop token counted by runtime. Omit if unknown. |
| `review_token_counts_available{mode="live"}` | gauge, 0/1 | 1 only when both counters were measured. |
| `review_duration_seconds{mode="live"}` | gauge, seconds | `review.json` elapsed time for the last completed run. |
| `review_memory_peak_bytes{mode="live"}` | gauge, bytes | Whole review cgroup `memory.peak`; omit if absent. |
| `review_memory_limit_bytes{mode="live"}` | gauge, bytes | Actual cgroup hard limit; omit if absent. |
| `review_completed_timestamp_seconds{mode="live"}` | gauge, Unix seconds | UTC completion timestamp. |
| `review_status_code{mode="live"}` | gauge, 0/2/3 | 0 success, 2 rejected, 3 operational error. |
Fixture mode is a separate label value and must be filtered out of the final live dashboard. A bypassed valid file should use `mode="bypass"` with absent token gauges and `review_token_counts_available=0`. Do not turn `null` into zero input or output tokens. If a rejected/error run has no model counts, publish availability 0 and status, not a fabricated count.
## Panels and queries
- Input tokens: `review_input_tokens{mode="live"}`.
- Output tokens: `review_output_tokens{mode="live"}`.
- Duration: `review_duration_seconds{mode="live"}`.
- Peak versus limit: `review_memory_peak_bytes{mode="live"}` and `review_memory_limit_bytes{mode="live"}`.
- Completion freshness: `time() - review_completed_timestamp_seconds{mode="live"}`.
- Host CPU: `100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])))`.
- Host available memory: `node_memory_MemAvailable_bytes{job="node"}`.
Set dashboard timezone to `America/New_York`; retain UTC machine timestamps. Save a fixed before/during/after time window, raw Prometheus query responses, and screenshots. Annotate review start/end and Jenkins build start/end with SHA and run links. Host CPU/memory include pricing, Zammad and all other workloads; they cannot by themselves establish model-only memory. A two-minute CPU rate smooths a short run, and completed token gauges may appear only after inference ends. No fabricated load spike or fixture count should be shown as live evidence.
## Read-only host evidence captured by Member 1
`evidence/prometheus-host-window.json` contains actual range-query responses from the existing Prometheus for **2026-11-27 02:48:00–02:52:31 UTC**, covering the three final real-model trials. At 30-second steps it recorded ten samples each: `up{job="node"}` was 1 throughout; host CPU query values ranged about 52.7–80.2%; host `MemAvailable` ranged 352,559,104–531,513,344 bytes. These are shared-host observations, not a model-only load attribution. No token metric was deployed or scraped; token evidence is in each live `review.json` and runtime response. Member 2 should capture before/during/after Grafana screenshots and the final end-to-end run window after integrating textfile metrics.
+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.

Some files were not shown because too many files have changed in this diff Show More