From 00f44f46f65a96bb84271faa7f4ed7965fc44d5e Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 30 Jul 2026 17:48:06 -0500 Subject: docs: keep the org-element cache reproduction evidence Twelve scripts plus a README covering the persist-write cache corruption: the no-dirvish root cause, the buffer-list ordering dependency, a faithful replay of the file-manager preview path, and the two fixes I tried and reverted. The README says which scripts are weak evidence and why, so the next reader doesn't rebuild an argument on the one whose control varied three things at once. Also holds the upstream bug report and its reproduction, verified to run standalone under emacs -Q. --- working/org-element-cache-persist-bug/README.org | 94 ++++++++++ .../attempt2-tests-blind.el | 190 ++++++++++++++++++++ .../control-no-preview.el | 62 +++++++ .../d2103877-reverted.patch | 199 +++++++++++++++++++++ .../hostile-a-errorbranch.el | 76 ++++++++ .../hostile-c-repro.el | 32 ++++ .../hostile-d-faithful.el | 48 +++++ .../hostile-d-nopreview.el | 23 +++ .../hostile-d-order.el | 30 ++++ .../hostile-e-ffnoselect.el | 8 + .../refute-fontify-rearms.el | 49 +++++ .../repro-preview-cache.el | 88 +++++++++ .../upstream-report.txt | 87 +++++++++ .../upstream-repro.el | 70 ++++++++ .../variant-no-kill.el | 88 +++++++++ .../variant-no-persist.el | 88 +++++++++ .../verify-shipped-fix.el | 91 ++++++++++ 17 files changed, 1323 insertions(+) create mode 100644 working/org-element-cache-persist-bug/README.org create mode 100644 working/org-element-cache-persist-bug/attempt2-tests-blind.el create mode 100644 working/org-element-cache-persist-bug/control-no-preview.el create mode 100644 working/org-element-cache-persist-bug/d2103877-reverted.patch create mode 100644 working/org-element-cache-persist-bug/hostile-a-errorbranch.el create mode 100644 working/org-element-cache-persist-bug/hostile-c-repro.el create mode 100644 working/org-element-cache-persist-bug/hostile-d-faithful.el create mode 100644 working/org-element-cache-persist-bug/hostile-d-nopreview.el create mode 100644 working/org-element-cache-persist-bug/hostile-d-order.el create mode 100644 working/org-element-cache-persist-bug/hostile-e-ffnoselect.el create mode 100644 working/org-element-cache-persist-bug/refute-fontify-rearms.el create mode 100644 working/org-element-cache-persist-bug/repro-preview-cache.el create mode 100644 working/org-element-cache-persist-bug/upstream-report.txt create mode 100644 working/org-element-cache-persist-bug/upstream-repro.el create mode 100644 working/org-element-cache-persist-bug/variant-no-kill.el create mode 100644 working/org-element-cache-persist-bug/variant-no-persist.el create mode 100644 working/org-element-cache-persist-bug/verify-shipped-fix.el diff --git a/working/org-element-cache-persist-bug/README.org b/working/org-element-cache-persist-bug/README.org new file mode 100644 index 00000000..2ad8b1bf --- /dev/null +++ b/working/org-element-cache-persist-bug/README.org @@ -0,0 +1,94 @@ +#+TITLE: org-element persistent-cache corruption — reproduction evidence +#+AUTHOR: Craig Jennings +#+DATE: 2026-07-28 + +* What this is + +Evidence for the org-element cache corruption I chased on 2026-07-28, kept +because the diagnosis outlived the fix. I shipped a fix as =d2103877=, put it +through four hostile reviews, and reverted it on their findings. These scripts +are what the reviews were arguing about. + +Run any of them with: + +: emacs --batch -q -l