Skip to content

docs: Let Agent Score accept docs paths of any depth on the website - #1198

Merged
InlinePizza merged 2 commits into
mainfrom
promptless/agent-score-deep-paths
Oct 25, 2026
Merged

InlinePizza merged 2 commits into
mainfrom
promptless/agent-score-deep-paths

Conversation

@promptless

@promptless promptless Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

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 in src/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/f shows "Paths can have at most 4 segments."

This change removes MAX_PATH_SEGMENTS and its check from validateParts, matching the backend. The 200-character slug limit and the per-segment character rules still apply. In tests/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

  • Instructions and examples match the current product behavior.
  • Links and image references are valid.
  • Changed pages render correctly.

Verification: node --import tsx --test tests/unit/agent-score.spec.ts passes (9/9).

@vercel

vercel Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
promptless-docs Ready Ready Preview Oct 25, 2026 1:33pm UTC

Request Review

@InlinePizza
InlinePizza merged commit 5c229c9 into main Oct 25, 2026
3 checks passed
@promptless
promptless Bot deleted the promptless/agent-score-deep-paths branch October 25, 2026 14:47

This branch was successfully deployed

1 active deployment
Preview — fecc99e4 Deployed Oct 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant