Evidence

References

Run IDs, commits, receipts and source files behind the numbers in the guide. The pages link here with small chips such as sl1021.

Sections 1–3: context, conduct, logical architecture

Project 1 baseline

The proposal names repository Flickpond/Media_player at commit 890c5ec. The team worked from its local frozen checkout of the same code, commit 8854537 (project decision D-01, 9 October 2026). Team approval by Prof Boon Kui Heng on 22 September 2026. Source: final report §1 Background; project-documentation/effort-ledger.md, "Project 1 effort".

Publisher CLI independence

491 lines of Python in 6 files under publisher/; runtime dependency httpx only; 0 imports from service code and 0 database credentials, enforced by a test. Build effort against the 2 person-day target was not measured. Source: final report §4 (Extensibility and Maintainability; Reusability row); publisher/README.md.

Code freeze, 22 October

CD run 39733859422 green on Main; Main equal to dev/closeout. Source: project-documentation/presentation/ROAD-TO-PRESENTATION.md, Stage 0.

Release identities

Team-accepted demo freeze daee44b (20 October). Engineering release 629119c (20 October). Verified release c7c489c (21 October): certifi remediation plus two delivery fixes, delivered by CD run 39545554380 with an upload-to-playback smoke; receipt docs/results/engineering-20261021/delivery-c7c489c.json. Manifest: docs/release/demo-release-manifest.md.

Effort ledger

Team-agreed equal allocation of the proposal's ten work packages plus the release freeze (issue #191), recorded 20 October 2026; forecast at submission recorded 21 October. 31 pd planned, 33 pd recorded to 20 October, 36 pd forecast. Source: project-documentation/effort-ledger.md; final report §2 Project Metrics.

Delivery metrics (snapshot 21 October, before PRs #285–#290)

128 pull requests opened and 123 merged over 12–21 October (27 into Main, 42 into dev/closeout, 39 into dev/v1-integration, 4 into dev/v1, 11 into short-lived branches). 156 issues created, 147 closed. 533 commits on Main. 246 CI workflow runs. 3,982 Python tests collected plus 177 frontend tests. Coverage: Media 93.91 %, Processing 93.90 %, frontend 96.24 % of statements. Code: 10,062 lines of service and client Python, 1,822 lines of frontend JavaScript, 54,011 lines of tests. All activity through the single account Collaboration95. Source: final report §2 Project Metrics.

Architecture decision register

AD-01 to AD-29 with context, decision, alternatives, trade-off and evidence; proposal-to-as-built deviations in §4. Source: docs/architecture/decisions.md. Domain model: docs/architecture/ddd.md.

Image boundary check

deploy/v1/check_runtime.py fails an image build if the opposite domain package, the legacy package or any listed legacy module is importable, or if the executable graph imports one (AD-26). Tests: tests/v1/test_image_recipes.py. check_runtime.py.

Processing consumer outage (AV-5)

AWS run r1018b, step #196 processing-down: the ProcessingCommands consumer was disabled for 48 s; Media answered 202 for an upload and held the command; the job reached done 58.9 s after re-enabling. The first attempt failed on a harness bug (fixed in #218); the rerun passed. The Processing API stayed up, so this covers the command consumer only. Receipt: cloud-proof-r1018b.json; results table docs/results/actual-vs-target.md, AV-5.

Duplicate work drains without purge (LV-11)

dc2-live, source daee44b, CD 39286933644: nine copies of a 303,113-byte clip from nine Publisher processes; 9/9 jobs done; 18 work sends for nine jobs; queues at 0 visible and 0 in flight within about 2 minutes, no purge used. One run; SQS counts are approximate. Receipt: burst-270-recheck.json; docs/results/actual-vs-target.md, LV-11.

Worker stopped mid-encode (AV-1)

AWS run r1017b, step #64 recovery: one encoder task stopped mid-encode; platform reaction in 5.8 s against a 300 s target. The receipt records reaction time only; stop-to-done and a duplicate-output check were not recorded. Receipt: cloud-proof-r1017b.json; docs/results/actual-vs-target.md, AV-1. Mechanism: processing/lifecycle.py (claim, heartbeat, finish), processing/recovery.py (interrupt, recover_expired).

Security negative tests on AWS

Run r1017b (#63): anonymous-denied (401 on all six frontend and gateway job routes), forged-identity (forged identity headers change nothing; non-operator gets 403 on admin), sqs-direct-send (direct SendMessage refused with 403 on all three queues), cross-database (other service's database refused with InsufficientPrivilegeError; runtime DDL refused), session-roundtrip (cookie host-only, HttpOnly, Secure, SameSite=Strict). Receipt: cloud-proof-r1017b.json. Mechanism: media/authorizer.py, contracts/gateway.py, queue policies in scripts/aws/v1/definitions.py.

Sections 4–5: physical architecture, DevOps

sl1021: short lane against Fargate on dc2-live (21 Oct 2026)

Receipt docs/results/engineering-20261021/short-lane-sl1021.json; rows LV-S1 to LV-S4 in docs/results/actual-vs-target.md; method and reading in docs/execution/aws/v2/lambda-short-encodes.md ("Results on dc2-live"). Source c7c489c, after CD run 39604910633. Five jobs per arm of one 24 s 640×360 H.264/AAC clip; the Fargate arm used the same streams with a 70 MiB free atom appended (75,923,783 bytes against 2,523,463). Medians: queue wait 0.26 s (max 2.6) against 32.6 s (26.0–33.7); processing 5.3 s against 8.0 s; submit-to-done Lambda cold 92.0 s (n = 1), warm 45.2 s (38.5–88.1, n = 4, nearest-rank p50 as computed by scripts/aws/v1/proof/core.py), Fargate 87.7 s (72.3–113.6); billed compute USD 0.0003 against 0.0021 per success. Keep rule: meets_keep_rule: false (cold median), merge_decision: pending. Lane bounds: processing/short_lane.py; memory, timeout and mapping cap: scripts/aws/v1/definitions.py.

r1017b: latency and database wake (AWS V1, 17 Oct 2026)

docs/execution/aws/v1/evidence/cloud-proof-r1017b.json, rows PF-1, PF-3 and AV-1 in docs/results/actual-vs-target.md. Status p90 58.2 ms (50 users, 180 s, 9,000 requests, 0 errors) and login p90 178 ms (20 concurrent requests), from a Fargate generator in the same region. Cold wake: first read after a pause 4.7 s, later reads 263 ms (AD-12 in docs/architecture/decisions.md). Worker stopped mid-encode: reaction in 5.8 s.

r1018b: 1/2/3-worker scaling (AWS V1, 18 Oct 2026)

docs/execution/aws/v1/evidence/cloud-proof-r1018b.json, #185 backlog-compare; rows SC-AWS-1 to SC-AWS-6 in docs/results/actual-vs-target.md. Six-clip backlog of one 36,035,343-byte fixture, one run per cap, 2 vCPU / 4 GiB tasks started by an operator batch: 0.483 / 0.700 / 1.134 jobs/min, speed-up 1.449× (target 1.6×, FAIL) and 2.347× (target 2.1×, PASS); median queue wait 274.3 / 135.7 / 9.6 s; 0 failed jobs.

v2live-0919: automatic scaling on dc2-live (19 Oct 2026)

docs/execution/aws/v1/evidence/v2live-verify-20261019/scaling-and-backlog.json; rows LV-7, LV-8 and LV-9 in docs/results/actual-vs-target.md. Three concurrent 20 s 640×360 clips: encoder tasks 0 → 3 → 0. Warm-job observed queue wait about 37 s (target 20 s); ECS created-to-started median 25.6 s over 12 tasks. Nine-clip backlog at cap 3: 239 s, 2.26 jobs/min. Exact source commit not recorded in the receipt (before daee44b).

lv11: duplicate sends drained without purge (19 Oct 2026)

docs/execution/aws/v1/evidence/v2live-verify-20261019/burst-270-recheck.json; row LV-11. Source daee44b, CD 39286933644. Nine copies of a 303,113-byte clip from nine Publisher processes; 18 work sends for 9 jobs; 9/9 done; both queue counts zero, no purge.

lv12: Aurora at 0 ACU (19 Oct 2026)

Row LV-12 in docs/results/actual-vs-target.md; recorded in docs/release/demo-release-manifest.md. CloudWatch ServerlessDatabaseCapacity one-minute maximum 0.0 ACU at 18:07 UTC, about 56 minutes after the last upload, on daee44b, before the database split. One observation, not a monthly measurement.

s229: security negatives on dc2-live (19 Oct 2026)

docs/execution/aws/v1/evidence/cloud-proof-s229live.json and docs/execution/aws/v1/evidence/s229-live-results.md; row LV-6. External port scan: only 80 and 443 open, 80 redirects; Aurora PubliclyAccessible=false; no 0.0.0.0/0 ingress. Cross-database login refused (InsufficientPrivilegeError) and runtime DDL denied; direct queue send by an unlisted principal 403; 100 MiB + 1 byte refused by S3. Earlier cross-database and queue negatives: cloud-proof-r1018b.json #63.

cost-model: idle and per-use cost inputs

Rates: docs/execution/aws/v1/cost-inputs.json (rates_usd: ACU-hour 0.20, Fargate worker hour 0.12824 including IPv4, Lambda GB-second 0.0000166667, HTTP API request 0.00000125, secret month 0.40, Aurora GB-month 0.11). Idle estimate USD 3–5 a month: AD-27 in docs/architecture/decisions.md, written for one cluster. Second cluster USD 0.51 a month retained (secret 0.40 + storage 0.11): docs/execution/aws/v2/database-topology.md, "Cost implications". Budget USD 20 a month, alerts at 50/80/100 %: AD-27. Actual spend not established (Cost Explorer USD 0.00 with credits): AISS-05 in the final report.

39644028238: short lane and database split delivered to dc2-live (21 Oct 2026)

CD run 39644028238 (manual dispatch, source 68a027f), success in 34.5 min (Deploy step 1,785 s, smoke 203 s). Rehearsal on a throwaway stack: docs/results/engineering-20261021/database-split-rehearsal.json. Procedure: split-database and finish-database-split in scripts/aws/v1/deploy.py, called from scripts/ci/cd.sh; AD-29 in docs/architecture/decisions.md. Short-lane benchmark: docs/results/engineering-20261021/short-lane-sl1021.json.

39545554380: redelivery of c7c489c, both services released (21 Oct 2026)

CD run 39545554380, admitted by Main CI 39544952625. Gate 7 s; Deploy step 22 min 56 s (1,376 s) including both owner releases and stack adoption; upload-to-playback smoke 2 min 27 s; job done 101.2 s after acceptance. Read-back: Media sha256:dafbb19d…, Processing sha256:3c83e4ba…, worker sha256:eed6fbbb…, ten live aliases, dc2-live-worker:12. Receipt docs/results/engineering-20261021/delivery-c7c489c.json.

39532075705: release blocked by the retained-image scan (21 Oct 2026)

CD run 39532075705, source 4ae6a0b: media: FAIL: Trivy has 1 fixable HIGH/CRITICAL on the running image sha256:24bd78a8… (built from 629119c), GHSA-6q48-6c7w-9gw2 in certifi 2026.7.22, published 2026-10-20 19:35 UTC; candidate certifi 2026.10.19. Fix: AD-28, PR #285 into dev/closeout, #286 into Main; scan_baseline in scripts/ci/cd.sh, --retained in scripts/ci/v1_scan.py.

39542434067: paused Aurora at the stack smoke (21 Oct 2026)

CD run 39542434067, source 6155951: PublicSmoke failed: login:503; MediaApi answered after about 10.7 s; capacity 1.0 ACU moments later. Fix: PRs #287 and #288; DATABASE_WAKE_BACKOFF = (5, 10, 15) and _waking in scripts/aws/v1/public_smoke.py, used by step_public_smoke in scripts/aws/v1/deploy.py with a 180 s deadline.

22 Oct: Processing database wake after the split

CD runs 39728501166, 39729654137 and 39731426830 failed in Deploy with PublicSmoke failed: processing-jobs:503; login attempts [200], [503, 200] and [200] (read with gh run view --log-failed on 22 Oct). Current code retries the Processing batch call too (_processing_batch in scripts/aws/v1/public_smoke.py). Next green CD: 39733859422 at f07b5e6.

39271754470: deliberate bad Processing candidate restored (19 Oct 2026)

CD run 39271754470, bad_candidate=true, source 7928b7c: smoke failure processing-jobs:503, outcome restored. Receipt docs/execution/aws/v1/evidence/v2live-verify-20261019/cd-39271754470-bad-candidate-rollback/release-processing.json; row LV-10. Fault injection: inject_bad_candidate in scripts/ci/cd.sh. Operator-run restore timings (Processing 205.7 s to smoke failure, restored in 54.8 s; Media 189.5 s and 47.0 s): AD-16 in docs/architecture/decisions.md.

dp1–dp4: Processing release time against the 10-minute target

Rows DP-1 to DP-4 in docs/results/actual-vs-target.md. CD Release step 10.3, 10.2 and 10.1 min on r1018b (docs/execution/aws/v1/evidence/r1018b-results.md); operator promote step 322.5 s on r1017b; CD run 39087966647 (r1019a, source 358d169) Release step 9 min 39 s, and 15 min 38 s with the upload smoke (smoke step 5 min 59 s).

39596145564 and 39600906024: Lambda memory ceiling and rollback state (21 Oct 2026)

CD run 39596145564: CloudFormation refused MemorySize above 3008 for the short encoder; the stack ended UPDATE_ROLLBACK_COMPLETE. CD run 39600906024: the deploy tool refused that state; fixed by UPDATABLE = HEALTHY | {"UPDATE_ROLLBACK_COMPLETE"} in scripts/aws/v1/deploy.py; next success 39604910633. Memory rationale: docs/execution/aws/v2/lambda-short-encodes.md, "Admission rule".

39412315002: released migration bytes changed by formatting (20 Oct 2026)

CD run 39412315002 held the release; redelivered by 39416747925 (source 629119c). Receipt docs/results/engineering-20261020/delivery-629119c.json. Rule in CONTRIBUTING.md ("Keep released migration files unchanged").

39637798081: worker CVE outside the accepted list (21 Oct 2026)

CD run 39637798081: the release plan rejected CVE-2025-52290 (FFmpeg, no Debian 13 fix). Accepted-unfixed list with reasoning: docs/execution/aws/v1/scan-accepted-unfixed-20261017.json. CodeQL triage (12 High dismissed, 0 fixed) and ZAP disposition: docs/ci/policy.md, "Code scanning triage"; ZAP findings docs/results/engineering-20261020/dast-confirmation-findings-514914a.json.

pipeline-timings: CI and CD durations (read 22 Oct 2026)

Read-only gh run list and gh run view <id> --json jobs; nothing was started. Main push CI, created to updated: 39733112331 (f07b5e6) 7.3 min; 39730671775 7.7; 39729067801 6.2; 39727654381 8.8; 39661190452 6.8; 39640613032 11.8; 39636614356 7.8; 39631018604 7.4; 39603878653 7.2; 39599993229 6.7; 39572348297 189.3 (includes a re-run); 39566662516 6.5; 39553809868 6.4; 39550093697 6.6; 39544952625 6.6. Job times in run 39733112331: classify 6 s, lint and unit 135 s, frontend 29 s, legacy integration 78 s, Processing integration 155 s, Media integration 64 s, Media service 84 s, Processing service 159 s, Publisher 29 s, browser trust 382 s, V1 offline 378 s, V1 local 239 s, V1 images 220 s, image scans 44/87/98 s, gitleaks 20 s, DAST 188 s, coverage 25 s, Dev gate 8 s, Full verification 7 s; 25 succeeded, 3 skipped. CD: 39733859422 (f07b5e6, no release) 8.4 min: gate 8 s, Deploy 253 s, smoke 128 s; 39662185351 7.6; 39567479407 6.4; 39554453687 6.4; 39550709558 8.0; 39604910633 22.2 min (Deploy 1,160 s, smoke 102 s); 39545554380 26.4 min (Deploy 1,376 s, smoke 147 s). Workflows: .github/workflows/ci.yml, cd.yml, v1.yml, dast.yml; steps scripts/ci/cd.sh; admission scripts/ci/cd_gate.py; lane policy scripts/ci/policy.py and docs/ci/policy.md.

Section 6: demo

gh-durations: CI and CD durations used by D6

Read-only gh run list --workflow ci.yml --branch Main, gh run list --workflow ci.yml --event pull_request, gh run list --workflow cd.yml and gh run view <id> --json jobs, read on 22 Oct 2026; nothing was started. Main CI (push), created to updated: 39733112331 at f07b5e6 7m16s; 39730671775 7m43s; 39729067801 6m10s; 39727654381 8m49s; 39661190452 6m45s; 39640613032 11m45s. Pull-request CI: 39732334041 7m27s; 39731409213 8m43s; 39729935035 7m20s; 39729164470 7m42s; 39728414874 6m33s; 39727624704 7m47s. Successful CD: 39733859422 8m25s (Deploy 06:27:33 to 06:31:46, upload-to-playback smoke 06:31:46 to 06:33:54; the log shows [frontend] start 06:31:28 and done 06:31:31); 39662185351 7m38s. Failed CD runs 39728501166, 39729654137 and 39731426830 failed in Deploy on a 503 from processing-jobs while the Processing database woke. CD begins within about 2 s of the CI run it follows (workflow_run trigger). Files: .github/workflows/ci.yml, .github/workflows/cd.yml, scripts/aws/v1/deploy.py (step_frontend).

demo-clips: clip plan source

Clip IDs D1 to D6, fixtures, commands, pitfalls and the historical result insets come from project-documentation/presentation/research/sections-5-6-demo.md. Commands were checked against publisher/cli.py, publisher/README.md and scripts/aws/v1/proof/generator.py. Lane bounds (64 MiB, 60 s, 1080 p) are in processing/short_lane.py; the mapping bound MaximumConcurrency: 2 is in scripts/aws/v1/definitions.py. The padded fixture follows the 70 MiB free atom of docs/results/engineering-20261021/short-lane-sl1021.json.

generator-output: what the load generator writes

scripts/aws/v1/proof/generator.py prints DC2-SAMPLES <index> <total> <chunk> lines (zlib-compressed, base64-encoded CSV with columns route, phase, user, started_at, ended_at, elapsed_ms, status_code, error) and one DC2-RESULT {json} line (ok, samples_sha256, users, routes with count, errors, p50, p90, p95, p99 and max, windows, python, cpus). Defaults: 50 users, 180 s, 5 s warm-up, 20 s per other route, 20 logins. Decoding and verdict rules: collect_samples, parse_samples and judge in scripts/aws/v1/proof/latency.py (status p90 at most 700 ms, login p90 under 2 s, errors under 1%, Gateway throttle at least 50 requests/s with burst 100). Local-stack alternative: scripts/evidence/performance.py (writes requests.jsonl, queue.jsonl, targets.csv).

lane-results: historical lane and speed-up figures cited in the questions

Short lane median queue wait 0.26 s against 32.6 s for padded Fargate, five jobs per arm; warm submit-to-done 45.2 s, cold 92.0 s; meets_keep_rule:false: docs/results/engineering-20261021/short-lane-sl1021.json. Status p90 58.2 ms over 9,000 requests with 50 users for 180 s from a Fargate task in the same region; login p90 178 ms over 20 samples; speed-up 1.449x at two workers against 1.6x and 2.347x at three against 2.1x: docs/results/actual-vs-target.md (PF-1, PF-3, LV-7).

demo-cost: cost inputs

Singapore rates: Aurora $0.20 per ACU-hour, Fargate worker $0.12824 per task-hour including IPv4, HTTP API $1.25 per million requests, Lambda $0.0000166667 per GB-second: docs/execution/aws/v1/cost-inputs.json and docs/execution/aws/cost-worksheet.json. Short encode about $0.0003 against $0.002137 for a padded Fargate encode (billed compute only). Database time is derived as two clusters x 0.5 to 2 ACU x $0.20; it is an assumption about utilisation, not a measurement or an invoice.

ownership-live: expected denial codes

Foreign owner 404 and anonymous 401 as recorded in LV-6 of docs/results/actual-vs-target.md and in docs/execution/aws/v1/evidence/s229-live-results.md. The clip repeats the shown routes only, not the full negative campaign.

auto-pause: database pause timeout used by the storyboard

Both Aurora Serverless v2 clusters pause after 300 s without connections: DEFAULT_AUTO_PAUSE_SECONDS in scripts/aws/v1/definitions.py, the --database-auto-pause-seconds default in docs/execution/aws/v2/database-topology.md, and seconds_until_auto_pause: 300 in docs/execution/aws/v1/evidence/cloud-proof-r1018b.json. The three 22 Oct CD failures on a cold Processing database are in gh-durations.