Skip to content

feat(projects): task shape — subtasks, waits-on, not started, tasks for people - #4493

Merged
vybe merged 6 commits into
devfrom
feature/1232-task-shape
Nov 13, 2026
Merged

vybe merged 6 commits into
devfrom
feature/1232-task-shape

Conversation

@vybe

@vybe vybe commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What

Platform half of abilityai/trinity-enterprise#1232: a project task gets a shape — subtasks, "waits on" links to other tasks, a not-started (todo) status, and tasks done by a person.

  • Frontend: ProjectTasks.vue and projectsUtils.js show subtasks, what a task waits on, not started, and who performs it.
  • MCP (src/mcp-server/src/tools/projects.ts, client.ts): the task fields and list_project_tasks(view: "next") — the unblocked, owned work. Every rule is enforced server-side; the tool layer passes fields and names the refusals.
  • Docs: docs/user-docs/sharing-and-access/workspace-projects.md (incl. a task is made a person's when it is created).

Review + security

  • Reading review: no private terms in the diff or commits; a dead error mapping dropped in the fix commit d70d0a8ba2.
  • /cso --diff: nothing at the gate. No dependency, workflow or Dockerfile changes.

Tests

  • New: src/frontend/tests/unit/workspaceProjectsEnt1232.mount.spec.js. Updated: workspaceProjectsV2Utils.spec.js, src/mcp-server/src/tools/projects.test.ts (37/37 on the engineer).
  • tool-visibility.test.ts: 2 failures that are identical on clean dev (not this branch).
  • CI runs the full unit island and frontend suite.

Before merge

🤖 Generated with Claude Code

Fixes abilityai/trinity-enterprise#1232

Trinity Agent (trinity) and others added 3 commits November 12, 2026 01:54
…ks for people (abilityai/trinity-enterprise#1232)

- statusEnum gains `todo` (the new default); `list_project_tasks` takes
  `view: "next"` as its own query parameter, never a status.
- `create_project_task` takes `status`, `parent`, `blocked_by`, `for_person`;
  `update_project_task` takes `parent` (null clears it), `blocked_by_add`,
  `blocked_by_remove`, `for_person`. Ids are T-NNN, lists capped at 20 as
  the backend caps them.
- Descriptions name the rules and the named refusals; each stays under
  2,048 characters, asserted for every project tool in projects.test.ts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ing and tasks for people (abilityai/trinity-enterprise#1232)

- projectsUtils: `todo` ("To do") leads the status list; a subtask sorts
  under its parent; helpers name the creator, who a task is for, subtask
  progress and "Waiting on T-NNN" (derived, never the Blocked status);
  shape refusals map to the parent / waits-on fields.
- ProjectTasks: rows nest subtasks and show progress, the wait, the
  assignee and the creator; the detail adds created by / subtask of /
  subtasks / waits on; a task for a person offers no Start. The form edits
  the parent (blank sends null) and the tasks it waits on as add/remove;
  create takes parent, waits on and "a person does this task".
- workspace-projects.md: the same rules in the words the agent tools use.

Tests: workspaceProjectsEnt1232.mount.spec.js (11, mounted); the V2 utils
status pin now includes todo.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…p a dead error mapping (abilityai/trinity-enterprise#1232)

- Guide: the switch that makes a task a person's is on the create form only.
- projectsUtils.js: remove the invalid_parent field mapping; the backend
  never sends that code (a malformed id is parent_not_found).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Trinity Agent (trinity) and others added 2 commits November 12, 2026 08:46
…nd shows it (abilityai/trinity-enterprise#1232)

Operator ruling 2026-11-12 ("Unblock, flag, require a note").

- MCP: update_project_task's note is required for that transition; its
  description and list_project_tasks' say what `closed_without_claim` and
  `blockers_closed_without_claim` mean ("its output may not exist; read the
  note"). A refusal surfaces as done_without_claim_needs_note.
- Page: setting done on a task with an agent on it, from anything but
  awaiting verification, makes the note required and sends nothing without
  it. The server's refusal shows under the note. The row and the detail show
  the flag, and a dependent names the blocker.
- Guide: one paragraph under the verification rule.

Awaiting verification → done and tasks for a person are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts in ProjectTasks.vue and projectsUtils.js resolved keeping both:
the trinity-enterprise#957 board view and abilityai/trinity-enterprise#1232's
task shape.

The board now shows the task shape correctly:
- `todo` is named by the first (Active) column and flagged "To do"; it was
  previously a known status there, so it read as Active with no badge.
- A card shows derived waiting ("Waiting on T-2") and subtasks beside the
  Blocked status's waiting_on line.
- A done card closed without its agent's claim carries the
  "Done without a done claim" badge.
- Dropping a card on Done from anything but pending-verification already
  asks for the note the server requires.

Board specs: the "status the board does not know" cases used `todo` as
the unknown stand-in; they now use `triage`, and new cases pin todo,
waiting and closed-without-claim (reverting the projectsUtils change
turns 3 of them red).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trinity-ability

Copy link
Copy Markdown
Contributor

/validate-pr — trinity#4493 @ 4a904efd16 — APPROVE (paired; merge together with abilityai/trinity-enterprise#1249 once its fix lands, after the dev re-merge)

Run: chain-ent1232 validate · exec QAxunK5_8mhDpoxrcsnf-w · 2026-11-12 · report-only (no commits; draft state untouched)
Lane B (frontend, MCP tools, user guide; no Lane C path, no schema). 11 files, +773/−41.

Merge gate: Tier 1 all green at 4a904efd1:

  • Analyze ×2, schema-parity, verify-non-root (the required contexts) ✅
  • pytest (head, seed 12345) and regression diff ✅
  • journey-impact, gitleaks, the guards, e2e, build, Build (typecheck) + unit ✅

⚠️ dev is not green right now: #4503 dev-ci red (frontend-e2e at 3e0a512f), opened before this PR's tip. This PR stays draft for now, so the gate is not live yet. Re-check dev-last-green when it leaves draft.

Passed

  • Scope: every rule stays in the enterprise. This side carries only:

    • MCP fields, plus view as its own query param (never a status)
    • the page (subtasks, waits-on, todo, person tasks, the done-without-claim note and flag)
    • the guide paragraph

    The private-term grep on added lines is clean.

  • Merge 4a904efd1 with feat(workspace): a board view of a project's tasks (abilityai/trinity-enterprise#957) #4500 (task board):

    • Board specs moved their "unknown status" stand-in from todo to triage.
    • New cases pin todo, derived waiting, subtasks and closed_without_claim.
    • A board drag to Done from an agent task goes through the ask-first modal, which requires the note. That matches the server's 422 done_without_claim_needs_note. Confirming from pending-verification needs no note.
  • Security: §4.1–4.3 clean. No mode, symlink or host path changes. No Dockerfile, compose or workflow changes. No v-html.

  • Execution coverage: workspaceProjectsEnt1232.mount.spec.js and workspaceProjectsBoard.mount.spec.js are jsdom mounts, not source-text. projects.test.ts asserts the request URL. The design-system ratchets pass.

Warnings

Why APPROVE although the paired PR gets REQUEST CHANGES: that PR's defect (V1, ref writes before a refused shape write) is enterprise-only. This tip doesn't change for it, and the two still merge together.

Not run

  • No local vitest or MCP re-run: CI and fix-2 already ran them (projects.test.ts 39/39; 27 files / 315 vitest).
  • Feature-flow sync was not done (the plan lists it as remaining).

🤖 Generated with Claude Code

Conflicts resolved keeping both intents:
- src/mcp-server/src/tools/projects.ts: #4490's shared createTaskParams /
  updateTaskParams + declared() filter now carry every ent#1232 param
  (todo status, parent, blocked_by, blocked_by_add/remove, for_person,
  the done-without-claim note); both descriptions carry the ent#1232
  rules and REFS_RULE, each under 2048 chars.
- projects.test.ts: both describe blocks kept; the ent#1240 "drops
  undeclared keys" case uses priority (status is declared on create now).
- workspace-projects.md: both sections (GitHub issues and PRs before
  Subtasks, waiting and tasks for people).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trinity-ability

Copy link
Copy Markdown
Contributor

/validate-pr — round 2 (delta) — APPROVE

Scope: 4a904efd1..a0a9783d8, the merge of dev a080d6c77 (#4490). Tip read at 15:34Z: a0a9783d8 ✓.

  • declared() forwarding: every ent#1232 param is in the extracted schemas. createTaskParams has parent, blocked_by and for_person. updateTaskParams has parent (nullable), blocked_by_add, blocked_by_remove, for_person and note. The filter therefore drops none of them. Execution coverage: the projects.test.ts "ent#1232" block drives execute() and asserts the forwarded body, including "parent":null.
  • Description lengths (measured by loading createProjectTools at the tip): create_project_task 1406, update_project_task 1342, list_project_tasks 1161 characters. All are under the 2,048 cap.
  • Tier 1 @ a0a9783d8: all green, including pytest (head, seed 12345), the four required contexts, secret-scan, journey-impact and e2e. regression diff was queued for runner capacity (started 15:22Z) and passed at 15:58Z. mergeable: MERGEABLE.
  • Security greps over the delta: clean.

Decision: APPROVE. It is paired with ent#1249: merge together, after ent#1249's main re-merge and Alembic re-parent (see that PR). The PR stays draft; ent#1235's stack re-merges these tips first.

@vybe
vybe marked this pull request as ready for review November 12, 2026 17:38

@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.

Validated at a0a9783 (rounds 1–2 APPROVE at this tip). Re-checked merged onto dev 61bc57a: clean merge, 31 project/ratchet vitest files 397 passed, MCP suite adds 11 passing tests with the same 2 pre-existing tool-visibility failures as clean dev. Paired ent#1249 merged as 32a7087.

@vybe
vybe merged commit e90bbb6 into dev Nov 13, 2026
28 checks passed
vybe pushed a commit that referenced this pull request Nov 13, 2026
The squash adds only the 1232 tip a0a9783, which this branch already
contains, so the tree is unchanged by this merge.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
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