Skip to content

feat(workspace): a contributor can change a task's owner - #4141

Merged
vybe merged 1 commit into
devfrom
feature/ent867-task-owner-edit
Nov 1, 2026
Merged

vybe merged 1 commit into
devfrom
feature/ent867-task-owner-edit

Conversation

@vybe

@vybe vybe commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Plain text up to 320 characters, with no email check.
  • A blank field clears the owner.
  • A done task disables the field and says to reopen it first.
  • The Agent field stays read-only.

Rulings carried

  • Any person contributor may reassign a task.
  • A person may clear an owner.
  • The field stays free text, so a later role:<id> value is not refused.
  • Member suggestions are not in this PR.
  • The UI writes no log note. Owner changes leave no task-log entry until abilityai/trinity-enterprise#981 adds one on the server.

Review + security

Reading review: MERGEABLE, no blocking findings. /cso --diff: nothing found; no new endpoint, dependency or HTML sink.

Tests

  • Tests T1 to T10 in workspaceProjectsV2.mount.spec.js; 8 were red before the change and 2 are regression pins.
  • The review's five mutations each went red on the intended tests.
  • Full frontend vitest run: 432 files, 6671 tests green.

Before merge

  • Check the task detail by hand in light and dark. No theme check runs in this environment.

Handoffs

  • A refused task edit (not_permitted) shows "Only the person who created this project can change that", which is wrong for a task edit. It comes from projectsUtils.js and is left out of this PR.
  • abilityai/trinity-enterprise#981 adds server checks on the owner value. This field will need a clear message for those refusals, because a 422 shows generic text today.

🤖 Generated with Claude Code

…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]>
@vybe vybe added the ui PR touches the frontend UI — triggers Playwright e2e tests label Nov 1, 2026

@trinity-ability trinity-ability left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ⚠️ (minor) 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.

@vybe
vybe marked this pull request as ready for review November 1, 2026 06:16
@vybe
vybe merged commit 50502ce into dev Nov 1, 2026
26 of 28 checks passed
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.

2 participants