@punks/cli 2.5.3 → 2.6.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.
@@ -7,20 +7,22 @@ description: Materialize canonical backlog kinds into provider-native items. Use
7
7
 
8
8
  ## Quick start
9
9
 
10
- 1. Read [REFERENCE.md](REFERENCE.md) and [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md).
11
- 2. If `requirements-grill` artifacts exist, read `*-grill-status.md` first and `*-grill-log.md` second.
12
- 3. If subagents are available and the source material is large, use `requirements-synthesizer` to compress accepted, rejected, superseded, parked, and unresolved decisions.
13
- 4. If subagents are available, use `backlog-shaper` for a draft module/epic/story hierarchy; keep final backlog judgment in the parent thread.
14
- 5. Derive the item kind first: `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
15
- 6. Place `fog` at the backlog root; place concrete `grilling`, `research`, `prototype`, `epic`, and `story` items under a module/milestone.
16
- 7. Preserve delivery semantics: epics anchor future `SPEC.md`; stories remain product-facing children of epics.
17
- 8. Apply the item-count rule before finalizing implementation epics/stories.
18
- 9. Make story ordering explicit with native dependency primitives when the provider supports them.
19
- 10. Keep all item bodies product-facing and appropriate to their kind.
20
- 11. When approved design/prototype artifacts are source material, preserve approved artifact context and durable links in the relevant backlog items.
21
- 12. For visual assets, use `repo-asset-management`: prefer backlog attachments first, then repo-provider fallback links when attachments are unavailable or unsuitable.
22
- 13. Read the matching provider payload asset before generating or syncing create payloads.
23
- 14. Stop after the backlog structure and create payload guidance are complete.
10
+ 1. Before any provider materialization, read `.devpunks/settings.json` and resolve the destination from `backlogProvider` plus `backlogProjectUrl`.
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
+ 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.
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
+ 6. If subagents are available, use `backlog-shaper` for a draft module/epic/story hierarchy; keep final backlog judgment in the parent thread.
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.
18
+ 9. Preserve delivery semantics: epics anchor future `SPEC.md`; stories remain product-facing children of epics.
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.
21
+ 12. Keep all item bodies product-facing and appropriate to their kind.
22
+ 13. When approved design/prototype artifacts are source material, preserve approved artifact context and durable links in the relevant backlog items.
23
+ 14. For visual assets, use `repo-asset-management`: prefer backlog attachments first, then repo-provider fallback links when attachments are unavailable or unsuitable.
24
+ 15. Read the matching provider payload asset before generating or syncing create payloads.
25
+ 16. Stop after the backlog structure and create payload guidance are complete.
24
26
 
25
27
  ## Item-count rule
26
28
 
@@ -4,6 +4,7 @@ description: >-
4
4
  Runs AFK ClawPatch bug discovery, reporting, and triage without source
5
5
  mutation. Use for ClawPatch discovery, broad bug discovery, bug lifecycle
6
6
  triage, finding ledgers, AFK bug review, or durable bug reports.
7
+ disable-model-invocation: true
7
8
  ---
8
9
 
9
10
  # Bug Discovery Phase
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -5,6 +5,7 @@ description: >-
5
5
  triage, docs/debt routing, and revalidation. Use when the user selects a
6
6
  ClawPatch finding, asks for ClawPatch-backed bug resolution, or gives a
7
7
  tightly bounded finding batch.
8
+ disable-model-invocation: true
8
9
  ---
9
10
 
10
11
  # Bug Resolution Phase
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: delivery-phase
3
3
  description: Routes a scoped delivery goal to the next lifecycle phase from current artifacts and evidence. Use when delivering, resuming, or closing a goal that may pass through spec, plan, implementation, review, debugging, docs ingest, and closeout.
4
+ disable-model-invocation: true
4
5
  ---
5
6
 
6
7
  # Delivery Phase
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: design-phase
3
3
  description: Routes product design work through evidence intake, lean grill, prototype, approval, backlog, and delivery handoff.
4
+ disable-model-invocation: true
4
5
  ---
5
6
 
6
7
  # Design Phase
@@ -24,7 +25,7 @@ Completion of one phase does not imply loading the rest.
24
25
  - **Prototype:** produce the requested image reference or prototype artifact.
25
26
  - **Approval:** record accepted artifacts per user-visible scope unit.
26
27
  - **Backlog:** convert approved artifacts into backlog context.
27
- - **Delivery handoff:** activate `delivery-phase`.
28
+ - **Delivery handoff:** prepare the approved brief for explicit user invocation of `$delivery-phase`.
28
29
 
29
30
  Direct entry into any mode still starts at the router.
30
31
 
@@ -36,7 +37,7 @@ Direct entry into any mode still starts at the router.
36
37
  - [phases/prototype.md](phases/prototype.md): delegate artifact production.
37
38
  - [phases/approval.md](phases/approval.md): record approved artifact sets.
38
39
  - [phases/backlog.md](phases/backlog.md): call `write-backlog` with artifact context.
39
- - [phases/delivery-handoff.md](phases/delivery-handoff.md): start `delivery-phase`.
40
+ - [phases/delivery-handoff.md](phases/delivery-handoff.md): present the brief and stop for explicit user invocation of `$delivery-phase`.
40
41
 
41
42
  ## Rules
42
43
 
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -1,6 +1,6 @@
1
1
  # Delivery Handoff Phase
2
2
 
3
- Activate `delivery-phase` with approved design context.
3
+ Prepare approved design context for explicit user invocation of `$delivery-phase`.
4
4
 
5
5
  ## Prerequisite
6
6
 
@@ -12,18 +12,18 @@ Fresh backlog ids plus approved artifact set links.
12
12
  2. Include frontend taste skills expected during implementation: `design-taste-frontend`, `gpt-taste`, and relevant web/mobile image or prototype context.
13
13
  3. Include browser or screenshot validation expectations.
14
14
  4. Include before/after PR evidence guidance and require durable links through `repo-asset-management`.
15
- 5. Load `delivery-phase` and start it with this brief.
15
+ 5. Present the delivery brief, tell the user to invoke `$delivery-phase` explicitly with it, and stop.
16
16
 
17
17
  ## Rules
18
18
 
19
- - `delivery-handoff` starts `delivery-phase`; it is not a passive recommendation.
19
+ - `delivery-handoff` does not load or start `delivery-phase`; only the user can invoke it explicitly.
20
20
  - Do not re-open design approval during delivery unless artifacts are stale or contradicted.
21
21
  - Local temp files and transient browser URLs are not final evidence.
22
22
 
23
23
  ## Output
24
24
 
25
- - Delivery activation brief.
25
+ - Delivery handoff brief.
26
26
  - Backlog ids.
27
27
  - Approved artifact links.
28
28
  - Before/after evidence expectations.
29
- - Phase handoff with next route: active `delivery-phase`.
29
+ - Phase handoff with next action: explicit user invocation of `$delivery-phase`.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: finder-phase
3
3
  description: Route loose oversized foggy work before requirements or delivery. Use when an idea is too large for one agent session, wrapped in fog, or needs backlog-native frontier shaping before requirements-phase.
4
+ disable-model-invocation: true
4
5
  ---
5
6
 
6
7
  # Finder Phase
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: requirements-phase
3
3
  description: Orchestrates the human-centric requirements phase from ambiguity through requirements-grill artifacts into backlog shape. Use when the user asks to run a requirements phase, move from discovery to backlog, close requirement branches, decide whether backlog writing is ready, or coordinate requirements-grill with write-backlog.
4
+ disable-model-invocation: true
4
5
  ---
5
6
 
6
7
  # Requirements Phase
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: resolve-debt-phase
3
3
  description: Resolves one candidate or accepted tech debt item through validation, resolution spec creation, delivery, and closeout. Use when the user asks to resolve a tech debt entry, process a debt candidate, or continue from a canonical `docs/reference/tech-debt/<domain>/<spec>/<debt-slug>.md` artifact.
4
+ disable-model-invocation: true
4
5
  ---
5
6
 
6
7
  # Resolve Debt Phase
@@ -11,8 +12,9 @@ description: Resolves one candidate or accepted tech debt item through validatio
11
12
  - **Scope:** one candidate or accepted debt item, never generic debt management
12
13
  - **Canonical input:** `docs/reference/tech-debt/<domain>/<spec>/<debt-slug>.md`
13
14
  - **Source of truth:** debt file; backlog mirrors are secondary and may be stale
14
- - **Delegates to:** `$parallel-research` for independent readonly checks; `$create-spec` or equivalent spec workflow for accepted debt; `$delivery-phase` for implementation
15
- - **Stop conditions:** draft decision requested, accepted item handed to delivery, resolved item no-oped, or completed item marked resolved with links
15
+ - **Delegates to:** `$parallel-research` for independent readonly checks; `$create-spec` or equivalent spec workflow for accepted debt
16
+ - **Manual delivery handoff:** accepted debt presents a bounded brief for explicit user invocation of `$delivery-phase`
17
+ - **Stop conditions:** draft decision requested, accepted item waiting for explicit user `$delivery-phase` invocation, resolved item no-oped, or completed item marked resolved with links
16
18
 
17
19
  ## Use When
18
20
 
@@ -54,8 +56,8 @@ Move the one accepted item toward delivery.
54
56
 
55
57
  1. Create or update a debt-resolution spec tied to the original domain/spec and debt slug.
56
58
  2. The resolution spec must state the initial debt, why it matters, the bounded fix, non-goals, acceptance checks, and closeout requirements.
57
- 3. Run `$delivery-phase` against that resolution spec.
58
- 4. Keep implementation work scoped to resolving the accepted item, not adjacent cleanup.
59
+ 3. Build and present a delivery brief naming the resolution spec, bounded fix, acceptance checks, closeout requirements, and implementation scope.
60
+ 4. Tell the user to invoke `$delivery-phase` explicitly with that brief, then stop without loading or running it.
59
61
 
60
62
  ### `resolved`
61
63
 
@@ -82,6 +84,6 @@ Always report:
82
84
 
83
85
  - debt file path and status before/after
84
86
  - evidence inspected or validation performed
85
- - decision requested for `draft`, handoff/result for `accepted`, or no-op reason for `resolved`
87
+ - decision requested for `draft`, manual `$delivery-phase` handoff or returned delivery result for `accepted`, or no-op reason for `resolved`
86
88
  - resolution spec and implementation notes links when present
87
89
  - backlog mirror sync outcome when available
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/cli",
3
- "version": "2.5.3",
3
+ "version": "2.6.0",
4
4
  "description": "Harness Intelligence scaffolding CLI",
5
5
  "bin": {
6
6
  "hi": "dist/index.js",