Repository navigation
Closed
Labels
agent-readyMaintainer-approved for the Tale agent fleetbugBugdocsDocumentationpriority: mediumMedium priority
Description
Summary
A pilot reports "many 404 errors" when the assistant looks things up on docs.tale.dev. Much of the original report is already fixed:
- The six addresses from the first report (2026-09-30), such as
/de/verwaltung/mitglieder-und-rollen, now redirect (fix(docs): send guessed section and /en addresses to a real page #3769, fix(docs): keep every docs address answering and lint every link #3986). - The chat persona reads
https://docs.tale.dev/llms.txtfirst (feat(platform): ground chat answers about Tale in its documentation #3773,services/platform/lib/chat/assistant.ts:36). - A check on 2026-10-23 found every sitemap address (450) and every
llms.txtaddress with its/devariant (304) answering 200, and no broken internal links.
Addresses that a model guesses by translating a path still return 404, for example /de/plattform/skills and /de/plattform/wissen/webseiten. Similar guesses such as /de/plattform/agenten and /de/verwaltung/api-schluessel redirect, because they happen to be in the legacy map.
Proposed
- Pull the docs site's 404s for the last 30 days, grouped by path. Separately pull those with the user agent
TaleAssistant/1.0 (+chat web_fetch), which is chat'sweb_fetch, to see what is actually requested. - Resolve localized paths in general rather than one at a time. Map each translated segment to its canonical slug (
plattform→platform,verwaltung→admin,wissen→knowledge,webseiten→websites, …) and redirect. When nothing matches, redirect to the closest section page, or to a search with the path's words, instead of a bare 404. - Give the 404 page, and the 404 response body, a pointer to
/llms.txt, so a model that lands there can recover. (bug(docs): 404 suggestions show English slugs, section pages lose Previous/Next, the search button's name doesn't match its label, and copy buttons fail silently #4909 covers the 404 page's own suggestions.) - Add a regression test with a list of guessed paths.
Done when
- The guessed paths above, and those found in the logs, resolve to a real page.
- The 404 rate for the
TaleAssistantuser agent is close to zero over a week.
Scope for parallel work
This touches the docs service only (services/docs), and optionally the wording of web_fetch's 404 result. It is independent of the platform issues from the same pilot.
Metadata
Metadata
Assignees
Labels
agent-readyMaintainer-approved for the Tale agent fleetbugBugdocsDocumentationpriority: mediumMedium priority
Activity
fix(docs): land guessed localized addresses on a page, not a 404
fix(docs): land guessed localized addresses on a page, not a 404