import csv, json, sys
with open(sys.argv[1], newline="", encoding="utf-8-sig") as source:
    for row in csv.DictReader(source):
        if not row.get("legacyId"):
            raise ValueError("Define an explicit legacyId column mapping first")
        print(json.dumps({"legacyId": row["legacyId"],
            "owner": row.get("owner"), "sourceRow": row,
            "status": "evaluation-required"}))
