daily-fix: pre-persist plan header retitle stops c40 churn
Highlight text on any card (body, plan, or an event) to anchor a comment, or leave a whole-task comment here. Mention @claude to summon a reply.
No comments yet.
Overview / Motivation
Auto-filed by /daily 2026-07-27 problem sweep (transcript mining, 44 in-window transcripts). Sessions 998eb54e (#1715, v2->v3->v4 loop) + 56131e5e (#1734), 2026-07-27.
Goal
Stop the c40 header-version WARN churn: align the plan header with the assigned version BEFORE persisting.
Workflow gap
- Bug observed: #1715 looped plan v2->v3->v4 because each
new-plan-versionpersisted a file whose# Plan v<K>header self-declared the PRIOR version;verify_plan.pyc40 fires only post-persist, so each fix costs another version. #1734 hit the same (v2 with a 'Plan v1' header). - Why it is a workflow gap: the persist recipe has no pre-persist header-alignment step (
grep -c 'c40' .claude/skills/adversarial-planner/SKILL.md-> 0) and the alternative (task.py-side auto-rewrite) does not exist. - Confidence (emitter): medium
- verified-at-filing:
grep -c 'c40' .claude/skills/adversarial-planner/SKILL.md-> 0 hits, compose time;grep -n c40 scripts/verify_plan.py-> present (the check exists only post-persist).
Proposed change (candidate diff sketch — refine in planning)
In .claude/skills/adversarial-planner/SKILL.md (persist recipe): pre-persist, ls tasks/<status>/<N>/plans/ to derive the next version and retitle the header — or standardize on the version-neutral # Plan — task #<N> form. ALTERNATIVE (planner's call): auto-rewrite a leading # Plan v<K> header in scripts/task.py cmd_new_plan_version at persist time (behavior change to task.py — weigh against the doc-only form).
Scope / surfaces
- Primary target:
.claude/skills/adversarial-planner/SKILL.md - Optional:
scripts/task.py(cmd_new_plan_version) if the auto-rewrite form wins.
Constraints / invariants
- Workflow-surface only — never experiment code,
configs/, ortasks/. scripts/workflow_lint.pyno-flags run +--check-askspass on touched files; ruff passes where applicable.- This session runs under a
workflow_fix_target:Provenance line — it MUST NOT auto-route its own subagents' workflow-fix candidates (recursion guard).
Provenance
-
fingerprint: ca895df19f35
-
workflow_fix_target: .claude/skills/adversarial-planner/SKILL.md