Skip to content

Resync ge_arrow and misspecified_recovery to current source (recovers the 2026-09-20 and 2026-10-09 sync failures) - #292

Merged
mmcky merged 3 commits into
mainfrom
recover/ge-arrow-misspecified-recovery
Oct 9, 2026
Merged

mmcky merged 3 commits into
mainfrom
recover/ge-arrow-misspecified-recovery

Conversation

@mmcky

@mmcky mmcky commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Brings ge_arrow.md and misspecified_recovery.md up to current source. ge_arrow has been two source PRs behind since 2026-09-20, and misspecified_recovery one.

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.

Lecture Error Cause
ge_arrow Translation failed for intro: Update mode requires oldEnglish, newEnglish, and currentTranslation engine bug: the source PR added an intro where there had been none, and the update path rejects an empty old intro (being filed on action-translation)
misspecified_recovery translateNewSection: response truncated at max_tokens=16384 output limit on one large section

lecture-python.myst#1084 (2026-10-09) then changed ge_arrow again. 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 -f at engine v0.29.4 (the current @v0), one file at a time, reading source from lecture-python.myst main at 35832b12. 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

  1. Resync — the CLI output as written, plus the two .translate/state files.
  2. 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 (unquoted Examples::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.
  3. bib — adds hart1975, kihlstrom2019 and diamond1967, cited by the new ge_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

Check ge_arrow misspecified_recovery
directive sequence vs source 66 / 66 37 / 37
structural arguments (exercise and solution labels) match match
anchors vs source (exact sequence) 2 / 2 3 / 3
heading levels 40 / 40 24 / 24
code cells 37 / 37 17 / 17
code cells execute (headless, from lectures/) yes yes
printed numbers identical to the English source run 521 / 521 112 / 112
missing-glyph warnings none none
i18n font block (fonts/ path) present present
usetex none none
{cite} keys resolve in the bib 7 / 7 1 / 1
front matter parses, heading map present 39 entries 23 entries

Code 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. In misspecified_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

mmcky and others added 3 commits October 10, 2026 10:12
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>
Copilot AI balanced review requested due to automatic review settings October 9, 2026 23:13
@netlify

netlify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit 0f557d2
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6ac9753253aaaa00084afe65
😎 Deploy Preview https://deploy-preview-292--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 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) and misspecified_recovery.md (recovered large section, new long_run_risk_operator cross-links).
  • Add hart1975, kihlstrom2019, diamond1967 to quant-econ.bib, cited by the new ge_arrow prose.
  • Update .translate/state/*.yml source-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.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
pull request — 0f557d2b Deployed Oct 9, 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