Repository navigation
feat(guard,#11044): recalibrate nits organ — cited verdicts no longer flag (+9 regression tests) - #11084
Conversation
…lag as concerns
Measured defect (triage po-2024:CoursIA-2, window 07-14..07-20): 11/64 flagged
signals were positive reviews quoting a verdict they did not emit ("No
CHANGES_REQUESTED", "Verdict : COMMENT_WITHOUT_CONCERNS", "the CHANGES_REQUESTED
reflects a pre-fix state"). An organ crying wolf 17% of the time is an organ
that gets ignored — the exact mechanism by which the 42 real nits slipped
through.
Four calibrated layers, each anchored to named PRs:
- CITERS (occurrence-level citation guard): negation ("No", "Pas de",
"without"), definite-article narration ("the"), hypothetical modals
("would") in the 30 chars before a marker kill that occurrence.
- VERDICT_POSITIVE ("COMMENT_WITHOUT_CONCERNS"): formal verdict overrides
prose concern counts (#7583/#7593 resolution narrations).
- POSITIVE_MARKERS (soft: "SAFE/Safe to merge", "Verdict : OK"): rescue only
bodies with no live concern — mixed Hermes reviews keep flagging.
- New CONCERN_MARKERS "SCOPE FLAG"/"scope mismatch": #7298 was caught only by
accident; the class was invisible. Recovered 7 true positives on 07-18 alone.
Acceptance (falsifiable, per ai-01 Phase 2): the 11 named FPs (#6291 #6699
#6986 #7233 #7243 #7248 #7252 #7284 #7286 #7583 #7593) no longer flag; the 42
NON-LEVE still flag (40 distinct PRs replayed, all >=1 signal kept); founder
#10761 still flags (2 signals). End-to-end audit 07-14..07-20 (saturated 400,
07-18->07-20): 26 -> 25 flagged, -8 FP, +7 genuine SCOPE FLAGs.
Tests: 13 -> 22 (FP classes, mixed-review and emitted-verdict guards).
Co-Authored-By: Claude-Code <noreply@anthropic.com>
|
G-VAR-2/3 GENRE signals (advisory, non bloquant, #10020).
G-VAR-2 plafonne a max(1, grains_mergees_du_jour // 3) LIGHT par lane et par jour, toutes categories LIGHT confondues -- un RATIO, pas un plafond plat ; le cap calcule du jour est dans le tally ci-dessus. G-VAR-3 interdit deux genres LIGHT consecutifs. Les signaux ci-dessus rendent le fait VISIBLE (labels |
|
G-VAR-2 light cap reached (advisory, non bloquant). |
There was a problem hiding this comment.
[Hermes] recalibrate nits organ #11084 — review structural
Approche de vérification : lecture complète du diff (+177/-4, prod +75, tests +102) + analyse des interactions entre couches.
Ce qui est solide :
- Acceptation falsifiable rejouée sur 51 PRs (avant/après via
git show HEAD:) : 11 FP unflagged, 40 NON-LEVE toujours flaggés. C'est l'artefact de vérification réel qui manque à la plupart des recalibrations — pas juste des tests unitaires sur corpus de synthèse. - Garde-fous anti-surcorrection présents et nommés : review mixte Hermes (
[COMMENT_WITH_CONCERNS]émis + « Safe to merge » de conclusion) reste flaggée (#6849/#6852/#7704) ; incident fondateur #10761 flagge toujours ;CHANGES_REQUESTEDréellement émis flagge toujours (test dédié). La correction ne vide pas l'organe de sa substance. - Le recall augmente aussi : +7 vrais positifs SCOPE FLAG récupérés (classe de concern auparavant invisible), pas seulement -8 FP. Précision ET recall au lieu d'un simple desserrage.
- Ordre des couches dans
classify()relu : le checkVERDICT_POSITIVEpasse avant la branche AGENT_PREFIXES → un verdict positif formel décharge même un body bot-taggué. Cohérent avec #11083.
△ 2 remarques (non-bloquantes) :
CITERScontient « the » : « The CHANGES_REQUESTED from ai-01 was addressed » est correctement mort (narration), mais « the concern is real about X » ferait aussi mourir un « CONCERNS » cité — mineur, la fenêtre 30 chars limite la casse.POSITIVE_MARKERSmatche « Verdict : OK » viahas_live_marker— mais « Verdict : OK sauf le point 3 » vivrait comme approbation souple. Dans la pratique des verdicts cluster, « OK » nuancé s'écrit « COMMENT_WITH_CONCERNS », donc risque faible.
LGTM structurel — l'acceptation falsifiable rejouée + les garde-fous anti-surcorrection rendent la correction vérifiable, pas juste plausible.
… FNs #594/#590) Window 04-23..04-30 triage (Epic #11044) exposed 2 false negatives: PRs merged with zero lift while reviews demanded 'issues that should be addressed before merge' (#594) and 'CRITICAL - Must fix before merge' (#590). 'avant merge' was already a marker; its English mirror was not. One marker covers both FNs. Acceptance re-run: 11 FP unflagged, 40 NON-LEVE still flagged, both FN PRs now flag, 24/24 tests. Co-Authored-By: Claude-Code <noreply@anthropic.com>
|
Extension livree (commit a022788) suite au triage de la fenetre 04-23..04-30 sur #11044 : 2 faux NEGATIFS mesures (PR #594, #590 — reviews « should be addressed before merge » / « CRITICAL — Must fix before merge », merges sans aucune levee, 0 commentaire, 0 commit post-review). L'organe avait le marqueur francais « avant merge » mais pas son miroir anglais. Ajout : marqueur Acceptance re-jouee apres ajout :
Note methodologique : la fenetre 04-23..04-30 avait rendu 0 flag par l'organe — c'est le sanity-check des comptages reviews (60/99 sans review, 39 avec) qui a revele les 2 FN. Leçon pour les tranches suivantes : un 0-flag ne se rapporte jamais sans verification de sanite quand des reviews substantielles existent. |
…#748) Window 05-01..05-07 triage (Epic #11044): PR #748's flagged signals were the retraction itself - 'CORRECTION - Previous CHANGES_REQUESTED was incorrect... Revised verdict: APPROVE' plus the bot's 'APPROVE - previous CHANGES_REQUESTED retracted'. 'previous' can only narrate a past demand, never issue one. Acceptance re-run: 11 FP unflagged, 40 NON-LEVE still flagged, #748 unflagged, FN corpus #594/#590 and the 5 FLAG-OK of the window still flagged, 25/25 tests. Co-Authored-By: Claude-Code <noreply@anthropic.com>
|
2e extension livree (commit 138494a) suite au triage 05-01..05-07 sur #11044 : nouvelle classe FP — la retraction narree. PR #748 : les 2 signaux flagges etaient la retraction elle-meme (« CORRECTION — Previous CHANGES_REQUESTED was incorrect... Revised verdict: APPROVE » + bot « APPROVE — previous CHANGES_REQUESTED retracted »). Ajout : Acceptance re-jouee : 11 FP unflagged / 40 NON-LEVE flagged / #748 deflagge / FN #594-#590 et les 5 FLAG-OK de la fenetre (773, 718, 714, 651, 537) toujours flagges / 25 tests. FP accepte non-mecanise : « needs rebase before merge » (#729) — demande procedurale satisfaite par le merge reussi ; discriminer generiquement couterait plus de recall que le bruit (1 cas / ~360 PRs ce cycle). Convergence a noter avec les 4 durcissements proposes par po-2025 sur #11044 (comment 5303299755) — le fix |
…tale/needs rebase) 18 flags / 249 PRs triaged on #11044. 11 FLAG-OK (0 DEFECT-ALIVE on main), 7 FLAG-FP of which 3 mechanized as CITERS: - "pas": FP #860 « **COMMENTED** (pas CHANGES_REQUESTED) » — French negation without « de » (bare form not covered by "pas de"). - "stale": FP #977 « pending dismissal of stale CHANGES_REQUESTED » — re-review request narrating a past reserve. - "needs rebase": FP #887 « CONFLICTING — needs rebase before merge » — procedural demand satisfied by the merge itself (recidive of #729, window 05-01..05-07, retroactively covered). Acceptance: 28 tests pass; harness replays 51 corpus PRs — 11 FP unflagged, 40 NON-LEVE still flagged. Co-Authored-By: Claude-Code <noreply@anthropic.com>
…5-15..05-21 8 flags / 194 PRs triaged on #11044. 6 FLAG-OK (1 DEFECT-UNMEASURED visual QA #1253, rest DEFECT-NONE), 2 FLAG-FP: - #1247 « Si Static validation rouge → CHANGES_REQUESTED » : conditional future verdict. An arrow immediately before a marker is a derivation, never an emission — handled in _is_cited (not CITERS) since the arrow is not a word. - #1138 « Awaiting ... review before merge » : procedural note, accepted as residual FP (the awaited review flags on its own concerns). Acceptance: 30 tests pass; harness replays 51 corpus PRs — 11 FP unflagged, 40 NON-LEVE still flagged. Co-Authored-By: Claude-Code <noreply@anthropic.com>
…+ attribution citers, APPROVED re-review lift Window 05-29..06-04 triage (509 PRs, 61 flagged, 61 bodies read): 4 FLAG-FP classes mechanized, each grounded in a named PR: - CITERS "re": « ## Re: CONCERNS ... **Fixed.** » (#1839) — the marker is the SUBJECT of a response header, never a new emission. Bare form: the window normalizer strips trailing punctuation, colon included. - CITERS "per" + "precedent": attribution of a PAST reserve in a fix report (« Per ai-01 CHANGES_REQUEST: ... » #2363; « du precedent review (CHANGES_REQUESTED sur commit c506d04) » #1958). - _is_cited attribution-filler rule: a citer followed by exactly ONE word before the marker is still narration (« Per ai-01 CHANGES_REQUESTED », « Stale Hermes CHANGES_REQUESTED was... » #2006). An emission never crosses it: it writes « MARKER: » bare or passes via review state. - analyse(): a re-review with state APPROVED is a lift time (#1958) — the native GitHub state carries the verdict even when the body narrates the old one and contains no lift word. COMMENTED re-reviews that re-emit (« NOT FIXED », #2298) lift nothing; anti-retroactivity borne preserved. Tests 33 -> 42: 6 classification corpus tests (4 FP shapes + 2 overcorrection guards) + 3 analyse-level lift tests (APPROVED lifts, COMMENTED NOT FIXED does not, APPROVED before the concern does not). Acceptance #11045 replayed on both organ versions: 15 FP PRs unflagged (incl. window's #1839 #2363 #2006 #1958), 44 NON-LEVE PRs still flagged (incl. #2375 #2068 #2216 #2298), 59 PRs replayed, signal-by-signal diff. See #11044 (triage report window 05-29..06-04), #11045 (organ), PR #11084. Co-Authored-By: Claude-Code <noreply@anthropic.com>
Summary
Recalibration du garde-fou nits (
scripts/check_unaddressed_nits.py, #11045 / Epic #11044 Phase 2). Le défaut mesuré (triage po-2024:CoursIA-2, fenêtre 07-14..07-20, confirmé autoritaire par ai-01) : 11/64 signaux flaggés étaient des reviews POSITIVES citant un verdict qu'elles n'émettaient pas — « No CHANGES_REQUESTED », « Verdict : COMMENT_WITHOUT_CONCERNS », « the CHANGES_REQUESTED reflects a pre-fix state ». Un organe qui crie au loup 17% du temps est un organe qu'on finit par ignorer — précisément le mécanisme par lequel les 42 vrais nits NON-LEVE ont pu glisser jusqu'au merge.Design — 4 couches calibrées, chacune ancrée à des PRs nommées
CITERS(garde d'occurrence,_is_cited/has_live_marker)...unchallenged by me.\n\nNo CHANGES_REQUESTED)VERDICT_POSITIVE=COMMENT_WITHOUT_CONCERNSPOSITIVE_MARKERS(souples : « SAFE for merge », « Safe to merge », « Verdict : OK »)CONCERN_MARKERS« SCOPE FLAG » / « scope mismatch »Acceptation falsifiable (définition ai-01, verbatim)
Résultat mesuré — harnais rejouant
analyse()sur l'organe AVANT (git show HEAD:) vs APRÈS (working tree), 51 PRs distinctes :(40 = 42 entrées moins #7094/#7284 comptées deux fois dans le triage original ; chaque NON-LEVE conserve >=1 signal bloquant.)
Garde-fous additionnels :
[COMMENT_WITH_CONCERNS]).--audit --limit 400 --search "merged:2026-07-14..2026-07-20"(saturé à 400, couverture effective 07-18→07-20) : 26 → 25 flaggés dans la plage couverte, dont -8 FP et +7 vrais positifs SCOPE FLAG (forensics accents-wave fix(probas,#2876): restore French accents in DecPyMC-7-Sequential markdown (301 cures, 61 cells) #7143 fix(z3,#2876): restore FR accents in Z3-Python-04-Strings-Regex markdown (243 cures, 31 cells) #7150 fix(z3,#2876): restore FR accents in Z3-Python-06-Advanced-Optimization markdown (152 cures, 25 cells) #7154 fix(search,#2876): restore FR accents in Search-9-LinearProgramming markdown (224 cures, 40 cells) #7159 fix(sudoku,#2876): restore FR accents in Sudoku-18-Comparison-Python markdown (200 cures, 50 cells) #7162 fix(gametheory,#2876): restore FR accents in GameTheory-11-BayesianGames markdown (172 cures, 43 cells) #7167 fix(sudoku,#2876): restore French accents in Sudoku-8-HumanStrategies-Python markdown (112 cures, 36 cells) #7179). Le recall augmente, pas seulement la précision.CHANGES_REQUESTEDréellement émis continue de flagger (test dédié).Tests
13 → 22 (
pytest scripts/tests/test_check_unaddressed_nits.py, 22/22 vert) : chaque classe de FP a son test de régression citant ses PRs d'origine, plus les gardes-fous Hermes-mixte / gate-avant-merge / verdict-émis.Scope
Voir #11044 (contribution partielle à l'Epic — la Phase 2 de #11045). Aucun autre fichier touché.
Grain: MED/guard — lane myia-po-2023:CoursIA — prev: MED/notebook-python #11075
Co-Authored-By: Claude-Code noreply@anthropic.com