Skip to content

chore(cleanup): apply codebase-design deep-module pass across the monorepo - #8549

Merged
waleedlatif1 merged 30 commits into
stagingfrom
chore/codebase-design-skill
Oct 2, 2026
Merged

waleedlatif1 merged 30 commits into
stagingfrom
chore/codebase-design-skill

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Deep-module cleanup pass (deletion test, single-adapter seams, pass-throughs) applied repo-wide: delete modules that fail the deletion test, remove single-adapter seams and one-line pass-throughs, and concentrate logic that was copied across callers into one module
  • Dead code removed (mostly orphaned by the mothership v1.0.0 cutover): lib/platform-context, workflow VFS use cases, unreachable Copilot table/workflow handlers, credential-group invite use cases, table group/column/import use cases, workspace-file orchestration, scheduled-tasks/utils, ~150 unused exports and the mocks/tests that only covered them
  • Removed the dead isInternalRequest admission bypass in v2 routes — nothing in production marks requests internal, so every request already took the rate-limited path
  • Deepened shared modules:
    • resolvePrincipalWorkflowContext replaces 16 copies of the workflow context resolver
    • getCredentialAccessToken replaces 13 copies of the credential→token lookup in webhook subscriptions; toRecord replaces 26 providerConfig casts
    • buildJsonSchemaResponseFormat replaces the response_format literal in 11 providers
    • escapeLikePattern (@sim/utils/string) replaces 6 LIKE-escape copies; file sniffer reuses zip-guard EOCD parsing
    • Subflow node-id codec exports its functions directly; ~25 forwarders removed
    • App now uses @sim/workflow-persistence subflow helpers, @sim/auth/principal anonymous user, and @sim/workflow-renderer tile color instead of local copies
    • Shared @sim/utils helpers replace ~40 inline toRecord/isRecordLike/sleep/toError copies
  • Behavior change: a malformed (non-object) webhook providerConfig now reads as {}
  • Follow-up: the table-update background task now has no producer; kept one release so in-flight runs drain

Type of Change

  • Chore / refactor (no intended behavior change)

Testing

  • bunx turbo run type-check (26/26), bun run lint, bun run check:audits (54/54), block-registry check, docs-manifest:check
  • Full apps/sim vitest suite (3,255 files, 34,516 tests) and all package test suites (18/18)
  • Six independent audits re-verified reachability of every deletion (string ids, dynamic imports, mocks, Chat tool catalog) and byte-identical behavior of every consolidation; their fixes are included

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

🤖 Generated with Claude Code

- import subflow helpers from @sim/workflow-persistence/subflow-helpers
- drop env-capabilities and service-account-metadata re-export shims
- use isWorkflowBlockProtected in block-enablement
- move anonymous user identity into @sim/auth/principal
- reuse isLightTileColor from @sim/workflow-renderer/tile-icon-color
- use @sim/utils sleep/getErrorMessage in sim-cli (bundled)
- remove dead normalizeSandboxProvider export
Delete test-only Copilot/executor use cases (bulk table rows by filter,
credential delete-many, credential-group invite send/link, sandbox and
connected-accounts adapters) with their operation entries, the unused
public API route wrapper, parseToolRequest, the invitation management
error policy, the execution invitation rate limit, and dead table/chat
route helpers.
…rkflow context resolver

- Delete unreachable platform-context, workflow VFS, deployment-overview, chat
  undeploy, and Copilot block-output/upstream-reference use cases plus their
  workflowOperations entries
- Delete dead fetch-deadline and scheduling utils and unused exported helpers
- Add resolvePrincipalWorkflowContext and use it at the 16 identical resolvers
- Share processCodeFailure between the Daytona and E2B adapters
- Use escapeRegExp and generateId in place of inline equivalents
…mutation handlers, and param types

chore(cleanup): drop unused billing client usage-pill and plan-view exports
@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Oct 1, 2026 11:58pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High risk] Reorganizes imports and moves code across module boundaries.

The changes since the previous review appear safe to merge.

Summary

The PR removes unused modules and pass-throughs while consolidating shared workflow, webhook, provider, and utility logic. Since the previous review, it also removes the codebase-design skill and corrects an application-graph test expectation.

Reviews (3) · Last reviewed commit: "chore(skills): drop vendored codebase-de..."

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 482 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.

Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 478 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.

Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit f7b47bc into staging Oct 2, 2026
27 of 28 checks passed
@waleedlatif1
waleedlatif1 deleted the chore/codebase-design-skill branch October 2, 2026 00:00

This branch was successfully deployed

1 active deployment
Preview — 9abbf176 Deployed Oct 1, 2026 by vercel[bot]
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