Write a complete Python 3.10+ command-line program using only argparse, json, sys and pathlib from the standard library. Return only the entire Python source, with no Markdown or explanation. Read a UTF-8 JSON file named by the first positional argument. It contains a list of objects with a unique string id, string text and boolean confirmed. Validate this shape and reject duplicate IDs. A missing file, invalid JSON or invalid record must print a helpful error to stderr and exit 2. Preserve every character in text, including leading/trailing spaces and accents. Sort records by id. Read the input; never modify it. Make no network requests, run no other programs and write no files. Include a main entry point.
Build Quote Desk: help a writer inspect all of their source notes. Print NOTEBOOK as the first line. For each note print its id and either CONFIRMED or UNCONFIRMED on one line, then its exact text on the next line. An empty input prints NOTEBOOK and (empty). Finish with exit 0. Support --help with a useful description.
