Skip to content

Fix(notebook,#14122): purge du UserWarning ADK [EXPERIMENTAL] de Lab16 -- re-execution complete sous google-adk 2.14.0 - #25397

Merged
myia-ai-01 merged 2 commits into
mainfrom
fix/14122-lab16-adk-warning
Nov 10, 2026
Merged

myia-ai-01 merged 2 commits into
mainfrom
fix/14122-lab16-adk-warning

Conversation

@jsboige

@jsboige jsboige commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Grain: MED/notebook-python — lane myia-po-2028:CoursIA — prev: MED/notebook-python #25313

See #14122 (sous-grain : carnet 07-Agent-Orchestration/Day7-Production/Lab16-Data-Science-Agent.ipynb, ligne « Lab16 — 1 UserWarning » du census de l'EPIC).

Ce que la PR livre

Ré-exécution complète de Lab16 qui purge le dernier UserWarning de la série 07-Agent-Orchestration (census de l'EPIC : 1 → 0 sur ce carnet). Aucune cellule source n'est modifiée : le livrable est le rafraîchissement des sorties par exécution réelle.

Diagnostic de la cause (warning ADK)

  • Le warning committé sur main : UserWarning: [EXPERIMENTAL] feature FeatureName.JSON_SCHEMA_FOR_FUNC_DECL is enabled, émis par google/adk/tools/transfer_to_agent_tool.py:72 (cellule 21, execution_count 9). La ligne portait aussi un placeholder <USER_PATH> — la disparition de la ligne entière retire le placeholder avec elle.
  • Vérifié dans google-adk 2.14.0 installé (_feature_registry.py) : JSON_SCHEMA_FOR_FUNC_DECL: FeatureConfig(FeatureStage.STABLE, default_on=True) — la feature a gradué STABLE, et le module transfer_to_agent_tool.py n'émet plus aucun warning dans cette version (grep EXPERIMENTAL|warn : 0).
  • Verdict : warning émis par la bibliothèque, pas par le carnet (aucun feature-flag activé à la main dans les sources). La cause meurt avec la version d'ADK ; la ré-exécution sous l'ADK courant purge la sortie sans filtre ni édition manuelle.

Exécution réelle (preuve)

  • Papermill, kernel canon python3 (CPython 3.13.16), 132 s, 13/13 cellules code exécutées, 0 erreur, execution_count renseigné partout (0 null).
  • Runtime ADK réel (google.adk.agents.LlmAgent via utils/adk_runtime.py) contre le vLLM de flotte (http://192.168.0.47:5002/v1, modèle qwen3.6-35b-a3b — le défaut de config/providers.py) : sorties de routage et d'analyse fraîches, appels tool réels.
  • Régime BigQuery RECOVERABLE-USER-HAND préservé : verdict === BQ_CREDENTIALS_MISSING === intact (dégradation honnête documentée dans le carnet, aucune donnée fabriquée).
  • Verdict SOTA : SOTA-OK — vraie bibliothèque ADK 2.14.0, vrai serveur vLLM, vraies réponses.

Réparation d'environnement (règle F, pour reproductibilité)

  • google-adk[extensions] (litellm) installé dans l'env canon : adk_runtime.py en dépend pour LiteLlm.
  • litellm épinglé 1.100.0 : litellm 1.106.2 importe CacheableResult de mcp.types, inexistant dans mcp 1.30 (le type n'existe dans aucun mcp < 2.0, et mcp 2.x casserait semantic-kernel et le serveur papermill) — l'appel acompletion avec tools échouait alors systématiquement. Reproduit en isolation, corrigé au downgrade (1.100.0 est dans la plage adk >=1.84,<1.106.3), re-probé vert.

Organes (diff origin/main...HEAD)

Organe Verdict
check_kernel_drift.py origin/main OK — 0 régression (1 carnet changé)
check_output_failure_text.py origin/main 0 régressé
check_output_collapse.py origin/main 0 signalé

Census UserWarning série (blob origin/main vs tête) : 1 → 0 sur Lab16.

🤖 Generated with Claude Code

…6 -- re-execution complete sous google-adk 2.14.0

Le warning [EXPERIMENTAL] JSON_SCHEMA_FOR_FUNC_DECL (cellule 21, emis par
transfer_to_agent_tool.py:72 de l'adk d'alors) a disparu a la source : la
feature est STABLE et default_on dans google-adk 2.14.0, et l'emission du
warning n'existe plus dans ce module. Re-execution complete (132 s, 13/13
cellules code, 0 erreur) sous le canon python3 3.13.16 avec le runtime ADK
reel contre le vLLM de flotte (qwen3.6-35b-a3b) : sorties de routage et
d'analyse fraiches, regime BigQuery RECOVERABLE-USER-HAND preserve
(BQ_CREDENTIALS_MISSING). Fix a la cause, sans filtre ni edition de sortie.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the variation-adjacency-deep-med Adjacence DEEP/MED hors LIGHT : §2 l'autorise si substance distincte (coordinateur) label Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

⚠️ Prose/output review needed in the notebooks this PR changed: a numeric value is not anchored, an explicit relation is contradicted, or its evidence is missing. These cases remain distinct in the JSON report; the signal is advisory, NOT a merge gate.

Scope = notebooks CHANGED in this PR, not the whole corpus. Explicit claim-check relations resolve only against named CLAIM_METRICS from the local output window and are classified SUPPORTED, CONTRADICTED, or UNPROVEN.
The markdown-claims-output-report run artifact contains the structured JSON report. See python scripts/check_markdown_claims_output.py --help for re-running locally.
Detector rationale: c.290 / c.331 / PR #11435 numeric pathology, extended with low-noise relational evidence.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ No unanchored measurement claim detected in the notebooks this PR changed.

Scope = notebooks CHANGED in this PR, not the whole corpus. The stale-claim-report run artifact holds the structured JSON.
Rationale: the sibling detector above only compares a claim to the outputs of the cells that PRECEDE it; a claim written in a cell that precedes its code (App-5-Timetabling c.2/c.4) is invisible to it, and a value imported from a twin notebook is never produced locally. See python scripts/check_stale_claims.py --help.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ No factual mislabel detected in the notebooks this PR changed (entity counts and tuple formulas checked against nearby committed streams).

Scope = notebooks CHANGED in this PR, not the whole corpus. The factual-mislabel-report run artifact holds the structured JSON.
Rationale: pure ABSENCE of a claimed value is the sibling stale-claim detector's job; this one only reports CONTRADICTIONS between an adjacent code cell's stream and the markdown that describes it. See python scripts/check_factual_mislabel.py --help.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ No truncated listing detected in the notebooks this PR changed (markdown identifier tables checked against the numbered listing a nearby code cell's stream prints).

Scope = notebooks CHANGED in this PR, not the whole corpus. The listing-coherence-report run artifact holds the structured JSON.
Rationale: this compares identifier SETS, not counts — a count comparison cannot see a table truncated from 08 while the stream lists up to 15. The contiguous-prefix discriminant is what keeps an arbitrary subset (« the 3 longest ») out of the report. See python scripts/check_listing_coherence.py --help.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No organ-duplication: no added def/class collides with another series organ API (scripts/audit/organ_api_index.yaml).

Detector: python scripts/audit/detect_organ_duplication.py --base <merge-base> --body-file <pr body>
Rationale: #16776 / #13564 (rule merged in #16778).

@clusterManager-Myia clusterManager-Myia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review — Fix(#14122) Lab16 : purge du UserWarning ADK

FULL READ du carnet (36 cellules, 13 code) au head a2326879 vs main — claim central vérifié :

Warning parti, sans filtre ni édition manuelle. 0 cellule source modifiée (sources byte-identiques sur les 36 cellules). Le bloc UserWarning: [EXPERIMENTAL] feature FeatureName.JSON_SCHEMA_FOR_FUNC_DECL is enabled (émission transfer_to_agent_tool.py:72, cellule 21 en base) est absent au head — avec lui disparaît le placeholder <USER_PATH> porté par la même ligne (0 occurrence au head, 1 en base). Census UserWarning du carnet : 1 → 0, conforme au claim. Le diagnostic « warning émis par la bibliothèque, graduée STABLE dans l'ADK courant » est l'explication la plus économe et colle à ce que la sortie montre : aucune trace de filtrage dans les sources (elles n'ont pas bougé).

Re-exécution réelle, pas cosmétique. papermill authentique (duration 132.47 s fractionnaire, µs start≠end, exception None) ; execution_count renseigné sur 13/13 cellules code (0 null). Les 4 cellules à sorties changées (15, 18, 21, 28) portent des réponses LLM fraîches et différentes (explications, SQL GROUP BY region sans point-virgule terminal, FROM commandes sans backticks) — signe d'appels tool réels au vLLM de flotte, pas d'un copier-coller des anciennes sorties. Le verdict de dégradation honnête === BQ_CREDENTIALS_MISSING === est préservé au head.

Règle F documentée. L'épinglage litellm 1.100.0 (incompatibilité CacheableResult/mcp 1.30 reproduite en isolation) et l'installation google-adk[extensions] dans l'env canon sont décrits avec leur cause — reproductible.

Réserve : CI au head encore en file (validate, outputs-required, Scripts Tests queued au moment de la review, PR gate cancelled du run précédent — STARVED connu, rien d'imputable au diff).

[Hermes hermes-pr-review, cycle :05 09/11, host myia-ai-01, sig=e29b71f4]

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Golden-Set Execution (H.7 P3)

✅ 9/9 notebooks passed (certified reproducible)

Verdict reutilise pour la cle 0a117f960fdc759b — run 42539123025 sur refs/heads/main (62c512ad3e32) ; aucune execution ce tour.

Notebook Status Time
2.1-Workflow-ML.ipynb ✅ SUCCESS 4.1s
2.2-Descente-de-gradient.ipynb ✅ SUCCESS 3.8s
2.3-Regression-lineaire-logistique.ipynb ✅ SUCCESS 4.5s
2.4-Arbres-Forets-Ensembles.ipynb ✅ SUCCESS 3.9s
Search-01-StateSpace.ipynb ✅ SUCCESS 4.1s
SL-1-LogicalLearning.ipynb ✅ SUCCESS 2.2s
RL-04-Bandits-Manchots-Python.ipynb ✅ SUCCESS 44.1s
GameTheory-04c-NashExistence-Python.ipynb ✅ SUCCESS 2.6s
GameTheory-13d-Optimistic-CFR-Python.ipynb ✅ SUCCESS 11.6s

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Notebook PR Validation: PASS

  • Notebooks checked: 1
  • Code cells validated: 13
  • 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)

@myia-ai-01 myia-ai-01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Relu à la tête : aucune source modifiée, et c'est voulu — le UserWarning [EXPERIMENTAL] JSON_SCHEMA_FOR_FUNC_DECL venait de google-adk, dont la fonctionnalité est passée STABLE en 2.14.0. La ré-exécution est réelle (papermill du 09/11, sorties LLM différentes de la base, avertissement absent : 1 → 0 occurrences d'EXPERIMENTAL), sans filtre ni retouche. Le régime BigQuery BQ_CREDENTIALS_MISSING reste déclaré comme tel.

@myia-ai-01
myia-ai-01 merged commit e6e4604 into main Nov 10, 2026
108 of 110 checks passed
@jsboige
jsboige deleted the fix/14122-lab16-adk-warning branch November 30, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

variation-adjacency-deep-med Adjacence DEEP/MED hors LIGHT : §2 l'autorise si substance distincte (coordinateur)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants