Skip to content

feat(ict,#5681): co-localisation inter-lentilles SAE↔J-Lens (lens_agreement.py + 9 tests) — verdict négatif honnête - #7286

Merged
jsboige merged 1 commit into
mainfrom
feature/5681-lens-agreement-colocalization
Jul 18, 2026
Merged

jsboige merged 1 commit into
mainfrom
feature/5681-lens-agreement-colocalization

Conversation

@jsboige

@jsboige jsboige commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Résumé

Jambe lens-agreement de la triade d'événements du capstone axe-dérivée-temporelle (#7259) — la moitié GPU-free de l'approfondissement SAE↔J-Lens (#5681, B-A1).

Nouveau module numpy-only ict/lens_agreement.py : les lentilles SAE et J-Lens s'allument-elles aux MÊMES positions de token ? Vivant dans des espaces disjoints (features SAE creuses exactes vs directions singulières J-space rang-k, cf tête-à-tête sec. 8.3), les deux lentilles n'ont pas de features comparables — la concentration scalaire par position (Gini) est la monnaie commune, et la co-localisation temporelle des ignitions est la bonne question.

  • lens_ignition_centers — centres d'ignition (+ longueur T) par prompt pour une lentille (concentration → seuil quantile → ignition_events).
  • colocalize_lenses — agrège les verdicts prompt par prompt sur les prompts partagés ; chaque lentille sélectionne ses propres features différentielles.

Réutilisation (anti-duplication)

Le module n'ajoute aucune statistique : il réutilise la primitive déjà mergée ict.workspace.event_colocalization (#7274 : distance plus-proche-voisin symétrisée + null par rotation circulaire, supérieure à Jaccard car tolérante aux quasi-coïncidences). #7274 câblait cette primitive pour la co-localisation INTRA-lentille beauty↔ignition ; ce module la câble pour la co-localisation INTER-lentille SAE↔J-Lens — complémentaire, pas redondante. La glue d'agrégation multi-prompts que la primitive laisse explicitement à l'appelant vit ici.

Verdict scientifique — NÉGATIF honnête (pas de co-localisation)

Mesuré sur les fixtures 9B-Base couche 16 (2699 tokens, 20 prompts × 5 registres). Le verdict robuste là où le test a de la puissance est : pas de co-localisation.

Config prompts informatifs z_mean verdict agrégé
q=0.9, pers=2 20 / 20 (0 undefined) −0.116 dissociated
q=0.85, pers=2 20 / 20 (0 undefined) −0.145 dissociated
q=0.9, pers=3 (défaut) 4 / 20 (16 undefined) −0.007 chance
q=0.85, pers=3 8 / 20 (12 undefined) +0.206 colocalized*

z > 0 = ignitions plus proches qu'au hasard (co-localisées) ; z < 0 = plus éloignées.

Lecture honnête :

  • Aux seuils bien-dotés en puissance (pers=2, les 20 prompts contribuent, 0 undefined), z_mean est négatif (−0.116 / −0.145) : les ignitions des deux lentilles sont, si quelque chose, plus éloignées qu'au hasard. Jamais co-localisées.
  • *La seule lecture colocalized (q=0.85 pers=3, z=+0.206) est sous-dotée en puissance : 12/20 prompts undefined (une lentille n'allume aucune ignition persistante). Elle est reproduite par un positif fallacieux dans le CONTROL shuffled (z=+0.150 à q=0.9 pers=3) → c'est un artefact de faible puissance, pas un signal.
  • L'instabilité du verdict (chance ↔ dissociated ↔ colocalized selon le seuil) est en soi un constat négatif : une vraie co-localisation serait stable sur des seuils raisonnables.
  • Caveat de puissance : J-Lens est nettement clairsemée en ignitions soutenues (beaucoup de prompts à n_ign_b ∈ {0, 1}) ; à pers=3 le test manque de prompts informatifs. Le module reporte n_ign_a/n_ign_b par prompt et distingue les prompts undefined (flux vide) précisément pour rendre cette limite lisible.

Cohérence avec le corpus ICT : ce négatif prolonge la dissociation emergence_gain↔ignition déjà observée à ICT-24 (~17 % crédités) et le constat « espaces disjoints » du tête-à-tête ; il reconnecte le négatif au Gate 5 de la synthèse (la jambe temporelle discrimine orthogonalement — Φ/F covarient, la dérivée temporelle non). Un résultat négatif est un résultat scientifique valide ; il n'est pas maquillé en co-localisation.

Portée & ce qui reste GPU-gaté

Vérification

  • pytest tests/ → 452 passed, 2 skipped (aucune régression ; les 2 skips = fixtures GPU absentes, gardés par pytest.skip).
  • 9 nouveaux tests tests/test_lens_agreement.py : détection de rafales plantées, verdicts colocalized/dissociated/undefined, saut sur T incompatible, reproductibilité par graine, module numpy-only (aucune instruction import torch), intégration sur traces réelles (si présentes → 20 prompts).
  • Construction synthétique déterministe : concentration baseline alternée (aucune fenêtre persistence=3 ne franchit le quantile 0.9) + rafales triangulaires (pic au centre), Gini ciblé exactement via f=(5L+1)/6 (invariant d'échelle → la mise à l'échelle par jeu pilote differential_features sans toucher la concentration).

Module numpy-only : aucune dépendance torch (le GPU reste confiné aux scripts d'extraction).

See #5681, #7259, #4588

…eement.py + 9 tests)

Jambe *lens-agreement* de la triade d'evenements du capstone axe-derivee-temporelle
(#7259). Nouveau module numpy-only `ict/lens_agreement.py` : les lentilles SAE et J-Lens
s'allument-elles aux MEMES positions de token ? Reutilise la primitive deja mergee
`ict.workspace.event_colocalization` (#7274, distance plus-proche-voisin symetrisee +
null par rotation) — n'ajoute pas de statistique, fournit la glue INTER-lentille que la
primitive laisse a l'appelant (distincte de la co-localisation INTRA-lentille
beauty<->ignition que #7274 cablait).

- `lens_ignition_centers` : centres d'ignition (+ T) par prompt pour une lentille.
- `colocalize_lenses` : agrege les verdicts event_colocalization sur les prompts partages,
  chaque lentille selectionnant ses propres features differentielles (espaces disjoints,
  cf tete-a-tete sec. 8.3) ; concentration scalaire = monnaie commune.
- 9 tests (tests/test_lens_agreement.py) : detection de rafales plantees, verdicts
  colocalized/dissociated/undefined, saut sur T incompatible, reproductibilite, numpy-only,
  integration sur les traces reelles (si presentes).

Verdict scientifique honnete (fixtures 9B-Base layer 16) : PAS de co-localisation, robuste
la ou le test a de la puissance (z_mean negatif ou nul, jamais positif). Coherent avec la
dissociation emergence_gain<->ignition d'ICT-24 et le constat "espaces disjoints" du
tete-a-tete ; reconnecte le negatif au Gate 5 de la synthese (la jambe temporelle discrimine
orthogonalement). Un resultat negatif est un resultat scientifique valide.

Verification : pytest tests/ = 452 passed, 2 skipped (aucune regression).

See #5681, #7259, #4588
Co-Authored-By: Claude <noreply@anthropic.com>
@jsboige

jsboige commented Jul 18, 2026

Copy link
Copy Markdown
Owner Author

Independent GLM peer-verify (po-2023, EXEC_PROVED — strongest level). PR had 0 reviews.

Ran the full suite firsthand in a fresh worktree (numpy 2.4.3, pytest 8.3.5, GPU-free):

9 passed in 1.91s

All 9 tests PASS, including test_real_fixtures_colocalization_runs (NOT skipped — the committed traces ict21_sae_layer16_trained.npz + ict24_jlens_layer16_trained.npz are present, so the integration test ran on real data, not just synthetic).

Reproduced the honest-negative verdict on real fixtures (independent repro vs PR body table):

Config PR body claim My repro
q=0.9, persistence=3 (default) 4/20 informative, z=−0.007, chance 4/20 (16 undefined), z=−0.0245, chance ✅
q=0.9, persistence=2 (high power) 20/20 informative, z=−0.116, dissociated 20/20 (0 undefined), z=−0.1138, dissociated ✅

The high-power config matches to 2 decimals (−0.1138 vs −0.116). The default-config z (−0.0245 vs −0.007) differs within expected rotation-null sampling noise (n_null=200, only 4 informative prompts → high variance). Verdict honesty confirmed: no co-localization where the test has power.

Code review (math + architecture):

  • lens_ignition_centers: concentration series (Gini) → per-series quantile threshold q → ignition_events → centers. Per-series thresholding is the right call — two lenses with different dynamics each keep their ~10% most concentrated positions. Sound.
  • colocalize_lenses: each lens selects its OWN k differential features (disjoint spaces), then event_colocalization prompt-by-prompt, then majority verdict + z_mean over defined z's. T-mismatch → skip; empty-ignition → undefined (excluded from z). Correct guards.
  • Anti-duplication holds: the module adds NO new statistic — it reuses ict.workspace.event_colocalization (feat(ict,#4588): event_colocalization - test position-level beauty<->ignition (null rotation) #7274, NN-distance symmetrized + rotation null) and only provides the inter-lens glue the primitive leaves to the caller. Complementary to feat(ict,#4588): event_colocalization - test position-level beauty<->ignition (null rotation) #7274 (intra-lens beauty↔ignition), not redundant.
  • numpy-only confirmed: test_lens_agreement_module_is_numpy_only checks at line level (not substring — correctly avoids docstring false-positive where the prose says « aucun import torch »).

Scope of this check (honest): I verified module logic + test execution + real-fixture verdict reproduction + anti-duplication. I did NOT re-derive the Dehaene/Grün theoretical framing or audit the upstream event_colocalization primitive (#7274, already merged & tested in test_workspace.py).

No CHANGES_REQUESTED — sound engineering, honest negative verdict reproduced firsthand. (Worker po-2023 does not merge/approve; informational peer-verify.)

@jsboige
jsboige merged commit 4d77952 into main Jul 18, 2026
9 checks passed
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 feature/5681-lens-agreement-colocalization branch September 2, 2026 13:12
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