Skip to content

🌐 [translation-sync] Add a lecture on Social Security trust fund depletion - #296

Closed
mmcky wants to merge 0 commit into
mainfrom
translation-sync-2026-10-16T20-24-18-pr-1091
Closed

mmcky wants to merge 0 commit into
mainfrom
translation-sync-2026-10-16T20-24-18-pr-1091

Conversation

@mmcky

@mmcky mmcky commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Automated Translation Sync

This PR contains automated translations from QuantEcon/lecture-python.myst.

Source PR

#1091 - Add a lecture on Social Security trust fund depletion

Files Updated

  • ✏️ lectures/_toc.yml

⚠️ Files Failed to Translate

The following new file(s) could not be translated and are absent from this PR. Their entries have been removed from lectures/_toc.yml so the target build stays green; the entries return with the files once they are delivered. The error details and recovery steps are in the failure issue this run opens on the source repository.

  • ❌ lectures/social_security_depletion.md

Details

  • Source Language: en
  • Target Language: zh-cn
  • Model: claude-sonnet-5

This PR was created automatically by the translation action.

@mmcky mmcky added the action-translation PRs created by QuantEcon/action-translation label Oct 16, 2026
Copilot AI balanced review requested due to automatic review settings October 16, 2026 20:24
@mmcky mmcky added the automated Automated sync PR opened by action-translation label Oct 16, 2026
@netlify

netlify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit ec71c89
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6ad9501733fe9d8f23746c5e
😎 Deploy Preview https://deploy-preview-296--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.

🟡 Changes recommended

The added _toc.yml entries reference four lecture files that do not exist in the repository, which will break the jb build lectures -W CI build.

1 open finding
What changed in this PR

This is an automated translation-sync PR from QuantEcon/lecture-python.myst (source PR #1091). Its stated purpose is to add the "Social Security trust fund depletion" lecture to the Chinese translation book. However, the lecture itself (social_security_depletion.md) failed to translate and is absent, so the only file actually changed is lectures/_toc.yml.

The diff does not match the stated intent: instead of handling social_security_depletion, it adds table-of-contents entries for four unrelated lectures (gallant_tauchen, lucas_prescott_investment, optimal_growth_uncertainty, lq_mean_field_games) whose .md files do not exist in this repository. Since CI builds with jb build lectures -n -W, these ToC references to missing documents will break the build.

Changes:

  • Adds four - file: ToC entries referencing lecture files that are not present in lectures/ (build-breaking).
  • Introduces an incidental trailing-whitespace change on the 统计与信息论 caption line (harmless).
  • Does not add or reference social_security_depletion, contrary to the PR description.
File Description
lectures/​_toc.yml Adds ToC entries for four lectures whose source files are missing from the repo, which will fail the Jupyter Book build; does not touch the social_security_depletion lecture named in the PR.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lectures/_toc.yml Resolved
@mmcky

mmcky commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

♻️ Automatically rebased after #286 was merged.

Overlapping files: lectures/_toc.yml

The translation content is preserved; only unchanged sections were updated to match the current main branch. Please re-review if needed.

mmcky added a commit that referenced this pull request Oct 22, 2026
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>
@mmcky

mmcky commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

Closed by GitHub, not by hand: the rebase automation force-pushed this branch when #286 merged (2026-10-21), and the PR closed in the same second (the QuantEcon/action-translation#280 race). The lecture is delivered in #300, on a recover/ branch the automation does not rebase; see its description.

mmcky added a commit that referenced this pull request Oct 22, 2026
…closed #294 and #296) (#300)

* Add gallant_tauchen, as the sync's rebase delivered it at v0.29.6

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>

* gallant_tauchen: localise the two English figure captions

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>

* Seed social_security_depletion, the lecture its sync could not deliver

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>

* social_security_depletion: font path

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>

* bib: add the 21 entries the two lectures cite

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>

* _toc.yml: add gallant_tauchen and social_security_depletion

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>

* gallant_tauchen state: record the file's last source commit

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>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants