Skip to content

fix: match omitted llms.txt subtrees on path segment boundaries - #172

Closed
saviourmk wants to merge 1 commit into
agent-ecosystem:mainfrom
saviourmk:fix/omitted-subtree-boundary
Closed

saviourmk wants to merge 1 commit into
agent-ecosystem:mainfrom
saviourmk:fix/omitted-subtree-boundary

Conversation

@saviourmk

Copy link
Copy Markdown

llms-txt-coverage leaves sitemap pages out of the denominator when they sit under a nested llms.txt that the walker did not descend into. The test was norm.startsWith(p), so an omitted /docs/chains/eth/llms.txt also removed every page under /docs/chains/ethereum-classic/, or any other path that just starts with the same letters. Those pages are not in llms.txt, but they never show up as missing and coverage comes out higher than it is.

The prefix now has to equal the path or be followed by a slash, the same boundary matchesPathPrefix uses for the base path.

The new test has an omitted /docs/chains/eth index and a sitemap page under /docs/chains/ethereum-classic/ that llms.txt does not list. On main that page is counted in omittedSubtreePages and the check passes at 100%. With the change it is listed in missingFromLlmsTxt.

Fixes #171

@dacharyc

Copy link
Copy Markdown
Member

Thanks for the report. I've confirmed the bug described in the linked issue, and I’ll keep the issue open to track it.

I'm closing this PR, though. This project doesn't accept unsolicited, agent-generated pull requests from accounts with no prior involvement in the project. This PR arrived as part of a batch of six across two repositories in about 40 minutes, each opened seconds after its issue, and as an indie dev with limited resources, I can't take on reviewing and maintaining code submitted that way.

I'll triage and handle the bug fixes on a schedule that is consistent with my resources and the bug’s impact.

If you use this tool and run into problems with it, issues describing what you were doing and what went wrong are welcome.

@dacharyc dacharyc closed this Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

llms-txt-coverage omitted subtrees swallow sibling paths with the same prefix

2 participants