Skip to content

Improvement: give members a right in one place — from their member page, or to a whole team at once #5047

Closed

Description

@yannickmonney

Summary

A pilot organization finds it too complicated to give someone a right. Take letting members use Tale's models from their own tools (an acceptance requirement for them). Today that takes three places:

  1. Governance › Models: turn on the model endpoints.
  2. Governance › Competences › Grant competence: pick the member, pick "Call models over the API", an expiry and the evidence. This is done one member at a time.
  3. The member creates their personal key under Settings › API.

What a member may do comes from four places: their role (Settings › Members), policies (Governance › Policies and limits, for example skill sharing), switches (Governance › Models) and the competence register. Nothing shows them together. The Members page shows only the role. The register lives on a page called "Competences", which mixes platform rights with review qualifications.

What main does

Observed at main a71d0d92e9.

  • Each grant is a row for one member: app.competence_records.user_id is NOT NULL (services/platform/backend/db/migrations/0057_competence_records.sql:7-21).
  • The routes are list, grant and revoke (backend/domains/governance/routes.ts:217, :227, :258). There are no team grants and no editing.
  • The docs say: "A member holds each competence once at a time: to change its expiry or evidence, revoke the grant and grant it again." (docs/en/platform/admin/governance/competences.md)
  • Granting "Call models over the API" does nothing until the model endpoints are on, and the grant dialog does not say so.

Proposed

  1. Rights on the member's page. Settings › Members › a member gets a Rights section. It lists what the member can do and why ("through their role", "granted by … until …", "off for the organization"), with each platform right as a switch (with expiry) that writes the register behind the scenes.
  2. Grant to a team. A grant can name a team. Its current and future members hold the right while they are in the team, and the register shows team grants. Optionally, grants can come from SSO/SCIM groups.
  3. Edit a grant in place (expiry, evidence), recorded in the audit log.
  4. Prerequisites in the dialog. Granting "Call models over the API" while the endpoints are off says so, and links to or offers turning them on.
  5. Clearer names. Separate "Rights" (platform capabilities) from "Qualifications" in the UI and the docs.

Done when

  • An admin lets a whole team use the models from their tools in one dialog, and a new team member gets the right without another grant.
  • Each member's page shows their effective rights, with reasons.
  • Expiry is editable, and the audit log records grants, edits and revocations per member and per team.
  • The docs (competences, members and roles) are updated.

Scope for parallel work

This touches the governance competences (a schema for team grants, the routes, and grant resolution in holdsCapability, backend/domains/governance/competence.ts:146), the members page and the grant dialog. mayCreateApiKeys reads app.competence_records directly and must learn team grants too.

Related: #5040 (a project-creation right would add one more right to the same place), #5046 (which grants admit an API key, and where).

Activity

  1. added
    priority: medium
    improvement
    service: platform
    on Oct 23, 2026
  2. added
    agent-ready
    on Oct 29, 2026
  3. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    Collaborator

    This issue is split into five parts for the agents' development cycle (task TALE-225):

    SSO and SCIM groups as a source of grants wait until (c) lands.

  4. added a commit that references this issue on Oct 31, 2026
    4842169
  5. added 3 commits that reference this issue on Oct 31, 2026
    a10df8a
    757609d
    7ef234c
  6. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    Collaborator

    Landed on release/0.6 with feature train #5197 (#5197, rebased in at 2026-10-31 11:15:15Z) as 757609d (TALE-225, "feat(platform): say in the grant dialog when model endpoints are off"). release/0.6 was then rebased onto main df6105c at 11:25Z, where this commit is now 7ef234c. It ships with 0.6.0. GitHub closes an issue only for a commit on main, so the feature-train role (TALE-239) closes it.

  7. added 3 commits that reference this issue on Oct 31, 2026
    932c395
    f1dd7c9
    ca3a195
  8. 3 remaining items

  9. added 13 commits that reference this issue on Nov 2, 2026
    14f0ed1
    03cac63
    994d6c1
    bb5c915
    5b33b2c
    23f4b5a
    105489c
    2dcddb4
    1e8d4d6
    e725579
    228d4bf
    7ac53f1
    771ea21
  10. added a commit that references this issue on Nov 15, 2026
    bb22b0e
  11. added a commit that references this issue on Nov 23, 2026
    ece532d
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-readyimprovementpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions