@punks/cli 2.6.1 → 3.0.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 (105) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +44 -24
  3. package/dist/BASELINE_CHANGELOG.md +57 -0
  4. package/dist/CHANGELOG.md +83 -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/cli/hi-cli/SKILL.md +17 -121
  39. package/dist/skills/agnostic/cli/hi-cli/references/commands.md +32 -47
  40. package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +73 -62
  41. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +1 -1
  42. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +2 -2
  43. package/dist/skills/agnostic/planning/create-plan/SKILL.md +11 -10
  44. package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +10 -31
  45. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +2 -2
  46. package/dist/skills/agnostic/planning/create-spec/SKILL.md +3 -5
  47. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +1 -0
  48. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +2 -2
  49. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +4 -9
  50. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +1 -0
  51. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +1 -1
  52. package/dist/skills/agnostic/requirements/grilling/LICENSE +21 -0
  53. package/dist/skills/agnostic/requirements/grilling/SKILL.md +6 -30
  54. package/dist/skills/agnostic/requirements/grilling/UPSTREAM.md +16 -0
  55. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -5
  56. package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +40 -16
  57. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +3 -16
  58. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +21 -15
  59. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +14 -14
  60. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +28 -9
  61. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +45 -5
  62. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -28
  63. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +22 -6
  64. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +47 -22
  65. package/dist/skills/frameworks/effect/effect/LICENSE +21 -0
  66. package/dist/skills/frameworks/effect/effect/SKILL.md +100 -0
  67. package/dist/skills/frameworks/effect/effect/UPSTREAM.md +11 -0
  68. package/dist/skills/frameworks/effect/effect/references/CACHING.md +76 -0
  69. package/dist/skills/frameworks/effect/effect/references/CONFIG.md +67 -0
  70. package/dist/skills/frameworks/effect/effect/references/HTTP_CLIENTS.md +101 -0
  71. package/dist/skills/frameworks/effect/{effect-authoring/references/otel-patterns.md → effect/references/OBSERVABILITY.md} +4 -29
  72. package/dist/skills/frameworks/effect/effect/references/SCHEDULING.md +135 -0
  73. package/dist/skills/frameworks/effect/effect/references/SCHEMA.md +130 -0
  74. package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +168 -0
  75. package/dist/skills/frameworks/effect/effect/references/STREAMS.md +135 -0
  76. package/dist/skills/frameworks/effect/effect/references/TESTING.md +118 -0
  77. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +7 -8
  78. package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +1 -1
  79. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
  80. package/dist/skills/misc/secrets-cli/SKILL.md +54 -0
  81. package/dist/skills/misc/secrets-cli/references/command-reference.md +107 -0
  82. package/dist/skills/misc/secrets-cli/references/safety-and-errors.md +54 -0
  83. package/dist/skills/misc/secrets-cli/references/workflows.md +106 -0
  84. package/dist/skills/phases/design-phase/phases/grill.md +1 -1
  85. package/dist/skills/phases/requirements-phase/SKILL.md +2 -4
  86. package/dist/skills/phases/review-phase/REFERENCE.md +13 -5
  87. package/dist/skills/phases/review-phase/SKILL.md +3 -2
  88. package/package.json +1 -1
  89. package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
  90. package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
  91. package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
  92. package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
  93. package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
  94. package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
  95. package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
  96. package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
  97. package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
  98. package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
  99. package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
  100. package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
  101. package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
  102. package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
  103. package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
  104. package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
  105. /package/dist/skills/frameworks/effect/{effect-authoring/references/effect-atom-patterns.md → effect/references/EFFECT_ATOM.md} +0 -0
package/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## CLI App Guidance
2
2
 
3
- Primary skills here: `autoreview`, `codebase-design`, `effect-authoring`, `effect-backend-structure`, `effect-best-practices`, `effect-recoverable-actions`, `improve-codebase-architecture`, `parallel-research`, `quality-types`, `simplify`, `swarm-planner`, `tdd`, `turborepo`.
3
+ Primary skills here: `autoreview`, `codebase-design`, `effect-backend-structure`, `effect`, `effect-recoverable-actions`, `improve-codebase-architecture`, `parallel-research`, `quality-types`, `simplify`, `swarm-planner`, `tdd`, `turborepo`.
4
4
 
5
5
  This app owns the `hi`/`hint` executable, repo detection flow, local scaffold application, bundled baseline fallback, update/diff ergonomics, and release/baseline publishing scripts. Preserve current CLI behavior during monorepo work.
6
6
 
package/README.md CHANGED
@@ -2,32 +2,29 @@
2
2
 
3
3
  `hi` scaffolds the AI operating context for each project phase, from requirements and backlog prep to the repo-aware setup pass.
4
4
  This repo carries the executable CLI plus the canonical bundled scaffold baseline under `src/data` and `skills/`.
5
- At runtime, scaffold content resolves from the latest stable GitHub release baseline with bundled fallback; the public [wearedevpunks/skills](https://github.com/wearedevpunks/skills) repo remains only the Vercel skills CLI interface.
5
+ At runtime, stable and exact scaffold requests resolve through the verified control-plane authority. Use `--baseline bundled` explicitly when you intend to use the npm-shipped baseline; stable and exact requests never fall back to it.
6
6
 
7
7
  ## Commands
8
8
 
9
9
  - `hi`
10
10
  show the command guide
11
- - `hi scaffold`
12
- show the scaffold lifecycle index
13
- - `hi scaffold init`
11
+ - `hi init`
14
12
  choose a backlog provider, scaffold requirements/backlog skills, and seed the initial wiki tree
15
- - `hi scaffold setup`
13
+ - `hi scaffold`
16
14
  detect the target repo, confirm or auto-accept pack selection, and write repo-aware scaffold output
17
15
  - `hi tools ensure`
18
- check and repair required external tools; `hint tools ensure` is the same command
16
+ refresh auto-managed required tools and validate manual platform tools; `hint tools ensure` is the same command
19
17
  - `hi report`
20
18
  submit structured Harness friction for maintainer triage
21
19
 
22
20
  ## Usage
23
21
 
24
22
  ```bash
23
+ hi init
25
24
  hi scaffold
26
- hi scaffold init
27
- hi scaffold setup
28
- hi scaffold setup --yes
29
- hi scaffold setup -i /path/to/repo
30
- hi scaffold setup -i /path/to/repo -o /path/to/output
25
+ hi scaffold --yes
26
+ hi scaffold -i /path/to/repo
27
+ hi scaffold -i /path/to/repo -o /path/to/output
31
28
  hi tools ensure
32
29
  hint tools ensure
33
30
  hi update --yes
@@ -42,9 +39,9 @@ bun run baseline:build
42
39
 
43
40
  `bun run sync:skills` updates a local cache clone of `wearedevpunks/skills` and then replaces only `skills/`, overwriting any local changes there.
44
41
 
45
- `hi scaffold init` asks for the backlog provider, defaults to GitHub Projects/Issues, copies `.agents/skills/requirements-grill` and `.agents/skills/write-backlog`, seeds an initial Mermaid-enabled wiki tree at `apps/wiki` for monorepos or `wiki` for single-repo layouts, writes `<wiki-root>/backlog-provider.md`, and then prints a fixed post-command prompt. Agents should activate `$hi-cli`, reconcile generated init output with the real repo layout, keep the pinned backlog provider unless the user changes it, and only start requirements/backlog generation when the user asks for that workflow.
42
+ `hi init` asks for the backlog provider, defaults to GitHub Projects/Issues, copies `.agents/skills/requirements-grill` and `.agents/skills/write-backlog`, seeds an initial Mermaid-enabled wiki tree at `apps/wiki` for monorepos or `wiki` for single-repo layouts, writes `<wiki-root>/backlog-provider.md`, and then prints a fixed post-command prompt. Agents should activate `$hi-cli`, reconcile generated init output with the real repo layout, keep the pinned backlog provider unless the user changes it, and only start requirements/backlog generation when the user asks for that workflow.
46
43
 
47
- `hi scaffold setup` scans the target repo from `cwd` or `-i`, resolves the active scaffold baseline, writes scaffold output into the scan root or `-o`, copies the selected baseline skills, resolves pack-owned lint assets into `.devpunks/specs/lint/`, and ensures required global tool prerequisites for those skills. Use `--yes` in non-interactive harnesses to accept the resolved default pack selection without prompts.
44
+ `hi scaffold` scans the target repo from `cwd` or `-i`, resolves the active scaffold baseline, writes scaffold output into the scan root or `-o`, copies the selected baseline skills, resolves pack-owned lint assets into `.devpunks/specs/lint/`, and ensures required global tool prerequisites for those skills. Use `--yes` in non-interactive harnesses to accept the resolved default pack selection without prompts.
48
45
 
49
46
  Before refreshing generated skills, setup/update may take a blind evidence snapshot of repo skill homes under `.devpunks/pre-existing-skills`. Commands do not classify skill overlaps or keep `-local` collision copies. After setup, follow-up agents reconcile the skill homes, archive replaced evidence under `.devpunks/replaced-skills/<skill-id>/...`, preserve non-overlaps through mirrors, and use `hi report` for baseline-worthy local knowledge. After update, `$hi-cli` limits reconciliation to skill IDs added, removed, renamed, or reported as locally edited; same-ID content refreshes inspect only affected skills and active mirrors.
50
47
 
@@ -52,7 +49,7 @@ Before refreshing generated skills, setup/update may take a blind evidence snaps
52
49
 
53
50
  Post-update follow-through starts from the current summary and changed paths, not from existing `.devpunks/` artifacts. A clean run stops. Prompt, subagent, lint, hook, tool, source-guide, wiki, and pack work runs only for changed categories. Auto-accepted default/detected packs do not rerun setup. Write modes finish with targeted validation and one `hi check --json`; a bounded execution worker runs the command without delegating it again.
54
51
 
55
- `hi tools ensure` / `hint tools ensure` checks required external tools and repairs missing installable tools. In a scaffolded repo it reads tool IDs from `.devpunks/settings.json`; outside a scaffolded repo it validates the default Harness toolchain. Install contracts come from the trusted stable baseline, with bundled fallback, not from repo-owned metadata. This command is not read-only. It may install or repair missing tools. When `agent-browser` is present and a supported Chrome, Chromium, or Brave executable already exists, validation, setup, and update should not force a Chrome download.
52
+ `hi tools ensure` / `hint tools ensure` reads required tool IDs from `.devpunks/settings.json`, or uses the default Harness toolchain outside a scaffolded repo. It refreshes every auto-managed tool through the selected baseline's explicit trusted latest install target even when the binary is already present. Manual platform tools such as `gh`, `az`, and `glab` are validation-only exclusions: the command never upgrades them and fails with installation guidance when one is missing. Scaffold and update retain their narrower repair policy: install missing auto-managed tools and repair declared minimum-version drift only. In particular, their `opensrc` target remains `^0.7.2`, while `hi tools ensure` uses `opensrc@latest`. After refreshing `agent-browser`, the command preserves browser provisioning and skips its browser download when a configured or supported Chrome, Chromium, or Brave executable already exists. Install contracts come from the selected verified baseline, not repo-owned metadata. Stable and exact authority failures stop the command; pass `--baseline bundled` only when you intentionally want the npm-shipped baseline.
56
53
 
57
54
  `hi -v` / `hint -v` is equivalent to `hi --version` / `hint --version`.
58
55
 
@@ -66,19 +63,18 @@ Language packs are detected separately from framework packs. TypeScript is selec
66
63
 
67
64
  The generated subagent manifest is repo-shaped from selected packs and prompt specs. Python specialists are generated only when the Python language pack is selected.
68
65
 
69
- To install the global `hi-cli` operator skill from the public skills repo:
66
+ Use the CLI-owned operator commands for the global `hi-cli` skill:
70
67
 
71
68
  ```bash
72
- skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/hi-cli --skill hi-cli --global --yes
69
+ hi operator status
70
+ hi operator install
71
+ hi operator update
72
+ hi operator migrate
73
73
  ```
74
74
 
75
- If `skills` is not installed as a global command yet:
76
-
77
- ```bash
78
- npx skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/hi-cli --skill hi-cli --global --yes
79
- ```
75
+ `hi skills rename` remains a deprecated alias for `hi operator migrate`. Operator mutations require the agent to reload or reactivate `$hi-cli`; their post-command flow does not inspect `.devpunks` artifacts or run scaffold follow-through. `hi upgrade` updates only the CLI executable.
80
76
 
81
- Use `hi operator status`, `install`, `update`, or `migrate` to manage this independently installed operator skill. `hi skills rename` remains a deprecated alias for `hi operator migrate`. Operator mutations require the agent to reload or reactivate `$hi-cli`; their post-command flow does not inspect `.devpunks` artifacts or run scaffold follow-through. `hi upgrade` updates only the CLI executable.
77
+ Operator writes require Skills CLI 1.5.20 or newer. The CLI fetches the frozen shared-skills revision into a scoped temporary Git checkout, verifies the fetched commit exactly, and passes the checked-out `hi-cli` directory to `skills add --copy`. It removes the checkout on every exit and reinspects the installed manifest before migration removes any legacy `dp-cli` copy.
82
78
 
83
79
  The lint scaffold is intentionally agent-facing rather than repo-mutating:
84
80
 
@@ -102,11 +98,11 @@ On startup, `hi` checks interactive TTY commands for a newer CLI and asks before
102
98
  Use one command per release type:
103
99
 
104
100
  ```bash
105
- bun run baseline:publish
101
+ BASELINE_VERSION=YYYY.MM.DD-short-slug BASELINE_CLI_VERSION_RANGE='>=2.6.0 <3' bun run baseline:publish
106
102
  bun run release:publish
107
103
  ```
108
104
 
109
- `bun run baseline:publish` builds the current scaffold baseline, creates or updates the `baseline/stable/<date>-<sha>` GitHub release, and uploads the baseline manifest plus tarball. Use it when scaffold data changes but the npm executable does not need a new version.
105
+ `bun run baseline:publish` requires an explicit nonblank `BASELINE_CLI_VERSION_RANGE`, builds the current scaffold baseline, creates or updates the `baseline/stable/<version>` GitHub release, and uploads the baseline manifest plus tarball. Use it when scaffold data changes but the npm executable does not need a new version.
110
106
 
111
107
  `bun run release:publish` builds the CLI as a portable Node script with bundled scaffold assets, publishes a sanitized npm package from the built `dist/` output, updates the `latest` dist-tag, also updates `next` for latest releases, pushes the matching `v<version>` git tag, and creates or updates the GitHub release title and notes from the categorized `CHANGELOG.md` content. GitHub notes use compact category labels such as `changed:` and `fixed:` without changelog publish metadata. Commit the version bump and changelog entry before running it; the script refuses dirty worktrees, missing changelog entries, uncategorized release notes, and existing tags that point at another commit. Set `NPM_TAG=beta` for beta prereleases without moving `latest`.
112
108
 
@@ -123,6 +119,30 @@ The logged-in account must have publish access to `@punks/cli`.
123
119
 
124
120
  ## Development
125
121
 
122
+ From the repository root, run the current TypeScript source instead of the globally installed
123
+ package:
124
+
125
+ ```bash
126
+ bun run cli -- --help
127
+ bun run cli -- check --baseline bundled --input .
128
+ bun run cli:entrypoints
129
+ bun run cli:ui
130
+ ```
131
+
132
+ `bun run cli -- <path>` disables the CLI and operator-skill startup update checks for that source
133
+ process. `bun run cli:entrypoints` derives every root and nested command path from the executable
134
+ registry and prints ready-to-copy help commands plus the native global actions. `bun run cli:ui`
135
+ renders the developer-only terminal/HTML catalog, retains it in a fresh temporary preview directory,
136
+ and prints the `file://` URL. Use `bun run --cwd apps/cli ui:catalog -- --check` for a self-cleaning
137
+ catalog validation or pass `--output <run-owned-directory>` to choose the retained destination. The
138
+ catalog script and fixtures are excluded from the npm package.
139
+
140
+ Interactive output uses open terminal rails: `◇` section headings, `│` rows, and a final `└` row.
141
+ The large gradient title appears on the interactive root guide reached through bare `hi`,
142
+ `hi --help`, `hi -h`, or `hi --wizard`. Redirected plain output keeps its stable ANSI-free
143
+ contract. `NO_COLOR` always disables color; `FORCE_COLOR=0` also disables it, while other
144
+ `FORCE_COLOR` values enable the configured `HI_THEME`/`COLORFGBG` palette.
145
+
126
146
  ```bash
127
147
  bun install
128
148
  bun run build
@@ -1,5 +1,62 @@
1
1
  # Baseline Changelog
2
2
 
3
+ ## baseline/stable/2026.07.23-effect-v4-source-authority - 2026-07-23
4
+
5
+ ### Fixed
6
+
7
+ - Sync Effect skills from `wearedevpunks/skills@45d731db6f5f3e715ecbd2db195b7f68d13dcff9`.
8
+ - Declare `effect-backend-structure` compatible with Effect v4 and replace its Effect v3 service guidance with the canonical `$effect` and `Context.Service` contract ([#75](https://github.com/wearedevpunks/harness-intelligence/issues/75)).
9
+ - Make `opensrc path Effect-TS/effect` and the Effect repository main branch the primary Effect v4 source authority; retain project-pinned package lookup for exact installed-version behavior.
10
+
11
+ ## baseline/stable/2026.07.21-create-spec-vocabulary-removal - 2026-07-21
12
+
13
+ ### Changed
14
+
15
+ - Sync shared skills from `wearedevpunks/skills@52866e7`.
16
+ - Keep `create-spec` focused on producing and presenting the completed spec for review.
17
+
18
+ ## baseline/stable/2026.07.17-grilling-primitive-contract - 2026-07-17
19
+
20
+ ### Changed
21
+
22
+ - Sync shared skills from `wearedevpunks/skills@e2039dd`.
23
+ - Centralize one-decision question shape, recommendation rationale, precise interpretation choices, fact lookup, branch settlement, frontier restatement, and shared-understanding completion in `grilling`.
24
+ - Keep wrapper guidance specific to its domain, durable artifacts, stricter formats, output mappings, and downstream transitions.
25
+
26
+ ## baseline/stable/2026.07.17-batched-grilling-frontier - 2026-07-17
27
+
28
+ ### Changed
29
+
30
+ - Sync shared skills from `wearedevpunks/skills@9fb9184`.
31
+ - Replace sequential grilling with Matt Pocock's MIT-licensed `batch-grill-me` frontier primitive pinned at `9603c1cc8118d08bc1b3bf34cf714f62178dea3b`, preserving the stable local `grilling` id and wrapper composition.
32
+ - Persist stable question ids, prerequisites, current-frontier membership, answered and unanswered state, canonical routed grill paths, and explicit empty-frontier shared-understanding confirmation before backlog, plan, spec, or prototype work.
33
+
34
+ ### Fixed
35
+
36
+ - Advertise explicit-only `design-phase` as a global workflow entrypoint while excluding it from scoped primary-skill generation.
37
+
38
+ ## baseline/stable/2026.07.16-effect-v4-consolidation - 2026-07-16
39
+
40
+ ### Changed
41
+
42
+ - Sync shared skills from `wearedevpunks/skills@65b8833`.
43
+ - Move Effect-Atom and observability guidance under the pinned, MIT-licensed `effect` skill as focused branch references.
44
+ - Remove the redundant `effect-authoring` skill from the catalog, Effect pack, prompts, subagents, and active mirrors.
45
+
46
+ ## baseline/stable/2026.07.16-effect-v4-patterns - 2026-07-16
47
+
48
+ ### Changed
49
+
50
+ - Sync shared skills from `wearedevpunks/skills@d18cfc7`.
51
+ - Replace the overlapping `effect-best-practices` skill with the pinned, MIT-licensed Effect v4 `effect` skill and its eight focused references.
52
+ - Keep `effect-authoring`, `effect-backend-structure`, and `effect-recoverable-actions` as distinct Effect pack workflows.
53
+
54
+ ## baseline/stable/2026.07.13-create-spec-title-frontmatter - 2026-07-13
55
+
56
+ ### Fixed
57
+
58
+ - Sync the stable baseline's `create-spec` skill from `wearedevpunks/skills@40b83fb` so routed Fumadocs specs include non-empty `title` frontmatter and enforce it in the quality bar.
59
+
3
60
  ## baseline/stable/2026.07.13-runtime-product-validation - 2026-07-13
4
61
 
5
62
  ### Changed
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,88 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0 - 2026-07-28
4
+
5
+ Stable M7-M9 release completed in [#88](https://github.com/wearedevpunks/harness-intelligence/pull/88).
6
+
7
+ ### Added
8
+
9
+ - Add repeatable packaged-consumer validation for fresh initialization, drift detection, conflict-preserving updates, and installed `hi`/`hint` command behavior.
10
+ - Add verified operator-skill lifecycle and baseline-authority flows with explicit provenance, compatibility, and fallback contracts.
11
+
12
+ ### Changed
13
+
14
+ - Rebuild CLI orchestration around feature-owned Effect v4 domains, typed failures, explicit configuration boundaries, and a unified command metadata authority.
15
+ - Converge settings, scaffold state, context projection, and non-destructive reconciliation behind deterministic plans shared by `hi init`, `hi check`, and `hi update`.
16
+ - Make `hi tools ensure` refresh every auto-managed required tool through a baseline-owned explicit latest target while keeping manual platform tools validation-only and preserving scaffold/update minimum-version repair behavior.
17
+ - Sync and pin the `hi-cli` operator skill 1.1.0 to `wearedevpunks/skills@09a6f3c`, aligned with v3 root `init`, `scaffold`, and `check`, settings-only `ensure`, and latest-refresh `tools ensure`.
18
+
19
+ ### Fixed
20
+
21
+ - Keep JSON and redirected command output machine-safe and noninteractive while preserving cancellation, rollback ownership, and fail-closed baseline behavior.
22
+ - Harden Linux validation, generated wiki/scaffold determinism, cleanup ownership, and provider interruption handling across the M7-M9 release gates.
23
+ - Materialize the frozen `hi-cli` revision in an exact detached temporary Git checkout before invoking Skills CLI 1.5.20 with a copied local source, while retaining post-write manifest verification before legacy removal and cleaning temporary state on every exit.
24
+
25
+ ## baseline/stable/2026.07.23-effect-v4-source-authority - 2026-07-23
26
+
27
+ ### Fixed
28
+
29
+ - Sync Effect skills from `wearedevpunks/skills@45d731db6f5f3e715ecbd2db195b7f68d13dcff9`.
30
+ - Declare `effect-backend-structure` compatible with Effect v4 and replace its Effect v3 service guidance with the canonical `$effect` and `Context.Service` contract ([#75](https://github.com/wearedevpunks/harness-intelligence/issues/75)).
31
+ - Make `opensrc path Effect-TS/effect` and the Effect repository main branch the primary Effect v4 source authority; retain project-pinned package lookup for exact installed-version behavior.
32
+
33
+ ## baseline/stable/2026.07.21-create-spec-vocabulary-removal - 2026-07-21
34
+
35
+ ### Changed
36
+
37
+ - Sync `create-spec` from `wearedevpunks/skills@52866e7` and end the skill at completed-spec review.
38
+
39
+ ## baseline/stable/2026.07.17-grilling-primitive-contract - 2026-07-17
40
+
41
+ ### Changed
42
+
43
+ - Sync shared skills from `wearedevpunks/skills@e2039dd`.
44
+ - Make `grilling` the sole generic question and closure contract while wrappers retain domain pressure tests, durable artifact state, stricter local formats, output mappings, and downstream transitions.
45
+
46
+ ## baseline/stable/2026.07.17-batched-grilling-frontier - 2026-07-17
47
+
48
+ ### Changed
49
+
50
+ - Sync shared skills from `wearedevpunks/skills@9fb9184`.
51
+ - Replace sequential grilling with Matt Pocock's MIT-licensed `batch-grill-me` frontier primitive pinned at `9603c1cc8118d08bc1b3bf34cf714f62178dea3b`, preserving the stable local `grilling` id and wrapper composition.
52
+ - Persist stable question ids, prerequisites, current-frontier membership, answered and unanswered state, canonical routed grill paths, and explicit empty-frontier shared-understanding confirmation before backlog, plan, spec, or prototype work.
53
+
54
+ ### Fixed
55
+
56
+ - Advertise explicit-only `design-phase` as a global workflow entrypoint while excluding it from scoped primary-skill generation.
57
+
58
+ ## baseline/stable/2026.07.16-effect-v4-consolidation - 2026-07-16
59
+
60
+ ### Changed
61
+
62
+ - Make `effect` the sole canonical Effect v4 patterns and authoring skill, with Effect-Atom and observability guidance disclosed as focused references.
63
+ - Remove the redundant `effect-authoring` skill after syncing `wearedevpunks/skills@65b8833`; retain the distinct backend-structure and recoverable-action workflows.
64
+
65
+ ## baseline/stable/2026.07.16-effect-v4-patterns - 2026-07-16
66
+
67
+ ### Changed
68
+
69
+ - Replace the overlapping `effect-best-practices` skill with the pinned, MIT-licensed Effect v4 `effect` skill from `wearedevpunks/skills@d18cfc7`.
70
+ - Route the detected Effect pack and bundled subagent guidance through the canonical `effect` skill while retaining distinct authoring, backend-structure, and recoverable-action workflows.
71
+
72
+ ## baseline/stable/2026.07.13-create-spec-title-frontmatter - 2026-07-13
73
+
74
+ ### Fixed
75
+
76
+ - Sync the stable baseline's `create-spec` skill from `wearedevpunks/skills@40b83fb` so routed Fumadocs specs include non-empty `title` frontmatter and enforce it in the quality bar ([#72](https://github.com/wearedevpunks/harness-intelligence/issues/72)).
77
+
78
+ ## 2.6.2 - 2026-07-13
79
+
80
+ Pending npm publish: `@punks/cli@2.6.2`.
81
+
82
+ ### Fixed
83
+
84
+ - Sync the `create-spec` template so scaffolded specs emit the required non-empty `title` frontmatter when written directly into routed Fumadocs trees ([#72](https://github.com/wearedevpunks/harness-intelligence/issues/72)).
85
+
3
86
  ## 2.6.1 - 2026-07-13
4
87
 
5
88
  Pending npm publish: `@punks/cli@2.6.1`.
@@ -0,0 +1,3 @@
1
+ import type { HarnessProjectionAdapter } from "../contract";
2
+
3
+ export declare const claudeAdapter: HarnessProjectionAdapter;
@@ -0,0 +1,124 @@
1
+ const promptPaths = (scopeId) =>
2
+ scopeId === ".agents" || scopeId === "shared"
3
+ ? { source: ".agents/AGENTS.md", target: ".claude/CLAUDE.md" }
4
+ : scopeId === "root"
5
+ ? { source: "AGENTS.md", target: "CLAUDE.md" }
6
+ : { source: `${scopeId}/AGENTS.md`, target: `${scopeId}/CLAUDE.md` };
7
+
8
+ const hookConfiguration = (id) => {
9
+ if (id === "format-edited-file") {
10
+ return {
11
+ path: ["hooks", "PostToolUse"],
12
+ value: {
13
+ matcher: "Edit|Write|MultiEdit",
14
+ hooks: [
15
+ {
16
+ type: "command",
17
+ command: 'node "$CLAUDE_PROJECT_DIR"/.claude/hooks/format-edited-file.mjs claude',
18
+ timeout: 30,
19
+ },
20
+ ],
21
+ },
22
+ };
23
+ }
24
+
25
+ if (id === "scaffold-update-check") {
26
+ return {
27
+ path: ["hooks", "SessionStart"],
28
+ value: {
29
+ hooks: [
30
+ {
31
+ type: "command",
32
+ command: 'node "$CLAUDE_PROJECT_DIR"/.claude/hooks/scaffold-update-check.mjs claude',
33
+ timeout: 60,
34
+ },
35
+ ],
36
+ },
37
+ };
38
+ }
39
+ };
40
+
41
+ const projectContribution = ({ scopeId, contribution }) => {
42
+ const id = `claude:${contribution.kind}:${scopeId}:${contribution.identity.id}`;
43
+
44
+ switch (contribution.kind) {
45
+ case "skill":
46
+ return [
47
+ {
48
+ id,
49
+ operation: "use-native-mirror",
50
+ canonicalPath: `.agents/skills/${contribution.identity.id}`,
51
+ nativePath: `.claude/skills/${contribution.identity.id}`,
52
+ },
53
+ ];
54
+ case "scoped-prompt":
55
+ return [{ id, operation: "mirror", ...promptPaths(scopeId) }];
56
+ case "lifecycle-hook": {
57
+ const configuration = hookConfiguration(contribution.identity.id);
58
+ if (configuration === undefined) {
59
+ return {
60
+ _tag: "HarnessProjectionUnsupported",
61
+ reason: `Claude lifecycle hook ${contribution.identity.id} has no native projection`,
62
+ };
63
+ }
64
+ return [
65
+ {
66
+ id: `${id}:mirror`,
67
+ operation: "mirror",
68
+ source: `.agents/hooks/${contribution.identity.id}.mjs`,
69
+ target: `.claude/hooks/${contribution.identity.id}.mjs`,
70
+ },
71
+ {
72
+ id: `${id}:configure`,
73
+ operation: "merge-json",
74
+ target: `.claude/settings.json#${configuration.path.join(".")}:${contribution.identity.id}`,
75
+ file: ".claude/settings.json",
76
+ ...configuration,
77
+ },
78
+ ];
79
+ }
80
+ case "subagent-template":
81
+ return [
82
+ {
83
+ id,
84
+ operation: "render-template",
85
+ templateId: contribution.identity.id,
86
+ source: `.agents/subagents/manifest.mjs#${contribution.identity.id}`,
87
+ filename: `${contribution.identity.id}.md`,
88
+ target: `.claude/agents/${contribution.identity.id}.md`,
89
+ format: "claude-markdown",
90
+ skills: contribution.references,
91
+ },
92
+ ];
93
+ case "tool-configuration":
94
+ return [];
95
+ }
96
+ };
97
+
98
+ export const claudeAdapter = {
99
+ matrix: {
100
+ matrixVersion: "2026.07.17-v1",
101
+ adapter: { id: "claude", version: "1.0.0" },
102
+ capabilities: [
103
+ {
104
+ family: "skill",
105
+ support: "degraded",
106
+ reason:
107
+ "Skills use the shared Claude compatibility mirror rather than per-scope registrations",
108
+ },
109
+ { family: "scoped-prompt", support: "supported" },
110
+ {
111
+ family: "lifecycle-hook",
112
+ support: "degraded",
113
+ reason: "Only SessionStart and file-edit command hooks have native Claude projections",
114
+ },
115
+ {
116
+ family: "tool-configuration",
117
+ support: "unsupported",
118
+ reason: "Harness tool configuration is not projected into Claude settings",
119
+ },
120
+ { family: "subagent-template", support: "supported" },
121
+ ],
122
+ },
123
+ project: projectContribution,
124
+ };
@@ -0,0 +1,3 @@
1
+ import type { HarnessProjectionAdapter } from "../contract";
2
+
3
+ export declare const codexAdapter: HarnessProjectionAdapter;
@@ -0,0 +1,137 @@
1
+ const promptIntent = ({ id, scopeId }) =>
2
+ scopeId === ".agents" || scopeId === "shared"
3
+ ? {
4
+ id,
5
+ operation: "mirror",
6
+ source: ".agents/AGENTS.md",
7
+ target: ".codex/AGENTS.md",
8
+ }
9
+ : {
10
+ id,
11
+ operation: "use-native-prompt",
12
+ canonicalPath: scopeId === "root" ? "AGENTS.md" : `${scopeId}/AGENTS.md`,
13
+ };
14
+
15
+ const hookEntries = (id) => {
16
+ if (id === "format-edited-file") {
17
+ return [
18
+ {
19
+ event: "SessionStart",
20
+ matcher: "startup|resume",
21
+ command:
22
+ 'node "$(git rev-parse --show-toplevel)/.codex/hooks/format-edited-file.mjs" session-start',
23
+ statusMessage: "Capturing edited-file baseline",
24
+ timeout: 30,
25
+ },
26
+ {
27
+ event: "PostToolUse",
28
+ matcher: "Bash|apply_patch|.*apply.?patch.*|edit|write|multiedit",
29
+ command: 'node "$(git rev-parse --show-toplevel)/.codex/hooks/format-edited-file.mjs" post',
30
+ statusMessage: "Auto-formatting edited files",
31
+ timeout: 30,
32
+ },
33
+ ];
34
+ }
35
+
36
+ if (id === "scaffold-update-check") {
37
+ return [
38
+ {
39
+ event: "SessionStart",
40
+ matcher: "startup|resume",
41
+ command:
42
+ 'node "$(git rev-parse --show-toplevel)/.codex/hooks/scaffold-update-check.mjs" codex',
43
+ statusMessage: "Checking Harness scaffold",
44
+ timeout: 60,
45
+ },
46
+ ];
47
+ }
48
+
49
+ return [];
50
+ };
51
+
52
+ const projectContribution = ({ scopeId, contribution }) => {
53
+ const id = `codex:${contribution.kind}:${scopeId}:${contribution.identity.id}`;
54
+
55
+ switch (contribution.kind) {
56
+ case "skill":
57
+ return [
58
+ {
59
+ id,
60
+ operation: "use-native-skill",
61
+ canonicalPath: `.agents/skills/${contribution.identity.id}`,
62
+ },
63
+ ];
64
+ case "scoped-prompt":
65
+ return [promptIntent({ id, scopeId })];
66
+ case "lifecycle-hook": {
67
+ const entries = hookEntries(contribution.identity.id);
68
+ if (entries.length === 0) {
69
+ return {
70
+ _tag: "HarnessProjectionUnsupported",
71
+ reason: `Codex lifecycle hook ${contribution.identity.id} has no native projection`,
72
+ };
73
+ }
74
+ return [
75
+ {
76
+ id: `${id}:mirror`,
77
+ operation: "mirror",
78
+ source: `.agents/hooks/${contribution.identity.id}.mjs`,
79
+ target: `.codex/hooks/${contribution.identity.id}.mjs`,
80
+ },
81
+ {
82
+ id: `${id}:configure`,
83
+ operation: "merge-toml",
84
+ target: `.codex/config.toml#hook:${contribution.identity.id}`,
85
+ file: ".codex/config.toml",
86
+ entries,
87
+ },
88
+ ];
89
+ }
90
+ case "subagent-template":
91
+ return [
92
+ {
93
+ id,
94
+ operation: "render-template",
95
+ templateId: contribution.identity.id,
96
+ source: `.agents/subagents/manifest.mjs#${contribution.identity.id}`,
97
+ filename: `${contribution.identity.id}.toml`,
98
+ target: `.codex/agents/${contribution.identity.id}.toml`,
99
+ format: "codex-toml",
100
+ skills: contribution.references.map((skillId) => ({
101
+ id: skillId,
102
+ path: `../../.agents/skills/${skillId}`,
103
+ enabled: true,
104
+ })),
105
+ },
106
+ ];
107
+ case "tool-configuration":
108
+ return [];
109
+ }
110
+ };
111
+
112
+ export const codexAdapter = {
113
+ matrix: {
114
+ matrixVersion: "2026.07.17-v1",
115
+ adapter: { id: "codex", version: "1.0.0" },
116
+ capabilities: [
117
+ {
118
+ family: "skill",
119
+ support: "degraded",
120
+ reason: "Skills are linked only from the Codex subagent templates that reference them",
121
+ },
122
+ { family: "scoped-prompt", support: "supported" },
123
+ {
124
+ family: "lifecycle-hook",
125
+ support: "degraded",
126
+ reason: "Only SessionStart and PostToolUse command hooks have native Codex projections",
127
+ },
128
+ {
129
+ family: "tool-configuration",
130
+ support: "unsupported",
131
+ reason: "Harness tool configuration is not projected into Codex config",
132
+ },
133
+ { family: "subagent-template", support: "supported" },
134
+ ],
135
+ },
136
+ project: projectContribution,
137
+ };
@@ -0,0 +1,5 @@
1
+ import type { HarnessCapabilityMatrix } from "@punks/scaffold/harness-capability";
2
+ import type { HarnessProjectionAdapter } from "../contract";
3
+
4
+ export declare const cursorAdapter: HarnessProjectionAdapter;
5
+ export declare const cursorCapabilityMatrix: HarnessCapabilityMatrix;