Skip to content

perf(platform): page the MCP project list and the settings lists #5203

Closed

Description

@tale-code-bot

Split from #5193, which was split from #5156 (item 4 of 7 of #4708). The change for #5193 (TALE-283, branch perf/join-readable-projects-readers, on its way to feature-train) joins readableProjectsSql in the document search, the create-task fallback and the chat hand-over; this issue takes the MCP and settings doors.

What the reads do now

  • list_projects (listProjectsTool in services/platform/backend/domains/mcp/platform-tools.ts) reads every project the caller may read with listProjects and filters them by name in memory. It then reads every automation of the organization to name the ones installed in each project.
  • The settings resources in services/platform/backend/domains/projects/settings-resource.ts read every project the caller may read with their own readableProjectIds (listProjects(…, { summary: true })) on every page:
    • the agent list (agentIds) then reads the agents one project at a time;
    • the project instructions list pages over that whole id list.

What to do

  • list_projects: read one bounded page of the readable projects, searching the name on the server, and read only the automations installed in that page's projects.
  • The settings lists: page in one statement that joins readableProjectsSql, with a keyset cursor.
  • Keep each door's rule for archived projects.

Done means:

  • neither door reads an unbounded project list, and neither sends the caller's whole project-id list as ANY(<ids>);
  • tests cover the visibility rules (PROJ-R1, PROJ-R2) through the join.

Activity

  1. added
    agent-ready
    on Oct 31, 2026
  2. added
    perf
    on Oct 31, 2026
  3. added a commit that references this issue on Oct 31, 2026
    41cd234
  4. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    CollaboratorAuthor

    Landed on release/0.6 with feature train #5221 (merged by rebase on 2026-10-31 at 20:26:51 UTC) as commit a579aaf (perf(platform): page the MCP project list and the settings lists). It ships with Tale 0.6.0. GitHub closes issues only for commits on main, so the feature-train role closes this one. Task: TALE-288.

  5. 20 remaining items

  6. added 11 commits that reference this issue on Nov 4, 2026
    2249a3c
    67553ee
    6677d1a
    2e11741
    7d9cd9d
    b07500d
    e828c19
    03d0e61
    3fa2015
    e70071c
    f42151b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyperf

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions