@punks/cli 2.6.1 → 3.0.0-beta.0

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.
Files changed (102) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +42 -24
  3. package/dist/BASELINE_CHANGELOG.md +57 -0
  4. package/dist/CHANGELOG.md +80 -0
  5. package/dist/data/scripts/harness-projection/adapters/claude.d.mts +3 -0
  6. package/dist/data/scripts/harness-projection/adapters/claude.mjs +124 -0
  7. package/dist/data/scripts/harness-projection/adapters/codex.d.mts +3 -0
  8. package/dist/data/scripts/harness-projection/adapters/codex.mjs +137 -0
  9. package/dist/data/scripts/harness-projection/adapters/cursor.d.mts +5 -0
  10. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +106 -0
  11. package/dist/data/scripts/harness-projection/adapters/opencode.d.mts +5 -0
  12. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +100 -0
  13. package/dist/data/scripts/harness-projection/apply.d.mts +12 -0
  14. package/dist/data/scripts/harness-projection/apply.mjs +96 -0
  15. package/dist/data/scripts/harness-projection/core.d.mts +8 -0
  16. package/dist/data/scripts/harness-projection/core.mjs +239 -0
  17. package/dist/data/scripts/harness-projection/test-fixtures/application-context-plan.json +27 -0
  18. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +109 -0
  19. package/dist/data/scripts/harness-projection/test-fixtures/claude/context-plan.json +150 -0
  20. package/dist/data/scripts/harness-projection/test-fixtures/claude/matrix.json +23 -0
  21. package/dist/data/scripts/harness-projection/test-fixtures/claude/traces.json +15 -0
  22. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +124 -0
  23. package/dist/data/scripts/harness-projection/test-fixtures/codex/context-plan.json +150 -0
  24. package/dist/data/scripts/harness-projection/test-fixtures/codex/matrix.json +23 -0
  25. package/dist/data/scripts/harness-projection/test-fixtures/codex/traces.json +15 -0
  26. package/dist/data/scripts/harness-projection/test-fixtures/cursor/compiler-input.json +93 -0
  27. package/dist/data/scripts/harness-projection/test-fixtures/cursor/context-plan.json +108 -0
  28. package/dist/data/scripts/harness-projection/test-fixtures/cursor/matrix.json +19 -0
  29. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +54 -0
  30. package/dist/data/scripts/harness-projection/test-fixtures/mixed-context-plan.json +35 -0
  31. package/dist/data/scripts/harness-projection/test-fixtures/opencode/compiler-input.json +93 -0
  32. package/dist/data/scripts/harness-projection/test-fixtures/opencode/context-plan.json +108 -0
  33. package/dist/data/scripts/harness-projection/test-fixtures/opencode/matrix.json +19 -0
  34. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +51 -0
  35. package/dist/data/scripts/sync-subagents.mjs +1113 -33
  36. package/dist/data/subagents/manifest.mjs +5 -6
  37. package/dist/index.js +1373 -62672
  38. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +1 -1
  39. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +2 -2
  40. package/dist/skills/agnostic/planning/create-plan/SKILL.md +11 -10
  41. package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +10 -31
  42. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +2 -2
  43. package/dist/skills/agnostic/planning/create-spec/SKILL.md +3 -5
  44. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +1 -0
  45. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +2 -2
  46. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +4 -9
  47. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +1 -0
  48. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +1 -1
  49. package/dist/skills/agnostic/requirements/grilling/LICENSE +21 -0
  50. package/dist/skills/agnostic/requirements/grilling/SKILL.md +6 -30
  51. package/dist/skills/agnostic/requirements/grilling/UPSTREAM.md +16 -0
  52. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -5
  53. package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +40 -16
  54. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +3 -16
  55. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +21 -15
  56. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +14 -14
  57. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +28 -9
  58. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +45 -5
  59. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -28
  60. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +22 -6
  61. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +47 -22
  62. package/dist/skills/frameworks/effect/effect/LICENSE +21 -0
  63. package/dist/skills/frameworks/effect/effect/SKILL.md +100 -0
  64. package/dist/skills/frameworks/effect/effect/UPSTREAM.md +11 -0
  65. package/dist/skills/frameworks/effect/effect/references/CACHING.md +76 -0
  66. package/dist/skills/frameworks/effect/effect/references/CONFIG.md +67 -0
  67. package/dist/skills/frameworks/effect/effect/references/HTTP_CLIENTS.md +101 -0
  68. package/dist/skills/frameworks/effect/{effect-authoring/references/otel-patterns.md → effect/references/OBSERVABILITY.md} +4 -29
  69. package/dist/skills/frameworks/effect/effect/references/SCHEDULING.md +135 -0
  70. package/dist/skills/frameworks/effect/effect/references/SCHEMA.md +130 -0
  71. package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +168 -0
  72. package/dist/skills/frameworks/effect/effect/references/STREAMS.md +135 -0
  73. package/dist/skills/frameworks/effect/effect/references/TESTING.md +118 -0
  74. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +7 -8
  75. package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +1 -1
  76. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
  77. package/dist/skills/misc/secrets-cli/SKILL.md +54 -0
  78. package/dist/skills/misc/secrets-cli/references/command-reference.md +107 -0
  79. package/dist/skills/misc/secrets-cli/references/safety-and-errors.md +54 -0
  80. package/dist/skills/misc/secrets-cli/references/workflows.md +106 -0
  81. package/dist/skills/phases/design-phase/phases/grill.md +1 -1
  82. package/dist/skills/phases/requirements-phase/SKILL.md +2 -4
  83. package/dist/skills/phases/review-phase/REFERENCE.md +13 -5
  84. package/dist/skills/phases/review-phase/SKILL.md +3 -2
  85. package/package.json +1 -1
  86. package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
  87. package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
  88. package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
  89. package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
  90. package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
  91. package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
  92. package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
  93. package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
  94. package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
  95. package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
  96. package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
  97. package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
  98. package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
  99. package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
  100. package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
  101. package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
  102. /package/dist/skills/frameworks/effect/{effect-authoring/references/effect-atom-patterns.md → effect/references/EFFECT_ATOM.md} +0 -0
@@ -10,14 +10,14 @@ description: Materialize canonical backlog kinds into provider-native items. Use
10
10
  1. Before any provider materialization, read `.devpunks/settings.json` and resolve the destination from `backlogProvider` plus `backlogProjectUrl`.
11
11
  2. If either setting is missing, or `backlogProjectUrl` is not an absolute HTTP(S) URL, stop and ask the operator to run `hi ensure`. Do not discover or guess a backlog destination.
12
12
  3. Read [REFERENCE.md](REFERENCE.md) and [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md).
13
- 4. If `requirements-grill` artifacts exist, read `*-grill-status.md` first and `*-grill-log.md` second.
13
+ 4. If `requirements-grill` artifacts exist, read `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md` first and `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` second.
14
14
  5. If subagents are available and the source material is large, use `requirements-synthesizer` to compress accepted, rejected, superseded, parked, and unresolved decisions.
15
15
  6. If subagents are available, use `backlog-shaper` for a draft module/epic/story hierarchy; keep final backlog judgment in the parent thread.
16
16
  7. Derive the item kind first: `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
17
- 8. Place `fog` at the backlog root; place concrete `grilling`, `research`, `prototype`, `epic`, and `story` items under a module/milestone.
17
+ 8. Place `fog` at the backlog root; place concrete `grilling`, `research`, `prototype`, `epic`, and `story` items in a capability module. Keep capability grouping separate from execution milestones.
18
18
  9. Preserve delivery semantics: epics anchor future `SPEC.md`; stories remain product-facing children of epics.
19
19
  10. Apply the item-count rule before finalizing implementation epics/stories.
20
- 11. Make story ordering explicit with native dependency primitives when the provider supports them.
20
+ 11. Make story ordering explicit with native dependency primitives when the provider supports them. Derive chronological execution milestones from those dependencies using the order contract in the backlog model.
21
21
  12. Keep all item bodies product-facing and appropriate to their kind.
22
22
  13. When approved design/prototype artifacts are source material, preserve approved artifact context and durable links in the relevant backlog items.
23
23
  14. For visual assets, use `repo-asset-management`: prefer backlog attachments first, then repo-provider fallback links when attachments are unavailable or unsuitable.
@@ -26,17 +26,17 @@ description: Materialize canonical backlog kinds into provider-native items. Use
26
26
 
27
27
  ## Item-count rule
28
28
 
29
- Within durable modules, produce the fewest epics and stories that preserve all accepted requirements. Split only when merging would lose a distinct product outcome, acceptance signal, dependency, provider boundary, or future `SPEC.md` boundary; otherwise fold requirements into the existing item body as scope, constraints, or acceptance signals.
29
+ Within durable capability modules, produce the fewest epics and stories that preserve all accepted requirements. Split only when merging would lose a distinct product outcome, acceptance signal, dependency, provider boundary, or future `SPEC.md` boundary; otherwise fold requirements into the existing item body as scope, constraints, or acceptance signals.
30
30
 
31
31
  ## Kind taxonomy
32
32
 
33
33
  Every supported kind is a first-class provider backlog item that is visible, assignable, searchable, linkable, and closeable.
34
34
 
35
35
  - `fog`: root-level uncertainty; not delivery-eligible, not a `SPEC.md` anchor, and not an execution container.
36
- - `grilling`: module/milestone-scoped human decision work.
37
- - `research`: module/milestone-scoped readonly fact-finding.
38
- - `prototype`: module/milestone-scoped artifact or experiment learning.
39
- - `epic`: module/milestone-scoped accepted implementation capability; anchors one future `SPEC.md`.
36
+ - `grilling`: capability-module-scoped human decision work.
37
+ - `research`: capability-module-scoped readonly fact-finding.
38
+ - `prototype`: capability-module-scoped artifact or experiment learning.
39
+ - `epic`: capability-module-scoped accepted implementation capability; anchors one future `SPEC.md`.
40
40
  - `story`: product-facing accepted implementation slice under one epic.
41
41
 
42
42
  `grilling`, `research`, and `prototype` close with an accepted decision note naming the answer, accepted direction, artifacts or evidence, and created or updated epics/stories.
@@ -45,17 +45,17 @@ Every supported kind is a first-class provider backlog item that is visible, ass
45
45
 
46
46
  ### From a large requirements discussion
47
47
 
48
- 1. Normalize the input into durable modules.
49
- 2. Turn each module into a milestone or provider-equivalent container.
48
+ 1. Normalize the input into durable capability modules.
49
+ 2. Store capability grouping separately from chronological execution milestones.
50
50
  3. Create learning or uncertainty items when scope is not yet accepted.
51
51
  4. Create epic/capability items only when implementation scope is accepted enough to map to one future `SPEC.md`.
52
52
  5. Break each epic into independently observable child stories.
53
- 6. Add native blockers between stories when order matters.
53
+ 6. Add native blockers between stories when order matters, then derive chronological milestones from the blocker DAG.
54
54
 
55
55
  ### From `requirements-grill` artifacts
56
56
 
57
- 1. Read `docs/<topic>-grill-status.md` first.
58
- 2. Read `docs/<topic>-grill-log.md` second.
57
+ 1. Read `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md` first.
58
+ 2. Read `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` second.
59
59
  3. Use the status file to identify:
60
60
  - active branches
61
61
  - branch completion
@@ -74,7 +74,7 @@ Every supported kind is a first-class provider backlog item that is visible, ass
74
74
 
75
75
  1. Read the current hierarchy and item bodies first.
76
76
  2. Collapse technical chores back into product-facing stories when possible.
77
- 3. Rebuild root fog plus module/milestone -> concrete item structure.
77
+ 3. Rebuild root fog plus capability module -> concrete item structure, then recompute chronological milestones from native blockers.
78
78
  4. Keep execution detail out of backlog bodies.
79
79
 
80
80
  ### Provider payload selection
@@ -5,23 +5,27 @@
5
5
  ```text
6
6
  Backlog root
7
7
  fog
8
- module/milestone
8
+ capability module
9
9
  grilling
10
10
  research
11
11
  prototype
12
12
  epic
13
13
  story
14
+
15
+ Execution milestones
16
+ M1 -> M2 -> M3 ...
14
17
  ```
15
18
 
16
19
  Provider mapping:
17
20
 
18
21
  - kind -> provider-native single-value kind storage where available
19
22
  - fog -> root-level first-class backlog item
20
- - module -> milestone or equivalent grouping
21
- - grilling -> module/milestone-scoped first-class decision item
22
- - research -> module/milestone-scoped first-class investigation item
23
- - prototype -> module/milestone-scoped first-class learning item
24
- - epic -> module/milestone-scoped parent issue / capability item
23
+ - capability module -> durable capability grouping, stored separately from execution milestones
24
+ - milestone -> chronological execution wave derived from native blockers
25
+ - grilling -> capability-module-scoped first-class decision item
26
+ - research -> capability-module-scoped first-class investigation item
27
+ - prototype -> capability-module-scoped first-class learning item
28
+ - epic -> capability-module-scoped parent issue / capability item
25
29
  - story -> child issue / sub-issue / child work item under an epic
26
30
 
27
31
  Every supported kind must be visible, assignable, searchable, linkable, and closeable in the target provider.
@@ -40,7 +44,8 @@ Every supported kind must be visible, assignable, searchable, linkable, and clos
40
44
  `kind` is separate from:
41
45
 
42
46
  - workflow state
43
- - module/milestone grouping
47
+ - capability-module grouping
48
+ - execution-milestone assignment
44
49
  - parent/child hierarchy
45
50
  - provider issue type, unless the provider requires that type for structure
46
51
 
@@ -61,13 +66,13 @@ One fog item must not:
61
66
  - become an execution container
62
67
  - own child tickets by default
63
68
 
64
- Sharpening fog first chooses or creates a module/milestone, then creates concrete non-fog items there.
69
+ Sharpening fog first chooses or creates a capability module, then creates concrete non-fog items there.
65
70
 
66
71
  ## Learning item contract
67
72
 
68
73
  `grilling`, `research`, and `prototype` items:
69
74
 
70
- - live under a module/milestone
75
+ - live under a capability module
71
76
  - represent decision, investigation, or artifact-learning work
72
77
  - close before implementation scope changes
73
78
 
@@ -126,6 +131,20 @@ Preferred primitives:
126
131
 
127
132
  Do not encode story order only in prose when the provider can store it natively.
128
133
 
134
+ Capability modules and execution milestones are independent. Modules are durable capability groups. Milestones are chronological execution waves and must be recomputed from native blocker relations. Capability membership, parent/child hierarchy, and existing milestone assignment do not create dependency edges or determine milestone assignment.
135
+
136
+ Milestone-eligible items are selected concrete non-fog work: `grilling`, `research`, `prototype`, `epic`, and `story`. Fog has no execution milestone until sharpening produces concrete items. Capability-module metadata is grouping, not an execution item.
137
+
138
+ Before materialization:
139
+
140
+ 1. Build one directed edge from each blocker to the item it blocks across the full selected milestone-eligible scope.
141
+ 2. Stop materialization on a missing blocker target or cycle.
142
+ 3. Assign every selected milestone-eligible item with no blockers to `M1`.
143
+ 4. Assign every other selected milestone-eligible item to `M(1 + max(milestone number of each blocker))`.
144
+ 5. Validate every blocker is in a strictly earlier milestone than the item it blocks.
145
+
146
+ Items with the same derived number can proceed in parallel and share a milestone, including items from different capability modules. One capability module can span multiple milestones. Native `blockedBy` / `blocks` relations remain authoritative; recompute milestone assignment and numbering whenever those relations change.
147
+
129
148
  ## `create-spec` reading contract
130
149
 
131
150
  When `create-spec` reads backlog items:
@@ -3,6 +3,8 @@
3
3
  Official source:
4
4
 
5
5
  - Work items create API: [learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/create?view=azure-devops-rest-7.1](https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/create?view=azure-devops-rest-7.1)
6
+ - Area and iteration paths: [learn.microsoft.com/en-us/azure/devops/boards/queries/query-by-area-iteration-path?view=azure-devops](https://learn.microsoft.com/en-us/azure/devops/boards/queries/query-by-area-iteration-path?view=azure-devops)
7
+ - Work item relation types: [learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-item-relation-types/list?view=azure-devops-rest-7.1](https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-item-relation-types/list?view=azure-devops-rest-7.1)
6
8
 
7
9
  ## Transport
8
10
 
@@ -36,6 +38,11 @@ Azure DevOps creates work items with a JSON Patch document.
36
38
  "op": "add",
37
39
  "path": "/fields/Custom.DevpunksKind",
38
40
  "value": "story"
41
+ },
42
+ {
43
+ "op": "add",
44
+ "path": "/fields/System.AreaPath",
45
+ "value": "Product\\Submission lifecycle"
39
46
  }
40
47
  ]
41
48
  ```
@@ -74,16 +81,49 @@ Use Work Item Type for provider structure, not canonical Harness kind. Tags may
74
81
  ## Repo mapping
75
82
 
76
83
  - fog -> root-level work item with `Custom.DevpunksKind = fog`
77
- - module -> area/iteration or team-specific planning container
78
- - grilling -> module/milestone-scoped work item with `Custom.DevpunksKind = grilling`
79
- - research -> module/milestone-scoped work item with `Custom.DevpunksKind = research`
80
- - prototype -> module/milestone-scoped work item with `Custom.DevpunksKind = prototype`
84
+ - capability module -> `System.AreaPath`
85
+ - execution milestone -> chronological `System.IterationPath` derived from native Predecessor links
86
+ - grilling -> capability-module-scoped work item with `Custom.DevpunksKind = grilling`
87
+ - research -> capability-module-scoped work item with `Custom.DevpunksKind = research`
88
+ - prototype -> capability-module-scoped work item with `Custom.DevpunksKind = prototype`
81
89
  - epic -> work item type chosen by your process, often `Epic` or `Feature`, with `Custom.DevpunksKind = epic`
82
90
  - story -> child work item chosen by your process, often `User Story`, `Product Backlog Item`, or `Task`, with `Custom.DevpunksKind = story`
83
91
 
92
+ ## Capability grouping
93
+
94
+ Use `/fields/System.AreaPath` for durable capability-module membership. Area paths organize work by product or feature area and stay independent from delivery chronology. Fog remains at the backlog/root area until sharpening chooses a capability module.
95
+
96
+ Do not encode execution waves in Area Path. One area can span multiple iterations, and one iteration can contain work from multiple areas.
97
+
98
+ ## Chronological execution milestones
99
+
100
+ Use `/fields/System.IterationPath` for chronological `M1`, `M2`, and later execution waves only when the project has matching iteration nodes. Derive assignments from native Predecessor links:
101
+
102
+ 1. Create selected concrete non-fog work items and parent/child hierarchy without an execution iteration.
103
+ 2. Add each blocker as a Predecessor relation on the blocked item using `System.LinkTypes.Dependency-Reverse`.
104
+ 3. Stop on a missing blocker target or dependency cycle.
105
+ 4. Assign blocker-free work items to `M1`.
106
+ 5. Assign every other work item to `M(1 + max(iteration number of each predecessor))`.
107
+ 6. Create or resolve the matching iteration nodes and patch `/fields/System.IterationPath` on every selected milestone-eligible work item.
108
+ 7. Verify every predecessor is in a strictly earlier iteration.
109
+
110
+ Capability Area Path, parent/child hierarchy, and current Iteration Path never create dependency edges. Recompute iteration assignment whenever Predecessor relations change.
111
+
112
+ Apply the derived iteration with a follow-up JSON Patch operation:
113
+
114
+ ```json
115
+ [
116
+ {
117
+ "op": "add",
118
+ "path": "/fields/System.IterationPath",
119
+ "value": "Product\\M2"
120
+ }
121
+ ]
122
+ ```
123
+
84
124
  ## Notes
85
125
 
86
126
  - Azure DevOps create requests are process-dependent. The exact work item type names available in `{type}` depend on the project template and process.
87
127
  - This asset documents the raw create payload shape, not a universal field catalog for every process.
88
128
  - If `Custom.DevpunksKind` does not exist, create a project/process custom picklist field before backlog sync or record the provider setup blocker.
89
- - Parent/child and dependency relations may require additional relation operations or follow-up requests depending on your process conventions. Keep those separate from the minimal create-only contract documented here.
129
+ - Parent/child and dependency relations require relation operations or follow-up requests. Keep those separate from the minimal create-only body, then derive Iteration Path only after the dependency graph is complete.
@@ -6,6 +6,8 @@ Official sources:
6
6
  - GraphQL input objects: [docs.github.com/en/graphql/reference/input-objects](https://docs.github.com/en/graphql/reference/input-objects)
7
7
  - REST issues API: [docs.github.com/en/rest/issues/issues](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28)
8
8
  - REST milestones API: [docs.github.com/en/rest/issues/milestones](https://docs.github.com/en/rest/issues/milestones?apiVersion=2022-11-28)
9
+ - Project fields: [docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields)
10
+ - Issue dependencies: [docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-issue-dependencies](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-issue-dependencies)
9
11
 
10
12
  ## Intent
11
13
 
@@ -13,7 +15,8 @@ Use GitHub Projects V2 and GitHub Issues together.
13
15
 
14
16
  Canonical mapping:
15
17
 
16
- - module/milestone -> repository milestone plus a Project V2 grouping field
18
+ - capability module -> Project V2 custom single-select field
19
+ - execution milestone -> chronological repository milestone derived from native issue dependencies
17
20
  - epic/capability -> parent GitHub issue in the Project
18
21
  - story -> child issue/sub-issue in the Project
19
22
  - story ordering -> native issue dependency
@@ -49,7 +52,7 @@ mutation CreateBacklogProject($ownerId: ID!, $repositoryId: ID!, $title: String!
49
52
  Expected Project fields:
50
53
 
51
54
  - `Kind`: Project custom single-select field named `Kind` with values `fog`, `grilling`, `research`, `prototype`, `epic`, `story`
52
- - `Module/Milestone`: text or single-select
55
+ - `Capability module`: Project custom single-select field with one option per durable product capability
53
56
  - `Epic`: text, storing the epic issue number/title for story rows
54
57
 
55
58
  Create missing fields with `createProjectV2Field`; set values with `updateProjectV2ItemFieldValue`.
@@ -69,9 +72,29 @@ Allowed values:
69
72
 
70
73
  Avoid GitHub Issue Type as the default kind storage. Issue types are organization-level and better for broad org taxonomy. Labels may mirror kind for compatibility, but `Kind` is canonical when the Project field exists.
71
74
 
72
- ## Create missing milestones
75
+ ## Capability grouping
73
76
 
74
- Use repository milestones for the module/milestone container.
77
+ Store durable capability membership in a Project V2 custom single-select field named `Capability module`. This field answers which product capability owns the item. It is independent from repository milestones, parent/sub-issue hierarchy, and dependency order.
78
+
79
+ Fog leaves `Capability module` empty until sharpening selects a module. Every selected concrete non-fog issue receives exactly one capability-module value. A module can contain issues from multiple execution milestones.
80
+
81
+ ## Chronological execution milestones
82
+
83
+ Use repository milestones named `M1`, `M2`, and so on only for dependency-derived execution waves. Do not create one repository milestone per capability module.
84
+
85
+ 1. Create selected concrete non-fog issues without a milestone.
86
+ 2. Add every native blocker with `addBlockedBy`.
87
+ 3. Stop on a missing blocker target or dependency cycle.
88
+ 4. Assign blocker-free issues to `M1`.
89
+ 5. Assign every other issue to `M(1 + max(milestone number of each blocker))`.
90
+ 6. Create or reuse the derived repository milestones and assign exactly one to each selected milestone-eligible issue.
91
+ 7. Verify every blocker belongs to a strictly earlier milestone.
92
+
93
+ Issues from different capability modules can share one milestone, and one capability module can span multiple milestones. Recompute milestone assignment whenever native dependencies change.
94
+
95
+ ## Create missing execution milestones
96
+
97
+ Create only the chronological repository milestones derived above.
75
98
 
76
99
  Endpoint:
77
100
 
@@ -87,9 +110,9 @@ Body:
87
110
 
88
111
  ```json
89
112
  {
90
- "title": "M1 - Intake and Review",
113
+ "title": "M1",
91
114
  "state": "open",
92
- "description": "Module container for intake and review backlog.",
115
+ "description": "Dependency-derived execution wave 1.",
93
116
  "due_on": "2026-09-30T23:59:59Z"
94
117
  }
95
118
  ```
@@ -98,8 +121,8 @@ Required field:
98
121
 
99
122
  - `title`
100
123
 
101
- For GraphQL issue creation, use the returned milestone node ID as `milestoneId`.
102
- For REST issue creation, use the returned milestone number as `milestone`.
124
+ For GraphQL milestone assignment after dependency derivation, use the returned milestone node ID as `milestoneId`.
125
+ For REST milestone assignment after dependency derivation, use the returned milestone number as `milestone`.
103
126
 
104
127
  ## Create a fog issue
105
128
 
@@ -108,16 +131,16 @@ Use a root-level issue for fog. Add it to the Project V2 at creation time. Do no
108
131
  After creation, set Project fields:
109
132
 
110
133
  - `Kind = fog`
111
- - `Module/Milestone` empty or root/backlog value
134
+ - `Capability module` empty
112
135
 
113
136
  ## Create grilling, research, or prototype issues
114
137
 
115
- Use first-class issues in the matching module/milestone. These are not child stories unless the provider explicitly needs a parent for visibility.
138
+ Use first-class issues in the matching capability module. These are not child stories unless the provider explicitly needs a parent for visibility.
116
139
 
117
140
  After creation, set Project fields:
118
141
 
119
142
  - `Kind = grilling`, `Kind = research`, or `Kind = prototype`
120
- - `Module/Milestone = <module title>`
143
+ - `Capability module = <module title>`
121
144
 
122
145
  Closure notes for these issues must name the answer, accepted direction, artifacts or evidence, and created or updated epics/stories.
123
146
 
@@ -129,14 +152,12 @@ Use a parent issue for each epic/capability. Add it to the Project V2 at creatio
129
152
  mutation CreateEpic(
130
153
  $repositoryId: ID!
131
154
  $projectV2Ids: [ID!]
132
- $milestoneId: ID
133
155
  $title: String!
134
156
  $body: String!
135
157
  ) {
136
158
  createIssue(input: {
137
159
  repositoryId: $repositoryId
138
160
  projectV2Ids: $projectV2Ids
139
- milestoneId: $milestoneId
140
161
  title: $title
141
162
  body: $body
142
163
  labelIds: []
@@ -161,7 +182,7 @@ Epic body ownership:
161
182
  After creation, set Project fields:
162
183
 
163
184
  - `Kind = epic`
164
- - `Module/Milestone = <module title>`
185
+ - `Capability module = <module title>`
165
186
 
166
187
  ## Create story issues
167
188
 
@@ -171,7 +192,6 @@ Use child issues/sub-issues for stories. Prefer `parentIssueId` at story creatio
171
192
  mutation CreateStory(
172
193
  $repositoryId: ID!
173
194
  $projectV2Ids: [ID!]
174
- $milestoneId: ID
175
195
  $parentIssueId: ID!
176
196
  $title: String!
177
197
  $body: String!
@@ -179,7 +199,6 @@ mutation CreateStory(
179
199
  createIssue(input: {
180
200
  repositoryId: $repositoryId
181
201
  projectV2Ids: $projectV2Ids
182
- milestoneId: $milestoneId
183
202
  parentIssueId: $parentIssueId
184
203
  title: $title
185
204
  body: $body
@@ -207,7 +226,7 @@ Story body ownership:
207
226
  After creation, set Project fields:
208
227
 
209
228
  - `Kind = story`
210
- - `Module/Milestone = <module title>`
229
+ - `Capability module = <module title>`
211
230
  - `Epic = <epic issue number/title>`
212
231
 
213
232
  If a story was created before the epic parent was known, attach it with `addSubIssue`:
@@ -224,9 +243,9 @@ mutation AddStoryToEpic($issueId: ID!, $subIssueId: ID!) {
224
243
  }
225
244
  ```
226
245
 
227
- ## Add story blockers
246
+ ## Add native blockers
228
247
 
229
- Use native issue dependencies for story ordering.
248
+ Use native issue dependencies for every real blocker between selected concrete non-fog issues.
230
249
 
231
250
  ```graphql
232
251
  mutation AddBlockedBy($issueId: ID!, $blockingIssueId: ID!) {
@@ -239,22 +258,23 @@ mutation AddBlockedBy($issueId: ID!, $blockingIssueId: ID!) {
239
258
  }
240
259
  ```
241
260
 
242
- `issueId` is the blocked story. `blockingIssueId` is the prerequisite story.
261
+ `issueId` is the blocked issue. `blockingIssueId` is the prerequisite issue.
243
262
 
244
263
  ## Minimal creation order
245
264
 
246
265
  1. Resolve repository/owner IDs.
247
266
  2. Resolve Project V2 by title; create it if absent.
248
- 3. Resolve or create Project fields.
249
- 4. Resolve or create repository milestones for modules.
267
+ 3. Resolve or create the `Kind`, `Capability module`, and `Epic` Project fields.
268
+ 4. Resolve capability-module options.
250
269
  5. Create root fog issues when the route remains root-level.
251
- 6. Create grilling, research, prototype, or epic issues with `projectV2Ids` and `milestoneId`.
252
- 7. Create story child issues with `parentIssueId`, `projectV2Ids`, and `milestoneId`.
253
- 8. Set Project field values for kind/module/epic grouping.
254
- 9. Add native issue dependencies for real story blockers.
270
+ 6. Create selected concrete non-fog issues with `projectV2Ids` and no execution milestone.
271
+ 7. Create story child issues with `parentIssueId` and `projectV2Ids`.
272
+ 8. Set Project field values for kind/capability/epic grouping.
273
+ 9. Add native issue dependencies for every real blocker.
274
+ 10. Derive, create or reuse, and assign chronological repository milestones from the complete dependency graph.
255
275
 
256
276
  ## Notes
257
277
 
258
278
  - GitHub REST issue creation is still acceptable for plain issue creation, but GraphQL is preferred for backlog sync because it can attach Project V2 IDs, parent issues, and dependency relations.
259
- - Project fields mirror planning/grouping metadata. Issue hierarchy remains the source for epic -> story.
260
- - Repository milestones remain the source for module/milestone grouping when GitHub is the provider.
279
+ - Project fields store capability grouping metadata. Issue hierarchy remains the source for epic -> story.
280
+ - Repository milestones store dependency-derived chronology only.
@@ -75,20 +75,36 @@ Use one label from the `Kind` group:
75
75
  - `Kind/epic`
76
76
  - `Kind/story`
77
77
 
78
- Linear label groups allow only one label from the group per issue. Do not use workflow state as kind. Other labels may mirror domain or module metadata, but the `Kind/...` label is canonical.
78
+ Linear label groups allow only one label from the group per issue. Do not use workflow state as kind. Other labels may mirror domain or capability-module metadata, but the `Kind/...` label is canonical.
79
79
 
80
80
  ## Repo mapping
81
81
 
82
- - fog -> root-level issue with `Kind/fog`; no parent, no module milestone required until sharpened
83
- - module -> Linear project milestone
84
- - grilling -> module/milestone-scoped issue with `Kind/grilling`
85
- - research -> module/milestone-scoped issue with `Kind/research`
86
- - prototype -> module/milestone-scoped issue with `Kind/prototype`
82
+ - fog -> root-level issue with `Kind/fog`; no parent or capability module required until sharpened
83
+ - capability module -> non-milestone capability metadata, such as a dedicated module label
84
+ - execution milestone -> chronological Linear project milestone derived from native blockers
85
+ - grilling -> capability-module-scoped issue with `Kind/grilling`
86
+ - research -> capability-module-scoped issue with `Kind/research`
87
+ - prototype -> capability-module-scoped issue with `Kind/prototype`
87
88
  - epic -> top-level issue with `Kind/epic`
88
89
  - story -> child issue created with `parentId` and `Kind/story`
89
90
 
90
91
  `grilling`, `research`, and `prototype` closure notes must name the answer, accepted direction, artifacts or evidence, and created or updated epics/stories.
91
92
 
93
+ ## Chronological execution milestones
94
+
95
+ Linear project milestones answer first/next/later. Name them chronologically, such as `M1`, `M2`, and `M3`, and derive every assignment from native `blockedBy` / `blocks` relations:
96
+
97
+ Only selected non-fog `grilling`, `research`, `prototype`, `epic`, and `story` issues are milestone-eligible. Fog has no execution milestone until sharpened into concrete work. Capability-module metadata remains grouping and is not an execution issue.
98
+
99
+ 1. Create the milestone-eligible issues and native blocker relations first across the full selected scope.
100
+ 2. Stop materialization on a missing blocker target or cycle.
101
+ 3. Assign selected milestone-eligible issues with no blockers to `M1`.
102
+ 4. Assign every other selected milestone-eligible issue to `M(1 + max(milestone number of each blocker))`.
103
+ 5. Create or reuse the derived chronological project milestones and assign exactly one to each selected milestone-eligible issue.
104
+ 6. Verify every blocker is in a strictly earlier milestone than the issue it blocks.
105
+
106
+ Issues in the same derived wave share a milestone and can proceed in parallel, even when they belong to different capability modules. A capability module can span multiple milestones. Capability grouping, parent/child hierarchy, and existing milestone assignment never determine chronology. Native blocker relations remain authoritative; recompute milestone assignment and numbering whenever they change.
107
+
92
108
  ## Notes
93
109
 
94
110
  - Linear issues belong to a single team.
@@ -3,6 +3,7 @@
3
3
  Connector source:
4
4
 
5
5
  - monday.com MCP tools exposed through `@monday-com`
6
+ - Dependency column API: [developer.monday.com/api-reference/reference/dependency](https://developer.monday.com/api-reference/reference/dependency)
6
7
 
7
8
  ## Intent
8
9
 
@@ -11,11 +12,12 @@ Use monday.com boards, groups, items, subitems, and dependency columns together.
11
12
  Canonical mapping:
12
13
 
13
14
  - fog -> first-class root/backlog item
14
- - module/milestone -> board group
15
- - grilling/research/prototype -> parent item in a module group
15
+ - capability module -> board group
16
+ - execution milestone -> dedicated Status or Dropdown column derived from dependency values
17
+ - grilling/research/prototype -> parent item in a capability group
16
18
  - epic/capability -> parent item
17
19
  - story -> subitem under the epic item
18
- - story ordering -> dependency column when present
20
+ - item ordering -> dependency column when every required edge is representable
19
21
 
20
22
  Do not flatten epics and stories into sibling items when subitems are available.
21
23
 
@@ -29,13 +31,13 @@ Expected board shape:
29
31
 
30
32
  - dedicated Status or Dropdown column named `Kind`
31
33
  - `Kind` labels/options: `fog`, `grilling`, `research`, `prototype`, `epic`, `story`
32
- - one group per module/milestone
34
+ - one board group per capability module
33
35
  - parent items for epics/capabilities
34
36
  - subitems for stories
35
- - optional `Module/Milestone` text/dropdown when groups alone are not enough
36
- - optional dependency column for story blockers
37
+ - dedicated Status or Dropdown column named `Execution milestone` with `M1`, `M2`, and later derived values
38
+ - dependency column wherever selected work has blockers
37
39
 
38
- If the target group for a module is missing, create it before creating epic items.
40
+ If the target group for a capability module is missing, create it before creating concrete items.
39
41
 
40
42
  ## Kind storage
41
43
 
@@ -74,13 +76,19 @@ Use the actual `Kind` column ID from board metadata in place of `kind`.
74
76
 
75
77
  ## Create grilling, research, or prototype items
76
78
 
77
- Create each learning item as a first-class parent item in the matching module group.
79
+ Create each learning item as a first-class parent item in the matching capability group.
78
80
 
79
81
  Set the `Kind` column to `grilling`, `research`, or `prototype`.
80
82
 
81
83
  Closure notes must name the answer, accepted direction, artifacts or evidence, and created or updated epics/stories.
82
84
 
83
- ## Create a module group
85
+ ## Capability grouping
86
+
87
+ Use one stable board group per durable capability module. A group answers which product capability owns the item; it does not answer when the item executes.
88
+
89
+ Fog stays in a root/backlog group until sharpening selects a capability module. Do not name capability groups `M1`, `M2`, or other chronological wave names. One capability group can contain items from multiple execution milestones.
90
+
91
+ ## Create a capability-module group
84
92
 
85
93
  Tool:
86
94
 
@@ -89,7 +97,7 @@ Tool:
89
97
  "tool": "@monday-com.create_group",
90
98
  "arguments": {
91
99
  "boardId": "123456789",
92
- "groupName": "M1 - Intake and Review"
100
+ "groupName": "Submission lifecycle"
93
101
  }
94
102
  }
95
103
  ```
@@ -99,11 +107,27 @@ Required fields:
99
107
  - `boardId`
100
108
  - `groupName`
101
109
 
102
- Use stable module names. Do not create implementation-phase groups such as backend, frontend, or polish unless those are true product modules.
110
+ Use stable capability names. Do not create implementation-phase groups such as backend, frontend, or polish unless those are true product modules.
111
+
112
+ ## Chronological execution milestones
113
+
114
+ Use a separate Status or Dropdown column named `Execution milestone` for `M1`, `M2`, and later dependency-derived waves. The exact column ID comes from board metadata.
115
+
116
+ 1. Inspect both parent-item and subitem board metadata. Confirm the `Execution milestone` and dependency columns exist wherever selected work will live.
117
+ 2. Before creating dependency values, prove every required blocker edge is representable by monday.com's same-board dependency constraint. If an edge crosses parent-item and subitem storage, stop with a provider setup blocker; do not replace it with prose or derive milestones from an incomplete graph.
118
+ 3. Create selected concrete non-fog items/subitems in capability groups without an execution-milestone value.
119
+ 4. Populate the dependency column so each blocked item references all prerequisite item IDs.
120
+ 5. Stop on a missing dependency target or cycle; monday.com's API does not enforce cycle detection for clients.
121
+ 6. Assign dependency-free items to `M1`.
122
+ 7. Assign every other item to `M(1 + max(milestone number of each dependency))`.
123
+ 8. Set exactly one `Execution milestone` value on every selected milestone-eligible item.
124
+ 9. Verify every dependency points to an item in a strictly earlier milestone.
125
+
126
+ Items from different capability groups can share one execution milestone. Group membership, parent/subitem hierarchy, and current milestone value never create dependency edges. Recompute milestone values whenever the dependency column changes.
103
127
 
104
128
  ## Create an epic item
105
129
 
106
- Create one parent item per epic/capability in the matching module group.
130
+ Create one parent item per epic/capability in the matching capability group.
107
131
 
108
132
  Tool:
109
133
 
@@ -156,9 +180,9 @@ Story body ownership:
156
180
 
157
181
  If a board does not support subitems, stop and ask whether to add subitem support or use a different monday.com board. Do not silently degrade into flat story items.
158
182
 
159
- ## Add story blockers
183
+ ## Add native blockers
160
184
 
161
- Use the board's dependency column when present. The exact column ID comes from board metadata.
185
+ Use the board's dependency column for every representable blocker. The exact column ID comes from board metadata.
162
186
 
163
187
  Tool:
164
188
 
@@ -173,23 +197,24 @@ Tool:
173
197
  }
174
198
  ```
175
199
 
176
- `itemId` is the blocked story subitem. The dependency value references prerequisite story subitem IDs. If the connector requires a board-relation workflow before linking items, follow that workflow first.
200
+ `itemId` is the blocked item or subitem. The dependency value references prerequisite IDs from the same board. If the connector requires a board-relation workflow before linking items, follow that workflow first.
177
201
 
178
202
  ## Minimal creation order
179
203
 
180
204
  1. Resolve board ID.
181
205
  2. Inspect board metadata.
182
206
  3. Resolve or create the `Kind` Status or Dropdown column and allowed values.
183
- 4. Resolve or create groups for modules/milestones.
184
- 5. Create root fog items when needed.
185
- 6. Create grilling, research, prototype, or epic parent items in the matching groups.
186
- 7. Create story subitems with `parentItemId`.
187
- 8. Set known board columns for kind/module/epic metadata when available.
188
- 9. Add dependency-column values for real story blockers.
207
+ 4. Resolve or create groups for capability modules.
208
+ 5. Resolve or create the `Execution milestone` Status or Dropdown column.
209
+ 6. Create root fog items when needed.
210
+ 7. Create selected concrete non-fog parent items and story subitems in their capability groups without milestone values.
211
+ 8. Set known board columns for kind/capability/epic metadata when available.
212
+ 9. Add dependency-column values for real blockers.
213
+ 10. Derive and set `Execution milestone` values from the complete dependency graph.
189
214
 
190
215
  ## Notes
191
216
 
192
217
  - monday.com column IDs and label names are board-specific. Always inspect the board before emitting final create payloads.
193
- - Groups are the primary milestone/module container. Use extra module columns only when the board already needs cross-group reporting.
218
+ - Groups are the primary capability-module container. The separate `Execution milestone` column stores chronology.
194
219
  - The `Kind` column is canonical for fog, grilling, research, prototype, epic, and story. Labels or other columns may mirror it, but workflow state remains separate.
195
220
  - Keep product backlog content in item/subitem bodies. Do not put plan tasks, file paths, validation commands, or implementation handoffs in monday.com backlog records.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kit Langton
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.