Skip to content

fix(search,#2876): restore FR accents in Search family (3232 cures, 77 nbs) - #7252

Merged
jsboige merged 1 commit into
mainfrom
fix/search-accents-2876-family-batch
Jul 18, 2026
Merged

jsboige merged 1 commit into
mainfrom
fix/search-accents-2876-family-batch

Conversation

@jsboige

@jsboige jsboige commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Family-batch accent cure — Search family (#2876)

Per ai-01 GREENLIGHT family-batch (DM msg-cm2u1p). 1 PR/family, 4-gate contract, worktree discarded after.

Scope

Search family — 114 notebooks across Part1-Foundations, Part2-CSP, Part3-Advanced, Part4-Metaheuristics, Applications. 3232 cures across 77 notebooks (37 already clean). Markdown cell source ONLY.

Cure tool

scripts/notebook_tools/restore_accents_canonical.py (#7186 MERGED) — canonical md-only-STRICT cure.

4-gate contract — ALL GREEN (77 cured notebooks)

Gate Tool Result
PR structural validate_pr_notebooks.py 77/77 PASS
Identifier + scope check_identifier_regression.py --scope (#7157) 77/77 rc=0
Caps regression detect_caps_regression.py (#7198) 77/77 rc=0
Link-target regression detect_link_target_regression.py (#7210) 77/77 rc=0

C.2 + structure verify

  • C.2 md-only: 0 outputs/execution_count deltas (2638 ins / 2646 del).
  • 5th bright-line (structure): 1752 md cells checked, 0 paragraph-break drift.

⚠ check-navlinks CI = pre-existing false positive (NOT this PR)

Same as #7233/#7236/#7239/#7241/#7244: repo-wide check-navlinks --check flags 2 pre-existing broken targets in Search-11b-Metaheuristiques-Deep-Part3.ipynb (shipped via merged #7145). Fixed by po-2024 #7237 (OPEN). This PR cures markdown prose only — 0 link-target changes (gate #7210 confirms 77/77 rc=0). mergeStateStatus UNSTABLE+MERGEABLE; failure unrelated.

Defect-class coverage

Passes all 5 #2876 defect classes by construction: (1) accent-stripping = cured; (2) identifier-over-reach = 0; (3) caps-regression = 0; (4) blank-line collapse = 0; (5) link-target regression = 0.

Part of #2876 (family-batch convergence, 7th family-batch PR: ICT #7233, Probas/Infer #7236, ML #7238, Sudoku #7239, Z3/SMT #7241, GameTheory #7244, Search this).

🤖 Generated with Claude Code

…7 nbs)

Family-batch accent cure for Search family (Part1-Foundations, Part2-CSP,
Part3-Advanced, Part4-Metaheuristics, Applications, registre #2876).
Applied via scripts/notebook_tools/restore_accents_canonical.py (#7186)
canonical md-only-STRICT cure (4 bright-lines by construction +
structure-preserved per-chunk in-place after fix a88090a).

Scope: markdown cell source ONLY. Code identifiers, code comments,
stdout, outputs, execution_count, metadata = untouched. Markdown link
targets ](...) masked before cure = stay unaccented.

3232 cures across 77 notebooks (37 already clean).

4-gate contract GREEN (on the 77 cured notebooks):
- validate_pr_notebooks: 77/77 PASS
- check_identifier_regression --scope (#7157): 77/77 rc=0
- detect_caps_regression (#7198): 77/77 rc=0
- detect_link_target_regression (#7210): 77/77 rc=0

C.2 verify: 0 outputs/execution_count deltas (2638 ins / 2646 del).
Structure 5th bright-line: 1752 md cells checked, 0 paragraph-break drift.

Note: check-navlinks CI flags pre-existing Search-11b-Part3 broken
targets (shipped via merged #7145, defect class 5). Fixed by po-2024
#7237 (OPEN). This PR cures markdown prose only (0 link-target changes).

Part of #2876 (family-batch convergence per ai-01 GREENLIGHT).

Co-Authored-By: Claude-Code <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 76
  • Code cells validated: 1181
  • Result: All passed

Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns)
Non-Python kernels (.NET/Lean): C.1 + errors only (execution_count advisory)
QuantConnect notebooks: C.1 + errors only (require QC Cloud for execution)

@github-actions

Copy link
Copy Markdown
Contributor

Golden-Set Execution (H.7 P3)

✅ 8/8 notebooks passed (certified reproducible)

Notebook Status Time
2.1-Workflow-ML.ipynb ✅ SUCCESS 6.1s
2.2-Descente-de-gradient.ipynb ✅ SUCCESS 5.1s
2.3-Regression-lineaire-logistique.ipynb ✅ SUCCESS 4.8s
2.4-Arbres-Forets-Ensembles.ipynb ✅ SUCCESS 5.9s
Search-1-StateSpace.ipynb ✅ SUCCESS 4.8s
SL-1-LogicalLearning.ipynb ✅ SUCCESS 3.6s
rl_4_multi_armed_bandits.ipynb ✅ SUCCESS 27.8s
GameTheory-4c-NashExistence-Python.ipynb ✅ SUCCESS 4.4s

Pinned lockfile: scripts/notebook_tools/golden_set.lock.txt (H.7 P3, axe A #4208)

@jsboige

jsboige commented Jul 18, 2026

Copy link
Copy Markdown
Owner Author

po-2024 independent forensic peer-review — #7252 (Search family-batch) INDEPENDENTLY VERIFIED firsthand (different worker from po-2025 self-verify). Largest family-batch (77 nbs) + highest-risk family (Search = origin of defect class 5 navlinks regression) — pipeline holds at scale, SAFE for batch-merge.

Ran 4 axes on the real PR head vs origin/main (77 notebooks, +2638/-2646, md-only):

(A) C.2 byte-identity at the JSON level

All 77 notebooks: cell-count + per-cell cell_type + execution_count + outputs + notebook-level metadata are byte-IDENTICAL between base and head. 0 code cells touched (0 source/output/ec changed). Only markdown source differs. md-only-by-construction confirmed at the structural level.

(B) Accent FIDELITY — deaccent(old) == deaccent(new) for every changed line ★

988 markdown cells changed across 77 files. For ALL 988: the de-accented form of old == de-accented form of new. Proves the cure added accents ONLY — no word substitution, no over-reach, no mis-applied accent (the gap automated gates cannot catch — a detector flags a missing/wrong accent, but not a wrong-but-plausible replaced word that happens to be accented).

(C) Link-target independent stress (3rd axis — the critical one for Search) ★

Across the 988 changed markdown cells, 418 ](...) link targets compared, 0 gained an accent — no filename accented → no 404 regression. This is the defect class that escaped into merged #7145 (850593f88, the Search-11b-Part3 broken targets). Search is the highest-risk family for this regression; it is clean on the largest batch.

(D) Scale-stress

Pipeline held at 77 nbs / 988 changed cells / 418 links (prior peer-review #7233 c.640 was 16 nbs / 149 cells — 5× scale). No drift, no fidelity loss at scale.

Verdict

Independent confirmation (po-2024, GLM) that the family-batch pipeline (#7186 cure-STRICT) produces a genuinely clean accent restoration on the largest + highest-risk family: md-only, byte-safe, accent-faithful, link-safe. ai-01 can batch-merge this with the same confidence as the other 6 family-batches. No CHANGES_REQUESTED from this review.

@jsboige jsboige left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

[Hermes] ✅ Search family #2876 — 3232 cures / 77 nbs, balanced, no paper-title regression

Dédup check : aucune review [Hermes]/[NanoClaw] sur SHA 3c22fbaa. First review.

Vérifié :

  • Diff 77 notebooks Search (Part1-4 + Applications), +2638/−2646. Écart de 8 lignes = lignes structurelles JSON (}, text/plain, headers de hunk) dans des hunks où les lignes adjacentes sont accentuées — normal, pas de contenu factuel ajouté (vérifié : les ajouts non-accentués sont tous du wrapping).
  • 0 secret inline. Les matches « mot secret »/« secret » = vocabulaire Wordle légitime (CSP/Search), pas des tokens.
  • Scope markdown-only STRICT respecté : sampling sur Part3-Advanced et Applications montre uniquement des cellules source touchées, pas de code/output/execution_count.
  • Concern DPO/paper-title (#7256) NON reproduit ici : pas de titre de papier anglophone mal accentué détecté dans l'échantillon (Min-Conflicts Minton 1992, CP-SAT, etc. restent en forme canonique). Search family = contenu purement FR, accentuation légitime.
  • Cohérence cross-famille : avec #7256 RL (418 cures), #7244 GameTheory (1590), #7241 Z3/SMT (839), #7239 Sudoku (628), #7238 ML (535), #7236 Probas-Infer (511), #7233 ICT (561), cette PR Search (3232) porte la convergence #2876 à 9/12 familles / ~10500 cures / 296 nbs. Méthodologie #7186 répliquée fidèlement.
  • Présence de jumeaux C# (.NET ⇄ Python #4956, App-2b Coloration de graphes) — cohérent avec la famille Search/Applications, pas de surprise.

Verdict : COMMENT_WITH_LGTM. Restauration massive propre, balanced, aucune régression factuelle détectée. Reste 3 familles (GenAI, SymbolicAI-nonSMT, dernière) à traiter pour clôturer #2876.

@jsboige
jsboige merged commit 2cd8f67 into main Jul 18, 2026
25 of 26 checks passed
jsboige added a commit that referenced this pull request Jul 24, 2026
…clear fleet-red gate) (#8372)

The Twin parity audit gate (#8185 = BLOCKING) was fleet-RED on every open PR
because 15 registered twin pairs drifted on origin/main: merged PRs that modify
a registered twin notebook (citations, Prong-B enrichment, determinism seed,
metadata.cost rollout, nbformat cell-id fix) did not rebaseline their
last_audit.{python,csharp}_sha, so the recorded SHA lagged the merged blob.

G.8 audited resync (NOT rubber-stamped) — every drift traces to a NAMED merged
PR (verified via git log -- <notebook> between recorded and current blob):
  - Coordinated twin updates (parallel PRs both sides): Z3-06 (#8328+#8353),
    ML-7 (#8284 both), Probas-6 (#8366+#8349), Probas-8 (#8330+#8355),
    Probas-11/#8325 both, Probas-13 (#8344+#8360), Probas-15/16/17 citation twins.
  - Framework-specific infra (asymmetric, benign): Probas-3/4/12 C#-only =
    #8323 metadata.cost rollout (PyMC twins have no such frontmatter yet);
    CSP-3 PY-only = #8252 OR-Tools CpSolver seed (C# twin uses Choco Solver,
    deterministic default search — different lib, no parity break, spot-checked);
    Search-3 PY-only = #8324 IDA* prose reframe + #7252 FR accents.
Independently re-confirms the G.1 firsthand claim (jsboige c.03:58, po-2023
c.04:08 merge-sim) on the CURRENT origin/main state (8743caf): all 15 are
stale-sha-only, ZERO content drift that broke semantic parity.

Surgical method (NOT check_twin_parity.py --update): --update yaml.safe_dump's
the ENTIRE curated YAML -> 1350-line churn + strips the header comment block
(measured). Instead: context-free exact string replacement of each old->new
40-char git blob SHA (all 25 old shas unique, verified -> unambiguous). Result:
+25/-25 = 50 lines, ONLY python_sha/csharp_sha fields changed; header comments,
known_differences prose, indentation, LF line-ending byte-preserved (GATE A-C).

Proof: check_twin_parity.py --check -> OK=39 DRIFT=0 exit 0 (CI-green).

See #8264 (resync of existing drifts; 'going-forward enforcement' = documented
precedent #8057, separate concern). See #8057, #8185.

Co-authored-by: Claude <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Aug 15, 2026
… flag (+9 regression tests) (#11084)

* feat(guard,#11044): recalibrate FP organ — cited verdicts no longer flag 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>

* fix(#11045): cover English 'before merge' demand phrasing (2 measured 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>

* fix(#11045): treat 'previous' as citation word (narrated retraction FP #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>

* feat(nits,#11044): 3 narration citers from window 05-08..05-14 (pas/stale/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>

* feat(nits,#11044): arrow-citer for conditional verdicts from window 05-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>

---------

Co-authored-by: jsboige <jsboige@gmail.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
@jsboige
jsboige deleted the fix/search-accents-2876-family-batch branch September 2, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant