fix(agents): validate generic literal repository paths

This commit is contained in:
4gray committed 2026-09-20 18:54:43 +02:00
1 parent 8467b9406a
commit a10045f0b2
5 files changed
+99 -9

No files matched your search

+5
View File
@@ -31,6 +31,11 @@ Run `pnpm run agents:validate` after guidance changes. It checks line/byte budge
root imports and local navigation links/anchors, including migration destinations.
Markdown navigation is parsed with the already-declared `marked` dependency;
undefined explicit reference links are errors, and code examples are excluded.
Backticked concrete paths in root guidance and the context map are checked from
the repository root, including unknown top-level directories and filenames.
Write generic filenames as prose; commands, templates, globs, URLs, package
aliases and recognized JavaScript globals are excluded. Use Markdown links for
ambiguous filenames that resemble code symbols.
Heading anchors are derived from parsed text, not HTML sanitization. The Nx test
hash includes `marked` so dependency changes invalidate parser coverage.
It cannot prove semantic equivalence; review changed contracts as well.