Repository navigation
Description
Goal
Bring the edition's Phillips lectures up to date, so that the three lectures whose sync failed for QuantEcon/lecture-python.myst#1144 can be carried: phillips_escaping_nash, phillips_learning and phillips_priors. The sync failures are recorded in QuantEcon/lecture-python.myst#1146 (for #1144) and QuantEcon/lecture-python.myst#1107 (for #1105).
Why a resync does not work
The sync updates a lecture section by section against the edition's copy. For phillips_escaping_nash the English had 13 sections before QuantEcon/lecture-python.myst#1144 and 14 after, but the zh-cn copy has 12, because the edition still predates QuantEcon/lecture-python.myst#1105. The sections cannot be paired, and the structural-parity check rejects the output (67 directives in the source, 32 in the output).
A \translate-resync on #1144 repeats this failure exactly. It would also re-translate the five lectures already in #330.
Order of work
| Step | Work | State on 2026-11-23 |
|---|---|---|
| 1 | Merge #308 (lq_mean_field_games) and #311 (bounded_rationality) | Both mergeable, with green preview and review |
| 2 | Carry the three lectures whose sync failed for QuantEcon/lecture-python.myst#1105 (CLI, below) | Never carried |
| 3 | Merge #312, the 13 Phillips lectures from QuantEcon/lecture-python.myst#1105 | Preview fails until steps 1 and 2 land |
| 4 | Carry the three Phillips lectures from QuantEcon/lecture-python.myst#1144 (CLI, below) | Needs #312 merged |
Why #312's preview fails (run 41610540915): six of its lectures link to targets the edition does not have yet.
- The document
phillips_drifts_volatilities_2, which is new in #1105 and was never translated. - The labels
csdv2_persistence,csdv2_ex1andcsdv2_ex2, which are in that document. - The label
pbr_compliment. #1105 added it toprospects_bounded_rationality, whose sync failed. 🌐 [translation-sync] [bounded_rationality] Correct, connect, and extend the Bounded Rationality lectures #311 does not carry it. _toc.ymlalso listslq_mean_field_games_extensions, which only 🌐 [translation-sync] [lq_mean_field_games] Revise for the October 2026 draft and split into two lectures #308 adds.
Its review check fails for a different reason. The PR is too large for one review request (1,189,630 tokens against the 1,000,000 limit), which is a tool limit, not a problem with the translation.
Step 2, the three lectures from #1105:
phillips_drifts_volatilities_2.mdis not in the edition, so it needstranslate init -f.prospects_bounded_rationality.mdneedstranslate forward -fafter 🌐 [translation-sync] [bounded_rationality] Correct, connect, and extend the Bounded Rationality lectures #311 merges.olg_adaptive_money.mdneedstranslate forward -f.
Run step 2 on #312's branch, after rebasing it on main once #308 and #311 merge, and push the results to that branch. phillips_drifts_volatilities_2 links into the other Phillips lectures, so a separate PR for it would fail its preview until #312 merges. Doing all of step 2 on #312's branch gives one preview that covers everything.
These commands need ANTHROPIC_API_KEY. The paths are examples. Preview each command with --dry-run first.
S=~/work/quantecon/lecture-python.myst # source at origin/main
T=~/work/quantecon/lecture-python.zh-cn # #312's branch, rebased on main
npx translate init -s $S -t $T --target-language zh-cn -f phillips_drifts_volatilities_2.md
npx translate forward -s $S -t $T -f prospects_bounded_rationality.md
npx translate forward -s $S -t $T -f olg_adaptive_money.mdStep 4, after #312 merges. Run on main; add --github QuantEcon/lecture-python.zh-cn to get one PR per file.
npx translate forward -s $S -t $T -f phillips_escaping_nash.md
npx translate forward -s $S -t $T -f phillips_learning.md
npx translate forward -s $S -t $T -f phillips_priors.mdforward regenerates the whole lecture. If any of these lectures has been reviewed by a native speaker, carry the change into it by hand instead.
Related backlog
- 14 sync PRs are open (🌐 [translation-sync] [lq_mean_field_games] Revise for the October 2026 draft and split into two lectures #308 to 🌐 [translation-sync] [exponential_families, information_projections, opt_transport, approximation_errors, turbulence_inference, phillips_*] Information Geometry section, optimal-transport links, Phillips connections #330). The last ones were merged on 2026-10-22.
- 🌐 [translation-sync] [exponential_families, information_projections] Add two lectures on information geometry #324, 🌐 [translation-sync] [approximation_errors, specification_tests, turbulence_inference, blackwell_kihlstrom] Add three lectures applying information projections #329 and 🌐 [translation-sync] [exponential_families, information_projections, opt_transport, approximation_errors, turbulence_inference, phillips_*] Information Geometry section, optimal-transport links, Phillips connections #330 overlap.
exponential_familiesandinformation_projectionsare in all three, andapproximation_errorsandturbulence_inferenceare in 🌐 [translation-sync] [approximation_errors, specification_tests, turbulence_inference, blackwell_kihlstrom] Add three lectures applying information projections #329 and 🌐 [translation-sync] [exponential_families, information_projections, opt_transport, approximation_errors, turbulence_inference, phillips_*] Information Geometry section, optimal-transport links, Phillips connections #330. 🌐 [translation-sync] [exponential_families, information_projections, opt_transport, approximation_errors, turbulence_inference, phillips_*] Information Geometry section, optimal-transport links, Phillips connections #330 carries the newest English for those files, so the lecture files in 🌐 [translation-sync] [exponential_families, information_projections] Add two lectures on information geometry #324 are superseded. - 🌐 [translation-sync] [approximation_errors, specification_tests, turbulence_inference, blackwell_kihlstrom] Add three lectures applying information projections #329 also changes
phillips_policy_evaluation, one of 🌐 [translation-sync] [phillips] Correct, connect, and extend the Phillips Curve Tradeoffs lectures #312's lectures, so merge 🌐 [translation-sync] [phillips] Correct, connect, and extend the Phillips Curve Tradeoffs lectures #312 before 🌐 [translation-sync] [approximation_errors, specification_tests, turbulence_inference, blackwell_kihlstrom] Add three lectures applying information projections #329. - Ten sync-failure issues are open in the source repo: Translation sync failed for PR #1096 (zh-cn) lecture-python.myst#1097, Translation sync failed for PR #1099 (zh-cn) lecture-python.myst#1100, Translation sync failed for PR #1105 (zh-cn) lecture-python.myst#1107, Translation sync failed for PR #1113 (zh-cn) lecture-python.myst#1114, Translation sync failed for PR #1119 (zh-cn) lecture-python.myst#1120, Translation sync failed for PR #1121 (zh-cn) lecture-python.myst#1122, Translation sync failed for PR #1129 (zh-cn) lecture-python.myst#1133, Translation sync failed for PR #1135 (zh-cn) lecture-python.myst#1137, Translation sync failed for PR #1138 (zh-cn) lecture-python.myst#1139 and Translation sync failed for PR #1144 (zh-cn) lecture-python.myst#1146.
Done when
- 🌐 [translation-sync] [phillips] Correct, connect, and extend the Phillips Curve Tradeoffs lectures #312 is merged with a green preview.
- The edition's
phillips_escaping_nash,phillips_priorsandphillips_learninghave the sections added by [exponential_families, information_projections, opt_transport, approximation_errors, turbulence_inference, phillips_*] Information Geometry section, optimal-transport links, Phillips connections lecture-python.myst#1144: "Escapes as exponential tilts", "Least squares as a natural gradient" and the note on the geometric action. - Translation sync failed for PR #1144 (zh-cn) lecture-python.myst#1146 and Translation sync failed for PR #1105 (zh-cn) lecture-python.myst#1107 can be closed.
Activity
[-]Bring the Phillips lectures up to date so #1144's sync can be carried (zh-cn#312 chain)[/-][+]Bring the Phillips lectures up to date so the QuantEcon/lecture-python.myst#1144 sync can be carried[/+]