Document Assignment 7 SRE deployment, reliability evidence, and Grafana registry
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good

This commit is contained in:
Codex (authorized Assignment 5 implementation)
2026-10-28 18:38:41 +00:00
parent b42689f02f
commit ced96c8a2b
76 changed files with 6856 additions and 42 deletions
+37 -10
View File
@@ -120,11 +120,13 @@ records checkout, latexmk passes, PDF validation and upload. See also the
\section{PDF version traceability}
\phantomsection\label{GlossaryRef:buildidentity}\index{build identity}
The human-maintained version stays \texttt{1.7.1}. The helper writes an
The Assignment 5 builds below used human version \texttt{1.7.1};
the current manual is version \texttt{1.8.2}. The helper writes an
uncommitted \path{build-metadata.tex} with a suffix
\texttt{+build.RUN.SHORTSHA.attempt.ATTEMPT}, full Git commit, run number and
clickable run URL. The title and \hyperref[Build:Identity]{Build Identity page}
show the values of this PDF. Metadata is produced in the temporary workspace;
clickable run URL. The downloaded workflow PDFs visibly contain that run identity. The
current \hyperref[Build:Identity]{Build Identity page} identifies this edition
separately; a local review build is not an Actions publication. Metadata is produced in the temporary workspace;
no workflow step commits or pushes generated version changes. This avoids a
push/build loop. A local compile instead says \texttt{+local.unverified} and
must not be presented as an Actions artifact. The manifest correlates full
@@ -133,9 +135,9 @@ actions are pinned to tested commits, not floating tags~\cite{GiteaActionsCompar
\section{Downloadable artifact}
\phantomsection\label{GlossaryRef:buildartifact}\index{artifact!retention}
On success, the artifact name is
For the historical Assignment 5 builds, the artifact name is
\texttt{assignment5-1.7.1-run-RUN-FULLSHA}; it contains the PDF and JSON
manifest. Open the matching \href{\BuildRunURL}{Actions run}, select that named
manifest. Open the matching \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4}{recorded successful run 4}, select that named
artifact, download its ZIP and extract \texttt{main.pdf}. Retention is
explicitly requested as 14 days, rather than relying on the server default;
expiration enforcement has not yet been observed. Keep the submitted PDF
@@ -149,7 +151,15 @@ are available from the run's named download link even though the newer REST
artifact-list endpoint returned no entries in the preflight. The direct
preflight artifact download was verified, including ZIP checksum and contents.
Manual artifact downloads and visible PDF checks are recorded below.
\href{\BuildRunURL/artifacts/assignment5-1.7.1-run-\BuildRun-\BuildCommit}{Download the artifact for this PDF}.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4/artifacts/assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a}{Download the recorded run-4 PDF artifact}.
The current Assignment 6 workflow uses artifact name
\texttt{assignment6-1.8.2-run-RUN-FULLSHA}. For this edition, use
\href{\BuildRunURL}{the matching Actions publication run} and
\href{\BuildRunURL/artifacts/assignment6-\DocumentVersion-run-\BuildRun-\BuildCommit}{its named PDF and manifest artifact}.
The Build Identity page supplies the exact commit and run number injected by
that run. Extract \texttt{main.pdf} from the ZIP and compare its checksum to
\texttt{build-manifest.json}; the artifact has the same 14-day retention.
\section{Change, failure, and repair evidence}
% BEGIN BUILD EVIDENCE
@@ -179,14 +189,18 @@ Visible version: \path{1.7.1+build.6.a4737f1.attempt.1}; 72 pages. The \href{htt
The artifact name for each successful row is \texttt{assignment5-1.7.1-run-} followed by the run number, a hyphen and the full commit above. The run links and artifact links therefore identify the same source revision; version suffixes use its first seven hex digits. Full machine-readable records and downloaded PDF checksums are retained in \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/manual-build-evidence.json}{the versioned evidence manifest}. The controlled error was confined to the validation branch and its repair restored the exact source content of the second successful build.
Visual inspection of the downloaded run-4 chapter identified overlapping architecture labels; the final source corrects the diagram. Final publication uses the current \hyperref[Build:Identity]{Build Identity} and its linked run. Download verification of that final artifact is performed after publication, without editing the PDF or creating an automatic source commit loop.
Visual inspection of the downloaded run-4 chapter identified overlapping architecture labels; the final source corrects the diagram. Each Actions publication uses its own visible Build Identity and matching run.
The current review edition must not inherit the identity of an earlier artifact. Download verification of that final artifact is performed after publication, without editing the PDF or creating an automatic source commit loop.
% END BUILD EVIDENCE
\section{Runner and secret boundary}
\index{runner!security}\index{Docker socket}
The repository's Owners team may change workflows; preflight found no direct
collaborators and no branch-protection rules. Peer review is a team procedure,
not an enforced gate for this assignment. Only trusted team pushes to the
The repository's Owners team may change workflows. The historical Assignment 5
preflight found no direct collaborators and no branch-protection rules; peer
review was then a team procedure rather than an enforced gate. This is not
the current policy: Assignment 6 subsequently enforced the required Jenkins
status check and peer approval on main, with bypass disabled, as documented
in \ChapterRef{JenkinsContinuousIntegration}. Only trusted team pushes to the
selected branches execute. Untrusted pull-request triggers are not enabled.
The runner controls the host Docker socket and therefore has powerful host
access; containers are not a security boundary against a malicious trusted
@@ -235,3 +249,16 @@ this leaves Gitea and the grading apps running. On retirement, remove runner
ID 1 through repository settings, revoke temporary credentials, and remove
only identified runner/job storage after preserving submission evidence.
Do not prune all Docker storage on this shared host.
\subsection*{Instruction Section 3.5 evidence coverage}
All eight requested evidence areas are retained in Sections 10.1--10.8:
source/trigger links and ports; registered runner and assigned run 2;
toolchain, commands and successful compilation log; generated commit/run
identity; named artifacts and download verification; successive builds 3/4,
failed run 5 and repaired run 6; runner/token boundary; and document controls,
registry hints and troubleshooting. These are dated historical observations.
The Build Identity page distinguishes an Actions publication from a local
review compile. Section 3.5 requires the final submitted PDF to be downloaded
from a successful workflow; use the current run and artifact links in
Section 10.5, rather than assigning an earlier artifact's identity to this
edition. Preserve the downloaded PDF outside the 14-day artifact window.