refactor/single-etc-machine-id #92
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/single-etc-machine-id"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes the byte-level reader disagreement caught during review: - Python readers (clawdie_evidence_lib.read_machine_id and clawdie-live-selfcheck.check_machine_id) now use Path.read_bytes() with re.fullmatch(rb'([0-9a-f]{32})\n?', raw) instead of read_text(), so CRLF and lone CR are no longer translated to LF and accepted. - Shell probe (clawdie-system-probe.collect_machine_id) now validates the raw file bytes (total byte length 32 or 33, exactly 32 ASCII lowercase hex bytes, and if 33 bytes then byte 33 is 0x0a LF) before assigning to any shell variable, so NUL-padded files cannot slip past POSIX command substitution NUL stripping. - Added CRLF, lone CR, NUL+LF, and lone NUL rejection fixtures across all three reader test suites (238/238 checks passing on debby, and verified raw-byte shell validation on FreeBSD 15.1-RELEASE-p7).