@punks/cli 5.2.1 → 5.2.2
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/README.md +2 -2
- package/dist/BASELINE_CHANGELOG.md +37 -0
- package/dist/CHANGELOG.md +20 -0
- package/dist/baseline/scaffold-baseline/baseline.json +15 -5
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +2 -0
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +16 -0
- package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +59 -17
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.mjs +7 -1
- package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.test.ts +43 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/commands.md +2 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md +24 -21
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/wiki-structure.md +16 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +21 -16
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +16 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-architecture/SKILL.md +65 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-architecture/assets/ARCHITECTURE-TEMPLATE.md +119 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-architecture/references/artifact-contract.md +200 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +11 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/architecture-convergence.md +19 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +17 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +38 -20
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +11 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +40 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +8 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +4 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +10 -6
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +23 -10
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +22 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +3 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +6 -3
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/plan.md +4 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +5 -1
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +15 -9
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/spec.md +13 -26
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +39 -1
- package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +31 -14
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/prepare-review.md +12 -4
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/hooks/format-edited-file.d.mts +5 -0
- package/dist/data/hooks/format-edited-file.mjs +52 -15
- package/dist/data/scripts/managed-lint-runner.mjs +7 -1
- package/dist/index.js +56 -1129
- package/dist/skills/agnostic/cli/hi-cli/references/commands.md +2 -2
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +9 -6
- package/dist/skills/agnostic/cli/hi-cli/references/wiki-structure.md +16 -0
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +21 -16
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +16 -4
- package/dist/skills/agnostic/planning/create-architecture/SKILL.md +65 -0
- package/dist/skills/agnostic/planning/create-architecture/assets/ARCHITECTURE-TEMPLATE.md +119 -0
- package/dist/skills/agnostic/planning/create-architecture/references/artifact-contract.md +200 -0
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +11 -3
- package/dist/skills/agnostic/planning/create-plan/references/architecture-convergence.md +19 -4
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +17 -3
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +38 -20
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +11 -0
- package/dist/skills/agnostic/planning/create-spec/references/readiness.md +40 -0
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +8 -0
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +4 -2
- package/dist/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +10 -6
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +23 -10
- package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +22 -0
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +2 -1
- package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +3 -2
- package/dist/skills/phases/delivery-phase/SKILL.md +6 -3
- package/dist/skills/phases/delivery-phase/phases/plan.md +4 -2
- package/dist/skills/phases/delivery-phase/phases/review.md +5 -1
- package/dist/skills/phases/delivery-phase/phases/router.md +15 -9
- package/dist/skills/phases/delivery-phase/phases/spec.md +13 -26
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +39 -1
- package/dist/skills/phases/requirements-phase/SKILL.md +31 -14
- package/dist/skills/phases/review-phase/phases/prepare-review.md +12 -4
- package/package.json +3 -2
|
@@ -1,36 +1,23 @@
|
|
|
1
1
|
# Spec Phase
|
|
2
2
|
|
|
3
|
-
Use this phase when
|
|
4
|
-
|
|
3
|
+
Use this phase when the required Architecture/SPEC pair is missing, stale or
|
|
4
|
+
conflicting. Apply the
|
|
5
|
+
[Architecture/SPEC Pair Complete gate](../references/artifact-state.md#architecturespec-pair-complete).
|
|
5
6
|
|
|
6
7
|
## Delegate
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
- Reuse existing spec artifacts when they match the requested scope.
|
|
14
|
-
- Treat child stories, sub-issues, acceptance criteria, constraints, and non-goals as required input, not loose references.
|
|
15
|
-
- If requirements are unsettled, return the compiler's `spec-not-ready` result
|
|
16
|
-
and route each named gap upstream instead of interviewing here.
|
|
9
|
+
Return the bounded goal, exact artifact/decision gap and current source pointers
|
|
10
|
+
to Requirements Phase. It owns `requirements-grill -> create-architecture ->
|
|
11
|
+
create-spec -> write-backlog`. Pass optional Finder context only when supplied.
|
|
12
|
+
Reuse matching current retained artifacts; unsettled decisions return to
|
|
13
|
+
`requirements-grill` before either compiler runs.
|
|
17
14
|
|
|
18
15
|
## Completion State
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- `readiness: agent-ready`
|
|
24
|
-
- `spec-written`
|
|
25
|
-
- verify the retained ref contains the spec commit
|
|
26
|
-
- construct and verify a stable blob URL before backlog
|
|
27
|
-
- source issue/tracker/spec folder
|
|
28
|
-
|
|
29
|
-
Then stop or re-enter `delivery-phase` for routing.
|
|
30
|
-
|
|
31
|
-
This completion state satisfies the downstream spec gate. Do not add a spec
|
|
32
|
-
review or approval stop unless the user explicitly requested a HITL checkpoint.
|
|
17
|
+
Verify the retained Architecture/SPEC pair and its exact identities, verified
|
|
18
|
+
immutable blob URLs and source selectors. Backlog projection must name that
|
|
19
|
+
spec identity. Compiler readiness needs no additional approval gate.
|
|
33
20
|
|
|
34
21
|
Emit the [common Phase Result](../references/context-continuity.md#common-phase-result)
|
|
35
|
-
with pointers to
|
|
36
|
-
otherwise stop at the requested boundary.
|
|
22
|
+
with pointers to the resulting proof or exact gap. Continue only in Full
|
|
23
|
+
Delivery; otherwise stop at the requested boundary.
|
|
@@ -2,6 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
Use this reference when deciding whether a phase is complete enough to skip.
|
|
4
4
|
|
|
5
|
+
## Architecture/SPEC Pair Complete
|
|
6
|
+
|
|
7
|
+
Require this pair for every delivery, including fresh, existing, resumed and
|
|
8
|
+
local work, before planning, implementation, review, repair, debugging, docs or
|
|
9
|
+
closeout dispatch. `architecture_applicability` controls plan convergence detail,
|
|
10
|
+
never whether `ARCHITECTURE.md` is required.
|
|
11
|
+
|
|
12
|
+
- The sibling `ARCHITECTURE.md` satisfies the
|
|
13
|
+
artifact contract in the installed `create-architecture` skill's
|
|
14
|
+
`references/artifact-contract.md`
|
|
15
|
+
with `status: compiled` and `readiness: agent-ready`; `SPEC.md` satisfies
|
|
16
|
+
**Spec Complete** below. Both name the same capability and current accepted
|
|
17
|
+
grill decisions.
|
|
18
|
+
- Verify retained commit/ref, immutable blob URL and matching bytes for each
|
|
19
|
+
artifact. The spec's `Architecture Source` and `links` identify that exact
|
|
20
|
+
retained architecture, not a mutable path or a different revision.
|
|
21
|
+
- Resolve architecture source identities and decision selectors against current
|
|
22
|
+
grill status/log, glossary and required evidence. Use existing
|
|
23
|
+
[Context Pointers and freshness rules](context-continuity.md), not timestamps.
|
|
24
|
+
Spec requirements, outcomes and acceptance criteria remain authoritative;
|
|
25
|
+
accepted design constraints come from the architecture companion and are
|
|
26
|
+
incorporated in the spec. Neither silently overrides the other.
|
|
27
|
+
- Verify complete **Spec traceability** under that architecture contract: every
|
|
28
|
+
current `OUT-###` / `AC-###` resolves to stable architecture selectors (or its
|
|
29
|
+
justified no-structural-counterpart entry) and exact source Q/log-entry evidence
|
|
30
|
+
anchors. Check the real codes, selectors, anchors and spec backlinks against
|
|
31
|
+
the retained pair and current decisions. Pending, dangling, stale, unsupported
|
|
32
|
+
or incomplete mapping blocks dispatch; route the exact gap to Requirements.
|
|
33
|
+
- Carry both source identities and required decision selectors in the action's
|
|
34
|
+
Context Pointers. Changed inputs invalidate affected dependent proof; keep
|
|
35
|
+
historical review lineage, report identities and completed ordinals intact.
|
|
36
|
+
- A missing, stale, conflicting or unreconstructable pair blocks its dependent
|
|
37
|
+
action and routes the exact artifact, selector and missing proof to
|
|
38
|
+
Requirements Phase / `requirements-grill`. Recompile architecture before spec
|
|
39
|
+
when accepted decisions change. Legacy/local artifacts have no exemption;
|
|
40
|
+
matching current proof adds no human approval gate.
|
|
41
|
+
|
|
5
42
|
## Spec Complete
|
|
6
43
|
|
|
7
44
|
- A matching agent-ready `SPEC.md` has `readiness: agent-ready`; its scope is
|
|
@@ -17,7 +54,8 @@ Use this reference when deciding whether a phase is complete enough to skip.
|
|
|
17
54
|
|
|
18
55
|
## Plan Complete
|
|
19
56
|
|
|
20
|
-
- `PLAN.md` exists and matches the
|
|
57
|
+
- `PLAN.md` exists and matches the current Architecture/SPEC pair, carrying
|
|
58
|
+
both source identities and required decision selectors through Context Pointers.
|
|
21
59
|
- One uniform `task_identity_mode` applies. In `provider-task` mode every `Tn`
|
|
22
60
|
resolves one stable provider Task ID and URL, preserves the same `V*`, and
|
|
23
61
|
mirrors native blocker edges through `depends_on`. In `planning-only` mode
|
|
@@ -7,11 +7,12 @@ disable-model-invocation: true
|
|
|
7
7
|
# Requirements Phase
|
|
8
8
|
|
|
9
9
|
Requirements Phase is independently invocable. It is the only orchestration
|
|
10
|
-
route for `requirements-grill -> create-spec -> write-backlog`.
|
|
10
|
+
route for `requirements-grill -> create-architecture -> create-spec -> write-backlog`.
|
|
11
11
|
|
|
12
12
|
## Inputs
|
|
13
13
|
|
|
14
|
-
- Direct bounded requirements input
|
|
14
|
+
- Direct bounded requirements input, including any narrower caller-supplied
|
|
15
|
+
provider projection boundary. This route creates no Fog or Finder
|
|
15
16
|
artifact and no Grilling provider item implicitly.
|
|
16
17
|
- Optional Finder context, only when the caller supplies a Fog, Finder child,
|
|
17
18
|
Research child, Prototype child, or durable Finder handoff. Resolve the exact
|
|
@@ -32,24 +33,40 @@ workflow or a Finder lifecycle owner.
|
|
|
32
33
|
interview. Research recommendations are evidence, not decisions. Complete
|
|
33
34
|
this step when every material branch is accepted or explicitly parked.
|
|
34
35
|
4. When the user confirms shared understanding and the remaining branches are
|
|
35
|
-
closed or explicitly parked, invoke `create-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
result
|
|
43
|
-
|
|
36
|
+
closed or explicitly parked, invoke `create-architecture` with the current
|
|
37
|
+
grill status and log. Require its
|
|
38
|
+
artifact contract in the installed `create-architecture` skill's
|
|
39
|
+
`references/artifact-contract.md`:
|
|
40
|
+
sibling `ARCHITECTURE.md`, `status: compiled`, `readiness: agent-ready`, exact
|
|
41
|
+
source identities and accepted details, and verified retained blob URL.
|
|
42
|
+
Architecture compilation precedes `SPEC.md` and requires no spec input.
|
|
43
|
+
An `architecture-not-ready` result returns each exact gap to its upstream
|
|
44
|
+
owner; unresolved decisions return to `requirements-grill`.
|
|
45
|
+
5. After `architecture-written`, invoke `create-spec` with that exact retained
|
|
46
|
+
architecture and the same confirmed sources. Create Spec assigns real outcome
|
|
47
|
+
and criterion codes, completes the architecture's canonical Spec traceability
|
|
48
|
+
mapping, and retains the enriched architecture before binding its final
|
|
49
|
+
immutable identity in the spec. This metadata amendment accepts no new design.
|
|
50
|
+
The compiler preserves source question anchors and unchanged codes/selectors.
|
|
51
|
+
This order applies to every delivery, including existing, resumed and local
|
|
52
|
+
work; reuse only current, matching retained artifacts with complete mapping.
|
|
53
|
+
6. Require `create-spec` to verify both retained artifact URLs and the spec's
|
|
54
|
+
reference to the enriched architecture, then push or explicitly retain the
|
|
55
|
+
spec commit before `write-backlog` can run. Pending or unresolved mappings and
|
|
56
|
+
local-only artifacts return the compiler's atomic `spec-not-ready` result.
|
|
57
|
+
7. Honor the caller's accepted provider projection boundary; missing authority
|
|
58
|
+
returns a blocked backlog delta while retaining the compiled pair.
|
|
59
|
+
After `spec-written`, pass the verified stable blob URL and current provider
|
|
44
60
|
evidence to `write-backlog`. Write Backlog derives the Stories, Tasks, and
|
|
45
61
|
blocker graph supported by the accepted result. With no prior Finder
|
|
46
62
|
projection, it may reuse, enrich, or create the accepted placement through
|
|
47
63
|
Product Area, Initiative, and Epic before placing those delivery items. Each
|
|
48
64
|
Story is a shippable product outcome. Each Task is atomic, independently
|
|
49
65
|
ownable, and understandable from its Story and stable specification.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
residual delta. The result is ready for
|
|
66
|
+
8. Return one stable Requirements result naming the retained architecture and
|
|
67
|
+
specification, their exact identities and verified stable blob URLs, plus the
|
|
68
|
+
Write Backlog result and exact residual delta. The result is ready for
|
|
69
|
+
`delivery-phase` and `create-plan`.
|
|
53
70
|
|
|
54
71
|
## Boundary
|
|
55
72
|
|
|
@@ -12,7 +12,7 @@ and no valid later-state evidence already owns the run.
|
|
|
12
12
|
- accepted-bounds identity, scope, and primitive evidence
|
|
13
13
|
- delivery Git/diff or standalone artifact target primitives
|
|
14
14
|
- governing Spec, Standards, scoped guidance, named-skill, plan, and
|
|
15
|
-
implementation-note sources
|
|
15
|
+
implementation-note sources; retained Architecture for delivery mode
|
|
16
16
|
- delivery-goal identity and retained-report candidates for delivery mode
|
|
17
17
|
- caller evidence needed to explain a retry, failure, or current route
|
|
18
18
|
|
|
@@ -29,7 +29,14 @@ reconciles retained-pass recovery, and owns the exit evidence.
|
|
|
29
29
|
1. Validate accepted bounds and normalize the smallest-certain supported target
|
|
30
30
|
before reading or evaluating any delivery review counter. Unsupported target
|
|
31
31
|
or invalid bounds evidence is terminal even when a delivery counter is 2 or a preserved legacy 3.
|
|
32
|
-
2.
|
|
32
|
+
2. For delivery mode, verify the
|
|
33
|
+
[Architecture/SPEC pair](../../delivery-phase/references/artifact-state.md#architecturespec-pair-complete)
|
|
34
|
+
before review preparation continues. Missing, stale or conflicting proof returns
|
|
35
|
+
`review_context_blocked` with the exact gap for Requirements Phase /
|
|
36
|
+
`requirements-grill`, preserving lineage and completed ordinals. Include the
|
|
37
|
+
architecture's exact retained identity and required decision selectors in
|
|
38
|
+
governing sources and Review Packet facts; use existing source-set hashing.
|
|
39
|
+
Recompute the accepted-bounds hash, normalized target, inclusive scope,
|
|
33
40
|
snapshot hash, governing source paths and blob hashes, and source-set hash
|
|
34
41
|
from primitive current evidence.
|
|
35
42
|
3. Derive delivery lineage only from stable delivery-goal identity. Derive
|
|
@@ -67,8 +74,9 @@ reconciles retained-pass recovery, and owns the exit evidence.
|
|
|
67
74
|
`recovered review_count + 1` and derive `review_run_id` from lineage and that
|
|
68
75
|
ordinal. In standalone mode derive `review_run_id` from lineage and
|
|
69
76
|
`snapshot12`.
|
|
70
|
-
6. Freeze the [Review Packet](../references/review-packet.md), including
|
|
71
|
-
plan, skill guidance, Verification
|
|
77
|
+
6. Freeze the [Review Packet](../references/review-packet.md), including
|
|
78
|
+
Architecture for delivery mode, Spec, plan, skill guidance, Verification
|
|
79
|
+
evidence and relevant dependency pointers.
|
|
72
80
|
Assemble complete `review_running` predecessor evidence. Preparation ends
|
|
73
81
|
before any review lens, validation command, report write, retention action,
|
|
74
82
|
counter projection, or repair routing.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punks/cli",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "Harness Intelligence scaffolding CLI",
|
|
5
5
|
"homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test": "vitest run --config vitest.config.ts --maxWorkers=1",
|
|
41
41
|
"test:parallel": "vitest run --config vitest.config.ts --fileParallelism --maxWorkers=2",
|
|
42
42
|
"ui:catalog": "bun ./scripts/run-renderer-catalog.mjs",
|
|
43
|
-
"lint": "
|
|
43
|
+
"lint": "node \"../../.agents/scripts/managed-lint-runner.mjs\" --scope \"apps/cli\"",
|
|
44
44
|
"format": "oxfmt --check src scripts package.json tsconfig.json vitest*.ts",
|
|
45
45
|
"format:check": "oxfmt --check src scripts package.json tsconfig.json vitest*.ts",
|
|
46
46
|
"check": "bun run lint && bun run format",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"@typescript-eslint/utils": "8.22.0",
|
|
68
68
|
"effect": "catalog:",
|
|
69
69
|
"eslint": "9.39.5",
|
|
70
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "latest",
|
|
70
71
|
"oxfmt": "0.66.0",
|
|
71
72
|
"oxlint": "1.80.0",
|
|
72
73
|
"oxlint-tsgolint": "7.0.2001",
|