Skip to content

chore/remove autotriage code - #8151

Merged
pandemicsyn merged 2 commits into
mainfrom
chore/remove-autotriage-code
Oct 19, 2026
Merged

pandemicsyn merged 2 commits into
mainfrom
chore/remove-autotriage-code

Conversation

@pandemicsyn

@pandemicsyn pandemicsyn commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes the Auto Triage service end to end. This PR intentionally leaves the database schema untouched; the stacked PR #8152 drops the table.

Removed:

  • Cloudflare worker services/auto-triage-infra and its TriageOrchestrator Durable Object.
  • Web tRPC routers (autoTriage, personalAutoTriage, organizations.autoTriage), pages, components, and internal API routes.
  • GitHub issues webhook handling and the now-unused issue payload schema.
  • Milvus collection setup and the auto-triage-only mistral-text embedding provider.
  • Auto-triage values from shared bot/feature/origin enums, env examples, docs, dev tooling, Knip config, and MCP catalog/skill.

Stack:

Verification

Automated checks run:

  • scripts/typecheck-all.sh --changes-only
  • tsgo --noEmit -p apps/web/tsconfig.json
  • pnpm --filter @kilocode/storybook run typecheck
  • pnpm --filter web test -- src/lib/integrations/platforms/github/webhook-handler.test.ts (43 tests)
  • pnpm --filter cloud-agent-next exec vitest run src/session-plane.test.ts src/session-prepare.test.ts src/session/session-prepare.test.ts (498 tests)
  • Targeted oxlint for web, cloud-agent-next, and db
  • pnpm format:changed and git diff --check
  • MCP catalog and skill regenerated with the repo scripts.

Visual Changes

The Auto Triage sidebar entries are removed. No replacement UI.

N/A

Reviewer Notes

Manual Cloudflare cleanup

The worker is auto-deployed from its workspace directory, so deleting it from the repo removes it from the CI matrix. The following Cloudflare resources still need manual cleanup:

  • Worker: kilo-auto-triage-worker.
  • Durable Object namespace: TriageOrchestrator (binding TRIAGE_ORCHESTRATOR). Deleting the worker removes the namespace; confirm no residual namespace/storage.
  • Worker secrets: INTERNAL_API_SECRET, BACKEND_AUTH_TOKEN (from AUTO_TRIAGE_AUTH_TOKEN), optional SENTRY_DSN.
  • Worker vars: SELF_URL, API_URL, CLOUD_AGENT_URL, ENVIRONMENT.

No KV, D1, R2, Queue, route, or custom-domain bindings are declared in the worker's wrangler.jsonc.

Other manual cleanup

  • Drop the Milvus collection named auto_triage_tickets.
  • Remove AUTO_TRIAGE_URL and AUTO_TRIAGE_AUTH_TOKEN from Vercel/deployment environments.
  • Remove the auto-triage-feature feature flag.
  • Remove the kilo-triaged GitHub issue label from repositories.
  • Optionally remove the issues GitHub App webhook subscription if no other service uses it.
  • Inert DB leftovers: agent_configs rows with agent_type = 'auto_triage' and bot-auto-triage-* bot users/memberships.

The shared MISTRAL_API_KEY and Milvus credentials are still used by other services, so they must stay.

@kilo-code-bot

kilo-code-bot Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

This PR removes the Auto Triage worker, tRPC routers, GitHub issues webhook handling, Milvus collection setup, and related env/config/docs, while intentionally retaining the DB schema for stacked PR #8152; I found no dangling references, broken imports, or runtime regressions in the changed code. Review was static: test suites were not re-run in this read-only environment.

Files Reviewed (88 files)
  • .env.local.example
  • .kilo/skills/kilo-mcp/SKILL.md
  • ENVIRONMENT.md
  • apps/storybook/stories/Sidebar.stories.tsx
  • apps/web/.env.development.local.example
  • apps/web/.env.test
  • apps/web/knip.ts
  • apps/web/src/app/(app)/auto-triage/AutoTriagePageClient.tsx
  • apps/web/src/app/(app)/auto-triage/page.tsx
  • apps/web/src/app/(app)/components/OrganizationAppSidebar.tsx
  • apps/web/src/app/(app)/components/PersonalAppSidebar.tsx
  • apps/web/src/app/(app)/organizations/[id]/auto-triage/AutoTriagePageClient.tsx
  • apps/web/src/app/(app)/organizations/[id]/auto-triage/page.tsx
  • apps/web/src/app/api/internal/triage-status/[ticketId]/route.ts
  • apps/web/src/app/api/internal/triage/add-label/route.ts
  • apps/web/src/app/api/internal/triage/check-duplicates/route.ts
  • apps/web/src/app/api/internal/triage/classify-config/route.ts
  • apps/web/src/app/api/internal/triage/post-comment/route.ts
  • apps/web/src/components/auto-triage/AdminTestingCard.tsx
  • apps/web/src/components/auto-triage/AutoTriageConfigForm.tsx
  • apps/web/src/components/auto-triage/AutoTriageTicketsCard.tsx
  • apps/web/src/components/chatgpt/ChatGptSharedServicesCard.tsx
  • apps/web/src/lib/agent-config/core/owner.ts
  • apps/web/src/lib/auto-triage/** (all deleted)
  • apps/web/src/lib/bot-users/types.ts
  • apps/web/src/lib/embeddings/embedding-providers.ts
  • apps/web/src/lib/integrations/core/constants.ts
  • apps/web/src/lib/integrations/platforms/github/webhook-handler.test.ts
  • apps/web/src/lib/integrations/platforms/github/webhook-handler.ts
  • apps/web/src/lib/integrations/platforms/github/webhook-handlers/index.ts
  • apps/web/src/lib/integrations/platforms/github/webhook-handlers/issue-handler.ts
  • apps/web/src/lib/integrations/platforms/github/webhook-schemas.ts
  • apps/web/src/lib/user/index.ts
  • apps/web/src/routers/auto-triage/auto-triage-router.ts
  • apps/web/src/routers/organizations/organization-auto-triage-router.ts
  • apps/web/src/routers/organizations/organization-router.ts
  • apps/web/src/routers/personal-auto-triage-router.test.ts
  • apps/web/src/routers/personal-auto-triage-router.ts
  • apps/web/src/routers/root-router.ts
  • apps/web/src/scripts/auto-triage/setup.ts
  • apps/web/src/scripts/usage/lib/mock-dimensions.ts
  • dev/local/services.ts
  • docs/token-issuance-policy.md
  • packages/app-shared/src/organizations/model-audience.ts
  • packages/web-shared/src/lib/ai-gateway/openai-chatgpt/store.ts
  • packages/web-shared/src/lib/feature-detection.ts
  • pnpm-lock.yaml
  • services/auto-triage-infra/** (all deleted)
  • services/cloud-agent-next/src/container-usage-context.ts
  • services/cloud-agent-next/src/session-plane.test.ts
  • services/cloud-agent-next/src/session-plane.ts
  • services/cloud-agent-next/src/session-prepare.test.ts
  • services/cloud-agent-next/src/session/session-prepare.test.ts
  • services/cloud-agent-next/test/integration/sandbox-control-v2-routes.test.ts
  • services/cloud-agent-next/test/postgres/container-concurrency.postgres.test.ts
  • services/kilo-mcp/catalog.json

Reviewed by deepseek-v4.1-flash-1017 · Input: 124.3K · Output: 26.5K · Cached: 3.5M

Review guidance: REVIEW.md from base branch main

@pandemicsyn
pandemicsyn added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit e9896c6 Oct 19, 2026
96 checks passed
@pandemicsyn
pandemicsyn deleted the chore/remove-autotriage-code branch October 19, 2026 20:54
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