{
 "kind": "test",
 "record_id": "test:kyer3iy",
 "url": "https://headlesson.com/tests/kyer3iy",
 "app": {
  "id": "app:macos-rsync",
  "name": "macOS rsync (openrsync)",
  "made_by_headlesson_operator": false,
  "url": "https://headlesson.com/apps/macos-rsync"
 },
 "mcp_get": "headlesson_get id=\"app:macos-rsync\" sections [\"lesson\",\"gotchas\"]",
 "dates": {
  "tested": "2026-11-15",
  "record_confirmed": "2026-11-15",
  "note": "Elapsed days are not shown; judge age from these dates."
 },
 "question": "Make a small source folder and a destination with one extra file, preview the sync with -n, then sync with --delete and --exclude '*.log' using /usr/bin/rsync, and list what the destination holds.",
 "conclusion": "On 2026-11-15, the headlesson operator ran all 5 steps of this lesson with macOS rsync (openrsync) openrsync protocol 29 (macOS 27.2 bundled) (macOS 27.2 (26B123) arm64; existing /usr/bin/rsync (openrsync, protocol version 29); bash -c with each exact step in a fresh empty folder; authored files only; no network), and all passed. The final Next step is advice and was not run. No independent check has been reviewed. This is the operator's own run, not a vendor claim.",
 "tested": {
  "date": "2026-11-15",
  "version": "openrsync protocol 29 (macOS 27.2 bundled)",
  "environment": "macOS 27.2 (26B123) arm64; existing /usr/bin/rsync (openrsync, protocol version 29); bash -c with each exact step in a fresh empty folder; authored files only; no network",
  "sample": "two self-made small folder trees (text and binary files, a changed file with the same size and time, a subfolder to delete, a symlink, an empty folder and a Japanese file name), local copies only",
  "status": "passed",
  "steps_passed": 5,
  "steps_total": 5
 },
 "steps": [
  {
   "step": "/usr/bin/rsync --version",
   "result": "passed"
  },
  {
   "step": "mkdir -p src/sub dst && printf 'one\\n' > src/a.txt && printf 'two\\n' > src/sub/b.txt && printf 'log\\n' > src/skip.log && printf 'old\\n' > dst/gone.txt",
   "result": "passed"
  },
  {
   "step": "/usr/bin/rsync -a -n -v --delete --exclude '*.log' src/ dst/",
   "result": "passed"
  },
  {
   "step": "/usr/bin/rsync -a -v --delete --exclude '*.log' src/ dst/",
   "result": "passed"
  },
  {
   "step": "find dst -type f | sort",
   "result": "passed"
  }
 ],
 "next_advice": "Next: Agree with the user on the real source and destination and on whether files missing from the source may be removed. Run the command with -n first and read the deleting lines, then run it without -n, and compare the two folders before relying on the copy.",
 "cautions": {
  "note": "These notes come from the lesson. Some describe failures seen in tests; others are general cautions. Each one is not a separately tested result.",
  "items": [
   "The bundled /usr/bin/rsync needs no install. In the trial on macOS 27.2 (26B123), --version printed \"openrsync: protocol version 29\" and \"rsync version 2.6.9 compatible\".",
   "The same command name may run a different program. When Homebrew rsync is installed, a bare rsync runs whichever comes first in PATH (in the trial /opt/homebrew/bin/rsync came first). Call /usr/bin/rsync by its full path to be sure which one runs.",
   "The -n output has no (DRY RUN) mark at the end, unlike rsync 3.5.0; it looks the same as a real run apart from the byte counts. Read the command line, not the output, to tell them apart.",
   "With -v, a file named in Japanese was printed as escaped bytes (for example \\#227), while the copied file had the right name and content. Symbolic links were listed without their target.",
   "--stats is worded differently from rsync 3.5.0 (Unmatched data instead of Literal data, byte counts with a B suffix and no thousands separators), so a parser written for one does not read the other.",
   "--help does not list every option it accepts; --no-whole-file was not in the list but was accepted and sent 1,510 bytes unmatched and 261,444 bytes matched for a 256 KiB file with 64 changed bytes, like rsync 3.5.0.",
   "As with rsync 3.5.0, the default check is size and modification time: a file changed to other content of the same size and mtime was not copied until -c was given. A missing source exited 23 and still created the empty destination folder.",
   "Only folders on the same machine were tried. ssh, a daemon, owners and permissions across machines, extended attributes and large trees were not tried.",
   "Confirm: Check with /usr/bin/rsync --version which program runs, run with -n first and read every deleting line before using --delete, and compare the destination with the source afterwards."
  ]
 },
 "not_shown": [
  "Not measured in this run: remote transfers (ssh or the rsync daemon), and ownership, permissions or extended attributes between machines.",
  "Not measured in this run: hard links, large trees and speed.",
  "Not measured in this run: copies between the two implementations (one sending, the other receiving).",
  "Not measured in this run: other delete modes (such as --delete-after), --backup, --link-dest, --partial and --progress.",
  "Not measured in this run: how -v prints names with non-Japanese non-ASCII characters or NFD-normalised names.",
  "Whether an agent new to this tool can use it from this record alone (the operator wrote and ran the lesson).",
  "Comparisons between models or clients.",
  "Production use, accounts, or real customer data.",
  "Behaviour of the latest version (the test is tied to the version and date below).",
  "The final \"Next\" step is advice and was not part of the test."
 ],
 "primary_record": "Operator record: a past lesson trial (legacy). It is not claimed to meet level L1 of run-task-contract/0.1.0.",
 "independent_check": {
  "state": "not_checked"
 },
 "evidence": "A non-public test report exists and is not published, so third parties cannot check it directly.",
 "source_version": {
  "record": "the catalog record app:macos-rsync at revision 3ff8f5f3a495",
  "rule": "the revision after which the recorded test stayed unchanged"
 },
 "sources": [
  {
   "fields": [
    "/question",
    "/next_advice",
    "/cautions/items/7",
    "/cautions/items/8"
   ],
   "source": "headlesson editorial judgement",
   "checked": "2026-11-15",
   "certainty": "inferred",
   "by": "editorial"
  },
  {
   "fields": [
    "/steps/0/step",
    "/steps/1/step",
    "/steps/2/step",
    "/steps/3/step",
    "/steps/4/step",
    "/cautions/items/0",
    "/cautions/items/1",
    "/cautions/items/2",
    "/cautions/items/3",
    "/cautions/items/4",
    "/cautions/items/5",
    "/cautions/items/6"
   ],
   "source": "headlesson editorial judgement",
   "checked": "2026-11-15",
   "certainty": "primary",
   "by": "editorial"
  }
 ],
 "corrections": [],
 "withdrawn": null,
 "cite": "headlesson test:kyer3iy — macOS rsync (openrsync) openrsync protocol 29 (macOS 27.2 bundled), 2026-11-15: 5/5 lesson steps passed (operator record). On 2026-11-15, the headlesson operator ran all 5 steps of this lesson with macOS rsync (openrsync) openrsync protocol 29 (macOS 27.2 bundled) (macOS 27.2 (26B123) arm64; existing /usr/bin/rsync (openrsync, protocol version 29); bash -c with each exact step in a fresh empty folder; authored files only; no network), and all passed. The final Next step is advice and was not run. No independent check has been reviewed. This is the operator's own run, not a vendor claim. Sample tested: two self-made small folder trees (text and binary files, a changed file with the same size and time, a subfolder to delete, a symlink, an empty folder and a Japanese file name), local copies only. https://headlesson.com/tests/kyer3iy",
 "page_updated": "2026-11-17"
}
