Skip to content

docs(vbrief): rename deft-swarm to deft-directive-swarm with flexible vBRIEF allocation#352

Merged
MScottAdams merged 6 commits intophase2/vbrief-cutoverfrom
agent4/docs/317-swarm
Apr 13, 2026
Merged

docs(vbrief): rename deft-swarm to deft-directive-swarm with flexible vBRIEF allocation#352
MScottAdams merged 6 commits intophase2/vbrief-cutoverfrom
agent4/docs/317-swarm

Conversation

@MScottAdams
Copy link
Copy Markdown
Collaborator

Summary

Closes #317

Rename skills/deft-swarm/ to skills/deft-directive-swarm/ and update for flexible vBRIEF allocation as part of the Phase 2 vBRIEF Architecture Cutover (RFC #309, Story H).

Key Changes

Skill Rename:

  • Renamed skills/deft-swarm/ directory to skills/deft-directive-swarm/
  • Updated .agents/skills/ thin pointer (deft-swarm -> deft-directive-swarm)
  • Updated SKILL.md frontmatter name to deft-directive-swarm

Phase 0 -- vBRIEF-centric Allocation (replaces ROADMAP.md/SPECIFICATION.md analysis):

  • Monitor scans vbrief/active/ for story-level vBRIEFs instead of reading ROADMAP.md/SPECIFICATION.md
  • Flexible multi-vBRIEF allocation per agent: small/independent stories can be batched, large/complex stories get dedicated agents
  • Monitor decides allocation dynamically based on scope, complexity, and dependencies -- no hardcoded 1:1 rule (RFC D9)

Phase 5 -- Complete vBRIEFs (new subsection):

  • On story completion, move vBRIEF from active/ to completed/ via task scope:complete
  • Update vBRIEF plan.status field to completed
  • Read references and update origins (close GitHub issues with comment referencing merged PR) (RFC D11)

Cross-skill References:

  • Updated all internal references from deft-* to deft-directive-* (review-cycle, refinement)
  • Removed all references to ROADMAP.md and SPECIFICATION.md as source-of-truth documents
  • Updated prompt template to reference vbrief/active/ for task discovery

Tests:

  • Updated 41 test functions in tests/content/test_skills.py for new path
  • Added 7 new tests: flexible allocation, vBRIEF completion lifecycle, origin updates, frontmatter name, no old name references, no hardcoded allocation anti-pattern

Checklist

  • AGENTS.md read
  • task check passes (1248 passed, 2 xfailed)
  • CHANGELOG.md entry added under [Unreleased]
  • Conventional commit message format
  • Feature branch (not master)
  • No files outside scope touched

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 13, 2026

Greptile Summary

This PR renames skills/deft-swarm/ to skills/deft-directive-swarm/, updates the .agents/ thin pointer, rewrites Phase 0 to scan vbrief/active/ for flexible multi-vBRIEF allocation (replacing the hardcoded ROADMAP.md/SPECIFICATION.md analysis), and adds a Phase 5 "Complete vBRIEFs" subsection that correctly defers origin/issue closure to Phase 6 post-merge. Cross-skill references in deft-review-cycle and scm/github.md are updated to the new name, and 48 test functions are updated (41 path updates + 7 new acceptance-criteria tests).

The previously flagged issue (premature issue closure in Phase 5) is fully resolved — the ⚠️ callout at line 252 explicitly guards against it and the action is deferred to Phase 6 Step 2.

Confidence Score: 5/5

Safe to merge — all changes are documentation and test updates with no logic code; the single P2 finding is a trivial import-placement style issue.

All findings are P2 or lower. The blocking concern from the previous review round (premature issue closure) has been addressed with an explicit ⚠️ guard and the closure action moved to Phase 6. The rename is internally consistent across all changed files and tests pass (1248 passed per checklist).

tests/content/test_skills.py — minor import placement style issue (import re inside function body at line 1188).

Important Files Changed

Filename Overview
skills/deft-directive-swarm/SKILL.md Core skill rename + Phase 0 vBRIEF allocation rewrite; Phase 5 correctly defers origin/issue closure to Phase 6 with an explicit ⚠️ callout.
.agents/skills/deft-directive-swarm/SKILL.md New thin-pointer created; old deft-swarm thin pointer deleted. Pointer body and frontmatter name are correct.
skills/deft-review-cycle/SKILL.md Updated cross-skill reference from deft-swarm to deft-directive-swarm in Post-Merge Verification; no other functional changes.
scm/github.md Updated 'See also' reference from skills/deft-swarm to skills/deft-directive-swarm in Post-Merge Issue Verification section.
CHANGELOG.md Correct [Unreleased] entry added under Changed; historical entries retain old deft-swarm name as appropriate context.
tests/content/test_skills.py _SWARM_PATH constant updated to new path; 7 new tests added for #317 acceptance criteria; minor P2: import re placed inside test function body instead of at module level.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    P0[Phase 0 -- Allocate
Scan vbrief/active/ for story vBRIEFs
Flexible allocation: batch small, dedicate for large] --> P1[Phase 1 -- Select
File-overlap audit]
    P1 --> P2[Phase 2 -- Setup
Create worktrees + prompt files]
    P2 --> P3[Phase 3 -- Launch
Detect start_agent / Warp / manual]
    P3 --> P4[Phase 4 -- Monitor
Track agent checkpoints]
    P4 --> P5[Phase 5 -- Review & Complete
Verify Greptile confidence > 3
Move vBRIEFs: active to completed
NO issue closure here]
    P5 -->|Phase 5-6 Gate
User approval required| P6[Phase 6 -- Close
Merge cascade
Close origin issues post-merge
Update vBRIEF references
Slack announcement]
Loading
Prompt To Fix All With AI
This is a comment left during a code review.
Path: tests/content/test_skills.py
Line: 1188-1189

Comment:
**`import re` should be at module level**

`import re` is placed inside the test function body. While Python caches imports after the first call so there's no runtime penalty, PEP 8 requires all imports at the top of the file. Moving it to the module-level import block keeps the convention consistent with the rest of the file.

Place `import re` at the top of `test_skills.py` alongside the other imports, and remove this inline import.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (7): Last reviewed commit: "fix: update deft-swarm prose refs in def..." | Re-trigger Greptile

Comment thread skills/deft-directive-swarm/SKILL.md Outdated
… vBRIEF allocation (#317)

- Rename skills/deft-swarm/ to skills/deft-directive-swarm/ and update .agents/skills/ thin pointer
- Update SKILL.md frontmatter name to deft-directive-swarm
- Rewrite Phase 0 from ROADMAP.md/SPECIFICATION.md analysis to vBRIEF-centric allocation:
  monitor scans vbrief/active/ for story-level vBRIEFs, allocates one or more per agent
  based on scope, complexity, and dependencies (no fixed 1:1 rule)
- Add Phase 5 Complete vBRIEFs subsection: move vBRIEF from active/ to completed/ via
  task scope:complete, update plan.status, read references and close origin issues
- Update all cross-skill references from deft-* to deft-directive-*
- Remove all ROADMAP.md/SPECIFICATION.md source-of-truth references
- Update prompt template to reference vbrief/active/ for task discovery
- Add 2 new anti-patterns: hardcoded 1:1 allocation, completing without vBRIEF lifecycle
- Update 41 test functions in tests/content/test_skills.py for new path
- Add 7 new tests for #317 acceptance criteria (flexible allocation, vBRIEF completion,
  origin updates, frontmatter name, no old name references, no hardcoded allocation)
- Address Greptile P1: closing issues in Phase 5 (before merge) creates premature
  state if the merge cascade fails; moved origin update to Phase 6 Step 2
- Phase 5 Complete vBRIEFs now only handles vBRIEF lifecycle (scope:complete, status)
- Phase 6 Step 2 expanded to include vBRIEF origin reference updates after merge
- Updated test to match new origin update location
…ot yet renamed)

- Address Greptile P1: 8 references to skills/deft-directive-review-cycle/SKILL.md
  pointed to a non-existent file (review-cycle rename is Story F, not yet merged)
- Reverted all occurrences to skills/deft-review-cycle/SKILL.md (current live path)
- Spawned agents will now correctly find the review-cycle skill on STEP 1
@MScottAdams MScottAdams force-pushed the agent4/docs/317-swarm branch from b1cf0ee to 75e0888 Compare April 13, 2026 21:19
@MScottAdams MScottAdams merged commit de98ce2 into phase2/vbrief-cutover Apr 13, 2026
3 checks passed
@MScottAdams MScottAdams deleted the agent4/docs/317-swarm branch April 13, 2026 21:46
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