Skip to content

The checklist rules count checkboxes under an Acceptance Criteria heading, so a task's criteria can sit in a section of their own #4396

Not planned

Description

@malibio

Overview

The rules that enforce a checklist read a task's direct children only, so a task's criteria cannot sit under a heading of their own. This lets the checklist rules count checkboxes under an Acceptance Criteria heading.

Problem Statement

  • "Require a completed checklist before finishing a task" uses node.has_child.exists(c, c.checked == false), and NO_CHECKBOX_CHILD in packages/core/src/playbook/core_plays.rs notes that only direct children are seen: has_child is one level.
  • A checkbox under a heading is a grandchild, so the rule does not count it and the task can be finished with criteria open.
  • The guidance therefore tells an agent to put checklist lines before the first heading. The result is a task whose criteria are loose lines above or between its sections. It reads badly, and nothing says which checkboxes are the criteria.
  • The cause is in the engine: collections are resolved only when rooted at node (packages/core/src/playbook/graph_resolver.rs skips any other root), and an item of a collection carries its properties and derived attributes but not its relationships. So h.has_child inside a comprehension resolves to nothing.

Proposed Solution

  • Engine: a collection rooted at the iteration variable of an enclosing comprehension is resolved for each item, one further level: node.has_child.exists(h, h.has_child.exists(c, ...)).
  • Rules: a criterion is a checkbox that is a direct child of the task, or a child of a direct child that is a header whose text is "Acceptance Criteria" or "AC". The heading text is in the Play's condition, so a user who names the section differently edits the Play.
  • Both places count, so no existing task or spec has to be rewritten.

Acceptance Criteria

  • A condition can follow a relationship from an item of a collection, one further level, and it is validated when the Play is saved like any other path
  • A task with an unticked checkbox under a ## Acceptance Criteria heading cannot be finished, and the refusal names the heading
  • The heading matches whatever its level and letter case, and AC matches as well
  • A task with unticked checkboxes directly under it is still refused, so existing tasks need no edit
  • A checkbox under any other heading is not counted as a criterion
  • "Require success criteria before approving a spec" finds checkboxes in the same two places
  • The parent-task roll-up and the issue findings rule are read against the change, and each is updated or the reason it is unchanged is recorded
  • The cost of the nested read is measured on a task with many children and stays one statement per level, not one per child
  • The shipped guidance for creating a section and a checklist item, and the task and spec skills, say the criteria go under ## Acceptance Criteria

Related

Non-Goals

  • Walking to any depth.
  • Marking a criterion by anything other than where it sits.

Activity

  1. mstomar125 commented on Nov 27, 2026

    @mstomar125
    Contributor

    Copied into the NodeSpace workspace as an issue (with its acceptance criteria). Work on it is tracked there, so this public copy is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions