You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: docs path check passes locally but fails on a clean checkout #725
scripts/check-docs.py can still pass on a developer machine and fail on a clean CI checkout, because it decides whether a referenced path exists by looking at the working tree.
Backtick paths into build-output directories and git-ignored backtick paths are already handled (#1024).
Three cases remain:
A markdown link target to a git-ignored build output passes locally and fails in CI; links get neither the build-directory skip nor the git-ignored allowance.
A reference to an untracked, un-ignored file passes locally and fails in CI.
A /-prefixed backtick path to an ignored file outside the build directories passes where it was built and fails on a clean checkout: is_git_ignored joins each base with an absolute path and never checks it.
None has caused a failure yet, and check-docs.py has no tests.
Fix
Resolve every reference, links and backtick paths alike, against what a clean checkout has: files in git ls-files plus paths git check-ignore accepts.
That one check covers all three cases.
This structural bug is recurring at current HEAD: src/diagram/CLAUDE.md references generated lib/ (line 12). src/diagram/lib exists and is ignored locally, so python3 scripts/check-docs.py passes; git ls-files src/diagram/lib is empty, so the same reference is absent in a clean checkout. This is another concrete release-gate instance of the filesystem-vs-git-state mismatch described here.
changed the title [-]check-docs.py validates path references against the filesystem, so local pre-commit and clean-checkout CI disagree[/-][+]build: docs path check passes locally but fails on a clean checkout[/+]on Oct 12, 2026
Activity
bpowers commentedon Jul 11, 2026
This structural bug is recurring at current HEAD:
src/diagram/CLAUDE.mdreferences generatedlib/(line 12).src/diagram/libexists and is ignored locally, sopython3 scripts/check-docs.pypasses;git ls-files src/diagram/libis empty, so the same reference is absent in a clean checkout. This is another concrete release-gate instance of the filesystem-vs-git-state mismatch described here.engine: pin the MDL exponent grouping rules; fix inherited CI failures
[-]check-docs.py validates path references against the filesystem, so local pre-commit and clean-checkout CI disagree[/-][+]build: docs path check passes locally but fails on a clean checkout[/+]