Skip to content

fix(docs): repair links to /human-in-the-loop and catch url-override mismatches in check-docs#69

Closed
Joshuafolorunsho wants to merge 4 commits into
vercel:mainfrom
Joshuafolorunsho:fix/docs-human-in-the-loop-links
Closed

fix(docs): repair links to /human-in-the-loop and catch url-override mismatches in check-docs#69
Joshuafolorunsho wants to merge 4 commits into
vercel:mainfrom
Joshuafolorunsho:fix/docs-human-in-the-loop-links

Conversation

@Joshuafolorunsho

@Joshuafolorunsho Joshuafolorunsho commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Three docs pages linked to ../tools/human-in-the-loop (filesystem path), but docs/tools/human-in-the-loop.md carries a url: /human-in-the-loop frontmatter override and is served at /docs/human-in-the-loop. The links 404 in production.

PR #36 fixed the relative links inside the two url:-overridden pages, but did not fix callers from elsewhere in the tree pointing into them. These three were missed:

  • docs/concepts/default-harness.md../tools/human-in-the-loop
  • docs/concepts/sessions-runs-and-streaming.md../tools/human-in-the-loop
  • docs/guides/frontend/overview.mdx../../tools/human-in-the-loop

Reproduce on production

Each source page is live; click the "Human-in-the-loop" link on any of them and the destination 404s.

Source page (live) Broken link on the page Where it lands
https://eve.dev/docs/concepts/default-harness "Human-in-the-loop" (in the ask_question row of the tools table) https://eve.dev/docs/tools/human-in-the-loop → 404
https://eve.dev/docs/concepts/sessions-runs-and-streaming "HITL" (in the input.requested row of the events table) https://eve.dev/docs/tools/human-in-the-loop → 404
https://eve.dev/docs/guides/frontend/overview "Human-in-the-loop" (under the "Human-in-the-loop prompts" section) https://eve.dev/docs/tools/human-in-the-loop → 404

The page itself is reachable at the correct URL: https://eve.dev/docs/human-in-the-loop.

Or via curl:

curl -sI https://eve.dev/docs/tools/human-in-the-loop | head -1   # HTTP/2 404
curl -sI https://eve.dev/docs/human-in-the-loop       | head -1   # HTTP/2 200

Changes

  • Commit 1 — repair the three hrefs to point at the rendered URL.
  • Commit 2 — harden scripts/check-docs.mjs so this regression class fails CI. The previous link checker resolved relative and site-absolute markdown links against each file's filesystem path, so pages with a url: frontmatter override could pass while breaking in prod. The new resolver builds each page's rendered URL (honoring url: overrides) and resolves links in URL-space against that set. Running this script on main before commit 1 reproduces exactly the three failures.

Test plan

  • node scripts/check-docs.mjs passes on this branch
  • node scripts/check-docs.mjs against main (pre-commit-1) fails with the three expected errors
  • Manual: 404 / 200 confirmed via curl and via clicking the links on each live source page (see table above)

Three pages linked to ../tools/human-in-the-loop (filesystem path),
but tools/human-in-the-loop.md has a `url: /human-in-the-loop`
frontmatter override and serves at /docs/human-in-the-loop. The links
404 in production.
The previous link checker resolved relative and site-absolute markdown
links against the filesystem path of each file. Pages with a `url:`
frontmatter override (e.g. tools/human-in-the-loop.md → /human-in-the-loop)
served at a different URL than they live at on disk, so links to or from
those pages could pass this check while 404'ing in production.

Resolve each link against the rendered URL of the source page, and
validate the target against the set of rendered URLs (and their ancestor
directories, for sidebar-group links). Running this against main before
the previous commit reproduces the three failures it was meant to catch.
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@Joshuafolorunsho is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@Joshuafolorunsho

Copy link
Copy Markdown
Contributor Author

@AndrewBarba , could you please help review this PR when you can. It's still broken in production.

@AndrewBarba

Copy link
Copy Markdown
Collaborator

Thanks @Joshuafolorunsho — I reviewed the diff and the code changes look good.

Before we can run the required CI and merge this, please rewrite the two authored fix(docs) commits so that each commit has both:

  • a Signed-off-by trailer matching your commit author name/email (DCO), and
  • a cryptographic signature that GitHub displays as Verified.

A DCO remediation commit alone will not satisfy this repository’s verified-signature policy.

Suggested steps:

git fetch upstream main
git rebase -i upstream/main

Mark both fix(docs) commits as edit. At each stop, run:

git commit --amend --no-edit -S -s
git rebase --continue

Then update the PR branch:

git push --force-with-lease origin fix/docs-human-in-the-loop-links

If your remotes use different names, adjust upstream and origin accordingly. Also make sure the signing key is connected to your GitHub account so the rewritten commits show as Verified. The repository setup is documented in CONTRIBUTING.md.

Once you force-push the corrected commits, I’ll review the new SHAs and approve the fork CI run. The Vercel authorization failure can be ignored for now.

@AndrewBarba

AndrewBarba commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

moved here and adding you as contributor on each commit #138

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.

2 participants