In src/rosetta-cli/rosetta_cli/services/document_data.py, non-text content contributes only its byte length to content_hash, so different binary files of the same size are treated as unchanged and skipped during publish. Hash the raw bytes or a deterministic byte digest for binary files, and add an equal-size replacement regression test.
In
src/rosetta-cli/rosetta_cli/services/document_data.py, non-text content contributes only its byte length tocontent_hash, so different binary files of the same size are treated as unchanged and skipped during publish. Hash the raw bytes or a deterministic byte digest for binary files, and add an equal-size replacement regression test.