Skip to content

Let the Agent Score form accept docs paths of any depth - #1199

Merged
InlinePizza merged 1 commit into
mainfrom
agent-score-deep-paths
Oct 25, 2026
Merged

InlinePizza merged 1 commit into
mainfrom
agent-score-deep-paths

Conversation

@InlinePizza

Copy link
Copy Markdown
Contributor

The Agent Score form rejected URLs with more than 4 path segments, such as …/docs/technical-documentation/networking.html, with "Paths can have at most 4 segments." That check in src/lib/agent-score/slug.ts mirrors a backend limit that Promptless/promptless#5775 removes. This PR drops MAX_PATH_SEGMENTS from the form. The 200-character slug limit and the path-character rules still apply.

Merge order: deploy Promptless/promptless#5775 first. Until it ships, the backend still returns "Docs paths can have at most 4 segments." for these URLs.

Tests: the 5-segment rejection case is removed, and a 6-segment slug is now expected to parse. tests/unit/agent-score.spec.ts passes (9 tests) and astro check reports 0 errors.

The form's slug check capped paths at 4 segments, mirroring a backend
limit that Promptless/promptless#5775 removes. The 200-character slug
limit still bounds the path.
@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:30pm UTC

Request Review

@InlinePizza
InlinePizza merged commit 653b766 into main Oct 25, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 8a2b58dc 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant