aboutsummaryrefslogtreecommitdiff
path: root/todo.org
diff options
context:
space:
mode:
Diffstat (limited to 'todo.org')
-rw-r--r--todo.org35
1 files changed, 4 insertions, 31 deletions
diff --git a/todo.org b/todo.org
index 89f75d8..d154f44 100644
--- a/todo.org
+++ b/todo.org
@@ -45,7 +45,8 @@ Tags are assigned and refreshed by =task-audit=; =task-review= keeps them honest
:END:
The 2026-07-01 kb-hygiene report listed 42 agent KB nodes with no inbound id: links (of 53 agent nodes; 0 conflicts, no duplicate titles). Orphan-ness alone isn't a defect — agent nodes are found by rg, not only by links — but a periodic pass is worth doing: prune nodes that aged out, merge near-duplicates, add id: links where clusters exist. Regenerate the list with the kb-hygiene script rather than trusting the snapshot. Propose deletions/merges to Craig before applying (auto-cleanup allowed only for :agent:-tagged nodes after approval, per knowledge-base.md).
-** DOING [#B] wrap-it-up teardown + "wrap it up and shutdown" :feature:
+** DONE [#B] wrap-it-up teardown + "wrap it up and shutdown" :feature:
+CLOSED: [2026-07-01 Wed]
:PROPERTIES:
:CREATED: [2026-06-23 Tue]
:LAST_REVIEWED: 2026-06-24
@@ -64,36 +65,8 @@ The three companion functions are in =.emacs.d/modules/ai-term.el= (=cj/ai-term-
*** 2026-07-01 Wed @ 21:52:15 -0400 Plumbing pre-flight re-verified; only the eyes-on tests remain
Fresh pre-flight, all green: Stop hook block in =~/.claude/settings.json= points at =~/.claude/hooks/ai-wrap-teardown.sh=, the symlink resolves to the rulesets canonical, no stale =/tmp/ai-wrap-teardown-*= sentinel, and all three companion functions are live in the daemon (=(t t t)=). Three =aiv-*= sessions live right now (=_emacs_d=, =archsetup=, =rulesets=), so the shutdown-gate refusal test has its multi-session condition available. Everything left in the checklist below needs Craig's eyes on a scratch session: buffer teardown + geometry restore, the qualifier opt-outs, the countdown render + C-g, and the push-failure guard.
-*** TODO Manual testing and validation :test:
-What we're verifying: the wrap-teardown + shutdown feature end to end, once =.emacs.d/modules/ai-term.el= has the three companion functions and the =Stop= hook is installed (=make install-hooks= + the =settings-snippet.json= Stop block in =~/.claude/settings.json=). These need a live Emacs daemon + tmux + an =aiv-<proj>= ai-term session; they can't be driven from a script.
-
-**** Bare "wrap it up" tears down after the valediction
-What we're verifying: teardown is the default and fires only after the valediction renders.
-- In an ai-term =aiv-<proj>= session, say "wrap it up".
-- Watch the wrap run (summary, archive, commit, push, valediction).
-Expected: the valediction renders in full first, THEN the vterm buffer + =aiv-<proj>= tmux session + =claude= all disappear and the saved window geometry is restored. =/tmp/ai-wrap-teardown-<proj>= does not linger afterward.
-
-**** "wrap it up with summary" / "and summarize" keeps the buffer
-What we're verifying: the explicit qualifier opts out of teardown.
-- Say "wrap it up with summary" (then, separately, "wrap it up and summarize").
-Expected: the wrap completes (commit + push + archive), but the buffer and session stay up and readable. No teardown.
-
-**** "wrap it up and shutdown" aborts when another session is live
-What we're verifying: the safety gate refuses to power off out from under another session.
-- Start a second =aiv-*= ai-term session in another project.
-- In the first, say "wrap it up and shutdown".
-Expected: the wrap completes but the shutdown is refused; the other live =aiv-*= session is listed, and the valediction says it fell back to a normal wrap. No poweroff, no teardown, no sentinel dropped.
-
-**** "wrap it up and shutdown" as the sole session powers off (cancellable)
-What we're verifying: the happy path and the abort window.
-- With this as the only =aiv-*= session, say "wrap it up and shutdown".
-- During the countdown, first run it once and cancel with =C-g=; then run it again and let it complete. (Stub =sudo shutdown now= to an echo while validating so the box doesn't actually power off.)
-Expected: after commit + push, a 10→1 countdown renders one-per-second in the Emacs echo area; =C-g= cancels it cleanly (no shutdown); letting it finish fires =shutdown=.
-
-**** Teardown never precedes a verified push
-What we're verifying: no sentinel is dropped before commit + push succeeds.
-- Trigger a teardown wrap in a state where the push would fail (e.g. temporarily point the remote somewhere unreachable).
-Expected: the wrap surfaces the push failure and stops; no =/tmp/ai-wrap-*-<proj>= sentinel is created, so no teardown fires.
+*** 2026-07-01 Wed @ 21:59:43 -0400 Manual end-to-end validation passed — all five tests, Craig's live run
+Craig ran the full checklist in a live Emacs/tmux ai-term setup: (1) bare "wrap it up" tore down after the valediction rendered, geometry restored, no lingering sentinel; (2) "with summary" / "and summarize" both wrapped without teardown, buffer stayed readable; (3) "wrap it up and shutdown" with another aiv-* session live refused the shutdown, named the other session, fell back to a normal wrap; (4) as the sole session, the 10→1 echo-area countdown rendered one-per-second, C-g cancelled cleanly, and a full run fired the (stubbed) shutdown command; (5) with the push made to fail, the wrap stopped at the failure and no sentinel was dropped. Works great — feature validated and live. Both sides complete: rulesets Stop hook + wrap-it-up Teardown mode, .emacs.d companion functions.
** TODO [#B] Helper-agent instance support — concurrent same-project Claude :feature:spec:
:PROPERTIES: