Compare commits

..
Author SHA1 Message Date
nkogut 1d20412bd6 Update demo.py to address #25
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Failing after 1m12s
2026-11-28 22:11:48 +00:00
Codex Agent e736799925 Fix Jenkins metrics helper workspace transport
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Successful in 1m27s
2026-11-28 21:55:13 +00:00
Codex Agent 32a3c6f3f0 Restore demo guide and start review with visible model evidence
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Successful in 1m12s
2026-11-28 21:30:50 +00:00
Codex Agent 25167307e8 Show accepted model repair in Actions logs [skip ci] 2026-11-28 21:28:54 +00:00
Codex Agent 8a8efe961b Document final demo implementation and evidence [skip ci] 2026-11-28 21:28:54 +00:00
nkogut d8cb38616a Update demo/demo.py
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Successful in 55s
2026-11-28 21:17:51 +00:00
nkogut 10db5a6adf Delete demo/README.md
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Failing after 1m8s
2026-11-28 21:17:37 +00:00
Codex Agent 3ad7836e5b Focus demo CI on reviewed Python smoke test [skip ci]
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-28 21:14:17 +00:00
Codex Agent d118a677e0 Simplify live dashboard and warn on memory target [skip ci]
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-28 20:58:48 +00:00
Codex Agent 1bb4e0a9dd Prepare versioned live syntax demo [skip ci]
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-28 20:44:52 +00:00
nkogut 8fac256aac docs(demo)
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Successful in 1m11s
2026-11-28 20:13:06 +00:00
Codex 0e2df635d1 Record verified live pipeline evidence for #24 [skip ci]
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-27 19:27:38 +00:00
Codex c735c8c693 Use compatible pinned model image and demonstrate syntax repair for #24
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Successful in 1m17s
2026-11-27 19:15:48 +00:00
Codex 0311260ddf Account for kernel page rounding in measured memory cap
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Failing after 1m24s
2026-11-27 19:10:35 +00:00
Codex 9275fcdcae Integrate real reviewer with measured Actions execution and live Jenkins pipeline
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Failing after 1m24s
2026-11-27 19:08:59 +00:00
Codex ad69828bc5 Merge branch 'feature/final-ai-review' of https://myfileagent.tech/myfileagent/myfileagent-pipeline into feature/final-ci-demo 2026-11-27 19:03:37 +00:00
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
Codex 4feb58810a Preserve technical verification evidence and remaining integration checkpoint
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 58s
2026-11-26 16:57:33 +00:00
Codex 0ec7cee5b9 Verify Jenkins release, deploy metrics collector, and test compiler failure
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 1m25s
2026-11-26 16:48:06 +00:00
Codex 0e7ade75b9 Define shared review contract and generate run data in automated PDF
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 1m8s
2026-11-25 20:15:37 +00:00
Codex 1fa79546e6 Defer report authoring and retain technical build integration 2026-11-25 20:12:07 +00:00
Codex e8d4653abf Verify immutable release gates and document fixture handoff
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 1m9s
2026-11-25 20:11:06 +00:00
Codex 5dc81e0b57 Reuse existing Jenkins credential and trust isolated build checkout
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 49s
2026-11-25 20:07:44 +00:00
Codex bed90200d2 Build Member 2 fixture review-to-release pipeline
Final project review (fixture) / review (push) Successful in 1m7s
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-25 20:03:12 +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
jenkins-ci 6e2873cc6b Wrap exporter hostname in host registry
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m46s
2026-11-08 14:13:52 -05:00
jenkins-ci 073c176cd7 Wrap application hostnames in host registry 2026-11-08 14:13:01 -05:00
jenkins-ci 3c50432eb8 Document release evidence with screenshots and correct version
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 3m21s
2026-11-08 13:55:59 -05:00
jenkins-ci 436454548a Clarify architecture diagram connections
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m54s
2026-11-08 11:43:55 -05:00
jenkins-ci e5865202ab Complete assignment 8 evidence and architecture documentation 2026-11-08 11:42:19 -05:00
glovely 48704e0eff Merge pull request 'Document secure delivery evidence and production monitoring' (#21) from assignment8/documentation into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m47s
Reviewed-on: #21
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-08 16:24:42 +00:00
nkogut 4fa2bed7ba Update handoff with review and Grafana status
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 16:20:36 +00:00
nkogut b31a247244 Record verified production health dashboard
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 16:20:01 +00:00
jenkins-ci 3cf24224f5 Document secure delivery evidence and production monitoring
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 11:13:54 -05:00
glovely ee128d18bd Merge pull request 'Release v2 pricing at $12 per unit' (#20) from assignment8/v2-release into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 3m5s
Reviewed-on: #20
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-07 22:53:47 +00:00
nkogut 4d7e4f932f Set release intent to v2
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 22:49:35 +00:00
nkogut 699d509024 Update tests for v2 pricing
myfileagent-python-ci/pipeline/head Build queued...
2026-11-07 22:49:16 +00:00
nkogut 126dbb00b3 Prepare v2 pricing source
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 22:48:53 +00:00
glovely 0cb5a34cc4 Merge pull request 'Allow staging health checks more time under load' (#19) from assignment8/healthcheck-review into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m52s
Reviewed-on: #19
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-07 22:30:51 +00:00
nkogut 746b42b72b Allow staging health checks more time under load
myfileagent-python-ci/pipeline/pr-main This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 22:28:21 +00:00
nkogut 935eaa8624 Merge pull request 'Assignment 8: audit coverage and release evidence' (#18) from assignment8/secure-delivery into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m11s
Reviewed-on: #18
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-07 22:15:34 +00:00
nkogut 9e96c83197 Merge branch 'main' into assignment8/secure-delivery
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 22:11:07 +00:00
Codex 35523ccd3c Add Assignment 8 continuation handoff and v2 preview
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 21:49:23 +00:00
Codex 88f3bb0d0a Audit all pinned dependencies and preserve release evidence
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 21:44:33 +00:00
nkogut 6ba31a3b44 Merge pull request 'Assignment 8 secure delivery foundation' (#17) from assignment8/secure-delivery into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 3m36s
Reviewed-on: #17
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-11-07 21:38:39 +00:00
Codex c1cd3ad9af Document reproducible agent and current validation
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 21:32:11 +00:00
Codex 65e401172b Harden delivery checks and record test-gate evidence
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 21:23:35 +00:00
Codex b8a2529ce9 Record registry verification and protect release evidence
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:48:46 +00:00
Codex b0e8cead18 Prepare target registry authentication
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:42:16 +00:00
Codex 2bdb431ef2 Draft reviewed release pipeline and document proxy setup 2026-11-04 20:41:36 +00:00
Codex 4cc9a2c6ac Prepare Jenkins SSH credential verification
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:23:14 +00:00
Codex 80c7fe2bdc Prepare pricing routes and release records
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:16:13 +00:00
Codex 55abfbc951 Prepare dedicated deployment account and record security checks 2026-11-04 20:12:24 +00:00
Codex dd7c12c519 Record security validation and expand repository scan
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:08:01 +00:00
Codex 28d13ef5b8 Add security validation stages and record blocked gate
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 19:58:51 +00:00
Codex 83da3087c9 Use scanned lean pricing image and record baseline evidence 2026-11-04 19:49:32 +00:00
Codex c35558c20b Record validation and define release scan policy 2026-11-04 19:41:49 +00:00
Codex 242372e381 Prepare application and Ansible validation pipeline
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 19:30:57 +00:00
Codex f44cebd00e Record passing Jenkins agent verification 2026-11-04 19:27:26 +00:00
Codex f55a36468c Prepare restricted Jenkins delivery agent 2026-11-04 19:24:55 +00:00
Codex bda4ac8240 Pin pricing base image and record baseline evidence 2026-11-04 19:06:22 +00:00
Codex 344dbcbcd4 Add pricing service and Ansible starter with pinned dependencies 2026-11-04 19:01:59 +00:00
nkogut 10c85ea655 Merge pull request 'Finalize Assignment 7 manual v1.9.2' (#16) from assignment7/manual-1.9.2 into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 1m57s
Reviewed-on: #16
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-11-04 18:41:57 +00:00
jenkins-ci c3ed52e1da Keep chapter identifiers and alert header inside final PDF margins
myfileagent-python-ci/pipeline/pr-main This commit looks good
Team manual PDF / manual (push) Successful in 2m3s
2026-10-28 23:57:20 +00:00
Codex (authorized Assignment 5 implementation) 0f56106723 Finalize manual v1.9.2 wording, history, and table wrapping
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 1m59s
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-28 23:50:54 +00:00
nkogut acdd4c0a4c Merge pull request 'Assignment 7 SRE manual v1.9.0 — source review only' (#15) from assignment7/sre-documentation into main
Team manual PDF / manual (push) Successful in 3m0s
myfileagent-python-ci/pipeline/head This commit looks good
Reviewed-on: #15
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-10-28 18:44:13 +00:00
Codex (authorized Assignment 5 implementation) ced96c8a2b 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
2026-10-28 18:38:41 +00:00
nkogut b42689f02f Merge pull request 'Assignment 7: add tested monitoring, alerts, and incident evidence' (#14) from assignment7/monitoring into main
myfileagent-python-ci/pipeline/head This commit looks good
Assignment 5 manual PDF / manual (push) Successful in 1m36s
Reviewed-on: #14
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-10-28 18:03:59 +00:00
Codex (authorized Assignment 5 implementation) 6605394d7a Add Assignment 7 monitoring, tested alerts, and incident evidence
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-28 17:51:31 +00:00
glovely 131d605c5e Merge pull request 'Assignment 6: enforce Python CI before merging' (#11) from assignment6/python-ci into main
Assignment 5 manual PDF / manual (push) Successful in 1m11s
myfileagent-python-ci/pipeline/head This commit looks good
Reviewed-on: #11
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-10-09 19:14:44 +00:00
Codex (authorized Assignment 5 implementation) b7ef4850b7 Record private webhook configuration and enforced PR merge gate
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-09 19:08:59 +00:00
Codex (authorized Assignment 5 implementation) 02d31699aa Repair pricing multiplication and restore passing CI for #10
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-09 19:05:51 +00:00
Codex (authorized Assignment 5 implementation) d6477b3df6 Demonstrate failing pricing calculation for issue #10
myfileagent-python-ci/pipeline/pr-main There was a failure building this commit
2026-10-09 19:04:32 +00:00
nkogut ad056a363c Update project name to MyFileAgent
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-09 19:02:06 +00:00
Codex (authorized Assignment 5 implementation) 041adfcda4 Add Assignment 6 Python application and Jenkins pipeline
myfileagent-python-ci/pipeline/head This commit looks good
2026-10-09 18:33:17 +00:00
Codex (authorized Assignment 5 implementation) 4a67a09780 Include NK in latest AI assistance record
Assignment 5 manual PDF / manual (push) Successful in 1m2s
2026-10-07 21:41:15 +00:00
Codex (authorized Assignment 5 implementation) 8a9f4b3b5b Apply final manual editorial revisions
Assignment 5 manual PDF / manual (push) Successful in 49s
2026-10-07 21:36:36 +00:00
Codex (authorized Assignment 5 implementation) 2b82307761 Consolidate 1.7.1 records and clarify Chapter 3 rubric coverage
Assignment 5 manual PDF / manual (push) Successful in 1m0s
2026-10-07 19:09:56 +00:00
Codex (authorized Assignment 5 implementation) d812910ba8 Keep runner and credential labels within their table columns
Assignment 5 manual PDF / manual (push) Successful in 1m3s
2026-10-07 18:30:15 +00:00
Codex (authorized Assignment 5 implementation) b6511602f7 Finish manual navigation and align the tested build guide
Assignment 5 manual PDF / manual (push) Successful in 55s
2026-10-07 18:25:58 +00:00
Codex (authorized Assignment 5 implementation) db2a8be2ec Document verified manual builds, controlled failure and repair
Assignment 5 manual PDF / manual (push) Successful in 48s
2026-10-07 01:33:23 +00:00
Codex (authorized Assignment 5 implementation) 2b8be117c7 Improve manual traceability layout and record first source build
Assignment 5 manual PDF / manual (push) Successful in 54s
2026-10-07 01:28:49 +00:00
Codex (authorized Assignment 5 implementation) c74087a93b Build the complete Assignment 5 manual on trusted branch pushes
Assignment 5 manual PDF / manual (push) Successful in 47s
2026-10-07 01:27:17 +00:00
Codex (authorized Assignment 5 implementation) fa9a32f8a9 Record verified runner artifact delivery and pending manual workflow [skip ci] 2026-10-07 01:15:02 +00:00
Codex (authorized Assignment 5 implementation) 2fcbcbf639 Allow bounded action download memory for the manual runner
Runner compatibility preflight / preflight (push) Successful in 3m23s
2026-10-07 01:09:56 +00:00
Codex (authorized Assignment 5 implementation) 194cce7c65 Prepare pinned manual runner and isolated compatibility check
Runner compatibility preflight / preflight (push) Failing after 13m36s
2026-10-07 01:08:53 +00:00
nkogut b2daa0dbd9 update name to myfileagent 2026-09-29 19:41:00 +00:00
nkogut 11ac824a32 ops: version staged Caddy HTTPS configuration 2026-09-27 00:09:27 +00:00
nkogut 533ddfb38a ops: version staged Caddy HTTPS configuration 2026-09-27 00:08:54 +00:00
nkogut 620dec7b2a ops: parameterize Gitea domain and public URL 2026-09-27 00:06:58 +00:00
nkogut c8feda9d0a Merge pull request 'Update README.md' (#9) from branch_1 into main
Reviewed-on: http://localhost:3000/filepilot/filepilot-pipeline/pulls/9
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-09-26 20:36:19 +00:00
glovely 7b6d0031b4 Update README.md 2026-09-26 20:35:42 +00:00
glovely fe7b75aa4d Update README.md 2026-09-26 20:34:46 +00:00
glovely 1d941afe01 Merge pull request 'docs: add a single newline' (#8) from nkogut-patch-1 into main
Reviewed-on: http://localhost:3000/filepilot/filepilot-pipeline/pulls/8
Reviewed-by: glovely <glovely@stevens.edu>
2026-09-26 20:33:25 +00:00
457 changed files with 31723 additions and 7 deletions
+55
View File
@@ -0,0 +1,55 @@
name: Final project review (live)
on:
push:
branches: [feature/final-ci-demo, final-project-demo]
jobs:
review:
runs-on: manual-latex
container:
image: sha256:9c907055071888835492d1f479d032b522bb05a29300eff1d6beff1e09c40eb3
# The measured workload target remains 250,000,000 bytes; this higher hard
# ceiling lets a target overage be reported without killing successful inference.
options: --memory=384000000 --memory-swap=384000000 --tmpfs /private-model:rw,size=100000000
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.sha }}
persist-credentials: false
- name: Verify source and run reviewer and pipeline contract tests
env:
SOURCE_SHA: ${{ github.sha }}
run: |
set -eu
test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
python3 -m unittest discover -s ci/tests -v
python3 -m unittest discover -s tests -p 'test_reviewer.py' -v
- name: Run real model, show accepted repair and measure memory
env:
SOURCE_SHA: ${{ github.sha }}
ACTIONS_RUN_ID: ${{ github.run_id }}
ACTIONS_ATTEMPT: ${{ github.run_attempt }}
run: |
set -eu
python3 -m reviewer.prepare_runtime --dest out/runtime --model-dir /private-model
python3 ci/run_live_review.py
python3 ci/final_project.py bundle --review-dir out/review --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode live --output out/review-bundle.zip
- name: Publish ready bundle for this exact run and attempt
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
with:
name: review-${{ github.run_id }}-attempt-${{ github.run_attempt }}-${{ github.sha }}
path: out/review-bundle.zip
if-no-files-found: error
retention-days: 14
- name: Preserve raw model and resource evidence
if: always()
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
with:
name: live-evidence-${{ github.run_id }}-${{ github.sha }}
path: |
out/review
out/resource.json
if-no-files-found: warn
retention-days: 30
+34
View File
@@ -0,0 +1,34 @@
name: Team manual PDF
on:
push:
branches: [main, manual-build-validation, assignment7/manual-1.9.2, assignment8/evidence-documentation, assignment9/ticket-management]
jobs:
manual:
runs-on: manual-latex
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.sha }}
persist-credentials: false
- name: Compile the complete manual with visible build identity
env:
GITEA_SHA: ${{ github.sha }}
GITEA_RUN_NUMBER: ${{ github.run_number }}
GITEA_RUN_ID: ${{ github.run_id }}
GITEA_RUN_ATTEMPT: ${{ github.run_attempt }}
run: |
python3 documentation/ci/build_manual.py
test -s documentation/build/main.pdf
test -s documentation/build/build-manifest.json
- name: Publish verified PDF and traceability manifest
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
with:
name: team-manual-run-${{ github.run_number }}-${{ github.sha }}
path: |
documentation/build/main.pdf
documentation/build/build-manifest.json
if-no-files-found: error
retention-days: 14
+47
View File
@@ -0,0 +1,47 @@
name: Runner compatibility preflight
on:
push:
branches: [manual-runner-preflight]
jobs:
preflight:
runs-on: manual-latex
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.sha }}
persist-credentials: false
- name: Verify revision, tools, and job boundary
env:
EXPECTED_SHA: ${{ github.sha }}
run: |
test "$(git rev-parse HEAD)" = "$EXPECTED_SHA"
test ! -e /var/run/docker.sock
test ! -e /data/.runner
mkdir -p preflight
python3 - <<'PY' > preflight/result.txt
import os, socket, urllib.request
print('Trigger commit:', os.environ['EXPECTED_SHA'])
print('HTTPS:', urllib.request.urlopen('https://myfileagent.tech/api/v1/version').read().decode())
for host, port in [('172.20.0.2', 3000), ('172.20.0.1', 3000)]:
s = socket.socket(); s.settimeout(2)
result = s.connect_ex((host, port)); s.close()
print('Private backend connection blocked:', result != 0)
assert result != 0
print('Docker socket and runner state absent from job')
PY
latexmk --version >> preflight/result.txt
pdflatex --version >> preflight/result.txt
pygmentize -V >> preflight/result.txt
node --version >> preflight/result.txt
python3 -c 'import pypdf; print(pypdf.__version__)' >> preflight/result.txt
cat preflight/result.txt
- name: Test artifact compatibility (not a manual PDF)
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
with:
name: runner-preflight-${{ github.run_number }}
path: preflight/result.txt
if-no-files-found: error
retention-days: 14
+4
View File
@@ -0,0 +1,4 @@
__pycache__/
*.py[cod]
out/
documentation/build/
+52
View File
@@ -0,0 +1,52 @@
# SSW590 Group 7 final-project demo handoff
Updated 28 November 2026. This is the current documentation-preparation record for the Gitea Actions → real SmolLM2 review → Jenkins → LaTeX/tests → versioned ZIP demo. A broken-input commit exists, but this handoff does not assert that its complete Actions → Jenkins rehearsal has succeeded. The older `secure-delivery/HANDOFF.md` is for Assignment 8 and is unrelated to this demo. The original Member 1 record is `HANDOFF.txt`; the earlier deployed integration record is `ci/HANDOFF.txt`.
## Latest live attempt and Jenkins repair (28 November 2026)
- The user pushed `32a3c6f3f055c8a840f5bde9784137bfa39c8493` to `feature/final-ci-demo`. Gitea Actions run 47, attempt 1 produced a bundle that Jenkins `final-project-live` build #5 retrieved and verified against that SHA. Jenkins reserved version **1.0.6**. Thus earlier statements below that this tip was unpushed or that no refresh version had been reserved are superseded.
- Build #5 failed in **Publish measured live review metrics**, before the PDF, tests, reviewed-program execution and ZIP. Docker reported `invalid mount config for type "bind": bind source path does not exist: /home/jenkins/agent/workspace/final-project-live`. That path is inside the Jenkins agent's Docker volume and is not a Docker-host path. The failure says nothing about the model's correction or the tests; those stages were skipped. The live Grafana token counters were not updated by this build.
- `ci/toolchain.sh metrics` now streams the four verified metrics inputs into the isolated helper container through standard input. It retains the existing host metrics-directory mount, read-only root, private tmpfs, network isolation, CPU and memory limits, and ledger semantics. `sh -n` and `git diff --check` passed. An isolated replay of the build #5 inputs into a temporary metrics directory succeeded with **23 input / 5 output tokens** and release label **1.0.6**; this was **not** written to the live Grafana directory. Evidence: `handoff/member1/evidence/jenkins-build-5-metrics-repair.txt`.
- The repair requires a new commit, Actions run, and matching Jenkins `SOURCE_SHA`, because Jenkins checks the bundle against its checkout. Build #5 remains a failed historical attempt. Version 1.0.6 was reserved for its original run identity; a new run can reserve a later version. The user leads the rehearsal and can use the interactive push helper to publish the repair.
## Source state and ownership
- Shared base: `5373351a7e7ac2bc0f34bae19c25383de3843ca7`. Prepared demo branch in Gitea: `feature/final-ci-demo`; this local checkout is `feature/final-demo-refresh`.
- Preparation commit `1bb4e0a9dde2e57380bd85156ffe5ceb0896340a` added the valid demo source and short PDF/versioned live demo changes. Commit `d118a677e0a67795336e8c8fddadd7412c68806d` adjusted the memory ceiling, warning, and Grafana display. Both were pushed by the user using the interactive credential helper.
- Reviewer-test implementation commit `3ad7836e5b7e70b1c1fd95934c95748979534ab6` focuses the demo tests and separates the Jenkins reviewed-program stage. The subsequent handoff, Actions-log and restored-README changes reached Gitea in commit `32a3c6f3f055c8a840f5bde9784137bfa39c8493`. The local `../outputs/push-ssw590-demo-refresh.sh` checks the expected tip and remote head and asks for credentials only in the user's interactive SSH terminal; it stores none. The earlier preparation commits used `[skip ci]`; commit `32a3c6f…` triggered live Actions run 47.
- After that test commit reached Gitea, `10db5a6adfb69c614a0ba75261b9f19c9bcf805a` deleted `demo/README.md` and `d8cb38616aa3ef60cdcde91032e8f150fe2add10` committed the one-character broken `demo/demo.py` input. The README deletion was unrelated to the demo edit and was restored in `32a3c6f…`. The current branch remains **already broken for live inference**; each new tip needs its own matching Actions run and Jenkins SOURCE_SHA.
- Member 1 owns `reviewer/`, `demo/`, reviewer tests and source evidence. Member 2 originally integrated the Actions, Jenkins, bundle/ZIP, version reservation, shared CI and monitoring. Subsequent demo refresh changes were made with the user's authorization and are identified below. Final LaTeX course documentation remains deferred at the user's request.
## Implemented review and live pipeline
- `reviewer/__main__.py` implements `python3 -m reviewer --input FILE --source-commit FULL_SHA --out-dir FRESH_DIR`. `review.json` records source commit, model ID, status, summary, diff, input tokens and output tokens. A corrected or already valid input returns 0 with `reviewed.py`; rejection returns 2 without it; operational error returns 3 without it and with diagnostics where possible. The source is preserved. Valid input bypasses inference with an empty diff. The only accepted repair is the final `)` in `print("hello"`; the model does not supply commands for execution. Canonical broken and corrected fixtures are in `tests/fixtures/demo_broken.py` and `handoff/member1/canonical-reviewed.py`; fake fixture counts are never live evidence.
- `reviewer/model-lock.json` locks `HuggingFaceTB/SmolLM2-135M-Instruct`, quantized `SmolLM2-135M-Instruct.Q4_0.gguf` at SHA-256 `f68203bfb98b1b1e8c64fac75fab10c4e36acac081609573b4df0fcc19c90dd9`, and llama.cpp `llama-completion` release b12785, commit `55d482814bb3b985daa7bfa175c6d628fc27beac`. It records runtime/library checksums, CPU settings, token limits and the 250,000,000-byte workload target. `reviewer/prepare_runtime.py` checks the locked artifacts. Reproduction and failed experiments are in `handoff/member1/runtime.md` and `handoff/member1/evidence/`.
- `.gitea/workflows/final-project.yml` checks out the exact pushed SHA, runs reviewer and CI tests, prepares the locked runtime, invokes real inference, and uploads a SHA/run/attempt-bound review ZIP plus raw model and resource evidence. `ci/run_live_review.py` measures the whole job cgroup, including preparation, child inference process and private tmpfs model. `ci/final_project.py` verifies bundle identity and hashes before Jenkins uses the reviewed file. Rejections and invalid artifacts stop publication.
- `Jenkinsfile.final-project` fetches and verifies the exact Actions bundle, reserves a durable release version, publishes measured live metrics, builds the short demo PDF, runs tests, then packages and archives the release. The older full manual remains available separately. The short `demo/demo_report.tex` and `demo/build_demo_pdf.py` show committed broken source, raw model output, accepted repair, one-character diff, model/run identity, tokens, elapsed time, memory, hashes and release version. An offline one-page preview from saved real run 43 evidence is at `../outputs/demo-refresh-checks/offline-preview-not-a-release.pdf`; its printed 1.0.5 was a test label, not a release reservation.
- The durable version is reserved before PDF/test/package stages. The PDF and build manifest, test receipt, ZIP filename, ZIP `VERSION.txt`/README/manifest/release metadata, and companion downloadable PDF/checksum use the same version. A retry of the same verified identity reuses the immutable release. The Actions review predates version reservation and retains its original source/run/hash identity.
## Latest test correction and exact on-stage edit
- `demo/` contains `demo.py`, `build_demo_pdf.py`, `demo_report.tex`, and `README.md`. The earlier prepared `demo/demo.py` was exactly one line, `print("hello")`, plus a newline. Remote commit `d8cb386…` has already removed its final `)`, yielding `print("hello"` plus newline. The broken committed source is the review input, not the successful program to run. For a future repeat, restore the valid baseline in a separate prep commit before making a new one-character live edit.
- The final-project Actions and Jenkins unit-test commands now discover only `tests/test_reviewer.py` and `ci/tests`; unrelated legacy `tests/test_pricing.py` is excluded from this demo pipeline. `Jenkinsfile.final-project` has a separate **Compile and execute model-reviewed Python** stage. The existing `ci/final_project.py test` command compiles the verified `reviewed.py`, calls `tests/smoke_demo.py`, and independently executes `reviewed.py`, requiring exit 0 and exact `hello\n` output. Only then is `out/test-result.json` written and packaging allowed. Source details: `demo/README.md` and `handoff/member1/demo-refresh.md`.
- The Gitea Actions step **Run real model, show accepted repair and measure memory** now prints the source commit, locked model ID, measured tokens, raw model response, accepted one-character diff, and a reviewed-program smoke PASS message after the smoke check succeeds. These lines come from the real review bundle fields and the executed reviewed file; they are meant to make the fix visible in the Actions log without downloading the artifact. The bundle's `review.json` and the short Jenkins PDF remain the durable evidence. Jenkins build #5 accepted the resulting run 47 bundle; its console log alone does not establish the appearance of the Actions log display.
- Verification of the latest test selection: `python3 -m unittest discover -s tests -p 'test_reviewer.py' -v` passed **17/17** locally on 28 November; `git diff --check` passed before commit. The new stage layout has **not** yet been seen in live Jenkins. The previously established `ci/tests` and smoke behavior were not rerun solely for this label/selection change.
## Monitoring and memory behavior
- `ci/publish_live_metrics.py` updates cumulative `review_input_tokens_total` and `review_output_tokens_total` only after Jenkins verifies a live Actions bundle. SHA/run/attempt ledger entries prevent double counting on retry; null counts add nothing and fixtures are refused. Grafana shows cumulative counters that can increase after Jenkins publication and a Prometheus scrape. The prior 23/5 latest-run gauges remain in data for historical evidence but their flat time-series panels were removed.
- The user prefers the graphs to rise for each inference, while avoiding a new trusted publishing service. In this pipeline, inference occurs in Gitea Actions and Jenkins only verifies/publishes; each distinct successful live Actions run is counted once when Jenkins reaches its metrics stage. Counts remain unchanged during Actions. A failed/unpublished review and an Actions run that is never passed to Jenkins do not increment the graph. That timing and scope should be stated during the presentation.
- The deployed final-project dashboard source is `monitoring/grafana/provisioning/dashboards/json/final-project.json`; the live provisioned copy was checked in Grafana's v13 resource store. Host CPU and available-memory charts remain. Latest review duration, age, tokens availability, whole-job memory peak, target warning and hard ceiling are status cards, not flat time-series. The collector and zero counter baseline were checked; see `../outputs/demo-refresh-checks/grafana-loaded-panels.json`, `collector-baseline.txt`, and Prometheus baseline JSON files. The user's signed-in Grafana view should be visually checked during the rehearsal. Host-load charts include other services and do not measure model-only memory.
- The complete inference workload **target remains 250,000,000 bytes**. Actions now has a **384,000,000-byte hard ceiling**, with swap disabled. An observed target overage is recorded as a warning in resource evidence, bundle, log and PDF if inference succeeds. An actual hard-ceiling OOM or model failure still stops the ready bundle. The previous live run reached the old page-rounded 249,999,360-byte cap with 433 `memory.events.max` events; natural uncapped peak is unknown. The new ceiling was checked in a local Docker cgroup; see `../outputs/demo-refresh-checks/memory-policy-check.txt`. No new live inference measurement under the higher ceiling has been claimed.
## Evidence already obtained; limits
- Earlier live integration at commit `c735c8c6934c3084944de3077dfba027bf423bef`: Gitea Actions run **43 SUCCESS**, real model **23 input / 5 output tokens**, **3.0561 seconds**, corrected output, whole-job peak **249,999,360 bytes**, no OOM kill. Jenkins `final-project-live` build **#1 SUCCESS**, 39 tests including reviewed-file smoke, and an older **170-page** PDF in immutable release **1.0.4**. Build **#2** rejected an invalid run before release; build **#3** reused byte-identical 1.0.4. The downloaded ZIP, companion checksum, payload hashes, PDF identity and extracted Python behavior were checked. This proves the earlier integrated pipeline, not the newer short-PDF rehearsal. Raw bundle, review, resource, Jenkins, Prometheus and issue evidence are indexed in `ci/evidence/live-integration/summary.json` and explained in `ci/HANDOFF.txt`.
- Earlier local Member 1 trials and raw responses are in `handoff/member1/evidence/`; the acceptance trial measured **234,405,888 bytes** under a 250,000,000-byte cap. These are local feasibility runs, not deployed Actions runs. The offline short-PDF build, targeted test logs, dashboard storage check, memory cgroup check, and one-page cue-sheet build are under `../outputs/demo-refresh-checks/` and `../outputs/rehearsal-notes/`. User-facing rehearsal PDFs are `../outputs/rehearsal-pdfs/SSW590_Rehearsal_Full.pdf` and `SSW590_Rehearsal_One_Page.pdf`. The one-page cue sheet is one column and asks the presenter to take only web UI actions.
- The user has committed the one-character demo edit and Gitea Actions run 47 produced a verified bundle. Jenkins build #5 reserved **1.0.6** but failed before PDF/tests/package publication, so there is still no complete new Actions → Jenkins rehearsal or released ZIP verified by this agent. No new screenshots of its Actions/Jenkins/Grafana sequence are held here. Do not quote the offline 1.0.5 preview or failed 1.0.6 reservation as an issued release, the fixture counts as live tokens, or the old capped memory peak as the natural peak under 384 MB. The new dashboard should be visually checked by the signed-in user; an authenticated Grafana API check was unavailable.
## Next integration and documentation evidence
1. Push the fast-forward metrics-helper repair commit on top of `32a3c6f3f055c8a840f5bde9784137bfa39c8493`. This tip will have a **new full SHA and new Actions run** because Jenkins requires the selected run's SHA to match its checkout. Do not reuse run 47 for the new SHA. The interactive helper checks the exact old remote tip and stores no credentials.
2. In the user-led rehearsal, save the successful new Actions run ID/attempt, reviewer raw response, review JSON, token counts, resource JSON and uploaded bundle. Then trigger Jenkins with that exact new SHA and identity in `live` mode, capture the separate compile/execute stage, test receipt, one-page PDF, issued version and downloaded ZIP/checksum. Check Grafana counter increase after Jenkins publishes and Prometheus scrapes; save UI screenshots and exact timestamps. The user requested that the assistant not operate the system during rehearsal unless asked.
3. Use this handoff and `handoff/member1/report-contribution.md`, `metrics-proposal.md`, `demo-refresh.md`, `ci/HANDOFF.txt`, and the new rehearsal evidence to write the final course documentation later. Clearly separate earlier 1.0.4 integration, offline preview, and new live rehearsal results. Report any failure or memory-target overage plainly.
+100
View File
@@ -0,0 +1,100 @@
Historical Member 1 handoff as delivered. The current demo-PDF, versioning and
Grafana token-counter refresh is documented in handoff/member1/demo-refresh.md
and ci/DEMO-REFRESH-HANDOFF.txt. The earlier deployed integration and verified
live results are recorded in ci/HANDOFF.txt and ci/evidence/live-integration/.
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.
Vendored
+29
View File
@@ -0,0 +1,29 @@
pipeline {
agent any
options {
skipDefaultCheckout()
disableConcurrentBuilds()
timeout(time: 5, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr: '10'))
timestamps()
}
stages {
stage('Checkout') {
steps {
checkout scm
sh 'git rev-parse HEAD'
}
}
stage('Syntax check') {
steps {
sh 'python3 --version'
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
}
}
stage('Test') {
steps {
sh 'python3 -m unittest discover -s tests -v'
}
}
}
}
+85
View File
@@ -0,0 +1,85 @@
pipeline {
agent { label 'assignment8-trusted' }
options { disableConcurrentBuilds(); skipDefaultCheckout(); timeout(time: 45, unit: 'MINUTES'); timestamps() }
parameters {
string(name: 'SOURCE_SHA', defaultValue: '', description: 'Full SHA of this reviewed pipeline branch and Actions run')
string(name: 'ACTIONS_RUN_ID', defaultValue: '', description: 'Exact successful Gitea Actions run')
string(name: 'ACTIONS_ATTEMPT', defaultValue: '1', description: 'Exact attempt')
choice(name: 'MODE', choices: ['live', 'fixture'], description: 'Must match the selected Actions bundle')
}
stages {
stage('Checkout exact source') {
steps {
script {
if (!(params.SOURCE_SHA ==~ /[0-9a-f]{40}/) || !(params.ACTIONS_RUN_ID ==~ /[1-9][0-9]*/) || !(params.ACTIONS_ATTEMPT ==~ /[1-9][0-9]*/)) { error('Invalid run identity') }
}
deleteDir()
checkout scm
sh '''set -eu
test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
mkdir -p out
'''
}
}
stage('Retrieve exact Actions bundle') {
steps {
withCredentials([string(credentialsId: 'gitea-jenkins-ci', variable: 'GITEA_TOKEN')]) {
sh '''set +x
set -eu
python3 ci/final_project.py fetch --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode "$MODE" --output out/review-bundle.zip > out/actions-run.json
'''
}
}
}
stage('Validate identity and payload hashes') {
steps { sh '''set -eu
python3 ci/final_project.py verify --bundle out/review-bundle.zip --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode "$MODE" --output out/verified
sh ci/toolchain.sh start
''' }
}
stage('Reserve durable release version') {
steps {
script {
env.RELEASE_VERSION = sh(script: 'sh ci/toolchain.sh exec python3 ci/final_project.py reserve --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode "$MODE" --state /state --baseline 1.0', returnStdout: true).trim()
}
}
}
stage('Publish measured live review metrics') {
when { expression { params.MODE == 'live' } }
steps { sh 'python3 ci/final_project.py metrics --review-dir out/verified --output out/review.prom && sh ci/toolchain.sh metrics "$RELEASE_VERSION"' }
}
stage('Compile versioned demo PDF') {
steps { sh '''set -eu
RUN_NUMBER=$(python3 -c 'import json;print(json.load(open("out/actions-run.json"))["run_number"])')
sh ci/toolchain.sh exec python3 demo/build_demo_pdf.py --sha "$SOURCE_SHA" --run-number "$RUN_NUMBER" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --review-bundle /work/out/review-bundle.zip --release-version "$RELEASE_VERSION" --mode "$MODE" --jenkins-build "$BUILD_NUMBER"
''' }
}
stage('Reviewer and pipeline unit tests') {
steps { sh '''set -eu
sh ci/toolchain.sh exec python3 -m unittest discover -s tests -p 'test_reviewer.py' -v
sh ci/toolchain.sh exec python3 -m unittest discover -s ci/tests -v
''' }
}
stage('Compile and execute model-reviewed Python') {
steps { sh '''set -eu
sh ci/toolchain.sh exec python3 ci/final_project.py test --review-dir out/verified --output out/test-result.json --release-version "$RELEASE_VERSION"
''' }
}
stage('Package immutable release') {
steps { sh '''set -eu
sh ci/toolchain.sh exec python3 ci/final_project.py publish --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode "$MODE" --bundle out/review-bundle.zip --pdf documentation/build/main.pdf --state /state --output out/release --jenkins-build "$BUILD_NUMBER"
sh ci/toolchain.sh collect
''' }
}
stage('Publish downloadable ZIP') {
steps { archiveArtifacts artifacts: 'out/collected/release/*', fingerprint: true }
}
}
post {
always {
sh 'sh ci/toolchain.sh collect || true'
sh 'sh ci/toolchain.sh stop || true'
archiveArtifacts artifacts: 'out/actions-run.json,out/collected/test-result.json,out/collected/verified/verified.json', allowEmptyArchive: true
}
}
}
+3 -3
View File
@@ -1,17 +1,17 @@
## Product Scope ## Product Scope
FilePilot demonstrates a controlled file-update workflow. It accepts a target MyFileAgent demonstrates a controlled file-update workflow. It accepts a target
file description, expected text, and replacement text. The application locates file description, expected text, and replacement text. The application locates
the file only within an approved demonstration directory, verifies the expected the file only within an approved demonstration directory, verifies the expected
text, creates a backup, presents a diff, performs the replacement, verifies the text, creates a backup, presents a diff, performs the replacement, verifies the
result, and records the outcome. result, and records the outcome.
FilePilot does not provide unrestricted filesystem access, general desktop MyFileAgent does not provide unrestricted filesystem access, general desktop
control, arbitrary shell execution, or open-ended autonomous planning. control, arbitrary shell execution, or open-ended autonomous planning.
## Demonstration Acceptance Criteria ## Demonstration Acceptance Criteria
The demonstration succeeds when FilePilot: The demonstration succeeds when MyFileAgent:
1. finds the approved project-status file; 1. finds the approved project-status file;
2. confirms that it contains `Status: Draft`; 2. confirms that it contains `Status: Draft`;
+24
View File
@@ -0,0 +1,24 @@
SSW590 live demo integration refresh
The integration branch prepares valid demo/demo.py. The user performs the on-stage
one-character deletion, triggering Actions live inference. Jenkins now builds a
short model-evidence LaTeX PDF, not the 170-page full manual. It reserves a
version first and stamps the PDF, test receipt, release manifest, VERSION.txt,
README, ZIP filename and direct PDF download with the same value. The raw Actions
bundle predates version reservation and retains its SHA/run/hash identity.
The deployed Grafana dashboard has cumulative input/output token panels. Baseline
is zero since activation; historical last-run gauges remain 23/5. Jenkins updates
counters after it verifies the successful Actions bundle, and a Prometheus scrape
then makes the increase visible. A retry does not double count. Fixture values
and missing token counts cannot masquerade as live measurements.
The two flat last-run token graphs have been removed. The memory, duration and
availability measurements are latest-run status cards. The complete workload
still has a 250,000,000-byte target, but Actions now has a 384,000,000-byte
hard ceiling with no swap. A measured target overage warns and continues if
the real model succeeds; a true OOM or model error fails safely. Prior run 43
hit its old cap, so its natural uncapped memory peak is unknown.
Source notes: handoff/member1/demo-refresh.md. Historical Member 1 work:
HANDOFF.txt. No rehearsal has been executed by this implementation update.
+2
View File
@@ -0,0 +1,2 @@
FROM python@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1
RUN apt-get update && apt-get install -y --no-install-recommends git nodejs ca-certificates && rm -rf /var/lib/apt/lists/*
+76
View File
@@ -0,0 +1,76 @@
SSW590 technical integration checkpoint — 2026-11-27
User: Gowri, Member 2. Report writing remains deferred.
Workspace: /home/codex/ssw590-member2
Branch: feature/final-ci-demo
Verified implementation: c735c8c6934c3084944de3077dfba027bf423bef
Member 1 merged head: 1449a8bf68a5013433225f77f5286bf8d6fd9468
Shared base: 5373351a7e7ac2bc0f34bae19c25383de3843ca7
Completed live technical path:
- Merged the real bounded reviewer, fixtures and tests. Adopted the optional
runtime/library/executable checksum hardening, with safe preparation support
for the older compiler Python. Fixed Member 1 smoke-error normalization.
- Issue #24 tracks the actual work. Commit c735c8c references it and changes
demo/demo.py to the controlled missing-parenthesis input. The model preserves
that committed source and writes the repaired output separately.
- Actions #43 SUCCESS: real SmolLM2 model returned corrected, 23 input and 5
output tokens, 3.0561 seconds. SHA, input hash, runtime lock, raw response,
runtime counters and resource measurements are retained with the review.
- Strict 250,000,000-byte requested cap, no swap. Kernel effective cap and
observed whole-job peak: 249,999,360 bytes. memory.events max=433, oom=0,
oom_kill=0. The job reached its cap; this does NOT prove natural peak below
the cap or spare memory. It includes preparation/cache and reviewer work.
- Jenkins final-project-live #1 SUCCESS, 39 tests (19 reviewer/application,
20 pipeline), exact reviewed-file smoke, 170-page PDF, live ZIP 1.0.4.
- Downloaded ZIP, companion SHA256, all four payload hashes, PDF source/model/
token/code identity and independently extracted Python execution passed.
- Jenkins live #2 expected FAILURE: invalid Actions run rejected before build,
metrics or release publication; no ZIP. Live #3 SUCCESS: exact byte-identical
1.0.4 retry, original published identity preserved.
- ZIP SHA256: 2eed54036744e4e0eaeb91f001a15be169a3d13bb28a213c900f097af1f664c5
- Real input/output/duration/memory/timestamp metrics verified in Prometheus.
Grafana resource storage confirms eight loaded panels. Fixed-window raw
series include shared-host CPU/memory, not per-model CPU or RSS.
Important implementation details:
- Live Actions image is locked by immutable local image ID in ci/live-image.json;
ci/Dockerfile.live-actions builds it from Member 1's compatible pinned Python
base plus Git/Node. It is present on this Droplet. A new runner host needs that
image provisioned or a reviewed rebuild and updated image lock.
- Each Actions run downloads and checksum-verifies its runtime. Model resides
in private tmpfs. The shared runner's allowed-volume policy was not widened.
- Compiler remains the original pinned TeX image; model inference is separate.
- Live job: https://ci.myfileagent.tech/job/final-project-live/
Actions: https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/43
Issue: https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/24
- Manual Jenkins trigger is supported: use the exact successful Actions run's
full source SHA, run ID, attempt 1 and MODE=live. Current pipeline requires
branch HEAD to match that source; evidence-only follow-up commits also move
HEAD, so use the corresponding successful run after any branch advance.
- Existing 1.0 release line and durable ssw590-final-project-state volume remain.
Prior fixture 1.0.1–1.0.3 and local Member 1 dry runs are distinct evidence.
- Existing protected-main checks, pricing, Zammad and monitoring collectors
remain intact. Temporary Jenkins API token revoked, rejection verified (401),
temporary credential file removed after testing.
Evidence and deliverables:
- ci/evidence/live-integration/summary.json indexes verified results.
- That directory retains Actions failures 41 (kernel rounding), 42 (runtime
libc incompatibility), success 43, Jenkins logs/results, issue data, real
review bundle, checksum results and Prometheus samples/window.
- Local ZIP and checksum:
/home/codex/outputs/final-project-live/ssw590-live-1.0.4.zip
/home/codex/outputs/final-project-live/ssw590-live-1.0.4.zip.sha256
- Member 1 source evidence and report draft remain under handoff/member1/.
Do not describe their synthetic local run IDs as deployed pipeline runs.
Remaining user-facing project work:
- Final report/chapter, diagrams, SWOT integration, update history and final
presentation/demo preparation: deliberately deferred by user.
- Capture presentation screenshots from the actual Grafana/Jenkins UI. Raw
measurements and verified provisioned panels are saved; no screenshots have
been fabricated or claimed. Dashboard was opened on the actual run window.
- Issue completion comment is prepared in outputs/final-project-live/ and the
user was asked to post it because the repository API token lacks issue-write
permission. Check the public issue comments before assuming it was posted.
- Preserve the current release; do not delete the durable state volume.
+71
View File
@@ -0,0 +1,71 @@
SSW590 Member 2 operations — fixture stage
Starting main SHA: 5373351a7e7ac2bc0f34bae19c25383de3843ca7
Branch: feature/final-ci-demo
Workspace: /home/codex/ssw590-member2
Member 1's earlier uncommitted draft remains in /home/codex/ssw590-final-project.
No reviewer/ or tests/smoke_demo.py ownership is assumed here.
Run local unit checks:
python3 -m unittest discover -s ci/tests -v
python3 -m unittest discover -s tests -v
Actions:
The final-project workflow runs only on feature/final-ci-demo or
final-project-demo. It uses the existing manual-latex label and proven
action pins. It runs only simulated review until Member 1 is integrated.
Copy the successful full source SHA, numeric Actions run ID and attempt.
The name is review-RUN_ID-attempt-ATTEMPT-FULL_SHA.
Jenkins setup (requires an authenticated administrator):
1. Create Pipeline job final-project-fixture.
2. Pipeline from SCM: Git, existing public repository URL, branch
*/feature/final-ci-demo, Script Path Jenkinsfile.final-project.
3. Keep the existing myfileagent-python-ci required check unchanged.
4. Reuse existing Jenkins credential gitea-jenkins-ci. Its installed
PersonalAccessTokenImpl implements StringCredentials and supports the
string binding used here; no credential value was read during setup.
5. Run once to load parameters; then Build with Parameters using the exact
successful run SHA/ID/attempt. If branch HEAD has advanced, select the
corresponding new successful run (pipeline refuses a checkout mismatch).
6. Use the existing assignment8-trusted agent. The job creates a temporary
compiler container, network disabled, memory 256 MiB, 0.65 CPU; no
Docker socket or secrets are mounted into that compiler container.
7. The dedicated Docker volume ssw590-final-project-state retains
versions.json and releases/. Do not delete it on cleanup/retry.
8. Download the archived out/collected/release/*.zip and companion checksum.
Extract freshly, verify every manifest payload hash, inspect PDF identity,
and execute python3 reviewed.py (expected hello).
Version policy:
1.0 is a provisional baseline for fixture development, not a team-approved
final baseline. State locks serialize allocation across processes. Source
SHA and mode select a reservation; model/runtime must be pinned in source
before live integration. An unchanged retry reuses original immutable
published bytes/identity. Changed reviewed bytes under the same identity
fail. Final live baseline/identity must be agreed with Member 1.
Report builds:
Ordinary mode remains: python3 documentation/ci/build_manual.py with the
existing GITEA_SHA/RUN_NUMBER/RUN_ID/RUN_ATTEMPT variables.
Final mode additionally accepts --review-bundle, --release-version,
--jenkins-build and --mode. It validates the bundle before inserting data.
Both modes require the pinned TeX image. See ci/toolchain.sh.
Failure exercises:
reviewer_stub.py --case rejected/error produces diagnostics, no reviewed.py.
--case runtime produces valid Python that fails execution; hash it normally.
For transfer corruption, create/hash a good bundle first, then mutate one
payload without updating SHA256SUMS. Validation must fail before TeX.
For wrong identity, use a different expected run ID or SHA. Do not publish.
Execute deliberate TeX failures only in isolated test copies.
Fixture tests never establish real-model accuracy, memory or token evidence.
Monitoring handoff:
ci/final_project.py metrics accepts explicitly live review metadata only.
It emits availability gauges, counts when known and a supplied measured
completion timestamp, using atomic textfile replacement. Existing Node
Exporter textfile collection is not yet enabled by this change. Coordinate
paths, mounts and real metric evidence with Member 1 before deployment.
No paid resizing or production pricing/Zammad deployment is included.
+76
View File
@@ -0,0 +1,76 @@
{
"schema_version": 1,
"baseline_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"reviewer_cli": [
"--input",
"--source-commit",
"--out-dir"
],
"source_policy": "Never overwrite input; output directory must be fresh",
"outputs": [
"review.json",
"reviewed.py"
],
"required_review_fields": [
"source_commit",
"model_id",
"status",
"summary",
"diff",
"input_tokens",
"output_tokens"
],
"exit_codes": {
"0": [
"corrected",
"unchanged"
],
"2": [
"rejected"
],
"3": [
"error"
]
},
"ready_statuses": [
"corrected",
"unchanged"
],
"failure_policy": "No reviewed.py or ready bundle on rejected/error",
"tokens": "Measured nonnegative integers or null when unavailable; never estimated",
"modes": [
"fixture",
"live"
],
"fixture_model_id": "fixture-model",
"bundle_files": [
"reviewed.py",
"review.json",
"bundle.json",
"SHA256SUMS"
],
"bundle_identity": [
"schema_version",
"source_commit",
"run_id",
"attempt",
"mode"
],
"smoke_stdout": "hello\n",
"model_memory_target_bytes": 250000000,
"provisional_release_baseline": "1.0",
"owners": {
"member1": [
"real model and runtime pinning",
"reviewer CLI",
"actual token and memory measurement"
],
"member2": [
"Actions and Jenkins",
"artifact verification",
"PDF build automation",
"testing and versioned ZIP",
"monitoring integration"
]
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"source_sha": "bed90200d2e309a63b644a5f138624e6710be3bf",
"actions_run": "35",
"mode": "fixture",
"version": "1.0.1",
"payload_hashes": "passed",
"smoke": "passed",
"zip_sha256": "ecfecf00849828e22ad8be3e9f5dd3f330993fffa30224f3ab1eff13df94f4c6",
"execution": "isolated toolchain on Droplet; not a Jenkins job"
}
Binary file not shown.
+138
View File
@@ -0,0 +1,138 @@
{
"jenkins_build": 1,
"start": 1795637897.303,
"end": 1795638073.477,
"scope": "Shared host, includes unrelated workloads; not model RSS",
"series": {
"cpu_percent": [
{
"metric": {},
"values": [
[
1795637777.303,
"77.6760923166033"
],
[
1795637807.303,
"92.7444444444134"
],
[
1795637837.303,
"99.97777777775708"
],
[
1795637867.303,
"89.62895444741524"
],
[
1795637897.303,
"89.65555555555814"
],
[
1795637927.303,
"89.36666666672359"
],
[
1795637957.303,
"98.16666666670547"
],
[
1795637987.303,
"96.65555555560988"
],
[
1795638017.303,
"95.46666666664856"
],
[
1795638047.303,
"95.41111111110594"
],
[
1795638077.303,
"94.58888888882939"
],
[
1795638107.303,
"76.33385924758521"
],
[
1795638137.303,
"64.63333333331522"
],
[
1795638167.303,
"50.77777777779071"
]
]
}
],
"available_memory_bytes": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node"
},
"values": [
[
1795637777.303,
"446656512"
],
[
1795637807.303,
"433098752"
],
[
1795637837.303,
"559407104"
],
[
1795637867.303,
"537243648"
],
[
1795637897.303,
"437555200"
],
[
1795637927.303,
"396320768"
],
[
1795637957.303,
"455864320"
],
[
1795637987.303,
"460541952"
],
[
1795638017.303,
"422821888"
],
[
1795638047.303,
"443179008"
],
[
1795638077.303,
"423858176"
],
[
1795638107.303,
"405078016"
],
[
1795638137.303,
"362545152"
],
[
1795638167.303,
"358948864"
]
]
}
]
}
}
+34
View File
@@ -0,0 +1,34 @@
{
"jenkins_url": "https://ci.myfileagent.tech/job/final-project-fixture/1/",
"actions_run": 38,
"manifest": {
"attempt": "1",
"jenkins_build": "1",
"mode": "fixture",
"payload_sha256": {
"README.txt": "0a7793faeee8ddc7d1fee883e85195eb08f767b09dc32d9c0be33cb316365f98",
"report-1.0.2.pdf": "f41138043a3b7d928bb9d6701a9ce8fd76c58c30b93a198fe4dae4fabd659b1b",
"review.json": "e56cc2bc964314e35e8917b972b13628b4e83d61b758bf179e7d42ee29a7dc6d",
"reviewed.py": "b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180"
},
"run_id": "38",
"schema_version": 1,
"source_commit": "0e7ade75b99e18a24db1e7c78f6f442256be2e0f",
"version": "1.0.2"
},
"zip_sha256": "64173b7bd460cf4ff392ec0cc051865220a242d12e779f929e63a57606013794",
"payload_hashes": "pass",
"fresh_runtime_smoke": "pass",
"jenkins_result": "SUCCESS",
"test_counts": {
"pipeline": 18,
"existing": 2
},
"pdf_check": {
"release_identity": "pass",
"generated_review_appendix": "pass",
"reviewed_code": "pass after removing PDF extraction whitespace",
"review_diff": "present"
},
"console_log_sha256": "e429970e610fc3e259d11df7e8800d821374d28f264458e8828b1cbcd15c14f4"
}
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
}
],
"building": false,
"duration": 41740,
"number": 2,
"result": "FAILURE",
"timestamp": 1795711715474
}
Binary file not shown.
+36
View File
@@ -0,0 +1,36 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
},
{
"fileName": "release.json",
"relativePath": "out/collected/release/release.json"
},
{
"fileName": "ssw590-fixture-1.0.2.zip",
"relativePath": "out/collected/release/ssw590-fixture-1.0.2.zip"
},
{
"fileName": "ssw590-fixture-1.0.2.zip.sha256",
"relativePath": "out/collected/release/ssw590-fixture-1.0.2.zip.sha256"
},
{
"fileName": "test-result.json",
"relativePath": "out/collected/test-result.json"
},
{
"fileName": "verified.json",
"relativePath": "out/collected/verified/verified.json"
}
],
"building": false,
"duration": 195415,
"number": 3,
"result": "SUCCESS",
"timestamp": 1795711757395,
"retry_zip_sha256": "64173b7bd460cf4ff392ec0cc051865220a242d12e779f929e63a57606013794",
"byte_identical_to_build1": true
}
Binary file not shown.
+52
View File
@@ -0,0 +1,52 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
},
{
"fileName": "release.json",
"relativePath": "out/collected/release/release.json"
},
{
"fileName": "ssw590-fixture-1.0.3.zip",
"relativePath": "out/collected/release/ssw590-fixture-1.0.3.zip"
},
{
"fileName": "ssw590-fixture-1.0.3.zip.sha256",
"relativePath": "out/collected/release/ssw590-fixture-1.0.3.zip.sha256"
},
{
"fileName": "test-result.json",
"relativePath": "out/collected/test-result.json"
},
{
"fileName": "verified.json",
"relativePath": "out/collected/verified/verified.json"
}
],
"building": false,
"duration": 167832,
"number": 4,
"result": "SUCCESS",
"timestamp": 1795711990901,
"manifest": {
"attempt": "1",
"jenkins_build": "4",
"mode": "fixture",
"payload_sha256": {
"README.txt": "3bbdaead77ac642c22c8217be9773f6dc4a97c0a02b9e0fa08b03b6a72fb6d33",
"report-1.0.3.pdf": "c6893079df21bdd444f9c09d633620d09e9bff397499bdd7c324139be6ee673a",
"review.json": "8a42691189a267cbefe1761ba2a8f872786f838bb46d525d839705f4f593ac71",
"reviewed.py": "b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180"
},
"run_id": "39",
"schema_version": 1,
"source_commit": "0ec7cee5b9923e484e78046ca9adcb848423cd3e",
"version": "1.0.3"
},
"zip_sha256": "275c66b7120fb6987d5ac102ce9f38a9fe949cf0b337cef46cb1dcdfe8d65c1a",
"independent_hash_and_runtime_verification": "pass",
"download_url": "https://ci.myfileagent.tech/job/final-project-fixture/4/artifact/out/collected/release/ssw590-fixture-1.0.3.zip"
}
@@ -0,0 +1,5 @@
{
"token_revoked": true,
"rejection_verified": true,
"temporary_credential_file_removed": true
}
@@ -0,0 +1,10 @@
----------------------------------------------------------------------
Ran 19 tests in 1.935s
OK
/usr/local/lib/python3.13/zipfile/__init__.py:1686: UserWarning: Duplicate name: 'reviewed.py'
return self._open_to_write(zinfo, force_zip64=force_zip64)
----------------------------------------------------------------------
Ran 20 tests in 2.224s
OK (skipped=5)
+258
View File
@@ -0,0 +1,258 @@
2026-11-27T19:09:07.4214075Z assignment5-manual(version:v0.6.1) received task 42 of job review, be triggered by event: push
2026-11-27T19:09:07.4571264Z workflow prepared
2026-11-27T19:09:07.4709522Z evaluating expression 'success()'
2026-11-27T19:09:07.4788344Z expression 'success()' evaluated to 'true'
2026-11-27T19:09:07.4789728Z 🚀 Start image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1
2026-11-27T19:09:07.7123560Z 🐳 docker pull image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= username= forcePull=false
2026-11-27T19:09:07.7124453Z 🐳 docker pull sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1
2026-11-27T19:09:07.9811397Z Image exists? true
2026-11-27T19:09:12.5766890Z 🐳 docker create image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= entrypoint=["/bin/sleep" "1800"] cmd=[] network="manual-build-jobs"
2026-11-27T19:09:17.7343582Z Custom container.Config from options ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image: Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2026-11-27T19:09:17.7344849Z Merged container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 Volumes:map[] WorkingDir:/workspace/myfileagent/myfileagent-pipeline Entrypoint:[/bin/sleep 1800] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2026-11-27T19:09:17.7346000Z Custom container.HostConfig from options ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:manual-build-jobs PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/private-model:rw,size=100000000] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:250000000 NanoCPUs:650000000 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:250000000 MemorySwappiness:0x3f5f62cbbac8 OomKillDisable:0x3f5f62cbb9c3 PidsLimit:0x3f5f62cbbb28 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2026-11-27T19:09:17.7347047Z --network and --net in the options will be ignored.
2026-11-27T19:09:17.7347703Z Merged container.HostConfig ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:manual-build-jobs PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:true VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/private-model:rw,size=100000000] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:250000000 NanoCPUs:650000000 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:250000000 MemorySwappiness:0x3f5f62cbbac8 OomKillDisable:0x3f5f62cbb9c3 PidsLimit:0x3f5f62cbbb28 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd Target:/workspace/myfileagent/myfileagent-pipeline ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2026-11-27T19:09:18.8137231Z Created container name=GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd id=bcc9c1846e3127046c1aee89a825f3c6b64330b3b815576dbc8e50faef79dc26 from image sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 (platform: )
2026-11-27T19:09:18.8148308Z ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
2026-11-27T19:09:18.8149015Z 🐳 docker run image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= entrypoint=["/bin/sleep" "1800"] cmd=[] network="manual-build-jobs"
2026-11-27T19:09:18.8149831Z Starting container: bcc9c1846e3127046c1aee89a825f3c6b64330b3b815576dbc8e50faef79dc26
2026-11-27T19:09:20.9434576Z Started container: bcc9c1846e3127046c1aee89a825f3c6b64330b3b815576dbc8e50faef79dc26
2026-11-27T19:09:21.3288005Z Writing entry to tarball workflow/event.json len:16053
2026-11-27T19:09:21.3289801Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:09:21.3290038Z Extracting content to '/var/run/act/'
2026-11-27T19:09:21.4801235Z ☁ git clone 'https://github.com/actions/checkout' # ref=11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:09:21.4803001Z cloning https://github.com/actions/checkout to /root/.cache/act/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e
2026-11-27T19:09:25.9021667Z Unable to pull refs/heads/11bd71901bbe5b1630ceea73d27597364c9af683: worktree contains unstaged changes
2026-11-27T19:09:25.9024003Z Cloned https://github.com/actions/checkout to /root/.cache/act/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e
2026-11-27T19:09:25.9805501Z Checked out 11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:09:26.1168134Z ☁ git clone 'https://github.com/actions/upload-artifact' # ref=c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:09:26.1168687Z cloning https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:09:28.0705782Z Unable to pull refs/heads/c6a366c94c3e0affe28c06c8df20a878f24da3cf: non-fast-forward update
2026-11-27T19:09:28.0707053Z Cloned https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:09:28.1563757Z Checked out c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:09:28.2418858Z ☁ git clone 'https://github.com/actions/upload-artifact' # ref=c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:09:28.2438673Z cloning https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:09:29.5886528Z Unable to pull refs/heads/c6a366c94c3e0affe28c06c8df20a878f24da3cf: non-fast-forward update
2026-11-27T19:09:29.5887264Z Cloned https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:09:29.7454464Z Checked out c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:09:29.9661215Z expression '${{ github.sha }}' rewritten to 'format('{0}', github.sha)'
2026-11-27T19:09:29.9661890Z evaluating expression 'format('{0}', github.sha)'
2026-11-27T19:09:29.9662709Z expression 'format('{0}', github.sha)' evaluated to '%!t(string=9275fcdcaeefb862fbbce5702235ae1a407ebf70)'
2026-11-27T19:09:30.0544700Z evaluating expression ''
2026-11-27T19:09:30.0545582Z expression '' evaluated to 'true'
2026-11-27T19:09:30.0545821Z ⭐ Run Main https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:09:30.0546215Z Writing entry to tarball workflow/outputcmd.txt len:0
2026-11-27T19:09:30.0546492Z Writing entry to tarball workflow/statecmd.txt len:0
2026-11-27T19:09:30.0546734Z Writing entry to tarball workflow/pathcmd.txt len:0
2026-11-27T19:09:30.0546915Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:09:30.0547076Z Writing entry to tarball workflow/SUMMARY.md len:0
2026-11-27T19:09:30.0547262Z Extracting content to '/var/run/act'
2026-11-27T19:09:30.0951464Z ::group::Run https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:09:30.0952209Z with:
2026-11-27T19:09:30.0952469Z persist-credentials: false
2026-11-27T19:09:30.0952671Z ref: ${{ github.sha }}
2026-11-27T19:09:37.9854053Z ::add-matcher::/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/problem-matcher.json
2026-11-27T19:09:37.9951268Z Syncing repository: myfileagent/myfileagent-pipeline
2026-11-27T19:09:38.0128805Z ::group::Getting Git version info
2026-11-27T19:09:38.0218587Z Working directory is '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:09:38.2220992Z [command]/usr/bin/git version
2026-11-27T19:09:38.3336224Z git version 2.39.5
2026-11-27T19:09:38.3776137Z ::endgroup::
2026-11-27T19:09:38.4114173Z Temporarily overriding HOME='/tmp/bbdf8f58-c46e-4a9c-9aad-2b19401a647e' before making global git config changes
2026-11-27T19:09:38.4141150Z Adding repository directory to the temporary git global config as a safe directory
2026-11-27T19:09:38.4229766Z [command]/usr/bin/git config --global --add safe.directory /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:09:38.4690078Z Deleting the contents of '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:09:38.4770161Z ::group::Initializing the repository
2026-11-27T19:09:38.4811036Z [command]/usr/bin/git init /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:09:38.5543080Z hint: Using 'master' as the name for the initial branch. This default branch name
2026-11-27T19:09:38.5543747Z hint: is subject to change. To configure the initial branch name to use in all
2026-11-27T19:09:38.5543887Z hint: of your new repositories, which will suppress this warning, call:
2026-11-27T19:09:38.5544063Z hint:
2026-11-27T19:09:38.5544184Z hint: git config --global init.defaultBranch <name>
2026-11-27T19:09:38.5544338Z hint:
2026-11-27T19:09:38.5544458Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2026-11-27T19:09:38.5544588Z hint: 'development'. The just-created branch can be renamed via this command:
2026-11-27T19:09:38.5544721Z hint:
2026-11-27T19:09:38.5544821Z hint: git branch -m <name>
2026-11-27T19:09:38.5656936Z Initialized empty Git repository in /workspace/myfileagent/myfileagent-pipeline/.git/
2026-11-27T19:09:38.5789544Z [command]/usr/bin/git remote add origin https://myfileagent.tech/myfileagent/myfileagent-pipeline
2026-11-27T19:09:38.6147006Z ::endgroup::
2026-11-27T19:09:38.6147262Z ::group::Disabling automatic garbage collection
2026-11-27T19:09:38.6165471Z [command]/usr/bin/git config --local gc.auto 0
2026-11-27T19:09:38.6381465Z ::endgroup::
2026-11-27T19:09:38.6389666Z ::group::Setting up auth
2026-11-27T19:09:38.6460945Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:09:38.6752308Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:09:38.8797955Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:09:38.9160191Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:09:39.2346168Z [command]/usr/bin/git config --local http.https://myfileagent.tech/.extraheader AUTHORIZATION: basic ***
2026-11-27T19:09:39.2682988Z ::endgroup::
2026-11-27T19:09:39.2683366Z ::group::Fetching the repository
2026-11-27T19:09:39.2772657Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:47.0476897Z From https://myfileagent.tech/myfileagent/myfileagent-pipeline
2026-11-27T19:09:47.0477775Z * branch 9275fcdcaeefb862fbbce5702235ae1a407ebf70 -> FETCH_HEAD
2026-11-27T19:09:47.0669011Z ::endgroup::
2026-11-27T19:09:47.0670311Z ::group::Determining the checkout info
2026-11-27T19:09:47.0698978Z ::endgroup::
2026-11-27T19:09:47.0721932Z [command]/usr/bin/git sparse-checkout disable
2026-11-27T19:09:47.0984823Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2026-11-27T19:09:47.1119959Z ::group::Checking out the ref
2026-11-27T19:09:47.1147401Z [command]/usr/bin/git checkout --progress --force 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:47.3031867Z Note: switching to '9275fcdcaeefb862fbbce5702235ae1a407ebf70'.
2026-11-27T19:09:47.3032653Z
2026-11-27T19:09:47.3032864Z You are in 'detached HEAD' state. You can look around, make experimental
2026-11-27T19:09:47.3033037Z changes and commit them, and you can discard any commits you make in this
2026-11-27T19:09:47.3033208Z state without impacting any branches by switching back to a branch.
2026-11-27T19:09:47.3033497Z
2026-11-27T19:09:47.3033623Z If you want to create a new branch to retain commits you create, you may
2026-11-27T19:09:47.3033767Z do so (now or later) by using -c with the switch command. Example:
2026-11-27T19:09:47.3033960Z
2026-11-27T19:09:47.3034095Z git switch -c <new-branch-name>
2026-11-27T19:09:47.3034212Z
2026-11-27T19:09:47.3034351Z Or undo this operation with:
2026-11-27T19:09:47.3034532Z
2026-11-27T19:09:47.3034650Z git switch -
2026-11-27T19:09:47.3034763Z
2026-11-27T19:09:47.3034918Z Turn off this advice by setting config variable advice.detachedHead to false
2026-11-27T19:09:47.3035228Z
2026-11-27T19:09:47.3035396Z HEAD is now at 9275fcd Integrate real reviewer with measured Actions execution and live Jenkins pipeline
2026-11-27T19:09:47.3101086Z ::endgroup::
2026-11-27T19:09:47.3349084Z [command]/usr/bin/git log -1 --format=%H
2026-11-27T19:09:47.3501418Z 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:47.3618395Z ::group::Removing auth
2026-11-27T19:09:47.3657470Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:09:47.3896656Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:09:47.5715066Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:09:47.5966050Z http.https://myfileagent.tech/.extraheader
2026-11-27T19:09:47.6070242Z [command]/usr/bin/git config --local --unset-all http.https://myfileagent.tech/.extraheader
2026-11-27T19:09:47.6384364Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:09:47.8370798Z ::endgroup::
2026-11-27T19:09:47.8436994Z ::remove-matcher owner=checkout-git::
2026-11-27T19:09:47.8962273Z ::endgroup::
2026-11-27T19:09:48.5271447Z ::group::Run set -eu
2026-11-27T19:09:48.5271958Z set -eu
2026-11-27T19:09:48.5272134Z test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
2026-11-27T19:09:48.5272292Z python3 -m unittest discover -s ci/tests -v
2026-11-27T19:09:48.5272498Z python3 -m unittest discover -s tests -v
2026-11-27T19:09:48.5272646Z shell: sh -e {0}
2026-11-27T19:09:48.5272830Z env:
2026-11-27T19:09:48.5272989Z SOURCE_SHA: 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:48.5273198Z ::endgroup::
2026-11-27T19:09:49.3051527Z test_concurrent_reservation (test_pipeline.PipelineTests.test_concurrent_reservation) ... ok
2026-11-27T19:09:49.3173907Z test_duplicate_and_symlink (test_pipeline.PipelineTests.test_duplicate_and_symlink) ... /usr/lib/python3.11/zipfile.py:1569: UserWarning: Duplicate name: 'reviewed.py'
2026-11-27T19:09:49.3174649Z return self._open_to_write(zinfo, force_zip64=force_zip64)
2026-11-27T19:09:49.3200372Z ok
2026-11-27T19:09:50.0011839Z test_fixture_cli_and_source_integrity (test_pipeline.PipelineTests.test_fixture_cli_and_source_integrity) ... ok
2026-11-27T19:09:50.1682316Z test_fixture_unchanged (test_pipeline.PipelineTests.test_fixture_unchanged) ... ok
2026-11-27T19:09:50.1766811Z test_fresh_output_required (test_pipeline.PipelineTests.test_fresh_output_required) ... ok
2026-11-27T19:09:50.5650719Z test_good_bundle_and_smoke (test_pipeline.PipelineTests.test_good_bundle_and_smoke) ... ok
2026-11-27T19:09:50.5743135Z test_measured_live_metric_fields (test_pipeline.PipelineTests.test_measured_live_metric_fields) ... ok
2026-11-27T19:09:50.5811948Z test_metrics_reject_fixture (test_pipeline.PipelineTests.test_metrics_reject_fixture) ... ok
2026-11-27T19:09:50.5867252Z test_missing_live_counts_are_unknown (test_pipeline.PipelineTests.test_missing_live_counts_are_unknown) ... ok
2026-11-27T19:09:50.5917680Z test_rejected_not_bundled (test_pipeline.PipelineTests.test_rejected_not_bundled) ... ok
2026-11-27T19:09:50.9350513Z test_runtime_failure_reaches_smoke (test_pipeline.PipelineTests.test_runtime_failure_reaches_smoke) ... ok
2026-11-27T19:09:50.9435080Z test_tampered_transfer (test_pipeline.PipelineTests.test_tampered_transfer) ... ok
2026-11-27T19:09:50.9536310Z test_unexpected_paths (test_pipeline.PipelineTests.test_unexpected_paths) ... ok
2026-11-27T19:09:50.9616408Z test_version_retry_and_mode (test_pipeline.PipelineTests.test_version_retry_and_mode) ... ok
2026-11-27T19:09:50.9690171Z test_wrong_identity (test_pipeline.PipelineTests.test_wrong_identity) ... ok
2026-11-27T19:09:51.3556228Z test_existing_version_refuses_changed_review (test_release.ReleaseTests.test_existing_version_refuses_changed_review) ... ok
2026-11-27T19:09:51.4748822Z test_publish_and_retry_preserve_bytes (test_release.ReleaseTests.test_publish_and_retry_preserve_bytes) ... Reusing immutable release and its original build identity
2026-11-27T19:09:51.4797589Z ok
2026-11-27T19:09:51.4965070Z test_report_mismatch_prevents_release (test_release.ReleaseTests.test_report_mismatch_prevents_release) ... ok
2026-11-27T19:09:51.6051030Z test_runtime_failure_prevents_release (test_release.ReleaseTests.test_runtime_failure_prevents_release) ... ok
2026-11-27T19:09:54.6262508Z test_failed_compile_removes_stale_publish_targets (test_tex_failure.CompilerFailureTests.test_failed_compile_removes_stale_publish_targets) ... ok
2026-11-27T19:09:54.6276863Z
2026-11-27T19:09:54.6294235Z ----------------------------------------------------------------------
2026-11-27T19:09:54.6305506Z Ran 20 tests in 5.500s
2026-11-27T19:09:54.6331756Z
2026-11-27T19:09:54.6338898Z OK
2026-11-27T19:09:55.2536182Z test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
2026-11-27T19:09:55.2561609Z test_total (test_pricing.PricingTests.test_total) ... ok
2026-11-27T19:09:56.1814315Z test_cli_corrected_and_malformed_json (test_reviewer.ReviewerTests.test_cli_corrected_and_malformed_json) ... ok
2026-11-27T19:09:57.6583550Z test_cli_rejected_and_unchanged (test_reviewer.ReviewerTests.test_cli_rejected_and_unchanged) ... ok
2026-11-27T19:09:58.4061581Z test_cli_usage_is_separate (test_reviewer.ReviewerTests.test_cli_usage_is_separate) ... ok
2026-11-27T19:09:58.5384537Z test_corrected (test_reviewer.ReviewerTests.test_corrected) ... ok
2026-11-27T19:09:58.5545329Z test_error (test_reviewer.ReviewerTests.test_error) ... ok
2026-11-27T19:09:58.5672248Z test_invalid_counts (test_reviewer.ReviewerTests.test_invalid_counts) ... ok
2026-11-27T19:09:58.5831002Z test_invalid_sha (test_reviewer.ReviewerTests.test_invalid_sha) ... ok
2026-11-27T19:09:58.5926490Z test_missing_candidate (test_reviewer.ReviewerTests.test_missing_candidate) ... ok
2026-11-27T19:09:58.7412640Z test_missing_counts (test_reviewer.ReviewerTests.test_missing_counts) ... ok
2026-11-27T19:09:58.7580758Z test_no_newline (test_reviewer.ReviewerTests.test_no_newline) ... ok
2026-11-27T19:09:58.7673475Z test_rejected_invalid_syntax (test_reviewer.ReviewerTests.test_rejected_invalid_syntax) ... ok
2026-11-27T19:09:58.7773368Z test_rejected_unrelated_edit (test_reviewer.ReviewerTests.test_rejected_unrelated_edit) ... ok
2026-11-27T19:09:58.9129662Z test_runtime_failure (test_reviewer.ReviewerTests.test_runtime_failure) ... ok
2026-11-27T19:09:58.9887559Z test_subprocess_timeout (test_reviewer.ReviewerTests.test_subprocess_timeout) ... ok
2026-11-27T19:09:58.9972574Z test_timeout (test_reviewer.ReviewerTests.test_timeout) ... ok
2026-11-27T19:09:59.0068661Z test_unchanged_skips_backend (test_reviewer.ReviewerTests.test_unchanged_skips_backend) ... ok
2026-11-27T19:09:59.0202275Z test_unrelated_syntax_error (test_reviewer.ReviewerTests.test_unrelated_syntax_error) ... ok
2026-11-27T19:09:59.0232577Z
2026-11-27T19:09:59.0233138Z ----------------------------------------------------------------------
2026-11-27T19:09:59.0233336Z Ran 19 tests in 3.770s
2026-11-27T19:09:59.0233435Z
2026-11-27T19:09:59.0233513Z OK
2026-11-27T19:09:59.9875710Z ::group::Run set -eu
2026-11-27T19:09:59.9876339Z set -eu
2026-11-27T19:09:59.9876868Z python3 -m reviewer.prepare_runtime --dest out/runtime --model-dir /private-model
2026-11-27T19:09:59.9877055Z python3 ci/run_live_review.py
2026-11-27T19:09:59.9877239Z python3 ci/final_project.py bundle --review-dir out/review --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode live --output out/review-bundle.zip
2026-11-27T19:09:59.9877539Z shell: sh -e {0}
2026-11-27T19:09:59.9877748Z env:
2026-11-27T19:09:59.9877911Z SOURCE_SHA: 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:59.9878076Z ACTIONS_RUN_ID: 41
2026-11-27T19:09:59.9878213Z ACTIONS_ATTEMPT: 1
2026-11-27T19:09:59.9878345Z ::endgroup::
2026-11-27T19:10:10.8966540Z REVIEWER_MODEL_PATH=/private-model/SmolLM2-135M-Instruct.Q4_0.gguf
2026-11-27T19:10:10.8968505Z REVIEWER_LLAMA_COMPLETION=out/runtime/llama-b12785/llama-completion
2026-11-27T19:10:10.8968728Z LD_LIBRARY_PATH=out/runtime/libgomp-root/usr/lib/x86_64-linux-gnu:out/runtime/llama-b12785
2026-11-27T19:10:11.3416079Z Traceback (most recent call last):
2026-11-27T19:10:11.3416809Z File "/workspace/myfileagent/myfileagent-pipeline/ci/run_live_review.py", line 16, in <module>
2026-11-27T19:10:11.3417093Z assert limit == 250000000, 'Actual Actions container must have the exact 250 MB limit'
2026-11-27T19:10:11.3417302Z ^^^^^^^^^^^^^^^^^^
2026-11-27T19:10:11.3417486Z AssertionError: Actual Actions container must have the exact 250 MB limit
2026-11-27T19:10:11.4768848Z ❌ Failure - Main Run real model under measured 250 MB cap
2026-11-27T19:10:12.2451440Z exitcode '1': failure
2026-11-27T19:10:14.5648941Z ::group::Run Preserve raw model and resource evidence
2026-11-27T19:10:14.5650312Z with:
2026-11-27T19:10:14.5701939Z if-no-files-found: warn
2026-11-27T19:10:14.5702743Z name: live-evidence-${{ github.run_id }}-${{ github.sha }}
2026-11-27T19:10:14.5702891Z path: out/review\nout/resource.json
2026-11-27T19:10:14.5703118Z retention-days: 30
2026-11-27T19:10:23.7997030Z Multiple search paths detected. Calculating the least common ancestor of all paths
2026-11-27T19:10:23.8016032Z The least common ancestor is /workspace/myfileagent/myfileagent-pipeline/out. This will be the root directory of the artifact
2026-11-27T19:10:23.8031251Z ::warning::No files were found with the provided path: out/review%0Aout/resource.json. No artifacts will be uploaded.
2026-11-27T19:10:23.8394513Z ::endgroup::
2026-11-27T19:10:23.9346826Z skipping post step for 'Publish ready bundle for this exact run and attempt'; main step was skipped
2026-11-27T19:10:24.1497050Z expression '${{ github.sha }}' rewritten to 'format('{0}', github.sha)'
2026-11-27T19:10:24.1500800Z evaluating expression 'format('{0}', github.sha)'
2026-11-27T19:10:24.1503806Z expression 'format('{0}', github.sha)' evaluated to '%!t(string=9275fcdcaeefb862fbbce5702235ae1a407ebf70)'
2026-11-27T19:10:24.1985063Z evaluating expression 'always()'
2026-11-27T19:10:24.1986502Z expression 'always()' evaluated to 'true'
2026-11-27T19:10:24.1989944Z ⭐ Run Post https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:10:24.1990738Z Writing entry to tarball workflow/outputcmd.txt len:0
2026-11-27T19:10:24.1991017Z Writing entry to tarball workflow/statecmd.txt len:0
2026-11-27T19:10:24.1991759Z Writing entry to tarball workflow/pathcmd.txt len:0
2026-11-27T19:10:24.1991954Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:10:24.1992135Z Writing entry to tarball workflow/SUMMARY.md len:0
2026-11-27T19:10:24.1994965Z Extracting content to '/var/run/act'
2026-11-27T19:10:24.2168996Z run post step for 'https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683'
2026-11-27T19:10:24.2183820Z executing remote job container: [node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js]
2026-11-27T19:10:24.2184600Z 🐳 docker exec cmd=[node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js] user= workdir=
2026-11-27T19:10:24.2184976Z Exec command '[node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js]'
2026-11-27T19:10:24.2185747Z Working directory '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:10:26.3670971Z [command]/usr/bin/git version
2026-11-27T19:10:26.5099631Z git version 2.39.5
2026-11-27T19:10:26.5443661Z ***
2026-11-27T19:10:26.5730992Z Temporarily overriding HOME='/tmp/8264d9af-2cef-4b74-952a-ed5fa9d552c7' before making global git config changes
2026-11-27T19:10:26.5795633Z Adding repository directory to the temporary git global config as a safe directory
2026-11-27T19:10:26.5795943Z [command]/usr/bin/git config --global --add safe.directory /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:10:26.6150929Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:10:26.6597905Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:10:26.8901071Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:10:26.9036384Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:10:27.0342512Z ✅ Success - Post https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:10:27.0796293Z Cleaning up container for job review
2026-11-27T19:10:29.8897102Z Removed container: bcc9c1846e3127046c1aee89a825f3c6b64330b3b815576dbc8e50faef79dc26
2026-11-27T19:10:29.9202215Z 🐳 docker volume rm GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd
2026-11-27T19:10:30.1708874Z 🐳 docker volume rm GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd-env
2026-11-27T19:10:30.9964552Z 🏁 Job failed
2026-11-27T19:10:31.0677377Z Job 'review' failed
+273
View File
@@ -0,0 +1,273 @@
2026-11-27T19:10:54.8035382Z assignment5-manual(version:v0.6.1) received task 44 of job review, be triggered by event: push
2026-11-27T19:10:54.8531495Z workflow prepared
2026-11-27T19:10:54.8582481Z evaluating expression 'success()'
2026-11-27T19:10:54.8641018Z expression 'success()' evaluated to 'true'
2026-11-27T19:10:54.8641880Z 🚀 Start image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1
2026-11-27T19:10:56.1416611Z 🐳 docker pull image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= username= forcePull=false
2026-11-27T19:10:56.1434419Z 🐳 docker pull sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1
2026-11-27T19:10:56.8449040Z Image exists? true
2026-11-27T19:11:06.2064432Z 🐳 docker create image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= entrypoint=["/bin/sleep" "1800"] cmd=[] network="manual-build-jobs"
2026-11-27T19:11:09.5112128Z Custom container.Config from options ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image: Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2026-11-27T19:11:09.5113747Z Merged container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 Volumes:map[] WorkingDir:/workspace/myfileagent/myfileagent-pipeline Entrypoint:[/bin/sleep 1800] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2026-11-27T19:11:09.5114916Z Custom container.HostConfig from options ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:manual-build-jobs PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/private-model:rw,size=100000000] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:250000000 NanoCPUs:650000000 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:250000000 MemorySwappiness:0x3f5f62b6e3c8 OomKillDisable:0x3f5f62b6e2c3 PidsLimit:0x3f5f62b6e428 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2026-11-27T19:11:09.5116149Z --network and --net in the options will be ignored.
2026-11-27T19:11:09.5116977Z Merged container.HostConfig ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:manual-build-jobs PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:true VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/private-model:rw,size=100000000] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:250000000 NanoCPUs:650000000 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:250000000 MemorySwappiness:0x3f5f62b6e3c8 OomKillDisable:0x3f5f62b6e2c3 PidsLimit:0x3f5f62b6e428 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e Target:/workspace/myfileagent/myfileagent-pipeline ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2026-11-27T19:11:10.1222183Z Created container name=GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e id=827197b2192c5d48c1563edfc19dd544dc5bf8ea614a0bd87b9d957fdd57e9b3 from image sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 (platform: )
2026-11-27T19:11:10.1222855Z ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
2026-11-27T19:11:10.1223051Z 🐳 docker run image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= entrypoint=["/bin/sleep" "1800"] cmd=[] network="manual-build-jobs"
2026-11-27T19:11:10.1223254Z Starting container: 827197b2192c5d48c1563edfc19dd544dc5bf8ea614a0bd87b9d957fdd57e9b3
2026-11-27T19:11:11.4003915Z Started container: 827197b2192c5d48c1563edfc19dd544dc5bf8ea614a0bd87b9d957fdd57e9b3
2026-11-27T19:11:12.0925348Z Writing entry to tarball workflow/event.json len:4966
2026-11-27T19:11:12.0926365Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:11:12.0926687Z Extracting content to '/var/run/act/'
2026-11-27T19:11:13.0835142Z ☁ git clone 'https://github.com/actions/checkout' # ref=11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:11:13.0835732Z cloning https://github.com/actions/checkout to /root/.cache/act/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e
2026-11-27T19:11:17.1791154Z Unable to pull refs/heads/11bd71901bbe5b1630ceea73d27597364c9af683: worktree contains unstaged changes
2026-11-27T19:11:17.1792546Z Cloned https://github.com/actions/checkout to /root/.cache/act/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e
2026-11-27T19:11:17.2667036Z Checked out 11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:11:17.4054960Z ☁ git clone 'https://github.com/actions/upload-artifact' # ref=c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:11:17.4055986Z cloning https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:11:19.1331349Z Unable to pull refs/heads/c6a366c94c3e0affe28c06c8df20a878f24da3cf: non-fast-forward update
2026-11-27T19:11:19.1334578Z Cloned https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:11:19.2659064Z Checked out c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:11:19.5826387Z ☁ git clone 'https://github.com/actions/upload-artifact' # ref=c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:11:19.5826986Z cloning https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:11:22.0045304Z Unable to pull refs/heads/c6a366c94c3e0affe28c06c8df20a878f24da3cf: non-fast-forward update
2026-11-27T19:11:22.0046099Z Cloned https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:11:22.0628016Z Checked out c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:11:22.2528080Z expression '${{ github.sha }}' rewritten to 'format('{0}', github.sha)'
2026-11-27T19:11:22.2528906Z evaluating expression 'format('{0}', github.sha)'
2026-11-27T19:11:22.2530907Z expression 'format('{0}', github.sha)' evaluated to '%!t(string=0311260ddf813ecd8d4f4c6889c7a0775e7511d5)'
2026-11-27T19:11:22.3866668Z evaluating expression ''
2026-11-27T19:11:22.3867550Z expression '' evaluated to 'true'
2026-11-27T19:11:22.3867773Z ⭐ Run Main https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:11:22.3868147Z Writing entry to tarball workflow/outputcmd.txt len:0
2026-11-27T19:11:22.3868475Z Writing entry to tarball workflow/statecmd.txt len:0
2026-11-27T19:11:22.3868680Z Writing entry to tarball workflow/pathcmd.txt len:0
2026-11-27T19:11:22.3868878Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:11:22.3869060Z Writing entry to tarball workflow/SUMMARY.md len:0
2026-11-27T19:11:22.3890563Z Extracting content to '/var/run/act'
2026-11-27T19:11:22.4361443Z ::group::Run https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:11:22.4362088Z with:
2026-11-27T19:11:22.4362296Z persist-credentials: false
2026-11-27T19:11:22.4362469Z ref: ${{ github.sha }}
2026-11-27T19:11:33.3214167Z ::add-matcher::/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/problem-matcher.json
2026-11-27T19:11:33.3441729Z Syncing repository: myfileagent/myfileagent-pipeline
2026-11-27T19:11:33.3610847Z ::group::Getting Git version info
2026-11-27T19:11:33.3623718Z Working directory is '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:11:33.3984458Z [command]/usr/bin/git version
2026-11-27T19:11:33.4573067Z git version 2.39.5
2026-11-27T19:11:33.5041062Z ::endgroup::
2026-11-27T19:11:33.5170857Z Temporarily overriding HOME='/tmp/3aa468d9-dc1e-44cf-a7bd-b268f4430578' before making global git config changes
2026-11-27T19:11:33.5192568Z Adding repository directory to the temporary git global config as a safe directory
2026-11-27T19:11:33.5231113Z [command]/usr/bin/git config --global --add safe.directory /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:11:33.5437113Z Deleting the contents of '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:11:33.5471930Z ::group::Initializing the repository
2026-11-27T19:11:33.5505647Z [command]/usr/bin/git init /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:11:33.5840335Z hint: Using 'master' as the name for the initial branch. This default branch name
2026-11-27T19:11:33.5840869Z hint: is subject to change. To configure the initial branch name to use in all
2026-11-27T19:11:33.5840988Z hint: of your new repositories, which will suppress this warning, call:
2026-11-27T19:11:33.5841131Z hint:
2026-11-27T19:11:33.5841238Z hint: git config --global init.defaultBranch <name>
2026-11-27T19:11:33.5841350Z hint:
2026-11-27T19:11:33.5841609Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2026-11-27T19:11:33.5841797Z hint: 'development'. The just-created branch can be renamed via this command:
2026-11-27T19:11:33.5842018Z hint:
2026-11-27T19:11:33.5842167Z hint: git branch -m <name>
2026-11-27T19:11:33.5892175Z Initialized empty Git repository in /workspace/myfileagent/myfileagent-pipeline/.git/
2026-11-27T19:11:33.5985184Z [command]/usr/bin/git remote add origin https://myfileagent.tech/myfileagent/myfileagent-pipeline
2026-11-27T19:11:33.6184036Z ::endgroup::
2026-11-27T19:11:33.6189921Z ::group::Disabling automatic garbage collection
2026-11-27T19:11:33.6222829Z [command]/usr/bin/git config --local gc.auto 0
2026-11-27T19:11:33.6387173Z ::endgroup::
2026-11-27T19:11:33.6387493Z ::group::Setting up auth
2026-11-27T19:11:33.6439085Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:11:33.6597723Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:11:33.8154616Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:11:33.8334980Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:11:33.9515084Z [command]/usr/bin/git config --local http.https://myfileagent.tech/.extraheader AUTHORIZATION: basic ***
2026-11-27T19:11:33.9832535Z ::endgroup::
2026-11-27T19:11:33.9846419Z ::group::Fetching the repository
2026-11-27T19:11:33.9961095Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:41.2265200Z From https://myfileagent.tech/myfileagent/myfileagent-pipeline
2026-11-27T19:11:41.2266234Z * branch 0311260ddf813ecd8d4f4c6889c7a0775e7511d5 -> FETCH_HEAD
2026-11-27T19:11:41.2727108Z ::endgroup::
2026-11-27T19:11:41.2743371Z ::group::Determining the checkout info
2026-11-27T19:11:41.2808181Z ::endgroup::
2026-11-27T19:11:41.2922385Z [command]/usr/bin/git sparse-checkout disable
2026-11-27T19:11:41.3753227Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2026-11-27T19:11:41.4334711Z ::group::Checking out the ref
2026-11-27T19:11:41.4444823Z [command]/usr/bin/git checkout --progress --force 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:42.0804583Z Note: switching to '0311260ddf813ecd8d4f4c6889c7a0775e7511d5'.
2026-11-27T19:11:42.0805127Z
2026-11-27T19:11:42.0805334Z You are in 'detached HEAD' state. You can look around, make experimental
2026-11-27T19:11:42.0805513Z changes and commit them, and you can discard any commits you make in this
2026-11-27T19:11:42.0805676Z state without impacting any branches by switching back to a branch.
2026-11-27T19:11:42.0805835Z
2026-11-27T19:11:42.0806072Z If you want to create a new branch to retain commits you create, you may
2026-11-27T19:11:42.0806241Z do so (now or later) by using -c with the switch command. Example:
2026-11-27T19:11:42.0806420Z
2026-11-27T19:11:42.0806566Z git switch -c <new-branch-name>
2026-11-27T19:11:42.0806711Z
2026-11-27T19:11:42.0806850Z Or undo this operation with:
2026-11-27T19:11:42.0806990Z
2026-11-27T19:11:42.0807134Z git switch -
2026-11-27T19:11:42.0807286Z
2026-11-27T19:11:42.0807420Z Turn off this advice by setting config variable advice.detachedHead to false
2026-11-27T19:11:42.0807667Z
2026-11-27T19:11:42.0807851Z HEAD is now at 0311260 Account for kernel page rounding in measured memory cap
2026-11-27T19:11:42.0839948Z ::endgroup::
2026-11-27T19:11:42.1024779Z [command]/usr/bin/git log -1 --format=%H
2026-11-27T19:11:42.1112578Z 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:42.1166355Z ::group::Removing auth
2026-11-27T19:11:42.1181125Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:11:42.1325552Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:11:42.2068125Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:11:42.2134340Z http.https://myfileagent.tech/.extraheader
2026-11-27T19:11:42.2170832Z [command]/usr/bin/git config --local --unset-all http.https://myfileagent.tech/.extraheader
2026-11-27T19:11:42.2265470Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:11:42.3033784Z ::endgroup::
2026-11-27T19:11:42.3058038Z ::remove-matcher owner=checkout-git::
2026-11-27T19:11:42.4086573Z ::endgroup::
2026-11-27T19:11:43.8971782Z ::group::Run set -eu
2026-11-27T19:11:43.8972313Z set -eu
2026-11-27T19:11:43.8972524Z test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
2026-11-27T19:11:43.8972684Z python3 -m unittest discover -s ci/tests -v
2026-11-27T19:11:43.8972834Z python3 -m unittest discover -s tests -v
2026-11-27T19:11:43.8972987Z shell: sh -e {0}
2026-11-27T19:11:43.8973162Z env:
2026-11-27T19:11:43.8973312Z SOURCE_SHA: 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:43.8973476Z ::endgroup::
2026-11-27T19:11:46.3768102Z test_concurrent_reservation (test_pipeline.PipelineTests.test_concurrent_reservation) ... ok
2026-11-27T19:11:46.4154876Z test_duplicate_and_symlink (test_pipeline.PipelineTests.test_duplicate_and_symlink) ... /usr/lib/python3.11/zipfile.py:1569: UserWarning: Duplicate name: 'reviewed.py'
2026-11-27T19:11:46.4155827Z return self._open_to_write(zinfo, force_zip64=force_zip64)
2026-11-27T19:11:46.4362240Z ok
2026-11-27T19:11:47.4592917Z test_fixture_cli_and_source_integrity (test_pipeline.PipelineTests.test_fixture_cli_and_source_integrity) ... ok
2026-11-27T19:11:47.7662720Z test_fixture_unchanged (test_pipeline.PipelineTests.test_fixture_unchanged) ... ok
2026-11-27T19:11:47.7753211Z test_fresh_output_required (test_pipeline.PipelineTests.test_fresh_output_required) ... ok
2026-11-27T19:11:48.3693465Z test_good_bundle_and_smoke (test_pipeline.PipelineTests.test_good_bundle_and_smoke) ... ok
2026-11-27T19:11:48.3962039Z test_measured_live_metric_fields (test_pipeline.PipelineTests.test_measured_live_metric_fields) ... ok
2026-11-27T19:11:48.4021586Z test_metrics_reject_fixture (test_pipeline.PipelineTests.test_metrics_reject_fixture) ... ok
2026-11-27T19:11:48.4180985Z test_missing_live_counts_are_unknown (test_pipeline.PipelineTests.test_missing_live_counts_are_unknown) ... ok
2026-11-27T19:11:48.4328411Z test_rejected_not_bundled (test_pipeline.PipelineTests.test_rejected_not_bundled) ... ok
2026-11-27T19:11:49.1720553Z test_runtime_failure_reaches_smoke (test_pipeline.PipelineTests.test_runtime_failure_reaches_smoke) ... ok
2026-11-27T19:11:49.1868496Z test_tampered_transfer (test_pipeline.PipelineTests.test_tampered_transfer) ... ok
2026-11-27T19:11:49.2290496Z test_unexpected_paths (test_pipeline.PipelineTests.test_unexpected_paths) ... ok
2026-11-27T19:11:49.2751485Z test_version_retry_and_mode (test_pipeline.PipelineTests.test_version_retry_and_mode) ... ok
2026-11-27T19:11:49.3221646Z test_wrong_identity (test_pipeline.PipelineTests.test_wrong_identity) ... ok
2026-11-27T19:11:50.4080616Z test_existing_version_refuses_changed_review (test_release.ReleaseTests.test_existing_version_refuses_changed_review) ... ok
2026-11-27T19:11:50.5992026Z test_publish_and_retry_preserve_bytes (test_release.ReleaseTests.test_publish_and_retry_preserve_bytes) ... Reusing immutable release and its original build identity
2026-11-27T19:11:50.6063646Z ok
2026-11-27T19:11:50.6277636Z test_report_mismatch_prevents_release (test_release.ReleaseTests.test_report_mismatch_prevents_release) ... ok
2026-11-27T19:11:50.7248940Z test_runtime_failure_prevents_release (test_release.ReleaseTests.test_runtime_failure_prevents_release) ... ok
2026-11-27T19:11:52.9974215Z test_failed_compile_removes_stale_publish_targets (test_tex_failure.CompilerFailureTests.test_failed_compile_removes_stale_publish_targets) ... ok
2026-11-27T19:11:52.9984775Z
2026-11-27T19:11:52.9985256Z ----------------------------------------------------------------------
2026-11-27T19:11:52.9985462Z Ran 20 tests in 6.904s
2026-11-27T19:11:52.9985617Z
2026-11-27T19:11:53.0004866Z OK
2026-11-27T19:11:53.9510810Z test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
2026-11-27T19:11:53.9511518Z test_total (test_pricing.PricingTests.test_total) ... ok
2026-11-27T19:11:55.5004179Z test_cli_corrected_and_malformed_json (test_reviewer.ReviewerTests.test_cli_corrected_and_malformed_json) ... ok
2026-11-27T19:11:56.5199036Z test_cli_rejected_and_unchanged (test_reviewer.ReviewerTests.test_cli_rejected_and_unchanged) ... ok
2026-11-27T19:11:56.6806772Z test_cli_usage_is_separate (test_reviewer.ReviewerTests.test_cli_usage_is_separate) ... ok
2026-11-27T19:11:56.7080399Z test_corrected (test_reviewer.ReviewerTests.test_corrected) ... ok
2026-11-27T19:11:56.7108441Z test_error (test_reviewer.ReviewerTests.test_error) ... ok
2026-11-27T19:11:56.7131206Z test_invalid_counts (test_reviewer.ReviewerTests.test_invalid_counts) ... ok
2026-11-27T19:11:56.7150041Z test_invalid_sha (test_reviewer.ReviewerTests.test_invalid_sha) ... ok
2026-11-27T19:11:56.7171353Z test_missing_candidate (test_reviewer.ReviewerTests.test_missing_candidate) ... ok
2026-11-27T19:11:56.7691467Z test_missing_counts (test_reviewer.ReviewerTests.test_missing_counts) ... ok
2026-11-27T19:11:56.7716096Z test_no_newline (test_reviewer.ReviewerTests.test_no_newline) ... ok
2026-11-27T19:11:56.7744249Z test_rejected_invalid_syntax (test_reviewer.ReviewerTests.test_rejected_invalid_syntax) ... ok
2026-11-27T19:11:56.7766520Z test_rejected_unrelated_edit (test_reviewer.ReviewerTests.test_rejected_unrelated_edit) ... ok
2026-11-27T19:11:56.8000845Z test_runtime_failure (test_reviewer.ReviewerTests.test_runtime_failure) ... ok
2026-11-27T19:11:56.8558551Z test_subprocess_timeout (test_reviewer.ReviewerTests.test_subprocess_timeout) ... ok
2026-11-27T19:11:56.8582492Z test_timeout (test_reviewer.ReviewerTests.test_timeout) ... ok
2026-11-27T19:11:56.8606678Z test_unchanged_skips_backend (test_reviewer.ReviewerTests.test_unchanged_skips_backend) ... ok
2026-11-27T19:11:56.8627165Z test_unrelated_syntax_error (test_reviewer.ReviewerTests.test_unrelated_syntax_error) ... ok
2026-11-27T19:11:56.8631700Z
2026-11-27T19:11:56.8634840Z ----------------------------------------------------------------------
2026-11-27T19:11:56.8641553Z Ran 19 tests in 2.916s
2026-11-27T19:11:56.8641987Z
2026-11-27T19:11:56.8642144Z OK
2026-11-27T19:11:57.3215712Z ::group::Run set -eu
2026-11-27T19:11:57.3216196Z set -eu
2026-11-27T19:11:57.3216372Z python3 -m reviewer.prepare_runtime --dest out/runtime --model-dir /private-model
2026-11-27T19:11:57.3216539Z python3 ci/run_live_review.py
2026-11-27T19:11:57.3216690Z python3 ci/final_project.py bundle --review-dir out/review --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode live --output out/review-bundle.zip
2026-11-27T19:11:57.3217138Z shell: sh -e {0}
2026-11-27T19:11:57.3217344Z env:
2026-11-27T19:11:57.3217489Z SOURCE_SHA: 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:57.3217639Z ACTIONS_RUN_ID: 42
2026-11-27T19:11:57.3217774Z ACTIONS_ATTEMPT: 1
2026-11-27T19:11:57.3217914Z ::endgroup::
2026-11-27T19:12:03.1601598Z REVIEWER_MODEL_PATH=/private-model/SmolLM2-135M-Instruct.Q4_0.gguf
2026-11-27T19:12:03.1602883Z REVIEWER_LLAMA_COMPLETION=out/runtime/llama-b12785/llama-completion
2026-11-27T19:12:03.1603101Z LD_LIBRARY_PATH=out/runtime/libgomp-root/usr/lib/x86_64-linux-gnu:out/runtime/llama-b12785
2026-11-27T19:12:04.2143991Z {"scope": "actual Actions job including runtime preparation, reviewer and private tmpfs model", "requested_memory_limit_bytes": 250000000, "memory_limit_bytes": 249999360, "memory_peak_bytes": 218419200, "memory_events": {"low": 0, "high": 0, "max": 0, "oom": 0, "oom_kill": 0, "oom_group_kill": 0}, "swap_limit_bytes": 0, "reviewer_exit_code": 3}
2026-11-27T19:12:04.2146670Z Traceback (most recent call last):
2026-11-27T19:12:04.2148235Z File "/workspace/myfileagent/myfileagent-pipeline/ci/run_live_review.py", line 37, in <module>
2026-11-27T19:12:04.2151412Z assert result.returncode == 0 and events['oom_kill'] == 0 and peak <= limit, 'Live acceptance gate failed'
2026-11-27T19:12:04.2153479Z ^^^^^^^^^^^^^
2026-11-27T19:12:04.2154844Z AssertionError: Live acceptance gate failed
2026-11-27T19:12:04.2621788Z ❌ Failure - Main Run real model under measured 250 MB cap
2026-11-27T19:12:04.3107436Z exitcode '1': failure
2026-11-27T19:12:04.4623513Z ::group::Run Preserve raw model and resource evidence
2026-11-27T19:12:04.4623983Z with:
2026-11-27T19:12:04.4739647Z if-no-files-found: warn
2026-11-27T19:12:04.4740606Z name: live-evidence-${{ github.run_id }}-${{ github.sha }}
2026-11-27T19:12:04.4740884Z path: out/review\nout/resource.json
2026-11-27T19:12:04.4741104Z retention-days: 30
2026-11-27T19:12:11.5938462Z Multiple search paths detected. Calculating the least common ancestor of all paths
2026-11-27T19:12:11.5964659Z The least common ancestor is /workspace/myfileagent/myfileagent-pipeline/out. This will be the root directory of the artifact
2026-11-27T19:12:11.5964890Z With the provided path, there will be 2 files uploaded
2026-11-27T19:12:11.6006966Z Starting artifact upload
2026-11-27T19:12:11.6007808Z For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
2026-11-27T19:12:11.6017642Z Artifact name is valid!
2026-11-27T19:12:11.9263852Z Container for artifact "live-evidence-42-0311260ddf813ecd8d4f4c6889c7a0775e7511d5" successfully created. Starting upload of file(s)
2026-11-27T19:12:12.4703765Z Total size of all the files uploaded is 565 bytes
2026-11-27T19:12:12.4704663Z File upload process has finished. Finalizing the artifact upload
2026-11-27T19:12:12.6905749Z Artifact has been finalized. All files have been successfully uploaded!
2026-11-27T19:12:12.6906477Z
2026-11-27T19:12:12.6906647Z The raw size of all the files that were specified for upload is 930 bytes
2026-11-27T19:12:12.6906939Z The size of all the files that were uploaded is 565 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage
2026-11-27T19:12:12.6907194Z
2026-11-27T19:12:12.6907354Z Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads
2026-11-27T19:12:12.6907546Z
2026-11-27T19:12:12.6907733Z Artifact live-evidence-42-0311260ddf813ecd8d4f4c6889c7a0775e7511d5 has been successfully uploaded!
2026-11-27T19:12:12.7395355Z ::endgroup::
2026-11-27T19:12:12.8373766Z skipping post step for 'Publish ready bundle for this exact run and attempt'; main step was skipped
2026-11-27T19:12:13.0074151Z expression '${{ github.sha }}' rewritten to 'format('{0}', github.sha)'
2026-11-27T19:12:13.0075488Z evaluating expression 'format('{0}', github.sha)'
2026-11-27T19:12:13.0084079Z expression 'format('{0}', github.sha)' evaluated to '%!t(string=0311260ddf813ecd8d4f4c6889c7a0775e7511d5)'
2026-11-27T19:12:13.0678814Z evaluating expression 'always()'
2026-11-27T19:12:13.0692655Z expression 'always()' evaluated to 'true'
2026-11-27T19:12:13.0693324Z ⭐ Run Post https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:12:13.0693979Z Writing entry to tarball workflow/outputcmd.txt len:0
2026-11-27T19:12:13.0694308Z Writing entry to tarball workflow/statecmd.txt len:0
2026-11-27T19:12:13.0694727Z Writing entry to tarball workflow/pathcmd.txt len:0
2026-11-27T19:12:13.0694944Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:12:13.0695131Z Writing entry to tarball workflow/SUMMARY.md len:0
2026-11-27T19:12:13.0696186Z Extracting content to '/var/run/act'
2026-11-27T19:12:13.0903321Z run post step for 'https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683'
2026-11-27T19:12:13.0904566Z executing remote job container: [node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js]
2026-11-27T19:12:13.0904855Z 🐳 docker exec cmd=[node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js] user= workdir=
2026-11-27T19:12:13.0911381Z Exec command '[node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js]'
2026-11-27T19:12:13.0929009Z Working directory '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:12:14.1950569Z [command]/usr/bin/git version
2026-11-27T19:12:14.2804485Z git version 2.39.5
2026-11-27T19:12:14.2984191Z ***
2026-11-27T19:12:14.3177125Z Temporarily overriding HOME='/tmp/64da97c2-98f7-4c3b-bd56-8948c48dc430' before making global git config changes
2026-11-27T19:12:14.3222061Z Adding repository directory to the temporary git global config as a safe directory
2026-11-27T19:12:14.3302613Z [command]/usr/bin/git config --global --add safe.directory /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:12:14.3595817Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:12:14.3730559Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:12:14.5122686Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:12:14.5280117Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:12:14.6558074Z ✅ Success - Post https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:12:14.7194357Z Cleaning up container for job review
2026-11-27T19:12:16.8036577Z Removed container: 827197b2192c5d48c1563edfc19dd544dc5bf8ea614a0bd87b9d957fdd57e9b3
2026-11-27T19:12:16.8260393Z 🐳 docker volume rm GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e
2026-11-27T19:12:16.9363347Z 🐳 docker volume rm GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e-env
2026-11-27T19:12:17.6141737Z 🏁 Job failed
2026-11-27T19:12:17.6818537Z Job 'review' failed
@@ -0,0 +1,16 @@
{
"scope": "actual Actions job including runtime preparation, reviewer and private tmpfs model",
"requested_memory_limit_bytes": 250000000,
"memory_limit_bytes": 249999360,
"memory_peak_bytes": 218419200,
"memory_events": {
"low": 0,
"high": 0,
"max": 0,
"oom": 0,
"oom_kill": 0,
"oom_group_kill": 0
},
"swap_limit_bytes": 0,
"reviewer_exit_code": 3
}
@@ -0,0 +1,16 @@
{
"source_commit": "0311260ddf813ecd8d4f4c6889c7a0775e7511d5",
"model_id": null,
"status": "error",
"summary": "RuntimeError: review could not complete",
"diff": "",
"input_tokens": null,
"output_tokens": null,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T19:12:03.679089Z",
"finished_at": "2026-11-27T19:12:04.196663Z",
"elapsed_seconds": 0.517523,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"diagnostic": "RuntimeError: llama-completion exited 1"
}
@@ -0,0 +1,2 @@
069bcb417438b4961e3ae5e89b5d4fadcab71b6a2c1b630bd28a919ed3b1c905 review.json
b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180 reviewed.py
@@ -0,0 +1 @@
{"attempt": "1", "mode": "live", "run_id": "43", "schema_version": 1, "source_commit": "c735c8c6934c3084944de3077dfba027bf423bef"}
@@ -0,0 +1,47 @@
{
"source_commit": "c735c8c6934c3084944de3077dfba027bf423bef",
"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-27T19:16:55.203351Z",
"finished_at": "2026-11-27T19:16:58.259482Z",
"elapsed_seconds": 3.0561,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
"raw_response_file": "raw_response.txt",
"runtime_response_file": "runtime_response.json",
"resource_measurement": {
"scope": "job cgroup including preparation, reviewer and private tmpfs model",
"requested_memory_limit_bytes": 250000000,
"memory_limit_bytes": 249999360,
"memory_peak_bytes": 249999360,
"memory_events": {
"low": 0,
"high": 0,
"max": 433,
"oom": 0,
"oom_kill": 0,
"oom_group_kill": 0
},
"swap_limit_bytes": 0,
"reviewer_exit_code": 0
},
"model_lock_sha256": "ea56ca30322e2fd47236d9014dd86eb14e78a98a2e5b71e16b73f62ac8d6304b",
"raw_response": " print(\"hello\")\n\n\n",
"runtime_response": {
"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.545.667 I common_perf_print: samplers time = 0.36 ms / 28 tokens",
"0.01.545.679 I common_perf_print: prompt eval time = 258.99 ms / 23 tokens ( 11.26 ms per token, 88.81 tokens per second)"
]
}
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,52 @@
test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
test_total (test_pricing.PricingTests.test_total) ... ok
test_cli_corrected_and_malformed_json (test_reviewer.ReviewerTests.test_cli_corrected_and_malformed_json) ... ok
test_cli_rejected_and_unchanged (test_reviewer.ReviewerTests.test_cli_rejected_and_unchanged) ... ok
test_cli_usage_is_separate (test_reviewer.ReviewerTests.test_cli_usage_is_separate) ... ok
test_corrected (test_reviewer.ReviewerTests.test_corrected) ... ok
test_error (test_reviewer.ReviewerTests.test_error) ... ok
test_invalid_counts (test_reviewer.ReviewerTests.test_invalid_counts) ... ok
test_invalid_sha (test_reviewer.ReviewerTests.test_invalid_sha) ... ok
test_missing_candidate (test_reviewer.ReviewerTests.test_missing_candidate) ... ok
test_missing_counts (test_reviewer.ReviewerTests.test_missing_counts) ... ok
test_no_newline (test_reviewer.ReviewerTests.test_no_newline) ... ok
test_rejected_invalid_syntax (test_reviewer.ReviewerTests.test_rejected_invalid_syntax) ... ok
test_rejected_unrelated_edit (test_reviewer.ReviewerTests.test_rejected_unrelated_edit) ... ok
test_runtime_failure (test_reviewer.ReviewerTests.test_runtime_failure) ... ok
test_subprocess_timeout (test_reviewer.ReviewerTests.test_subprocess_timeout) ... ok
test_timeout (test_reviewer.ReviewerTests.test_timeout) ... ok
test_unchanged_skips_backend (test_reviewer.ReviewerTests.test_unchanged_skips_backend) ... ok
test_unrelated_syntax_error (test_reviewer.ReviewerTests.test_unrelated_syntax_error) ... ok
----------------------------------------------------------------------
Ran 19 tests in 2.187s
OK
test_concurrent_reservation (test_pipeline.PipelineTests.test_concurrent_reservation) ... ok
test_duplicate_and_symlink (test_pipeline.PipelineTests.test_duplicate_and_symlink) ... /usr/lib/python3.11/zipfile.py:1569: UserWarning: Duplicate name: 'reviewed.py'
return self._open_to_write(zinfo, force_zip64=force_zip64)
ok
test_fixture_cli_and_source_integrity (test_pipeline.PipelineTests.test_fixture_cli_and_source_integrity) ... ok
test_fixture_unchanged (test_pipeline.PipelineTests.test_fixture_unchanged) ... ok
test_fresh_output_required (test_pipeline.PipelineTests.test_fresh_output_required) ... ok
test_good_bundle_and_smoke (test_pipeline.PipelineTests.test_good_bundle_and_smoke) ... ok
test_measured_live_metric_fields (test_pipeline.PipelineTests.test_measured_live_metric_fields) ... ok
test_metrics_reject_fixture (test_pipeline.PipelineTests.test_metrics_reject_fixture) ... ok
test_missing_live_counts_are_unknown (test_pipeline.PipelineTests.test_missing_live_counts_are_unknown) ... ok
test_rejected_not_bundled (test_pipeline.PipelineTests.test_rejected_not_bundled) ... ok
test_runtime_failure_reaches_smoke (test_pipeline.PipelineTests.test_runtime_failure_reaches_smoke) ... ok
test_tampered_transfer (test_pipeline.PipelineTests.test_tampered_transfer) ... ok
test_unexpected_paths (test_pipeline.PipelineTests.test_unexpected_paths) ... ok
test_version_retry_and_mode (test_pipeline.PipelineTests.test_version_retry_and_mode) ... ok
test_wrong_identity (test_pipeline.PipelineTests.test_wrong_identity) ... ok
test_existing_version_refuses_changed_review (test_release.ReleaseTests.test_existing_version_refuses_changed_review) ... ok
test_publish_and_retry_preserve_bytes (test_release.ReleaseTests.test_publish_and_retry_preserve_bytes) ... Reusing immutable release and its original build identity
ok
test_report_mismatch_prevents_release (test_release.ReleaseTests.test_report_mismatch_prevents_release) ... ok
test_runtime_failure_prevents_release (test_release.ReleaseTests.test_runtime_failure_prevents_release) ... ok
test_failed_compile_removes_stale_publish_targets (test_tex_failure.CompilerFailureTests.test_failed_compile_removes_stale_publish_targets) ... ok
----------------------------------------------------------------------
Ran 20 tests in 2.886s
OK
@@ -0,0 +1,2 @@
version: 1.1.0-dev (build 12785, commit 55d482814)
built with GNU 11.4.0 for Linux x86_64
@@ -0,0 +1,7 @@
{
"number": 24,
"title": "Final project: integrate measured AI review with versioned CI release",
"html_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/24",
"created_at": "2026-11-27T19:12:40Z",
"body": "Track the final-project technical integration.\r\n\r\nImplementation branch: feature/final-ci-demo. Member 1 reviewer: 1449a8bf68a5013433225f77f5286bf8d6fd9468.\r\n\r\n- [x] Merge bounded real reviewer and checksum-pinned runtime.\r\n- [x] Pass 39 combined tests in the pinned compiler image.\r\n- [x] Configure live Actions review under a 250 MB cap with no swap.\r\n- [x] Configure exact-artifact Jenkins live job and measured metrics.\r\n- [ ] Verify actual live Actions \u2192 Jenkins \u2192 versioned ZIP run.\r\n- [ ] Verify deployed token, duration, memory and host-load evidence.\r\n- [ ] Verify downloaded release and immutable retry.\r\n\r\nReport writing is deferred. Evidence is retained under ci/evidence; earlier fixture runs remain explicitly separate from live-model evidence."
}
@@ -0,0 +1,52 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
},
{
"fileName": "release.json",
"relativePath": "out/collected/release/release.json"
},
{
"fileName": "ssw590-live-1.0.4.zip",
"relativePath": "out/collected/release/ssw590-live-1.0.4.zip"
},
{
"fileName": "ssw590-live-1.0.4.zip.sha256",
"relativePath": "out/collected/release/ssw590-live-1.0.4.zip.sha256"
},
{
"fileName": "test-result.json",
"relativePath": "out/collected/test-result.json"
},
{
"fileName": "verified.json",
"relativePath": "out/collected/verified/verified.json"
}
],
"building": false,
"duration": 187698,
"number": 1,
"result": "SUCCESS",
"timestamp": 1795807060620,
"manifest": {
"attempt": "1",
"jenkins_build": "1",
"mode": "live",
"payload_sha256": {
"README.txt": "b4c8df55e70139ab1f2c1b7b93c6e62b75de67abdfc37e9adb7187d272bad6b8",
"report-1.0.4.pdf": "7269861686dfb5d592a165e172ca9e3338b81f09e33b122bf4ff8ba459314c07",
"review.json": "069bcb417438b4961e3ae5e89b5d4fadcab71b6a2c1b630bd28a919ed3b1c905",
"reviewed.py": "b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180"
},
"run_id": "43",
"schema_version": 1,
"source_commit": "c735c8c6934c3084944de3077dfba027bf423bef",
"version": "1.0.4"
},
"zip_sha256": "2eed54036744e4e0eaeb91f001a15be169a3d13bb28a213c900f097af1f664c5",
"independent_verification": "companion checksum, all payload hashes, exact live review and fresh execution passed",
"download_url": "https://ci.myfileagent.tech/job/final-project-live/1/artifact/out/collected/release/ssw590-live-1.0.4.zip"
}
@@ -0,0 +1,14 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
}
],
"building": false,
"duration": 25642,
"number": 2,
"result": "FAILURE",
"timestamp": 1795807248575
}
@@ -0,0 +1,36 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
},
{
"fileName": "release.json",
"relativePath": "out/collected/release/release.json"
},
{
"fileName": "ssw590-live-1.0.4.zip",
"relativePath": "out/collected/release/ssw590-live-1.0.4.zip"
},
{
"fileName": "ssw590-live-1.0.4.zip.sha256",
"relativePath": "out/collected/release/ssw590-live-1.0.4.zip.sha256"
},
{
"fileName": "test-result.json",
"relativePath": "out/collected/test-result.json"
},
{
"fileName": "verified.json",
"relativePath": "out/collected/verified/verified.json"
}
],
"building": false,
"duration": 156705,
"number": 3,
"result": "SUCCESS",
"timestamp": 1795807274328,
"zip_sha256": "2eed54036744e4e0eaeb91f001a15be169a3d13bb28a213c900f097af1f664c5",
"byte_identical_to_live1": true
}
@@ -0,0 +1,298 @@
{
"start_epoch": 1795806835.203351,
"end_epoch": 1795807308.318,
"step_seconds": 30,
"host_scope": "Shared Droplet, not model-only CPU/RSS",
"series": {
"input_tokens": [
{
"metric": {
"__name__": "review_input_tokens",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"values": [
[
1795807135.203,
"23"
],
[
1795807165.203,
"23"
],
[
1795807195.203,
"23"
],
[
1795807225.203,
"23"
],
[
1795807255.203,
"23"
],
[
1795807285.203,
"23"
]
]
}
],
"output_tokens": [
{
"metric": {
"__name__": "review_output_tokens",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"values": [
[
1795807135.203,
"5"
],
[
1795807165.203,
"5"
],
[
1795807195.203,
"5"
],
[
1795807225.203,
"5"
],
[
1795807255.203,
"5"
],
[
1795807285.203,
"5"
]
]
}
],
"review_duration": [
{
"metric": {
"__name__": "review_duration_seconds",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"values": [
[
1795807135.203,
"3.0561"
],
[
1795807165.203,
"3.0561"
],
[
1795807195.203,
"3.0561"
],
[
1795807225.203,
"3.0561"
],
[
1795807255.203,
"3.0561"
],
[
1795807285.203,
"3.0561"
]
]
}
],
"job_memory_peak": [
{
"metric": {
"__name__": "review_job_memory_peak_bytes",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"values": [
[
1795807135.203,
"249999360"
],
[
1795807165.203,
"249999360"
],
[
1795807195.203,
"249999360"
],
[
1795807225.203,
"249999360"
],
[
1795807255.203,
"249999360"
],
[
1795807285.203,
"249999360"
]
]
}
],
"host_cpu_percent": [
{
"metric": {},
"values": [
[
1795806835.203,
"63.311111111090426"
],
[
1795806865.203,
"77.03333333335145"
],
[
1795806895.203,
"90.91111111111887"
],
[
1795806925.203,
"89.1555555555452"
],
[
1795806955.203,
"78.0111111111344"
],
[
1795806985.203,
"73.61111111111111"
],
[
1795807015.203,
"83.96666666667443"
],
[
1795807045.203,
"92.47777777775708"
],
[
1795807075.203,
"95.3888888889277"
],
[
1795807105.203,
"95.37777777780624"
],
[
1795807135.203,
"97.23333333334368"
],
[
1795807165.203,
"97.73333333329194"
],
[
1795807195.203,
"96.33333333334627"
],
[
1795807225.203,
"96.41131048277165"
],
[
1795807255.203,
"95.85555555557626"
],
[
1795807285.203,
"96.19999999995343"
]
]
}
],
"host_available_memory": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node"
},
"values": [
[
1795806835.203,
"445128704"
],
[
1795806865.203,
"527900672"
],
[
1795806895.203,
"559788032"
],
[
1795806925.203,
"540057600"
],
[
1795806955.203,
"533585920"
],
[
1795806985.203,
"496340992"
],
[
1795807015.203,
"522829824"
],
[
1795807045.203,
"557027328"
],
[
1795807075.203,
"558444544"
],
[
1795807105.203,
"538083328"
],
[
1795807135.203,
"489725952"
],
[
1795807165.203,
"488443904"
],
[
1795807195.203,
"473464832"
],
[
1795807225.203,
"406007808"
],
[
1795807255.203,
"530657280"
],
[
1795807285.203,
"494395392"
]
]
}
]
}
}
@@ -0,0 +1,71 @@
{
"review_input_tokens{mode=\"live\"}": [
{
"metric": {
"__name__": "review_input_tokens",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"value": [
1795807124.736,
"23"
]
}
],
"review_output_tokens{mode=\"live\"}": [
{
"metric": {
"__name__": "review_output_tokens",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"value": [
1795807124.753,
"5"
]
}
],
"review_duration_seconds{mode=\"live\"}": [
{
"metric": {
"__name__": "review_duration_seconds",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"value": [
1795807124.756,
"3.0561"
]
}
],
"review_job_memory_peak_bytes{mode=\"live\"}": [
{
"metric": {
"__name__": "review_job_memory_peak_bytes",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"value": [
1795807124.76,
"249999360"
]
}
],
"node_textfile_scrape_error": [
{
"metric": {
"__name__": "node_textfile_scrape_error",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795807124.763,
"0"
]
}
]
}
+54
View File
@@ -0,0 +1,54 @@
{
"verified_implementation": "c735c8c6934c3084944de3077dfba027bf423bef",
"member1_published_head": "1449a8bf68a5013433225f77f5286bf8d6fd9468",
"member1_optional_hardening": "reviewer implementation adopted and tested, plus Python 3.11 preparation compatibility",
"issue": 24,
"actions_run": 43,
"jenkins_live_runs": {
"1": "SUCCESS: actual live release",
"2": "Expected FAILURE: invalid Actions artifact, no ZIP",
"3": "SUCCESS: byte-identical immutable retry"
},
"tests": {
"reviewer_and_existing": 19,
"pipeline": 20,
"total": 39
},
"release_version": "1.0.4",
"zip_sha256": "2eed54036744e4e0eaeb91f001a15be169a3d13bb28a213c900f097af1f664c5",
"measured_review": {
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"input_tokens": 23,
"output_tokens": 5,
"elapsed_seconds": 3.0561,
"started_at": "2026-11-27T19:16:55.203351Z",
"finished_at": "2026-11-27T19:16:58.259482Z",
"resource_measurement": {
"scope": "job cgroup including preparation, reviewer and private tmpfs model",
"requested_memory_limit_bytes": 250000000,
"memory_limit_bytes": 249999360,
"memory_peak_bytes": 249999360,
"memory_events": {
"low": 0,
"high": 0,
"max": 433,
"oom": 0,
"oom_kill": 0,
"oom_group_kill": 0
},
"swap_limit_bytes": 0,
"reviewer_exit_code": 0
}
},
"pdf": {
"pages": 170,
"source_model_tokens_code_verified": true
},
"monitoring": {
"actual_prometheus_samples_verified": true,
"grafana_panels_loaded": 8,
"screenshots_captured": false
},
"report_prose": "deferred by user",
"temporary_jenkins_access": "revoked and file removed"
}
+70
View File
@@ -0,0 +1,70 @@
{
"observed_epoch": 1795711458,
"queries": {
"node_textfile_scrape_error": [
{
"metric": {
"__name__": "node_textfile_scrape_error",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795711458.653,
"0"
]
}
],
"node_scrape_collector_success{collector=\"textfile\"}": [
{
"metric": {
"__name__": "node_scrape_collector_success",
"collector": "textfile",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795711458.655,
"1"
]
}
],
"up{job=\"node\"}": [
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795711521.843,
"1"
]
}
]
},
"live_tokens_emitted": false,
"connectivity_probe": {
"query": "ssw590_collector_check",
"result": [
{
"metric": {
"__name__": "ssw590_collector_check",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795711663.854,
"1"
]
}
],
"removed_after_check": true
},
"grafana": {
"uid": "ssw590-final-project",
"url": "https://metrics.myfileagent.tech/d/ssw590-final-project",
"provisioned_resource_verified": true,
"panels": 6,
"availability_series": 2
}
}
+27
View File
@@ -0,0 +1,27 @@
test_concurrent_reservation (test_pipeline.PipelineTests.test_concurrent_reservation) ... ok
test_duplicate_and_symlink (test_pipeline.PipelineTests.test_duplicate_and_symlink) ... /usr/lib/python3.11/zipfile.py:1569: UserWarning: Duplicate name: 'reviewed.py'
return self._open_to_write(zinfo, force_zip64=force_zip64)
ok
test_fixture_cli_and_source_integrity (test_pipeline.PipelineTests.test_fixture_cli_and_source_integrity) ... ok
test_fixture_unchanged (test_pipeline.PipelineTests.test_fixture_unchanged) ... ok
test_fresh_output_required (test_pipeline.PipelineTests.test_fresh_output_required) ... ok
test_good_bundle_and_smoke (test_pipeline.PipelineTests.test_good_bundle_and_smoke) ... ok
test_metrics_reject_fixture (test_pipeline.PipelineTests.test_metrics_reject_fixture) ... ok
test_missing_live_counts_are_unknown (test_pipeline.PipelineTests.test_missing_live_counts_are_unknown) ... ok
test_rejected_not_bundled (test_pipeline.PipelineTests.test_rejected_not_bundled) ... ok
test_runtime_failure_reaches_smoke (test_pipeline.PipelineTests.test_runtime_failure_reaches_smoke) ... ok
test_tampered_transfer (test_pipeline.PipelineTests.test_tampered_transfer) ... ok
test_unexpected_paths (test_pipeline.PipelineTests.test_unexpected_paths) ... ok
test_version_retry_and_mode (test_pipeline.PipelineTests.test_version_retry_and_mode) ... ok
test_wrong_identity (test_pipeline.PipelineTests.test_wrong_identity) ... ok
test_existing_version_refuses_changed_review (test_release.ReleaseTests.test_existing_version_refuses_changed_review) ... ok
test_publish_and_retry_preserve_bytes (test_release.ReleaseTests.test_publish_and_retry_preserve_bytes) ... Reusing immutable release and its original build identity
ok
test_report_mismatch_prevents_release (test_release.ReleaseTests.test_report_mismatch_prevents_release) ... ok
test_runtime_failure_prevents_release (test_release.ReleaseTests.test_runtime_failure_prevents_release) ... ok
test_failed_compile_removes_stale_publish_targets (test_tex_failure.CompilerFailureTests.test_failed_compile_removes_stale_publish_targets) ... ok
----------------------------------------------------------------------
Ran 19 tests in 2.603s
OK
@@ -0,0 +1,5 @@
{
"temporary_jenkins_token": "revoked",
"revocation_verified": true,
"credential_file": "removed"
}
+371
View File
@@ -0,0 +1,371 @@
"""Exact-bundle validation and immutable release tooling; standard library only."""
import argparse
import contextlib
import fcntl
import hashlib
import io
import json
import os
from pathlib import Path
import re
import shutil
import stat
import subprocess
import sys
import tempfile
import urllib.request
import zipfile
ROOT = Path(__file__).resolve().parents[1]
BASE = 'https://myfileagent.tech'
REPO = 'myfileagent/myfileagent-pipeline'
PAYLOAD = {'reviewed.py', 'review.json'}
FILES = PAYLOAD | {'bundle.json', 'SHA256SUMS'}
MAX_BYTES = 2 * 1024 * 1024
def digest(data):
return hashlib.sha256(data).hexdigest()
def write_json(path, data):
path = Path(path)
path.parent.mkdir(parents=True, exist_ok=True)
tmp = path.with_name(path.name + '.tmp')
tmp.write_text(json.dumps(data, sort_keys=True, indent=2) + '\n', encoding='utf-8')
os.replace(tmp, path)
def identity(sha, run, attempt, mode):
if not re.fullmatch('[0-9a-f]{40}', str(sha)):
raise ValueError('Expected full lowercase SHA-1 source commit')
if any(not re.fullmatch('[1-9][0-9]*', str(x)) for x in (run, attempt)):
raise ValueError('Run ID and attempt must be positive integers')
if mode not in ('fixture', 'live'):
raise ValueError('Explicit fixture/live mode required')
return dict(schema_version=1, source_commit=sha, run_id=str(run), attempt=str(attempt), mode=mode)
def bundle_name(meta):
return f"review-{meta['run_id']}-attempt-{meta['attempt']}-{meta['source_commit']}"
def review_metadata(raw, expected):
data = json.loads(raw)
required = {'source_commit', 'model_id', 'status', 'summary', 'diff', 'input_tokens', 'output_tokens'}
if not isinstance(data, dict) or not required <= data.keys():
raise ValueError('Missing review metadata fields')
if data['source_commit'] != expected['source_commit'] or data['status'] not in ('corrected', 'unchanged'):
raise ValueError('Review identity/status does not permit a ready bundle')
if not all(isinstance(data[x], str) for x in ('summary', 'diff')):
raise ValueError('Review summary and diff must be strings')
if data.get('mode', expected['mode']) != expected['mode']:
raise ValueError('Review mode mismatch')
for key in ('input_tokens', 'output_tokens'):
value = data[key]
if value is not None and (type(value) is not int or value < 0):
raise ValueError('Invalid token count')
if data['status'] == 'corrected' and (not isinstance(data['model_id'], str) or not data['model_id']):
raise ValueError('Corrected review must identify its model')
if expected['mode'] == 'fixture' and data['model_id'] != 'fixture-model':
raise ValueError('Fixture model ID required')
if expected['mode'] == 'live' and data['model_id'] == 'fixture-model':
raise ValueError('Fixture data cannot be released in live mode')
return data
def zip_bytes(contents):
out = io.BytesIO()
with zipfile.ZipFile(out, 'w', compression=zipfile.ZIP_DEFLATED) as z:
for name, data in sorted(contents.items()):
info = zipfile.ZipInfo(name, date_time=(2020, 1, 1, 0, 0, 0))
info.compress_type = zipfile.ZIP_DEFLATED
info.external_attr = 0o100644 << 16
z.writestr(info, data)
return out.getvalue()
def create_bundle(review_dir, output, expected):
output = Path(output)
if output.exists():
raise ValueError('Refuse to overwrite a bundle')
files = {}
for name in PAYLOAD:
path = Path(review_dir) / name
if path.is_symlink() or not path.is_file() or path.stat().st_size > MAX_BYTES:
raise ValueError('Invalid review file')
files[name] = path.read_bytes()
review_metadata(files['review.json'], expected)
files['bundle.json'] = (json.dumps(expected, sort_keys=True)+'\n').encode()
files['SHA256SUMS'] = ''.join(f'{digest(files[n])} {n}\n' for n in sorted(PAYLOAD)).encode()
output.parent.mkdir(parents=True, exist_ok=True)
output.write_bytes(zip_bytes(files))
def read_bundle(path, expected):
if Path(path).stat().st_size > MAX_BYTES:
raise ValueError('Bundle exceeds size limit')
with zipfile.ZipFile(path) as z:
entries = z.infolist()
if len(entries) != len(FILES) or {i.filename for i in entries} != FILES:
raise ValueError('Unexpected, duplicate or missing bundle files')
if sum(i.file_size for i in entries) > MAX_BYTES:
raise ValueError('Expanded bundle exceeds size limit')
for i in entries:
kind = stat.S_IFMT(i.external_attr >> 16)
if kind not in (0, stat.S_IFREG) or i.flag_bits & 1:
raise ValueError('Only unencrypted regular files are allowed')
files = {i.filename: z.read(i) for i in entries}
if json.loads(files['bundle.json']) != expected:
raise ValueError('Bundle SHA/run/attempt/mode mismatch')
required = ''.join(f'{digest(files[n])} {n}\n' for n in sorted(PAYLOAD)).encode()
if files['SHA256SUMS'] != required:
raise ValueError('Payload checksum mismatch')
review_metadata(files['review.json'], expected)
return files
def verify_bundle(path, destination, expected):
files = read_bundle(path, expected)
destination = Path(destination)
destination.mkdir(parents=True, exist_ok=False)
for name, data in files.items():
(destination / name).write_bytes(data)
write_json(destination / 'verified.json', dict(**expected, bundle_sha256=digest(Path(path).read_bytes())))
return files
class SameOrigin(urllib.request.HTTPRedirectHandler):
def redirect_request(self, req, fp, code, msg, headers, newurl):
from urllib.parse import urlsplit
if urlsplit(newurl).scheme != 'https' or urlsplit(newurl).netloc != 'myfileagent.tech':
raise ValueError('Refuse cross-origin artifact redirect')
return super().redirect_request(req, fp, code, msg, headers, newurl)
def fetch_bundle(output, expected):
token = os.environ.get('GITEA_TOKEN', '')
opener = urllib.request.build_opener(SameOrigin())
headers = {'Authorization': 'token '+token} if token else {}
def get(url, limit):
with opener.open(urllib.request.Request(url, headers=headers), timeout=60) as response:
raw = response.read(limit+1)
if len(raw) > limit:
raise ValueError('Response exceeds size limit')
return raw
# Server-side success is checked independently from client-supplied metadata.
run = json.loads(get(f'{BASE}/api/v1/repos/{REPO}/actions/runs/{expected["run_id"]}', MAX_BYTES))
if run.get('conclusion') != 'success' or run.get('head_sha') != expected['source_commit']:
raise ValueError('Selected Actions run is not successful on the expected SHA')
if str(run.get('run_attempt', '1')) != expected['attempt']:
raise ValueError('Actions run attempt mismatch')
name = bundle_name(expected)
raw = get(f'{BASE}/{REPO}/actions/runs/{expected["run_id"]}/artifacts/{name}', MAX_BYTES)
# upload-artifact wraps our canonical review-bundle.zip in its own ZIP.
with zipfile.ZipFile(io.BytesIO(raw)) as outer:
entries = outer.infolist()
if len(entries) != 1 or entries[0].filename != 'review-bundle.zip' or entries[0].file_size > MAX_BYTES:
raise ValueError('Unexpected Actions artifact wrapper')
content = outer.read(entries[0])
output = Path(output)
output.parent.mkdir(parents=True, exist_ok=True)
with output.open('xb') as target:
target.write(content)
read_bundle(output, expected)
return run
@contextlib.contextmanager
def locked(state):
state = Path(state)
state.mkdir(parents=True, exist_ok=True)
with (state / '.lock').open('a') as lock:
fcntl.flock(lock, fcntl.LOCK_EX)
yield state
def release_key(meta):
# Mode separates simulated and live reservations. Model/runtime must be pinned in the commit.
return f"{meta['mode']}:{meta['source_commit']}"
def reserve(state, meta, baseline='1.0'):
if not re.fullmatch(r'(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)', baseline):
raise ValueError('Baseline must be Major.Minor')
with locked(state) as state:
path = state / 'versions.json'
registry = json.loads(path.read_text()) if path.exists() else {'baseline': baseline, 'next': 1, 'reservations': {}}
if registry['baseline'] != baseline:
raise ValueError('Baseline differs from durable registry')
key = release_key(meta)
if key not in registry['reservations']:
registry['reservations'][key] = f"{baseline}.{registry['next']}"
registry['next'] += 1
write_json(path, registry)
return registry['reservations'][key]
def smoke(path):
run = subprocess.run([sys.executable, str(path)], capture_output=True, text=True, timeout=10)
if run.returncode or run.stdout != 'hello\n':
raise ValueError('Reviewed-file smoke test failed')
def test_review(verified, receipt, release_version=None):
root = Path(verified)
subprocess.run([sys.executable, '-m', 'py_compile', str(root / 'reviewed.py')], check=True, timeout=10)
# Adopt Member 1's smoke entry point when integrated; retain the independent assertion.
member1 = ROOT / 'tests/smoke_demo.py'
if member1.exists():
try:
subprocess.run([sys.executable, str(member1), str(root/'reviewed.py')], check=True, timeout=20)
except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as exc:
raise ValueError('Member 1 smoke test failed') from exc
smoke(root / 'reviewed.py')
if release_version is not None and not re.fullmatch(r'[0-9]+\.[0-9]+\.[0-9]+', release_version):
raise ValueError('Invalid release version')
write_json(receipt, {'reviewed_sha256': digest((root/'reviewed.py').read_bytes()),
'result': 'passed', 'release_version': release_version})
def publish(bundle, expected, pdf, state, output, baseline, jenkins_build):
files = read_bundle(bundle, expected)
review = json.loads(files['review.json'])
version = reserve(state, expected, baseline)
pdf = Path(pdf)
from pypdf import PdfReader
reader = PdfReader(pdf)
text = '\n'.join(p.extract_text() or '' for p in reader.pages)
for value in [version, expected['source_commit']]:
if value not in text:
raise ValueError('PDF is missing release identity')
build_meta = json.loads(pdf.with_name('build-manifest.json').read_text())
if (build_meta.get('kind') != 'demo-syntax-review'
or build_meta.get('document_version') != version
or build_meta.get('release_version') != version or build_meta.get('commit') != expected['source_commit']
or build_meta.get('review_sha256') != digest(files['review.json'])
or build_meta.get('reviewed_sha256') != digest(files['reviewed.py'])
or build_meta.get('pdf_sha256') != digest(pdf.read_bytes())
or build_meta.get('run_id') != expected['run_id'] or build_meta.get('attempt') != expected['attempt']
or build_meta.get('mode') != expected['mode']
or build_meta.get('model_id') != review['model_id']
or build_meta.get('review_status') != review['status']):
raise ValueError('Report manifest does not match this verified bundle')
with tempfile.TemporaryDirectory() as temp:
candidate = Path(temp)/'reviewed.py'
candidate.write_bytes(files['reviewed.py'])
smoke(candidate) # Publication cannot bypass the behavior gate.
contents = {n: files[n] for n in PAYLOAD}
contents[f'report-{version}.pdf'] = pdf.read_bytes()
contents['VERSION.txt'] = (version + '\n').encode()
contents['README.txt'] = (f'SSW590 model-assisted syntax review demo {version}\nMode: {expected["mode"]}\n'
f'Source: {expected["source_commit"]}\nPython 3 required (tested by CI).\n'
'Extract into a fresh directory; run: python3 reviewed.py\nExpected stdout: hello\n'
'Compare payload SHA-256 hashes with manifest.json; compare the ZIP with its companion .sha256.\n'
'Fixture mode is simulated evidence, not a real AI review.\n').encode()
manifest = dict(**expected, version=version, document_version=version, jenkins_build=str(jenkins_build),
payload_sha256={n:digest(b) for n,b in sorted(contents.items())})
contents['manifest.json'] = (json.dumps(manifest, sort_keys=True, indent=2)+'\n').encode()
archive = zip_bytes(contents)
name = f'ssw590-{expected["mode"]}-{version}.zip'
with locked(state) as state:
release = state/'releases'/name
release.parent.mkdir(exist_ok=True)
if release.exists():
# A published version is immutable. A new build identity/PDF cannot silently overwrite it.
if release.read_bytes() != archive:
previous = release.read_bytes()
with zipfile.ZipFile(io.BytesIO(previous)) as z:
old_manifest = json.loads(z.read('manifest.json'))
if (old_manifest['source_commit'] != expected['source_commit']
or old_manifest['mode'] != expected['mode']
or any(z.read(n) != files[n] for n in PAYLOAD)):
raise ValueError('Version already published with different reviewed payload')
archive = previous
manifest = old_manifest
print('Reusing immutable release and its original build identity', file=sys.stderr)
else:
tmp = release.with_suffix('.tmp')
tmp.write_bytes(archive)
os.replace(tmp, release)
out = Path(output)
out.mkdir(parents=True, exist_ok=True)
(out/name).write_bytes(archive)
(out/(name+'.sha256')).write_text(f'{digest(archive)} {name}\n')
with zipfile.ZipFile(io.BytesIO(archive)) as release_zip:
archived_pdf = release_zip.read(f'report-{version}.pdf')
(out/f'report-{version}.pdf').write_bytes(archived_pdf)
(out/f'report-{version}.pdf.sha256').write_text(
f'{digest(archived_pdf)} report-{version}.pdf\n')
write_json(out/'release.json', manifest)
return name
def metrics(review, output, completed_at):
data = json.loads(Path(review).read_text())
if data.get('mode') != 'live' or data.get('model_id') == 'fixture-model':
raise ValueError('Only explicitly live metadata may emit live metrics')
rows = []
for key in ('input_tokens', 'output_tokens'):
value = data.get(key)
known = type(value) is int and value >= 0
rows += [f'review_{key}_available{{mode="live"}} {int(known)}']
if known:
rows += [f'review_{key}{{mode="live"}} {value}']
if completed_at is None and data.get('finished_at'):
from datetime import datetime
completed_at = int(datetime.fromisoformat(data['finished_at'].replace('Z', '+00:00')).timestamp())
elapsed = data.get('elapsed_seconds')
if type(elapsed) in (int, float) and 0 <= elapsed < float('inf'):
rows += [f'review_duration_seconds{{mode="live"}} {elapsed}']
resource = data.get('resource_measurement', {})
for field, metric in [('memory_peak_bytes', 'review_job_memory_peak_bytes'),
('memory_limit_bytes', 'review_job_memory_limit_bytes'),
('memory_target_bytes', 'review_job_memory_target_bytes')]:
value = resource.get(field)
if type(value) is int and value > 0:
rows += [f'{metric}{{mode="live"}} {value}']
exceeded = resource.get('memory_target_exceeded')
if type(exceeded) is bool:
peak, target = resource.get('memory_peak_bytes'), resource.get('memory_target_bytes')
if type(peak) is not int or type(target) is not int or exceeded != (peak > target):
raise ValueError('Memory target warning disagrees with measured peak')
rows += [f'review_job_memory_target_exceeded{{mode="live"}} {int(exceeded)}']
if not re.fullmatch('[0-9]+', str(completed_at)):
raise ValueError('Completion timestamp must be measured epoch seconds')
rows += [f'review_completed_timestamp_seconds{{mode="live"}} {completed_at}']
output = Path(output)
output.parent.mkdir(parents=True, exist_ok=True)
tmp = output.with_suffix('.tmp')
tmp.write_text('\n'.join(rows)+'\n')
os.replace(tmp, output)
def main():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument('action', choices=['bundle','fetch','verify','reserve','test','publish','metrics'])
p.add_argument('--sha'); p.add_argument('--run-id'); p.add_argument('--attempt', default='1')
p.add_argument('--mode', choices=['fixture','live'], default='fixture')
p.add_argument('--review-dir'); p.add_argument('--bundle'); p.add_argument('--output')
p.add_argument('--state'); p.add_argument('--baseline', default='1.0'); p.add_argument('--pdf')
p.add_argument('--jenkins-build', default='local'); p.add_argument('--completed-at')
p.add_argument('--release-version')
a = p.parse_args()
if a.action == 'test':
test_review(a.review_dir, a.output, a.release_version); return
if a.action == 'metrics':
metrics(a.review_dir+'/review.json', a.output, a.completed_at); return
meta = identity(a.sha,a.run_id,a.attempt,a.mode)
if a.action == 'bundle': create_bundle(a.review_dir,a.output,meta)
elif a.action == 'fetch': print(json.dumps(fetch_bundle(a.output,meta)))
elif a.action == 'verify': verify_bundle(a.bundle,a.output,meta)
elif a.action == 'reserve': print(reserve(a.state,meta,a.baseline))
elif a.action == 'publish': print(publish(a.bundle,meta,a.pdf,a.state,a.output,a.baseline,a.jenkins_build))
if __name__ == '__main__':
try:
main()
except Exception as exc:
print(f'Final-project gate failed: {type(exc).__name__}: {exc}', file=sys.stderr)
raise SystemExit(1)
+1
View File
@@ -0,0 +1 @@
print("hello"
+1
View File
@@ -0,0 +1 @@
print("hello")
+63
View File
@@ -0,0 +1,63 @@
"""Standalone simulated reviewer. Does not import Member 1's code."""
import argparse
import ast
import difflib
import json
from pathlib import Path
import re
def main():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument('--input', required=True)
p.add_argument('--source-commit', required=True)
p.add_argument('--out-dir', required=True)
p.add_argument('--case', choices=['good', 'rejected', 'error', 'runtime'], default='good')
a = p.parse_args()
out = Path(a.out_dir)
try:
out.mkdir(parents=True, exist_ok=False)
except OSError:
p.exit(3, 'A fresh writable output directory is required\n')
data = dict(source_commit=a.source_commit, model_id='fixture-model', mode='fixture',
status='error', summary='', diff='', input_tokens=24, output_tokens=8)
result = 3
try:
if not re.fullmatch('[0-9a-f]{40}', a.source_commit):
raise ValueError('Full SHA required')
source = Path(a.input).read_text(encoding='utf-8')
if a.case == 'error':
raise RuntimeError('Simulated operational error')
if a.case == 'rejected':
data.update(status='rejected', summary='Simulated rejected proposal')
result = 2
else:
if a.case == 'runtime':
candidate = 'raise RuntimeError("fixture")\n'
status = 'corrected'
else:
try:
ast.parse(source)
candidate, status = source, 'unchanged'
data.update(input_tokens=None, output_tokens=None)
except SyntaxError:
if source not in ['print("hello"', 'print("hello"\n']:
data.update(status='rejected', summary='Unsupported fixture')
(out / 'review.json').write_text(json.dumps(data, indent=2)+'\n')
return 2
candidate = source.rstrip('\n') + ')' + ('\n' if source.endswith('\n') else '')
status = 'corrected'
data.update(status=status, summary=f'SIMULATED {a.case} fixture; not live AI evidence',
diff=''.join(difflib.unified_diff(source.splitlines(True), candidate.splitlines(True),
fromfile='original.py', tofile='reviewed.py')))
(out / 'reviewed.py').write_text(candidate, encoding='utf-8')
result = 0
except Exception as exc:
data['summary'] = f'Simulated fixture failure: {type(exc).__name__}'
(out / 'reviewed.py').unlink(missing_ok=True)
(out / 'review.json').write_text(json.dumps(data, indent=2)+'\n', encoding='utf-8')
return result
if __name__ == '__main__':
raise SystemExit(main())
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow-definition plugin="workflow-job">
<description>SSW590 Member 2 fixture pipeline. Simulated review, not live model evidence. Separate from the protected-main Python check.</description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition><name>SOURCE_SHA</name><description>Full SHA matching the selected Actions run and current Member 2 branch HEAD</description><defaultValue></defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition><name>ACTIONS_RUN_ID</name><description>Successful exact Actions run ID</description><defaultValue></defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition><name>ACTIONS_ATTEMPT</name><defaultValue>1</defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.ChoiceParameterDefinition><name>MODE</name><choices class="java.util.Arrays$ArrayList"><a class="string-array"><string>fixture</string></a></choices></hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps">
<scm class="hudson.plugins.git.GitSCM" plugin="git">
<configVersion>2</configVersion>
<userRemoteConfigs><hudson.plugins.git.UserRemoteConfig><url>https://myfileagent.tech/myfileagent/myfileagent-pipeline.git</url></hudson.plugins.git.UserRemoteConfig></userRemoteConfigs>
<branches><hudson.plugins.git.BranchSpec><name>*/feature/final-ci-demo</name></hudson.plugins.git.BranchSpec></branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="empty-list"/>
<extensions/>
</scm>
<scriptPath>Jenkinsfile.final-project</scriptPath>
<lightweight>true</lightweight>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition>
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow-definition plugin="workflow-job">
<description>SSW590 integrated real-model pipeline. Exact Actions bundle and measured review evidence. Separate from the protected-main Python check.</description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition><name>SOURCE_SHA</name><description>Full SHA matching the selected Actions run and current Member 2 branch HEAD</description><defaultValue></defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition><name>ACTIONS_RUN_ID</name><description>Successful exact Actions run ID</description><defaultValue></defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition><name>ACTIONS_ATTEMPT</name><defaultValue>1</defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.ChoiceParameterDefinition><name>MODE</name><choices class="java.util.Arrays$ArrayList"><a class="string-array"><string>live</string><string>fixture</string></a></choices></hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps">
<scm class="hudson.plugins.git.GitSCM" plugin="git">
<configVersion>2</configVersion>
<userRemoteConfigs><hudson.plugins.git.UserRemoteConfig><url>https://myfileagent.tech/myfileagent/myfileagent-pipeline.git</url></hudson.plugins.git.UserRemoteConfig></userRemoteConfigs>
<branches><hudson.plugins.git.BranchSpec><name>*/feature/final-ci-demo</name></hudson.plugins.git.BranchSpec></branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="empty-list"/>
<extensions/>
</scm>
<scriptPath>Jenkinsfile.final-project</scriptPath>
<lightweight>true</lightweight>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition>
+5
View File
@@ -0,0 +1,5 @@
{
"image_id": "sha256:9c907055071888835492d1f479d032b522bb05a29300eff1d6beff1e09c40eb3",
"base": "python@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1",
"dockerfile": "ci/Dockerfile.live-actions"
}
+137
View File
@@ -0,0 +1,137 @@
"""Publish verified live review metrics and idempotent cumulative token totals.
The textfile directory is the only writable host mount in the trusted metrics
helper. Its ledger is authoritative; writing it before the .prom file lets a
retry finish an interrupted publication without counting the same run twice.
"""
import argparse
import fcntl
import json
import os
from pathlib import Path
import re
import tempfile
SHA = re.compile(r"[0-9a-f]{40}\Z")
POSITIVE = re.compile(r"[1-9][0-9]*\Z")
VERSION = re.compile(r"[0-9]+\.[0-9]+\.[0-9]+\Z")
TOTAL_NAMES = ("review_input_tokens_total", "review_output_tokens_total")
def atomic_write(path, data, mode=0o600):
path = Path(path)
with tempfile.NamedTemporaryFile(mode="w", encoding="utf-8", dir=path.parent,
prefix=path.name + ".", delete=False) as stream:
stream.write(data)
temp = Path(stream.name)
os.chmod(temp, mode)
os.replace(temp, path)
def total_lines(totals):
return ("# HELP review_input_tokens_total Measured live input tokens since counter activation.\n"
"# TYPE review_input_tokens_total counter\n"
f'review_input_tokens_total{{mode="live"}} {totals["input"]}\n'
"# HELP review_output_tokens_total Measured live output tokens since counter activation.\n"
"# TYPE review_output_tokens_total counter\n"
f'review_output_tokens_total{{mode="live"}} {totals["output"]}\n')
def load_ledger(path):
if not path.exists():
return {"schema_version": 1, "totals": {"input": 0, "output": 0}, "runs": {}}
ledger = json.loads(path.read_text(encoding="utf-8"))
if ledger.get("schema_version") != 1 or not isinstance(ledger.get("runs"), dict):
raise ValueError("Invalid token ledger")
totals = ledger.get("totals", {})
if any(type(totals.get(key)) is not int or totals[key] < 0 for key in ("input", "output")):
raise ValueError("Invalid token ledger totals")
return ledger
def publish(directory, review_path=None, bundle_path=None, gauge_path=None, version=None):
directory = Path(directory)
directory.mkdir(parents=True, exist_ok=True)
with (directory / ".final-project-metrics.lock").open("a") as lock:
fcntl.flock(lock, fcntl.LOCK_EX)
ledger_path = directory / "final-project-token-ledger.json"
prometheus_path = directory / "final-project.prom"
ledger = load_ledger(ledger_path)
if review_path is None:
# An honest zero baseline for cumulative totals. Existing per-run
# gauges are retained as historical last-run values.
if not ledger_path.exists():
existing = prometheus_path.read_text(encoding="utf-8") if prometheus_path.exists() else ""
atomic_write(ledger_path, json.dumps(ledger, sort_keys=True, indent=2) + "\n")
atomic_write(prometheus_path, existing.rstrip("\n") + "\n" + total_lines(ledger["totals"]), 0o644)
elif prometheus_path.exists():
os.chmod(prometheus_path, 0o644)
return ledger
review = json.loads(Path(review_path).read_text(encoding="utf-8"))
bundle = json.loads(Path(bundle_path).read_text(encoding="utf-8"))
if bundle.get("mode") != "live" or review.get("mode") != "live" or review.get("model_id") in (None, "fixture-model"):
raise ValueError("Only a verified real-model live run may update totals")
if review.get("source_commit") != bundle.get("source_commit") or not SHA.fullmatch(str(bundle.get("source_commit"))):
raise ValueError("Review and bundle source identities differ")
if any(not POSITIVE.fullmatch(str(bundle.get(key))) for key in ("run_id", "attempt")):
raise ValueError("Invalid Actions run identity")
if not VERSION.fullmatch(str(version)):
raise ValueError("Release version required for live metrics")
if review.get("status") != "corrected":
raise ValueError("Live demo requires a corrected review")
counts = {}
for key in ("input_tokens", "output_tokens"):
value = review.get(key)
if value is not None and (type(value) is not int or value < 0):
raise ValueError("Invalid measured token count")
counts[key] = value
gauges = Path(gauge_path).read_text(encoding="utf-8")
for key in ("input_tokens", "output_tokens"):
available = int(counts[key] is not None)
if f'review_{key}_available{{mode="live"}} {available}\n' not in gauges:
raise ValueError("Gauge availability disagrees with review")
if counts[key] is not None and f'review_{key}{{mode="live"}} {counts[key]}\n' not in gauges:
raise ValueError("Gauge count disagrees with review")
key = ":".join((bundle["source_commit"], str(bundle["run_id"]), str(bundle["attempt"])))
event = {"source_commit": bundle["source_commit"], "run_id": str(bundle["run_id"]),
"attempt": str(bundle["attempt"]), "version": version,
"input_tokens": counts["input_tokens"], "output_tokens": counts["output_tokens"]}
if key in ledger["runs"]:
if ledger["runs"][key] != event:
raise ValueError("Retry disagrees with recorded run")
else:
ledger["runs"][key] = event
for token_key, total_key in (("input_tokens", "input"), ("output_tokens", "output")):
if counts[token_key] is not None:
ledger["totals"][total_key] += counts[token_key]
# Commit the ledger first. An interrupted publication can safely retry.
atomic_write(ledger_path, json.dumps(ledger, sort_keys=True, indent=2) + "\n")
info = f'review_release_info{{mode="live",version="{version}"}} 1\n'
atomic_write(prometheus_path, gauges.rstrip("\n") + "\n" + total_lines(ledger["totals"]) + info, 0o644)
return ledger
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--metrics-dir", required=True)
parser.add_argument("--initialize", action="store_true")
parser.add_argument("--review")
parser.add_argument("--bundle")
parser.add_argument("--gauges")
parser.add_argument("--version")
args = parser.parse_args()
if args.initialize:
if any((args.review, args.bundle, args.gauges, args.version)):
parser.error("--initialize takes no review inputs")
result = publish(args.metrics_dir)
else:
if not all((args.review, args.bundle, args.gauges, args.version)):
parser.error("review, bundle, gauges and version are required")
result = publish(args.metrics_dir, args.review, args.bundle, args.gauges, args.version)
print(json.dumps({"totals": result["totals"], "recorded_runs": len(result["runs"])}))
if __name__ == "__main__":
main()
+60
View File
@@ -0,0 +1,60 @@
"""Run the pinned reviewer inside the actual capped Actions job and retain measurements."""
import hashlib
import json
import os
from pathlib import Path
import shutil
import subprocess
import sys
root = Path(__file__).resolve().parents[1]
lock_bytes = (root/'reviewer/model-lock.json').read_bytes()
lock = json.loads(lock_bytes)
runtime = root/'out/runtime'
cgroup = Path('/sys/fs/cgroup')
limit = int((cgroup/'memory.max').read_text())
hard_ceiling = 384000000
target = lock['memory_target_bytes']
assert target == 250000000, 'Model lock must preserve the agreed memory target'
assert hard_ceiling - os.sysconf('SC_PAGE_SIZE') < limit <= hard_ceiling, 'Actual Actions container must have the page-rounded hard ceiling'
assert (cgroup/'memory.swap.max').read_text().strip() == '0', 'Swap must be disabled'
assert not os.environ.get('REVIEWER_BACKEND_COMMAND'), 'Fixture override is forbidden'
private = Path('/private-model')/lock['quantized_filename']
assert private.is_file(), 'Model must be downloaded into private tmpfs'
library = runtime/'libgomp-root'/lock['libgomp_library_path']
assert hashlib.sha256(library.read_bytes()).hexdigest() == lock['libgomp_library_sha256']
env = os.environ.copy()
env.update(REVIEWER_MODEL_PATH=str(private),
REVIEWER_LLAMA_COMPLETION=str(runtime/f"llama-{lock['runtime_tag']}"/lock['entrypoint']),
LD_LIBRARY_PATH=str(library.parent)+':'+str(runtime/f"llama-{lock['runtime_tag']}"))
result = subprocess.run([sys.executable,'-m','reviewer','--input','demo/demo.py',
'--source-commit',env['SOURCE_SHA'],'--out-dir','out/review'],cwd=root,env=env)
peak = int((cgroup/'memory.peak').read_text())
events = {k:int(v) for k,v in (line.split() for line in (cgroup/'memory.events').read_text().splitlines())}
measurement = dict(scope='job cgroup including preparation, reviewer and private tmpfs model',
requested_memory_limit_bytes=hard_ceiling,memory_limit_bytes=limit,
memory_target_bytes=target,memory_target_exceeded=peak > target,
memory_peak_bytes=peak,memory_events=events,
swap_limit_bytes=0,reviewer_exit_code=result.returncode)
Path('out').mkdir(exist_ok=True)
Path('out/resource.json').write_text(json.dumps(measurement,indent=2)+'\n')
print(json.dumps(measurement))
if peak > target:
print(f'WARNING: measured Actions job memory peak {peak} bytes exceeds the {target}-byte project target; continuing under the {limit}-byte hard ceiling', file=sys.stderr)
if events.get('max', 0):
print(f'WARNING: Actions job encountered {events["max"]} hard-ceiling pressure events; check resource.json for OOM events', file=sys.stderr)
assert result.returncode == 0 and events['oom_kill'] == 0 and peak <= limit, 'Live model or hard memory ceiling failed'
p=Path('out/review/review.json');data=json.loads(p.read_text())
assert data['mode']=='live' and data['status']=='corrected'
data['resource_measurement']=measurement
data['model_lock_sha256']=hashlib.sha256(lock_bytes).hexdigest()
data['raw_response']=(p.parent/'raw_response.txt').read_text()
data['runtime_response']=json.loads((p.parent/'runtime_response.json').read_text())
p.write_text(json.dumps(data,indent=2)+'\n')
subprocess.run([sys.executable,'tests/smoke_demo.py',str(p.parent/'reviewed.py')],check=True)
print(f'LIVE REVIEW ACCEPTED for source commit {data["source_commit"]}', flush=True)
print(f'Model: {data["model_id"]}; input tokens: {data["input_tokens"]}; output tokens: {data["output_tokens"]}', flush=True)
print(f'Raw model response: {data["raw_response"]!r}', flush=True)
print('Accepted one-character source diff:', flush=True)
print(data['diff'], end='' if data['diff'].endswith('\n') else '\n', flush=True)
print('Reviewed Python execution: PASS (stdout: hello)', flush=True)
+164
View File
@@ -0,0 +1,164 @@
import concurrent.futures
import io
import json
from pathlib import Path
import stat
import subprocess
import sys
import tempfile
import unittest
import zipfile
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
from ci.final_project import identity, create_bundle, read_bundle, verify_bundle, reserve, test_review, metrics, zip_bytes
SHA = 'a' * 40
META = identity(SHA, '1', '1', 'fixture')
def reserve_worker(args):
state, sha = args
return reserve(state, identity(sha, '1', '1', 'fixture'))
class PipelineTests(unittest.TestCase):
def setUp(self):
self.temp = tempfile.TemporaryDirectory()
self.addCleanup(self.temp.cleanup)
self.root = Path(self.temp.name)
self.review = self.root/'review'
self.review.mkdir()
self.review.joinpath('reviewed.py').write_text('print("hello")\n')
self.review.joinpath('review.json').write_text(json.dumps(dict(source_commit=SHA,
model_id='fixture-model', mode='fixture', status='corrected', summary='SIMULATED', diff='fixture',
input_tokens=24, output_tokens=8)))
self.bundle = self.root/'bundle.zip'
create_bundle(self.review, self.bundle, META)
def contents(self):
with zipfile.ZipFile(self.bundle) as z:
return {n:z.read(n) for n in z.namelist()}
def test_good_bundle_and_smoke(self):
out = self.root/'verified'
verify_bundle(self.bundle,out,META)
test_review(out,self.root/'tested.json')
self.assertEqual(json.loads((self.root/'tested.json').read_text())['result'],'passed')
def test_tampered_transfer(self):
files=self.contents();files['reviewed.py']=b'print("changed")\n'
self.bundle.write_bytes(zip_bytes(files))
with self.assertRaisesRegex(ValueError,'checksum'):read_bundle(self.bundle,META)
def test_wrong_identity(self):
for key,value in [('source_commit','b'*40),('run_id','2'),('attempt','2'),('mode','live')]:
with self.subTest(key=key), self.assertRaisesRegex(ValueError,'mismatch'):
read_bundle(self.bundle,{**META,key:value})
def test_unexpected_paths(self):
for name in ['../escape','/absolute','nested/file']:
files=self.contents();files[name]=b'bad'
path=self.root/'bad.zip';path.write_bytes(zip_bytes(files))
with self.subTest(name=name),self.assertRaises(ValueError):read_bundle(path,META)
def test_duplicate_and_symlink(self):
files=self.contents()
for kind in ['duplicate','symlink']:
out=io.BytesIO()
with zipfile.ZipFile(out,'w') as z:
for n,b in files.items():
info=zipfile.ZipInfo(n)
info.external_attr=((stat.S_IFLNK|0o777) if kind=='symlink' and n=='reviewed.py' else 0o100644)<<16
z.writestr(info,b)
if kind=='duplicate':z.writestr('reviewed.py',b'bad')
path=self.root/'bad.zip';path.write_bytes(out.getvalue())
with self.subTest(kind=kind),self.assertRaises(ValueError):read_bundle(path,META)
def test_fresh_output_required(self):
out=self.root/'verified';verify_bundle(self.bundle,out,META)
with self.assertRaises(FileExistsError):verify_bundle(self.bundle,out,META)
def test_rejected_not_bundled(self):
for status in ['rejected','error']:
data=json.loads((self.review/'review.json').read_text());data['status']=status
(self.review/'review.json').write_text(json.dumps(data))
with self.subTest(status=status),self.assertRaises(ValueError):create_bundle(self.review,self.root/'no.zip',META)
self.assertFalse((self.root/'no.zip').exists())
def test_runtime_failure_reaches_smoke(self):
(self.review/'reviewed.py').write_text('raise RuntimeError("fixture")\n')
path=self.root/'runtime.zip';create_bundle(self.review,path,META)
out=self.root/'runtime';verify_bundle(path,out,META)
with self.assertRaisesRegex(ValueError,'smoke'):test_review(out,self.root/'receipt.json')
self.assertFalse((self.root/'receipt.json').exists())
def test_version_retry_and_mode(self):
state=self.root/'state'
self.assertEqual(reserve(state,META),'1.0.1')
self.assertEqual(reserve(state,META),'1.0.1')
self.assertEqual(reserve(state,{**META,'mode':'live'}),'1.0.2')
with self.assertRaises(ValueError):reserve(state,META,'2.0')
def test_concurrent_reservation(self):
state=str(self.root/'state')
with concurrent.futures.ProcessPoolExecutor(max_workers=3) as pool:
same=list(pool.map(reserve_worker,[(state,SHA)]*6))
other=list(pool.map(reserve_worker,[(state,f'{i:040x}') for i in range(6)]))
self.assertEqual(len(set(same)),1)
self.assertEqual(len(set(other)),6)
self.assertNotIn(same[0],other)
def test_metrics_reject_fixture(self):
with self.assertRaises(ValueError):metrics(self.review/'review.json',self.root/'metrics.prom','123')
self.assertFalse((self.root/'metrics.prom').exists())
def test_missing_live_counts_are_unknown(self):
data=json.loads((self.review/'review.json').read_text())
data.update(mode='live',model_id='real-model',input_tokens=None,output_tokens=7)
(self.review/'review.json').write_text(json.dumps(data))
metrics(self.review/'review.json',self.root/'metrics.prom','123')
text=(self.root/'metrics.prom').read_text()
self.assertIn('review_input_tokens_available{mode="live"} 0',text)
self.assertNotIn('review_input_tokens{',text)
self.assertIn('review_output_tokens{mode="live"} 7',text)
def test_fixture_cli_and_source_integrity(self):
source=self.root/'source.py';source.write_text('print("hello"\n')
before=source.read_bytes()
for case,exit_code in [('good',0),('rejected',2),('error',3),('runtime',0)]:
out=self.root/case
run=subprocess.run([sys.executable,'ci/fixtures/reviewer_stub.py','--input',str(source),
'--source-commit',SHA,'--out-dir',str(out),'--case',case],capture_output=True)
self.assertEqual(run.returncode,exit_code,run.stderr)
self.assertEqual((out/'reviewed.py').exists(),exit_code==0)
self.assertEqual(source.read_bytes(),before)
def test_fixture_unchanged(self):
source=self.root/'valid.py';source.write_text('print("hello")\n')
out=self.root/'valid'
subprocess.run([sys.executable,'ci/fixtures/reviewer_stub.py','--input',str(source),
'--source-commit',SHA,'--out-dir',str(out)],check=True)
data=json.loads((out/'review.json').read_text())
self.assertEqual(data['status'],'unchanged');self.assertEqual(data['diff'],'')
self.assertEqual((out/'reviewed.py').read_bytes(),source.read_bytes())
def test_measured_live_metric_fields(self):
data=json.loads((self.review/'review.json').read_text())
data.update(mode='live',model_id='real-model',finished_at='2026-11-27T00:00:00Z',elapsed_seconds=2.5,
resource_measurement={'memory_peak_bytes':260000000,'memory_limit_bytes':384000000,
'memory_target_bytes':250000000,'memory_target_exceeded':True})
(self.review/'review.json').write_text(json.dumps(data))
metrics(self.review/'review.json',self.root/'metrics.prom',None)
text=(self.root/'metrics.prom').read_text()
self.assertIn('review_duration_seconds{mode="live"} 2.5',text)
self.assertIn('review_job_memory_peak_bytes{mode="live"} 260000000',text)
self.assertIn('review_job_memory_target_bytes{mode="live"} 250000000',text)
self.assertIn('review_job_memory_target_exceeded{mode="live"} 1',text)
self.assertIn('review_completed_timestamp_seconds{mode="live"} 1795737600',text)
data['resource_measurement']['memory_target_exceeded']=False
(self.review/'review.json').write_text(json.dumps(data))
with self.assertRaisesRegex(ValueError,'Memory target warning'):
metrics(self.review/'review.json',self.root/'bad-metrics.prom',None)
if __name__=='__main__':unittest.main()
+82
View File
@@ -0,0 +1,82 @@
import json
from pathlib import Path
import sys
import tempfile
import unittest
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
from ci.publish_live_metrics import publish
class LiveTotalsTests(unittest.TestCase):
def setUp(self):
self.temp = tempfile.TemporaryDirectory()
self.addCleanup(self.temp.cleanup)
self.root = Path(self.temp.name)
self.metrics_dir = self.root / "metrics"
self.metrics_dir.mkdir()
(self.metrics_dir / "final-project.prom").write_text('review_input_tokens{mode="live"} 23\n')
self.review = self.root / "review.json"
self.bundle = self.root / "bundle.json"
self.gauges = self.root / "gauges.prom"
self.source = "a" * 40
self.write_inputs(1, 23, 5)
def write_inputs(self, run, input_tokens, output_tokens):
self.review.write_text(json.dumps({"source_commit": self.source, "model_id": "real-model",
"mode": "live", "status": "corrected",
"input_tokens": input_tokens, "output_tokens": output_tokens}))
self.bundle.write_text(json.dumps({"source_commit": self.source, "mode": "live",
"run_id": str(run), "attempt": "1"}))
rows = []
for key, value in (("input_tokens", input_tokens), ("output_tokens", output_tokens)):
rows.append(f'review_{key}_available{{mode="live"}} {int(value is not None)}')
if value is not None:
rows.append(f'review_{key}{{mode="live"}} {value}')
self.gauges.write_text("\n".join(rows) + "\n")
def emit(self):
return publish(self.metrics_dir, self.review, self.bundle, self.gauges, "1.0.5")
def test_baseline_new_run_and_exact_retry(self):
initial = publish(self.metrics_dir)
self.assertEqual(initial["totals"], {"input": 0, "output": 0})
self.assertIn('review_input_tokens{mode="live"} 23', (self.metrics_dir / "final-project.prom").read_text())
self.assertEqual(self.emit()["totals"], {"input": 23, "output": 5})
self.assertEqual(self.emit()["totals"], {"input": 23, "output": 5})
self.write_inputs(2, 23, 5)
self.assertEqual(self.emit()["totals"], {"input": 46, "output": 10})
text = (self.metrics_dir / "final-project.prom").read_text()
self.assertIn('review_input_tokens_total{mode="live"} 46', text)
self.assertIn('review_output_tokens_total{mode="live"} 10', text)
self.assertIn('review_release_info{mode="live",version="1.0.5"} 1', text)
def test_missing_count_is_not_invented(self):
self.write_inputs(1, None, 5)
self.assertEqual(self.emit()["totals"], {"input": 0, "output": 5})
text = (self.metrics_dir / "final-project.prom").read_text()
self.assertNotIn('review_input_tokens{mode="live"}', text)
def test_reused_identity_with_different_count_is_rejected(self):
self.emit()
self.write_inputs(1, 24, 5)
with self.assertRaisesRegex(ValueError, "Retry disagrees"):
self.emit()
self.assertEqual(json.loads((self.metrics_dir / "final-project-token-ledger.json").read_text())["totals"],
{"input": 23, "output": 5})
def test_fixture_and_mismatched_gauge_rejected(self):
data = json.loads(self.review.read_text())
data["model_id"] = "fixture-model"
self.review.write_text(json.dumps(data))
with self.assertRaisesRegex(ValueError, "real-model"):
self.emit()
data["model_id"] = "real-model"
self.review.write_text(json.dumps(data))
self.gauges.write_text('review_input_tokens_available{mode="live"} 0\n')
with self.assertRaisesRegex(ValueError, "availability"):
self.emit()
if __name__ == "__main__":
unittest.main()
+76
View File
@@ -0,0 +1,76 @@
"""Publication gate tests run in the pinned compiler image (which provides pypdf)."""
import importlib.util
import io
import json
from pathlib import Path
import sys
import tempfile
import unittest
import zipfile
sys.path.insert(0,str(Path(__file__).resolve().parents[2]))
from ci.final_project import identity,create_bundle,publish,digest
@unittest.skipUnless(importlib.util.find_spec('pypdf'), 'pypdf is supplied by the pinned TeX image')
class ReleaseTests(unittest.TestCase):
def setUp(self):
from pypdf import PdfWriter
from pypdf.generic import DictionaryObject,NameObject,DecodedStreamObject
self.temp=tempfile.TemporaryDirectory();self.addCleanup(self.temp.cleanup)
self.root=Path(self.temp.name);self.meta=identity('a'*40,'1','1','fixture')
self.review=self.root/'review';self.review.mkdir()
(self.review/'reviewed.py').write_text('print("hello")\n')
(self.review/'review.json').write_text(json.dumps(dict(source_commit='a'*40,model_id='fixture-model',
mode='fixture',status='corrected',summary='fixture',diff='fixture',input_tokens=24,output_tokens=8)))
self.bundle=self.root/'review.zip';create_bundle(self.review,self.bundle,self.meta)
self.pdf=self.root/'main.pdf'
writer=PdfWriter();page=writer.add_blank_page(width=1200,height=800)
font=DictionaryObject({NameObject('/Type'):NameObject('/Font'),NameObject('/Subtype'):NameObject('/Type1'),NameObject('/BaseFont'):NameObject('/Helvetica')})
page[NameObject('/Resources')]=DictionaryObject({NameObject('/Font'):DictionaryObject({NameObject('/F1'):font})})
stream=DecodedStreamObject();stream.set_data(('BT /F1 10 Tf 40 700 Td (1.0.1 '+ 'a'*40+' Model-Assisted Syntax Review) Tj ET').encode())
page[NameObject('/Contents')]=writer._add_object(stream)
with self.pdf.open('wb') as f:writer.write(f)
self.manifest=dict(kind='demo-syntax-review',document_version='1.0.1',release_version='1.0.1',
commit='a'*40,review_sha256=digest((self.review/'review.json').read_bytes()),
reviewed_sha256=digest((self.review/'reviewed.py').read_bytes()),pdf_sha256=digest(self.pdf.read_bytes()),
run_id='1',attempt='1',mode='fixture',model_id='fixture-model',review_status='corrected')
self.write_manifest()
def write_manifest(self):
self.pdf.with_name('build-manifest.json').write_text(json.dumps(self.manifest))
def run_publish(self,build='1'):
return publish(self.bundle,self.meta,self.pdf,self.root/'state',self.root/'out','1.0',build)
def test_publish_and_retry_preserve_bytes(self):
name=self.run_publish();before=(self.root/'out'/name).read_bytes()
with zipfile.ZipFile(io.BytesIO(before)) as z:
manifest=json.loads(z.read('manifest.json'))
for path,sha in manifest['payload_sha256'].items():self.assertEqual(digest(z.read(path)),sha)
self.assertEqual(z.read('VERSION.txt'),b'1.0.1\n')
self.assertEqual(digest(z.read('report-1.0.1.pdf')),
digest((self.root/'out/report-1.0.1.pdf').read_bytes()))
self.run_publish('2')
self.assertEqual((self.root/'out'/name).read_bytes(),before)
self.assertEqual(json.loads((self.root/'out/release.json').read_text())['jenkins_build'],'1')
def test_report_mismatch_prevents_release(self):
self.manifest['reviewed_sha256']='b'*64;self.write_manifest()
with self.assertRaisesRegex(ValueError,'manifest'):self.run_publish()
self.assertFalse((self.root/'out').exists())
self.assertFalse((self.root/'state/releases').exists())
def test_runtime_failure_prevents_release(self):
(self.review/'reviewed.py').write_text('raise RuntimeError("fixture")\n')
self.bundle.unlink();create_bundle(self.review,self.bundle,self.meta)
self.manifest['reviewed_sha256']=digest((self.review/'reviewed.py').read_bytes());self.write_manifest()
with self.assertRaisesRegex(ValueError,'smoke'):self.run_publish()
self.assertFalse((self.root/'state/releases').exists())
def test_existing_version_refuses_changed_review(self):
self.run_publish()
data=json.loads((self.review/'review.json').read_text());data['summary']='different'
(self.review/'review.json').write_text(json.dumps(data))
self.bundle.unlink();create_bundle(self.review,self.bundle,self.meta)
self.manifest['review_sha256']=digest((self.review/'review.json').read_bytes());self.write_manifest()
with self.assertRaisesRegex(ValueError,'different reviewed payload'):self.run_publish('2')
+39
View File
@@ -0,0 +1,39 @@
"""Exercise a real compiler failure without modifying the project manual."""
from pathlib import Path
import shutil
import subprocess
import sys
import tempfile
import unittest
ROOT = Path(__file__).resolve().parents[2]
@unittest.skipUnless(shutil.which('latexmk'), 'Requires the pinned TeX image')
class CompilerFailureTests(unittest.TestCase):
def test_failed_compile_removes_stale_publish_targets(self):
with tempfile.TemporaryDirectory() as temp:
root = Path(temp)
for name in ('documentation/ci/build_manual.py', 'ci/final_project.py'):
target = root / name
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(ROOT / name, target)
(root / 'documentation/main.tex').write_text(
'\\documentclass{article}\n\\newcommand{\\DocumentVersion}{1.0}\n'
'\\begin{document}\n\\UndefinedFinalProjectCommand\n\\end{document}\n')
def git(*args):
return subprocess.check_output(['git', '-C', str(root), *args], stderr=subprocess.DEVNULL, text=True).strip()
git('init'); git('add', '.')
git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@localhost', 'commit', '-m', 'Isolated compiler failure fixture')
build = root / 'documentation/build'
build.mkdir()
for name in ('main.pdf', 'build-manifest.json'):
(build / name).write_text('stale output')
result = subprocess.run([sys.executable, str(root/'documentation/ci/build_manual.py'),
'--sha', git('rev-parse', 'HEAD'), '--run-number', '1', '--run-id', '1'],
capture_output=True, text=True, timeout=60)
self.assertNotEqual(result.returncode, 0)
self.assertIn('LaTeX compilation failed', result.stderr)
self.assertTrue((build/'main.log').is_file())
self.assertFalse((build/'main.pdf').exists())
self.assertFalse((build/'build-manifest.json').exists())
+33
View File
@@ -0,0 +1,33 @@
#!/bin/sh
# Called on the existing trusted agent. No host socket/network enters this container.
set -eu
name="ssw590-final-${JOB_BASE_NAME:-local}-${BUILD_NUMBER:-local}"
image='sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1'
case "$1" in
start)
docker run -d --name "$name" --network none --memory 256m --memory-swap 256m --cpus .65 --pids-limit 256 \
--mount type=volume,src=ssw590-final-project-state,dst=/state \
--workdir /work --entrypoint sleep "$image" 3600
docker cp . "$name:/work"
docker exec "$name" git config --global --add safe.directory /work
;;
metrics)
version="${2:?release version required for measured metrics}"
# The Jenkins workspace lives inside the agent container's Docker volume.
# Stream these four small inputs instead of trying to bind its path on the host.
tar -cf - ci/publish_live_metrics.py out/verified/review.json \
out/verified/bundle.json out/review.prom | docker run --rm -i --network none \
--memory 64m --memory-swap 64m --cpus .2 \
--read-only --tmpfs /tmp:rw,nosuid,noexec,size=8m \
--mount type=bind,src=/home/codex/ssw590-final-metrics,dst=/metrics \
--workdir /tmp -e PYTHONDONTWRITEBYTECODE=1 --entrypoint sh "$image" \
-c 'mkdir -p /tmp/work && tar -xf - -C /tmp/work && cd /tmp/work && \
python3 ci/publish_live_metrics.py --metrics-dir /metrics \
--review out/verified/review.json --bundle out/verified/bundle.json \
--gauges out/review.prom --version "$1"' sh "$version"
;;
exec) shift; docker exec "$name" "$@" ;;
collect) mkdir -p out/collected; docker cp "$name:/work/out/." out/collected/ ;;
stop) docker rm -f "$name" ;;
*) echo 'Expected start, exec, collect or stop' >&2; exit 2 ;;
esac
+29
View File
@@ -0,0 +1,29 @@
# Controlled syntax-review demo
The current live-demo input in `demo.py` is `print("hello"` with its final
closing parenthesis missing. The preceding preparation commit contained the
valid baseline `print("hello")`; the one-character edit is already committed.
To repeat the live demonstration later, restore the valid baseline in a
separate preparation commit, then delete only its final closing parenthesis
in a new live commit. The Actions reviewer sends exactly `print("hello"` to the
SmolLM2 model. It preserves the committed input and writes the validated repair
to `reviewed.py` in the review bundle. Jenkins verifies that bundle, builds the
short versioned demo PDF, tests the reviewed program, and packages the release.
The final-project workflow runs the reviewer and pipeline unit tests. Jenkins
then has a separate `Compile and execute model-reviewed Python` stage: it
compiles the verified `reviewed.py`, runs it, and requires exactly `hello` on
standard output. The original broken `demo.py` is intentionally not executed.
Legacy `pricing.py` tests belong to the older application and are not part of
this syntax-review demo.
The dashboard's cumulative live token panels update after Jenkins verifies and
publishes the measured review metrics and Prometheus scrapes them. The valid
baseline preparation commits used `[skip ci]`; the broken-input commit and a
future live review commit must run Actions. A Jenkins retry of the same run
does not add the token counts twice.
The complete workload's 250,000,000-byte memory target is a measured warning
threshold. Actions has a 384,000,000-byte hard ceiling with swap disabled; a
target overage is retained in the review evidence while a successful run continues.
+120
View File
@@ -0,0 +1,120 @@
#!/usr/bin/env python3
"""Build a short versioned LaTeX PDF from an exact verified review bundle."""
import argparse
import hashlib
import json
from pathlib import Path
import re
import shutil
import subprocess
import sys
import tempfile
ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(ROOT))
from ci.final_project import digest, identity, read_bundle
def tex(value):
mapping = {"\\": r"\textbackslash{}", "{": r"\{", "}": r"\}",
"_": r"\_", "%": r"\%", "&": r"\&", "#": r"\#", "$": r"\$",
"^": r"\textasciicircum{}", "~": r"\textasciitilde{}"}
return "".join(mapping.get(c, c) for c in str(value))
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--sha", required=True)
parser.add_argument("--run-number", required=True)
parser.add_argument("--run-id", required=True)
parser.add_argument("--attempt", required=True)
parser.add_argument("--review-bundle", required=True)
parser.add_argument("--release-version", required=True)
parser.add_argument("--mode", choices=("live", "fixture"), required=True)
parser.add_argument("--jenkins-build", required=True)
args = parser.parse_args()
if not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+", args.release_version):
raise ValueError("Major.Minor.Changelist release version required")
if not re.fullmatch(r"[1-9][0-9]*", args.run_number):
raise ValueError("Positive Actions run number required")
if not re.fullmatch(r"[A-Za-z0-9_-]{1,80}", args.jenkins_build):
raise ValueError("Invalid Jenkins build ID")
head = subprocess.check_output(("git", "-C", str(ROOT), "rev-parse", "HEAD"), text=True).strip()
if head != args.sha:
raise ValueError("Checkout does not match source commit")
expected = identity(args.sha, args.run_id, args.attempt, args.mode)
files = read_bundle(args.review_bundle, expected)
review = json.loads(files["review.json"])
source_path = ROOT / ("demo/demo.py" if args.mode == "live" else "ci/fixtures/demo_broken.txt")
source = source_path.read_bytes()
if source != b'print("hello"\n' or files["reviewed.py"] != b'print("hello")\n':
raise ValueError("Demo PDF requires the exact one-character syntax repair")
if review["status"] != "corrected" or "+print(\"hello\")" not in review["diff"]:
raise ValueError("Review does not show the permitted correction")
if review.get("input_sha256") and review["input_sha256"] != digest(source):
raise ValueError("Review input hash differs from committed demo source")
if args.mode == "live" and not review.get("raw_response"):
raise ValueError("Live demo PDF requires the recorded real model response")
resource = review.get("resource_measurement") or {}
values = {
"ReleaseVersion": args.release_version, "ReviewMode": args.mode,
"SourceCommit": args.sha, "ActionsRun": args.run_id,
"ActionsAttempt": args.attempt, "JenkinsBuild": args.jenkins_build,
"ModelName": review["model_id"], "ReviewStatus": review["status"],
"InputTokens": review.get("input_tokens") if review.get("input_tokens") is not None else "unknown",
"OutputTokens": review.get("output_tokens") if review.get("output_tokens") is not None else "unknown",
"ElapsedSeconds": review.get("elapsed_seconds", "unknown"),
"MemoryPeak": resource.get("memory_peak_bytes", "unknown"),
"MemoryTarget": resource.get("memory_target_bytes", "250000000 (contract; old bundle)"),
"MemoryTargetStatus": ("exceeded; warning" if resource.get("memory_target_exceeded") is True
else "met" if resource.get("memory_target_exceeded") is False else "not recorded"),
"MemoryLimit": resource.get("memory_limit_bytes", "unknown"),
"OOMKills": (resource.get("memory_events") or {}).get("oom_kill", "unknown"),
"ReviewHash": digest(files["review.json"]), "ReviewedHash": digest(files["reviewed.py"]),
}
output = ROOT / "documentation/build"
output.mkdir(parents=True, exist_ok=True)
for name in ("main.pdf", "build-manifest.json"):
(output / name).unlink(missing_ok=True)
with tempfile.TemporaryDirectory(prefix="demo-pdf-") as temporary:
work = Path(temporary)
shutil.copy2(ROOT / "demo/demo_report.tex", work / "demo-report.tex")
(work / "demo-data.tex").write_text("% Generated from verified run metadata.\n" +
"".join(f"\\newcommand{{\\{key}}}{{{tex(value)}}}\n" for key, value in values.items()))
(work / "source-before.txt").write_bytes(source)
(work / "reviewed-after.txt").write_bytes(files["reviewed.py"])
(work / "review-diff.txt").write_text(review["diff"])
(work / "raw-response.txt").write_text(review.get("raw_response") or "SIMULATED fixture response; no real model inference.\n")
result = subprocess.run(("pdflatex", "-no-shell-escape", "-interaction=nonstopmode",
"-halt-on-error", "demo-report.tex"), cwd=work,
capture_output=True, text=True, timeout=60)
log = work / "demo-report.log"
if log.exists():
shutil.copy2(log, output / "demo-report.log")
if result.returncode:
raise RuntimeError("Demo LaTeX compile failed: " + result.stdout[-1800:])
pdf = work / "demo-report.pdf"
from pypdf import PdfReader
reader = PdfReader(pdf)
if not 1 <= len(reader.pages) <= 3:
raise ValueError("Demo PDF must be one to three pages")
extracted = "\n".join(page.extract_text() or "" for page in reader.pages)
for value in (args.release_version, args.sha, review["model_id"], "print(\"hello\")"):
if str(value) not in extracted:
raise ValueError("Demo PDF omitted visible evidence: " + str(value))
shutil.copy2(pdf, output / "main.pdf")
manifest = dict(kind="demo-syntax-review", document_version=args.release_version,
release_version=args.release_version, commit=args.sha,
run_number=args.run_number, run_id=args.run_id, attempt=args.attempt,
mode=args.mode, jenkins_build=args.jenkins_build,
review_status=review["status"], model_id=review["model_id"],
review_sha256=digest(files["review.json"]),
reviewed_sha256=digest(files["reviewed.py"]),
pdf_sha256=hashlib.sha256(pdf.read_bytes()).hexdigest(),
pages=len(reader.pages))
(output / "build-manifest.json").write_text(json.dumps(manifest, sort_keys=True, indent=2) + "\n")
print(json.dumps(manifest, sort_keys=True, indent=2))
if __name__ == "__main__":
main()
+1
View File
@@ -0,0 +1 @@
print("hello
+41
View File
@@ -0,0 +1,41 @@
\documentclass[10pt,letterpaper]{article}
\usepackage[margin=0.7in]{geometry}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{xcolor}
\usepackage{fancyvrb}
\usepackage{hyperref}
\setlength{\parindent}{0pt}
\setlength{\parskip}{4pt}
\input{demo-data.tex}
\begin{document}
\begin{center}
{\LARGE\bfseries Model-Assisted Syntax Review}\par
{\large Version \ReleaseVersion\quad|\quad \ReviewMode\ demonstration}\par
\end{center}
\textbf{Exact source commit:} \texttt{\SourceCommit}\\
\textbf{Actions run / attempt:} \ActionsRun\ / \ActionsAttempt\quad
\textbf{Jenkins build:} \JenkinsBuild\\
\textbf{Model:} \ModelName\quad
\textbf{Review status:} \ReviewStatus\\
\textbf{Measured tokens:} \InputTokens\ input / \OutputTokens\ output\quad
\textbf{Elapsed:} \ElapsedSeconds\ seconds\\
\textbf{Complete Actions-job memory:} \MemoryPeak\ bytes peak; target: \MemoryTarget\ bytes (\MemoryTargetStatus); hard ceiling: \MemoryLimit\ bytes; OOM kills: \OOMKills.
\section*{The committed input}
The source at the commit above has one missing closing parenthesis. The reviewer preserves it and writes a separate reviewed file.
\VerbatimInput[fontsize=\small,frame=single]{source-before.txt}
\section*{The model's recorded proposal}
These bytes came from the real model response in \texttt{review.json}. In fixture mode, this section is clearly labeled simulated. The validator accepts only the single permitted repair.
\VerbatimInput[fontsize=\small,frame=single]{raw-response.txt}
\section*{The accepted reviewed program}
\VerbatimInput[fontsize=\small,frame=single]{reviewed-after.txt}
\section*{Exact source diff}
\VerbatimInput[fontsize=\small,frame=single]{review-diff.txt}
\textbf{Evidence binding.} Review JSON SHA-256: \texttt{\ReviewHash}. Reviewed program SHA-256: \texttt{\ReviewedHash}. The release ZIP and manifest carry version \ReleaseVersion. Jenkins tests the reviewed program and publishes only after its remaining gates pass. This short PDF is demo evidence; it is not the team's full manual.
\end{document}
+32
View File
@@ -0,0 +1,32 @@
# Generated build files and local credentials are never source artifacts.
build/
build-metadata.tex
_minted*/
__pycache__/
*.aux
*.log
*.out
*.toc
*.lof
*.lot
*.bbl
*.blg
*.idx
*.ilg
*.ind
*.acn
*.acr
*.alg
*.glo
*.gls
*.glg
*.ist
*.fls
*.fdb_latexmk
*.synctex.gz
main.pdf
devopsAssignment.pdf
.env
.runner
*.key
*.pem
File diff suppressed because it is too large Load Diff
+11
View File
@@ -0,0 +1,11 @@
OVERLEAF IMPORT INSTRUCTIONS
1. Upload the complete ZIP as a new Overleaf project.
2. Open Menu -> Settings -> Main document.
3. Select the top-level file main.tex.
4. Select the pdfLaTeX compiler and click Recompile.
Do not select devopsLatexDocker.tex as the Main document. It is Chapter 7 and
is included automatically by the complete report. The Docker demonstration
source is latex-docker/sample-source.txt, so main.tex is the only .tex file
that declares a document class and is the authoritative report entry point.
+38
View File
@@ -0,0 +1,38 @@
This group report documents the team's SSW 590 DevOps work in an Ubuntu
environment hosted on DigitalOcean. It records the Linux command-line exercises
and the creation of a DigitalOcean Droplet, installation of Docker Engine, and
deployment workflow for two containerized Node.js websites. Commands, evidence,
and deployment links are included. The report also presents a class-based
JavaScript redesign with a UML class diagram and a separate TeX Live container
that compiles a simple LaTeX document. It concludes with the MyFileAgent Pipeline
proposal, which emphasizes a one-click DevSecOps workflow for installation,
configuration, building, testing, deployment, security checks, and Grafana
monitoring. A limited LLM file-replacement task serves only as the sample
workload. Credentials, private keys, and other secrets are intentionally
excluded. The report also records the completed MyFileAgent Gitea startup
foundation: SQLite persistence, team workflow, the \texttt{myfileagent.tech}
domain, Caddy-managed HTTPS, and verified firewall boundaries.
Assignment 6 adds Jenkins 2.580.1 behind Caddy HTTPS, a dedicated Gitea
integration identity and a versioned Python pipeline. The first build verified
checkout, syntax and two unit tests and reported success to Gitea. This work-in-progress
edition also records the private webhook, enforced merge gate, controlled
failure/repair, human review, merge and passing post-merge main build. The restart test, team port checks and plugin review are also recorded;
remaining access-policy and credential checks are explicitly pending.
Assignment 7 adds persistent private Prometheus/Grafana monitoring, whole-host metrics,
TLS-validating HTTPS probes, a six-panel dashboard, measured availability and two
Discord-tested alerts. An approved Jenkins-only outage demonstrated firing, recovery
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.
+180
View File
@@ -0,0 +1,180 @@
#!/usr/bin/env python3
"""Build the manual in a fresh workspace; publish a PDF only after success.
Requires the recorded CI image to supply latexmk, TeX Live, minted support,
BibTeX, makeindex, and pypdf. Run from a checked-out repository.
"""
import argparse
import hashlib
import json
import os
from pathlib import Path
import re
import shutil
import subprocess
import tempfile
import sys
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
from ci.final_project import identity, read_bundle, digest
def build_metadata(sha, run_number, run_id, attempt):
if not re.fullmatch(r"[0-9a-f]{40}|[0-9a-f]{64}", sha):
raise ValueError("A full lowercase Git commit hash is required")
for name, value in (("run number", run_number), ("run ID", run_id), ("attempt", attempt)):
if not re.fullmatch(r"[1-9][0-9]*", value):
raise ValueError(f"Invalid {name}: a positive integer is required")
short = sha[:7]
suffix = f"+build.{run_number}.{short}.attempt.{attempt}"
url = f"https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/{run_id}"
return {
"commit": sha, "run_number": run_number, "run_id": run_id,
"attempt": attempt, "suffix": suffix, "run_url": url,
}
def latex_metadata(metadata):
# All interpolated fields were validated above or use a fixed trusted URL.
fields = {
"BuildSuffix": metadata["suffix"],
"BuildCommit": metadata["commit"],
"BuildRun": metadata["run_number"],
"BuildRunURL": metadata["run_url"],
}
return "% Generated in the build workspace. Do not commit.\n" + "".join(
f"\\renewcommand{{\\{key}}}{{{value}}}\n" for key, value in fields.items()
)
def copy_sources(source, destination):
extensions = {".tex", ".cls", ".sty", ".bst", ".bib", ".png", ".jpg", ".jpeg", ".svg", ".txt"}
excluded = {".git", "_minted", "build", "output", "outputs", "__pycache__", "node_modules"}
for path in source.rglob("*"):
relative = path.relative_to(source)
if any(part in excluded or part.startswith("_minted-") for part in relative.parts):
continue
if path.is_symlink():
raise ValueError(f"Unexpected source symlink: {relative}")
if path.is_file() and path.suffix.lower() in extensions and path.name != "build-metadata.tex":
target = destination / relative
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(path, target)
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--sha", default=os.environ.get("GITEA_SHA", ""))
parser.add_argument("--run-number", default=os.environ.get("GITEA_RUN_NUMBER", ""))
parser.add_argument("--run-id", default=os.environ.get("GITEA_RUN_ID", ""))
parser.add_argument("--attempt", default=os.environ.get("GITEA_RUN_ATTEMPT", "1"))
parser.add_argument("--review-bundle")
parser.add_argument("--release-version")
parser.add_argument("--jenkins-build", default="local")
parser.add_argument("--mode", choices=["fixture", "live"], default="fixture")
args = parser.parse_args()
metadata = build_metadata(args.sha, args.run_number, args.run_id, args.attempt)
source = Path(__file__).resolve().parents[1]
revision = subprocess.check_output(["git", "-C", str(source), "rev-parse", "HEAD"], text=True).strip()
if revision != metadata["commit"]:
raise ValueError("Checked-out HEAD differs from the triggering commit")
version_match = re.search(r"\\newcommand\{\\DocumentVersion\}\{([^}]+)\}", (source / "main.tex").read_text())
if not version_match:
raise ValueError("Human-maintained document version is missing")
metadata["document_version"] = version_match.group(1)
review_files = None
if bool(args.review_bundle) != bool(args.release_version):
raise ValueError("Review bundle and release version must be supplied together")
if args.review_bundle:
if not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+", args.release_version):
raise ValueError("Major.Minor.Changelist required")
if not re.fullmatch(r"[A-Za-z0-9_-]{1,80}", args.jenkins_build):
raise ValueError("Invalid Jenkins build identity")
review_files = read_bundle(args.review_bundle, identity(args.sha, args.run_id, args.attempt, args.mode))
metadata.update(release_version=args.release_version, mode=args.mode,
jenkins_build=args.jenkins_build,
review_sha256=digest(review_files["review.json"]),
reviewed_sha256=digest(review_files["reviewed.py"]))
output = source / "build"
output.mkdir(exist_ok=True)
# Remove only this build's known publish targets, so a failed rebuild cannot
# leave an older PDF available for upload.
for name in ("main.pdf", "build-manifest.json"):
(output / name).unlink(missing_ok=True)
with tempfile.TemporaryDirectory(prefix="manual-ci-") as temp:
workspace = Path(temp)
copy_sources(source, workspace)
generated = latex_metadata(metadata)
if review_files:
review = json.loads(review_files["review.json"])
def tex(value):
mapping = {"\\": r"\textbackslash{}", "{": r"\{", "}": r"\}",
"_": r"\_", "%": r"\%", "&": r"\&", "#": r"\#", "$": r"\$",
"^": r"\textasciicircum{}", "~": r"\textasciitilde{}"}
return ''.join(mapping.get(c, c) for c in str(value))
fields = {"FinalVersion": args.release_version, "FinalMode": args.mode,
"FinalJenkinsBuild": args.jenkins_build, "FinalStatus": review["status"],
"FinalModel": review["model_id"], "FinalInputTokens": review["input_tokens"],
"FinalOutputTokens": review["output_tokens"]}
generated += r"\renewcommand{\DocumentVersion}{" + args.release_version + "}\n"
generated += r"\renewcommand{\AssignmentTitle}{DevOps Pipeline Final Project}" + "\n"
generated += r"\renewcommand{\AssignmentNumber}{Final}" + "\n"
generated += r"\renewcommand{\DocumentStatus}{" + args.mode + " validation}\n"
for key, value in fields.items():
generated += "\\newcommand{\\" + key + "}{" + tex(value) + "}\n"
(workspace / "final-reviewed.txt").write_bytes(review_files["reviewed.py"])
(workspace / "final-diff.txt").write_text(review["diff"] or "No changes (unchanged review).", encoding="utf-8")
# Generated run data only; the authored report chapter is maintained separately.
appendix = r"""\clearpage
\chapter*{Automated Review Run}
\noindent Release: \FinalVersion\\
Mode: \FinalMode\\
Status: \FinalStatus\\
Model: \FinalModel\\
Input tokens: \FinalInputTokens\\
Output tokens: \FinalOutputTokens\\
Jenkins build: \FinalJenkinsBuild
\section*{Reviewed source}
\lstinputlisting[basicstyle=\ttfamily\small,breaklines=true]{final-reviewed.txt}
\section*{Change log}
\lstinputlisting[basicstyle=\ttfamily\small,breaklines=true]{final-diff.txt}
"""
main_path = workspace / "main.tex"
main_path.write_text(main_path.read_text().replace(r"\end{document}", appendix + r"\end{document}"))
(workspace / "build-metadata.tex").write_text(generated, encoding="utf-8")
# Shell escape is needed by the current minted source. Run only trusted
# team source in the isolated job, with no host/Docker socket mounts.
command = ["latexmk", "-pdf", "-shell-escape", "-interaction=nonstopmode", "-halt-on-error", "-file-line-error", "main.tex"]
try:
result = subprocess.run(command, cwd=workspace, check=False)
log_path = workspace / "main.log"
if log_path.exists():
shutil.copy2(log_path, output / "main.log")
if result.returncode:
raise RuntimeError(f"LaTeX compilation failed (exit {result.returncode})")
pdf = workspace / "main.pdf"
if not pdf.is_file() or pdf.stat().st_size == 0:
raise RuntimeError("Compilation did not create a nonempty main.pdf")
from pypdf import PdfReader
reader = PdfReader(pdf)
if not reader.pages:
raise RuntimeError("Generated PDF has no pages")
text = "\n".join(page.extract_text() or "" for page in reader.pages[:5])
for expected in (metadata["suffix"], metadata["commit"]):
if expected not in text:
raise RuntimeError(f"Visible PDF build identity is missing: {expected}")
if log_path.exists():
log = log_path.read_text(errors="replace")
if re.search(r"There were undefined (references|citations)|There were multiply-defined labels", log):
raise RuntimeError("Unresolved references/citations or duplicate labels in PDF")
metadata["pdf_sha256"] = hashlib.sha256(pdf.read_bytes()).hexdigest()
metadata["pages"] = len(reader.pages)
shutil.copy2(pdf, output / "main.pdf")
(output / "build-manifest.json").write_text(json.dumps(metadata, indent=2) + "\n", encoding="utf-8")
finally:
# A compiler failure must never be hidden by artifact publication.
pass
print(json.dumps(metadata, indent=2))
if __name__ == "__main__":
main()
@@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
@@ -0,0 +1,12 @@
{
"name": "color-buttons-app",
"version": "1.0.0",
"type": "module",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"express": "^4.18.2"
}
}
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color Buttons App</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin-top: 50px;
transition: background-color 0.3s ease;
}
button {
padding: 12px 24px;
font-size: 18px;
margin: 10px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>Click a Button to Change Background</h1>
<button id="blueBtn">Blue</button>
<button id="redBtn">Red</button>
<script src="script.js"></script>
</body>
</html>
@@ -0,0 +1,20 @@
class ColorButtonController {
constructor(buttonId, color) {
this.button = document.getElementById(buttonId);
this.color = color;
}
changeBackground() {
document.body.style.backgroundColor = this.color;
}
bind() {
this.button.addEventListener("click", () => this.changeBackground());
}
}
const blueButton = new ColorButtonController("blueBtn", "blue");
const redButton = new ColorButtonController("redBtn", "red");
blueButton.bind();
redButton.bind();
+14
View File
@@ -0,0 +1,14 @@
import express from "express";
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const app = express();
const PORT = process.env.PORT || 3000;
app.use(express.static(path.join(__dirname, "public")));
app.listen(PORT, "0.0.0.0", () => {
console.log(`Server running at http://0.0.0.0:${PORT}`);
});
+367
View File
@@ -0,0 +1,367 @@
%%
%% This is file `cornell.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% cornell.dtx (with options: `class')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from cornell.cls.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file cornell.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% Document class `cornell' to use with LaTeX 2e.
%% Based on `crnlphd' class. The following is from the file `crnlphd.dtx':
%% Based loosely on old cuphdthesis style file.
%% Found to give good results, according to the thesis secretary.
%% File: crnlphd.dtx Copyright (C) 1994 Sergio Gelato
%% Made available without any warranty, express or implied.
%% Modifications
%% 03/26/98 Mike Heisler
%% Conform to Eric's final version. Margins are subject to
%% The whim of the printer.
%% 10/10/97 Mike Heisler and Eric Dahl
%% Altered footnotesize and changed the Acknowledgement and
%% Biographical titles per thesis secretary guideline that
%% they must match the rest of the document, i.e. flush left
%% and capitalized rather than all caps
%% 05/21/97 Mike Heisler
%% Added a 'papers' option to handle bibliographis as sections
%% at the end of each chapter. Reduced top margin.
%%
%% $Id$
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{cornell}
[1998/03/26 v2.0
Cornell University thesis class]
\newif\ifphd
\DeclareOption{phd}{\phdtrue}
\DeclareOption{master}{\phdfalse}
\ExecuteOptions{phd}
\newif\ifpapers
\DeclareOption{papers}{\paperstrue}
\DeclareOption{10pt}{%
\OptionNotUsed%
\ClassWarningNoLine{cornell}{Font size 10pt not allowed; using 12pt}%
}
\DeclareOption{11pt}{%
\OptionNotUsed%
\ClassWarningNoLine{cornell}{Font size 11pt not allowed; using 12pt}%
}
\newcommand{\prelim@contents}[1]{}
\DeclareOption{tocprelim}{%
\renewcommand{\prelim@contents}[1]{\addcontentsline{toc}{section}{#1}}
}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{report}%
}
\ProcessOptions
\LoadClass[12pt]{report}[1994/06/01]
\renewcommand{\defaultscriptratio}{.75}
\renewcommand{\defaultscriptscriptratio}{.6}
\setlength\headsep{25\p@}
\if@twocolumn
\else
\setlength\oddsidemargin{0in}
\setlength\evensidemargin{0in}
\setlength\textwidth{6.5in}
\setlength\topmargin{-0.5in}
\setlength\headheight{0.2in}
\setlength\headsep{0.35in}
\setlength\textheight{8.85in}
\setlength\footskip{0.5in}
\setlength\marginparwidth{0.85in}
\setlength\marginparsep{0.125in}
\fi
\if@compatibility
\setlength\topmargin{0\p@}
\else
\fi
\newcommand{\ps@cornell}{%
\def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
\def\@oddfoot{}%
\def\@evenhead{\thepage\hfil{\slshape\leftmark}}%
\def\@evenfoot{}%
\def\chaptermark##1{}%
\def\sectionmark##1{}%
}
\newcommand{\ps@cornellc}{%
\def\@oddhead{\hfil\thepage\hfil}%
\def\@oddfoot{}%
\def\@evenhead{\@oddhead}%
\def\@evenfoot{}%
\def\chaptermark##1{}%
\def\sectionmark##1{}%
}
\raggedbottom
\newcommand{\@prolformat}[1]{{\begin{flushleft} \Huge #1 \end{flushleft}} }
\newcommand{\ackname}{\@prolformat{Acknowledgements}}
\newcommand{\bioname}{\@prolformat{Biographical Sketch}}
\renewcommand{\contentsname}{\@prolformat{Table of Contents}}
\renewcommand{\listtablename}{\@prolformat{List of Tables}}
\renewcommand{\listfigurename}{\@prolformat{List of Figures}}
\renewcommand{\l@figure}{\@dottedtocline{1}{1.5em}{2.6em}}
\let\l@table\l@figure
\renewenvironment{thebibliography}[1]
{\ifpapers \clearpage \section*{\bibname%
\@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}%
\else%
\chapter*{\bibname%
\@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}%
\fi%
\list{\@biblabel{\arabic{enumiv}}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\arabic{enumiv}}}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.\@m\relax
\ifpapers%
\addcontentsline{toc}{section}{\bibname}%
\else%
\addcontentsline{toc}{chapter}{\bibname}%
\fi
\singlespacing}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\normalspacing
\endlist}
\newcommand{\@titlesize}{\Large}
\newcommand{\@subtitlesize}{\large}
\newcommand{\@authorsize}{\normalsize} % No Pharaoh he.
\newcommand{\@conferralmonth}{January}
\newcommand{\@conferralyear}{}
\newcommand{\titlesize}[1]{\renewcommand{\@titlesize}{#1}}
\newcommand{\subtitlesize}[1]{\renewcommand{\@subtitlesize}{#1}}
\newcommand{\authorsize}[1]{\renewcommand{\@authorsize}{#1}}
\newcommand{\conferraldate}[2]{%
\renewcommand{\@conferralmonth}{#1}
\renewcommand{\@conferralyear}{#2}
}
\newcommand{\@degreefield}{Master of Science} %CHANGED
\newcommand{\degreefield}[1]{\renewcommand{\@degreefield}{#1}} %CHANGED
\renewcommand{\maketitle}{%
\begin{titlepage}%
\vspace*{-0.24in}
\begin{center}%
\@titlesize \@title
\end{center}
\vfill
%\begin{center}
%\@subtitlesize
%A \ifphd Dissertation \else Thesis \fi \\ %CHANGED
%Presented to the Faculty of the Graduate School \\
%of Cornell University \\
%in Partial Fulfillment of the Requirements for the Degree of \\
%\ifphd Doctor of Philosophy \else \@degreefield \fi %CHANGED
%\end{center}
\vfill
\begin{center}
\@authorsize
by \\
\@author \\
\@conferralmonth\ \@conferralyear
\end{center}
\vspace*{0.26in}
\end{titlepage}
}
\renewenvironment{titlepage}{%
\typeout{Title page}
\pagestyle{empty}
\doublespacing
}{%
\normalspacing\clearpage
}
\newenvironment{copyrightpage}{%
\typeout{Copyleft page}
\pagestyle{empty}
\null\vfil
\begin{center}
}{%
\end{center}
\vfil\null
\clearpage
}
\newcommand{\makecopyright}{%
\begin{copyrightpage}
\copyright\ \@copyrightholder\ \@copyrightyear \\
ALL RIGHTS RESERVED \\[.5in]
\end{copyrightpage}
}
\newcommand{\@copyrightholder}{\@author}
\newcommand{\@copyrightyear}{\@conferralyear}
\newcommand{\copyrightholder}[1]{\renewcommand{\@copyrightholder}{#1}}
\newcommand{\copyrightyear}[1]{\renewcommand{\@copyrightyear}{#1}}
\newlength{\@abhdskip}
\renewenvironment{abstract}{%
\typeout{Abstract}
\singlespacing
\ifphd %CHANGED
\setlength{\@abhdskip}{.25in}
\addtolength{\@abhdskip}{-\topmargin}
\vspace*{\@abhdskip}
\begin{center}
\@abstracttitle \\
\ \\
\@author \\
\@conferralyear
\end{center}
\vspace{.25in}
\else %CHANGED
\chapter*{%
\begin{center}
\normalsize
ABSTRACT
\end{center}
}
\par
\fi %CHANGED
\pagestyle{empty}
\thispagestyle{empty}
}{%
\clearpage
}
\newcommand{\@abstracttitle}{\@title}
\newcommand{\abstracttitle}[1]{\renewcommand{\@abstracttitle}{#1}}
\newenvironment{biosketch}{%
\typeout{Vita}
\pagestyle{plain}
\pagenumbering{roman}
\setcounter{page}{3}
\prelim@contents{Biographical Sketch}
\chapter*{%
\bioname
}
\par
}{%
\clearpage
}
\newenvironment{dedication}{%
\prelim@contents{Dedication}
\null\vfil
\begin{center}
}{
\end{center}
\vfil\null
\clearpage
}
\newenvironment{acknowledgements}{%
\prelim@contents{Acknowledgments}
\chapter*{%
\ackname
}
\par
}{%
\cleardoublepage
}
\newcommand{\contentspage}{%
\singlespacing
\label{toc}
\prelim@contents{\contentsname}
\tableofcontents
\normalspacing
\clearpage
}
\newcommand{\tablelistpage}{%
\singlespacing
\label{lot}
\prelim@contents{\listtablename}
\listoftables
\normalspacing
\clearpage
}
\newcommand{\figurelistpage}{%
\singlespacing
\label{lof}
\prelim@contents{\listfigurename}
\listoffigures
\normalspacing
\clearpage
}
\newcommand{\abbrlist}{%
\singlespacing
\prelim@contents{List of Abbreviations}
\chapter*{List of Abbreviations}
}
\newcommand{\symlist}{%
\singlespacing
\prelim@contents{List of Symbols}
\chapter*{List of Symbols}
}
\newcommand{\preface}{%
\singlespacing
\prelim@contents{Preface}
\chapter*{Preface}
}
\newcommand{\singlespacing}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.0}\tiny\CS}
\newcommand{\singlespacingplus}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.25}\tiny\CS}
\newcommand{\doublespacing}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.75}\tiny\CS}
\newcommand{\realdoublespacing}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{2}\tiny\CS}
\newcommand{\normalspacing}{\doublespacing}
\newcommand{\footnotespacing}{\singlespacing}
\newcommand{\changespacing}[2]{%
\renewcommand{#1}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{#2}\tiny\CS}%
}
\newcommand{\changenormalspacing}[1]{\renewcommand{\normalspacing}{#1}}
\normalspacing
\endinput
%%
%% End of file `cornell.cls'.
+107
View File
@@ -0,0 +1,107 @@
\chapter{AI Agent Usage Guide}
\ChapterLabel{AIAgentGuide}
\index{AI agent}
\index{AI agent!DevOps workflow}
\index{Appendix!AI Agent Usage Guide}
\section{How to Use This Appendix}
An AI agent that creates, reviews, or maintains an assignment shall read this
file first. It shall identify the task in the routing table, read the minimum
authoritative sources, and expand context only for a discovered dependency or
inconsistency. This guide is maintained in LaTeX so it is visible, versioned,
and reviewable with the assignment.
\section{Governing Principles}
The authored LaTeX files, versioned automation, and approved assignment
materials are authoritative. The PDF is a review artifact and shall not be
edited directly. AI may draft, explain, analyze, check consistency, and assist
with builds. It shall not invent completion, evidence, access, costs, grades,
approvals, command output, security posture, or operational results.
\section{Chapter File Convention}
\index{AI agent!chapter file convention}
Every assignment chapter shall be stored in exactly one file named with the
\texttt{devops} prefix, a PascalCase chapter name, and the \texttt{.tex}
suffix. For example, Chapter~2 is fully contained in
\path{devopsExampleAssignment.tex}. A chapter file shall begin with its
\texttt{\string\chapter\{...\}} command and contain all of that chapter's
sections and subsections. Do not split one chapter across files, create
section-only \texttt{.tex} files, or use \texttt{\string\input} or
\texttt{\string\include} to assemble a chapter from smaller fragments.
Supporting non-chapter files may use a different name only when they are not
chapter content: \texttt{prologue.tex}, \texttt{abstract.tex},
\texttt{devopsGlossary.tex}, and \texttt{devopsReferences.bib} are examples.
Appendix chapters follow the same chapter-file convention.
\section{AI Quick Start}
\begin{enumerate}
\item Read this guide and identify the requested outcome.
\item Select the closest task below and load only its listed sources.
\item Inspect supplied facts and report consequential gaps or assumptions.
\item Make narrowly scoped changes; preserve stable IDs, glossary terms, and history.
\item Never request, print, store, or commit credentials, tokens, personal data, or production data.
\item Build the complete PDF, inspect the log, visually inspect affected pages, and record material AI use in \ChapterRef{AIPromptLog}.
\end{enumerate}
\section{Task Routing}
\small
\begin{tabularx}{\linewidth}{L{4.0cm}Y}
\caption{AI Task-Routing Table\label{Table:AITaskRouting}}\\
\toprule \textbf{Task} & \textbf{Minimum authoritative sources}\\ \midrule
Initialize an assignment & \texttt{devopsAssignment.tex}, \texttt{prologue.tex}, \texttt{devopsIntroduction.tex}, \texttt{devopsExampleAssignment.tex}, and the instructor's assignment facts.\\
Develop a workflow & \texttt{devopsExampleAssignment.tex}, source repository materials, and authorized environment constraints.\\
Define evidence & \texttt{devopsExampleAssignment.tex} and controlled execution outputs.\\
Review a retrospective & \texttt{devopsExampleAssignment.tex} and the submitted workflow or runbook.\\
Edit AI guidance & \texttt{devopsAIAgentGuide.tex}, \texttt{devopsAIPromptLog.tex}, \texttt{devopsDocumentGuide.tex}, and \texttt{devopsAssignment.tex}.\\
Compile or troubleshoot & \texttt{devopsAssignment.tex}, \texttt{devopsDocumentGuide.tex}, the affected chapter, and the build log.\\ \bottomrule
\end{tabularx}
\normalsize
\section{DevOps-Specific Rules}
\begin{enumerate}
\item Prefer versioned, repeatable automation over undocumented manual steps.
\item Treat deployment output, monitoring data, and screenshots as evidence only when they reflect an actual execution.
\item Design failure exercises to be isolated, reversible, and authorized.
\item Apply least privilege and never place secrets in LaTeX, source control, prompts, screenshots, or logs.
\item State expected cloud cost, cleanup action, and resource ownership for each remote-environment activity.
\item Identify whether a recommendation is a proposal, an instructor directive, or demonstrated evidence.
\end{enumerate}
\section{Example AI Requests}
\subsection{Create an Assignment Brief}
\begin{verbatim}
Read devopsAIAgentGuide.tex and use the Initialize an Assignment context.
From the supplied SSW 590 objective and constraints, fill only supported
placeholders in the introduction and activity brief. Propose clear, observable
completion criteria, a safe cleanup action, and a rubric. Do not invent cloud
access, due dates, policy, costs, or approved tools. Update history, compile,
and report instructor decisions still needed.
\end{verbatim}
\subsection{Review a Student Workflow}
\begin{verbatim}
Read devopsAIAgentGuide.tex and the workflow, evidence, and retrospective
chapters. Review the supplied repository and sanitized evidence for
reproducibility, least privilege, observability, rollback, and cleanup.
Separate verified facts from gaps and recommendations. Do not claim that an
unexecuted command passed, and do not request credentials or operate resources.
\end{verbatim}
\section{Human Decisions and Information Boundaries}
The instructor retains authority over assignment scope, grading, due dates,
approved tooling, access, budgets, security posture, exceptions, and policy.
An AI agent shall surface alternatives and evidence, not represent a decision
as approved. Record material prompts, assumptions, corrections, and unresolved
issues in \ChapterRef{AIPromptLog}.
\section{Completion Checklist}
\begin{itemize}
\item Scope, deliverables, environment, constraints, and cleanup are clear.
\item Activity identifiers and evidence references are valid and unique.
\item Examples contain no secrets, personal data, or unsafe production actions.
\item New controlled terms are added to the glossary and indexed.
\item The newest approved change is recorded in document history.
\item The complete build succeeds with no unresolved references or missing files.
\item A human reviews all decisions requiring instructional or operational authority.
\end{itemize}
+57
View File
@@ -0,0 +1,57 @@
\chapter{AI Prompt Log}
\ChapterLabel{AIPromptLog}
\markboth{AI Prompt Log}{AI Prompt Log}
\fancyhead[C]{\small AI Prompt Log}
\index{AI prompt log}
\section{Recorded Assistance}
\footnotesize
\begin{longtable}{L{2.8cm}L{5.0cm}L{7.0cm}}
\caption{AI assistance record}\label{Table:AIPromptLog}\\
\toprule
\textbf{Date / Version / Initials} & \textbf{Task} & \textbf{Human Review and Use} \\
\midrule
\endfirsthead
\toprule
\textbf{Date / Version / Initials} & \textbf{Task} & \textbf{Human Review and Use} \\
\midrule
\endhead
\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. \\
\parbox[t]{2.7cm}{\raggedright October 28, 2026\\ 1.9.2\\ GDL, NK, CDX} & Write the full SRE chapter through the Gitea-backed Droplet checkout; retain the team's screenshot choices, add Grafana host/vault hints, apply final editorial/layout corrections and compile through Gitea Actions. & Codex authored from recorded deployment, probes, alert tests, incident samples and persistence evidence; created source diagrams without changing original screenshots; recorded PR 14's human approval/merge and post-merge CI. The team supplied outside-Droplet port results and incognito/dashboard images, skipped the extra external HTTPS capture, and specified \texttt{bitwarden-grafana}. The team approved documentation PR 15 and Actions run 16 compiled the manual; version 1.9.2 applies the requested final wording and wrapping corrections. Next-day recovery-build timing remains accurately identified. \\
\parbox[t]{2.7cm}{\raggedright October 24, 2026\\ 1.9.1\\ GDL, NK, CDX} & Write only the SLI/SLO material into the manual source. & The user authorized this narrow source update. Codex used the recorded live baseline (20/20 successful probes for each service) and kept it separate from the instructor's hypothetical example. The draft explicitly leaves controlled-outage and full-day conclusions unclaimed. \\
\parbox[t]{2.7cm}{\raggedright October 24, 2026\\ 1.9.0\\ GDL, NK, CDX} & Clarify retired public ports and historical branch-protection wording on the Droplet. & AI reviewed the operational checkout and newer Assignment 6 publication source, marked earlier 5050/8080 public endpoints closed while preserving historical commands/evidence, and distinguished private Jenkins 8080. The earlier no-protection observation now points to the later enforced gate. \\
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.2\\ GDL, NK, CDX} & Configure Jenkins through its web interface: accounts, repository discovery, credentials, multibranch builds, required checks, peer review and plugin operations. & The team entered administrator and integration passwords/tokens privately. Codex assisted with Gitea discovery scope, the dedicated repository identity, job discovery and the Python checkout/syntax/test pipeline. It correlated issue 10 and PR 11 with automatic runs, made the isolated arithmetic defect and repair, and verified commit-specific failure and success. It corrected the required PR check context and configured branch protection. NK independently approved the final change; GDL performed the normal merge. The merged main commit passed Jenkins. The team selected Matrix-based security, supplied its permissions view and confirmed administrative access after saving. Codex explained the permission settings, checked plugin-update information and retained the controller-build warning. The CI token inventory showed one current entry; token values were neither read nor recorded. Post-save anonymous access and self-registration were not independently confirmed. \\
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.1\\ GDL, NK, CDX} & Configure DNS, HTTPS, reverse-proxy routing, private webhook delivery and network exposure; verify firewall attachment and IPv4-only operation. & Codex assisted with the CI A record, Caddy site and loopback-only Jenkins mapping. It diagnosed the failed tunnel's Docker-name resolution and used the host loopback endpoint instead. HTTPS verification recorded the certificate, login response, redirect and anonymous API denial. The private Gitea webhook used an exact-host destination allowance; Caddy blocked its public receiver. The installed handler did not validate HMAC, so no shared-secret authentication was claimed. A successful delivery was matched to its Jenkins run. The team chose public browser access and later removed retired 5050/8080 firewall allowances. It supplied the named firewall rules, attached Droplet view, external TCP results, disabled-IPv6 view, DNS AAAA result and UFW-inactive output. These human-performed checks retain that attribution; earlier TCP tests are not relabeled as post-cleanup tests. Instructor approval for the public-browser exception was not supplied. \\
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.0\\ GDL, NK, CDX} & Deploy official Jenkins LTS, preserve its home directory, record the toolchain and verify jobs survive restart on the existing Droplet. & The team selected the existing 1 GB host and the permitted Python application. Codex recorded capacity, deployed the official Jenkins image with a pinned digest and non-secret Compose configuration, and bounded its resource use. When the initial start stalled, it stopped only Jenkins, checked Gitea health and retried successfully; it did not assert an unproven cause for the startup exception. Plugin versions and the persistent home volume were recorded. Controller builds were selected for trusted source without a Docker socket; Python installation and replacement-container recovery were made reproducible. For the authorized restart, Codex saved file sizes and hashes, restarted the service without deleting its volume, and confirmed all 13 configuration/build records were unchanged. The saved main job passed afterward. The team reviewed the observed results. No Jenkins backup/restore test, new paid cloud host or capacity upgrade was performed. \\
\parbox[t]{2.7cm}{\raggedright October 6--7, 2026\\ 1.7.1\\ GDL, CDX, NK} & Implement approved Chapter 3; update the manual, verify Actions artifacts, and apply the requested concise history/log and rubric review. & The user approved remote implementation, supplied the original source/images, and selected version 1.7.1. AI configured the runner/toolchain, corrected its memory limit, executed builds 3--4 and failure/repair 5--6, and verified downloaded PDFs by identity, checksum, links and rendered pages. The team reviews the final Actions PDF before submission. \\
\parbox[t]{2.7cm}{\raggedright September 29, 2026\\ 1.6.1\\ NK, GDL, CDX} & Complete and review the public-domain, HTTPS, evidence, recovery, and reference material for Assignment 4. & The team supplied the domain and renewal facts, verified DNS, HTTPS, certificate automation and external ports, and approved the backup/restore exercise. AI assisted with diagnostics, isolated recovery evidence, requirement auditing, live links, security explanations, concise credential and reference updates, figure-flow improvements, compilation, and visual review. \\
\parbox[t]{2.7cm}{\raggedright September 26, 2026\\ 1.6.0\\ NK, GDL, CDX} & Implement and document the MyFileAgent Gitea startup foundation while preserving the earlier grading services. & The team selected the accounts, approved changes, completed the repository workflow, ran verification commands, and supplied evidence. With permission, AI assisted with pinned Gitea/SQLite, persistent volumes, key-only SSH, and the Cloud Firewall while preserving ports 5050 and 8080 at that historical stage (both are now closed publicly) and documenting the instructor-cleared SSH exception. \\
\parbox[t]{2.7cm}{\raggedright September 18, 2026\\ 1.5.1\\ NK, GDL, CDX} & Develop and integrate Chapter 8, the Project Proposal, for the MyFileAgent one-click DevSecOps pipeline. & The team supplied the project direction and selected tools. AI assisted with organizing the proposal, defining a limited demonstration task, and presenting the planned installation, build, configuration, testing, deployment, security, and Grafana monitoring workflow. The team reviews and approves the final proposal. \\
\parbox[t]{2.7cm}{\raggedright September 18, 2026\\ 1.5.0\\ NK, GDL, CDX} & Document the DigitalOcean Droplet and Docker installation, website deployment, class-based JavaScript button design and UML diagram in Chapter 6, and the TeX Live Docker build, run, and verification workflow in Chapter 7. & The team supplied the requirements, deployment evidence, commands, and project files. AI assisted with LaTeX organization, code presentation, UML preparation, compilation, and layout review. The team reviews the material and verifies all commands and live deployment results. \\ \pagebreak
\parbox[t]{2.7cm}{\raggedright September 12, 2026\\ 1.4.1\\ NK, GDL, CDX} & Update Section 3.2 with the human-run command outputs, include Hosts and Passwords, reduce and link the glossary, and verify index links. & AI suggested Linux commands to run and assisted with document organization and LaTeX editing. The team verified the commands before running them, made changes as needed, ran the commands, and gathered the outputs. AI did not execute the commands or produce the recorded terminal outputs. \\
\parbox[t]{2.7cm}{\raggedright September 11, 2026\\ 1.4.0\\ NK, GDL, CDX} & Organize the Assignment 2 LaTeX report, integrate the supplied Linux-command chapter and problem-set chapter, and verify document layout and navigation. & The team supplied the assignment materials and terminal record, reviewed the generated text, and entered each problem set command into the terminal and manually verified the results. \\
\end{longtable}
\normalsize
\section{Evidence Boundary}
AI assistance was used for document organization, LaTeX authoring, code and
diagram presentation, proposal drafting, and layout review. Earlier Linux and website exercise outputs retain their original human-gathered
attribution. Later infrastructure assistance is identified in the dated entries
above. Assignment 5 remote execution is AI-assisted and recorded in the dated entries. The consolidated 1.7.1 entry summarizes the completed work and its user-authorized revisions.
\clearpage
\fancyhead[C]{\small\nouppercase{\leftmark}}
+23
View File
@@ -0,0 +1,23 @@
% Acronyms occurring in the assignment document.
\chapter*{Acronyms}
\markboth{Acronyms}{Acronyms}
\index{acronyms}
The following acronyms occur in the assignment document.
\begin{description}[style=nextline,leftmargin=2.2cm,labelindent=0pt]
\item[\textbf{ACME}] Automated Certificate Management Environment. \hfill Reference: \hyperref[AcronymRef:ACME]{p.~\pageref*{AcronymRef:ACME}}
\item[\textbf{AI}] Artificial Intelligence. \hfill Reference: \hyperref[AcronymRef:AI]{p.~\pageref*{AcronymRef:AI}}
\item[\textbf{API}] Application Programming Interface. \hfill Reference: \hyperref[AcronymRef:API]{p.~\pageref*{AcronymRef:API}}
\item[\textbf{DNS}] Domain Name System. \hfill Reference: \hyperref[AcronymRef:DNS]{p.~\pageref*{AcronymRef:DNS}}
\item[\textbf{HTTP}] Hypertext Transfer Protocol. \hfill Reference: \hyperref[AcronymRef:HTTP]{p.~\pageref*{AcronymRef:HTTP}}
\item[\textbf{HTTPS}] Hypertext Transfer Protocol Secure. \hfill Reference: \hyperref[AcronymRef:HTTPS]{p.~\pageref*{AcronymRef:HTTPS}}
\item[\textbf{SSH}] Secure Shell. \hfill Reference: \hyperref[AcronymRef:SSH]{p.~\pageref*{AcronymRef:SSH}}
\item[\textbf{TCP}] Transmission Control Protocol. \hfill Reference: \hyperref[AcronymRef:TCPAssignment4]{p.~\pageref*{AcronymRef:TCPAssignment4}}
\item[\textbf{TLS}] Transport Layer Security. \hfill Reference: \hyperref[AcronymRef:TLS]{p.~\pageref*{AcronymRef:TLS}}
\item[\textbf{SRE}] Site Reliability Engineering. \hfill Reference: \hyperref[AcronymRef:SRE]{p.~\pageref*{AcronymRef:SRE}}
\item[\textbf{SLI}] Service-Level Indicator. \hfill Reference: \hyperref[AcronymRef:SLI]{p.~\pageref*{AcronymRef:SLI}}
\item[\textbf{SLO}] Service-Level Objective. \hfill Reference: \hyperref[AcronymRef:SLO]{p.~\pageref*{AcronymRef:SLO}}
\item[\textbf{SLA}] Service-Level Agreement. \hfill Reference: \hyperref[AcronymRef:SLA]{p.~\pageref*{AcronymRef:SLA}}
\item[\textbf{TSDB}] Time-Series Database. \hfill Reference: \hyperref[AcronymRef:TSDB]{p.~\pageref*{AcronymRef:TSDB}}
\end{description}
+3
View File
@@ -0,0 +1,3 @@
% Compatibility entry point.
% The authoritative Overleaf main document is the top-level main.tex file.
\input{main.tex}
@@ -0,0 +1,264 @@
\chapter{Automated Manual Build}
\ChapterLabel{AutomatedManualBuild}
\index{Gitea Actions}\index{LaTeX!automated build}\index{build artifact}
\begin{devopsNote}[Assignment 5 implementation record]
Human version \texttt{1.7.1}; document date October 7, 2026. The team authorized
Chapter 3 implementation on its existing Droplet. Jenkins (instruction Chapter 4)
is outside this activity. Infrastructure checks below are observed results;
the manual build sequence below records the executed results.
\end{devopsNote}
\section{Source and trigger}
The source of truth is the existing
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline}{MyFileAgent repository}.
The entry point is
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/documentation/main.tex}{\path{documentation/main.tex}};
chapter sources, \texttt{cornell.cls}, bibliography, formatting files and all
historical figures are included. The transferred source archive had SHA-256
\path{ad93f9f2e71bc66a2b882b57510cbb7f51827637047073d6a6f78c0170e6205e}.
Its 12 \path{hw4_images} files preserve earlier evidence. Generated PDFs,
metadata, caches and secrets are excluded from source control.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/.gitea/workflows/manual-pdf.yml}{The manual workflow}
accepts \texttt{push} events on \texttt{main} and
\texttt{manual-build-validation}. It explicitly checks out the triggering SHA
and disables persisted checkout credentials. Pushes use Git over HTTPS to
\texttt{myfileagent.tech:443}. Caddy 2.11.4 terminates TLS and forwards to Gitea
1.27.3 on private container port 3000. The host mapping remains
\texttt{127.0.0.1:3000}. No Gitea SSH port, runner submission listener or
compiler port was published. The runner needs no public submission port because
source pushes terminate at Gitea, while the runner initiates outbound HTTPS
requests to Gitea to poll for and receive jobs.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[node distance=9mm and 7mm,
every node/.style={draw,rounded corners,align=center,font=\small,text width=3.0cm,minimum height=15mm},>=Stealth]
\node (team) {Team\\HTTPS source push};
\node[right=of team] (gitea) {Caddy 443\\Gitea private 3000};
\node[right=of gitea] (runner) {Runner\\HTTPS work requests};
\node[below=of runner] (docker) {Docker daemon\\internal socket};
\node[left=of docker] (job) {Temporary TeX job\\checkout and compile};
\node[left=of job] (pdf) {Named PDF artifact\\team downloads};
\draw[->] (team)--(gitea);
\draw[->] (gitea)--(runner);
\draw[->] (runner)--(docker);
\draw[->] (docker)--(job);
\draw[->] (job)--(pdf);
\draw[<->,dashed] (gitea)--(job);
\end{tikzpicture}
\caption{Actual single-Droplet manual-build path. Only the runner mounts the
Docker socket. The dashed HTTPS path carries source checkout and artifact upload; Gitea and the compiler do not share a source filesystem.}
\label{Fig:ManualBuildArchitecture}
\end{figure}
\section{Runner setup}
\phantomsection\label{GlossaryRef:actionsrunner}\index{runner!registration}
Runner ID 1, \texttt{assignment5-manual}, is registered only to
\path{myfileagent/myfileagent-pipeline}. The self-managed
\texttt{act\_runner} version is 0.6.1. Its image digest is
\path{sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86}.
The live files are under \path{/home/codex/myfileagent-gitea/runner};
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build}{versioned non-secret configuration}
records the deployment. \textbf{Execution mode: Docker container execution
(\texttt{docker://}).} Each job runs in a temporary TeX container created by
the host Docker daemon, rather than directly in the runner environment.
The workflow's \texttt{runs-on: manual-latex} selects the runner label, which
maps to the exact local compiler image ID recorded below. The runner polls
Gitea over outbound HTTPS, and the job uses HTTPS for checkout and upload.
Capacity is one job. The runner has a 192 MiB hard memory limit and 128 MiB Go
memory target; jobs have a 256 MiB limit, no swap, 0.65 CPU and a 256-process
limit. The initial 96 MiB runner limit caused an out-of-memory restart while
cloning an action in run 1; its temporary container and volumes were removed.
Increasing the bounded limit allowed run 2 to pass without another restart.
\EvidenceID{MAN-RUNNER-01}: October 6, 2026, America/New\_York
(UTC log timestamps may be October 7). Expected: registered online worker,
HTTPS reachability and an assigned job. Actual: the repository runner API
reported ID 1 online; \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/2}{preflight run 2}
was assigned to this worker and succeeded. Its downloaded text artifact
verified HTTPS certificate validation and blocked direct connections from the
job to private backend \texttt{172.20.0.2:3000} and gateway
\texttt{172.20.0.1:3000}. The job had no Docker socket, runner-state mount or
published ports. This is a measured bridge boundary, not a claim that every
outbound destination is blocked. Runner registration and execution follow
Gitea's documented model~\cite{GiteaActRunnerManual}.
\section{Reproducible compilation}
TeX is installed in the temporary job image, not the Gitea application
container. \path{ops/manual-build/Dockerfile} pins Debian by digest and its
packages to the October 1, 2026 Debian snapshot. The built local image is
\path{sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1}
(1.32 GB); \texttt{force\_pull: false} selects this stored immutable image ID.
A replacement host must rebuild from the recorded definition and update the
recorded image ID after verification. Dependencies include TeX Live 2022,
latexmk 4.79, BibTeX, makeindex/makeglossaries, Latin Modern and recommended
fonts, Pygments 2.14.0 for minted, Node 18.20.4 and pypdf 3.4.1.
The job runs \texttt{python3} \path{documentation/ci/build_manual.py}. The helper copies
sources into a fresh temporary directory and invokes:
\begin{lstlisting}[language=bash]
latexmk -pdf -shell-escape -interaction=nonstopmode \
-halt-on-error -file-line-error main.tex
\end{lstlisting}
latexmk coordinates repeated PDF, bibliography and index passes. This report
uses authored, linked glossary/acronym lists; their label references are
resolved by repeated LaTeX passes rather than a generated glossary printout.
Shell escape is required by minted and is restricted to trusted source in the
job container. The helper verifies that checkout HEAD equals the triggering
SHA, removes prior publish targets, propagates a compiler failure, rejects
missing/empty/unreadable PDFs, verifies visible metadata, and rejects unresolved
references/citations or duplicate labels. Only success copies
\path{documentation/build/main.pdf} and \path{build-manifest.json} for upload.
The original manual was precompiled in a separate temporary container before
relying on Actions. The successful Actions records below are the authoritative
publication evidence. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/9}{successful run 9}
provides its compile-step log; the \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/9/jobs/9}{successful job log}
records checkout, latexmk passes, PDF validation and upload. See also the
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/documentation/ci/build_manual.py}{build helper}.
\section{PDF version traceability}
\phantomsection\label{GlossaryRef:buildidentity}\index{build identity}
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 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
commit, run/attempt, PDF checksum and page count. The checkout and artifact
actions are pinned to tested commits, not floating tags~\cite{GiteaActionsComparisonManual}.
\section{Downloadable artifact}
\phantomsection\label{GlossaryRef:buildartifact}\index{artifact!retention}
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{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
outside this temporary retention window~\cite{GiteaActionsConfigManual}.
Artifacts are temporary build outputs, not permanent backups.
Checkout v4.2.2 is pinned to
\path{11bd71901bbe5b1630ceea73d27597364c9af683}; upload-artifact v3.2.2 to
\path{c6a366c94c3e0affe28c06c8df20a878f24da3cf}. The latter's legacy artifacts
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{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
All observations below were made on October 6, 2026 (America/New\_York). Logs use UTC, where these runs are dated October 7. These are actual push-triggered manual builds, separate from infrastructure preflight runs 1--2.
\paragraph{Source change 1.}
\EvidenceID{MAN-BUILD-01}: Imported the full manual and activated its workflow. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3}{run 3 passed}; full commit \path{c74087a93bf53b44a75a25c3658fc178ff253225}.
Visible version: \path{1.7.1+build.3.c74087a.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3/artifacts/assignment5-1.7.1-run-3-c74087a93bf53b44a75a25c3658fc178ff253225}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{ab99995751da7a67684d97e32344cfc8d7f3d0c6c26055bbd0670b3dc030d337}.
\paragraph{Source change 2.}
\EvidenceID{MAN-BUILD-02}: Improved long-identifier wrapping and clarified the introduction. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4}{run 4 passed}; full commit \path{2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a}.
Visible version: \path{1.7.1+build.4.2b8be11.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4/artifacts/assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{ba87740958bada14f31d2236638c9b175d8b24797f715252cdb0f0af6668be06}.
\paragraph{Controlled failure.}
\EvidenceID{MAN-FAIL-01}: Expected: an invalid LaTeX command fails compilation and publishes no PDF. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/5}{run 5 failed} for commit \path{f0e7b74ee63b40811334ee9cd4aecf035f1b0864}, on \texttt{manual-build-validation}. The deliberate \texttt{\string\AssignmentFiveControlledFailure} command caused ``Undefined control sequence'' at chapter line 4; latexmk returned 12. The workflow skipped PDF upload and the expected named artifact returned HTTP 404. Main and the deployed services remained operational.
\paragraph{Repair.}
\EvidenceID{MAN-REPAIR-01}: Removed the deliberate undefined command on the validation branch. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6}{run 6 passed}; full commit \path{a4737f1a4eed5e1b786038bb917ca1ab9f1ed856}.
Visible version: \path{1.7.1+build.6.a4737f1.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6/artifacts/assignment5-1.7.1-run-6-a4737f1a4eed5e1b786038bb917ca1ab9f1ed856}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{7591b1cd87f319dfc77eaa4ca9fd9727d1e7b97253a05d9a93e8624296bc736e}.
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. 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. 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
workflow author or Docker administrator. Jobs receive no socket or runner-state
mount; \texttt{valid\_volumes: []}, \texttt{docker\_host: '-'}, nonprivileged
execution and the separate bridge reduce accidental exposure. These controls
are recorded in the non-secret
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/runner-config.yaml}{runner configuration}
and \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/runner-compose.yaml}{runner Compose file};
the \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/.gitea/workflows/manual-pdf.yml}{workflow}
records trusted push triggers and checkout permissions.
Registration state is stored outside Git in a mode-700 directory, with its
\texttt{.runner} file mode 600. Registration tokens were passed without logging
their values. A temporary implementation token has \texttt{write:repository}
scope and resides in restricted storage outside Git; that scope covers the
account's accessible repositories and is not a per-repository credential.
It is not passed to build jobs. Checkout uses the Actions job credential with
read-only workflow permissions and removes persisted Git credentials.
The \hyperref[Table:CredentialRegistry]{Passwords table} contains hints only.
\section{Manual quality and controls}
The \hyperref[Table:HostRegistry]{Hosts table} now identifies the runner,
compiler execution and ports. The \hyperref[Table:CredentialRegistry]{Passwords
table} now identifies protected runner state and the temporary implementation
credential without values. \hyperref[Chapter:DocumentHistory]{Document History} and
\AppendixRef{AIPromptLog} record the work and retain earlier attribution.
Figure~\ref{Fig:ManualBuildArchitecture}, linked glossary/index terms and
citations connect the operational record to its configuration and evidence.
The MyFileAgent team owns this single-Droplet runner. Preflight measured one
CPU, 961 MiB RAM, about 292 MiB available memory, no swap and 18 GiB free disk;
after the compiler image build about 17 GiB remained. No paid resize or new
machine was purchased. Existing cloud/domain charges and transfer allowances
were not re-audited; do not assume perpetual free service. Historical domain,
firewall, backup and instructor-exception evidence remains in
\ChapterRef{GiteaStartupFoundation}.
For a queued job, inspect branch trigger, Actions enablement, runner online
state and label. For a compile failure, read the first LaTeX error in the
matching job log, repair the source and push again. For absent artifacts,
confirm PDF existence, upload success and the legacy run download link before
assuming the REST listing is complete. Check memory/disk before retrying.
Stop only the added runner using its separate Compose project for recovery;
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.
@@ -0,0 +1,201 @@
\chapter{DigitalOcean Docker Deployment}
\ChapterLabel{DigitalOceanDockerDeployment}
\index{DigitalOcean!Docker deployment}
\index{Docker!Ubuntu installation}
\section{Overview}
The team created an Ubuntu Droplet in the DigitalOcean project named
\textit{SSW 590 DevOps}. The Droplet is currently named
\texttt{ssw590-group7-droplet} and has one virtual CPU, 1 GB of RAM, 25 GB of
disk space, and the public IP address
\href{http://142.93.193.110}{142.93.193.110}. Docker Engine was then installed
on the Droplet by following Docker's official Ubuntu installation instructions
\cite{DockerUbuntuInstall}. Figure~\ref{fig:digitalocean-droplet} preserves the
original pre-upgrade cloud-console view; the text and host registry record the
current name and capacity.
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{digitalocean-droplet.png}
\caption{Original pre-upgrade view of the Ubuntu Droplet in the SSW 590
DevOps project; the current resource is named
\texttt{ssw590-group7-droplet} with 1 GB RAM and 25 GB storage.}
\label{fig:digitalocean-droplet}
\end{figure}
\FloatBarrier
\section{Installing Docker Engine on Ubuntu}
The package index was updated, the required certificate and download utilities
were installed, and Docker's official GPG key was saved in the APT keyring.
\begin{minted}{bash}
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
-o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
\end{minted}
The Docker repository was then added to the Ubuntu APT sources. The suite and
architecture values were determined automatically from the operating system.
\begin{minted}{bash}
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io \
docker-buildx-plugin docker-compose-plugin
\end{minted}
After installation, Docker was checked before the application images were
built and started.
\begin{minted}{bash}
sudo systemctl status docker
sudo docker --version
sudo docker run hello-world
\end{minted}
\section{First Container: Hello World Website}
\begin{devopsNote}[Historical deployment: public port 5050 is closed]
The commands and endpoint below preserve the earlier assignment record.
Public access to port 5050 has since been closed; do not rerun these historical
port-publishing commands as the current deployment procedure.
\end{devopsNote}
Following Section 2.5 of the supplied Docker setup guide, the team created a
minimal Node.js HTTP server, its \texttt{package.json}, a
\texttt{.dockerignore} file, and a Dockerfile based on
\texttt{node:20-alpine}. The image was built as \texttt{hello-node}; container
port 3000 was published through host port 5050.
\begin{minted}{bash}
cd hello-node-docker
sudo docker build -t hello-node .
sudo docker run -d --name hello-node -p 5050:3000 hello-node
sudo docker ps
\end{minted}
The historical endpoint (public port now closed) was
\href{http://142.93.193.110:5050}{http://142.93.193.110:5050}.
\section{Second Container: Two Buttons Website}
\begin{devopsNote}[Historical deployment: public port 8080 is closed]
The original two-button deployment below is historical. Public access to
port 8080 is now closed. Jenkins uses port 8080 only on the private bridge
and host loopback; users access Jenkins through its HTTPS hostname.
Do not rerun the historical public-port mapping below.
\end{devopsNote}
Following Section 2.6 of the supplied guide, the team created an Express-based
Node.js website with Blue and Red buttons. The project contained
\texttt{server.js}, \texttt{package.json}, \texttt{public/index.html},
\texttt{public/script.js}, and a Dockerfile. For Assignment 3 Step 3, the
original direct event-listener functions were replaced by a reusable
\texttt{ColorButtonController} class. Each button is represented by an instance
that stores its DOM element and target color, binds its click event, and changes
the page background through a class method.
\subsection{Class-Based JavaScript Implementation}
\begin{minted}{javascript}
class ColorButtonController {
constructor(buttonId, color) {
this.button = document.getElementById(buttonId);
this.color = color;
}
changeBackground() {
document.body.style.backgroundColor = this.color;
}
bind() {
this.button.addEventListener("click", () => this.changeBackground());
}
}
const blueButton = new ColorButtonController("blueBtn", "blue");
const redButton = new ColorButtonController("redBtn", "red");
blueButton.bind();
redButton.bind();
\end{minted}
The HTML loads the class-based script after defining both buttons.
\begin{minted}{html}
<button id="blueBtn">Blue</button>
<button id="redBtn">Red</button>
<script src="script.js"></script>
\end{minted}
\subsection{UML Class Diagram}
Figure~\ref{fig:color-button-uml} shows the updated object-oriented design.
The minus sign indicates private implementation data and the plus sign indicates
public operations. The same class is instantiated once for the Blue button and
once for the Red button.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[
uml/.style={draw=black, rounded corners=1pt, align=left,
inner sep=0pt, text width=10.5cm, font=\small}
]
\node[uml] (class) {%
\begin{minipage}{10.5cm}
\centering\textbf{ColorButtonController}\\[-2pt]
\rule{\linewidth}{0.4pt}
\raggedright $-$ button: HTMLButtonElement\\
$-$ color: string\\[-2pt]
\rule{\linewidth}{0.4pt}
$+$ ColorButtonController(buttonId: string, color: string)\\
$+$ bind(): void\\
$+$ changeBackground(): void
\end{minipage}
};
\end{tikzpicture}
\caption{UML class diagram for the class-based two-button website.}
\label{fig:color-button-uml}
\end{figure}
\FloatBarrier
\subsection{Build and Deployment}
The image was rebuilt as \texttt{color-buttons-app}; container port 3000 was
published through host port 8080. The existing container must be stopped and
removed before the revised image is deployed with the same container name.
\begin{minted}{bash}
cd color-buttons-app
sudo docker build -t color-buttons-app .
sudo docker stop color-buttons-app
sudo docker rm color-buttons-app
sudo docker run -d --name color-buttons-app -p 8080:3000 color-buttons-app
sudo docker ps
\end{minted}
The historical two-button endpoint (public port now closed) was
\href{http://142.93.193.110:8080}{http://142.93.193.110:8080}. Clicking either
button calls its controller instance and changes the page background to the
corresponding color.
\section{Deployment Summary}
The completed work for Steps 1 through 3 establishes a repeatable cloud deployment
workflow: provision the Ubuntu Droplet, install Docker from its official APT
repository, build each application image, run the containers with published
ports, implement reusable class-based client behavior, and confirm container
status with \texttt{docker ps}.
+156
View File
@@ -0,0 +1,156 @@
\chapter{Document Authoring Guide}
\ChapterLabel{DocumentGuide}
\index{LaTeX}
\index{document conventions}
\index{Appendix!Document Authoring Guide}
\section{How to Use This Appendix}
Use this appendix to maintain the template's file conventions, build process,
and review rules. Update it when the document structure or toolchain changes.
\section{Template Provenance}
This template was developed by \textbf{Darian Muresan, Ph.D.}, in conjunction
with \textbf{OpenAI Codex} and \textbf{Anthropic Claude Code}. Keep this
attribution distinct from the assignment-specific instructor metadata.
\section{File Naming and Responsibilities}
Every chapter file shall use the \texttt{devops} prefix, a PascalCase chapter
name, and the \texttt{.tex} suffix. Each such file shall contain one complete
chapter, beginning with \texttt{\string\chapter\{...\}}, and all of its
sections and subsections. Do not split one chapter into section-level
\texttt{.tex} files. For example, all of Chapter~2 is contained in
\path{devopsExampleAssignment.tex}. Do not add requirements or
architecture-design chapters; this template records a DevOps learning activity
and its operational evidence.
\section{Synonyms and Controlled Terms}
\index{synonyms}
Use one preferred term for each important concept. If an assignment uses
equivalent terms, record them here before release. For example, state whether
``continuous delivery'' refers to \gls{cd} generally or specifically excludes
automatic production deployment. Add important terms to
\texttt{devopsGlossary.tex} and index them where used.
\section{Building the PDF}
For Assignment 5, the authoritative publication route is the versioned
\path{.gitea/workflows/manual-pdf.yml} workflow in the MyFileAgent Gitea
repository. A trusted push to \texttt{main} or
\texttt{manual-build-validation} runs the registered \texttt{manual-latex}
runner and pinned temporary TeX container. Its command is:
\begin{verbatim}
python3 documentation/ci/build_manual.py
\end{verbatim}
The workflow supplies the triggering SHA, run number, run ID and attempt
through environment variables. The helper checks the checkout, creates
uncommitted build metadata in a fresh temporary workspace, runs
\texttt{latexmk -pdf} with minted shell escape, validates the PDF and references,
and publishes only successful output. It creates
\path{documentation/build/main.pdf} and a matching JSON manifest.
Download the named artifact from the successful Actions run and submit only
its PDF. See \ChapterRef{AutomatedManualBuild} for versions, limits, evidence,
retention, troubleshooting and credential boundaries.
For an explicitly unverified local draft, run from the documentation folder
inside the recorded TeX environment:
\begin{verbatim}
latexmk -pdf -shell-escape -interaction=nonstopmode \
-halt-on-error -file-line-error main.tex
\end{verbatim}
Without generated metadata the draft visibly says \texttt{+local.unverified}.
The legacy platform makefiles mentioned by the original template are not
included in this project; do not present those commands as tested here.
The toolchain includes bibliography, index and glossary utilities. This
manual's glossary/acronym lists are authored and linked directly; repeated
LaTeX passes resolve their links. Review compiler errors, undefined references,
layout and navigation, and do not edit generated auxiliary files or PDFs.
\section{Install LaTeX Tools on macOS}
\index{macOS}
\index{MacTeX}
\subsection{Recommended Installation}
Install the current full \href{https://www.tug.org/mactex/}{MacTeX}
distribution. It includes TeX Live, \texttt{pdflatex}, \texttt{bibtex},
\texttt{latexmk}, \texttt{makeglossaries}, \texttt{makeindex}, and useful
applications such as TeXShop and TeX Live Utility. The full distribution is the
least troublesome choice for this template because it includes the packages
used by the glossary, table, listing, color, and hyperlink features.
Either download the signed installer from the MacTeX web site and complete the
macOS installation dialog, or, if Homebrew is already installed, run:
\begin{verbatim}
brew install --cask mactex
\end{verbatim}
Close and reopen Terminal after installation. If the TeX commands are not
found, add the MacTeX binary directory to the current shell session:
\begin{verbatim}
export PATH="/Library/TeX/texbin:$PATH"
\end{verbatim}
Do not place this command in a shell profile until it has been verified on the
local computer.
\subsection{Verification and Compilation}
From the template directory, verify the tools:
\begin{verbatim}
command -v pdflatex bibtex latexmk makeglossaries makeindex
\end{verbatim}
Each command should print a path. Then create the PDF:
\begin{verbatim}
make -f makefileMacLinux pdf
\end{verbatim}
To remove generated intermediate files while keeping the PDF, run:
\begin{verbatim}
make -f makefileMacLinux clean
\end{verbatim}
\section{Install LaTeX Tools on Windows}
\index{Windows}
\index{MiKTeX}
\subsection{Recommended Installation}
Install the current Basic MiKTeX distribution using the official
\href{https://miktex.org/howto/install-miktex}{MiKTeX Windows installation
guide}. During installation, choose a per-user installation when appropriate
and set missing-package installation to \emph{Ask me first} or \emph{Yes}.
The latter is convenient for a student machine with Internet access; the former
makes each package installation explicit.
Open MiKTeX Console after installation, apply available updates, and install
the \texttt{latexmk} package if the verification command below cannot find it.
On an organization-managed computer, obtain approval before installing software
or changing execution policy.
\subsection{Verification and Compilation}
Open a new PowerShell window in the template directory and verify:
\begin{verbatim}
Get-Command pdflatex,bibtex,latexmk,makeglossaries,makeindex
\end{verbatim}
Each command should display a command record. Build the PDF with:
\begin{verbatim}
.\makefilePowerShell.ps1 -Action pdf
\end{verbatim}
If PowerShell blocks the script under a managed execution policy, ask the
system administrator for the approved procedure. Do not bypass institutional
security policy. To remove intermediate build files, run:
\begin{verbatim}
.\makefilePowerShell.ps1 -Action clean
\end{verbatim}
\section{Common Build Problems}
\begin{tabularx}{\linewidth}{L{3.0cm}Y}
\toprule \textbf{Symptom} & \textbf{Resolution}\\ \midrule
Command not found & Close and reopen the terminal. On macOS, verify the TeX
binary path; on Windows, verify MiKTeX completed installation and is on the user PATH.\\
Missing LaTeX package & Use MiKTeX Console or its approved on-the-fly package
installation prompt on Windows. On macOS, install the full MacTeX distribution
or use TeX Live Utility to add the missing package.\\
References or glossary incomplete & Run the supplied platform build instead of
a single \texttt{pdflatex} command; it runs BibTeX, the glossary tool, and the
index tool in the required order.\\
Script is blocked & Follow the institution's approved PowerShell policy or run
the documented build commands with an approved administrator.\\ \bottomrule
\end{tabularx}
\section{Authoring and Review Rules}
Replace bracketed placeholders with assignment facts. Keep operational examples
safe, bounded, and free of credentials. Link activities to evidence, retain
history, and state unknowns or instructor decisions explicitly. Rebuild after
structural, cross-reference, table, glossary, or index changes.
+50
View File
@@ -0,0 +1,50 @@
\chapter*{Document History}
\phantomsection
\ChapterLabel{DocumentHistory}
\addcontentsline{toc}{chapter}{Document History}
\markboth{Document History}{Document History}
\index{document history}
\footnotesize
\begin{longtable}{L{2.8cm}L{1.7cm}L{6.1cm}L{2.3cm}}
\caption{Document Update History}\label{Table:DocumentHistory}\\
\toprule
\textbf{Date / Version} & \textbf{Author Initials} & \textbf{Change} & \textbf{Changed At} \\
\midrule
\endfirsthead
\multicolumn{4}{l}{\footnotesize\itshape Document Update History (continued)}\\
\toprule
\textbf{Date / Version} & \textbf{Author Initials} & \textbf{Change} & \textbf{Changed At} \\
\midrule
\endhead
\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} \\
October 28, 2026 / 1.9.2 & GDL, NK, CDX & Expanded Assignment 7 into eight evidence sections; added architecture and measured incident diagrams, original team screenshots, final alert/runbook details, SLI counts, persistence, reviewed operational links and explicit verification limits. Updated Hosts with Grafana, Passwords with the team-specified \texttt{bitwarden-grafana} hint, front matter and reference controls. Operational PR 14 and documentation PR 15 were approved and merged; Actions run 16 compiled the manual. Final editorial and table-wrapping corrections are incorporated in version 1.9.2. & \ChapterRef{SREMonitoringReliability}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
October 24, 2026 / 1.9.1 & GDL, NK, CDX & Added only the Assignment 7 SLI/SLO source draft: definitions, hypothetical 99\% error-budget example, verified ten-minute baseline, reproducible queries and pending incident limitations. Included the SRE chapter and baseline evidence. & \ChapterRef{SREMonitoringReliability}, \AppendixRef{AIPromptLog} \\
October 24, 2026 / 1.9.0 & GDL, NK, CDX & Clarified that historical public ports 5050/8080 are now closed; retained original commands and evidence, private Jenkins routing, and linked the historical Assignment 5 preflight to the later enforced branch gate. Prepared on the Droplet for team review. & \ChapterRef{DigitalOceanDockerDeployment}, \ChapterRef{GiteaStartupFoundation}, \ChapterRef{AutomatedManualBuild}, \AppendixRef{AIPromptLog} \\
October 9, 2026 / 1.8.2 & GDL, NK, CDX & \textbf{Jenkins usage through the web interface.} Configured the named Jenkins administrator and a dedicated, non-admin Gitea integration account. Stored its token in Jenkins credentials and corrected organization discovery scope. Created the multibranch pipeline for the startup repository and selected origin PR head revisions; disabled untrusted fork discovery. Committed the Python pricing example, two real unit tests and Jenkinsfile. Verified checkout, syntax checks and test results through the web interface. Created issue 10 and PR 11; deliberately changed multiplication to addition, observed test failure and a blocked merge, then restored multiplication and obtained a passing required check. Corrected the branch-protection context to \texttt{myfileagent-python-ci/}\allowbreak\texttt{pipeline/pr-main}, required peer approval and disabled bypass. NK approved; GDL merged; Jenkins tested the resulting main commit. Confirmed Matrix permissions for the named administrator, with no Anonymous or general Authenticated Users permissions. Refreshed plugin-update information, retained the controller warning, and confirmed the single current CI token. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Passwords} \\
October 9, 2026 / 1.8.1 & GDL, NK, CDX & \textbf{Networking and service access.} Configured the CI hostname, DNS A record and Caddy HTTPS reverse proxy on the existing Droplet. Corrected the administrative SSH tunnel to forward to the host loopback mapping instead of a Docker-only hostname. Verified the live login page, certificate issuer and validity, HTTP-to-HTTPS redirect, and anonymous API denial. Kept raw Jenkins port 8080 bound to loopback and did not publish an agent port. Configured repository-scoped Gitea push and PR webhooks over the private Compose bridge; allowed only the named Jenkins destination and blocked the public webhook receiver at Caddy. Correlated a successful delivery with a commit-specific Jenkins run. The team retired earlier service allowances: the attached Cloud Firewall now permits inbound 22, 80 and 443 only. Recorded external IPv4 results, IPv6 disabled, no CI AAAA answer, and UFW inactive. Public browser access remains the team's selected policy; instructor exception evidence has not been supplied. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Hosts} \\
October 9, 2026 / 1.8.0 & GDL, NK, CDX & \textbf{Jenkins installation and persistence.} Installed official Jenkins LTS with Java 21 on the existing one-CPU, 1 GB DigitalOcean Droplet, after recording memory and disk capacity. Used the LTS image tag and pinned immutable digest; the installed release was 2.580.1. Versioned the non-secret Compose configuration with restart policy, bounded JVM/container memory, private networking and persistent Jenkins home. Recovered a stalled initial startup by stopping only Jenkins, confirming Gitea remained healthy, and retrying; the original exception's root cause was not established. Installed and recorded Git/Gitea/Checks and supporting plugin versions. Selected controller execution for trusted team code, without a privileged Docker socket or separate inbound agent listener. Installed Python from recorded Debian repositories and retained a reproduction helper for replacement containers. Restarted Jenkins without deleting storage; all 13 recorded configuration/build files survived unchanged. The saved main job then passed syntax and both tests. This verified restart persistence, not backup/restore. Updated Hosts for CI services and Passwords with credential hints only. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Hosts}, \ChapterRef{Passwords} \\
October 6--7, 2026 / 1.7.1 & GDL, CDX, NK & Implemented Assignment 5: imported the full manual and historical images; deployed the repository-scoped runner and pinned TeX image; enabled push builds with visible commit/run identity and downloadable artifacts. Verified source builds 3--4, controlled failure 5, repair 6, and downloaded publication PDFs. Updated Hosts for runner/job resources and Passwords for credential-storage hints only. Corrected layout and links, aligned the build guide, consolidated this history and the AI log, and checked all instruction Section 3.5 requirements. & \ChapterRef{AutomatedManualBuild}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
September 29, 2026 / 1.6.1 & NK, GDL, CDX & Activated \texttt{myfileagent.tech} with DNS, Caddy HTTPS, certificate and ACME evidence; documented the isolated backup/restore test, live links and temporary ports; refined the firewall, extra-credit, credential, figure-layout, and reference material; compiled and visually reviewed the manual. & \ChapterRef{GiteaStartupFoundation}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
September 26, 2026 / 1.6.0 & NK, GDL, CDX & Established the pinned Gitea/SQLite foundation, persistence test, two-member workflow, Cloud Firewall, key-only SSH, architecture and operations; updated Hosts and Passwords and documented the instructor-cleared SSH exception. & \ChapterRef{Hosts}, \ChapterRef{Passwords}, \ChapterRef{GiteaStartupFoundation}, \AppendixRef{AIPromptLog} \\
September 18, 2026 / 1.5.1 & NK, GDL, CDX & Added Chapter 8, the Project Proposal, describing the MyFileAgent one-click DevSecOps installation, build, configuration, testing, deployment, security, and Grafana monitoring pipeline. & \ChapterRef{ProjectProposal}, \AppendixRef{AIPromptLog} \\
September 18, 2026 / 1.5.0 & NK, GDL, CDX & Added Chapter 6 documenting the DigitalOcean Droplet, Docker installation, website deployment, class-based JavaScript button design, and UML diagram. Added Chapter 7 documenting the TeX Live Docker image, sample LaTeX source, build and run commands, and PDF verification. Updated the supporting report sections and project files. & \ChapterRef{DigitalOceanDockerDeployment}, \ChapterRef{LatexDocker}, \AppendixRef{AIPromptLog} \\
September 12, 2026 / 1.4.1 & NK, GDL, CDX & Added the complete Section 3 problem-set record with human-run outputs; organized the problem set as Section 3.2; included the Hosts and Passwords chapters; reduced and linked the assignment glossary; and verified the index links. & \ChapterRef{LinuxProblemSet}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
September 11, 2026 / 1.4.0 & NK, GDL, CDX & Customized the group report for Assignment 2; documented the Linux setup activity; added the Linux problem-set chapter & \ChapterRef{Introduction}, \ChapterRef{LinuxCommands}, \ChapterRef{LinuxProblemSet}, \AppendixRef{AIPromptLog} \\
September 2, 2026 / 1.3 & DDM, CDX & Provided the reusable \phantomsection\label{AcronymRef:SSW}SSW 590 DevOps assignment template and its one-file-per-chapter convention. & \hyperref[Chapter:TemplateAttribution]{Template baseline} \\
\end{longtable}
\normalsize
+126
View File
@@ -0,0 +1,126 @@
\chapter{Example Assignment}
\ChapterLabel{ExampleAssignment}
\index{activity brief}
\index{workflow}
\index{automation}
\index{infrastructure as code}
\index{evidence}
\index{observability}
\index{rollback}
\index{retrospective}
\index{continuous improvement}
\index{submission}
\index{cleanup}
\section{Activity Brief}
\subsection{Scenario}
Describe the operational scenario and why it matters. Use a bounded,
non-production system. \textit{Example: A team must deploy a small service
reliably to a remote Linux host and recover from a failed release.}
\subsection{Activities}
Assign stable IDs to each assessed activity. Add rows as needed.
\begin{tabularx}{\linewidth}{L{2.1cm}L{3.1cm}Y}
\caption{Activity Register\label{Table:ActivityRegister}}\\
\toprule \textbf{ID} & \textbf{Activity} & \textbf{Completion criterion}\\ \midrule
\ActivityID{ACT-01} & \textit{[Prepare environment]} & \textit{[repeatable environment baseline is present]}\\
\ActivityID{ACT-02} & \textit{[Automate workflow]} & \textit{[workflow runs from documented inputs]}\\
\ActivityID{ACT-03} & \textit{[Observe and recover]} & \textit{[evidence shows monitoring and recovery]}\\ \bottomrule
\end{tabularx}
\subsection{Success Criteria}
State observable outcomes, not implementation prescriptions. Include security,
cost, cleanup, and reproducibility criteria where applicable.
\subsection{Assessment Rubric}
\begin{tabularx}{\linewidth}{L{3.2cm}L{2.0cm}Y}
\toprule \textbf{Criterion} & \textbf{Weight} & \textbf{Evidence expected}\\ \midrule
Reproducible workflow & \textit{[points]} & \textit{[automation and clean-run proof]}\\
Operational quality & \textit{[points]} & \textit{[observability, rollback, security]}\\
Evidence and explanation & \textit{[points]} & \textit{[commands, outputs, rationale]}\\
Reflection & \textit{[points]} & \textit{[failure analysis and improvement]}\\ \bottomrule
\end{tabularx}
\section{Workflow and Implementation}
\subsection{Environment Baseline}
Specify the authorized environment, prerequisites, access model, versioned
inputs, and teardown procedure. Record commands in a repository script or
infrastructure-as-code definition; do not rely on a sequence of undocumented
console clicks.
\subsection{Procedure}
For each activity, state the goal, input, command or automation entry point,
expected result, and rollback or cleanup action. Link the corresponding
activity identifier and evidence identifier.
\begin{lstlisting}[language=bash,caption={Replace with a safe, repeatable workflow entry point.}]
# ./scripts/provision.sh --environment sandbox
# ./scripts/deploy.sh --version <tag>
# ./scripts/destroy.sh --environment sandbox
\end{lstlisting}
\subsection{Operational Controls}
Describe least-privilege access, secret handling, logging, monitoring, change
control, budget guardrails, backup or rollback, and resource cleanup. A secret
shall be referenced by its approved storage location, never pasted into this
document or committed to the repository.
\subsection{Failure Exercise}
Define one safe failure or degradation scenario. State the trigger, expected
signal, diagnosis path, recovery action, and evidence required. Never direct
students to disrupt shared or production infrastructure.
\section{Evidence Register}
\subsection{How to Use This Section}
Evidence demonstrates an actual execution; an expected result is not evidence.
Use sanitized command output, logs, screenshots, links to versioned files, or
recorded metrics. Redact secrets and personal information.
\begin{tabularx}{\linewidth}{L{1.7cm}L{2.2cm}L{2.6cm}Y}
\caption{Evidence Register\label{Table:EvidenceRegister}}\\
\toprule \textbf{ID} & \textbf{Activity} & \textbf{Evidence type} & \textbf{Location and interpretation}\\ \midrule
\EvidenceID{EVD-01} & \ActivityRef{ACT-01} & \textit{[log / script / image]} & \textit{[repository path or sanitized URL; what it demonstrates]}\\
\EvidenceID{EVD-02} & \ActivityRef{ACT-02} & \textit{[pipeline output]} & \textit{[location; result and relevant timestamp]}\\
\EvidenceID{EVD-03} & \ActivityRef{ACT-03} & \textit{[monitoring / recovery output]} & \textit{[location; failure signal and recovery result]}\\ \bottomrule
\end{tabularx}
\subsection{Evidence Quality Checks}
Evidence should identify the executed version, environment, time, command or
automation entry point, outcome, and any deviation from the expected result.
State failures plainly; they are valuable inputs to the retrospective.
\section{Retrospective}
\subsection{Outcome}
Summarize what happened, including completed work, gaps, and unexpected
behavior. Distinguish facts from interpretation.
\subsection{Flow and Feedback}
Identify queues, handoffs, manual steps, slow feedback, and sources of rework.
Explain which changes improved delivery flow or made failures visible sooner.
This emphasis on flow, feedback, and continual learning is consistent with the
DevOps framing introduced in \cite{PhoenixProject}.
\subsection{Improvement Experiments}
Propose one or more small, testable improvements. State the hypothesis, change,
measurement, expected result, and risk. Do not represent a proposal as an
approved production change.
\subsection{Team Contributions}
For team assignments, concisely identify each member's meaningful contribution
and any collaboration constraints.
\section{Submission and Cleanup}
\subsection{Submission Checklist}
\begin{itemize}
\item Versioned automation, configuration, and runbook are committed.
\item Evidence links resolve and contain no secrets or personal data.
\item The retrospective is complete and distinguishes results from proposals.
\item Remote resources have been destroyed or explicitly transferred as directed.
\item The repository identifies the final commit or release tag.
\end{itemize}
\subsection{Academic Integrity and Responsible Use}
Follow the course policy for collaboration and AI assistance. Cite external
code, tutorials, and AI-generated material as required by the instructor.
Students remain responsible for understanding, testing, and explaining all
submitted work.
@@ -0,0 +1,726 @@
\chapter{Startup Foundation with Gitea}
\ChapterLabel{GiteaStartupFoundation}
\index{Gitea}
\index{Docker!Gitea deployment}
\index{SQLite}
\index{persistent storage}
\index{DNS}
\index{HTTPS}
\index{ACME}
\index{Caddy}
\index{certificate renewal}
\index{Cloud Firewall}
\index{Docker volume}
\index{GitHub Student Developer Pack}
\index{pull request}
\index{SSH}
\index{TLS}
\section{Student Pack Domain and DNS}
On September 29, 2026, the team secured
\href{https://myfileagent.tech}{\texttt{myfileagent.tech}} through
\texttt{.TECH domains} using the
\href{https://education.github.com/pack}{GitHub Student Developer Pack}. The
team confirmed its eligible Pack account; the published offer provides one
standard \texttt{.TECH} domain free for one year. The registrar listed renewal
at \$29.99 per year. Nick owns the renewal task, disabled automatic renewal,
and recorded the September 29, 2027 expiration date. These non-secret terms
are recorded here without reproducing registrar account details.
The public \phantomsection\label{AcronymRef:DNS}DNS A record maps
\texttt{myfileagent.tech} to the Droplet IPv4
address \texttt{142.93.193.110}. An independently timed Windows lookup returned
that address, plain \phantomsection\label{AcronymRef:HTTP}HTTP returned
\texttt{308 Permanent Redirect} to the same hostname over
\phantomsection\label{AcronymRef:HTTPS}HTTPS, and HTTPS returned
\texttt{200 OK} through Caddy.
\begin{figure}[H]
\centering
\includegraphics[width=0.68\textwidth]{hw4_images/domain_http_evidence.png}
\caption{Dated independent DNS and HTTP evidence showing the public A record,
Caddy's HTTP-to-HTTPS redirect, and a successful HTTPS response.}
\label{fig:domain-http-evidence}
\end{figure}
\FloatBarrier
\section{Pinned Gitea Deployment}
On September 26, 2026, the team established a deployment of
\phantomsection\label{GlossaryRef:gitea}Gitea. It runs on
\texttt{ssw590-group7-droplet}. The deployment uses the official rootless
Gitea image following the official container guidance
\cite{GiteaDockerRootless}, and the official Caddy image from Docker Hub
\cite{CaddyDockerImage}. The exact pinned images and recorded digests are:
\begin{minted}{text}
gitea_image=docker.gitea.com/gitea:1.27.3-rootless
gitea_digest=sha256:1c17ecaead42eb3b5391553d8708103a4beb0e86edf5b9ebc1eb269c318845f2
caddy_image=caddy:2.11.4-alpine
caddy_digest=sha256:6aeddd44c3078b0f9a35206472a11420648a79c184603ef95957d0a20044cb2b
\end{minted}
The minimal definition consists of a versioned \texttt{compose.yaml}
and \texttt{Caddyfile}. The Gitea and Caddy services use
\texttt{restart: unless-stopped}; Git-over-\phantomsection\label{AcronymRef:SSH}SSH
is disabled.
The non-secret deployment files are versioned in the MyFileAgent repository as
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/gitea/compose.yaml}{\texttt{ops/gitea/}\allowbreak\texttt{compose.yaml}}
and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/gitea/Caddyfile}{\texttt{ops/gitea/}\allowbreak\texttt{Caddyfile}}.
The team verified the current public files after activation. The initial
Compose definition and Caddyfile were recorded by these commits, with later
commits preserving their version history:
\begin{minted}{text}
compose_commit=533ddfb38aaefaa36fbd130695b2e1adf566e822
caddyfile_commit=11ac824a326d40fdce71642cd37e2543b9eea12c
\end{minted}
The
following sanitized excerpt records the reproducible service, mount, port, and
network choices without credentials:
\begin{minted}{yaml}
name: myfileagent-gitea
services:
caddy:
image: caddy:2.11.4-alpine
container_name: myfileagent-caddy
restart: unless-stopped
profiles: [https]
ports: ["80:80", "443:443"]
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
networks: [edge, gitea-private]
gitea:
image: docker.gitea.com/gitea:1.27.3-rootless
container_name: myfileagent-gitea
restart: unless-stopped
environment:
GITEA__database__DB_TYPE: sqlite3
GITEA__database__PATH: /var/lib/gitea/data/gitea.db
GITEA__server__DOMAIN: "${GITEA_DOMAIN:-myfileagent.tech}"
GITEA__server__ROOT_URL: "${GITEA_ROOT_URL:-https://myfileagent.tech/}"
GITEA__server__DISABLE_SSH: "true"
GITEA__service__DISABLE_REGISTRATION: "true"
ports: ["127.0.0.1:3000:3000"]
volumes:
- gitea-data:/var/lib/gitea
- gitea-config:/etc/gitea
networks: [gitea-private]
\end{minted}
From a directory containing those two files, another authorized operator can
reproduce the current deployment with:
\begin{minted}{bash}
docker compose pull
docker compose --profile https up -d
docker compose ps
\end{minted}
Host port 3000 remains bound only to the
\phantomsection\label{GlossaryRef:loopback}loopback interface as
\texttt{127.0.0.1:3000}. An external connection attempt to public port 3000
failed as expected, while a request from the Droplet to
\texttt{http://127.0.0.1:3000/} returned HTTP 200. Public requests now terminate
at Caddy on ports 80 and 443 and traverse the private Compose network to
\texttt{gitea:3000}; the backend itself is never published publicly.
\section{Database and Persistence}
The team selected \phantomsection\label{GlossaryRef:sqlite}SQLite because this
is a small two-person course deployment and it avoids an unnecessary database
service and network port. Gitea stores its database at
\path{/var/lib/gitea/data/gitea.db}. The Docker-managed
\phantomsection\label{GlossaryRef:dockervolume}volumes
\texttt{myfileagent-gitea\_gitea-data} and
\texttt{myfileagent-gitea\_gitea-config} persist application data and
configuration outside the disposable container layer.
The team completed that replacement test on September 26, 2026 from
19:52:28 to 19:53:44 UTC. The exact before and after identifiers were:
\begin{minted}{text}
before_id=b0b377f252218b9495028307532d3529cd10c153dc18d3187470795b542618a8
after_id=186dbfeaf4d21609d8fa0b98741945844c69fc4a2d35d074935508ea0b008b48
\end{minted}
Before replacement, the first container served the MyFileAgent product
repository and open Issue~\#2,
``Implement validation that permits file operations only within the configured
demonstration directory and rejects traversal or out-of-scope paths.'' The
team then ran:
\begin{minted}{bash}
docker compose up -d --force-recreate --no-deps gitea
\end{minted}
The replacement container had the distinct after identifier shown above. The
same repository and open issue remained available, and the command record
reported \texttt{container\_replaced=PASS}. Both named volumes remained
mounted at \texttt{/var/lib/gitea} and \texttt{/etc/gitea}. Therefore the
repository, issue metadata, and configuration survived because their state was
stored in persistent volumes rather than the replaced container layer.
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\textwidth]{gitea_persistence_evidence.png}
\caption{Dated container-replacement evidence showing distinct before and
after container identifiers, the surviving MyFileAgent repository and Issue
\#2, a PASS result, and both persistent volume mounts.}
\label{fig:gitea-persistence-evidence}
\end{figure}
\FloatBarrier
This test verifies container-replacement persistence only; it is not a backup
or restore test.
\section{HTTPS and Certificate Renewal}
The team selected Caddy as the \phantomsection\label{GlossaryRef:reverseproxy}
reverse proxy and public \phantomsection\label{GlossaryRef:tls}
\phantomsection\label{AcronymRef:TLS}TLS termination
point. Caddy accepts public HTTPS and forwards private HTTP to
\texttt{gitea:3000} by Compose service name on the private
\texttt{gitea-private} network. Gitea never needs to publish its backend port
to the public interface. Caddy publishes ports 80 and 443 through the enabled
\texttt{https} profile. Its certificate and runtime state persist in the
\texttt{caddy-data} and \texttt{caddy-config} volumes.
The team compared Let's Encrypt and ZeroSSL, two publicly trusted ACME
certificate authorities supported by automated clients. Let's Encrypt was
selected because it provides free automated certificates without requiring a
paid plan and is the option recommended by the assignment. The Caddyfile pins
the Let's Encrypt production ACME directory. Caddy's
\phantomsection\label{GlossaryRef:acme}\phantomsection\label{AcronymRef:ACME}ACME
automation obtained the production
certificate, manages renewal, and adds the HTTP-to-HTTPS redirect
\cite{CaddyAutomaticHTTPS}.
The production proxy configuration selects the Let's Encrypt production ACME
directory and routes by Compose service name over the private network:
\begin{minted}{text}
{
acme_ca https://acme-v02.api.letsencrypt.org/directory
}
{$GITEA_HOSTNAME} {
reverse_proxy gitea:3000
}
\end{minted}
The Compose file defaults Gitea's \texttt{DOMAIN} to
\texttt{myfileagent.tech} and \texttt{ROOT\_URL} to
\texttt{https://myfileagent.tech/}. The live public repository is
available through the
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline}{MyFileAgent product-repository link}.
\paragraph{Activation and rollback.}
After the team confirmed the A record and firewall rules, it activated the
versioned deployment with the \texttt{https} profile:
\begin{minted}{bash}
cd /home/codex/myfileagent-gitea
docker compose --profile https config --quiet
docker compose --profile https up -d
\end{minted}
The activation preserved all four named volumes. If public access fails, the
bounded recovery path preserves data and stops only the proxy while operators
test the loopback service:
\begin{minted}{bash}
cd /home/codex/myfileagent-gitea
docker compose --profile https stop caddy
docker compose up -d gitea
curl -fsS -o /dev/null -w 'loopback_http=%{http_code}\n' \
http://127.0.0.1:3000/
\end{minted}
\paragraph{Validation and observed production result.}
The team validated the merged Compose model and Caddyfile before activation,
then verified the live endpoint after activation \cite{CaddyCommandLine}:
\begin{minted}{bash}
cd /home/codex/myfileagent-gitea
docker compose --profile https config --quiet
docker exec myfileagent-caddy caddy validate \
--config /etc/caddy/Caddyfile --adapter caddyfile
\end{minted}
The production certificate has subject \texttt{CN=myfileagent.tech}, issuer
\texttt{Let's Encrypt E1}, a September 29, 2026 start date, and a December 28,
2026 expiration date. Figure~\ref{fig:domain-certificate-evidence} records
those fields and its thumbprint; Figure~\ref{fig:domain-http-evidence} records
the redirect and successful HTTPS response.
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{hw4_images/domain_evidence.png}
\caption{Production certificate evidence showing the MyFileAgent hostname,
Let's Encrypt issuer, validity interval, and certificate thumbprint.}
\label{fig:domain-certificate-evidence}
\end{figure}
Caddy automatically obtains, stores, and renews managed certificates and
creates the HTTP redirect \cite{CaddyAutomaticHTTPS}. Caddy does not document
a Certbot-style \texttt{renew --dry-run} command. The team therefore tested
the same automation path with a temporary \texttt{acme-test.myfileagent.tech}
A record and Let's Encrypt staging directory. The first attempts occurred
before public DNS propagation and reported that no record existed. The team
confirmed the A record through the \texttt{1.1.1.1} and \texttt{8.8.8.8}
resolvers, retried, and observed multiple external HTTP-01 requests, a valid
authorization, and \texttt{certificate obtained successfully}. It then removed
the temporary Caddy block and DNS record and reconfirmed production HTTPS 200.
This is recorded as a successful staging automation exercise, not as a claim
that the production certificate was forcibly renewed.
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{hw4_images/caddy_renewal_test_evidence.png}
\caption{Dated Caddy ACME staging evidence showing renewal information,
successful certificate acquisition for the temporary test hostname, and a
subsequent successful production HTTPS response.}
\label{fig:caddy-renewal-test-evidence}
\end{figure}
\FloatBarrier
\section{Firewall and External Exposure}
\begin{devopsNote}[Current status: earlier public application ports are closed]
The September firewall rules, tests, figures, and table below are historical.
Public ports 5050 and 8080 were subsequently closed, as recorded in
\ChapterRef{JenkinsContinuousIntegration}. They are not current public
endpoints. Jenkins port 8080 remains private and loopback-only.
\end{devopsNote}
\phantomsection\label{GlossaryRef:cloudfirewall}
\paragraph{Exposure policy and temporary exceptions.}
The host currently publishes the earlier Assignment 3 applications on ports
5050 and 8080 while that work is graded; both returned HTTP 200 during the
September 26 check and were not altered. At Nick's direction, these two ports
will remain open only until Group Assignment~\#3 is graded; afterward, the team
will remove their inbound firewall rules when the earlier services are no
longer needed. The new Gitea backend is not public:
the host listener is \texttt{127.0.0.1:3000}, and an external port-3000 check
could not connect. The DigitalOcean Cloud Firewall
\texttt{ssw590-group7-gitea-firewall} was created and attached to the
\texttt{ssw590-group7-droplet}. The control panel reports eight total rules,
five inbound and three outbound. It permits
\phantomsection\label{AcronymRef:TCPAssignment4}80/TCP,
443/TCP, and---at the team's direction---administrative SSH on 22/TCP from all
IPv4 and IPv6 sources, and temporarily permits 5050/TCP and 8080/TCP for
Assignment 3 grading. Because the team requires SSH access from changing
locations, restricting SSH to a stable list of source addresses is not
operationally feasible. The instructor cleared this exception. SSH therefore
remains reachable from all IPv4 and IPv6 sources while the separately verified
key-only controls prohibit password and keyboard-interactive authentication.
\paragraph{Defense in depth.}
The Droplet has public IPv4 but no public IPv6 address. Outbound
traffic remains allowed for DNS, time synchronization, image retrieval, and
certificate services. This control must be implemented at the DigitalOcean
boundary rather than relying only on host UFW because Docker-published ports
can bypass expected UFW paths \cite{DigitalOceanCloudFirewalls}. The firewall
remains necessary even with HTTPS: HTTPS authenticates and encrypts web traffic,
but it does not close unrelated ports, restrict which services are reachable,
or prevent an accidentally published container port from accepting connections.
The firewall
is attached to one Droplet, shown by the control panel as
\texttt{ssw590-group7-droplet}, with the expected 1~GB / 25~GB / NYC1 facts.
Its three outbound rules allow ICMP, all TCP, and all UDP to IPv4 and IPv6
destinations. The control panel listed no overlapping firewall.
\paragraph{External verification.}
From an
external Windows client, the team obtained the final expected results on
September 29: 22/TCP, 80/TCP, 443/TCP, 5050/TCP, and 8080/TCP were reachable;
the Gitea backend on 3000/TCP and database port 5432/TCP were not reachable. A
fresh key-authenticated SSH connection also succeeded after firewall creation.
The team additionally opened an authenticated SSH local-forwarding session
from the same external workstation and loaded
\path{http://localhost:3000/myfileagent/myfileagent-pipeline}. This confirms that
the private Gitea administration path remains functional even though direct
public access to 3000/TCP is blocked.
Figure~\ref{fig:firewall-configuration-evidence} records the applied IPv4 and
IPv6 rule set, and Figure~\ref{fig:firewall-external-test-evidence} records the
external port-test results.
\begin{table}[H]
\centering
\caption{Host and container port mappings after firewall creation}
\label{tab:gitea-port-mappings}
\small
\begin{tabularx}{\textwidth}{L{1.9cm}L{3.4cm}Y Y}
\toprule
\textbf{Port} & \textbf{Listener or mapping} & \textbf{Current exposure} & \textbf{Purpose} \\
\midrule
22/TCP & Host OpenSSH & Public IPv4/IPv6; keys only & Administration and the verified Gitea tunnel \\
80/TCP & Caddy \texttt{80:80} & Public through firewall & HTTP redirect and ACME validation \\
443/TCP & Caddy \texttt{443:443} & Public through firewall & MyFileAgent HTTPS \\
3000/TCP & \path{127.0.0.1:3000:3000} & Loopback only & Private Gitea backend and SSH tunnel \\
5050/TCP & Earlier assignment service & Now closed publicly & Historical Assignment 3 grading \\
5432/TCP & No listener or mapping & Not public & Unused because SQLite was selected \\
8080/TCP & Earlier assignment service & Now closed publicly & Historical Assignment 3 grading \\
\bottomrule
\end{tabularx}
\end{table}
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{hw4_images/firewall_configuration_evidence.png}
\caption{Sanitized DigitalOcean Cloud Firewall evidence showing inbound
allowances for SSH, HTTP, HTTPS, and the two temporarily preserved grading
services, plus outbound ICMP, TCP, and UDP rules for IPv4 and IPv6.}
\label{fig:firewall-configuration-evidence}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.62\textwidth]{hw4_images/firewall_external_test_evidence.png}
\caption{Dated external Windows-client evidence showing public ports 22, 80,
443, 5050, and 8080 reachable while the loopback-only Gitea backend on 3000
and the unused database port 5432 remain unreachable.}
\label{fig:firewall-external-test-evidence}
\end{figure}
\paragraph{SSH hardening and firewall attachment.}
An initial attempt in the SSW590 team context was blocked by an account
permissions warning related to the payment method. Switching to the authorized My Team
context resolved that blocker and made the correct Droplet available for
attachment. Before permitting public SSH from arbitrary locations, the team
installed \path{/etc/ssh/sshd_config.d/00-ssw590-ssh-hardening.conf}. It
disables password and keyboard-interactive authentication, permits root only
with a key, and explicitly enables public-key authentication. The file passed
\texttt{sshd -t}, and SSH was reloaded without terminating the active session.
The team then confirmed a new key-authenticated session, confirmed that a
password-only session was rejected, and recorded the following effective
configuration at 23:27:51 UTC:
\begin{minted}{text}
2026-09-26T23:27:51+00:00
permitrootlogin without-password
pubkeyauthentication yes
passwordauthentication no
kbdinteractiveauthentication no
\end{minted}
OpenSSH reports \texttt{without-password} as the effective equivalent of the
configured \texttt{prohibit-password} policy. These human-run checks established
key-only SSH before Cloud Firewall attachment, and the final external test
reconfirmed port 22. These controls support the instructor-cleared exception
for administration from changing locations.
\clearpage
\section{Startup Team Workflow}
The team created the
\href{https://myfileagent.tech/myfileagent}{\texttt{myfileagent} organization}
and public
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline}{\texttt{myfileagent-pipeline} product repository}
with an initialized
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/README.md}{\texttt{README.md}}.
The organization contains \texttt{nkogut} and \texttt{glovely} in the Owners
team. The supplied configuration evidence confirms that both accounts are
active and have the team's intended site-administrator role. Both accounts
also participate in the organization's Owners team so that either team member
can administer the shared startup workspace.
The repository contains five actionable product and operations issues. Issue
\#1 traces the MyFileAgent product-scope documentation through branch
\texttt{issue-1-product-scope} and Pull Request~\#6: \texttt{nkogut} authored
the merged change and the linked issue closed. Issue~\#4 traces the versioned Gitea deployment
through branch \texttt{issue-4-gitea-deployment} and Pull Request~\#7:
\texttt{glovely} authored the merged change and the linked issue closed. The
remaining issues retain the product and operations backlog.
The team then completed reciprocal approval on two additional merged changes:
\texttt{nkogut} authored Pull Request~\#8 and \texttt{glovely} submitted an
\texttt{APPROVED} review; \texttt{glovely} authored Pull Request~\#9 and
\texttt{nkogut} submitted an \texttt{APPROVED} review. The dated evidence also
shows both intended administrator accounts. Pull Request~\#8 references closed
operations Issue~\#4, while Pull Request~\#9 references closed product Issue~\#1.
Figure~\ref{fig:gitea-configuration-evidence} therefore records two complete
issue-linked, reciprocally reviewed, merged, and closed workflow traces while
leaving unfinished Issues~\#2, \#3, and \#5 open.
\noindent\textit{Evidence note.} This image was captured on September 26,
2026, before the organization and repository received their current names.
The displayed \texttt{filepilot/filepilot-pipeline} repository is the same
repository now available as
\texttt{myfileagent/myfileagent-pipeline}; its issues, pull requests, reviews,
and history were preserved.
\begin{figure}[H]
\centering
\includegraphics[width=0.72\textwidth]{hw4_images/gitea_configuration_evidence.png}
\caption{Dated Gitea configuration and workflow evidence showing both
administrator accounts, the public MyFileAgent repository, five actionable
issues, merged Pull Requests~\#8 and \#9 linked to closed Issues~\#4 and
\#1, and reciprocal approved reviews.}
\label{fig:gitea-configuration-evidence}
\end{figure}
\FloatBarrier
\section{Architecture and Operation}
The production request path is browser to DigitalOcean Cloud Firewall to Caddy
on 443, then Caddy to
\texttt{gitea:3000} over the private Compose bridge network. Gitea reads its SQLite
file and repository data from persistent Docker volumes. There is no public
Gitea application or database port. Caddy is configured for both the edge and
private networks; Gitea is attached only to the private network. Public
isolation is enforced by the loopback host binding and firewall rather than
Docker's \texttt{internal} network flag. An initial attempt using that flag
left the requested loopback publication unprogrammed, causing an empty browser
response; the team corrected the network definition while preserving the
named data volumes. An authenticated SSH local-forward remains available as an
administrative fallback and was verified before public activation.
Figure~\ref{fig:gitea-architecture} adapts the assignment reference to the
team's actual SQLite deployment. Solid arrows show the active public HTTPS
request path, the dashed arrow shows the verified SSH-tunnel fallback,
and the data arrow terminates in Docker-managed persistent storage rather than
the disposable Gitea container layer.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[
node distance=9mm and 12mm,
component/.style={draw, rounded corners, align=center, minimum height=12mm,
text width=2.45cm, fill=devopsLightBlue},
private/.style={draw, rounded corners, align=center, minimum height=12mm,
text width=2.45cm, fill=green!10},
data/.style={draw, cylinder, shape border rotate=90, aspect=0.28,
align=center, minimum height=15mm, text width=2.55cm, fill=gray!12},
flow/.style={-{Latex[length=2.5mm]}, thick},
tunnel/.style={-{Latex[length=2.5mm]}, thick, dashed}
]
\node[component] (browser) {Public browser\\HTTPS};
\node[component, right=of browser] (firewall) {DigitalOcean\\Cloud Firewall};
\node[component, right=of firewall] (caddy) {Caddy proxy\\\texttt{https} profile};
\node[private, right=of caddy] (gitea) {Gitea\\\texttt{gitea:3000}};
\node[data, below=of gitea] (storage) {\texttt{gitea-data}\\repositories +\\SQLite file};
\node[component, below=of browser] (admin) {Team admin\\SSH client};
\node[component, below=of firewall] (sshd) {Host OpenSSH\\key-only};
\draw[flow] (browser) -- node[above, font=\tiny]{443 / optional 80} (firewall);
\draw[flow] (firewall) -- node[above, font=\tiny]{80, 443} (caddy);
\draw[flow] (caddy) -- node[above, font=\tiny]{private} (gitea);
\draw[flow] (gitea) -- node[right, font=\scriptsize]{mounted path} (storage);
\draw[tunnel] (admin) -- node[above, font=\scriptsize]{22/TCP} (sshd);
\draw[tunnel] (sshd) -| node[pos=0.72, below, font=\scriptsize]{\texttt{127.0.0.1:3000}} (gitea);
\end{tikzpicture}
\caption{MyFileAgent Gitea request, administration, and persistence paths.
Caddy alone publishes the web edge; Gitea and its SQLite data remain private.}
\label{fig:gitea-architecture}
\end{figure}
\FloatBarrier
The service is operated from \path{/home/codex/myfileagent-gitea} with
\texttt{docker compose}. Container status, recent logs, loopback HTTP response,
volume presence, and memory availability were checked after startup. This
startup check is not the required persistence-replacement test and is not a
backup or restore test.
Routine restart and first-line troubleshooting use the versioned Compose
project and do not delete named volumes:
\begin{minted}{bash}
cd /home/codex/myfileagent-gitea
docker compose restart gitea
docker compose ps
docker compose logs --tail=100 gitea
curl -fsS -o /dev/null -w 'loopback_http=%{http_code}\n' \
http://127.0.0.1:3000/
docker inspect myfileagent-gitea \
--format '{{range .Mounts}}{{println .Name "->" .Destination}}{{end}}'
\end{minted}
Operators first check container state and recent logs, then the loopback HTTP
response and expected volume mounts. If public HTTPS fails while the
loopback check succeeds, the fault domain moves outward to the private proxy
network, Caddy logs, certificate state, DNS, and Cloud Firewall. A routine
restart reuses the existing volumes; the completed container-replacement test
proved persistence across replacement. Neither operation proves recoverability
from deletion or corruption, so neither is described as a backup/restore test.
\section{Manual Quality and Controls}
This chapter distinguishes observed results from planned or optional work. The
Hosts table records the current Droplet name, capacity, address, and non-root
administrative account, the private SSH-forwarded fallback, and the active
public hostname \texttt{myfileagent.tech}. The Passwords table
records only the Bitwarden entry names \texttt{Gitea - Nick},
\texttt{Gitea - Gowri}, and \texttt{.tech Domain} for the individual
\texttt{nkogut} and \texttt{glovely} accounts and registrar access; it contains
no passwords or derivation information. This Assignment 4 work uses one
consolidated history entry and one consolidated AI-assistance entry. The
required implementation and evidence are complete, with an instructor-cleared
SSH source-policy exception documented above. The optional backup/restore test
is recorded separately below and is not counted among the eight required
rubric items. Version~1.6.1 was compiled and visually inspected after the final
content and layout updates.
\clearpage
\section{Optional Extra Credit: Verified Backup and Restore}
\index{backup and restore}
\index{Gitea!backup and restore}
\paragraph{Completion status.}
The team completed and documented every part of the optional extra credit:
\begin{enumerate}[label=\arabic*.,leftmargin=*,nosep]
\item a dated backup method with its scope and temporary storage location;
\item a sanitized archive listing and a consistent cold-backup procedure; and
\item a pre-backup repository and issue, isolated restore, repository and
issue usability checks, labeled original/restored screenshots, and a
dated PASS outcome with cleanup evidence.
\end{enumerate}
On September 29, 2026, the team created the public
\href{https://myfileagent.tech/nkogut/backup-restore-proof}{\texttt{nkogut/backup-restore-proof}}
repository with an initialized \texttt{main} branch and open Issue~\#1,
``Verify repository and issue survive isolated restore.'' Both records existed
before the backup and served as recovery acceptance criteria.
\paragraph{Backup method and consistency.}
The team used a \phantomsection\label{GlossaryRef:coldbackup}cold backup so the
SQLite database, repositories,
attachments, and application files belonged to one recoverable point in time.
It stopped only the production Gitea container, archived the
\texttt{myfileagent-gitea\_gitea-data} and
\texttt{myfileagent-gitea\_gitea-config} volumes, then immediately restarted
Gitea. Caddy, the firewall, and the earlier grading services were unchanged.
Production was stopped at 20:19:13 UTC and healthy again at 20:19:17 UTC.
The archive was stored temporarily at
\path{/home/codex/myfileagent-gitea/backups/}
\path{myfileagent-gitea-backup-20260929T201913Z.tar.gz}. It was 117~KiB and
had SHA-256 digest
\texttt{b58b378bf1fca318160c0df370552e80ebfe967351daf3b88256c37e59bbe716}.
The backup command used read-only source mounts:
\begin{minted}{bash}
docker compose stop gitea
docker run --rm -u "$(id -u):$(id -g)" \
-v myfileagent-gitea_gitea-data:/source/data:ro \
-v myfileagent-gitea_gitea-config:/source/config:ro \
-v /home/codex/myfileagent-gitea/backups:/backup \
caddy:2.11.4-alpine \
sh -c 'tar -czf /backup/myfileagent-gitea-backup-20260929T201913Z.tar.gz \
-C /source data config'
docker compose up -d gitea
\end{minted}
The sanitized listing showed both the SQLite database and repository objects
inside the same archive:
\begin{minted}{text}
data/data/gitea.db
data/git/repositories/nkogut/backup-restore-proof.git/HEAD
data/git/repositories/nkogut/backup-restore-proof.git/refs/heads/main
production_after=nkogut/backup-restore-proof state=available
production_issue_after=#1 state=open
backup_phase=PASS
\end{minted}
\paragraph{Isolated restore and verification.}
The archive was extracted into new volumes
\texttt{myfileagent-restore-gitea-data} and
\texttt{myfileagent-restore-gitea-config}. A separate container named
\texttt{myfileagent-gitea-restore-test} used the same pinned Gitea image and
published only \texttt{127.0.0.1:3300}; it was never added to Caddy or the
Cloud Firewall. The production volumes were not mounted into the restore
container.
\begin{minted}{bash}
docker volume create myfileagent-restore-gitea-data
docker volume create myfileagent-restore-gitea-config
docker run --rm -u 0 \
-v myfileagent-restore-gitea-data:/restore/data \
-v myfileagent-restore-gitea-config:/restore/config \
-v /home/codex/myfileagent-gitea/backups:/backup:ro \
caddy:2.11.4-alpine \
sh -c 'tar -xzf /backup/myfileagent-gitea-backup-20260929T201913Z.tar.gz \
-C /restore && chown -R 1000:1000 /restore/data /restore/config'
docker run -d --name myfileagent-gitea-restore-test --restart no \
-p 127.0.0.1:3300:3000 \
-e GITEA__server__ROOT_URL=http://127.0.0.1:3300/ \
-e GITEA__server__DISABLE_SSH=true \
-v myfileagent-restore-gitea-data:/var/lib/gitea \
-v myfileagent-restore-gitea-config:/etc/gitea \
docker.gitea.com/gitea:1.27.3-rootless
\end{minted}
The restored \phantomsection\label{AcronymRef:API}API returned the same public
repository, default branch, and open
issue. A Git smart-HTTP \texttt{ls-remote} request returned two refs, showing
that the repository was usable rather than merely listed. Production remained
healthy throughout the isolated restore test.
\begin{minted}{text}
restore_ready=1
restored_repo=nkogut/backup-restore-proof default_branch=main private=false
restored_issue=#1 Verify repository and issue survive isolated restore state=open
restored_git_refs=2
restore_port=127.0.0.1:3300
production_status=1.27.3
restore_phase=PASS
\end{minted}
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{0.49\textwidth}
\centering
\textbf{Production repository}\par\smallskip
\includegraphics[width=\linewidth,trim=0 450 0 0,clip]{hw4_images/backup_original_repository.png}
\end{minipage}\hfill
\begin{minipage}[t]{0.49\textwidth}
\centering
\textbf{Isolated restored repository}\par\smallskip
\includegraphics[width=\linewidth,trim=0 450 0 0,clip]{hw4_images/backup_restored_repository.png}
\end{minipage}
\caption{The initialized proof repository in production and in the separate
loopback-only restored Gitea instance.}
\label{fig:gitea-backup-repository-evidence}
\end{figure}
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{0.49\textwidth}
\centering
\textbf{Production Issue \#1}\par\smallskip
\includegraphics[width=\linewidth,trim=0 130 0 0,clip]{hw4_images/backup_original_issue.png}
\end{minipage}\hfill
\begin{minipage}[t]{0.49\textwidth}
\centering
\textbf{Restored Issue \#1}\par\smallskip
\includegraphics[width=\linewidth,trim=0 130 0 0,clip]{hw4_images/backup_restored_issue.png}
\end{minipage}
\caption{The same open issue and pre-backup description in production and
in the isolated restored instance.}
\label{fig:gitea-backup-issue-evidence}
\end{figure}
The full sanitized command record is retained as
\path{backup_restore_evidence.txt} in the Assignment 4 working directory. It
contains no archive contents, credentials, private keys, or access tokens. The
backup archive itself is not part of the submitted manual. After evidence
capture, the team removed the temporary restore container, both restore
volumes, and the sensitive archive at 20:25:38 UTC. Each cleanup check reported
\texttt{PASS}, and the production proof repository remained available.
\begin{minted}{text}
restore_container_removed=PASS
restore_volumes_removed=PASS
backup_archive_removed=PASS
production_repo=nkogut/backup-restore-proof available
cleanup_completed=2026-09-29T20:25:38+00:00
\end{minted}
+34
View File
@@ -0,0 +1,34 @@
% Assignment 2 glossary: only terms directly used in the assignment.
% Each page number is an explicit hyperlink to the corresponding occurrence.
\chapter*{Glossary}
\markboth{Glossary}{Glossary}
\index{glossary}
\begin{description}[style=nextline,leftmargin=3.1cm,labelindent=0pt]
\item[\textbf{ACME}] The automated protocol Caddy uses to obtain and renew the MyFileAgent TLS certificate. \hfill Reference: \hyperref[GlossaryRef:acme]{p.~\pageref*{GlossaryRef:acme}}
\item[\textbf{Cloud Firewall}] A DigitalOcean network-boundary control that permits only selected inbound traffic before it reaches the Droplet. \hfill Reference: \hyperref[GlossaryRef:cloudfirewall]{p.~\pageref*{GlossaryRef:cloudfirewall}}
\item[\textbf{cold backup}] A consistent backup taken while the application writing the data is stopped. \hfill Reference: \hyperref[GlossaryRef:coldbackup]{p.~\pageref*{GlossaryRef:coldbackup}}
\item[\textbf{Docker volume}] Docker-managed persistent storage whose contents survive replacement of the container that mounts it. \hfill Reference: \hyperref[GlossaryRef:dockervolume]{p.~\pageref*{GlossaryRef:dockervolume}}
\item[\textbf{Gitea}] A self-hosted software-development service providing Git repositories, issues, organizations, and pull requests. \hfill Reference: \hyperref[GlossaryRef:gitea]{p.~\pageref*{GlossaryRef:gitea}}
\item[\textbf{loopback interface}] A host-local interface; binding Gitea to \texttt{127.0.0.1} prevents direct access through the Droplet's public interface. \hfill Reference: \hyperref[GlossaryRef:loopback]{p.~\pageref*{GlossaryRef:loopback}}
\item[\textbf{reverse proxy}] A service that accepts public requests and forwards them to a private backend; Caddy performs this role for Gitea. \hfill Reference: \hyperref[GlossaryRef:reverseproxy]{p.~\pageref*{GlossaryRef:reverseproxy}}
\item[\textbf{SQLite}] An embedded database stored in a local file rather than a separately exposed database service. \hfill Reference: \hyperref[GlossaryRef:sqlite]{p.~\pageref*{GlossaryRef:sqlite}}
\item[\textbf{TLS}] The protocol that authenticates the HTTPS endpoint and encrypts browser traffic. \hfill Reference: \hyperref[GlossaryRef:tls]{p.~\pageref*{GlossaryRef:tls}}
\item[\textbf{build artifact}] A file produced by a workflow and retained with its run for download. \hfill Reference: \hyperref[GlossaryRef:buildartifact]{p.~\pageref*{GlossaryRef:buildartifact}}
\item[\textbf{build identity}] The manual version combined with the triggering Git revision and workflow run identifier. \hfill Reference: \hyperref[GlossaryRef:buildidentity]{p.~\pageref*{GlossaryRef:buildidentity}}
\item[\textbf{Actions runner}] A registered worker that requests Gitea workflow jobs and executes them in its configured environment. \hfill Reference: \hyperref[GlossaryRef:actionsrunner]{p.~\pageref*{GlossaryRef:actionsrunner}}
\item[\textbf{Jenkins controller}] The service that stores CI configuration and, in this deployment, also executes trusted pipeline commands. \hfill Reference: \hyperref[GlossaryRef:jenkinscontroller]{p.~\pageref*{GlossaryRef:jenkinscontroller}}
\item[\textbf{Jenkinsfile}] A versioned pipeline recipe containing checkout, syntax and test stages. \hfill Reference: \hyperref[GlossaryRef:jenkinsfile]{p.~\pageref*{GlossaryRef:jenkinsfile}}
\item[\textbf{required status check}] A named result on the latest pull-request head commit that branch protection requires before merge. \hfill Reference: \hyperref[GlossaryRef:requiredcheck]{p.~\pageref*{GlossaryRef:requiredcheck}}
\item[\textbf{webhook}] An event notification that starts integration processing; successful delivery alone is not a passing build or merge gate. \hfill Reference: \hyperref[GlossaryRef:webhook]{p.~\pageref*{GlossaryRef:webhook}}
\item[\textbf{SRE}] Engineering approach combining reliability objectives, monitoring and operations. \hfill Reference: \hyperref[GlossaryRef:sre]{p.~\pageref*{GlossaryRef:sre}}
\item[\textbf{dashboard}] Named visual collection of operational measurements. \hfill Reference: \hyperref[GlossaryRef:dashboard]{p.~\pageref*{GlossaryRef:dashboard}}
\item[\textbf{SLI}] Measured service success indicator with observation coverage. \hfill Reference: \hyperref[GlossaryRef:sli]{p.~\pageref*{GlossaryRef:sli}}
\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}
+28
View File
@@ -0,0 +1,28 @@
\chapter{Hosts}
\ChapterLabel{Hosts}
\index{hosts}
\index{DigitalOcean}
\section{Overview}
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{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 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{longtable}
+102
View File
@@ -0,0 +1,102 @@
\chapter{Introduction}
\ChapterLabel{Introduction}
\index{introduction}
\index{Linux}
\index{Docker}
\index{DigitalOcean}
\index{LaTeX}
\section{Assignment Purpose}
This report records the team's developing DevOps environment and the work
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
by deploying Docker Engine on a DigitalOcean Droplet, containerizing two Node.js
websites, redesigning the two-button website with class-based JavaScript, and
using a TeX Live container to compile a simple LaTeX document. The report also
proposes the MyFileAgent Pipeline, a Python-based DevSecOps project centered on a
one-click workflow that installs dependencies, configures the environment,
builds containers, runs tests and security checks, deploys to DigitalOcean, and
verifies and monitors the result. A deliberately limited LLM file-replacement
task serves only as the pipeline's working demonstration. Assignment 4 adds a
version-pinned Gitea service with SQLite persistence, a Student Pack domain,
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
the Node.js and LaTeX workflows. Assignment 5 moves the complete report source into the team Gitea repository
and uses Gitea Actions for the submission PDF; operational verification is
recorded in \ChapterRef{AutomatedManualBuild}.
Authentication secrets, passwords, and private keys are not included in this
report.
\section{Assignment Requirements}
The retained earlier assignments required the team to:
\begin{enumerate}[label=\arabic*.]
\item create a DigitalOcean Droplet, install Docker Engine on Ubuntu, and
document the deployment commands and website links using minted LaTeX;
\item deploy the Hello World and two-button Node.js websites in Docker
containers;
\item replace the two-button page's direct JavaScript handlers with a reusable
class-based design and present its UML class diagram;
\item create and document a TeX Live Docker container that compiles a simple
LaTeX document into a \phantomsection\label{AcronymRef:PDF}PDF; and
\item propose a one-click DevSecOps pipeline, a minimal working demonstration,
its DigitalOcean environment, Python toolchain, Grafana monitoring,
comparison plan, testing strategy, and security controls.
\item establish the MyFileAgent startup foundation with pinned Gitea,
persistent SQLite storage, a two-member issue and pull-request
workflow, a Student Pack domain, HTTPS, and controlled external
exposure.
\end{enumerate}
\paragraph{Assignment 5 scope.}
Implement Chapter 3 of the instruction PDF, \path{dosManual-V1.18.pdf}:
version the full manual source, configure a self-managed Gitea runner, build
on source pushes, embed commit/run identity, publish a PDF artifact, and
record two successful source changes plus a controlled compile failure and
repair. This completed work is retained as the foundation for Assignment 6.
\paragraph{Assignment 6 scope and current status.}
Implement Chapter 4 of \path{dosManual-V1.38.pdf}: deploy controlled Jenkins,
connect the startup repository, execute meaningful checks, report statuses,
require a passing check before merge, and demonstrate an issue-linked failed,
repaired, reviewed pull request. The deployment and first passing Python build
are verified on October 9, 2026; private webhook, failed/blocked and repaired/passing checks, NK review and
GDL merge are also verified. The job restart and subsequent passing build are verified. \ChapterRef{JenkinsContinuousIntegration} records that boundary.
\section{Report Organization}
\ChapterRef{LinuxCommands} and \ChapterRef{LinuxProblemSet} retain the Linux
environment setup, command record, questions, solutions, and observed outputs.
\ChapterRef{Hosts} and \ChapterRef{Passwords} document the related host and
credential-management exercises. \ChapterRef{DigitalOceanDockerDeployment}
records the Droplet, Docker installation, Node.js deployments, class-based
JavaScript, and UML class diagram. \ChapterRef{LatexDocker} presents the TeX Live
container, sample source, build commands, and verification procedure.
\ChapterRef{ProjectProposal} describes the MyFileAgent Pipeline, its one-click
workflow, Python demonstration, tests, security gates, deployment,
Grafana-based observability, comparison strategy, and delivery plan.
\ChapterRef{GiteaStartupFoundation} records the verified Gitea foundation and
its domain, HTTPS, persistence, firewall, workflow, architecture, and operating
evidence.
\AppendixRef{AIPromptLog} records material \phantomsection\label{AcronymRef:AI}AI
assistance used to organize, author, and review the report.
\section{Submission and Verification}
Assignment 4 evidence is retained as a historical record. Assignment 5 has verified the runner, two successive source builds, downloaded versioned artifacts, and a controlled failure/repair exercise. Submit only the PDF downloaded from the final successful
Gitea Actions run after visual and navigation checks; a local draft is not the
final submission. Current status appears in \ChapterRef{AutomatedManualBuild}.
\ChapterRef{JenkinsContinuousIntegration} records Assignment 6 deployment, HTTPS, integration, pipeline verification, credential boundaries and remaining acceptance work.
@@ -0,0 +1,800 @@
\chapter{Continuous Integration with Jenkins}
\ChapterLabel{JenkinsContinuousIntegration}
\index{Jenkins}\index{continuous integration}\index{Python}\index{pull request!CI}
\begin{devopsNote}[Assignment 6 status: CI workflow verified; remaining operations checks pending]
This chapter implements Chapter 4 of \path{dosManual-V1.38.pdf} incrementally.
On October 9, 2026, the team deployed Jenkins, configured HTTPS and named
accounts, connected Gitea, and verified the first Python pipeline build.
The eight sections below follow the instructor's rubric order. Repository
webhooks, protected-branch enforcement, the controlled failed-then-repaired
pull request, peer review and merge were subsequently verified the same day.
The dedicated restart test, team external IPv4 port checks and plugin
update/security-notice review were subsequently verified. Remaining access
policy and final access verification remain identified explicitly. The team
subsequently supplied current Cloud Firewall attachment/rules, IPv4-only
evidence, UFW status, completed plugin and pipeline views, and the named-user
Matrix authorization configuration.
\end{devopsNote}
All dates in this chapter refer to October 9, 2026 unless stated otherwise.
Jenkins screenshots can display UTC; the team works in America/New\_York.
Build 1 began at 18:34 UTC (14:34 EDT). The account passwords and token values
were entered by the team privately and are not part of this report.
\section{Jenkins Deployment and Persistence}
\phantomsection\label{GlossaryRef:jenkinscontroller}\index{Jenkins!controller}
\subsection{Deployment choice and reproducible configuration}
The team reused \texttt{ssw590-group7-droplet}, the existing one-vCPU,
1 GB RAM, 25 GB disk DigitalOcean host. The initial read-only capacity check
showed 312 MiB available memory, no swap, and 17 GB free disk. The team chose
to trial Jenkins on that host rather than resize it. No capacity upgrade or
swap configuration was performed.
Jenkins uses the official image from Docker Hub \cite{JenkinsDockerA6}.
The requested tag was \texttt{jenkins/jenkins:lts-jdk21}; the installed
application reported version \textbf{2.580.1}. The deployed image is pinned
to the following immutable repository digest:
\begin{lstlisting}
jenkins/jenkins@sha256:
a660310e39ade10631f774bacd5219de767dfd08947ea5c32a739b5e5bb382c1
\end{lstlisting}
The digest is one uninterrupted image reference in the actual Compose file.
The configuration lives at \path{/home/codex/myfileagent-gitea/compose.jenkins.yaml}
and is versioned in
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/ops/jenkins/compose.jenkins.yaml}{the feature branch's Jenkins Compose file}.
The non-secret excerpt is:
\begin{lstlisting}
services:
jenkins:
container_name: myfileagent-jenkins
restart: unless-stopped
environment:
JAVA_OPTS: "-Xms64m -Xmx256m"
mem_limit: 448m
ports:
- "127.0.0.1:8080:8080"
volumes:
- jenkins-home:/var/jenkins_home
networks:
- gitea-private
volumes:
jenkins-home:
\end{lstlisting}
The full file includes the pinned image reference. Jenkins shares the
existing private bridge with Gitea and Caddy. The volume
\texttt{myfileagent-gitea\_jenkins-home} stores configuration, accounts,
credentials, plugins and jobs outside the disposable container layer.
The JVM heap limit is not the whole process's memory footprint; the Docker
limit bounds the container. Neither limit proves that every future workload
fits. Jobs should be run one at a time on this small host.
\subsection{Verification and recovery}
\EvidenceID{A6-DEPLOY-01}: the combined Compose configuration validated before
startup. The first start stalled and a fresh SSH connection timed out.
The operator stopped only Jenkins and verified Gitea HTTPS remained HTTP 200.
A subsequent start completed initialization and returned HTTP 200 from the
internal login page. The original attempt also logged an initialization
class-loading exception; its underlying cause was not established, so the
report does not attribute that exception conclusively to memory.
Adding a loopback port mapping recreated the container without deleting its
home volume. Later, installing Gitea plugins required a restart. The named
administrator account and saved Jenkins URL remained usable afterward.
These initial observations established retained setup state. The dedicated
job-before/job-after restart test was subsequently performed as follows.
Restart persistence is \textbf{not a backup/restore test}; no Jenkins backup
test has been performed or is claimed.
\subsection{Verified job restart and persistence}
\EvidenceID{A6-PERSIST-01}: before restarting Jenkins, the operator recorded
13 saved files: the multibranch/child-job configuration, six historical
\texttt{build.xml} records, and build-number state. Each file's path, byte
length and SHA-256 digest was saved. The six builds comprised feature-branch
build 1, PR 11 builds 1--4, and main build 1. The command was:
\begin{lstlisting}
cd /home/codex/myfileagent-gitea
docker compose -f compose.yaml -f compose.jenkins.yaml restart jenkins
\end{lstlisting}
No volume was deleted. After readiness returned, all 13 files were present
with unchanged hashes and sizes. Jenkins HTTPS login and Gitea both returned
HTTP 200. The authenticated browser displayed the saved multibranch pipeline,
both branches, the PR and previous build history. Evidence is retained in
\path{evidence/assignment6/persistence/before.json},
\path{evidence/assignment6/persistence/after.json} and
\path{evidence/assignment6/persistence/result.json}.
The operator then manually scheduled
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/2/console}{main build 2}.
It checked out unchanged merge commit \texttt{131d605}, used the saved
\texttt{gitea-jenkins-ci} credential, found Python 3.13.5, passed syntax and
both unit tests, and reported SUCCESS to Gitea. The run began at 15:26:49 EDT
(19:26:49 UTC) on October 9, 2026 and took 25 seconds. This checks usable
pipeline behavior after restart, not merely file presence. It is an ordinary
service restart test, not a backup/restore or a new job-bearing container
replacement test.
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth]{hw6_images/post-restart-main-build2.png}
\caption[Post-restart main build 2 passed]{October 9, 2026: saved main job
build 2 succeeds after Jenkins restart on merge commit \texttt{131d605}.
The linked console records checkout, Python, both tests and status delivery.}
\label{fig:a6-persistence}
\end{figure}
\subsection{Recorded plugin versions}
The operator recorded installed plugin manifests after restart. Key versions
are listed below; the complete dependency inventory is retained at
\path{documentation/evidence/assignment6/plugin-inventory.txt}.
\begin{tabularx}{\linewidth}{L{4.3cm}Y}
\toprule \textbf{Plugin ID} & \textbf{Observed version}\\ \midrule
\texttt{gitea} & \texttt{283.v14b\_179495971}\\
\texttt{gitea-checks} & \texttt{606.679.vb\_d632867a\_6b\_b\_}\\
\texttt{git} & \texttt{5.10.1}\\
\texttt{workflow-aggregator} & \texttt{608.v67378e9d3db\_1}\\
\texttt{workflow-}\allowbreak\texttt{multibranch} & \texttt{842.v3a\_b\_59b\_57b\_e6e}\\
\texttt{matrix-auth} & \texttt{3.3}\\
\texttt{timestamper} & \texttt{1.30}\\
\bottomrule
\end{tabularx}
The initial strategy was ``logged-in users can do anything.'' The team
subsequently selected Matrix-based security, granted the named administrator
Overall/Administer, and retained no permissions for Anonymous or Authenticated
Users; the configuration and confirmation are recorded in Section~\ref{sec:a6-auth}.
\section{HTTPS, Access, and Firewall}
\subsection{Public hostname, login and certificate}
The A record \texttt{ci.myfileagent.tech} resolves to
\texttt{142.93.193.110}. Caddy terminates TLS and forwards privately to
\texttt{jenkins:8080}, following the Jenkins Caddy integration approach
\cite{JenkinsCaddyA6}. Jenkins Location is set to
\url{https://ci.myfileagent.tech/}. Caddy's standard reverse proxy handles the
forwarded host/protocol headers. Its added site block is:
\begin{lstlisting}
ci.myfileagent.tech {
reverse_proxy jenkins:8080
}
\end{lstlisting}
The file was backed up, validated in the running Caddy container, and reloaded.
Caddy uses the existing production Let's Encrypt ACME endpoint and persistent
certificate state; automatic HTTPS provides renewal management
\cite{CaddyAutomaticHTTPS}. A Jenkins-hostname-specific renewal exercise has
not yet been run.
\EvidenceID{A6-HTTPS-01}: external Windows HTTPS verification accepted the
certificate and returned HTTP 200 from the complete login-page URL:
\begin{center}
\url{https://ci.myfileagent.tech/login}
\end{center}
Only the login page is visible to users who are not signed in; protected
Jenkins pages and build details require authentication. The public Gitea
commit-status page linked in Section~\ref{sec:a6-public-results} lets a grader
inspect the recorded successful Jenkins status without a Jenkins login. Jenkins features require authentication: an anonymous request to
\path{/api/json} returned HTTP 403. HTTP returned 308 with a redirect to
HTTPS. The observed certificate issuer is Let's Encrypt YE1; validity is
October 9, 2026 17:05:21 UTC through January 7, 2027 17:05:20 UTC, with
\texttt{ci.myfileagent.tech} in the subject alternative name.
The dated non-secret verification is retained at
\path{documentation/evidence/assignment6/deployment-verification.txt}.
\begin{figure}[H]
\centering
\includegraphics[width=0.88\linewidth]{hw6_images/jenkins-https-login.jpg}
\caption{October 9, 2026: the live Jenkins HTTPS sign-in page. It supports
web-service availability only; it is not pipeline or merge-gate evidence.}
\label{fig:a6-login}
\end{figure}
\subsection{Access decision and port boundary}
The team requested access from all public addresses so the professor and TA
could open the service. Login remains required. The team states that public
access is permitted; an independently supplied instructor approval record
has not been attached. Chapter 4's written baseline additionally requires
approved source ranges or a private access path. Accordingly, this manual
records public access as a team-selected exception requiring instructor
confirmation, rather than claiming compliance with that baseline restriction.
\begin{tabularx}{\linewidth}{L{2.4cm}L{3.4cm}Y}
\toprule \textbf{Port/path} & \textbf{Configured exposure} & \textbf{Verification boundary}\\ \midrule
443/TCP & Public Caddy HTTPS & External Jenkins login 200; authentication tested separately.\\
80/TCP & Public Caddy HTTP & External 308 redirect; ACME validation also uses the proxy.\\
8080/TCP & Host \texttt{127.0.0.1} only & Mapping verified; team Windows TCP check failed as expected.\\
50000/TCP & No published agent port & No agent published; team Windows TCP check failed as expected.\\
3000/TCP & Gitea host loopback & Existing Gitea backend mapping retained.\\
SSH & Public TCP 22 & Current Cloud Firewall permits all IPv4 sources; IPv6 disabled on Droplet.\\
\bottomrule
\end{tabularx}
The earlier firewall evidence in \ChapterRef{GiteaStartupFoundation} is
historical. On October 9, 2026, the team retired the earlier Assignment 3
services and supplied the updated Cloud Firewall rules. Inbound rules now
allow only TCP 22, 80 and 443 from all IPv4 and IPv6 sources; the earlier
5050 and 8080 allowances are absent, and no 50000 allowance is present.
Outbound ICMP and all TCP/UDP are permitted. Outbound allowances do not
publish inbound ports. Public SSH is retained; this record does not imply
source-restricted browser access.
\EvidenceID{A6-FIREWALL-01}: the Cloud Firewall is named
\texttt{ssw590-group7-gitea-firewall}. Its attached-Droplet view lists
\texttt{ssw590-group7-droplet}, address \texttt{142.93.193.110}, and
``Up to date.'' The paired views below document both rules and attachment.
\begin{figure}[H]
\centering
\includegraphics[width=0.76\linewidth]{hw6_images/cloud-firewall-rules.png}
\caption{October 9, 2026, team-provided evidence: current named Cloud Firewall rules permit inbound TCP 22, 80 and 443 only; earlier 5050/8080 allowances have been removed. Broad outbound rules do not permit inbound connections.}
\label{fig:a6-firewall-rules}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/cloud-firewall-attached.png}
\caption{October 9, 2026: the firewall attachment lists \texttt{ssw590-group7-droplet}, IPv4 \texttt{142.93.193.110}, as Up to date.}
\label{fig:a6-firewall-attachment}
\end{figure}
\EvidenceID{A6-IPV4-ONLY}: the Droplet's Public IPv6 tab offers ``Enable
IPv6,'' establishing that IPv6 is disabled. The team queried the Jenkins
hostname for an AAAA record; the response contains the zone's SOA authority
record and no AAAA address. The current deployment therefore uses IPv4 only;
IPv6 exposure tests are not applicable while this remains the configuration.
The firewall's ``All IPv6'' source entries alone do not enable IPv6.
\begin{figure}[H]
\centering
\includegraphics[width=0.66\linewidth]{hw6_images/droplet-ipv6-disabled.png}
\caption{October 9, 2026: the Droplet Public IPv6 view offers Enable IPv6; no public IPv6 is enabled. No shutdown or IPv6 activation was performed for this check.}
\label{fig:a6-ipv6}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/dns-aaaa-result.png}
\caption[CI hostname query returned no AAAA address]{October 9, 2026: team Windows query \texttt{Resolve-DnsName ci.myfileagent.tech -Type AAAA -DnsOnly} returned an SOA authority record and no AAAA address for the CI hostname.}
\label{fig:a6-aaaa}
\end{figure}
\EvidenceID{A6-HOST-FIREWALL}: the team ran the following read-only command
as root on the named Droplet and supplied its output:
\begin{lstlisting}
root@ssw590-group7-droplet:~# sudo ufw status verbose
Status: inactive
\end{lstlisting}
UFW does not provide active host filtering. The verified external filtering
layer is the attached DigitalOcean Cloud Firewall, supplemented by the
Compose loopback binding for Jenkins and the unpublished agent port. This
command does not inventory every possible nftables/iptables rule; a complete
host ruleset audit is not claimed. No UFW rule was enabled or changed.
The earlier external TCP tests below were supplied before the Cloud Firewall
cleanup; they are not relabeled as post-change tests. A fresh administrator
SSH/HTTPS connectivity check after cleanup has not been supplied.
For temporary private setup, the first SSH tunnel incorrectly used the Docker
container name as a host-side DNS name and failed. The corrected tunnel is:
\begin{lstlisting}
ssh -N -o ExitOnForwardFailure=yes \
-L 8080:127.0.0.1:8080 ssw590-codex
\end{lstlisting}
This reaches the Droplet's loopback mapping; the final browser entry is HTTPS.
\subsection{Team-performed external port checks}
\EvidenceID{A6-PORT-01}: on October 9, 2026, the team supplied PowerShell
results from its Windows Wi-Fi computer. The commands and observed TCP
results were:
\begin{lstlisting}
Test-NetConnection 142.93.193.110 -Port 8080
# TcpTestSucceeded : False
Test-NetConnection 142.93.193.110 -Port 50000
# TcpTestSucceeded : False
Test-NetConnection ci.myfileagent.tech -Port 443
# RemoteAddress : 142.93.193.110
# TcpTestSucceeded : True
\end{lstlisting}
The first two TCP attempts failed; their accompanying ICMP ping checks timed
out as well. Ping is a separate observation and is not the basis for the TCP
conclusion. The successful 443 check establishes reachability from the same
client network, while raw Jenkins and agent ports were unreachable there.
These are team-performed tests, not independently rerun by Codex; no exact
execution time was supplied. The result does not identify which network rule
caused the failed connection and does not establish every source network or
IPv6 path. Client private-address details are omitted from the retained
sanitized evidence \path{evidence/assignment6/external-port-checks.txt}.
\section{Gitea Trigger and Traceability}
\subsection{Repository integration and actual deployment}
The product repository is
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline}{myfileagent/myfileagent-pipeline}.
The dedicated non-admin Gitea identity \texttt{jenkins-ci} has Write collaborator
access to this repository. The Jenkins Gitea server entry is named
``MyFileAgent Gitea'' and uses \url{https://myfileagent.tech}.
Jenkins detected Gitea version 1.27.3. The Multibranch Pipeline is
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/}{myfileagent-python-ci}.
It uses credential ID \texttt{gitea-jenkins-ci}, owner \texttt{myfileagent}, and
repository \texttt{myfileagent-pipeline}. Branch discovery excludes branches
already filed as PRs; origin PR discovery selects the current PR revision.
Fork PR discovery was removed to avoid executing untrusted fork contributions.
The integration uses supported Gitea plugin capabilities \cite{GiteaPluginA6}.
\begin{figure}[H]
\centering
\resizebox{\linewidth}{!}{%
\begin{tikzpicture}[font=\small, >=Latex,
component/.style={draw,rounded corners,align=center,minimum width=3cm,minimum height=1.1cm},
data/.style={draw,align=center,fill=devopsLightBlue,minimum width=2.8cm,minimum height=1cm}]
\draw[dashed,rounded corners] (0,-5.1) rectangle (15,3.3);
\node[anchor=north west] at (0.15,3.15) {\textit{\(\ll\)device\(\gg\) DigitalOcean Droplet}};
\node[component] (firewall) at (1.8,1.6) {Cloud Firewall\\existing web rules};
\node[component] (proxy) at (8,1.6) {\(\ll\)container\(\gg\)\\Caddy TLS proxy};
\node[component] (gitea) at (3.2,-1) {\(\ll\)container\(\gg\)\\Gitea :3000};
\node[component] (jenkins) at (11.8,-1) {\(\ll\)container\(\gg\)\\Jenkins :8080\\checkout + tests here};
\node[data] (gdata) at (3.2,-3.1) {\(\ll\)volume\(\gg\)\\repositories + SQLite};
\node[data] (jdata) at (11.8,-3.1) {\(\ll\)volume\(\gg\)\\jenkins-home};
\node[component] (browser) at (-4.5,1.6) {Team / grader\\browser\\\href{https://ci.myfileagent.tech/login}{CI login: HTTPS}};
\draw[->] (browser) -- node[above]{HTTPS 443} (firewall);
\draw[->] (firewall) -- (proxy);
\draw[->] (proxy) -- node[left]{\href{http://gitea:3000/}{private HTTP :3000}} (gitea);
\draw[->] (proxy) -- node[right]{\href{http://jenkins:8080/}{private HTTP :8080}} (jenkins);
\draw[->] (gitea) -- (gdata);
\draw[->] (jenkins) -- (jdata);
\draw[->] (jenkins.west) -- node[midway,above,align=center,font=\scriptsize,fill=white,inner sep=2pt]{checkout + API status\\\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline.git}{HTTPS via myfileagent.tech}} (gitea.east);
\draw[->] (gitea.south east) -- node[midway,below,align=center,font=\scriptsize,fill=white,inner sep=2pt]{\href{http://jenkins:8080/gitea-webhook/post}{private webhook POST}\\verified HTTP 200: Processed} (jenkins.south west);
\node[align=center,font=\scriptsize] at (7.5,-4.4) {Shared private Compose bridge; controller executor; no separate agent.\\Diagram shows service roles; the verified Git/API URL routes through Caddy.};
\end{tikzpicture}}
\caption{Actual Assignment 6 deployment adapted from instruction Figure 4.2.
Solid paths identify configured service relationships, including the verified
private webhook. Its public proxy endpoint is blocked with HTTP 403. Public HTTPS browser access is the team's selected
access policy. Builds run on the Jenkins controller, with persistent home
storage and Gitea SQLite/repository volumes.}
\label{fig:a6-deployment}
\end{figure}
\paragraph{Actual routes (clickable endpoints).}
Browser access is \href{https://ci.myfileagent.tech/login}{HTTPS CI login}
through the Cloud Firewall and Caddy to
\href{http://jenkins:8080/}{Jenkins on the private bridge}.
Public repository/status viewing uses
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/commits/branch/main}{Gitea commit history}
through Caddy to \href{http://gitea:3000/}{private Gitea port 3000}.
Jenkins checks out
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline.git}{the actual HTTPS Git remote}
and reports status through
\href{https://myfileagent.tech/api/v1/repos/myfileagent/myfileagent-pipeline/statuses/131d605c5edb5b5080e4d54861c3c7bf7c360c9c}{Gitea's commit-status API}
using its stored credential. Gitea delivers repository events by POST to
\url{http://jenkins:8080/gitea-webhook/post}; that Docker-only hostname is
reachable inside the shared bridge, not from a grader's browser. Status
publication uses authenticated POST; its API link identifies the route,
not a browser action to perform. Only the HTTPS viewing links are grader-facing.
\subsection{Observed trigger and scope correction}
\EvidenceID{A6-TRIGGER-01}: the operator explicitly requested a multibranch scan.
The scan initially found no Jenkinsfile. After adding the feature branch,
another scan discovered it and started build 1. This was a \textbf{manual
branch-indexing trigger}, not a proven webhook or polling trigger.
Repository discovery first returned an empty list with the narrower token.
Adding organization Read scope to a replacement token and updating the
Jenkins credential made \texttt{myfileagent-pipeline} available. The initial
symptom was not accompanied by a captured HTTP error, so no specific 403
diagnosis is claimed. Gitea scopes separate organization API routes
\cite{GiteaScopesA6}.
The tested branch is \texttt{assignment6/python-ci}; the complete commit is
\begin{lstlisting}
041adfcda4d37d7c1da7de1861d98cc98e6e64b2
\end{lstlisting}
The corresponding
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/assignment6\%252Fpython-ci/1/console}{Jenkins build 1 console}
prints that checkout revision and reports the final result. At this initial
stage the webhook had not yet been configured. The following subsection
records its subsequent private-network implementation and automatic runs;
no public raw 8080 listener was needed.
\subsection{Verified private webhook}
\EvidenceID{A6-WEBHOOK-01}: repository hook 1 uses POST with
\texttt{application/json}, active push and PR events, and branch filter
\texttt{*}. Its destination is \url{http://jenkins:8080/gitea-webhook/post}
on the shared private Docker bridge. Gitea's destination allowlist was set
to \texttt{external,jenkins}; no blanket private-network wildcard was added.
The persistent Gitea container was recreated to apply that environment setting;
Gitea returned HTTP 200 afterward, and the team signed in again.
The installed Jenkins handler does not verify a shared-secret HMAC. The hook
secret is therefore empty; this report does not claim signature authentication.
Instead Caddy blocks \texttt{/gitea-webhook} and all subpaths on the public CI
site with HTTP 403, while the internal destination remains available. Raw
8080 stays loopback-only. Versioned reproduction files are
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/jenkins/compose.webhook.yaml}{the exact-host Compose override} and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/jenkins/Caddyfile.jenkins}{the Caddy site block}.
The repaired-head delivery \texttt{e0de474d-209a-48f1-a50e-67c79bd447d5}
returned HTTP 200 with body \texttt{Processed} at 19:05:55 UTC.
Jenkins separately recorded the PR event, checkout SHA and test result.
PR opening, failure push, repair push, final configuration push and merge
all triggered builds without a manual rescan. Status events are not selected,
so Jenkins status reporting does not form a webhook feedback loop.
The delivery screenshot and sanitized hook configuration are retained in
the Assignment 6 evidence folder. A successful delivery alone is not a
passing test result.
\section{Versioned Pipeline and Tests}
\label{sec:a6-public-results}
\paragraph{Public Gitea evidence for the grader.}
Open \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/commits/branch/main}{the public main-branch commit-status page}.
The merge row \texttt{131d605c5e} and repaired commit \texttt{02d31699aa}
show successful checks; the controlled defect \texttt{d6477b3df6} shows a
failed check. The included Gitea history screenshot preserves these results.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/11}{Public PR 11}
also records the review and merge. These Gitea views are the unauthenticated
evidence entry points. Jenkins console links below provide additional detail
for signed-in operators; graders do not need a Jenkins account to inspect the
public Gitea results. A passing main check is not a substitute for the
commit-specific PR merge-gate evidence in Section 11.5.
\paragraph{Public workflow job following the merge.}
The grader can also open
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/13/jobs/13}{Gitea Actions run 13, job 13}
to inspect the workflow associated with the merge of PR 11 into main.
This page identifies the \texttt{manual-pdf.yml} manual-build job and provides
additional public evidence of the repository's automated workflow.
It is a Gitea Actions job, separate from the Jenkins Python checks. The
Gitea commit-status view above supplies the Jenkins result; this Actions
link complements that evidence rather than replacing the Jenkins test or
required-check records.
\phantomsection\label{GlossaryRef:jenkinsfile}\index{Jenkinsfile}\index{unit test}
\subsection{Application, dependencies and clean run}
The team chose the instruction's permitted Python pricing application.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/pricing.py}{pricing.py}
multiplies price by quantity and raises ValueError for quantities below one.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/tests/test_pricing.py}{The test file}
asserts that \texttt{total\_price(10, 3)} equals 30 and that zero quantity is
rejected. The pipeline is a root-level
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/Jenkinsfile}{Jenkinsfile}.
\begin{lstlisting}
stage('Checkout') {
steps { checkout scm; sh 'git rev-parse HEAD' }
}
stage('Syntax check') {
steps {
sh 'python3 --version'
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
}
}
stage('Test') {
steps { sh 'python3 -m unittest discover -s tests -v' }
}
\end{lstlisting}
The full Declarative Pipeline disables default checkout and concurrent builds,
adds timestamps, enforces a five-minute timeout and retains ten builds.
Python 3.13.5 was installed from the image's Debian repositories; Git 2.47.3
was present. There are no pip dependencies, Docker socket mounts or separate
build agents. Checks execute as the Jenkins container user in
\path{/var/jenkins_home/workspace/_python-ci_assignment6_python-ci}.
The operator used root only for package installation, not pipeline execution.
For a clean local check, clone the repository, select the feature branch and run:
\begin{lstlisting}
python3 -m py_compile pricing.py tests/test_pricing.py
python3 -m unittest discover -s tests -v
\end{lstlisting}
Expected result: syntax exits zero; two tests pass. Invalid syntax or a failed
assertion must cause a nonzero exit and fail its Jenkins stage.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/ops/jenkins/install-python.sh}{The versioned Python installation helper}
must be rerun after Jenkins container replacement. The installed Python
packages survive a restart but are not in the pinned base image or persistent
home volume. This limitation is explicit rather than treating package
installation as a reproducible custom image build.
\subsection{First verified run}
\EvidenceID{A6-BUILD-01}: local syntax and both tests passed before commit.
The first push failed because the shell had no interactive Git credential;
the operator reused the existing restricted credential helper without exposing
its values. The branch then pushed successfully. Jenkins build 1 checked out
\texttt{041adfc}, completed all three stages and finished SUCCESS.
The console contains the following sanitized results:
\begin{lstlisting}
Python 3.13.5
test_invalid_quantity ... ok
test_total ... ok
Ran 2 tests in 0.004s
OK
[Gitea] Notifying branch build status: SUCCESS
[Gitea] Notified
Finished: SUCCESS
\end{lstlisting}
\subsection{Readable post-restart run evidence}
\EvidenceID{A6-BUILD-02}: the team supplied the Pipeline Steps and console
views of main build 2 plus its console text. The controller workspace is
\path{/var/jenkins_home/workspace/myfileagent-python-ci_main}. Checkout,
syntax compilation and both tests completed; Gitea received SUCCESS.
The complete tested revision is:
\begin{lstlisting}
131d605c5edb5b5080e4d54861c3c7bf7c360c9c
\end{lstlisting}
The sanitized excerpt pairs the exact checkout with each stage's outcome:
\begin{lstlisting}[basicstyle=\ttfamily\footnotesize]
[Pipeline] { (Checkout)
Checking out Revision
131d605c5edb5b5080e4d54861c3c7bf7c360c9c (main)
+ git rev-parse HEAD
131d605c5edb5b5080e4d54861c3c7bf7c360c9c
[Pipeline] { (Syntax check)
+ python3 --version
Python 3.13.5
+ python3 -m py_compile pricing.py tests/test_pricing.py
[Pipeline] { (Test)
+ python3 -m unittest discover -s tests -v
test_invalid_quantity ... ok
test_total ... ok
Ran 2 tests in 0.000s
OK
[Gitea] Notifying branch build status: SUCCESS
[Gitea] Notified
Finished: SUCCESS
\end{lstlisting}
Expected result: successful checkout, syntax exit zero, both tests passing,
and a successful reported status. Actual result: all expected results were
observed in this run. The permanent link is
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/2/console}{main build 2 console}.
The screenshot's localhost address is the team's temporary access path, not
the grader-facing service URL. This main-branch run supports pipeline and
restart verification; the separate PR runs below prove the merge gate.
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/main2-pipeline-stages.png}
\caption{October 9, 2026: main build 2 Pipeline Steps shows green Checkout and Syntax check stage results on merge commit \texttt{131d605}. The companion console excerpt identifies the full tested revision.}
\label{fig:a6-stages}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth,trim=205 55 337.5 65,clip]{hw6_images/main2-tests-success.png}
\caption{October 9, 2026: the same main build 2 shows both unit tests passing, Gitea status notification and Finished: SUCCESS on commit \texttt{131d605}. The private localhost URL is not the submission access URL.}
\label{fig:a6-test-results}
\end{figure}
\section{Required Merge Gate}
\phantomsection\label{GlossaryRef:requiredcheck}\index{merge gate}\index{status check}
\EvidenceID{A6-GATE-01}: the first branch build used context
\texttt{myfileagent-python-ci/pipeline/head}. The first actual PR build
revealed a different context, so the rule was corrected to require:
\begin{lstlisting}
myfileagent-python-ci/pipeline/pr-main
\end{lstlisting}
This context is emitted by the Gitea integration on the latest PR head;
installation of Gitea Checks alone does not prove enforcement
\cite{GiteaChecksA6}. The saved rule for \texttt{main} disables direct pushes
and force pushes, requires one approval, dismisses stale approvals, blocks
rejected reviews and outstanding official review requests, and disables
administrator merge override. The versioned rule is
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/jenkins/main-branch-protection.json}{the applied branch-protection record}.
A missing/queued check showed ``Some required checks are missing.'' After
build 2 failed, Gitea showed ``Some required checks failed'' and prevented an
ordinary merge. After repair, the same required check passed, but the missing
review still blocked merging. Nick's subsequent approval satisfied the review
requirement and enabled the ordinary Create merge commit action. No bypass
was used. Figures~\ref{fig:a6-failed-gate} and~\ref{fig:a6-repaired-gate}
record the failed and repaired states; the exact context and SHA are also
retained in \path{evidence/assignment6/pr11-check-evidence.json}.
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth,trim=0 1330 0 850,clip]{hw6_images/pr-11-failed-gate.png}
\caption[Failed PR check blocks merging (October 9, 2026)]{October 9, 2026, 15:04 EDT: PR 11 head \texttt{d6477b3}; required
\texttt{myfileagent-python-ci/}\allowbreak\texttt{pipeline/pr-main} failed in Jenkins PR build 2.
Gitea states that required checks were unsuccessful and blocks ordinary merge.
The crop retains the failed commit and gate; the full original is retained
in the Assignment 6 evidence folder.}
\label{fig:a6-failed-gate}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth]{hw6_images/pr-11-repaired-gate.png}
\caption{October 9, 2026, after the 15:05 EDT repair: PR head
\texttt{02d3169}; required context
\texttt{myfileagent-python-ci/}\allowbreak\texttt{pipeline/pr-main}
passed in Jenkins PR build 3.
The pending human review remained an independent merge blocker.
This is the repaired green-check state, distinct from the preceding failed
red-check screenshot; neither screenshot claims peer approval was already granted.}
\label{fig:a6-repaired-gate}
\end{figure}
\section{Failure, Repair, and Review}
\EvidenceID{A6-PR-01}: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/10}{issue 10}
tracks the CI acceptance exercise. \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/11}{PR 11}
links it with \texttt{Closes \#10}, targets \texttt{main}, and requests review
from \texttt{nkogut}. GDL's account \texttt{glovely} authored the PR;
the tracking issue was created while signed in as \texttt{jenkins-ci}.
NK's existing README name correction was preserved by fast-forwarding the
local checkout before the exercise.
\begin{tabularx}{\linewidth}{L{2.5cm}L{2.4cm}Y}
\toprule \textbf{Head / run} & \textbf{Result} & \textbf{Observed event and evidence}\\ \midrule
\texttt{ad056a3} / PR 1 & SUCCESS & PR-open webhook automatically discovered PR 11; checkout, syntax and both tests passed.\\
\texttt{d6477b3} / PR 2 & FAILURE & Multiplication changed to addition only on the feature branch; normal-total test failed with \texttt{13 != 30}; required check blocked merge.\\
\texttt{02d3169} / PR 3 & SUCCESS & Multiplication restored without weakening either test; push/synchronization automatically rebuilt the repaired head.\\
\texttt{b7ef485} / PR 4 & SUCCESS & Private webhook/proxy/protection configuration and operating notes versioned; final PR head passed both tests before review.\\
\texttt{131d605} / main 1 & SUCCESS & Human merge produced a new main commit; webhook automatically built it and both tests passed.\\
\bottomrule
\end{tabularx}
Run links: \href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/2/console}{failed PR build 2},
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/3/console}{repaired PR build 3},
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/4/console}{final PR build 4}, and
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/1/console}{post-merge main build 1}.
The controlled failed run retained the invalid-quantity test as passing and
returned exit code 1 from the normal-total assertion. No production service
failure was needed to demonstrate the gate.
At 15:13 EDT, \texttt{nkogut} approved the final head with the comment
``Good changes demonstrating Jenkins + Gitea.'' Gitea then explicitly stated
that the PR could be merged automatically. GDL used the normal merge action
at 15:14:45 EDT (19:14:45 UTC). PR 11 is merged and closed, and issue 10 closed
through its linked closing reference. Codex verified the review, merge and
post-merge build; it did not submit the human approval or click the merge.
The full merge revision is:
\begin{lstlisting}
131d605c5edb5b5080e4d54861c3c7bf7c360c9c
\end{lstlisting}
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth]{hw6_images/pr-11-approved-merge-eligible.png}
\caption{October 9, 2026: Nick's approval and the passing final PR check
made the ordinary merge action available. This is the review-satisfied state,
not an administrator override.}
\label{fig:a6-approved}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth]{hw6_images/pr-11-merged.png}
\caption{October 9, 2026: Gitea records GDL's merge into main and states
that PR 11 was successfully merged and closed. The separate main build
verified the merge commit after this action.}
\label{fig:a6-merged}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/gitea-commit-sequence.png}
\caption{October 9, 2026: Gitea main history ties failed commit \texttt{d6477b3}, repaired \texttt{02d3169}, final PR head \texttt{b7ef485}, and merge \texttt{131d605} to their recorded statuses. This overview supplements the mandatory PR merge-gate views.}
\label{fig:a6-commit-sequence}
\end{figure}
\section{Credentials and Build Boundary}
\subsection{Identity, scope and controller risk}
The verified named Jenkins administrator is \texttt{ssw590}, displayed as
Gowri Das Lovely. The team created \texttt{jenkins-ci} in Gitea, completed its
first-login password change, and approved Write access to the product
repository. No Gitea administrator role was granted to that account.
Its replacement token is public-only with repository Read/Write, user Read
and organization Read scopes. Jenkins stores it as the Global Gitea Personal
Access Token credential \texttt{gitea-jenkins-ci}; no value is in code or this
manual. Global scope makes it available to applicable jobs, so job creation
and pipeline editing must remain restricted to trusted team members.
The team identifies the Bitwarden entries as \texttt{jenkins-admin} and
\texttt{gitea-jenkins}; these are storage references, not credential values.
On October 9, 2026, after the team reported only one
token, Codex confirmed the signed-in account was \texttt{jenkins-ci} and its
Applications page listed only \texttt{jenkins-ci-status}, added at 14:26 EDT
and last used at 15:27 EDT, matching the successful post-restart build. No
superseded token was listed; no further deletion was performed. This verifies
the current inventory, not the historical revocation time. The token value
was not viewed or recorded; the list screenshot is retained as evidence.
\begin{figure}[H]
\centering
\includegraphics[width=0.94\linewidth]{hw6_images/jenkins-ci-repository-write-access.jpg}
\caption{October 9, 2026: the dedicated integration identity has Write access
to the product repository. The permission supports status reporting and also
allows code changes; the account is not a site administrator.}
\label{fig:a6-ci-account}
\end{figure}
Builds run on the \textbf{controller executor}, a permitted but higher-risk
assignment choice. Pipeline code can access the controller's workspace and
potentially sensitive service state. The current controller has two configured
executors; each job disables concurrent builds. The team has not yet reduced
the global executor count to one. Only trusted team members should author
the Jenkinsfile; the integration account itself has repository Write access.
Fork discovery is disabled, and no privileged Docker socket or inbound agent
port is provided. Default-branch restrictions are verified in the merge-gate section.
Named-user Matrix authorization now restricts Jenkins administration as
described below; the general logged-in group has no permissions.
\subsection{Named-user authorization}
\label{sec:a6-auth}\index{Jenkins!authorization}
\EvidenceID{A6-AUTH-01}: the team selected \textbf{Matrix-based security}.
The named Jenkins account \texttt{ssw590}, displayed as Gowri Das Lovely,
has \textbf{Overall/Administer}. Anonymous and Authenticated Users show
\textbf{No permissions granted}. Administrator access therefore belongs
to the named account, not every user who can sign in. The Gitea integration
account is a repository identity/credential, not an added Jenkins administrator.
The team supplied the configuration screenshot, then confirmed that
Manage Jenkins remained accessible after saving. The screenshot shows the
configured matrix; saved administrative access is team-confirmed rather
than independently reread by Codex. No post-save private-window access
result or self-registration-setting screenshot has been supplied; these
specific checks remain unconfirmed. The earlier anonymous API denial is
recorded separately and is not presented as a new post-change test.
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/jenkins-matrix-security.png}
\caption{October 9, 2026, team configuration evidence: Matrix-based security grants Gowri Das Lovely Overall/Administer; Anonymous and Authenticated Users have no permissions. The team subsequently confirmed retained administrative access after saving.}
\label{fig:a6-matrix}
\end{figure}
\subsection{Operator restart and troubleshooting}
For an ordinary restart, use the recorded Compose pair without deleting volumes:
\begin{lstlisting}
cd /home/codex/myfileagent-gitea
docker compose -f compose.yaml -f compose.jenkins.yaml restart jenkins
docker compose -f compose.yaml -f compose.jenkins.yaml ps jenkins
curl -I https://ci.myfileagent.tech/login
\end{lstlisting}
Expected result: Jenkins becomes ready and the saved job remains. The
completed persistence test above recorded unchanged before/after job state
and a passing subsequent build; repeat this verification after future restarts.
If startup fails, inspect filtered logs without printing setup secrets; stop
only Jenkins if the host loses responsiveness, confirm Gitea, then diagnose
before retry. After container replacement, rerun the Python helper before builds.
\phantomsection\label{GlossaryRef:webhook}\index{webhook}
For a failed webhook, inspect Gitea event selection, delivery response and
timestamp; verify the private destination, Docker network, configured webhook
route and authentication/signature settings. Match the delivered head commit
to a Jenkins run. For a failed build, identify the failed stage, confirm the
checkout SHA and tool availability, reproduce the command, repair on the same
branch and verify a fresh status. Never use a successful delivery as proof
that tests passed. This is an operator procedure; no live failed webhook
has been demonstrated yet.
\EvidenceID{A6-PLUGIN-01}: on October 9, 2026, the operator opened
Manage Jenkins / Plugins / Updates and selected Check now. The freshness
indicator changed from 1 hr 53 min old to 4.3 seconds old, and the page still
reported ``No updates available.'' The full installed-plugin page displayed
no plugin security, deprecated, incompatible or load-failure notices. Manage
Jenkins showed the built-in-node warning about controller builds. That warning
was retained and the existing trusted-controller boundary remains documented;
no agent was added or warning dismissed. Operator action: retain the current
plugin versions because Jenkins offered no updates; keep controller builds
limited to trusted team code and repeat this check during maintenance.
These observations describe Jenkins's refreshed update data and displayed
notices, not a guarantee that no vulnerability exists.
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth,trim=0 185 0 0,clip]{hw6_images/plugin-updates-complete.png}
\caption[Refreshed Jenkins plugin check]{October 9, 2026: after Check now,
the team-provided completed Updates view clearly reports No updates available.
It replaces the earlier capture made during refresh. Installed-plugin notices and the
controller-build warning were reviewed separately.}
\label{fig:a6-plugin-check}
\end{figure} Do not run the manual compiler and heavy
Jenkins jobs concurrently; cost/cleanup remains on the existing team-owned
Droplet, with no new purchased cloud resource. On retirement, revoke the CI
token, remove its access and DNS/proxy entry, and preserve any needed Jenkins
home data before deleting resources.
\section{Manual Quality and Controls}
This Assignment 6 work-in-progress edition is version \textbf{1.8.2}, dated
October 9, 2026, with history/AI entries attributed to \textbf{GDL, NK, CDX}.
The history names Hosts and Passwords changes explicitly. Earlier chapters
and the completed Assignment 5 evidence were preserved from the latest
repository source. This chapter records decisions, expected/actual results,
failed attempts, corrections, links and a deployment diagram. New CI terms
are linked in the glossary and indexed; citations identify reused guidance.
\begin{tabularx}{\linewidth}{L{5.0cm}Y}
\toprule \textbf{Acceptance item} & \textbf{Status at this edition}\\ \midrule
Official Jenkins deployment and persistent home & Verified ordinary restart: 13 saved records unchanged; main build 2 passed.\\
HTTPS URL, login and redirect & Verified; team external 8080/50000 failed and 443 passed; current Cloud Firewall attachment/rules and IPv4-only status documented; public-access approval remains unresolved.\\
Repository discovery and traceable run & Verified private webhook, PR events, pushes and post-merge main run.\\
Versioned pipeline and meaningful tests & Initial and repaired/final PR heads passed; main build 2 stage/commit/test evidence added.\\
Protected default branch and required check & Verified exact PR context; failure blocked merge; normal merge after approval.\\
Issue-linked failure, repair, review and merge & Verified issue 10 / PR 11; NK approved, GDL merged.\\
Credentials and build boundary & Matrix administrator permissions and retained access team-confirmed; plugin evidence replaced. Bitwarden references recorded; private-window/self-registration checks unconfirmed.\\
Document controls and final submission & Version/history/registries updated; publication commit/run and artifact are identified on the Build Identity page and in Section 10.5.\\
\bottomrule
\end{tabularx}
+105
View File
@@ -0,0 +1,105 @@
% !TeX root = main.tex
% This is an included chapter. Compile the top-level main.tex for the full report.
\chapter{LaTeX Docker}
\ChapterLabel{LatexDocker}
\index{Docker!LaTeX container}
\index{LaTeX!Docker compilation}
\index{TeX Live}
\section{Purpose and Design}
Assignment 3 Step 4 requires a Docker container that compiles a simple LaTeX
document with TeX Live, which is the TeX distribution used by Overleaf. The
project separates the build environment from the host computer: the Docker
image installs the required TeX Live package, copies the source document into
the image, and runs \texttt{pdflatex}. A bind mount returns the generated PDF
and supporting files to an \texttt{output} directory on the host.
The project has the following structure:
\begin{minted}{text}
latex-docker/
|-- Dockerfile
|-- .dockerignore
|-- sample-source.txt
`-- output/
\end{minted}
\section{Sample LaTeX Document}
The container compiles the following small source document. It uses only the
base LaTeX packages installed in the image.
\inputminted{latex}{latex-docker/sample-source.txt}
\section{Dockerfile}
The image uses a small Debian base and installs
\texttt{texlive-latex-base} together with the recommended fonts needed by the
sample document. Removing the APT package lists keeps the resulting image
smaller.
\begin{minted}{dockerfile}
FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
texlive-latex-base \
lmodern \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY sample-source.txt .
CMD ["pdflatex", "-interaction=nonstopmode", \
"-halt-on-error", "sample-source.txt"]
\end{minted}
The Docker build context excludes generated and editor-specific files.
\begin{minted}{text}
output/
*.aux
*.log
*.pdf
.git
.DS_Store
\end{minted}
\section{Build and Run Procedure}
From the \texttt{latex-docker} directory, the output directory is created and
the Docker image is built with the tag \texttt{latex-compiler}.
\begin{minted}{bash}
cd latex-docker
mkdir -p output
sudo docker build -t latex-compiler .
\end{minted}
The container is then run with the host output directory mounted at
\texttt{/workspace/output}. The command overrides the default container command
so that all generated files are written to the mounted location. The container
is removed automatically after compilation.
\begin{minted}{bash}
sudo docker run --rm \
-v "$(pwd)/output:/workspace/output" \
latex-compiler \
pdflatex -interaction=nonstopmode -halt-on-error \
-output-directory=/workspace/output sample-source.txt
\end{minted}
\section{Verification}
The following commands verify that the container exited successfully and that
the expected PDF was written to the host.
\begin{minted}{bash}
ls -lh output/sample-source.pdf
file output/sample-source.pdf
\end{minted}
The expected result is a valid PDF named \texttt{sample-source.pdf}. Because the build
environment is encoded in the Dockerfile, the same source and image definition
can be used on another Docker host to obtain a consistent compilation workflow.
+148
View File
@@ -0,0 +1,148 @@
\chapter{Linux Commands}
\ChapterLabel{LinuxCommands}
\index{Linux}
\index{Linux!commands}
\index{DigitalOcean}
\index{PuTTY}
\section{Purpose}
This chapter documents the Linux command-line activities completed for
Assignment 2. The commands were executed on an Ubuntu Linux Droplet hosted
on DigitalOcean. PuTTY was used to establish a secure remote terminal
connection to the Droplet.
The activity created a controlled working directory containing text, \phantomsection\label{AcronymRef:CSV}CSV,
log, binary, directory, symbolic-link, and timestamped test artifacts. These
artifacts will be used to complete the Linux problem set.
\section{Execution Environment}
Table~\ref{Table:LinuxEnvironment} summarizes the environment used for this
activity. Passwords, private keys, and complete authentication credentials
are not included.
\begin{table}[htbp]
\centering
\caption{Linux command execution environment}
\label{Table:LinuxEnvironment}
\begin{tabularx}{\linewidth}{L{0.28\linewidth}Y}
\toprule
\textbf{Environment Item} & \textbf{Configuration} \\
\midrule
Cloud platform & DigitalOcean \\
Virtual host & Ubuntu Droplet \\
Droplet name & \texttt{ssw590-group7-droplet} \\
Droplet configuration & 1 virtual CPU, 1 GB memory, and 25 GB storage \\
Remote-access tool & PuTTY \\
Operating system & Ubuntu Linux \\
Remote user & \texttt{root} \\
Working directory & \texttt{/root/lx-test} \\
Activity status & Initial test environment successfully created \\
\bottomrule
\end{tabularx}
\end{table}
\section{Test Environment Setup}
The following instructor-provided commands were executed in the DigitalOcean
Ubuntu terminal. \phantomsection\label{AcronymRef:EE}\phantomsection\label{AcronymRef:CS} to perform the setup steps required for the problem set. These commands normally produce no terminal output when they
complete successfully.
\begin{lstlisting}[language=bash,caption={Initial DigitalOcean terminal record},label={Listing:InitialTerminalRecord}]
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~#
mkdir -p ~/lx-test && cd ~/lx-test
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "alpha\nbeta\nGamma\ngamma\nbeta\n" > words.txt
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "id,name,dept\n1,Ada,EE\n2,Linus,CS\n3,Grace,EE\n4,Dennis,CS\n" > people.csv
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "INFO boot ok\nWARN disk low\nERROR fan fail\nINFO shutdown\n" > sys.log
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
dd if=/dev/zero of=blob.bin bs=1K count=48 status=none
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
mkdir -p src/lib tmp archive
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "one two three four\n" > src/file1.txt
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "two three four five\n" > src/file2.txt
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
ln -s src/file1.txt link-to-file1
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
touch -t 202401020304 old.txt
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
\end{lstlisting}
\begin{comment}
\section{Created Artifacts}
The setup commands created the artifacts summarized in
Table~\ref{Table:LinuxArtifacts}.
\footnotesize
\begin{longtable}{L{0.25\linewidth}L{0.22\linewidth}L{0.42\linewidth}}
\caption{Artifacts created by the Linux setup commands}\label{Table:LinuxArtifacts}\\
\toprule
\textbf{Artifact} & \textbf{Type} & \textbf{Purpose or Contents} \\
\midrule
\endfirsthead
\multicolumn{3}{l}{\footnotesize\itshape Created Linux artifacts (continued)}\\
\toprule
\textbf{Artifact} & \textbf{Type} & \textbf{Purpose or Contents} \\
\midrule
\endhead
\bottomrule
\endlastfoot
\texttt{words.txt} & Text file & Contains mixed-case and repeated words for sorting and filtering.\\
\texttt{people.csv} & CSV file & Contains a header and four EE and CS personnel records.\\
\texttt{sys.log} & Log file & Contains INFO, WARN, and ERROR entries for searching and filtering.\\
\texttt{blob.bin} & Binary file & Contains 48 KiB of zero-valued data from \texttt{/dev/zero}.\\
\texttt{src/} & Directory & Contains two text files and the nested \texttt{lib/} directory.\\
\texttt{tmp/} & Directory & Temporary working location for later commands.\\
\texttt{archive/} & Directory & Destination for later archive operations.\\
\texttt{src/file1.txt} & Text file & Contains \texttt{one two three four}.\\
\texttt{src/file2.txt} & Text file & Contains \texttt{two three four five}.\\
\texttt{link-to-file1} & Symbolic link & Points to \texttt{src/file1.txt}.\\
\texttt{old.txt} & Timestamped file & Modification time set to January 2, 2024 at 03:04.\\
\end{longtable}
\normalsize
\section{Initial Terminal Record}
The following record reproduces the observed terminal interaction. The return
of the shell prompt without an error indicates that each silent setup command
was accepted.
\section{Verification Procedure}
The following commands will verify the working directory, created files,
directory hierarchy, symbolic link, file contents, binary size, and timestamp.
\begin{lstlisting}[language=bash,caption={Linux test-environment verification commands},label={Listing:LinuxVerificationCommands}]
pwd
ls -lah
find . -maxdepth 3 -type d | sort
cat words.txt
cat people.csv
cat sys.log
cat src/file1.txt
cat src/file2.txt
ls -l link-to-file1
cat link-to-file1
stat -c "%n: %s bytes" blob.bin
stat -c "%n: %y" old.txt
\end{lstlisting}
The observed output will be added after the team executes these verification
commands on the shared Droplet.
\section{Linux Problem Set}
The solutions to \texttt{linuxProblemSet.pdf} will be added to this section
after the problem set is reviewed. Each solution will include the executed
command, relevant output, and a concise explanation.
\end{comment}
+607
View File
@@ -0,0 +1,607 @@
\chapter{Linux Command Problem Set}
\ChapterLabel{LinuxProblemSet}
\index{Linux!problem set}
\section{Execution Guidance}
The following answers are written for the test environment created in \ChapterRef{LinuxCommands}. Commands were suggested by AI for the team to run, then verified by the team before execution; the team made changes as needed, ran the commands, and gathered the outputs. All problem-set commands and recorded outputs were executed and collected by humans, not by AI. Commands were executed from \texttt{/root/lx-test}.
\section{Problem Set}
\subsection*{A) Navigation \& File Ops}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=1]
\item \textbf{Show your present working directory path only.}
\index{Linux command!pwd}
\begin{lstlisting}[language=bash]
pwd
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
/root/lx-test
\end{lstlisting}
The command reports the current working directory used for the problem set.
\item \textbf{List all entries in the current directory, one per line, including dotfiles.}
\index{Linux command!ls}
\begin{lstlisting}[language=bash]
ls -a1
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
.
..
archive
blob.bin
link-to-file1
old.txt
people.csv
src
sys.log
tmp
words.txt
\end{lstlisting}
The `-a` option includes dotfiles and the `-1` option displays one entry per line.
\item \textbf{Copy `src/file1.txt` to `tmp/` only if `tmp` exists; do it verbosely.}
\index{Linux command!cp}
\begin{lstlisting}[language=bash]
[ -d tmp ] && cp -v src/file1.txt tmp/
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
'src/file1.txt' -> 'tmp/file1.txt'
\end{lstlisting}
The conditional copy runs only when `tmp` exists, and verbose mode reports the copy operation.
\item \textbf{Move `old.txt` into `archive/` and keep its original timestamp.}
\index{Linux command!mv}
\begin{lstlisting}[language=bash]
mv -v old.txt archive/
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
renamed 'old.txt' -> 'archive/old.txt'
\end{lstlisting}
The move is performed as a rename within the same filesystem, so the file's modification timestamp is retained.
\item \textbf{Create a new empty file `notes.md` only if it does not already exist.}
\index{Linux command!touch}
\begin{lstlisting}[language=bash]
[ -e notes.md ] || touch notes.md
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The existence test prevents `touch` from changing an existing file's timestamp.
\item \textbf{Show human-readable disk usage for the `src` directory only.}
\index{Linux command!du}
\begin{lstlisting}[language=bash]
du -sh src
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
16K src
\end{lstlisting}
The command reports the allocated disk usage for `src` in human-readable form.
\end{enumerate}
\subsection*{B) Viewing \& Searching}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=7]
\item \textbf{Print line numbers while displaying `sys.log`.}
\index{Linux command!nl}
\begin{lstlisting}[language=bash]
nl -ba sys.log
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
1 INFO boot ok
2 WARN disk low
3 ERROR fan fail
4 INFO shutdown
\end{lstlisting}
The `-b` option numbers all lines, including blank lines if present.
\item \textbf{Show only lines in `sys.log` containing `ERROR`, case-sensitively.}
\index{Linux command!grep}
\begin{lstlisting}[language=bash]
grep 'ERROR' sys.log
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
ERROR fan fail
\end{lstlisting}
The pattern is matched with case sensitivity, so only matching lines are returned.
\item \textbf{Count the distinct words in `words.txt`, case-insensitively.}
\index{Linux command!sort}
\begin{lstlisting}[language=bash]
sort -fu words.txt | wc -l
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
3
\end{lstlisting}
Sorting with `-f` and `-u` provides a case-insensitive unique count.
\item \textbf{Show lines in `words.txt` that start with `g` or `G`.}
\index{Linux command!grep}
\begin{lstlisting}[language=bash]
grep -i '^g' words.txt
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
Gamma
gamma
\end{lstlisting}
The case-insensitive anchored pattern selects lines beginning with the letter `g`.
\item \textbf{Display the first two lines of `people.csv` without an editor.}
\index{Linux command!head}
\begin{lstlisting}[language=bash]
head -n 2 people.csv
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
id,name,dept
1,Ada,EE
\end{lstlisting}
The command returns the first two lines of the CSV.
\item \textbf{Show the last three lines of `sys.log` and keep following if it grows.}
\index{Linux command!tail}
\begin{lstlisting}[language=bash]
tail -n 3 -f sys.log
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
WARN disk low
ERROR fan fail
INFO shutdown
^C
\end{lstlisting}
The command displays the current final three lines and then waits for additional lines until interrupted.
\end{enumerate}
\subsection*{C) Text Processing}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=13]
\item \textbf{Print only the second, name column from `people.csv`, excluding the header.}
\index{Linux command!awk}
\begin{lstlisting}[language=bash]
awk -F, 'NR > 1 {print $2}' people.csv
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
Ada
Linus
Grace
Dennis
\end{lstlisting}
The `awk` field separator is a comma, and records after the header print field 2.
\item \textbf{Sort `words.txt` case-insensitively and remove duplicates.}
\index{Linux command!tr}
\begin{lstlisting}[language=bash]
tr '[:upper:]' '[:lower:]' < words.txt | sort -u
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
alpha
beta
gamma
\end{lstlisting}
The pipeline lowercases the input before sorting uniquely.
\item \textbf{Replace every `three` with `3` in all files under `src/` in place, creating `.bak` backups.}
\index{Linux command!sed}
\begin{lstlisting}[language=bash]
find src -type f ! -name '*.bak' -exec sed -i.bak 's/three/3/g' {} +
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The command edits matching files in place while excluding existing backup files and creating `.bak` copies.
\textbf{Verification step:}
\begin{lstlisting}
$ cat src/file1.txt
one two 3 four
\end{lstlisting}
The verification command is included as evidence of the resulting file state and is not part of the solution command.
\item \textbf{Print the line, word, and byte counts for every `*.txt` file in `src/`.}
\index{Linux command!wc}
\begin{lstlisting}[language=bash]
find src -type f -name '*.txt' -exec wc -l -w -c {} +
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
1 4 15 src/file1.txt
1 4 16 src/file2.txt
2 8 31 total
\end{lstlisting}
The command reports line, word, and byte counts for the matching text files and a total.
\end{enumerate}
\subsection*{D) Permissions \& Ownership}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=17]
\item \textbf{Make `tmp/` readable, writable, and searchable only by its owner.}
\index{Linux command!chmod}
\begin{lstlisting}[language=bash]
chmod 700 tmp
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
Mode `700` grants the owner read, write, and execute \phantomsection\label{GlossaryRef:permissions}\gls{permissions} while granting none to group or others.
\item \textbf{Give group execute permission to `src/lib` recursively without changing owner or other bits.}
\index{Linux command!chmod}
\begin{lstlisting}[language=bash]
chmod -R g+x src/lib
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The recursive `g+x` operation adds group execute permission without changing the other \gls{permissions}.
\item \textbf{Show the numeric octal permissions of `src/file2.txt`.}
\index{Linux command!stat}
\begin{lstlisting}[language=bash]
stat -c '%a' src/file2.txt
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
644
\end{lstlisting}
The command prints the file's numeric \gls{permissions} mode.
\item \textbf{Make `notes.md` append-only via file attributes, if supported.}
\index{Linux command!chattr}
\begin{lstlisting}[language=bash]
chattr +a notes.md && lsattr notes.md
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
-----a--------e------- notes.md
\end{lstlisting}
The command sets the append-only attribute and then displays the file attributes to verify it.
\end{enumerate}
\section*{E) Links and Find}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=21]
\item \textbf{Verify that `link-to-file1` is a symbolic link and show its target.}
\index{Linux command!symbolic links}
\begin{lstlisting}[language=bash]
[ -L link-to-file1 ] && readlink link-to-file1
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
src/file1.txt
\end{lstlisting}
The test succeeds only for a \phantomsection\label{GlossaryRef:symboliclink}\gls{symboliclink}, after which `readlink` prints its target.
\item \textbf{Find all regular files under the current tree larger than 40 KiB.}
\index{Linux command!find}
\begin{lstlisting}[language=bash]
find . -type f -size +40k -print
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
./blob.bin
\end{lstlisting}
The search restricts results to regular files whose size exceeds 40 KiB.
\item \textbf{Find files modified in the last ten minutes under `tmp/` and print their sizes.}
\index{Linux command!find}
\begin{lstlisting}[language=bash]
find tmp -type f -mmin -10 -printf '%s %p\n'
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
19 tmp/file1.txt
\end{lstlisting}
The search filters by modification time and prints each matching size followed by its path.
\end{enumerate}
\section*{F) Processes \& Job Control}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=24]
\item \textbf{Show your processes in a tree view.}\phantomsection\label{AcronymRef:PPID}
\index{Linux command!processes}
\begin{lstlisting}[language=bash]
ps -u "$USER" --forest -o pid,ppid,stat,cmd
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
PID PPID STAT CMD
2 0 S [kthreadd]
3 2 S \_ [pool_workqueue_release]
4 2 I< \_ [kworker/R-rcu_g]
5 2 I< \_ [kworker/R-rcu_p]
6 2 I< \_ [kworker/R-slub_]
7 2 I< \_ [kworker/R-netns]
9 2 I< \_ [kworker/0:0H-kblockd]
12 2 I< \_ [kworker/R-mm_pe]
13 2 I \_ [rcu_tasks_kthread]
14 2 I \_ [rcu_tasks_rude_kthread]
15 2 I \_ [rcu_tasks_trace_kthread]
16 2 S \_ [ksoftirqd/0]
17 2 I \_ [rcu_preempt]
18 2 S \_ [migration/0]
19 2 S \_ [idle_inject/0]
20 2 S \_ [cpuhp/0]
21 2 S \_ [kdevtmpfs]
22 2 I< \_ [kworker/R-inet_]
23 2 S \_ [kauditd]
24 2 S \_ [khungtaskd]
26 2 S \_ [oom_reaper]
28 2 I< \_ [kworker/R-write]
29 2 S \_ [kcompactd0]
30 2 SN \_ [ksmd]
31 2 I< \_ [kworker/R-kinte]
32 2 I< \_ [kworker/R-kbloc]
33 2 I< \_ [kworker/R-blkcg]
34 2 S \_ [irq/9-acpi]
35 2 I< \_ [kworker/R-tpm_d]
36 2 I< \_ [kworker/R-ata_s]
37 2 I< \_ [kworker/R-md]
38 2 I< \_ [kworker/R-md_bi]
39 2 I< \_ [kworker/R-edac-]
40 2 I< \_ [kworker/R-devfr]
41 2 S \_ [watchdogd]
42 2 I< \_ [kworker/R-quota]
43 2 I< \_ [kworker/0:1H-kblockd]
44 2 S \_ [kswapd0]
45 2 S \_ [ecryptfs-kthread]
46 2 I< \_ [kworker/R-kthro]
47 2 I< \_ [kworker/R-acpi_]
48 2 S \_ [scsi_eh_0]
49 2 I< \_ [kworker/R-scsi_]
50 2 S \_ [scsi_eh_1]
51 2 I< \_ [kworker/R-scsi_]
52 2 S \_ [scsi_eh_2]
53 2 I< \_ [kworker/R-scsi_]
56 2 I< \_ [kworker/R-mld]
57 2 I< \_ [kworker/R-ipv6_]
64 2 I< \_ [kworker/R-kstrp]
66 2 I< \_ [kworker/u3:0]
71 2 I< \_ [kworker/R-crypt]
81 2 I< \_ [kworker/R-charg]
163 2 I< \_ [kworker/R-raid5]
200 2 S \_ [jbd2/vda1-8]
201 2 I< \_ [kworker/R-ext4-]
293 2 I< \_ [kworker/R-kmpat]
294 2 I< \_ [kworker/R-kmpat]
398 2 S \_ [jbd2/vda16-8]
399 2 I< \_ [kworker/R-ext4-]
1163 2 I< \_ [kworker/R-tls-s]
34191 2 S \_ [psimon]
52833 2 I \_ [kworker/u2:0-events_power_efficient]
53308 2 I \_ [kworker/u2:2-events_power_efficient]
53346 2 I \_ [kworker/u2:3-events_power_efficient]
53379 2 I \_ [kworker/0:1-cgroup_free]
53425 2 S \_ [psimon]
53433 2 S \_ [psimon]
53615 2 I \_ [kworker/0:2-events]
53633 2 I \_ [kworker/u2:4-events_unbound]
1 0 Ss /usr/lib/systemd/systemd --system --deserialize=75
837 1 Ss /usr/lib/systemd/systemd-logind
914 1 Ss+ /sbin/agetty -o -p -- \u --keep-baud 115200,57600,38400,9600 - vt220
920 1 Ssl /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
960 1 Ss+ /sbin/agetty -o -p -- \u --noclear - linux
8058 1 Ssl /opt/digitalocean/bin/droplet-agent
20679 1 SLsl /sbin/multipathd -d -s
32446 1 Ss /usr/sbin/cron -f -P
34152 1 S<s /usr/lib/systemd/systemd-journald
34178 1 Ss /usr/lib/systemd/systemd-udevd
34749 1 Ssl /usr/libexec/udisks2/udisksd
34750 1 Ss sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
53422 34750 Ss \_ sshd: root@pts/0
53536 53422 Ss \_ -bash
53665 53536 R+ \_ ps -u root --forest -o pid,ppid,stat,cmd
34756 1 Ssl /usr/libexec/fwupd/fwupd
34772 1 Ssl /usr/sbin/ModemManager
53427 1 Ss /usr/lib/systemd/systemd --user
53428 53427 S \_ (sd-pam)
\end{lstlisting}
The `--forest` option renders the \phantomsection\label{GlossaryRef:process}\gls{process} relationships as a tree for the selected user.
\item \textbf{Start `sleep 120` in the background and show its \phantomsection\label{AcronymRef:PID}PID.}
\index{Linux command!sleep}
\begin{lstlisting}[language=bash]
sleep 120 & echo "$!"
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
[1] 53666
53666
\end{lstlisting}
\$! expands to the process \phantomsection\label{AcronymRef:ID}ID of the most recently started background job.
\item \textbf{Send TERM to all `sleep` processes owned by the current user without using `kill -9`.}
\index{Linux command!pkill}
\begin{lstlisting}[language=bash]
pkill -TERM -u "$USER" -x sleep
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
[1]+ Terminated sleep 120
\end{lstlisting}
The command requests graceful termination of exact-name `sleep` \gls{process}es belonging to the current user.
\item \textbf{Show the top five processes by memory usage in a noninteractive snapshot.}
\index{Linux command!ps}
\begin{lstlisting}[language=bash]
ps -eo pid,user,%mem,comm --sort=-%mem | head -n 6
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
PID USER %MEM COMMAND
34152 root 6.3 systemd-journal
20679 root 5.8 multipathd
34756 root 4.7 fwupd
53427 root 2.4 systemd
7679 do-agent 2.3 do-agent
\end{lstlisting}
The output is sorted by descending memory percentage, with the header included.
\end{enumerate}
\subsection*{G) Archiving and Compression}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=28]
\item \textbf{Create a gzipped tar archive named `src.tgz` from `src/` using relative paths.}
\index{Linux command!tar}
\begin{lstlisting}[language=bash]
tar -czf src.tgz src/
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The \phantomsection\label{GlossaryRef:archive}\gls{archive} is created from the relative `src/` path.
\item \textbf{List the contents of `src.tgz` without extracting it.}
\index{Linux command!tar}
\begin{lstlisting}[language=bash]
tar -tzf src.tgz
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
src/
src/file1.txt
src/file2.txt
src/lib/
src/file1.txt.bak
src/file2.txt.bak
\end{lstlisting}
The archive member names are displayed without extracting files.
\item \textbf{Extract only `file2.txt` from `src.tgz` into `tmp/`.}
\index{Linux command!tar}
\begin{lstlisting}[language=bash]
tar -xzf src.tgz -C tmp --strip-components=1 src/file2.txt
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The selected \gls{archive} member is extracted into `tmp/` after stripping the leading `src/` path component.
\textbf{Verification step:}
\begin{lstlisting}
$ ls -l tmp/file2.txt
-rw-r--r-- 1 root root 16 Sep 12 13:23 tmp/file2.txt
$ cat tmp/file2.txt
two 3 four five
\end{lstlisting}
The verification command is included as evidence of the resulting file state and is not part of the solution command.
\end{enumerate}
\subsection*{H) Networking \& System Info}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=31]
\item \textbf{Show all listening \phantomsection\label{AcronymRef:TCP}TCP sockets with associated PIDs without assuming root access.}
\index{Linux command!ss}
\begin{lstlisting}[language=bash]
ss -ltnp
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 4096 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=34750,fd=3),("systemd",pid=1,fd=109))
LISTEN 0 4096 127.0.0.54:53 0.0.0.0:* users:(("systemd-resolve",pid=34166,fd=17))
LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=34166,fd=15))
LISTEN 0 4096 [::]:22 [::]:* users:(("sshd",pid=34750,fd=4),("systemd",pid=1,fd=110))
\end{lstlisting}
The command lists listening TCP sockets and includes process information where permitted.
\item \textbf{Print the default route or gateway concisely.}
\index{Linux command!ip route}
\begin{lstlisting}[language=bash]
ip route show default
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
default via 142.93.192.1 dev eth0 proto static
\end{lstlisting}
The command displays the system's default route.
\item \textbf{Display the kernel name, release, and machine architecture.}
\index{Linux command!uname}
\begin{lstlisting}[language=bash]
uname -srm
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
Linux 6.8.0-124-generic x86_64
\end{lstlisting}
The output contains the kernel name, release, and machine architecture.
\item \textbf{Show the last five successful logins or sessions on the system.}
\index{Linux command!last}
\begin{lstlisting}[language=bash]
last -n 5
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
root pts/0 100.8.220.73 Sat Sep 12 13:12 still logged in
root pts/1 155.246.151.34 Thu Sep 10 21:23 - 22:23 (00:59)
root pts/0 155.246.151.34 Thu Sep 10 21:22 - 00:36 (03:13)
reboot system boot 6.8.0-124-generi Thu Sep 10 21:16 still running
wtmp begins Thu Sep 10 21:16:00 2026
\end{lstlisting}
The command displays the most recent login/session records available from the system accounting log.
\end{enumerate}
\subsection*{I) Package \& Services (Debian/Ubuntu)}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=35]
\item \textbf{Show the installed version of the `coreutils` package.}
\index{Linux command!coreutils}
\begin{lstlisting}[language=bash]
dpkg-query -W -f='${Version}\n' coreutils
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
9.4-3ubuntu6.3
\end{lstlisting}
The package query prints the installed version string.
\item \textbf{Search available packages whose names contain `ripgrep`.}
\index{Linux command!apt-cache}
\begin{lstlisting}[language=bash]
apt-cache search --names-only ripgrep
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
ripgrep - Recursively searches directories for a regex pattern
\end{lstlisting}
The package cache is searched by package name only.
\item \textbf{Check whether the `cron` service is active and print only its status line.}
\index{Linux command!systemctl}
\begin{lstlisting}[language=bash]
systemctl is-active cron
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
active
\end{lstlisting}
The command returns the service's active-state value.
\end{enumerate}
\subsection*{J) Bash \& Scripting}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=38]
\item \textbf{Loop over `*.txt` in `src/` and print each filename and word count.}
\index{Linux command!Bash}
\begin{lstlisting}[language=bash]
shopt -s nullglob
for f in src/*.txt; do
printf '%s : %s\n' "$f" "$(wc -w < "$f")"
done
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
src/file1.txt : 4
src/file2.txt : 4
\end{lstlisting}
The loop uses `nullglob` so an unmatched pattern expands to no files, and `wc -w` supplies each word count in \gls{bash}.
\item \textbf{Export CSV rows where `dept == "CS"` to `cs.txt`, excluding the header.}
\index{Linux command!awk}
\begin{lstlisting}[language=bash]
awk -F, 'NR > 1 && $3 == "CS"' people.csv > cs.txt
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The `awk` condition selects records after the header whose third field equals `CS`.
\textbf{Verification step:}
\begin{lstlisting}
$ cat cs.txt
2,Linus,CS
4,Dennis,CS
\end{lstlisting}
The verification command is included as evidence of the resulting file state and is not part of the solution command.
\item \textbf{Create an environment variable `X` with value `42`, print it, and remove it from the environment.}
\index{Linux command!environment variables}
\begin{lstlisting}[language=bash]
export X=42; printf '%s\n' "$X"; unset X
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
42
\end{lstlisting}
The \phantomsection\label{GlossaryRef:environmentvariable}\gls{environmentvariable} is exported, printed, and then unset in the current shell.
\end{enumerate}
+36
View File
@@ -0,0 +1,36 @@
\chapter{Passwords}
\ChapterLabel{Passwords}
\index{passwords}
\index{credentials}
\section{Overview}
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{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
\multicolumn{4}{l}{\small\itshape Credential Registry (continued)}\\
\toprule \textbf{User} & \textbf{Server} & \textbf{Credential Reference} & \textbf{Rotation / Notes}\\ \midrule
\endhead \bottomrule \endlastfoot
Group 7 & Droplet (DigitalOcean) & Bitwarden: \texttt{DigitalOcean Droplet} & Cloud administration; rotate periodically.\\
\texttt{nkogut} & MyFileAgent Gitea & Bitwarden: \texttt{Gitea - Nick} & Named Gitea administrator.\\
\texttt{glovely} & MyFileAgent Gitea & Bitwarden: \texttt{Gitea - Gowri} & Named Gitea administrator.\\
Group 7 & \texttt{.TECH domains} & Bitwarden: \texttt{.tech Domain} & Domain registrar access.\\
Group 7 & Actions runner & Restricted state: \texttt{.runner} & Outside Git; mode 600. Revoke on retirement.\\
\texttt{glovely} & Setup access & Restricted temporary token file & Repository-write setup only; revoke after use.\\
\texttt{ssw590} & Jenkins & Bitwarden: \texttt{jenkins-admin} & Named Matrix administrator.\\
\texttt{jenkins-}\allowbreak\texttt{ci} & Gitea & Bitwarden: \texttt{gitea-jenkins} & Non-admin; product repository Write access.\\
\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.\\
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}
+161
View File
@@ -0,0 +1,161 @@
\chapter{Project Proposal}
\ChapterLabel{ProjectProposal}
\index{project proposal}
\index{DevSecOps pipeline}
\index{agentic LLM}
\index{Python}
\index{Grafana}
\section{Project Title}
\begin{center}
\Large\textbf{MyFileAgent Pipeline: One-Click DevSecOps Deployment for an Agentic LLM}
\end{center}
\section{Project Description and Primary Focus}
The primary product of this project is an automated, repeatable DevSecOps
pipeline that will install, configure, and demonstrate file-interaction tasks with an LLM. The pipeline will install required
packages, download a pinned small language model from the Hugging Face Hub,
build the containers, create the configuration, run security and functional
tests, deploy the services to a DigitalOcean Ubuntu Droplet, and perform
post-deployment health checks. A user will start the complete workflow through
one manual GitHub Actions button or one documented local command.
Once automatically configured for the specific environment it is deployed to, the LLM can be given a file name or expected text which it will use to locate a file on the system. It will also be given the new contents for that file and will perform a controlled text replacement. It will call a tool using Python libraries to perform the deterministic
file validation, backup, diff display, and write operation. The project
does not promise general desktop control, autonomous file discovery, open-ended
planning, or unrestricted shell access, and will focus on the installation and setup pipeline rather than the extending the LLM's capabilities.
The model will be downloaded from the Hugging Face Hub using its supported
download workflow \cite{HuggingFaceHubDownload}. A small quantized GGUF model
will run locally through \texttt{llama.cpp} \cite{LlamaCpp}. Pinning the model
revision and checksum will make repeated pipeline runs reproducible.
\section{Demonstration Task}
The pipeline's end-to-end acceptance test will demonstrate installation, configuration, deployment, and usage of the LLM model. Each step of this process will be clearly displayed using visual metrics from GitHub actions, DigitalOcean droplet system resource monitoring, and Grafana. Finally, the following task (implemented as a test case) will demonstrate that this process was successful:
\begin{quote}
``In the approved demonstration folder, open the file about \texttt{project status}, verify
that it contains \texttt{Status: Draft}, and replace that line with
\texttt{Status: Reviewed}.''
\end{quote}
The application will receive a description of the target file's name (not necessarily an exact path) and replacement values, confirm
that the file exists inside the allowed folder, create a backup, show a diff,
perform the replacement, verify the saved result, and append a JSON Lines audit
record. If validation fails, it will stop without modifying the file.
\section{One-Click Pipeline}
The pipeline will perform the following stages in order:
\begin{enumerate}[label=\arabic*.]
\item validate required secrets, variables, model identifiers, and target
Droplet information;
\item install or verify Docker, Docker Compose, Python dependencies, and
required monitoring components;
\item download the pinned model and verify its checksum;
\item lint and statically analyze the Python source;
\item run unit, integration, security, and minimal end-to-end tests;
\item build and scan versioned container images;
\item generate deployment configuration from protected variables;
\item deploy the application, inference, Prometheus, and Grafana services;
\item run health checks and the fixed file-replacement acceptance test; and
\item publish test (e.g., via the task outlined above), scan, deployment, and monitoring results.
\end{enumerate}
The workflow will fail immediately when a required stage fails. Deployment
will use pinned versions, health checks, restart policies, resource limits, and
a rollback target. Re-running the same workflow should be idempotent and should
not duplicate configuration or damage an existing deployment.
\section{Proposed Architecture and Tools}
\begin{longtable}{L{2.7cm}L{4.2cm}L{7.3cm}}
\caption{Proposed MyFileAgent pipeline}\label{Table:MyFileAgentPipeline}\\
\toprule
\textbf{Stage} & \textbf{Planned Tools} & \textbf{Purpose} \\
\midrule
\endfirsthead
\toprule
\textbf{Stage} & \textbf{Planned Tools} & \textbf{Purpose} \\
\midrule
\endhead
\bottomrule
\endlastfoot
Source control & Git and GitHub & Store pipeline definitions, Python source, tests, Docker files, configuration templates, issues, and version history. \\
One-click orchestration & GitHub Actions \texttt{workflow\_dispatch}, Bash, and a Makefile & Provide one manual action that validates, builds, tests, scans, deploys, and verifies the complete system \cite{GitHubActions}. \\
File operations & Python \texttt{pathlib}, \texttt{shutil}, \texttt{difflib}, and atomic replacement & Provide a tool the LLM Agent will call to enforce the approved folder, create a backup, generate a diff, perform the single text replacement, and verify the result \cite{PythonPathlib}. \\
Model acquisition & Hugging Face Hub & Download a selected small model and pin its revision and checksum. \\
Inference & \texttt{llama.cpp} with a quantized GGUF model & Run a resource-conscious local model for the demonstration. \\
Testing & \texttt{pytest}, mocks, and temporary directories & Test configuration, file safeguards, backup and replacement behavior, failure handling, and the deployed acceptance case \cite{PytestDocs}. \\
Security & Ruff & Check Python quality, static-analysis rules. \\
Packaging and deployment & Docker Compose and DigitalOcean & Build and deploy versioned application, inference, and monitoring services on the Ubuntu Droplet. \\
Application monitoring & Prometheus and Grafana & Collect pipeline and application metrics and display build, test, deployment, health, latency, token, and failure information in a dashboard \cite{PrometheusOverview,GrafanaPrometheus}. \\
Host monitoring & DigitalOcean Monitoring & Supplement Grafana with Droplet-level CPU, memory, disk, and availability graphs and alerts \cite{DigitalOceanMonitoring}. \\
Audit storage & JSON Lines files and retained CI artifacts & Preserve pipeline results and a small append-only record of demonstration runs without requiring a separate database service. \\
\end{longtable}
\section{DevSecOps and Testing Strategy}
Security and verification are pipeline gates rather than later manual tasks.
Pull requests will run formatting, linting, unit tests, dependency checks,
static analysis, and container scanning. Only an approved main-branch revision
may start deployment. The containers will run as non-root users, secrets will
come from protected variables, and the demonstration workspace will be the
only writable application mount.
The automated test suite will emphasize the delivery system:
\begin{itemize}
\item pipeline configuration tests for required variables, pinned versions,
repeatable installation, failure handling, and rollback information;
\item Python tool to be called by the LLM; unit tests for path boundaries, backups, diffs, atomic writes,
audit records, and rejection of invalid input;
\item integration tests using temporary folders and a mocked inference
response;
\item security gates for source, dependencies, secrets, and images; and
\item a post-deployment acceptance test that performs only the fixed sample
replacement and confirms the backup, result, audit entry, and health
status.
\end{itemize}
\section{Monitoring Dashboard}
Grafana will be the main operational dashboard. Prometheus will supply metrics
for pipeline duration, test pass or failure counts, deployment status,
container health, inference latency, limited token estimates, acceptance-test
results, and application errors. These measures show whether the automated
delivery pipeline is reliable and repeatable; token information is a supporting
metric rather than the project's main goal. DigitalOcean Monitoring may be used
in addition for host-level CPU, memory, disk, and availability information.
\section{Planned Deliverables and Milestones}
\begin{enumerate}[label=\arabic*.]
\item define the one-click pipeline stages, configuration contract, success
criteria, and rollback approach;
\item create the GitHub repository, Python demonstration service and LLM-callable tool, and automated tests;
\item Choose a small model, pin and download it, and confirm the single demonstration
task locally;
\item create the Docker Compose deployment and security gates;
\item automate installation, configuration, build, test, scan, deployment,
health checking, and acceptance testing through one trigger;
\item configure Prometheus and Grafana, with DigitalOcean host monitoring as
an optional additional source;
and
\item demonstrate a clean one-click run and document timing, test, security,
monitoring, failure, and rollback results.
\end{enumerate}
\section{Success Criteria and Unique Contribution}
The project succeeds when one authorized action can take a documented target
from prerequisites to a healthy, tested, monitored deployment. The run must
install or validate dependencies, retrieve the pinned model, build containers,
pass automated tests and security gates, deploy the services, complete health
checks, execute the fixed file-replacement acceptance test, and expose results
in Grafana. A repeated run must be safe and produce consistent results, while a
failed gate must prevent or stop deployment and provide useful logs.
+221
View File
@@ -0,0 +1,221 @@
@book{PhoenixProject,
author = {Kim, Gene and Behr, Kevin and Spafford, George},
title = {The Phoenix Project: A Novel about IT, DevOps, and Helping Your Business Win},
publisher = {IT Revolution Press},
year = {2018}
}
@misc{HuggingFaceHubDownload,
author = {{Hugging Face}},
title = {Download Files from the Hub},
year = {2026},
howpublished = {\url{https://huggingface.co/docs/huggingface_hub/guides/download}},
note = {Accessed: September 18, 2026}
}
@misc{LlamaCpp,
author = {{llama.cpp contributors}},
title = {llama.cpp: LLM Inference in C/C++},
year = {2026},
howpublished = {\url{https://github.com/ggml-org/llama.cpp}},
note = {Accessed: September 18, 2026}
}
@misc{PythonPathlib,
author = {{Python Software Foundation}},
title = {pathlib---Object-Oriented Filesystem Paths},
year = {2026},
howpublished = {\url{https://docs.python.org/3/library/pathlib.html}},
note = {Accessed: September 18, 2026}
}
@misc{PytestDocs,
author = {{pytest contributors}},
title = {pytest Documentation},
year = {2026},
howpublished = {\url{https://docs.pytest.org/}},
note = {Accessed: September 18, 2026}
}
@misc{PrometheusOverview,
author = {{Prometheus Authors}},
title = {Prometheus Overview},
year = {2026},
howpublished = {\url{https://prometheus.io/docs/introduction/overview/}},
note = {Accessed: September 18, 2026}
}
@misc{GrafanaPrometheus,
author = {{Grafana Labs}},
title = {Prometheus Monitoring and Grafana Dashboards},
year = {2026},
howpublished = {\url{https://grafana.com/oss/prometheus/}},
note = {Accessed: September 18, 2026}
}
@misc{DigitalOceanMonitoring,
author = {{DigitalOcean}},
title = {Monitoring Documentation},
year = {2026},
howpublished = {\url{https://docs.digitalocean.com/products/monitoring/}},
note = {Accessed: September 18, 2026}
}
@misc{GitHubActions,
author = {{GitHub}},
title = {GitHub Actions Documentation},
year = {2026},
howpublished = {\url{https://docs.github.com/actions}},
note = {Accessed: September 18, 2026}
}
@misc{DockerUbuntuInstall,
author = {{Docker, Inc.}},
title = {Install Docker Engine on Ubuntu},
year = {2026},
howpublished = {\url{https://docs.docker.com/engine/install/ubuntu/}},
note = {Accessed: September 18, 2026}
}
@misc{GiteaDockerRootless,
author = {{Gitea Limited}},
title = {Installation with Docker (rootless)},
year = {2026},
howpublished = {\url{https://docs.gitea.com/installation/install-with-docker-rootless/}},
note = {Accessed: September 26, 2026}
}
@misc{CaddyDockerImage,
author = {{Docker, Inc.}},
title = {Caddy Official Image},
year = {2026},
howpublished = {\url{https://hub.docker.com/_/caddy}},
note = {Accessed: September 26, 2026}
}
@misc{CaddyAutomaticHTTPS,
author = {{Caddy Project}},
title = {Automatic HTTPS},
year = {2026},
howpublished = {\url{https://caddyserver.com/docs/automatic-https}},
note = {Accessed: September 26, 2026}
}
@misc{CaddyCommandLine,
author = {{Caddy Documentation}},
title = {Command Line},
howpublished = {\url{https://caddyserver.com/docs/command-line}},
note = {Accessed September 26, 2026}
}
@misc{DigitalOceanCloudFirewalls,
author = {{DigitalOcean}},
title = {Cloud Firewalls Documentation},
year = {2026},
howpublished = {\url{https://docs.digitalocean.com/products/networking/firewalls/}},
note = {Accessed: September 26, 2026}
}
@misc{GiteaActRunnerManual,
author={{Gitea}}, title={Act Runner},
howpublished={\url{https://docs.gitea.com/1.26/usage/actions/act-runner/}},
note={Accessed October 6, 2026}}
@misc{GiteaActionsComparisonManual,
author={{Gitea}}, title={Compared to GitHub Actions},
howpublished={\url{https://docs.gitea.com/1.27/usage/actions/comparison/}},
note={Accessed October 6, 2026}}
@misc{GiteaActionsConfigManual,
author={{Gitea}}, title={Configuration Cheat Sheet: Actions},
howpublished={\url{https://docs.gitea.com/1.27/administration/config-cheat-sheet/}},
note={Accessed October 6, 2026}}
@misc{JenkinsDockerA6,
author = {{Jenkins Project}},
title = {Installing Jenkins with Docker},
howpublished = {\url{https://www.jenkins.io/doc/book/installing/docker/}},
note = {Accessed October 9, 2026}
}
@misc{JenkinsCaddyA6,
author = {{Jenkins Project}},
title = {Reverse proxy configuration with Caddy},
howpublished = {\url{https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/reverse-proxy-configuration-caddy/}},
note = {Accessed October 9, 2026}
}
@misc{GiteaPluginA6,
author = {{Jenkins Project}},
title = {Gitea plugin},
howpublished = {\url{https://plugins.jenkins.io/gitea/}},
note = {Accessed October 9, 2026}
}
@misc{GiteaChecksA6,
author = {{Jenkins Project}},
title = {Gitea Checks plugin},
howpublished = {\url{https://plugins.jenkins.io/gitea-checks/}},
note = {Accessed October 9, 2026}
}
@misc{GiteaScopesA6,
author = {{Gitea Limited}},
title = {Token scopes},
howpublished = {\url{https://docs.gitea.com/development/oauth2-provider/#scopes}},
note = {Accessed October 9, 2026}
}
@misc{PrometheusStorageA7,
author = {{Prometheus Authors}},
title = {Prometheus Storage},
year = {2026},
howpublished = {\url{https://prometheus.io/docs/prometheus/latest/storage/}},
note = {Accessed: October 28, 2026}
}
@misc{NodeExporterA7,
author = {{Prometheus Authors}},
title = {Monitoring Linux Host Metrics with the Node Exporter},
year = {2026},
howpublished = {\url{https://prometheus.io/docs/guides/node-exporter/}},
note = {Accessed: October 28, 2026}
}
@misc{BlackboxExporterA7,
author = {{Prometheus Authors}},
title = {Blackbox Exporter: Multi-target HTTPS Probing},
year = {2026},
howpublished = {\url{https://github.com/prometheus/blackbox_exporter}},
note = {Accessed: October 28, 2026}
}
@misc{GrafanaAlertFilesA7,
author = {{Grafana Labs}},
title = {Provision Grafana Alerting Resources from Files},
year = {2026},
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}
}

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