Skip to content

Remove the retired Agents v1 docs and redirect /docs/agents - #151

Merged
sre-helmcode merged 2 commits into
mainfrom
chore/remove-agents-v1
Oct 5, 2026
Merged

sre-helmcode merged 2 commits into
mainfrom
chore/remove-agents-v1

Conversation

@sre-helmcode

Copy link
Copy Markdown
Contributor

What

v1 agents (deployed and managed from the portal's /agents page) were retired and replaced by Workspaces. This removes their documentation from nan.builders.

  • Removed src/content/docs/agents.md, src/content/docs-es/agents.md and the 15 screenshots in public/docs/agents/. The docs nav is generated from the content collection, so the sidebar entry goes away with the page.
  • Hermes guide (EN + ES): dropped "Path 1: deployed on NaN Cloud", which linked to /docs/agents and described the v1 panel, plus the related "two paths do not mix" known issue. The own-machine setup (custom provider) stays.
  • Redirects (middleware REMOVED_DOCS, 301, keeps query string):
    • /docs/agents, /docs/agents/, /docs/agents/* -> /docs
    • /es/docs/agents[/*] -> /es/docs
    • There is no Workspaces docs page yet, so the target is the docs root. The table now supports subpaths and an empty (root) target. Lookups use Object.hasOwn, so slugs like constructor do not match.
  • apps docs order 20 -> 19 so orders stay gapless (enforced by DocsShell.test.ts).
  • The community.notIncluded i18n item "Agents and apps deployment" is now "Workspaces and app deployment" (the key is not rendered right now).
  • Removed stale Agents rows from ARCHITECTURE.md.

Mentions of AI agents as a general concept (events, Gauntlet, agent setup guides) are untouched.

Tests

  • src/tests/lib/middleware.test.ts: covers the redirect for root, trailing slash, ES, subpaths, no false match on agent-setup / agentsx, and inherited Object keys.
  • New src/tests/layouts/removedDocs.test.ts: retired slugs have no live page in either locale, nothing in content/pages/components/layouts/i18n links to /docs/<retired> or cloud.nan.builders/agents, and the screenshots are gone.
  • noInfraDisclosure.test.ts: dropped the assertion on the deleted agents guide.
  • npx vitest run: 69 files, 1390 tests passed.
  • npm run build: completed.

Deploy notes

There is no VERSION file. Nothing else is needed: no env vars, no migrations.

🤖 Generated with Claude Code

barckcode and others added 2 commits October 5, 2026 10:34
v1 agents (deployed and managed from the portal's /agents page) were
retired and replaced by Workspaces. Their guide described a product
members can no longer use.

- Delete /docs/agents (EN + ES) and its screenshots under public/docs/agents.
- Hermes guide (EN + ES): drop the "deployed on NaN Cloud" path that
  pointed to the v1 panel; keep the bring-your-own-machine setup.
- 301 /docs/agents and any subpath to /docs (and /es/docs/agents to
  /es/docs) via the middleware's REMOVED_DOCS table, which now supports
  subpaths and a docs-root target.
- Renumber apps docs order (20 -> 19) so orders stay gapless.
- Update the unrendered community "not included" item and ARCHITECTURE.md.

Tests: middleware redirect cases (root, trailing slash, ES, subpaths, no
false matches) and a new removedDocs test asserting retired slugs have no
live page and nothing on the site links to them or to the v1 portal page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review blocker: agent-setup still promised the retired v1 path.
Adds a regression test over all site copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sre-helmcode
sre-helmcode merged commit 4a166a6 into main Oct 5, 2026
1 check passed
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