@boopkit/cap-workflows 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/capability.json CHANGED
@@ -15,6 +15,7 @@
15
15
  "boop-issue-sweep-workflow",
16
16
  "boop-website-dev-workflow",
17
17
  "boop-design-handoff-workflow",
18
- "boop-knowledge-backfill"
18
+ "boop-knowledge-backfill",
19
+ "boop-stray-disposition"
19
20
  ]
20
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boopkit/cap-workflows",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "Reusable end-to-end development and writing workflows for AI agents",
5
5
  "files": [
6
6
  "skills/",
@@ -4,6 +4,10 @@ description: "When you need to judge whether an area of shipped code is structur
4
4
  metadata:
5
5
  category: workflow
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
7
11
 
8
12
  # Architecture audit workflow — judge an area's structural health, and find the debt a named change would actually hit.
9
13
 
@@ -4,6 +4,10 @@ description: "When the operator hands off a design package (a README plus a drop
4
4
  metadata:
5
5
  category: workflow
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
7
11
 
8
12
  # Design-handoff workflow — turn a design package into shipped, reviewed code.
9
13
 
@@ -4,6 +4,11 @@ description: "When you are tasked with building a feature end-to-end, follow thi
4
4
  metadata:
5
5
  category: workflow
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
11
+
7
12
  # Workflow for building features.
8
13
  When you are tasked with building a feature end-to-end, follow this guidance.
9
14
 
@@ -4,6 +4,10 @@ description: "When the bd queue has accumulated a noisy backlog of lingering P1/
4
4
  metadata:
5
5
  category: workflow
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
7
11
 
8
12
  # Issue sweep workflow — clear lingering backlog noise without spending the operator's judgment.
9
13
 
@@ -4,6 +4,11 @@ description: "When you need to integrate new knowledge from a set of specs or co
4
4
  metadata:
5
5
  category: docs
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
11
+
7
12
  # Knowledge Backfill
8
13
 
9
14
  **a. Integrate into reference:**
@@ -4,6 +4,10 @@ description: "When you are extending an existing system (front-end, back-end, or
4
4
  metadata:
5
5
  category: workflow
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
7
11
 
8
12
  # Light dev workflow — goal-grounded extension of an existing system.
9
13
 
@@ -4,6 +4,10 @@ description: "When you need to change a contract, cardinality, or shape that exi
4
4
  metadata:
5
5
  category: workflow
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
7
11
 
8
12
  # Workflow for refactoring to enable a feature
9
13
 
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: boop-stray-disposition
3
+ description: "When an autonomous run (a loop, a sweep, a sub-agent session) has finished and filed follow-up issues along the way, settle each one before you write the closing summary. Every stray gets a recorded disposition — re-parented and reachable from the roadmap, folded into a spec and closed, or triaged away. Use this whenever a run ends with issues in the queue that nobody has decided to do."
4
+ metadata:
5
+ category: workflow
6
+ ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
11
+
12
+ # Stray disposition — settle what a run filed before you call it done
13
+
14
+ Agents working through an autonomous run routinely file follow-up issues during review and
15
+ punch-list work without parenting them to the epic they arose from. Those issues land in the
16
+ ready queue disconnected from the context that produced them. After every run, before the
17
+ closing summary, audit for these strays and give each one a **disposition** — the deliberate
18
+ settling of what becomes of it — so nothing is left in limbo.
19
+
20
+ Find them by running `bd ready` and `bd list --status=open` and identifying the issues this run
21
+ filed: they cite the run's findings or the files it touched.
22
+
23
+ ## The three dispositions
24
+
25
+ 1. **Re-parent** — the stray belongs to the work that just ran. Move it under the run's epic, or
26
+ group several strays under a new discovered-from epic (`Group: <work> hardening`) for a
27
+ follow-on run scoped to that prefix on the same branch, so the operator still reviews and
28
+ merges once.
29
+
30
+ 2. **Fold** — the stray is requirements or evidence for a spec that is already planned. Move the
31
+ substance into that spec's text and close the issue with a reason pointing at the spec. A
32
+ future run plans from the spec, never from the closed queue, so content left behind in the
33
+ issue would never reach it.
34
+
35
+ 3. **Triage** — a true orphan. Close it with a reason if it does not survive scrutiny, or surface
36
+ it to the operator in the closing summary for a decision. Never leave it silently in the queue.
37
+
38
+ ## Re-parenting alone is not a disposition
39
+
40
+ Nothing polls or sweeps the issue queue. Work reaches an agent only through the plan spec and the
41
+ runs it launches. A stray moved under an epic that no planned run will execute is still stranded —
42
+ just tidier.
43
+
44
+ A disposition is complete only when the stray is **reachable from the roadmap**: the plan spec
45
+ names the issue and the trigger for picking it up, or the substance is folded into a spec, or the
46
+ issue is closed.
47
+
48
+ If the stray must wait on an event, encode the sequencing as a dependency (`bd dep`) on the issue
49
+ that produces that event. A dependency is visible and self-releasing. Deferring an issue only
50
+ hides it from the ready queue until a date, which helps nobody who is not already polling.
51
+
52
+ ## Fold versus reference is a judgement call
53
+
54
+ **Fold** — extract the substance into the spec so it reads complete cold, close the issue, and
55
+ leave pointers at both ends — when the next reader is a planner working from the spec.
56
+
57
+ **Keep the issue open and give the spec a one-line reference instead** when the finding is
58
+ operational rather than design-shaped (a bug with reproduction steps that will be worked *as* an
59
+ issue), when the issue is a living artifact with discussion or an owner, or when the content is
60
+ too bulky to fold without bloating the spec.
61
+
62
+ The test under both: put the substance where its next reader will actually look, and leave a
63
+ pointer at the other end.
64
+
65
+ ## Archiving a spec orphans the issues it rooted
66
+
67
+ When closeout moves a spec to a history location, any open issue whose only roadmap reference
68
+ lived in that spec is stranded again. Migrate those references to the successor document — the
69
+ remainder spec, or the plan — as part of the same sweep.
70
+
71
+ ## The test at the end
72
+
73
+ Every stray filed during the run has a recorded disposition, each disposition ends at the roadmap
74
+ or at a closed issue, and the ready queue contains only work someone has actually decided to do.
75
+
76
+ A queue that accumulates undispositioned findings makes every future `bd ready` call more
77
+ expensive to read. That noise is what this practice exists to prevent.
78
+
79
+ ## Related
80
+
81
+ - `boop-project-mgmt-beads-planning` — how to write and parent the issues a disposition re-parents
82
+ or folds, so the next agent can pick one up cold.
83
+ - `boop-issue-sweep-workflow` — when the strays have already accumulated into a backlog and want
84
+ clearing as a batch rather than settling one run's output.
@@ -4,6 +4,10 @@ description: "Use when a set of tests is not testing the purpose of the code: mo
4
4
  metadata:
5
5
  category: workflow
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
7
11
 
8
12
  # Test audit workflow — cut the tests that cannot go red, and re-level the rest.
9
13
 
@@ -4,6 +4,11 @@ description: "When you are tasked with implementing website changes end-to-end (
4
4
  metadata:
5
5
  category: workflow
6
6
  ---
7
+ > **Read `PROJECT.md`, beside this file, first.**
8
+ > It records how this project applies the guidance below, and where it deliberately differs.
9
+ > Where the two conflict, `PROJECT.md` wins.
10
+ > Record project-specific rules there, never in this file.
11
+
7
12
  # Workflow for building website changes.
8
13
 
9
14
  This is the **website sibling** of [`boop-feature-dev-workflow`](../boop-feature-dev-workflow/SKILL.md) — same step-by-step flow, same beads-issue structure, customized for marketing-site work (new pages, page rewrites, IA changes, content/CTA updates).