Skip to content

chore: flush dead marketplace/monetization cluster (~8.8k lines) - #27

Merged
sandstream merged 1 commit into
mainfrom
chore/flush-marketplace-cluster
Jun 22, 2026
Merged

sandstream merged 1 commit into
mainfrom
chore/flush-marketplace-cluster

Conversation

@sandstream

Copy link
Copy Markdown
Owner

What

Removes 8,799 lines / 25 files of orphaned, off-mission code: a creator-economy / marketplace SaaS backend embedded in the local-first dev CLI.

  • Services (11): payout-service (Stripe Connect, 20% commission, monthly-payout cron, grants), author-dashboard, author-notifications, author-verification, badge-system, partner-service, certification-workflow-service, moderation-system, beta-program-service, plugin-registry-service (marketplace), team-service.
  • Paired models (3): certification-workflow-model, plugin-registry-model, team-model.
  • Plus their *.test.ts.

Why

  • Dead. Zero non-test importers (static and dynamic import()) and zero cli.ts references — exercised only by their own unit tests. Not reachable from the CLI or MCP server.
  • Off-mission / wrong repo. A payout/KYC/commission/moderation backend belongs in a separate service (the marketplace/site backend), not in git clone → working dev env. It dilutes the "deterministic, local-first setup + gate" positioning.
  • Security. Going public, every line is attack surface. Removing a payouts/PII/moderation layer that nothing calls shrinks surface and strengthens the "tight security tool" story.

Verification

  • No dangling refs: a build after removal shows no Cannot find module for any removed file (nothing outside the set imported them — verified by import-graph analysis).
  • No new test failures: full suite is 34 failing both before and after this change (the 34 are pre-existing environment failures — zod/@types/node not installed in this sandbox, ~2k tsc errors unrelated to this PR). Baseline origin/main: 2278 tests / 34 fail → this branch: 1981 tests / 34 fail (297 fewer = the removed cluster's own tests). Zero regressions.

Note

id-generator.ts keeps unused payout()/grant() helpers (harmless; trimming them is out of scope). Docs referencing the marketplace may want a follow-up sweep.

🤖 Generated with Claude Code

https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg


Generated by Claude Code

Remove ~8.8k lines of orphaned, off-mission code: a creator-economy /
marketplace SaaS backend (author payouts via Stripe Connect, revenue/commission,
grants, badges, partner/team/certification/moderation/beta-program, marketplace
plugin-registry service) embedded in the local-first dev CLI.

Verified dead: zero non-test importers (static or dynamic), zero cli.ts
references — exercised only by their own unit tests. This logic belongs in a
separate backend service, not the `git clone -> working dev env` gate. Removing
it shrinks attack surface and sharpens the tool's positioning.

Removes 11 services + 3 paired models + their tests (25 files).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
@github-actions

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit eb6295c into main Jun 22, 2026
15 checks passed
@sandstream
sandstream deleted the chore/flush-marketplace-cluster branch June 22, 2026 07:59
sandstream added a commit that referenced this pull request Jun 22, 2026
Second dead-code sweep after the marketplace cluster (#27). Removes 59 files
with ZERO importers (static or dynamic) and ZERO cli.ts/mcp-server references —
exercised only by their own tests:

- App-ops / observability (off-mission for a dev-setup CLI): analytics, sla-monitor,
  alert-rules-engine, apm-instrumentor, datadog/sentry/redis/cdn adapters,
  error-tracker, image-optimizer, query-optimizer, cache-manager, compression-manager.
- Generated SaaS scaffold (duplicates real, wired modules): mcp-kit-tools-service,
  multi-agent-workflow-service, agent-governance-service, autonomous-setup-service,
  agent-adapter-service, approval-service, audit-logging-service, ci-cd-publisher,
  documentation-generator, plugin-updates, security-hardening, migration-runner,
  resilience-tests, middleware/rate-limiter (+ their paired *-model.ts).

Verified: no file outside the set imports any member; build has no dangling
references. The full test suite goes from 34 failing (pre-existing, all inside
these dead modules' tests) to 0 failing — net green.


Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg

Co-authored-by: Claude <noreply@anthropic.com>
@sandstream sandstream mentioned this pull request Jun 22, 2026
sandstream added a commit that referenced this pull request Jun 22, 2026
Cut 1.13.0 from the 11 PRs merged since v1.12.0. Backfilled the CHANGELOG
entries that landed without one (full-disk-encryption check #26, secrets
validate + env diff #28, .gitignore shared-memory fix #24, ~30k-line
dead-code flush #27/#30) and dated the section. Minor bump: all additive
or dead-code removal, nothing breaking.
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