Skip to content

Strip malformed @comment{...} blocks from cdl.bib (fixes bibtex breakage)#77

Open
jeremymanning wants to merge 2 commits intomasterfrom
fix-malformed-comment-blocks
Open

Strip malformed @comment{...} blocks from cdl.bib (fixes bibtex breakage)#77
jeremymanning wants to merge 2 commits intomasterfrom
fix-malformed-comment-blocks

Conversation

@jeremymanning
Copy link
Copy Markdown
Member

Summary

PR #74, #75, and #76 inadvertently introduced `@comment{...}` blocks into `cdl.bib` via bibtexparser's serialization. bibtex's parser chokes on the embedded URLs and commas inside those blocks (the "Folding@home, treating it" pattern is the most direct trigger), causing exit-code-2 failures for any downstream document that runs bibtex against master.

This PR strips all `@comment{...}` blocks from `cdl.bib` so it parses cleanly again.

What changed

Why @comment isn't the right tool here

bibtex parses `@comment{...}` looking for balanced braces, but it does so character-by-character without robustly handling commas, embedded `@` characters (e.g. `Folding@home`), or URL-style `{...}` nesting. A line like:

```
@comment{% VoelEtal23: 20-year retrospective on Folding@home, treating it
% as a canonical volunteer-compute precedent...
```

makes bibtex skip the rest of the entry, which then breaks any document that cites entries appearing later in the file.

The audit-trail content those comments carried is preserved in the merged PR descriptions and the submodule commit messages, which is the correct place for that history.

Verification

```
python bibcheck.py verify cdl.bib -> looks good! (6206 entries)
bibtex (against a downstream document) -> exit 0, no errors
```

Test plan

  • `python bibcheck.py verify cdl.bib` passes
  • `bibtex` succeeds against a downstream document that cites entries from the affected ranges
  • No bib entries removed; only `@comment` blocks
  • Diff is purely deletion

🤖 Generated with Claude Code

jeremymanning and others added 2 commits April 19, 2026 18:39
All three entries individually web-verified and formatted to pass
bibcheck verify. These ground the "what is a volunteer mesh"
section of the companion whitepaper to the Kiewit Provost
Leadership Fellows application.

  - AndeEtal02: SETI@home (Anderson, Cobb, Korpela, Lebofsky,
    Werthimer), Communications of the ACM 45(11):56-61,
    DOI 10.1145/581571.581573. The canonical volunteer-compute
    precedent; verified via ACM DL and author-hosted PDF at
    setiathome.berkeley.edu/sah_papers/cacm.php.
  - Ande04: BOINC (David P. Anderson, single author),
    Proceedings of the 5th IEEE/ACM International Workshop on
    Grid Computing, pp. 4-10, DOI 10.1109/GRID.2004.14. The
    software platform that underlies SETI@home / Folding@home /
    many later volunteer-computing projects. Journal string
    shortened to "IEEE International Workshop" (dropping the
    "/ACM" join) to match CDL conventions on brace-protected
    caps tokens.
  - VoelEtal23: Folding@home (Voelz, Pande, Bowman),
    Biophysical Journal 122(14):2852-2863,
    DOI 10.1016/j.bpj.2023.03.028. The 20-year retrospective
    and the most-citable peer-reviewed reference for the
    Folding@home tradition.

Integrity check: python bibcheck.py verify cdl.bib -> looks good!
(6206 entries, up from 6203).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The PR #74 / #75 / #76 commits inadvertently introduced @comment{...}
blocks into cdl.bib via bibtexparser's serialization. bibtex's parser
chokes on the embedded URLs and commas inside those blocks (the
\"Folding@home, treating it\" pattern is the most direct trigger),
causing exit-code-2 failures for any downstream document that runs
bibtex against the master cdl.bib.

The fix: strip @comment{...} entirely. The audit-trail content these
blocks carried is preserved in the original PR descriptions and in
each submodule commit message, which is the appropriate place for
that history. cdl.bib is now machine-clean again.

Verification:
  python bibcheck.py verify cdl.bib -> looks good!  (6206 entries)
  bibtex (against a downstream document)  -> exit 0, no errors

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant