Repository navigation
Description
One-liner
The site has no robots.txt and no sitemap. Worse than absent: both paths answer 200 text/html with the homepage, so a crawler that fetches /robots.txt gets a web page, and a sitemap submitted to Search Console would fail to parse. 403 doc pages have nothing telling a search engine they exist.
Measured (production, 2026-08-25)
$ curl -s -o /dev/null -w "%{http_code} %{content_type}\n" https://objectstack.ai/robots.txt
200 text/html; charset=utf-8
$ curl -s -o /dev/null -w "%{http_code} %{content_type}\n" https://objectstack.ai/sitemap.xml
200 text/html; charset=utf-8
$ curl -s https://objectstack.ai/robots.txt | head -c 60
<!DOCTYPE html><html data-dpl-id="dpl_3Yii…
apps/docs/app/ contains no robots.ts and no sitemap.ts; apps/docs/public/ holds only logo.svg and hero-cover-dark.png.
Root cause of the 200-instead-of-404 half is a separate card — the [lang] catch-all. Fixing this one does not fix that one, and vice versa.
Expected
apps/docs/app/robots.ts— a realtext/plainrobots response that allows crawling and declaresSitemap: https://objectstack.ai/sitemap.xml.apps/docs/app/sitemap.ts— every indexable URL:/,/docs/**(403 pages, fromsource.getPages()), and the blog.lastModifiedshould come from a real signal (git mtime of the source.mdx) rather than build time, so an unchanged page does not look edited on every deploy.- Both must use the canonical origin
https://objectstack.ai, taken from one shared constant, not hardcoded twice.
Acceptance
-
curl -sI https://objectstack.ai/robots.txt→200 text/plainand the body names the sitemap -
curl -s https://objectstack.ai/sitemap.xml | head -1→ an XML declaration, not HTML - the sitemap's URL count matches
find content/docs -name '*.mdx' | wc -lplus the non-docs routes - no absolute URL in either file names a host other than
objectstack.ai
Source
Found in an SEO review of the docs site (apps/docs) run on 2026-08-25, measured against the local dev server and against production. The canonical origin is https://objectstack.ai — maintainer ruling recorded in #10659:
这个仓的文档站规范 URL 是 https://objectstack.ai
Activity
os-zhuang commentedon Aug 25, 2026
Claim: PM loop round 1 (epic PM for #12243)
Session:
session_f9f0958b-ab68-46cc-801c-216aa7ee2107Branch:
claude/issue-12232-robots-sitemapWorktree:
objectstack-issue-12232Domain:
domain:devxFile surface:
apps/docs/app/robots.ts,apps/docs/app/sitemap.ts, and one new shared origin constant underapps/docs/lib/(this card OWNS creating it — #12234 and #12240 import it next round) (stop on breach; explain in the report)Container & model: M,
mode:subagent,model: opus— no path-derived mandate (node scripts/pm/dispatch-gates.mjs --tieron this surface: "no path-derived mandate"); judgement call on the sitemap's source of truth and the lastModified signalClause-②: no
Serial constraints cleared: none in flight. Serialised AFTER this card, same round-2 queue: #12234 (imports the origin constant this card creates), then #12235 (edits the same
generateMetadatablock as #12234)os-zhuang commentedon Aug 25, 2026
Claim: os-dev (developer seat), picked up from the PM claim above.
session_f9f0958b-ab68-46cc-801c-216aa7ee2107— I am theos-devsubagent dispatched by that PM session; the platform does not mint a separate session id for the subagent, so the id matches the PM comment above. What distinguishes this claim from the PM's is the worktree + base sha below.claude/issue-12232-robots-sitemap(pushed empty at claim time as a write-routing probe)/Users/zhuangjianguo/Documents/GitHub/objectstack-issue-1223220b0fdb568c648374963cc13fdab89f4f74594bf(origin/mainat checkout)apps/docs/app/robots.ts,apps/docs/app/sitemap.ts, one new shared origin constant underapps/docs/lib/.Any other agent reading this: the branch is taken. Report a conflict rather than pushing to it.
os-zhuang commentedon Aug 25, 2026
os-dev-report
os-zhuang commentedon Aug 25, 2026
ACCEPT — PR #12253, reviewed against GitHub rather than against the report.
Checked, not taken on trust:
main,Fixes #12232on the first line, 3 files, +217/-0 — nothing pre-existing is edited, so this cannot regress a served path by accident.skip-changesetis on the PR andCheck Changesetis green with it.apps/docs/app/robots.ts,apps/docs/app/sitemap.ts,apps/docs/lib/site.ts— exactly the declared surface, no drift.app/robots.tsdoes outrank the single-segment[lang]route — confirmed in dev, in the production route table and againstnext start. The converse was measured too: an unrelated dotted path still returns200 text/html, so this PR takes back exactly two paths and leaves docs site: any single-segment path containing a dot renders the homepage with 200 (soft-404 class) #12233's defect untouched. That is the honest result and it unblocks nothing it should not.lastModified: git committer date per source file from onegit logpass, not build time — and the shallow-clone case is handled by omittinglastmodwith a counted warning rather than substituting build time. Given this repo already carries a guard for shallow clones answering window queries wrongly with exit 0, degrading loudly here is the right call.robots.txtcarries noDisallow— deliberate, and correct:/ogmust stay crawlable for docs site: Open Graph images are generated for all 403 pages but no page references them #12235's cards, and the.mdx/llms*.txtdirectives are docs site:/docs/**.mdxserves an indexable parallel copy of every page with no robots directive #12241's card. Two PRs editing the same four lines is a conflict for no gain.findinglabel and a link back — protocol-correct, and materially useful (see below).CI at review time: 15 green, 0 red,
Lint & Repo GatesandType Check · debt ledgerstill converging.in_progressis an honest reading, not a pass — the PR flips ready and enters the queue only when every check on it is green, required or not.