Skip to content

chore: flush dead app-ops + SaaS-scaffold code (~21.6k lines) - #30

Merged
sandstream merged 1 commit into
mainfrom
chore/flush-dead-code-part2
Jun 22, 2026
Merged

sandstream merged 1 commit into
mainfrom
chore/flush-dead-code-part2

Conversation

@sandstream

Copy link
Copy Markdown
Owner

What

Second dead-code sweep (after the marketplace cluster in #27). Removes 59 files / ~21.6k lines with zero importers (static and dynamic) and zero cli.ts/mcp-server references — exercised only by their own tests.

App-ops / observability (runtime-infra, off-mission for a git clone → working dev env CLI):
analytics-service, sla-monitor, alert-rules-engine, apm-instrumentor, datadog-adapter, sentry-adapter, redis-adapter, cdn-adapter, error-tracker, image-optimizer, query-optimizer, cache-manager, compression-manager.

Generated SaaS scaffold (duplicates real, wired modules — e.g. governance.ts, audit.ts, mcp-server.ts are the live ones):
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 (+ paired *-model.ts + all *.test.ts).

Why

Off-mission and unreachable. kit is the deterministic, local-first setup + gate — not an APM/CDN/SaaS-marketplace backend. Removing it shrinks attack surface and sharpens positioning ahead of going public.

Verification

  • No external importers: import-graph analysis confirms nothing outside the removal set references any member; a build after removal has no Cannot find module dangling references.
  • Net green: full suite goes from 34 failing → 0 failing — the 34 pre-existing failures were all inside these dead modules' own tests. (2278 → 1591 tests; 0 fail.)

Note

Web-search (check-web-search + [web.search] + MCP tool + validation/dynamic-schema) is intentionally not in this PR — it's live (CLI/MCP/output wired), so removing it is a separate de-wiring change with a different risk profile.

🤖 Generated with Claude Code

https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg


Generated by Claude Code

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.

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 e89faca into main Jun 22, 2026
15 checks passed
@sandstream
sandstream deleted the chore/flush-dead-code-part2 branch June 22, 2026 07:59
@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