date: 2026-11-06T09:30:40Z commit: 75b93bbba5f29575d3fca1d013cc7e0770d88082 environment: {} $ python3 -c 'import collections import json import subprocess from pathlib import Path source = Path("/Users/artemkostylev/projects/learning/HL/labs/.pipeline/.runs/labs/snapshots/lab3-ba78cf6da439a4ec60fd59389583b38285b0b2b1") manifest = json.loads(Path("evidence/forward-final-2026-11-06/source-manifest.json").read_text()) def source_git(*args): return subprocess.check_output(["git", "-C", str(source), *args], text=True) assert source_git("rev-parse", "HEAD").strip() == manifest["source_to"] changed = dict(line.split("\t", 1)[::-1] for line in source_git("diff", "--name-status", manifest["source_from"], manifest["source_to"]).splitlines()) assert changed == {row["file"]: row["status"] for row in manifest["files"]} blobs = {} for line in source_git("ls-tree", "-r", manifest["source_to"]).splitlines(): meta, path = line.split("\t", 1) blobs[path] = meta.split()[2] merged = {"infra/haproxy/haproxy.cfg", "src/messenger/messaging/domain/values.py"} exact = 0 for row in manifest["files"]: assert blobs[row["file"]] == row["source_blob"], row["file"] if row["action"] == "copied-source-archive" or (row["action"] == "ported" and row["file"] not in merged): assert Path(row["file"]).read_bytes() == (source / row["file"]).read_bytes(), row["file"] exact += 1 print(json.dumps({"source_from":manifest["source_from"], "source_to":manifest["source_to"], "manifest_paths":len(changed), "decisions":dict(collections.Counter(row["action"] for row in manifest["files"])), "byte_exact_paths":exact, "manual_lab4_merges":sorted(merged)}, indent=2)) subprocess.run(["git", "diff", "--exit-code", manifest["target_base"], "--", "contracts", "tests", "README.md", "COURSE.md"], check=True) subprocess.run(["git", "diff", "--exit-code", "75b93bbba5f29575d3fca1d013cc7e0770d88082", "--", "src", "student-tests", "infra", "scripts", "compose.yaml", "Dockerfile", "pyproject.toml", "uv.lock", "alembic"], check=True) print("PASS: complete immutable-source manifest, preserved normative files, runtime unchanged since measurements") ' { "source_from": "f591fa64e525679a31c9db7f942d36c789e1a12f", "source_to": "ba78cf6da439a4ec60fd59389583b38285b0b2b1", "manifest_paths": 214, "decisions": { "adapted-context": 2, "not-copied": 169, "adapted-test-tool": 4, "ported": 14, "copied-source-archive": 19, "merged-via-local-change": 6 }, "byte_exact_paths": 31, "manual_lab4_merges": [ "infra/haproxy/haproxy.cfg", "src/messenger/messaging/domain/values.py" ] } PASS: complete immutable-source manifest, preserved normative files, runtime unchanged since measurements exit_code: 0 elapsed_seconds: 0.195