Repository navigation
feat(workspace): Projects working-environment epic — steward access, roles, steward at creation, scoped people reads (abilityai/trinity-enterprise#1137) - #4395
Conversation
…t, with Ask for access / Give access (Abilityai/trinity-enterprise#1161) Renders the project read's steward_access (enterprise #1161): a member without the steward agent reads 'You can't use {agent} yet' with Ask for access (or its pending / declined line); the agent's owner reads which members can't use it, marked Asked, each with Give access. An older backend without the field renders the card as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…; members-only wording (Abilityai/trinity-enterprise#1161) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…there (Abilityai/trinity-enterprise#1132, part 1) - the header states the viewer's role and what it lets them do (creator / member / company viewer; archived says nothing changes until restored; a guest keeps the guest note) - where New task, the log form or Add from... is withheld from a non-member, one line in its place says who can add them (derived from the same inputs the control's v-if uses) - the Awaiting verification rule names who confirms: a member, or the steward agent by name when it is active on the project Ask to join (part 2) waits on the person-request schema ruling (#1137). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
…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]>
… into feature/projects-epic-1137
…ion' into feature/projects-epic-1137 # Conflicts: # docs/user-docs/sharing-and-access/workspace-projects.md # src/frontend/src/components/portal/projects/ProjectStewardCard.vue # src/frontend/src/stores/projects.js
…to feature/projects-epic-1137
…on branch (Abilityai/trinity-enterprise#1137) — TEST ONLY Lets one checkout of this branch run the whole feature. Before merge this is re-pointed to the enterprise merge commit on main (sprint step 10). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Paired enterprise PR: abilityai/trinity-enterprise#1194 |
…oject or task, mark it, preview what an agent reads (Abilityai/trinity-enterprise#1193) #1136 step A, the public half (the backend is enterprise #1193): - ProjectContext.vue on Files & reports (project briefs) and in a task's detail (that task's): Write a brief (markdown), Upload (.md/.txt, opened in the editor so it can be checked and marked before saving), the 'Agents on this project get this' mark with its shared notice, a preview of exactly what one agent read returns (first 200 KB, truncation named); edit and remove for the author or the creator role - a 'For agents' mark on each linked file - MCP read_project_context (200 KB per call, truncated/next_offset), get_project describes its context list; access registry entry; tool-count doc 177 -> 178 - docs: workspace-projects.md 'Context for agents' Co-Authored-By: Claude Opus 5.5 <[email protected]>
… into feature/projects-epic-1137 # Conflicts: # src/frontend/src/components/portal/projects/ProjectMaterial.vue # src/frontend/src/components/portal/projects/ProjectPage.vue # src/frontend/src/components/portal/projects/projectsUtils.js # src/frontend/src/stores/projects.js
… ent#1193 — TEST ONLY Co-Authored-By: Claude Opus 5.5 <[email protected]>
…/trinity-enterprise#1132 part 2, #1131 part 2) - Ask to join under the role line for a company viewer: "Asked to join. Waiting on <creator>", a decline's reason with Ask again; the role line and the withheld lines point at it when offered (an older backend keeps the earlier wording) - the room's agents dialog: Ask to add for a member who can't add; pending reads as waiting, one request at a time (blocked beside a pending one), Ask again after a decline - store: requestToJoin, requestAgent; user doc Backend: abilityai/trinity-enterprise feature/projects-epic-1137 f4fd5d6 (pre-empts the person-request ruling asked on #1137). Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the person-request lane — TEST ONLY Co-Authored-By: Claude Opus 5.5 <[email protected]>
/review + /validate-pr — REQUEST CHANGES (via the enterprise half), reviewed with abilityai/trinity-enterprise#1194 as one changeScope: head The blocking item is in the enterprise half: the import answers Evidence for this half
Before merge (already in the body): re-point Should fix (UI)
Smaller
|
webmixgamer
left a comment
There was a problem hiding this comment.
Requesting changes at 673eaf3d8: the enterprise import answers an agent's name as the project name (proof and fix on abilityai/trinity-enterprise#1194), plus one question for Eugene there. Full /review + /validate-pr report in the comment above; the later commits 26ed537d1/0656cfa62 are not covered.
…ks, preview truth, file-mark rule, steward-options race - ProjectContext: the editor and preview take a ticket per open, so a late read for an earlier brief never lands under another one (or over typed text); Save waits for the load. A refused mark puts the box back. An unmarked brief always reads 'Not marked for agents' (never the truncation banner). Limits and the preview cut come from the page read's context_limits. - ProjectMaterial: the 'For agents' box is offered only on a text file, to its linker or the creator (the server's rule); a refusal puts it back. - ProjectCreateModal: a steward-options reply for an earlier opening is dropped. - projectsUtils: export sameEmail (one email rule), isTextMime; agentPreview takes the server's budget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pload drops a pending Edit read (#4395 review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the review fixes — TEST ONLY Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w what it gets, Start opens the task's chat (Abilityai/trinity-enterprise#1195) - ProjectTaskStart.vue in the task detail: an agent picker (active on the project and on your list; who to ask when none), Preview what it gets (the server's exact first message), Start (one start per click; the first message sent once with the server's Idempotency-Key, only when the chat is empty; a 409 in-progress send still opens the chat; a stale preview reloads), Chat for this task. A done task or archived project offers no Start; a failed reload keeps the view. Preview reads take a ticket (a slower reply never lands). - clientPortal.startPortalChat accepts an idempotencyKey (header only when given) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… ent#1195 — TEST ONLY Co-Authored-By: Claude Opus 5.5 <[email protected]>
Update (2026-11-09): the PR now covers the whole buildable epic
|
…1137 # Conflicts: # docs/user-docs/integrations/mcp-server.md # src/backend/enterprise
…as no skills, copy - ProjectContext: Remove on a brief opens a ConfirmDialog that names the brief and says agents stop reading it; one click no longer deletes. - Steward card: the create/edit answer's `steward_skills` outcome (awaiting_owner / not_permitted / failed / unavailable) is kept by project in the store and shown in place of the generic line while it still describes the steward. "Pick an agent as steward in Edit project" only for a viewer who can edit. - Copy: the creator line no longer says the append-only log can be changed; Material's empty state doesn't say "Nothing added yet" above listed briefs. - Tests: the store's create/update run against the HTTP mock (URL + outcome). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review response, at
|
| # | Item | Status |
|---|---|---|
| 1 | Instant-apply marks stay on after a failed save | Fixed in 9d579ebc3: a refused mark puts the box back, in both Context and Material. |
| 2 | Remove deletes a brief in one click | Fixed. A ConfirmDialog names the brief and says agents stop reading it. |
| 3 | Edit can overwrite typed text | Fixed in 9d579ebc3 + c96605a07: each open gets a ticket, and the editor is read-only until its text loads. |
| 4 | "For agents" offered on non-text files | Fixed in 9d579ebc3: it's offered on text files only, to their linker or the creator. |
| 5 | steward_skills outcome never shown |
Fixed. The store keeps the create/edit answer's outcome per project. The Steward card shows the server's reason (awaiting_owner / not_permitted / failed / unavailable) while it still matches the steward and the set isn't held. |
| Copy | Log, Edit-project hint, Material empty state | Fixed. The creator line no longer calls the log editable. "Pick an agent as steward in Edit project" is shown only when can.edit. The empty state no longer says "Nothing added yet" when briefs are listed above it. |
| Tests | The store's actions were only ever mocked | Partly done. create/update now run against the HTTP mock: the URL is checked and the outcome is kept. The context actions are still mocked. |
| Naming | is_interactive vs is_platform_session |
Kept as is. It matches OSS dependencies.is_interactive_principal, which it mirrors. Renaming would touch both repos' tests for no change in behaviour. Happy to rename in a follow-up if you'd rather. |
CI: the earlier regression diff failure was test_1424_webhook_hardening, failing on httpcore.ConnectError: [Errno -3] Temporary failure in name resolution. That's a runner DNS flake: the test passes locally and nothing here touches webhooks.
Local: frontend project and steward specs plus both ratchets, 310/310. MCP projects + access-wiring + tool-count-docs, 50/50, tsc clean. OSS test_ent1165_portal_interactive / test_ent753 / test_1424 / test_models_centralized, 41 passed.
Still before merge: re-point src/backend/enterprise from the integration commit (78aee26) to the enterprise merge commit on main.
…1194 ruling) An agent can't make another agent the steward on its own say-so: the tools drop the `steward` parameter and say to ask with propose_project_changes, which the agent's primary approves. The backend refuses a stray name with 422 steward_needs_approval. Submodule -> 2997c90 (integration branch, TEST ONLY). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ruling applied (review item 2): an agent can't name another agent as steward without approvalAt
Not changed: a folder's |
… reaches the creator) — TEST ONLY Co-Authored-By: Claude Fable 5.2 <[email protected]>
Live-stack run found one real bug (fixed at
|
obasilakis
left a comment
There was a problem hiding this comment.
Reviewed with /review and /validate-pr at 73b12ec. Leaving a comment; I cannot approve yet.
Blocking
src/backend/enterprisepoints at4021286("TEST ONLY"), which is off enterprisemainand one commit behind ent#1194's head (64fbd6e). Re-point to ent#1194's merge commit after it lands. I approved ent#1194.- webmixgamer's CHANGES_REQUESTED at
673eaf3d8still stands; the later commits need their re-review.
Non-blocking findings
src/mcp-server/src/tools/projects.tsimport_project: the agent named asownerinproject.mdbecomes steward with no approval. The new ruling blocks that on create. Predates this PR (ent#673), but whoever made the ruling should confirm import may differ.- New MCP tool
read_project_contextcalls an enterprise endpoint (ent#1194), so no test in this repo covers it. - No closing keyword: the child issues (ent#1161, #1132, #1169, #1165, #1193, #1195, #1131) need
status-in-devset by hand after merge. - New capability is documented only under
docs/user-docs; nothing underdocs/memory/requirements/orfeature-flows/. Fine if the design lives in the enterprise repo.
Checked, no issue
- Skill-set route now calls
assign_set_and_deliver(services/skill_assignment_service.py:295): same steps, same order, governance check kept in the route. is_interactive(client_portal/portal_auth.py:136,275) fails closed for every API key; deleting the line turns a test red.test_ent1165+test_ent753: 33/33.- Task Start is double-click guarded and sends
Idempotency-Key, honoured atclient_portal/router.py:2232. - Frontend: no
v-html, no new raw colours. CI green at head.
…main (7f4026c) Replaces the TEST ONLY integration pointer. 7f4026c is the squash merge of Abilityai/trinity-enterprise#1194 on enterprise main; its tree is identical to the branch head this PR was tested against. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Review response, at
|
obasilakis
left a comment
There was a problem hiding this comment.
Rechecked at d785dcf. Submodule now points at ent#1194's merge commit 7f4026c (enterprise main tip). Changes since my last review are that re-point plus a dev merge (version 1.0.5-rc1). All checks green. Approving; the non-blocking findings from my earlier comment still apply.
Already adressed and re-reviewed by Vas
Fixes abilityai/trinity-enterprise#1131
Fixes abilityai/trinity-enterprise#1132
Fixes abilityai/trinity-enterprise#1161
Fixes abilityai/trinity-enterprise#1165
Fixes abilityai/trinity-enterprise#1169
Fixes abilityai/trinity-enterprise#1193
Fixes abilityai/trinity-enterprise#1195
Related to abilityai/trinity-enterprise#1137 (the epic) and abilityai/trinity-enterprise#1136 (steps A and B; step C, follow the run, is not in this PR).
The public half of the Projects working-environment epic. The enterprise half, abilityai/trinity-enterprise#1194, is merged;
src/backend/enterprisepoints at its merge commit on enterprisemain(7f4026c).It supersedes #4391, #4392, #4393 and #4394, whose commits are merged here unchanged.
What's in it
read_project_context.Rulings applied
create_project/import_project. Both MCP tools drop theirstewardparameter; the change goes throughpropose_project_changes.Open question for the reviewer
On import, an agent named as
ownerin the folder'sproject.mdstill becomes steward when the importing person can use it. That predates this PR (ent#673). Whether the steward ruling should also cover it is undecided.Test plan
projects+access-wiring+tool-count-docs, 49 passed;tsc --noEmitcleantest_ent1165_portal_interactive,test_ent753_assignment_hooks,test_1424_webhook_hardening,test_models_centralized: 41 passed🤖 Generated with Claude Code