Skip to content

Remove 12 AgentManager passthrough methods - #622

Closed
selfcontained wants to merge 1 commit into
mainfrom
agt_ef68ed9c9ebe/job-debt-collector-b6072826
Closed

Remove 12 AgentManager passthrough methods#622
selfcontained wants to merge 1 commit into
mainfrom
agt_ef68ed9c9ebe/job-debt-collector-b6072826

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • Removed 12 passthrough methods from AgentManager that simply delegated to feedbackQueries, personaReviews, and telemetry modules. Callers in mcp-handlers.ts and routes/persona-reviews.ts already have pool access and now call these modules directly.
  • Manager.ts shrinks by 130 lines (net -36 lines including the test updates).
  • Eight passthroughs remain for callers in routes/mcp.ts and routes/feedback.ts that lack pool in their deps — queued for the next tech-debt run.

Removed methods:createPersonaReview, updatePersonaReviewStatus, completePersonaReview, submitFeedback, listFeedbackByParentGrouped, updateFeedbackStatusByParent, countFeedbackForAgent, submitReviewResolution, getReviewResolutions, listResolvedFeedbackForRound, cancelReviewRecheck, listMedia

Next run: Add pool to routes/mcp.ts and routes/feedback.ts deps, then remove the remaining 8 passthroughs.

Test plan

  • pnpm run check — TypeScript type checking passes
  • pnpm run test — all Vitest unit tests pass (1437 passed)
  • pnpm run test:e2e — 118 passed, 1 pre-existing flake (agent-routing deep-link, unrelated)

🤖 Generated with Claude Code

Callers in mcp-handlers.ts and persona-reviews.ts already have pool
access and can call the underlying modules (feedbackQueries,
personaReviews, telemetry) directly. This eliminates the passthrough
layer for those call sites and shrinks manager.ts by 130 lines.
Eight passthroughs remain for callers in routes/mcp.ts and
routes/feedback.ts that lack pool in their deps — those are deferred
to the next tech-debt run.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for freeto 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

@selfcontained