Repository navigation
fix(docs): harden Typst guard reconciliation - #2012
Merged
Merged
Conversation
gerchowl
force-pushed
the
bugfix/2011-typst-guard-followups
branch
from
November 3, 2026 18:00
72d5e88 to
2ebceee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Address all seven follow-ups from the Typst docs guard review. Document recipes now load through a
devkit-docsmodule so consumertypst,typst-canonical, andtypst-proberecipes coexist withjust devkit-docs::typstcommands.Type of Change
fix-- Bug fixModifiers
!) -- This change breaks backward compatibilityChanges Made
mod devkit-docs 'justfile.devkit-docs', supported by the pinned just 1.51.0 toolchain.devkit-docsin justfile, justfile.project, or justfile.local. Consumerdocsdeclarations coexist.just devkit-docs::glossary-candidates.Changelog Entry
Fixed
devkit-docs::, skip conflicting consumer names,leave docs-OFF consumer exclusions untouched, and correct preview ownership reports,
and retain configs with recovery advice after missing managed state or interrupted writes.
Testing
Regression tests were committed before implementation. Round one RED: 11 failed, 55 passed (exit 1). Round two RED: 24 failed, 65 passed (exit 1). Exact-byte assertions also rejected mutations to outer dash spacing, nested sequence indentation, and hook dash spacing (2, 4, and 2 assertion failures respectively).
uv run --with pytest-xdist pytest tests/test_typst_docs.py tests/test_typst_reconcile.py packages/vig-utils/tests/test_typst_guard.py tests/test_scaffold_preserved_hooks.py tests/test_seeded_hook_runner_migration.py tests/test_scaffold_drift.py -n 2 --basetemp="$HOME/.cache/devkit-pytest/2011-r2-green"244 passed (exit 0). Tests use an isolated basetemp outside the checkout. Container and Nix-evaluation checks are left to CI as required. Documentation changes do not need executable RED tests; the indentation additions cover existing rendering behavior.
CI completed successfully on
7a923b3a61f16fa89846cc07e801931f044f6f30: all checks passed, including the finalTest Summarygate and CodeQL. The CI workflow completed with success;gh run watch 41689927368 --exit-statusandgh pr checks 2012exited 0.Manual Testing Details
Verified just 1.51.0 in
nix develop; collision tests execute the realjust --list, consumer recipes, and namespaced recipe lookup. Namespace tests cover consumer recipes, aliases, and modules in each of the three justfiles through docs ON → OFF → ON. Parser/lint tests verify YAML, byte-for-byte ON/OFF round trips, and unchanged configs after refused reconciliation. Existing shared-machinery suites verify non-docs preservation. Commit hooks run in the Nix development environment.Checklist
CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Consumers must use the documented
devkit-docs::recipe names. Without the deleted block's recovery records, generated exclusions cannot safely be reversed: reconciliation retains the config and asks for restoration. With docs enabled, identical consumer-owned exclusions cannot be distinguished and require manual removal before retrying. With docs OFF and no managed markers/state, these configs stay untouched without warnings. In-place rollback preserves the inode; a second interrupt or I/O failure during rollback can prevent restoration, as documented. Existing configs with yamllint findings may acquire additional findings, as documented.Refs: #2011