Checkpoint B9 (19/11) : réglage de service à « aucun » (trois relectures : régime faux sur deux textes d'auteurs vivants, traces du fichier lu, erreurs de fait dans les fiches « conformes ») ; noindex sur /bibliotheque?fiche= ; cache de la route de fiche à no-cache ; /rag en 301 exigé par le test

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Jules
2026-11-19 08:51:34 +01:00
co-authored by Claude Fable 5.2
parent ef55d20727
commit 6133defb1c
4 changed files with 15 additions and 5 deletions
+2 -2
View File
@@ -108,7 +108,7 @@ if (S && SV) {
const comptes = SV.compterMotifs(lus)
ok(comptes.servis + comptes.rejetes + comptes.gloses + comptes.omises === 119, `socles : 119 = ${comptes.servis} conformes + ${comptes.rejetes} rejetés + ${comptes.gloses} gloses + ${comptes.omises} citations omises`, JSON.stringify(comptes))
ok(comptes.controle_ok >= 107, `contrôleur : ${comptes.controle_ok} sur 119 (107 avant)`, String(comptes.controle_ok))
ok(SV.SERVICE === 'conformes', 'réglage livré : conformes')
ok(SV.SERVICE === 'aucun', 'réglage en ligne : aucun (checkpoint du 19/11 : aucune fiche servie avant correction et lecture)')
const servis = (r) => lus.filter((s) => SV.estServi(s, r)).length
ok(servis('aucun') === 0 && servis('conformes') === comptes.servis && servis('tous') === 119, `réglage : aucun 0, conformes ${comptes.servis}, tous 119`)
ok(SV.reglageEffectif('aucun') === 'aucun' && SV.reglageEffectif('tous') === SV.SERVICE && SV.reglageEffectif('n’importe quoi') === SV.SERVICE && SV.reglageEffectif(undefined) === SV.SERVICE, 'réglage : la variable de build ne peut que fermer')
@@ -195,7 +195,7 @@ if (base && S && SV && ex) {
const sm = await get('/sitemap.xml')
ok(sm.status === 200 && /\/bibliotheque</.test(sm.texte) && !/bibliotheque\/fiche/.test(sm.texte), 'HTTP sitemap : /bibliotheque oui, aucune fiche')
const rag = await get('/rag')
ok([301, 302].includes(rag.status) && /\/bibliotheque$/.test(rag.h.get('location') ?? ''), `HTTP /rag : ${rag.status} vers /bibliotheque`, rag.h.get('location') ?? '')
ok(rag.status === 301 && /\/bibliotheque$/.test(rag.h.get('location') ?? ''), `HTTP /rag : ${rag.status} vers /bibliotheque`, rag.h.get('location') ?? '')
}
console.log(`\n${n - echecs}/${n} OK${echecs ? ` · ${echecs} ÉCHEC(S)` : ''}`)