Repository navigation
fix(genai-texte,#8056): migrate cost frontmatter -> metadata.cost on notebooks 11-20 (guard #8352) - #8385
Merged
Conversation
…notebooks 11-20 (guard #8352) Tranche 2 of the GenAI/Texte cost-frontmatter migration (tranche 1 = #8384 nb 1-9). Migrate legacy `---`-YAML cost frontmatter to nb.metadata['cost'] (canonical JSON per #8376) on notebooks 11-20. nb10 excluded (open #8378). Values migrated verbatim; title preserved as H1 (injected where cell#0 was frontmatter-only [11,12]; kept pre-existing descriptive H1 elsewhere [13-20] -- no duplicates); top-level notes merged into cost.notes. Validation: guard #8352 --check --baseline = OK exit 0 (no new ERROR); check_cost_metadata reads cost_source='metadata' x10; 0 code cells modified (C.2 N/A, verified cell-by-cell); byte-identity gate per-notebook; LF-only (CRLF=0); h1 count = 1 per notebook. See #8056, #8352, #8376, #8384, #8378. Part of #4208. Co-Authored-By: Claude-Code <noreply@anthropic.com>
Contributor
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
Contributor
Golden-Set Execution (H.7 P3)✅ 8/8 notebooks passed (certified reproducible)
Pinned lockfile: |
jsboige
added a commit
that referenced
this pull request
Jul 24, 2026
…books (guard #8352) (#8387) Family pivot (R6) in the #8056 cost-frontmatter rollout. Migrate legacy `---`-YAML cost frontmatter to nb.metadata['cost'] (canonical JSON per #8376) on the 3 IIT notebooks (IIT-1/2/3, PyPhi). Values migrated verbatim (storage-format, not re-estimation); pre-existing descriptive H1 kept (h1=1 each, no injection); top-level notes merged into cost.notes. Validation: guard #8352 --check --baseline = OK exit 0 (no new ERROR); check_cost_metadata reads cost_source='metadata' x3; 0 code cells modified (C.2 N/A, verified cell-by-cell); byte-identity gate per-notebook; LF-only (CRLF=0). IIT 0 registered twins -> twin-parity N/A. Recon correction (G.1): firsthand census on fresh origin/main worktree = 109 landmines (the "218" c.879 figure was scanned against the stale shared tree po2023-main-sync). See #8056, #8352, #8376, #8384, #8385. Part of #4208. Co-authored-by: jsboige <jsboige@gmail.com> Co-authored-by: Claude-Code <noreply@anthropic.com>
This was referenced Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Grain: MED/genai-texte-cost-frontmatter-migration-tranche2 — lane myia-po-2023:CoursIA — prev: c.880/#8384 (tranche 1, nb 1-9) — continues #8056 PR C rollout
fix(genai-texte,#8056): migrate cost frontmatter → metadata.cost on GenAI/Texte 11-20 (guard #8352)Scope
Tranche 2 of the GenAI/Texte cost-frontmatter migration. Direct continuation of #8384 (tranche 1, notebooks 1-9) + the merged #8376 design-gate. Covers the advanced GenAI/Texte series (notebooks 11-20).
10_LocalLlamais excluded (covered by the open #8378).Same technique as #8384: each notebook had a legacy
----YAML cell#0 (title + cost + notes) flagged by guard #8352 as[frontmatter_supersize]ERROR-level (HARD-enforced in CI). This PR migratescost:→nb.metadata['cost'](invisible JSON), removes the---...---block, preserves the pedagogical title.What changed (per notebook)
quant_methodfield preserved); the rest have 14.# <title>from the frontmattertitle:field.# 13. Orchestration agentique du test-time scaling(descriptive), not the short frontmatter label.notes:merged intocost.notes.Validation
detect_markdown_rendering.py --check --baselineon GenAI/Texte = OK, exit 0, no new ERROR-level violations.check_cost_metadata.pyreads each as canonical —cost_source: 'metadata'× 10,cost_meta_found: True× 10.origin/main:code_changed == []for all 10.write_text(newline='')preserves LF (CRLF=0 confirmed).Notes
Rebase note
Fresh worktree off
origin/main(a10c94332). Catalogue untouched (byte-identical to main). Independent of #8384 (separate branch off main, not stacked).See #8056 · See #8352 · See #8376 (design-gate) · See #8384 (tranche 1) · See #8378 (nb10) · Part of #4208
🤖 Generated with Claude Code