cyberine
UsageRun recipes

Epic parent tasks — x-epic: true and the drift flag (k91ck)

A board task can be the parent of an outcome that several tasks build. Mark it x-epic: true, make its children its deps:, and give it a verify: command that checks the business outcome itself rather than any one child. x-epic is an x- field, so cyberine tasks doctor and the lint accept it without a warning.

cyberine tasks add --title "Customers can pay by card" --do "..." --done-when "..." --effort M --deps <child1>,<child2>,<child3>
cyberine tasks set <parent> --verify "node .cyberine/accept/<parent>.mjs"

Then add the line x-epic: true to the parent's block (an x- field has no add/set flag; place it beside deps:).

cyberine tasks status     # <id> [todo] Customers can pay by card  epic 2/3
cyberine next             #   <id>  Customers can pay by card  epic 3/3 drift  [deps: ...]
cyberine tasks status --json   # tasks[].epic = {"done":3,"total":3,"drift":true}
cyberine next --json           # the same epic object on runnable, waiting and blocked entries
  • Every view prints epic <done>/<total> on the parent's own line: done counts the children (its deps:) that are done, archived or reached through a duplicate-of: hop.
  • drift is appended exactly when every child is done, the parent is not yet done, and the parent's verify: command exits non-zero or is absent. It means the children shipped but the outcome is not proven. A closed parent shows epic 3/3 without drift.
  • The verify: command runs only once every child is done, so a status or next with children still open never starts it. The result is cached per parent: the key is the command, the HEAD sha and the size and mtime of every changed or untracked file git status lists, and an entry expires after 10 minutes. A repeated status or next on an unchanged tree runs the check once. The cache file is board-epic-checks.json inside the git directory, outside the tree, so it never dirties it; outside a git repo the result is kept for the process only.
  • cyberine tasks status done <parent> still runs the parent's verify: and refuses while it fails. An x-epic parent with no verify: is refused too, since its only proof of the outcome is that check.

Known Limitations and Deferred Work: the drift check runs only the parent's own verify: command, not the acceptance gate that closing also runs, so a parent can show no drift and still be refused at close by the gate. A check that reads state outside the repository (a live URL, a database) is re-run only after the 10-minute expiry or a tree change, so its cached verdict can lag. A verify: command the board refuses to run (a command outside the verify allow rules, or an acceptance check while accept.run is ask) counts as failing and shows drift. x-epic accepts true, yes or 1. Children are the deps: list only; there is no separate parent pointer, and a child shared by two epics counts toward both. No selftest pins this behaviour; the acceptance check .cyberine/accept/k91ck.mjs does.