BE-040: done verb — close a ticket from CLI/pager

Now:
OPEN
Sev:
MED

Closing a ticket today is manual (edit the header, delist the bullets) or the todo/mark-done.sh sweep. Wanted: a done mutation verb so be done BE-012 / pager :done BE-012 closes the ticket in one move — header marked [DONE], the key's bullet delisted from the parent READMEs (the curated-open convention of BE-038). Once typable, the [done] button in :todo rows is just a hidden O done KEY spell (Nav) — that splice waits on BE-038 landing. Requested by gritzko 2026-07-10.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

-v Fixture todo tree + red tests (test/done/close/run.sh): 3 header forms, fat/thin, already-closed zero-edit cmp, TODONONE miss, delist both READMEs, refdefs + mid-bullet + prefix-key decoy untouched, idempotent, multi-key; red-first then green. -v verbs/done/done.js: .jab="args" mutation verb reusing landed BE-038 helpers (shape/pageFile, be.todoRoot()); header flip, bullet delist, lazy todo banner rows, multi-key loop; suite 166/164 = baseline reds only. -v Pager smoke (orchestrator, pty-driven 2026-07-10): :done FIX-001 typed in jab todo flips the header + delists both fixture READMEs; CLI re-run prints "(already closed)", miss exits 1 with one done: KEY: TODONONE line (+ the known BE-003 trailer). -v Round 2 (live :done BE-040 fail, orchestrator-verified 2026-07-10): flipHeader collapses a leading multi-mark run ([OPEN] [MED] → one [DONE]) per the one-mark ruling; odd headers emit a VISIBLE odd header, skipped row (no more pager no hunks); new red→green legs in test/done/close/run.sh, suite 166/164 = baseline reds. -v Round 3 [done] buttons (orchestrator-verified 2026-07-10): board/topic LIST rows grow the BE-041 house button tail (S sep, Y:"[done]", O:"done KEY", S "\n") after the todo KEY U; plain byte-identical to pre-change goldens; test/done/buttons/ red→green, suite 168/166 = baseline reds; independent pty click flipped the fixture header + delisted both READMEs; NOTE back key is -/BS (h is help in this pager).

Blockers and bummers

Outcome