ci: run --check-citations as the fifth wiki-currency leg#42
Merged
Conversation
Wires the citation-path check into the wiki-currency workflow (PR / dispatch / workflow_call). CI has no git checkouts, so _project_tree gains a pip-install fallback: resolve against site-packages and check only package-internal paths (autofit/...), skipping repo-level cites (README.md, docs/) rather than false-flagging them — full checkouts (local runs) still check everything. Verified by simulation: package path found, repo-level cite skipped, missing package path exits 1. Follow-up to #40 / PR #41. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The first PR run proved the leg works but exposed the version axis: docs pin main while CI installs the released stack, so post-release moves (ultranest/, pyswarms/, weak/model/, quantity/) false-failed. CI now shallow-clones the five libraries (+ sparse autolens_workspace: scripts/ + root catalogues) into sources/ — the resolver's documented fallback — so citations grade against the refs the docs pin; the release install remains ground truth for the symbol / version / idiom checks only. Pip-install resolution stays as last resort. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
'sparse-checkout set scripts' — root-level catalogue files are included automatically in cone mode; passing llms.txt as a pattern was fatal. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ntity) The CI citations leg (grading against origin/main clones) caught what local sibling checkouts — behind main — could not: nest/ultranest/ and mle/pyswarms/ are deleted upstream, and autolens/quantity/ is archived to autolens_workspace_developer/legacy. searches.md prose already said the two samplers weren't public; now the dead Source cites and frontmatter paths are gone too. stack/autolens.md's Quantity API section becomes a Derived-quantities note pointing at Tracer methods + the workspace guides. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
Follow-up to #40 / PR #41: the new
--check-citationsaudit mode now runs on every PR (and release-timeworkflow_call) as the fifth leg of thewiki-currencyworkflow, soProject:pathcitation staleness is graded automatically alongside symbols, idioms, provenance and version drift.Scripts Changed
.github/workflows/wiki-currency.yml— adds theCitation paths (--check-citations)run to the drift report.autoassistant/audit_skill_apis.py—_project_treegains a pip-install fallback for CI (no git checkouts there): citations resolve against site-packages, checking package-internal paths (autofit/…) and skipping repo-level cites (README.md, docs/) instead of false-flagging them; full checkouts still check everything. Summary line now reports the skipped count.skills/al_audit_skill_apis.md§6 — documents the two resolution tiers and the CI leg.Validation checklist
ast.parseclean🤖 Generated with Claude Code