Skip to content

feat(workspace): steward lookups need a signed-in session; the task-owner limit is stated (abilityai/trinity-enterprise#1165) - #4394

Closed
dolho wants to merge 1 commit into
devfrom
feature/ent1165-people-scope
Closed

dolho wants to merge 1 commit into
devfrom
feature/ent1165-people-scope

Conversation

@dolho

@dolho dolho commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

The public half of abilityai/trinity-enterprise#1165. Merge this one first: the enterprise PR reads the new field, and its CI checks out public dev.

  • PortalPrincipal.is_interactive (client_portal/portal_auth.py): true only for a platform person in a JWT session, decided by the one predicate dependencies.is_interactive_principal. Every MCP key (user-scoped, system, ops) is false. A principal with no readable scope also fails closed. The field is last and defaults to false, so every existing positional construction keeps its meaning.
  • Edit dialog: an existing project's steward is now looked up through the project-scoped read (GET /projects/{id}/people?purpose=steward). The create dialog keeps the company read.
  • MCP create_project_task / update_project_task now describe the owner rule the server enforces: the creator or a member, or role:<id>. Before, they said "an email or a name".
  • Error copy for owner_not_on_project, invalid_owner and session_required.

Changes

  • src/backend/client_portal/portal_auth.py, plus tests/unit/test_ent1165_portal_interactive.py (a session, user/system/ops keys, an unreadable scope, the default)
  • src/frontend/src/components/portal/projects/ProjectCreateModal.vue, projectsUtils.js, plus a mount test in workspaceProjectsPeople.mount.spec.js
  • src/mcp-server/src/tools/projects.ts
  • docs/user-docs/sharing-and-access/workspace-projects.md

No submodule bump. A follow-up chore(enterprise) PR bumps the pointer after the enterprise PR merges.

Test Plan

  • tests/unit/test_ent1165_portal_interactive.py: 6 passed. The neighbouring Workspace-principal tests also pass (38 in total).
  • Frontend project specs: 17 files, 187 tests passed
  • MCP: tsc --noEmit clean; src/tools/projects.test.ts 24/24
  • Pre-PR code review: 8 findings, all addressed (most of them in the enterprise PR)

Refs abilityai/trinity-enterprise#1165

🤖 Generated with Claude Code

…wner limit is stated (Abilityai/trinity-enterprise#1165)

- PortalPrincipal.is_interactive: a platform person in a JWT session
  (dependencies.is_interactive_principal; every MCP key and an unreadable
  scope are False). The enterprise projects module offers its company-wide
  people reads only to such a principal.
- the Edit dialog looks a steward up through the project-scoped read
  (purpose=steward); the create dialog keeps the company read
- MCP create/update_project_task describe the owner rule the server now
  enforces (creator or member, or role:<id>)
- error copy for owner_not_on_project / invalid_owner / session_required

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dolho dolho added the ui PR touches the frontend UI — triggers Playwright e2e tests label Nov 9, 2026
@dolho

dolho commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Paired enterprise PR (draft, needs this one on dev): abilityai/trinity-enterprise#1192

@dolho

dolho commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by the combined Projects epic PR #4395 (paired with abilityai/trinity-enterprise#1194), which contains this PR's commits unchanged. Closing so review focuses there.

@dolho dolho closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant