Skip to content

fix(wcm): redirect /wcm/ to the single WCM home - #55

Merged
imran-siddique merged 1 commit into
mainfrom
wcm-redirect-to-docs
Sep 9, 2026
Merged

fix(wcm): redirect /wcm/ to the single WCM home#55
imran-siddique merged 1 commit into
mainfrom
wcm-redirect-to-docs

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Why

agentrust-io.com/wcm/ and wcm.agentrust-io.com were two different homepages for one project. Both returned 200, both were indexable, both set canonical to themselves, and they disagreed: this page pinned SDK 0.27.0 from a proof.json captured 2026-09-07, while the docs site was on 0.28.1.

This page existed because the WCM repository was private and GitHub Pages cannot publish a private repo on the free plan, so wcm.agentrust-io.com was a Cloudflare 307 pointing here. The repo went public, that rule is gone, the subdomain now serves the project's own MkDocs site, and this address had nothing left to be.

Pairs with agentrust-io/weight-custody-manifest#118, which folds this page's content into the docs home so nothing is lost.

What changed

wcm/index.html becomes a redirect to https://wcm.agentrust-io.com/: canonical, an instant meta refresh, and location.replace() so Back does not bounce the reader, plus a visible link if both are blocked.

Cards keep working. og-launch.png stays in this directory and og:image still points at it, so cards already shared against agentrust-io.com/wcm/og-launch.png keep resolving. og:url and canonical point at the docs home, so a share of either address resolves to one card.

Nothing links through the hop any more:

  • supernav.js targets wcm.agentrust-io.com like every other subdomain. The /wcm path branch stays, so the stub highlights WCM correctly for the instant it is on screen.
  • llms.txt, two links.
  • sitemap.xml, which should not advertise a redirecting URL. This edit agrees with build-discovery.py --check, because that generator reads canonical and this page's canonical is now off-site.

launch-page.test.js becomes redirect.test.js (workflow renamed to match). It asserts the three ways out, exactly one off-site canonical, that og-launch.png stays put, and a 6KB ceiling so content cannot quietly grow back here. The SDK numbers it used to gate are now gated in weight-custody-manifest by a test that counts the actual conformance vectors; proof.json could not see that repo, which is why it went stale.

Verification

Run locally, all passing: check-site.py (41 pages, 598 local links, valid JSON-LD), check-dashes.js, build-discovery.py --check, check-discovery.py, marketplace.test.js, and the new wcm/redirect.test.js.

check-quickstart.py fails on this Windows machine on a POSIX venv/bin/activate path. It is unrelated to this change and runs on Ubuntu in CI.

Note

supernav.js is served with no cache buster, so verify the nav change with a hard reload. A normal reload shows the stale copy and reads as a failed deploy.

🤖 Generated with Claude Code

https://claude.ai/code/session_0193nB52LNx2WqtFRMf7PFYJ

agentrust-io.com/wcm/ and wcm.agentrust-io.com were two different homepages for
one project. Both returned 200, both were indexable, both set canonical to
themselves, and they disagreed: this page pinned SDK 0.27.0 from a proof.json
captured on 2026-09-07, while the docs site was on 0.28.1.

This page existed because the WCM repository was private and GitHub Pages cannot
publish a private repo on the free plan, so wcm.agentrust-io.com was a Cloudflare
307 to here. The repo went public and that rule is gone, so the subdomain now
serves the project's own MkDocs site and this address had nothing left to be.

wcm.agentrust-io.com is the home. This file becomes a redirect: canonical,
instant meta refresh, and location.replace() so Back does not bounce, with a
visible link if both are blocked. The launch page's content moved to the docs
home in weight-custody-manifest, which is where it can stay accurate.

og-launch.png stays in this directory and og:image still points at it, so cards
already shared against agentrust-io.com/wcm/og-launch.png keep resolving. og:url
and canonical point at the docs home, so a share of either address resolves to
one card.

Repointed everything that linked through the hop: supernav.js (WCM now targets
its own host like every other subdomain; the /wcm path branch stays so the stub
highlights correctly for the instant it is on screen), llms.txt in two places,
and sitemap.xml, which should not advertise a redirecting URL. The sitemap edit
agrees with build-discovery.py --check, because that generator reads canonical
and this page's canonical is now off-site.

launch-page.test.js becomes redirect.test.js: it asserts the three ways out, a
single off-site canonical, that og-launch.png stays, and a 6KB ceiling so content
cannot quietly grow back here. The SDK numbers it used to gate are gated in
weight-custody-manifest now, by a test that counts the actual conformance
vectors; proof.json could not see that repo, which is why it went stale.

check-site, check-dashes, build-discovery --check, check-discovery and
marketplace tests pass locally.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0193nB52LNx2WqtFRMf7PFYJ
@imran-siddique
imran-siddique merged commit 6f1a898 into main Sep 9, 2026
5 checks passed
@imran-siddique
imran-siddique deleted the wcm-redirect-to-docs branch September 9, 2026 17:31
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