Skip to content

feat(workspace): pick a steward agent with the project-management skills at creation (abilityai/trinity-enterprise#1169) - #4393

Closed
dolho wants to merge 1 commit into
devfrom
feature/ent1169-steward-at-creation
Closed

dolho wants to merge 1 commit into
devfrom
feature/ent1169-steward-at-creation

Conversation

@dolho

@dolho dolho commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

The public half of abilityai/trinity-enterprise#1169 (ruling R5 on ent#1137: the steward agent carries the library's project-management skill set). The backend is abilityai/trinity-enterprise#1190.

  • Create / Edit project dialog: a line under Steward says what picking that agent does:

    • it gets the project-management skills;
    • it already has them;
    • only its owner or an admin can give them (it can still be the steward);
    • they aren't available on this Trinity yet;
    • Trinity couldn't check.

    The line comes from the new steward-options read. Two lines are reserved so the dialog doesn't resize. In Edit, an unchanged steward is promised nothing, because only a changed steward is sent.

  • Steward card: says whether the agent steward holds the skills, and for a person steward what having no steward agent means. An older backend without the field shows no line.

  • MCP: create_project / import_project take an optional steward (an agent name).

  • Skill-set route: POST /api/agents/{n}/skill-sets/{set} now delegates to the existing skill_assignment_service.assign_set_and_deliver, the same sequence system apply already uses. The Workspace steward pick uses it too, so all three paths stay in step. The ent#753 writer census (tests/unit/test_ent753_assignment_hooks.py) now records the route as delegating. Behaviour and response are unchanged.

⚠️ The library half is still needed for end to end (abilityai/trinity-enterprise#589): the set must be declared in trinity-skills/catalog.yaml and the bundled pin bumped. Until then the dialog says the skills aren't available, and creating works.

No submodule pointer bump. A follow-up chore(enterprise): bump the submodule pointer will follow after #1190 merges.

Changes

  • src/frontend/src/components/portal/projects/ProjectCreateModal.vue, ProjectStewardCard.vue, projectsUtils.js (stewardSkillHint), stores/projects.js (fetchStewardOptions)
  • src/frontend/tests/unit/workspaceProjectsEnt1169.mount.spec.js: 18 tests
  • src/mcp-server/src/tools/projects.ts, client.ts, tools/projects.test.ts
  • src/backend/routers/skills.py, services/skill_assignment_service.py, tests/unit/test_ent753_assignment_hooks.py
  • docs/user-docs/sharing-and-access/workspace-projects.md

Test Plan

  • npx vitest run tests/unit/workspaceProjectsEnt1169.mount.spec.js: 18 passed
  • Every project/steward/skill spec under tests/unit/: 47 files, 728 tests passed
  • mcp-server: tsc --noEmit clean; projects.test.ts + act_as_agent.test.ts: 58 passed
  • tests/unit/test_ent530_skill_sets.py, test_ent596_skill_manager.py, test_ent753_assignment_hooks.py, test_ent1030_skills.py: 180 passed
  • Manual, with the enterprise PR deployed and the set declared: pick an owned agent and see it get the skills; pick someone else's and see it wait for its owner

Refs abilityai/trinity-enterprise#1169. This is a cross-repo issue, so it closes at release.

🤖 Generated with Claude Code

…lls at creation (Abilityai/trinity-enterprise#1169)

- Create/Edit project: a line under Steward says what picking that agent does
  (gets the project-management skills, already has them, only its owner or an
  admin can give them, or they aren't available on this Trinity yet), from the
  new steward-options read. Two lines reserved, so the dialog doesn't resize.
- Steward card: whether the agent steward holds the skills; for a person
  steward, what having no steward agent means.
- MCP create_project / import_project take an optional steward.
- POST /api/agents/{n}/skill-sets/{set} now delegates to the existing
  skill_assignment_service.assign_set_and_deliver (shared with system apply
  and the Workspace steward pick); the ent#753 site census records it.

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 (backend): abilityai/trinity-enterprise#1190

@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