Skip to content

feat(guard,#11044): recalibrate nits organ — cited verdicts no longer flag (+9 regression tests) - #11084

Merged
jsboige merged 5 commits into
mainfrom
fix/11045-recal-fp-organ
Aug 15, 2026
Merged

jsboige merged 5 commits into
mainfrom
fix/11045-recal-fp-organ

Conversation

@myia-po-2023

Copy link
Copy Markdown
Collaborator

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

Couche Rôle Ancres
CITERS (garde d'occurrence, _is_cited/has_live_marker) Une occurrence de marqueur meurt si un mot de citation la précède immédiatement (fenêtre 30 chars, frontière de mot alnum — couvre les frontières newline) : négations (« no », « pas de », « sans », « without »), article défini narratif (« the »), modaux hypothétiques (« would », « could », « might », « aurait ») FP #6986 #7233 #7252 #7284 #7286 (y compris le cas ...unchallenged by me.\n\nNo CHANGES_REQUESTED)
VERDICT_POSITIVE = COMMENT_WITHOUT_CONCERNS Verdict structurel positif formel : l'emporte sur toute prose de compte (son propre préfixe « WITH_ » rend le CONCERNS embarqué mort par construction) FP #7583 #7593 (narrations de résolution « 2 CONCERNS... addressed les deux... Verdict : COMMENT_WITHOUT_CONCERNS »)
POSITIVE_MARKERS (souples : « SAFE for merge », « Safe to merge », « Verdict : OK ») Ne ressaussissent un commentaire que s'il ne porte AUCUNE réserve vivante FP #6291 #6699 #7248 ; NON-LEVE #6849 #6852 #7704 restent flaggés (Hermes mixtes : verdict [COMMENT_WITH_CONCERNS] émis + « Safe to merge » de conclusion)
Nouveaux CONCERN_MARKERS « SCOPE FLAG » / « scope mismatch » #7298 n'était attrapé que par accident (via un marqueur nié) ; la classe de concern était invisible de l'organe NON-LEVE #7298 flaggé pour la bonne raison + 7 vrais positifs récupérés sur le seul 07-18

Acceptation falsifiable (définition ai-01, verbatim)

« acceptation falsifiable = les 11 FP nommés (#6291 #6699 #6986 #7233 #7243 #7248 #7252 #7284 #7286 #7583 #7593) ne flaggent plus, et les 42 NON-LEVE flaggent toujours »

Résultat mesuré — harnais rejouant analyse() sur l'organe AVANT (git show HEAD:) vs APRÈS (working tree), 51 PRs distinctes :

ACCEPTANCE OK: 11 FP PRs unflagged, 40 NON-LEVE PRs still flagged (51 PRs replayed)

(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 :

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

…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>
@github-actions github-actions Bot added variation-tier-inflation declared LIGHT << effective LIGHT-genre (#10020, advisory) variation-genre-cap-exceeded light_genre > cap partage G-VAR-2 (#10020, advisory) labels Aug 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

G-VAR-2/3 GENRE signals (advisory, non bloquant, #10020).
La lane `myia-po-2023:CoursIA` voit ces signaux actifs sur les mergees du jour (UTC 2026-08-15) :

  • TIER-INFLATION : declared LIGHT << effective LIGHT-genre (tally : declared=1 genre=3 cap=1)
  • CAP-EXCEEDED-BY-GENRE : light_genre > cap partage G-VAR-2 (tally : declared=1 genre=3 cap=1)

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 variation-tier-inflation, `variation-genre-run`, `variation-genre-cap-exceeded`, `variation-genre-mismatch`) -- la decision de merge reste au coordinateur.

@github-actions github-actions Bot added the variation-light-cap-reached Lane ayant deja merge une LIGHT aujourd'hui (cap G-VAR-2 atteint) label Aug 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

G-VAR-2 light cap reached (advisory, non bloquant).
La lane myia-po-2023:CoursIA a deja consomme son budget LIGHT du jour (#? (merge a ?)).
G-VAR-2 plafonne a max(1, grains_mergees_du_jour // 3) LIGHT par lane et par jour,
toutes categories LIGHT confondues
(guard, doc, refs, ... partagent un seul budget) :
c'est un RATIO, pas un plafond plat. La decision de merge reste au coordinateur.

@jsboige jsboige left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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 :

  1. 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.
  2. 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_REQUESTED réellement émis flagge toujours (test dédié). La correction ne vide pas l'organe de sa substance.
  3. 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.
  4. Ordre des couches dans classify() relu : le check VERDICT_POSITIVE passe 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) :

  • CITERS contient « 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_MARKERS matche « Verdict : OK » via has_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>
@myia-po-2023

Copy link
Copy Markdown
Collaborator Author

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 "before merge" (seule addition — couvre les 2 FNs) + 2 tests de regression cites #594/#590.

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>
@myia-po-2023

Copy link
Copy Markdown
Collaborator Author

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 : previous dans CITERS (un mot qui ne peut que narrer une reserve passee) + test cite #748.

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 previous couvre une sous-partie de leur axe « supersession ».

jsboige and others added 2 commits August 15, 2026 20:04
…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>
@jsboige
jsboige merged commit 0881750 into main Aug 15, 2026
26 checks passed
jsboige added a commit that referenced this pull request Aug 15, 2026
…+ 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

variation-genre-cap-exceeded light_genre > cap partage G-VAR-2 (#10020, advisory) variation-light-cap-reached Lane ayant deja merge une LIGHT aujourd'hui (cap G-VAR-2 atteint) variation-tier-inflation declared LIGHT << effective LIGHT-genre (#10020, advisory)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants