Repository navigation
Description
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:
- Governance › Models: turn on the model endpoints.
- 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.
- 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_idisNOT 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
- 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.
- 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.
- Edit a grant in place (expiry, evidence), recorded in the audit log.
- 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.
- 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
tale-code-bot commentedon Oct 31, 2026
This issue is split into five parts for the agents' development cycle (task TALE-225):
feat/model-api-grant-notice. Its commit closes this issue when it reachesrelease/0.6.SSO and SCIM groups as a source of grants wait until (c) lands.
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
tale-code-bot commentedon Oct 31, 2026
Landed on
release/0.6with 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.6was then rebased ontomaindf6105c at 11:25Z, where this commit is now 7ef234c. It ships with 0.6.0. GitHub closes an issue only for a commit onmain, so the feature-train role (TALE-239) closes it.feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
3 remaining items
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off
feat(platform): say in the grant dialog when model endpoints are off