Skip to content

chore(website): remove the cockpit retirement spec - #1085

Merged
blove merged 1 commit into
mainfrom
blove/remove-cockpit-retirement-spec
Sep 9, 2026
Merged

blove merged 1 commit into
mainfrom
blove/remove-cockpit-retirement-spec

Conversation

@blove

@blove blove commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary

The cockpit → unified-docs migration is finished, so the spec that guarded it is retired. Verified before removal: no cockpit/**/docs/guide.md walkthroughs remain, no capability descriptor declares docsAssetPaths, and cockpit.threadplane.ai appears nowhere in the website outside specs asserting its own absence.

This deliberately gives up two guards that were still live. Recording what goes unenforced from here, because the file's name undersold what it did:

  • cockpit.threadplane.ai may reappear in website links and authored content.
  • "Cockpit", the retired product name, may reappear in user-facing .mdx/.md/.tsx. The spec had been arbitrating this across a dozen content files — allowing legitimate technical tokens (repo paths like cockpit/ag-ui/interrupts, package names like @threadplane/cockpit-registry, Nx targets like serve:cockpit) while barring the bare product name. The cockpit/ workspace is still very much alive, so the source of that leakage remains in the tree.

public-copy.spec.ts does not backstop either one — it covers barred absolute claims, telemetry positioning and retired docs routes.

It also takes a long-standing annoyance with it. The file resolved its roots with join(process.cwd(), 'apps/website') rather than the sibling convention resolve(__dirname, '../..'), so it doubled the prefix into apps/website/apps/website and reported five red herrings whenever vitest ran from anywhere but the repo root. Three plan documents carry workaround notes about exactly that; they are historical records and are left as-is.

@threadplane/cockpit-registry stays — eight other website files import it.

Test Plan

  • npx nx test website green
  • npx nx lint website — 0 errors
  • tsc --noEmit — no orphaned references
  • Confirmed nothing else in the repo imports the spec

🤖 Generated with Claude Code

The cockpit → unified-docs migration is finished: no cockpit/**/docs/guide.md
walkthroughs remain, no capability descriptor declares docsAssetPaths, and
cockpit.threadplane.ai appears nowhere in the website outside specs asserting
its own absence.

This deliberately gives up two guards that were still live, so recording what
goes unenforced from here:

- cockpit.threadplane.ai may reappear in website links and authored content.
- "Cockpit", the retired product name, may reappear in user-facing .mdx/.md/
  .tsx. The spec had been arbitrating this across a dozen content files,
  allowing legitimate technical tokens — repo paths like cockpit/ag-ui/
  interrupts, package names like @threadplane/cockpit-registry, Nx targets
  like serve:cockpit — while barring the bare product name. The cockpit/
  workspace is still very much alive, so the source of that leakage remains.

public-copy.spec.ts does not backstop either one; it covers barred absolute
claims, telemetry positioning and retired docs routes.

Also retires the cwd bug that made this file fail whenever vitest ran from
anywhere but the repo root: it resolved its roots with join(process.cwd(),
'apps/website') instead of the sibling convention resolve(__dirname, '../..'),
so a targeted run reported five red herrings.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
threadplane Ready Ready Preview Sep 9, 2026 4:03am UTC

Request Review

@blove
blove enabled auto-merge (squash) September 9, 2026 04:01

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@blove
blove merged commit 603df64 into main Sep 9, 2026
33 checks 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.

1 participant