Skip to content

sync/bib.yml: re-seal intermediate's six take rulings - #90

Merged
mmcky merged 3 commits into
mainfrom
bib/reseal-intermediate
Nov 23, 2026
Merged

mmcky merged 3 commits into
mainfrom
bib/reseal-intermediate

Conversation

@mmcky

@mmcky mmcky commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

What

QuantEcon/lecture-python.myst#1140 sets intermediate's copy of every entry a ruling covers to the pool's result (the owner's "All ruled entries (Recommended)", 2026-11-22). Six rulings take intermediate's copy and change it, so their seals must name the new copy. Otherwise tools/bib-merge reopens all six once intermediate's pin moves, since the copy a ruling takes must be its sealed version, and the bibliography check goes red.

Ruling intermediate's seal before after
AKR1990 a229f98efbe3e257 0517d1216224e38a
hansen2020twisted 3521470dba8bdbc0 12c2453dc0203a9f
HansenRichard1987 3bbc65ca3cdefc33 dff11e9d6d462585
Helpman1985 cf417eed8a3dacef 26992dc65b708457
MarcetMarshall1992 5bc8e38b782615e6 1340b06a614cbba3
pareto1896cours 3af6b01cc3c7cc6c 04762a3685a82856

The digests are tools/bib-merge's own, of intermediate's copies at QuantEcon/lecture-python.myst#1140's head, 148a901. Each ruling's because notes the re-seal. The merged entries do not change. Every other ruling that takes intermediate's copy still matches its seal, so no other one reopens.

Checked

A simulation with tools/bib-merge's own code:

Order (draft until it can pass)

This cannot pass until intermediate's pin names QuantEcon/lecture-python.myst#1140's merge, because its CI reconstructs intermediate's bibliography at the pin in sync/state.yml. It also waits for #88, which changes the same header. So:

  1. sync/bib.yml: re-seal intro's two take rulings for its converged copies #88 merges (after bibliography: set the 42 ruled entries to the lecture monorepo's lecture-python-intro#875);
  2. bibliography: set the 23 ruled entries to the lecture monorepo's lecture-python.myst#1140 merges;
  3. this branch is rebased on main; tools/sync --update --pin-only intermediate moves intermediate's pin to #1140's merge (it writes only sync/state.yml), and tools/bib-merge --reconstruct --write regenerates lectures/_static/quant-econ.bib, whose header must then read intermediate=06466b7d241875b4;
  4. its CI goes green, including the four-site build that a change under lectures/ runs, and it merges before the next nightly sync (03:47 UTC), best straight after #1140. A nightly sync between the two would move intermediate's pin on main by itself, and the bibliography check would go red with these six refusals until this merges.

The pin covers every change merged to intermediate's main by then, not only QuantEcon/lecture-python.myst#1140. Moving it changes no lecture in the pool here: drift-check reports any promoted lecture those changes touch as a refresh, and its refresh pull request brings them, reviewed as usual.

Step 3 was done on 2026-11-23 at 00:15 UTC. Instead of a rebase, the branch took main (267e58e, after #88 and #89) in a merge commit, e3a4a6d, so that its history isn't rewritten; CI tests the merge with main either way. Then c5ce7e1 moved intermediate's pin from 220fb97 to deb4bda, the merge of QuantEcon/lecture-python.myst#1140, and dated the six because notes 2026-11-23, the day that pull request merged (00:09 UTC). The range is three commits:

Commit What it changes How it reaches the pool
QuantEcon/lecture-python.myst#1143 its link-checker workflow nothing to bring
QuantEcon/lecture-python.myst#1144 eight lectures (approximation_errors, exponential_families, information_projections, opt_transport, phillips_escaping_nash, phillips_learning, phillips_priors, turbulence_inference), _toc.yml, and 18 new bibliography entries the eight lectures take intermediate's copy, so the nightly's refresh pull request brings them; drift-check reports the toc change for re-acceptance; the 18 entries are merged here
QuantEcon/lecture-python.myst#1140 intermediate's copies of the ruled entries the six re-seals here

So the header no longer reads the planned intermediate=06466b7d241875b4, which was intermediate's bibliography at #1140's head before #1144. It reads intermediate=4892e8b2ec406dac, rulings: 2b2a03b4c9c9712f and body: 09c6b1bb96f6b12e. The merged file has 1011 entries (993 before), 42 conflicts and 60 rulings, with no refusal. The only change to its entries is the 18 new ones (Amari1998, AmariKarakidaOizumi2018, CostaSantosStrapasson2015, Darmois1935, DupuyGalichon2014, EvansHonkapohjaWilliams2010, Fisher1922, Gelbrich1990, HeymannVandenEijnden2008, KhanZhang2022, Koopman1936, MatejkaMcKay2015, McCann1997, NielsenMLSS2015, PeyreCuturi2019, Pitman1936, Rao1945, Takatsu2011). Each is held by intermediate alone, so none needs a ruling.

#89 merged first; this branch took it from main in the merge commit above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL

mmcky and others added 3 commits November 23, 2026 00:02
QuantEcon/lecture-python.myst#1140 sets intermediate's copy of every entry
a ruling covers to the pool's result. Six rulings take intermediate's copy
and change it, so their seals now name the new copy (digests from
tools/bib-merge's own code, of intermediate's copies at 148a901). The
merged entries do not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
…ure-python.myst#1140

`tools/sync --update --pin-only intermediate` moves intermediate's pin
from 220fb97 to deb4bda. That range is three commits:
QuantEcon/lecture-python.myst#1143 (its link-checker workflow),
QuantEcon/lecture-python.myst#1144 (eight lectures, _toc.yml and 18 new
bibliography entries) and QuantEcon/lecture-python.myst#1140 (its
bibliography's ruled entries). The eight lectures are pool copies that
take intermediate's, so the nightly drift-check brings them in through
its refresh pull request, and it reports the toc change for
re-acceptance; this pull request changes no pool lecture.

`tools/bib-merge --reconstruct --write` then regenerates
lectures/_static/quant-econ.bib: 1011 entries (993 before), 42
conflicts, 60 rulings, no refusal. Its header reads
intermediate=4892e8b2ec406dac, rulings 2b2a03b4c9c9712f and body
09c6b1bb96f6b12e. The only change to the entries is the 18 new ones from
QuantEcon/lecture-python.myst#1144, each held by intermediate alone, so
none needs a ruling.

The six re-seals' notes now carry 2026-11-23, the day
QuantEcon/lecture-python.myst#1140 merged (00:09 UTC). The branch took
main (267e58e) in a merge commit first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
@mmcky
mmcky marked this pull request as ready for review November 23, 2026 00:18
Copilot AI adaptive review requested due to automatic review settings November 23, 2026 00:18
@mmcky
mmcky merged commit 4588827 into main Nov 23, 2026
10 checks passed

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

The change depends on unavailable upstream content at deb4bdac and lacks full bib-merge/CI validation, while its large regenerated bibliography and 18 added records require human verification of citation metadata and merge ordering.

No open issues 🎉

What changed in this PR

Updates the intermediate-series synchronization pin and regenerates the merged bibliography so six affected rulings remain sealed after upstream bibliography changes.

Changes:

  • Advances the intermediate repository pin and synchronization timestamp.
  • Re-seals six rulings whose selected copy is intermediate’s.
  • Refreshes generated bibliography metadata and adds 18 intermediate-only entries.
File Description
sync/​state.yml Advances the intermediate source pin to the upstream merged commit and updates the synchronization timestamp.
sync/​bib.yml Updates the seals and records the re-sealing rationale for six affected rulings.
lectures/​_static/​quant-econ.bib Regenerates the merged bibliography metadata and incorporates 18 new intermediate-held entries.

Review effort: Lite (adaptive)

@mmcky
mmcky deleted the bib/reseal-intermediate branch November 23, 2026 00:20
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