Skip to content

Improvement: let a coding agent change the other 22 pages of Settings, with a person finishing what needs a secret #4930

Open

Description

@yannickmonney

Summary

The owner decided on 2026-10-08 that over MCP an agent can change everything the signed-in person's role allows, with every write audited as coming through MCP. Today 10 of the 34 pages of Settings can be changed that way, 2 are deliberately not offered, and 22 have no way yet. Some of those 22 are plain reads or writes; a few involve a secret or an act that should stay with a person at the keyboard. This issue lays out which is which, so the order and the exceptions can be decided.

Anchors are at main da3b98b730 (2026-10-13).

What the repo says today

  • The 34 pages: packages/shared/src/schemas/settings-kinds.ts:20-55. The kinds that cover pages: provider, provider-credential, governance (content models, policies and limits, security monitoring, guardrails, sandboxes, API models, enterprise SSO), knowledge-embedding, branding, plus project, task and approval kinds (13 kinds in settings-kinds.ts:124-).
  • Covered pages (10): providers, sandboxes, governance/content-models, governance/policies-limits, governance/security-monitoring, governance/guardrails, api/models, enterprise-sso, data-residency, branding.
  • Not offered on purpose (2), with the reason written in the code: api/mcp (it shows the endpoint itself) and api/agents (an agent that could disconnect agents could cut off the people supervising it). services/platform/backend/domains/mcp/settings/coverage.ts.
  • Planned (22), each with the sentence the repo uses for what an agent cannot do there (coverage.ts, SETTINGS_PLANNED). A test holds the settings rail to these lists, so a new page cannot ship without its MCP story.
  • The endpoint is at 39 tools, and a guard allows at most 40 because clients keep about that many (services/platform/lib/mcp/tools.test.ts:548-558).

The 22 pages, by what the repo says is missing

Kind of gap Pages What the entry says
Reads usage, governance/logs, metrics/usage, metrics/feedback, metrics/chat-health, metrics/external-turns, metrics/automations, metrics/projects "No kind reads … yet" (a person's own usage and budget status, the audit log, each metrics figure set)
Changes without a secret account (display name), personalization (custom instructions, chat model), notifications (preferences), organization (profile), teams, members (roles, removals, invitations), skills, governance/competences, governance/legal-hold, governance/data-subject-requests, governance/trash Some entries add what stays in Tale: deleting the organization, transferring ownership, passwords, passkeys and authenticators
Secrets involved connectors (credentials, sign-in apps), api/rest (revoking API keys), api/webdav (revoking app passwords) The secret is entered or shown once in Tale

The concept the design pass proposed for what needs a person

A single "agent request": an agent asks, a person finishes in Tale. One lifecycle (expiry, confirm as the confirming person, decline, notify, audit) and one polling tool. It would cover entering a secret, minting a credential, acts that need a fresh sign-in (deleting the organization, transferring ownership) and, later, subscriptions (#4931). It is not on main: agent_requests and get_agent_request appear only in a test that guards the server instructions (services/platform/lib/mcp/instructions.test.ts).

Options

  1. Page by page, plain kinds first. Reads, then the changes without a secret, leaving the pages with a secret as planned until the agent-request concept exists.
  2. Agent requests first, then the pages that need them.
  3. Keep some pages out on purpose, as api/agents is, where an agent changing the page would remove the person's own oversight (revoking API keys, ownership, legal hold are candidates). Decide per page whether "everything the role allows" includes them.

Constraints

  • Every write checks the caller's live role and is audited with via: mcp (feat(platform): read and change organization settings over MCP #4685); a scope never widens a role.
  • A coding agent signed in by OAuth holds tale:settings.read or tale:settings.write only if the person granted it at consent (services/platform/lib/shared/agent-access.ts).
  • The inventory has one slot left (39 of 40), so reads should be folded into existing tools or the limit revisited.
  • Instructions and the skill name only tools that exist.

Questions

  • Is "everything the role allows" still the target for all 22, or should some stay in Tale on purpose?
  • Which pages do people most want an agent to set up first (organization, members, connectors)?

Related

#4931, #4685, #4925

Activity

  1. added
    needs discussion
    improvement
    service: platform
    on Oct 13, 2026
  2. yannickmonney commented on Nov 14, 2026

    @yannickmonney
    ContributorAuthor

    Decision

    Rule: over MCP an agent may still change everything the signed-in person's role allows, on every page of Settings. A closed list of exceptions holds whatever the role. It applies act by act, on the pages already covered as well as the 22 new ones:

    1. Secrets never cross the door. Entering a secret, or minting a credential the person sees once, becomes an agent request: the agent asks, and the person who asked finishes it in Tale.
    2. Authentication and the organization's existence stay in Tale, with no agent path. This covers a person's passwords, passkeys and authenticators, resetting another member's sign-in factors, deleting the organization and transferring ownership. It also covers lowering the organization's sign-in security: turning off a required second factor, or changing the enterprise SSO identity provider or SSO enforcement. Raising sign-in security stays open.
    3. Acts that remove the people or the evidence overseeing an agent stay in Tale, with no agent path:
      • granting, inviting into, demoting from or removing the admin or owner tier
      • requesting or approving a legal-hold release, closing a legal matter, and narrowing or removing a hold
      • filing an erasure request and changing the data subject request policy
      • purging the trash for good
      • deciding any four-eyes approval (MCP-R6)

    The list is closed. Automation-approval allowances (MCP-R38/R39) stay as they ship: a critical-risk change that an admin's agent may make. api/mcp and api/agents stay not exposed. coverage.ts gains SETTINGS_PERSON_ONLY. Over MCP such an act is refused with SETTINGS_TALE_ONLY and a hint to the page.

    Questions

    • Is "everything the role allows" still the target? Yes. Every page gets coverage, and only the acts listed above stay with a person.
    • Which pages first? First, close the sign-in gap on the governance and enterprise SSO pages that are already covered. Then organization profile, teams and members, then the reads, then personal settings, skills and competences, then the governance tail. Connectors, API keys and WebDAV come after agent requests.
    • What about the 40-tool limit? Reads go through one tool, get_report, which replaces get_automation_metrics (the count stays at 39). get_agent_request takes slot 40. apply_settings creates an agent request by answering needs-person with a confirm link.
    • What about connections with no person behind them? Team, project and organization keys get no agent requests and no personal settings. They are refused with SETTINGS_TALE_ONLY.
    • What may reads reveal? Names only. The audit-log report carries no email addresses or IPs, and data subjects appear only as a masked identifier with the request's type, status and dates.
    • What does this mean for Decision: should a coding agent be able to ask to add its own AI subscription over MCP, and what must be settled first? #4931? It adds no tool, and it goes through needs-person on provider-credential, amending MCP-R36. A lane where the agent passes the credential would need Decision: should a coding agent be able to ask to add its own AI subscription over MCP, and what must be settled first? #4931 to amend MCP-R12 explicitly. Its legal and owner questions stay open there.

    Rationale
    The real risks are a secret passing through an agent's conversation, account takeover, and a prompt-injected agent removing the people or the evidence that oversee it. Account takeover is reachable today through the SSO identity provider and the 2FA requirement on pages that are already covered, so the exceptions apply to every page. A closed list keeps the rule consistent with the approval allowances that already ship, and testable. Closing a matter or narrowing a hold is a release by another name. Acts that add protection stay open because their failure mode is safe. Only the requesting person may confirm an agent request, signed in within the last 10 minutes.

    Agent-request lifecycle: pending; expires after 15 minutes; confirmed or declined by the requester only; admins notified; every step audited via: mcp. The secret is never in the request, the audit row or a tool answer.

    Units (all on main)

    1. Spec rule MCP-R44 and SETTINGS_PERSON_ONLY (S)
    2. Lowering sign-in security on the covered governance and enterprise SSO pages becomes person-only (M)
    3. organization-profile and team kinds (M)
    4. member kind: roles up to developer, removing non-admins, invitations (M)
    5. get_report replaces get_automation_metrics, with data minimisation (L)
    6. A person's own settings (M)
    7. skill and competence kinds (M)
    8. Trash restore and the legal-matter kind (M)
    9. Agent requests and get_agent_request (L)
    10. connector kind (M; needs 9)
    11. API keys and WebDAV passwords (M; needs 9)

    Cross-issue amendments (decisions taken together with #5411, #4931):

  3. added
    agent-ready
    and removed
    needs discussion
    on Nov 14, 2026
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-readyimprovementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions