Skip to content

Deliver gallant_tauchen and social_security_depletion (the lectures of closed #294 and #296) - #300

Merged
mmcky merged 7 commits into
mainfrom
recover/gallant-tauchen-social-security-depletion
Oct 22, 2026
Merged

mmcky merged 7 commits into
mainfrom
recover/gallant-tauchen-social-security-depletion

Conversation

@mmcky

@mmcky mmcky commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Delivers the two lectures whose sync PRs, #294 and #296, were closed by the rebase automation when #286 merged. Part of #298.

Why a new PR, on a recover/ branch

When #286 merged, rebase-translations re-translated gallant_tauchen and social_security_depletion at @v0 and force-pushed both branches. GitHub shut #294 and #296 in the same second as each force-push, because each branch was momentarily identical to main (the QuantEcon/action-translation#280 race). The automation fires on any merged translation-sync-* branch and rebases every open one, so recreating them as two sync PRs would repeat the race at the first merge. One PR on a recover/ branch is merged once, and the automation neither triggers on it nor rebases it.

What it carries

Commit What
7674f6d gallant_tauchen and its state, unchanged from the rebased #294 branch (v0.29.6)
789c56c its two English figure captions localised (the QuantEcon/action-translation#255 class)
113be1f social_security_depletion, seeded by translate init -f at v0.29.6; output as written. Preferred over the rebased #296 branch's version because it localises the figure labels and carries the font block
c9d65c4 its FONTPATH corrected from _fonts/ to fonts/
f098261 the 21 bibliography entries the two lectures cite, verbatim from the source, additions only (the same 21 keys the automation added)
7b38fe1 _toc.yml: main's file plus the two entries at their source positions; Chinese part captions untouched
b273875 gallant_tauchen's source-sha set to the file's last source commit. The sync recorded QuantEcon/lecture-python.myst#1087's merge commit (a true merge), which translate status reads as OUTDATED although the source blob is identical

Checks

Both lectures match their English source structurally: directive sequence, math blocks, anchors, cross-references and citations, headings, and code cells (compared with string literals masked). Both execute locally from lectures/: 23 and 39 code cells, with numerical output identical to the English per cell. social_security_depletion's 13 figures render in Source Han Serif SC with no missing-glyph warnings. Every ToC entry resolves, every citation resolves, and translate status at v0.29.6 reports both ALIGNED.

Answers QuantEcon/lecture-python.myst#1092 once merged.

🤖 Generated with Claude Code

mmcky and others added 7 commits October 22, 2026 10:58
QuantEcon/lecture-python.myst#1087 added gallant_tauchen; its sync PR,
#294, could not build until #286 landed. When #286 merged, the rebase
automation re-translated the lecture at @v0 (v0.29.6) and force-pushed
the branch, and GitHub shut that PR in the same second (the
QuantEcon/action-translation#280 race). The lecture and its state file
are taken unchanged from that branch (5d35ce7).

Checked against the English source: identical directive sequence (43),
math blocks, anchors, the 54 cross-references and citations, headings
and code cells; all 23 code cells execute with numerical output
identical to the English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both mystnb figure captions arrived in English, the
QuantEcon/action-translation#255 class. Each uses the lecture's own
terms: 公共随机数 and 重新抽取扰动项 (the two curves' descriptions in
the text above the figure), 准则函数, 随机波动率 and 收益率.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
QuantEcon/lecture-python.myst#1091 added social_security_depletion, but
its sync failed the structural parity check (the model dropped the
leading {raw} header block), filed as
QuantEcon/lecture-python.myst#1092, so its sync PR (#296) opened with a
_toc.yml change and no lecture.

translate init -f social_security_depletion.md at engine v0.29.6 (@v0),
claude-sonnet-5, from lecture-python.myst main (9ad04de; the file's
last change is 97c5894). The first attempt failed parity the same way
and wrote nothing; the second passed.

Output as written by the CLI. Its font path is repaired in the next
commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The engine writes FONTPATH as _fonts/...; this edition keeps the font in
lectures/fonts/, so the build would fail with FileNotFoundError. The
block is already in the imports cell, and nothing after it resets
font.family.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gallant_tauchen cites 17 keys and social_security_depletion 4 that
this edition's bibliography lacks. Each is copied verbatim from the
source bib and placed after the nearest preceding entry the two files
share, keeping the source's order. Additions only; the same 21 keys the
sync's rebase added on the two closed PRs' branches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At their source positions: gallant_tauchen after market_diffusion, and
social_security_depletion after two_computation, before
lq_mean_field_games. Built on main's _toc.yml, so the Chinese part
captions are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sync recorded source-sha as f8d7e33, the merge commit of
QuantEcon/lecture-python.myst#1087, which was a true merge rather than
a squash. translate status compares source-sha with the file's last
commit, 648d138 (the PR's head), so it reported this lecture OUTDATED
although the source blob is identical at both. Recorded as 648d138, the
convention translate init and the other 138 state files in this edition
follow; nothing else in the file changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 22, 2026 00:35
@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit b273875
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6ad95a44f61be233c086d314
😎 Deploy Preview https://deploy-preview-300--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

It adds ~3,200 lines of translated economics lecture content with executable code and numerical claims whose faithfulness to the English source and error-free execution cannot be verified by automated structural checks alone (and per issue #298 this edition's preview can report success despite execution errors), warranting final human review.

No open issues 🎉

What changed in this PR

This PR delivers two machine-translated (zh-cn) QuantEcon lectures — gallant_tauchen ("Which moments to match?") and social_security_depletion — onto a recover/ branch, recovering the output of the two sync PRs (#294, #296) that the rebase automation closed when #286 merged. It is part of the recovery effort tracked in issue #298 and avoids re-triggering the force-push/auto-close race by delivering a single hand-merged branch.

Changes:

  • Add lectures/gallant_tauchen.md and lectures/social_security_depletion.md plus their .translate/state/*.yml tracking files.
  • Add the 21 bibliography entries the two lectures cite to lectures/_static/quant-econ.bib.
  • Insert the two lectures into lectures/_toc.yml at their source positions.
File Description
lectures/​gallant_tauchen.md New zh-cn lecture; headings/captions localized, code docstrings/output labels remain English (verbatim sync output).
lectures/​social_security_depletion.md New zh-cn lecture; headings, captions, and code comments localized; includes the Source Han Serif SC font block with corrected fonts/ path.
lectures/​_toc.yml Adds the two lectures at their source positions; entries are unique and have matching files.
lectures/​_static/​quant-econ.bib Adds 21 unique bibliography entries referenced by the two lectures.
.translate/​state/​gallant_tauchen.md.yml Translation-state metadata (source-sha, section-count 15, tool-version 0.29.6).
.translate/​state/​social_security_depletion.md.yml Translation-state metadata (mode NEW, section-count 9, tool-version 0.29.6).

Review effort: Balanced

@github-actions

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request October 22, 2026 00:49 Inactive
@mmcky
mmcky merged commit 2424a05 into main Oct 22, 2026
8 checks passed
@mmcky
mmcky deleted the recover/gallant-tauchen-social-security-depletion branch October 22, 2026 01:26

This branch was previously deployed

1 inactive deployment
pull request — b273875c Deployed Oct 22, 2026 by github-actions[bot]
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.

2 participants