docs(decompose): batch task creation via bd create --graph + stale gate ref cleanup (hew-qq28)#52
Merged
Merged
Conversation
Closes hew-qq28 by reframing it: bd already has the batch primitive (`bd create --graph plan.json` — JSON with nodes/edges/parent_key, single transaction, deps wired inline). The original task spec called for a `hew task new-batch` wrapper, but reimplementing bd's graph-create surface would have been pure rewrap with no value-add. Instead: - skills/core/hew-decompose.md gains a "Batch mode" section right before Step 4 (dep wiring), with a small graph-JSON example that proves apostrophes / quotes / backticks / $() pass through verbatim (smoke-verified with the actual zsh-hostile shape from the GOTCHA). - CLAUDE.md's GOTCHA:zsh-cmd-substitution highlight is updated to point at the new workaround. Also fixes two stale references in the same skill — same ghost primitive the /hew:ship skill had: - Step 5 (external gates): the `bd gate create --type=gh:pr` table is rewritten to use `hew gate new --gh-pr=N` (which actually exists, as of PR #51). CI/issue-close/cmd backends are called out as deferred behind the same GateKind enum. - Step 6 (type table): `gate` is dropped from the `--type=` enum since bd doesn't accept it; external blockers go through the dedicated `hew gate` surface. No code changes. 924 tests still pass, clippy + fmt clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Same ghost primitive caught in ship.md (PR #51) and hew-decompose.md (PR #52): bd's --type enum doesn't include `gate`, and the dedicated hew gate command now owns external-state gating. - skills/SKILL.md: "Beads has native types: --type=gate, --type=epic, bd mol bond" rewritten. --type=gate is gone; epic/decision are surfaced as the real typed surfaces; bd mol bond now correctly flagged as broken-don't-use rather than recommended. - skills/core/hew-plan.md: the hand-off line that mentioned `bd create --type=gate` now points at `hew gate new --gh-pr=N` and recommends `bd create --graph` for the task batch. Audit complete across all 22 skill files + 41 command files. No remaining ghost bd references. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
docs(decompose): batch task creation via
bd create --graphCloses hew-qq28 by reframing it as a documentation gap rather than a code gap. The original task spec proposed building
hew task new-batch <manifest>to sidestepGOTCHA:zsh-cmd-substitution. While exploring the implementation I discovered bd already has the primitive:bd create --graph plan.jsonaccepts JSON withnodes+edges+parent_key, runs as one transaction, and passes multi-line descriptions through verbatim — including apostrophes, quotes, backticks, and$()substitutions.Reimplementing it in
hewwould be pure rewrap with no value-add. So instead this PR:Documents the batch path in the skill body
skills/core/hew-decompose.mdgains a new "Batch mode" section right before Step 4 (dep wiring). The example shows the actual schema (nodes[].key,parent_key,edges[].from_key/to_key/type: "blocks") with a description that includes the actual zsh-hostile shape:{ "description": "**What:** validates body, returns AuthResponse.\nApostrophes', \"quotes\", $(this) and `backticks` all pass through verbatim." }Smoke-verified: created a task with exactly that description via
bd create --graph, content survived bit-for-bit.Updates the GOTCHA highlight
CLAUDE.md'sGOTCHA:zsh-cmd-substitutionentry now points atbd create --graphas the recommended workaround for >3-task batches. The oldbd q + bd update --body-fileadvice is preserved for one-off updates.Fixes two stale references in the same skill
The decompose skill had the same ghost primitive
/hew:shiphad (resolved by PR #51):bd gate create --type=gh:pr ...rewritten to usehew gate new --gh-pr=N(which actually exists).gatedropped from the--type=enum since bd doesn't accept it. External blockers go through the dedicatedhew gatesurface.What didn't ship
No
hew task new-batchsubcommand, nohew_core::task_manifestmodule. The acceptance criteria from hew-qq28 (transactional creation, multi-line descriptions, intra-batch deps) are all met bybd create --graphalready. Treatingbd create --graphas a documented hold-out — likebd orphansandbd lint— keeps the surface area smaller and avoids drift.Quality
cargo clippy --all-targets -- -D warningscleancargo fmt --checkclean🤖 Generated with Claude Code