Repository navigation
docs: Let Agent Score accept docs paths of any depth on the website - #1198
Merged
Merged
Conversation
promptless
Bot
requested review from
adit-chandra,
frances720,
hawkeyexl and
mattlink
as code owners
October 25, 2026 13:27
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
InlinePizza
approved these changes
Oct 25, 2026
This branch was successfully deployed
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.
Proposed changes
Promptless/promptless#5775 removed the 4-segment path cap from the Agent Score backend so docs URLs that sit deeper, such as
example.com/products/x/docs/latest/guide, can be scanned. The website still enforces its own copy of that cap insrc/lib/agent-score/slug.ts. That file backs both the scan form and the/agent-score/<site>report routes, so deep URLs are still rejected before they reach the backend. Today,https://promptless.ai/agent-score/example.com/a/b/c/d/e/fshows "Paths can have at most 4 segments."This change removes
MAX_PATH_SEGMENTSand its check fromvalidateParts, matching the backend. The 200-character slug limit and the per-segment character rules still apply. Intests/unit/agent-score.spec.ts, the 5-segment rejection case is gone, and a 5-segment slug and a 6-segment URL are now expected to pass.No docs or landing-page copy mentions the path-depth limit, so no prose changes are needed.
Checklist
Verification:
node --import tsx --test tests/unit/agent-score.spec.tspasses (9/9).