Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs(review): clarify the staleness over-flag is the deliberate never-under-flag tradeoff (#1345)

Adam Eivy874ff544f5b0
diff --git a/server/services/pipeline/editorial/checkRunner.js b/server/services/pipeline/editorial/checkRunner.js
index 1c5680fbca..57b0d38a0e 100644
--- a/server/services/pipeline/editorial/checkRunner.js
+++ b/server/services/pipeline/editorial/checkRunner.js
@@ -40,9 +40,13 @@ import { canonicalStringify } from '../../../lib/objects.js';
// synced finding isn't falsely flagged stale after an import re-orders keys.
//
// NOTE: the input set is derived from `needsManuscript` + a fixed series field
-// set, NOT a per-check source declaration — a future check that reads a different
-// series/context field must extend these segments (per-check source deps: #1387).
-// NUL separates the segments so they can't run together ambiguously.
+// set, NOT a per-check source declaration — so editing the style guide or ticking
+// clock marks ALL findings in that segment stale, not only the checks that read
+// it. That over-flag is the deliberate SAFE direction (never under-flag): a check
+// added later that reads `styleGuide` still auto-stales, whereas a per-check
+// allow-list would silently false-fresh it. Precise-and-safe scoping via declared
+// per-check sources is tracked in #1387. NUL separates the segments so they can't
+// run together ambiguously.
const HASH_SEP = '\u0000';
const sha256 = (text) => createHash('sha256').update(text || '').digest('hex');
function computeSourceHashes(manuscript, canon, series) {