Skip to content

fix: harden /ddaro:go stage inference fallback (0.6.2)#16

Merged
minwoo-data merged 1 commit into
mainfrom
fix/conductor-inference-0.6.2
Jun 5, 2026
Merged

fix: harden /ddaro:go stage inference fallback (0.6.2)#16
minwoo-data merged 1 commit into
mainfrom
fix/conductor-inference-0.6.2

Conversation

@minwoo-data

Copy link
Copy Markdown
Owner

Dogfooding 0.6.1 on a real worktree surfaced two too-literal heuristics in /ddaro:go's inference fallback (the path used only when .ddaro/lifecycle.json is absent - adopted / pre-0.6.1 worktrees):

  1. Review-findings detection matched only a literal ## Review findings heading. A hand-written doc using ## 14. Review findings (...) read as not reviewed -> would re-fire the 8-agent review on an already-reviewed doc. Now matches any h2 containing "Review findings" (number/date optional).
  2. Implementation detection used two-dot git diff origin/main (tip vs tip), so a branch merely behind origin/main showed origin's newer files as "changes" -> falsely inferred check on a stale branch. Now uses merge-base git diff --name-only origin/main...HEAD (three dots) + working-tree edits, excluding docs/**/*.md/.planning/**/.ddaro/**.

Also: the conductor now flags a LOCK-vs-checkout branch mismatch / far-behind branch and prefers asking over guessing.

Scope: inference fallback only. The normal /ddaro:go-driven flow records the stage in lifecycle.json and never hits these; the cost-confirm gate already prevented a silent re-review. Markdown + version bump only (no hook/test changes); 82 hook tests still green.

Dogfooding surfaced two too-literal heuristics in the inference path (used
only when .ddaro/lifecycle.json is absent):
- review-findings detection now matches numbered headings (## 14. Review
  findings), not just literal ## Review findings -> no false re-review
- implementation detection uses merge-base origin/main...HEAD (excluding
  docs) instead of two-dot tip diff -> immune to a branch merely behind main
Also flags LOCK/checkout branch mismatch + far-behind branch and prefers
asking over guessing. Normal go-driven flow (lifecycle.json) unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@minwoo-data minwoo-data merged commit 77515d7 into main Jun 5, 2026
3 checks passed
@minwoo-data minwoo-data deleted the fix/conductor-inference-0.6.2 branch June 5, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant