Repository navigation
fix(scripts): fail reference links the shared sync cannot see - #816
drakulavich wants to merge 5 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This reverts commit d58cb89. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This reads well — the escape hatch for Two things, one of which isn't really about your PR. The advice can swap one error for another. For a spelling whose target doesn't exist, following the message lands on a different failure: Your own test case Worth sequencing against #822. This is the one I'd actually act on. Same file, same tree, only the fence rule differing: where the SKILL.md is - Contributors sometimes write the link like this, which is wrong:
```markdown
See [it](./references/shared/security-checklist.md).
```Nothing to change here — just that these two probably want to land in that order, and I opened #822 before noticing the overlap. |
Rewriting the spelling alone only trades the error for "resolves to ..., which does not exist" when references/<name> is not at the repo root, so the spelling message now names the missing source in that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for checking the lookbehind and the escape hatch. On the missing target: 5220bf1 adds the missing source to the spelling message, so the When the source exists, the message stays as it was. The On #822: agreed. With this check in, a wrong spelling quoted in a fence under a list item would fail CI, so #822 should land first. |
Follow-up to #670: closes the link-form gap @federicobartoli named there.
./references/shared/<file>.mdin a SKILL.md andshared/<file>.mdin a skill's reference file matched neither the sync script nor the validator: no copy was generated and CI stayed green. The validator now fails a relative path into the skill's ownreferences/shared/in any spelling but the documented one, even when a copy exists, and names the spelling to use.Why this changed: the first version added a job for the sync check on push to main. That check already runs there in three jobs (run). Of the last 320 push runs on main one failed, and not at a step before the check, so the job would have caught nothing new. It is reverted.
Red (the old validator exits 0 on the same tree):
Green: all 8 jobs on my fork (run); locally 43 validator tests and 8 sync tests pass.