fix: SingleBead harness — template syntax, phase sync, cleanup hardening#69
Merged
mrmaxsteel merged 4 commits intomainfrom Mar 9, 2026
Merged
fix: SingleBead harness — template syntax, phase sync, cleanup hardening#69mrmaxsteel merged 4 commits intomainfrom
mrmaxsteel merged 4 commits intomainfrom
Conversation
…tes + assertion fixes
Three fixes for the SingleBead LLM test regression:
1. **Instruct template syntax**: All templates showed `mindspec complete "msg"` but
the CLI requires `mindspec complete <bead-id> "msg"`. The implement template now
uses `{{.ActiveBead}}` to show the exact bead ID. Also added `bd update --metadata`
to the Forbidden Actions list (agents were corrupting epic phase metadata).
2. **Analyzer false positive**: `detectSkipComplete` now requires exit=0 for
`mindspec next` events. A failed `next` (e.g., post-complete exploration)
no longer starts a new skip_complete tracking cycle.
3. **assertBeadsState**: Switched from `bd list --json --parent --status` (which
has a known bug where --json is ignored with filter flags) to per-bead
`bd show <id> --json` queries. Also fixed JSON array unmarshaling (bd show
returns `[{...}]` not `{...}`).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- next.go: emit completion reminder with bead ID after `mindspec next` so agents see correct `mindspec complete <id>` syntax before coding - complete.go: sync epic mindspec_phase metadata on bead completion (Spec 080) so DerivePhase returns correct phase downstream - gitops.go: use `git branch -D` (force) instead of `-d` to avoid "not fully merged" errors during cleanup Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
mindspec completesyntax in all 6 instruct templates to include<bead-id>(root cause of SingleBead test timeout after Spec 080 merge)mindspec nextso agents see correct syntax before codingmindspec_phasemetadata on bead completion (Spec 080 follow-up)git branch -Dinstead of-d)detectSkipCompletefalse positive (require exit=0 formindspec next)assertBeadsStateto usebd show <id> --jsoninstead of brokenbd list --json --parentTest plan
go test ./internal/harness/ -short)make buildclean🤖 Generated with Claude Code