Repository navigation
Resync ge_arrow and misspecified_recovery to current source (recovers the 2026-09-20 and 2026-10-09 sync failures) - #292
Conversation
translate forward -f at engine v0.29.4, one file at a time, from lecture-python.myst main (35832b12). Both lectures missed the sync of QuantEcon/lecture-python.myst#1059, which errored on them (failure issue QuantEcon/lecture-python.myst#1061); ge_arrow then also missed QuantEcon/lecture-python.myst#1084, whose sync refused to patch the stale target (QuantEcon/lecture-python.myst#1086). Output as written by the CLI. ge_arrow.md carries a model preamble and a duplicate front-matter block, removed in the next commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The resync output opened with a line of model commentary followed by a second copy of the front matter, below the one the CLI writes. The CLI's embedded-front-matter guard did not strip it because the model's copy is not valid YAML (unquoted "Examples::Example 1: ..." heading-map keys). Removes lines 56-113, which is what that guard would have done; the kept front matter and the body are byte-identical to the CLI output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cited by the resynced ge_arrow.md. Copied verbatim from the source bib, at the same position (between muth1961 and radner1972). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🔵 Needs a closer look
It is a large whole-file machine re-translation of substantial new economics/mathematical prose and five new exercises whose terminology and semantic accuracy require native/expert human review, which the author also explicitly requests.
0 open findings
What changed in this PR
This PR resyncs two Chinese-translated QuantEcon lectures (ge_arrow.md and misspecified_recovery.md) to their current English source, recovering two earlier automated-sync failures. It is a whole-file machine re-translation (engine v0.29.4) rather than a hand edit, and it also backfills three bibliography entries cited by the new ge_arrow content and updates the paired .translate/state metadata.
Changes:
- Regenerate
ge_arrow.md(large source rewrite: Overview/section reordering, a new "rational expectations equilibrium" section, and two new exercises with solutions) andmisspecified_recovery.md(recovered large section, newlong_run_risk_operatorcross-links). - Add
hart1975,kihlstrom2019,diamond1967toquant-econ.bib, cited by the newge_arrowprose. - Update
.translate/state/*.ymlsource-sha/model/mode/section-count/tool-version to reflect the resync.
| File | Description |
|---|---|
| lectures/ge_arrow.md | Full resync; heading map (39 entries) and 13 H2 sections consistent, all refs/eqs/cites resolve, RecurCompetitive rewritten with no stale value_functionss call sites |
| lectures/misspecified_recovery.md | Resync adding recovered section and LRO cross-links; heading map (23 entries) and refs/labels all resolve |
| lectures/_static/quant-econ.bib | Adds 3 well-formed, non-duplicate bib entries at the source position |
| .translate/state/ge_arrow.md.yml | Metadata updated; section-count 13 matches body H2 count |
| .translate/state/misspecified_recovery.md.yml | Metadata updated to the resync source/model/tool version |
Verification performed: all 10 {doc} targets exist; every {ref}, {eq}, {prf:ref}, and {cite} key resolves (including the cross-doc lrr-def-stochastic-stability); front matter parses as valid YAML with quoted colon-bearing Examples::Example N: keys; body headings match the heading-map values in both files; Example 4's transition matrix rows sum to 1; and the new bib keys are unique.
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Brings
ge_arrow.mdandmisspecified_recovery.mdup to current source.ge_arrowhas been two source PRs behind since 2026-09-20, andmisspecified_recoveryone.Why they were behind
The sync of lecture-python.myst#1059 (2026-09-20) errored on both files, filed as lecture-python.myst#1061. The other files in that PR went out as #281, which does not contain
ge_arrow.md, even though its title names it.ge_arrowTranslation failed for intro: Update mode requires oldEnglish, newEnglish, and currentTranslationmisspecified_recoverytranslateNewSection: response truncated at max_tokens=16384lecture-python.myst#1084 (2026-10-09) then changed
ge_arrowagain. Its sync diffed the English correctly but applied the change to the July translation. The structural parity check refused the mixed result, filed as lecture-python.myst#1086.How it was delivered
translate forward -fat engine v0.29.4 (the current@v0), one file at a time, reading source fromlecture-python.mystmain at35832b12. This is not a\translate-resync, which would rebuild from a stale merge-time snapshot. Both targets were last written by automation (#112 resync, #196 seed), so no hand edits are overwritten.Commits
.translate/statefiles.ge_arrow: drop the model preamble and duplicate front matter — the resync output opened with one line of model commentary, followed by a second copy of the front matter below the one the CLI writes. The CLI has a guard for this, but it only recognises a block that parses as YAML, and the model's copy did not (unquotedExamples::Example 1: …keys). This commit removes those 58 lines, which is what the guard would have done. The kept front matter and the whole body are byte-identical to the CLI output, and no prose was edited.hart1975,kihlstrom2019anddiamond1967, cited by the newge_arrow, copied verbatim from the source bib at the same position. This does not overlap 🌐 [translation-sync] [tom] edits to a few lectures [ge_arrow, affine_risk_prices, and recovery_trio] #281's bib additions, which are appended at the end of the file.Why the diff is large
The source changes were large. QuantEcon/lecture-python.myst#1059 rewrote
ge_arrow(+813/−876): Introduction became Overview, Markov asset prices moved ahead of Recursive formulation, General Equilibrium became Computing a competitive equilibrium, and Concluding remarks, Related lectures and Exercises were added. QuantEcon/lecture-python.myst#1084 then added a rational expectations section and two exercises (+508). The translation is regenerated as a whole, not patched.Verification
ge_arrowmisspecified_recoverylectures/)fonts/path)usetex{cite}keys resolve in the bibCode cells differ from source only in comments, docstrings, printed strings and plot labels.
Review note
Both files are re-translated as a whole, so they are worth a read for terminology drift against the rest of the edition. In
ge_arrow, check the new rational expectations section (理性预期均衡) and the two new exercises. Inmisspecified_recovery, check the recovered-measure terms (恢复的概率测度, 长期风险中性).After merge, QuantEcon/lecture-python.myst#1061 and QuantEcon/lecture-python.myst#1086 can be closed by hand. They are in the source repo, so this PR does not close them.
🤖 Generated with Claude Code