diff --git a/config/anchor-churn-allowlist.json b/config/anchor-churn-allowlist.json index c6445f1..b8b90be 100644 --- a/config/anchor-churn-allowlist.json +++ b/config/anchor-churn-allowlist.json @@ -7,5 +7,8 @@ "archicrat-ia/chapitre-4/index.html": "Reset intentionnel des ancres après réimport DOCX et stabilisation doctrinale substantielle du chapitre 4 depuis la source officielle. Site neuf, sans annotations ni compatibilité descendante à préserver.", "archicrat-ia/chapitre-5/index.html": "Reset intentionnel des ancres après réimport DOCX et stabilisation doctrinale substantielle du chapitre 5 depuis la source officielle. Site neuf, sans annotations ni compatibilité descendante à préserver.", "archicrat-ia/conclusion/index.html": "Reset intentionnel des ancres après réimport DOCX et révision substantielle de la conclusion depuis la source officielle. Site neuf, sans annotations ni compatibilité descendante à préserver." + }, + "accepted_prefixes": { + "glossaire/": "Reset intentionnel des ancres après révision substantielle des fiches paradigmes et doctrines du glossaire. Site neuf, sans annotations ni compatibilité descendante à préserver." } } diff --git a/scripts/check-anchors.mjs b/scripts/check-anchors.mjs index 65f8e59..a75cb52 100644 --- a/scripts/check-anchors.mjs +++ b/scripts/check-anchors.mjs @@ -211,11 +211,7 @@ function diffPage(prevIds, curIds) { const prevN = prevIds.length || 1; const churn = (added.length + removed.length) / prevN; const removedRatio = removed.length / prevN; - const acceptedReason = - ACCEPTED_RESETS[p] || - (ACCEPT_GLOSSARY_RESETS && p.startsWith("glossaire/") - ? "Reset intentionnel des ancres du glossaire après refonte éditoriale substantielle." - : null); + const acceptedReason = acceptedResetReasonForPage(p); console.log( `~ ${p} prev=${prevIds.length} now=${curIds.length}` +