From 40316d19e78e504977ebf9ae8267de9b9c433491 Mon Sep 17 00:00:00 2001 From: safishamsi Date: Thu, 13 Aug 2026 14:21:56 +0100 Subject: [PATCH] docs(detect): cross-link _MTIME_COARSE_S to cache.py's granularity constant (#2466/#2612) Co-Authored-By: Claude Opus 4.8 (1M context) --- graphify/detect.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graphify/detect.py b/graphify/detect.py index a6ec90aa..ab8e6b01 100644 --- a/graphify/detect.py +++ b/graphify/detect.py @@ -35,7 +35,9 @@ _MANIFEST_PATH = str(out_path("manifest.json")) #: Window in which a manifest row's own timestamp is too close to the file's #: mtime for "mtime unchanged" to prove the content is unchanged. Coarse for #: filesystems that round mtime to whole seconds; tight when real sub-second -#: precision is reported. +#: precision is reported. Mirrors cache.py's `_MTIME_GRANULARITY_NS` (2s) — +#: the same racily-clean assumption at the hash-cache layer (#2466 / #2612); +#: keep the two in sync. _MTIME_COARSE_S = 2.0 _MTIME_SUBSECOND_S = 0.05