feat(work-on-task-assistant): readiness nudge before final report#24
Merged
Conversation
Emit one-line readiness check (Phase 7.5) for Obsidian tasks: `✅ looks execution-ready` when phase != planning AND `# Success Criteria` section exists AND has ≥1 unchecked box; otherwise `⚠ <reason>. Run /vault-cli:plan-task first.` Shallow file-level check only — substance still belongs to `/vault-cli:plan-task` (5 hard non-negotiable checks + task-auditor). Preserves work-on-task's content-agnostic core: no questions, no edits, no blocking. Closes the friction where a user starts work on a half-baked task without being nudged toward the planning gate. Skips silently for Jira-only tasks (no local file) and recurring tasks (no Success Criteria by design).
There was a problem hiding this comment.
Based on my review of the changed files (at commit 750a1c9, which is the PR head), here is my analysis:
Review of Phase 7.5 "Readiness nudge" implementation:
-
Priority ordering (phase → SC presence → SC ticked) ✅
PHASE_OKcorrectly gates onexecution/ai_review/human_review/done—planningandtodo/emptyare rejected firstSC_PRESENTchecked secondSC_HAS_UNCHECKEDchecked last- The four distinct failure messages in priority order are correctly implemented
-
Silent skip for Jira-only and recurring tasks ✅
- Line 208: "Skip silently for Jira-only tasks (no local Obsidian file) and for recurring tasks" — the implementation at lines 189-208 only runs within the Obsidian task block and references
recurring: truecheck
- Line 208: "Skip silently for Jira-only tasks (no local Obsidian file) and for recurring tasks" — the implementation at lines 189-208 only runs within the Obsidian task block and references
-
SC_HAS_UNCHECKED (≥1 unchecked) ✅
grep -c '^\s*- \[ \]'correctly counts top-level unchecked items; nested checkboxes under a checked parent won't produce false positives since they appear as children, not siblings, of the heading
-
CHANGELOG entry ✅
- Accurately describes the feature: shallow check, one-line nudge, no blocking/asking/editing
No issues found. The implementation matches the documented behavior.
{
"verdict": "approve",
"summary": "Phase 7.5 readiness nudge is correctly implemented with proper priority ordering (phase → SC presence → SC ticked), correct silent-skip logic for Jira-only and recurring tasks, and accurate SC_HAS_UNCHECKED counting. CHANGELOG entry accurately describes the feature.",
"comments": [],
"concerns_addressed": [
"correctness: Phase 7.5 first-failing-check ordering matches documented priority — phase gate checked first, then SC presence, then SC ticked state",
"correctness: Silent skip for Jira-only tasks (no local file) and recurring tasks is correctly implemented per line 208",
"correctness: SC_HAS_UNCHECKED counts ≥1 unchecked checkbox correctly — grep pattern catches unchecked items under the heading",
"tests: Manual verification items noted — automated testing not applicable for agent prompt changes"
]
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
work-on-task-assistantgains Phase 7.5: a one-line readiness nudge for Obsidian tasks✅ Readiness: looks execution-readywhenphase != planningAND# Success Criteriaexists AND has ≥1 unchecked box⚠ Readiness: <reason>. Run /vault-cli:plan-task first.— first failing check wins (phase / missing SC / all SC ticked)/vault-cli:plan-task(5 hard non-negotiables + task-auditor)Why
Current split:
work-on-task= status + guides (content-agnostic by design, work-on-task.md:81);plan-task= the readiness gate. User is expected to know to run plan-task on a half-baked task — that's the friction. This change adds a cheap nudge without folding plan-task's logic into work-on-task.Skips silently for Jira-only tasks (no local file) and recurring tasks (no Success Criteria by design).
Test plan
make precommitclean/vault-cli:work-on-task <half-baked-task>→ see ⚠ Readiness line pointing at plan-task/vault-cli:work-on-task <execution-ready-task>→ see ✅ Readiness line/vault-cli:work-on-task <recurring-task>→ no Readiness line (silent skip)