Repository navigation
feat(workspace): a contributor can change a task's owner - #4141
Merged
Merged
Conversation
…rinity-enterprise#867) The task detail's contributor form gains an Owner field. It is free text (capped at 320, the server limit, no email check), a blank field sends null to clear the owner, and a done task shows it disabled until reopened, so a reopen never sends an owner. The agent stays read-only. Mutation: deleting the `body.owner` line turns T1-T3 red in workspaceProjectsV2.mount.spec.js. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trinity-ability
approved these changes
Nov 1, 2026
trinity-ability
left a comment
Contributor
There was a problem hiding this comment.
PR Validation Report
PR: #4141 — feat(workspace): a contributor can change a task's owner
Branch: feature/ent867-task-owner-edit → dev · tip 3dc767fab
Files changed: 2 (+141/−4) · Lane B (frontend component + test; no auth, credential, CI, image or schema path)
Summary
| Category | Status | Notes |
|---|---|---|
| Commit messages | ✅ | one conventional feat(workspace) commit |
| Base branch | ✅ | dev |
| PR size | ✅ | 2 files |
| Issue link / status promotion | references abilityai/trinity-enterprise#867 without a closing keyword. The issue is in the other tracker, so it would not auto-promote anyway: set status-in-dev on it by hand after merge and close it at release |
|
| Requirements / architecture | ➖ | frontend only, on an update route that already accepts owner; no new endpoint, setting or table |
| Feature flows | no flow doc updated; the change adds one field to an existing edit form | |
| Security (§4.1–4.10) | ✅ | no keys, real emails, IPs, env or credential files, symlinks, or host paths. [email protected] and @example.com are placeholders |
| Build / config packaging | ➖ | no backend dir or env var |
| Structural review | ✅ | reading review (MERGEABLE) and /cso --diff (nothing found) are recorded in the PR body |
| Merge gate (Tier 1) | ✅ | required contexts, pytest (head), regression diff, frontend build and e2e all pass on the tip. dev-ci on dev: success |
| Test adequacy | ✅ | non-happy paths covered: clearing, done-task lock, reader and archived hiding, server refusal, cap, not-dirty |
| Code quality | ✅ | minimal and in pattern; uses the BaseInput primitive; no raw colours or new loading gates |
| Product fit | ✅ | see below |
Execution coverage (§5.4)
| changed symbol | executed by | live consumer | verdict |
|---|---|---|---|
edit.owner + BaseInput field |
T1–T3, T5, T6, T9, T10 (jsdom mount) | ProjectTasks.vue task detail form |
✅ |
dirty owner arm |
T2 (blank enables Save), T10 (null owner + blank is not dirty), T1 (clean after save) | Save :disabled |
✅ |
saveTask owner body (`owner |
null`, done guard) | T1, T2, T3, T4, T5, T7 | |
openTask / post-save Object.assign |
T1, T2 (field re-seeded from refetch) | same | ✅ |
Every assertion in the spec runs against a mounted component, with no source-text reads. The PR body records 8 tests red before the change and five review mutations that each turned the intended tests red.
Product fit (Step 6.6)
| check | verdict | evidence |
|---|---|---|
| Approved | ✅ | type-feature, priority-p2, status-ready; not incubating |
| Scope ↔ issue | ✅ | one user-visible addition, the Owner field in the existing edit form. The rulings in the PR body cover it: any contributor may reassign, blank clears, the value stays free text (≤320), no member suggestions, the Agent field stays read-only |
| Open-core tier | ✅ | extends an existing Workspace edit form; no new capability or gate |
| Doctrine | ✅ | the permission comes from the existing canContribute/archived props and the server's update route. No prompt-only enforcement |
| Bar 7–11 | ✅ | plain help text ("Leave blank for no owner." / "Reopen the task to change its owner."). The PR body names the missing owner log entry (until #981 adds one on the server) and the wrong not_permitted wording as handoffs |
Warnings (non-blocking)
- No closing keyword. The issue lives in the other tracker, so promote and close it by hand.
- The light and dark check under Before merge is manual and not covered by CI. Do it before merging.
- Until #981 lands, an owner change leaves no task-log entry. This is a deliberate ruling, recorded in the PR body.
Recommendation
APPROVE. The change is small and stays inside the issue's scope. Mounted tests execute every changed path, and Tier 1 and dev-ci are green. The light and dark check is still a manual step before merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes abilityai/trinity-enterprise#867
What
A contributor can change a task's owner from the task detail in a Workspace project (abilityai/trinity-enterprise#867). The Owner field sits in the existing edit form, so readers and archived projects keep the read-only line. The update route already accepted this, so the change is frontend only.
Rulings carried
role:<id>value is not refused.Review + security
Reading review: MERGEABLE, no blocking findings.
/cso --diff: nothing found; no new endpoint, dependency or HTML sink.Tests
workspaceProjectsV2.mount.spec.js; 8 were red before the change and 2 are regression pins.vitest run: 432 files, 6671 tests green.Before merge
Handoffs
not_permitted) shows "Only the person who created this project can change that", which is wrong for a task edit. It comes fromprojectsUtils.jsand is left out of this PR.🤖 Generated with Claude Code