@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-tasks/>
  a sioc:Post ;
  dc:title "Review step for delegated tasks" ;
  dcterms:identifier 152243 ;
  dc:modified "2026-10-23T20:18:54Z"^^xsd:dateTime ;
  dc:created "2026-10-23T20:18:54Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-tasks/review-step-for-delegated-tasks/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-tasks/\">LH Tasks</a></li></ul><p class=\"wp-block-paragraph\">Since 1.23.0 (#150480) a task has one of two shapes. <strong>Agent work</strong> runs under one account: the agent claims the task, works with Peter present and completes it with its claim token, so there is nothing to review. <strong>Delegated work</strong> involves two people: the author (the person who asked) and the doer (<code>assigned_to</code>). The doer&#8217;s &quot;done&quot; means &quot;please check&quot;, not &quot;closed&quot;.</p><h3 class=\"wp-block-heading\">Flow</h3><ol class=\"wp-block-list\"><li>The doer marks the task done, on its page or with <code>complete-assigned-task</code>. <code>LH_Tasks_task_actions_class::needs_review()</code> decides: when the author is a different, existing account and the task was not created with <code>requires_review</code> false, it goes to <strong>Awaiting review</strong> (<code>lh_tasks-revw_task</code>), an open status. A doer who held only a claim becomes the hard assignment, so the task can come back to them.</li><li><code>LH_Tasks_review_class</code> tells the author by BuddyPress notification and email, with the doer&#8217;s note.</li><li>The author, or staff (the task capability), accepts or sends back, from the task page&#8217;s Check this task forms or with <code>review-task</code>. Accept: Resolved, the doer recorded as <code>assignee</code>, the note (if any) stored as the result. Send back: New, still assigned to the doer, who is notified with the note (required).</li></ol><p class=\"wp-block-paragraph\">Self-assigned tasks resolve directly, as before. While a task is Awaiting review, mark as done is refused and claims skip it. Dependents keep waiting until it is accepted, because only Resolved, Closed and Cancelled are terminal. Follow-ups remind the author while it waits; see Follow-ups for assigned tasks.</p><h3 class=\"wp-block-heading\">Hooks</h3><ul class=\"wp-block-list\"><li><code>lh_tasks_task_submitted_for_review</code> (action): <code>$post_id, $doer_id, $note</code>.</li><li><code>lh_tasks_task_sent_back</code> (action): <code>$post_id, $doer_id, $note</code>.</li><li><code>lh_tasks_task_completed</code> fires on accept, as for any completion.</li><li><code>lh_tasks_task_needs_review</code> (filter): <code>$needs, $post_id, $user_id</code>.</li></ul><h3 class=\"wp-block-heading\">Results</h3><p class=\"wp-block-paragraph\">A task a person marks done, or a reviewer accepts, stores the note as <code>result</code> <code>{note}</code>. With no note, an old result holding only an error is removed, so a resolved task no longer shows a stale error. A <code>needs_human</code> hand-off no longer writes its note into <code>result</code> as an error: the note is in the progress log only.</p><h3 class=\"wp-block-heading\">Not yet</h3><p class=\"wp-block-paragraph\">A wp-admin Complete action (list-table row action and an editor control) for assigned tasks is planned as a separate release.</p>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH TasksSince 1.23.0 (#150480) a task has one of two shapes. Agent work runs under one account: the agent claims the task, works with Peter present and completes it with its claim token, so there is nothing to review. Delegated work involves two people: the author (the person who asked) and the doer (assigned_to). The doer&#8217;s &quot;done&quot; means &quot;please check&quot;, not &quot;closed&quot;.FlowThe doer marks the task done, on its page or with complete-assigned-task. LH_Tasks_task_actions_class::needs_review() decides: when the author is a different, existing account and the task was not created with requires_review false, it goes to Awaiting review (lh_tasks-revw_task), an open status. A doer who held only a claim becomes the hard assignment, so the task can come back to them.LH_Tasks_review_class tells the author by BuddyPress notification and email, with the doer&#8217;s note.The author, or staff (the task capability), accepts or sends back, from the task page&#8217;s Check this task forms or with review-task. Accept: Resolved, the doer recorded as assignee, the note (if any) stored as the result. Send back: New, still assigned to the doer, who is notified with the note (required).Self-assigned tasks resolve directly, as before. While a task is Awaiting review, mark as done is refused and claims skip it. Dependents keep waiting until it is accepted, because only Resolved, Closed and Cancelled are terminal. Follow-ups remind the author while it waits; see Follow-ups for assigned tasks.Hookslh_tasks_task_submitted_for_review (action): $post_id, $doer_id, $note.lh_tasks_task_sent_back (action): $post_id, $doer_id, $note.lh_tasks_task_completed fires on accept, as for any completion.lh_tasks_task_needs_review (filter): $needs, $post_id, $user_id.ResultsA task a person marks done, or a reviewer accepts, stores the note as result {note}. With no note, an old result holding only an error is removed, so a resolved task no longer shows a stale error. A needs_human hand-off no longer writes its note into result as an error: the note is in the progress log only.Not yetA wp-admin Complete action (list-table row action and an editor control) for assigned tasks is planned as a separate release." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
