Repository navigation
Not planned
Description
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), andNO_CHECKBOX_CHILDinpackages/core/src/playbook/core_plays.rsnotes that only direct children are seen:has_childis 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.rsskips any other root), and an item of a collection carries its properties and derived attributes but not its relationships. Soh.has_childinside 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 Criteriaheading cannot be finished, and the refusal names the heading - The heading matches whatever its level and letter case, and
ACmatches 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
- Write NodeSpace's live decisions as decision nodes, each stated as it stands today #3729: the same engine limit stops a decision's rule from reading the issues of its specs (decision → specs → issues). An
issueextendstask, so it is reached through the spec'stasksrelationship. Once this lands that path can be walked, and the decision gates can be revisited.
Non-Goals
- Walking to any depth.
- Marking a criterion by anything other than where it sits.
Metadata
Metadata
Assignees
Labels
No labels
Activity
mstomar125 commentedon Nov 27, 2026
Copied into the NodeSpace workspace as an issue (with its acceptance criteria). Work on it is tracked there, so this public copy is closed.