@punks/cli 5.1.1 → 5.2.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 (89) hide show
  1. package/AGENTS.md +28 -10
  2. package/dist/BASELINE_CHANGELOG.md +11 -1
  3. package/dist/CHANGELOG.md +32 -0
  4. package/dist/baseline/scaffold-baseline/baseline.json +5 -10
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +1 -1
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +0 -8
  7. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.mjs +118 -41
  8. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +345 -26
  9. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents-validator.test.ts +39 -0
  10. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +8 -2
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/define-handoffs.md +1 -1
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/model-state.md +1 -1
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/test-routes.md +1 -1
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/write-phases.md +2 -2
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/write-router.md +1 -1
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/references/authoring-contract.md +8 -8
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +1 -1
  18. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +2 -2
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +21 -11
  20. package/dist/baseline/scaffold-baseline/skills/phases/debugging-phase/SKILL.md +3 -4
  21. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +2 -2
  22. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/debug.md +2 -2
  23. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/human-steering.md +25 -0
  24. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +2 -2
  25. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +2 -2
  26. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +3 -2
  27. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/context-continuity.md +1 -1
  28. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/failure-continuity.md +1 -1
  29. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +4 -3
  30. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +9 -9
  31. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +1 -1
  32. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +1 -1
  33. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +1 -1
  34. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/human-steering.md +25 -0
  35. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +1 -1
  36. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +1 -1
  37. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +1 -1
  38. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +1 -1
  39. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +1 -1
  40. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/return-route.md +6 -5
  41. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/router.md +1 -1
  42. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/run-review.md +2 -1
  43. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +3 -3
  44. package/dist/baseline/scaffold-baseline.json +5 -5
  45. package/dist/baseline/scaffold-baseline.tgz +0 -0
  46. package/dist/data/AGENTS.md +22 -5
  47. package/dist/data/scripts/commit-gate-runner.mjs +118 -41
  48. package/dist/data/scripts/sync-subagents.mjs +8 -2
  49. package/dist/index.js +93 -90
  50. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/define-handoffs.md +1 -1
  51. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/model-state.md +1 -1
  52. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/test-routes.md +1 -1
  53. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/write-phases.md +2 -2
  54. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/write-router.md +1 -1
  55. package/dist/skills/agnostic/docs/write-graph-based-skills/references/authoring-contract.md +8 -8
  56. package/dist/skills/agnostic/quality/autoreview/SKILL.md +1 -1
  57. package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +2 -2
  58. package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +21 -11
  59. package/dist/skills/phases/debugging-phase/SKILL.md +3 -4
  60. package/dist/skills/phases/delivery-phase/SKILL.md +2 -2
  61. package/dist/skills/phases/delivery-phase/phases/debug.md +2 -2
  62. package/dist/skills/phases/delivery-phase/phases/human-steering.md +25 -0
  63. package/dist/skills/phases/delivery-phase/phases/implement.md +2 -2
  64. package/dist/skills/phases/delivery-phase/phases/review.md +2 -2
  65. package/dist/skills/phases/delivery-phase/phases/router.md +3 -2
  66. package/dist/skills/phases/delivery-phase/references/context-continuity.md +1 -1
  67. package/dist/skills/phases/delivery-phase/references/failure-continuity.md +1 -1
  68. package/dist/skills/phases/delivery-phase/references/phase-handoff.md +4 -3
  69. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +6 -6
  70. package/dist/skills/phases/finder-phase/SKILL.md +1 -1
  71. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +1 -1
  72. package/dist/skills/phases/finder-phase/phases/grilling.md +1 -1
  73. package/dist/skills/phases/finder-phase/phases/human-steering.md +25 -0
  74. package/dist/skills/phases/finder-phase/phases/prototype.md +1 -1
  75. package/dist/skills/phases/finder-phase/phases/reconcile.md +1 -1
  76. package/dist/skills/phases/finder-phase/phases/research.md +1 -1
  77. package/dist/skills/phases/finder-phase/phases/router.md +1 -1
  78. package/dist/skills/phases/finder-phase/references/state-graph.md +1 -1
  79. package/dist/skills/phases/review-phase/phases/return-route.md +6 -5
  80. package/dist/skills/phases/review-phase/phases/router.md +1 -1
  81. package/dist/skills/phases/review-phase/phases/run-review.md +2 -1
  82. package/dist/skills/phases/review-phase/references/state-graph.md +3 -3
  83. package/package.json +12 -6
  84. package/dist/baseline/scaffold-baseline/skills/agnostic/generic/handback/SKILL.md +0 -27
  85. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/handback.md +0 -27
  86. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +0 -29
  87. package/dist/skills/agnostic/generic/handback/SKILL.md +0 -27
  88. package/dist/skills/phases/delivery-phase/phases/handback.md +0 -27
  89. package/dist/skills/phases/finder-phase/phases/handback.md +0 -29
@@ -1,27 +0,0 @@
1
- # Handback Phase
2
-
3
- ## Guard
4
-
5
- The router selected current evidence that triggers `$handback`.
6
-
7
- ## Bounded Action
8
-
9
- 1. Invoke `$handback` with the active delivery evidence.
10
- 2. Retain its complete outcome in the durable state artifact; put its Context
11
- Pointer and exact blocker in the compact Delivery Handoff.
12
- 3. Stop.
13
-
14
- ## Completion Evidence
15
-
16
- - the durable `$handback` outcome
17
- - unchanged accepted bounds and in-bounds artifacts
18
- - no expanded design, implementation, delegation, or review
19
-
20
- ## Exit
21
-
22
- Return terminal `human_steering_required`. Resume routing only after the
23
- `$handback` authority guard passes.
24
-
25
- Emit the [common Phase Result](../references/context-continuity.md#common-phase-result)
26
- with pointers to this completion evidence. Stop in every mode until the
27
- `$handback` authority guard passes.
@@ -1,29 +0,0 @@
1
- # Human Steering Gate
2
-
3
- ## Entry guard
4
-
5
- Fog identity, immutable lens, child relevance, support relation, evidence,
6
- scope, or projection ceiling is ambiguous or conflicting under current
7
- authority.
8
-
9
- ## Bounded action
10
-
11
- Invoke `$handback` with the exact conflict and minimum human decision. Persist
12
- its complete outcome as `human_steering_required`, prove that no mutation intent
13
- was emitted after detecting the conflict, and stop.
14
-
15
- ## Completion evidence
16
-
17
- Durable `$handback` outcome, exact missing authority or decision, and zero-write
18
- proof.
19
-
20
- ## Declared exits
21
-
22
- - `human_steering_required` -> terminal non-success state.
23
- - `authority_guard_passed` -> router re-entry with the new human decision.
24
-
25
- ## Durable handoff
26
-
27
- Persist conflict evidence, minimum required decision, complete `$handback`
28
- outcome, and terminal state. The router keeps returning this terminal while the
29
- authority guard remains unsatisfied.
@@ -1,27 +0,0 @@
1
- ---
2
- name: handback
3
- description: Hand control back when a blocker or proposed next step crosses accepted goal bounds, changes accepted requirements, weakens a gate, or substantially redesigns implementation.
4
- ---
5
-
6
- # Handback
7
-
8
- Autonomy applies only while the next action remains inside the accepted goal.
9
-
10
- Return `human_steering_required` with:
11
-
12
- - initial goal and accepted bounds
13
- - current phase and last known-good state
14
- - attempts and evidence
15
- - blocker and what it prevents
16
- - proposed next action
17
- - why it changes scope or authority
18
- - exact human decision required
19
-
20
- Preserve completed in-bounds work, then stop. The authority guard passes only
21
- on explicit human authorization for the proposed next action. A proposal is not
22
- authority. “All steps”, “full
23
- delivery”, “do not stop”, and equivalent persistence language apply only within
24
- accepted bounds.
25
-
26
- `human_steering_required` is a terminal, non-success outcome. Expanded design,
27
- implementation, delegation, and recursive review begin only after authority.
@@ -1,27 +0,0 @@
1
- # Handback Phase
2
-
3
- ## Guard
4
-
5
- The router selected current evidence that triggers `$handback`.
6
-
7
- ## Bounded Action
8
-
9
- 1. Invoke `$handback` with the active delivery evidence.
10
- 2. Retain its complete outcome in the durable state artifact; put its Context
11
- Pointer and exact blocker in the compact Delivery Handoff.
12
- 3. Stop.
13
-
14
- ## Completion Evidence
15
-
16
- - the durable `$handback` outcome
17
- - unchanged accepted bounds and in-bounds artifacts
18
- - no expanded design, implementation, delegation, or review
19
-
20
- ## Exit
21
-
22
- Return terminal `human_steering_required`. Resume routing only after the
23
- `$handback` authority guard passes.
24
-
25
- Emit the [common Phase Result](../references/context-continuity.md#common-phase-result)
26
- with pointers to this completion evidence. Stop in every mode until the
27
- `$handback` authority guard passes.
@@ -1,29 +0,0 @@
1
- # Human Steering Gate
2
-
3
- ## Entry guard
4
-
5
- Fog identity, immutable lens, child relevance, support relation, evidence,
6
- scope, or projection ceiling is ambiguous or conflicting under current
7
- authority.
8
-
9
- ## Bounded action
10
-
11
- Invoke `$handback` with the exact conflict and minimum human decision. Persist
12
- its complete outcome as `human_steering_required`, prove that no mutation intent
13
- was emitted after detecting the conflict, and stop.
14
-
15
- ## Completion evidence
16
-
17
- Durable `$handback` outcome, exact missing authority or decision, and zero-write
18
- proof.
19
-
20
- ## Declared exits
21
-
22
- - `human_steering_required` -> terminal non-success state.
23
- - `authority_guard_passed` -> router re-entry with the new human decision.
24
-
25
- ## Durable handoff
26
-
27
- Persist conflict evidence, minimum required decision, complete `$handback`
28
- outcome, and terminal state. The router keeps returning this terminal while the
29
- authority guard remains unsatisfied.