@punks/cli 3.3.4 → 3.3.5

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/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## CLI App Guidance
2
2
 
3
- Immutable first-parent release recovery requires `RELEASE_RECOVERY.json` entries whose exact failure, target commit, note hash, order, and current Candidate Evidence validate. Recovery preserves historical artifact and Candidate Evidence.
3
+ Recovery keeps changed changelog paths as the sole product selector. Normal first-parent recovery preserves historical artifact and Candidate Evidence. Only an exact already-published provider-readback recovery may omit historical Candidate Evidence; `RELEASE_RECOVERY.json` must bind its failure, target commit/tree, note hash, order, and provider identities under current Candidate Evidence. It creates no artifacts, mutates no product, and advances authority only after complete readback. Current and new releases still require exact-tree Candidate Evidence.
4
4
 
5
5
  Primary skills here: `autoreview`, `codebase-design`, `effect`, `effect-backend-structure`, `effect-recoverable-actions`, `effect-service-design`, `improve-codebase-architecture`, `parallel-research`, `prototype`, `quality-types`, `review`, `simplify`, `swarm-planner`, `tdd`, `turborepo`.
6
6
 
@@ -6,15 +6,20 @@ Compatibility: `>=3.3.4 <3.4.0`
6
6
 
7
7
  ### Added
8
8
 
9
- - Sync canonical `wearedevpunks/skills@f030654aff74b90456fbe5dd82ca68c04f6422ca`; distribute `handback` and `write-graph-based-skills` in default packs.
10
- - Add the Effect pack's type-aware `@effect/tsgo` recommended Oxlint preset.
9
+ - Sync canonical `wearedevpunks/skills@caa755e3c080f8bc77773bd0ccbea3be935aa5c4`; distribute `handback` and `write-graph-based-skills` in default packs.
11
10
 
12
11
  ### Changed
13
12
 
13
+ - Clarify recursive backend composition ownership and Effect Layer placement for issue #164.
14
14
  - End autonomy at accepted goal bounds through one compact scaffold prompt pointer; route delivery, debugging, review, and direct autoreview expansion through durable human steering.
15
- - Pin the supported patch tuple to `@effect/tsgo@0.36.5`, `oxlint@1.78.0`, and `oxlint-tsgolint@7.0.2001`; preserve exact package.json catalog references during updates, fail closed without mutation for incompatible project-owned or pnpm-owned catalogs, and receipt-manage one patch command in simple existing `prepare` `&&` chains, including quoted `&&`, while rejecting ambiguous complex shell syntax.
16
15
  - Select baseline publication only from non-empty `BASELINE_CHANGELOG.md` notes and CLI publication only from matching non-empty `CHANGELOG.md` version notes; publish both when both changelogs qualify, while retaining strict candidate proof and artifact readback.
17
16
 
17
+ ## Recovery 560d7917dfa5c3b0a2eace307013c1c07c57d1a3
18
+
19
+ ### Fixed
20
+
21
+ - Converge the already-published 560d7917 mixed release through exact provider readback.
22
+
18
23
  ## Recovery 3227643587855a7e239dda2d85adba7391488497
19
24
 
20
25
  ### Added
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.3.5 - 2026-08-25
4
+
5
+ ### Changed
6
+
7
+ - Let Effect lint scaffolds install the latest `@effect/tsgo` and `oxlint-tsgolint` when missing, while preserving project-owned Oxlint and Effect tooling versions instead of enforcing the former exact compatibility tuple.
8
+
3
9
  ## 3.3.4 - 2026-08-24
4
10
 
5
11
  ### Added
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "channel": "stable",
4
- "version": "2026.08.25-560d7917",
5
- "tag": "baseline/stable/2026.08.25-560d7917",
6
- "commit": "560d7917dfa5c3b0a2eace307013c1c07c57d1a3",
4
+ "version": "2026.08.25-fea65688",
5
+ "tag": "baseline/stable/2026.08.25-fea65688",
6
+ "commit": "fea65688008074eb5051c2ed5d9155ea2aea7657",
7
7
  "sha256": null,
8
8
  "compatibility": {
9
- "cliVersionRange": ">=3.3.4 <3.4.0"
9
+ "cliVersionRange": ">=3.3.5 <3.4.0"
10
10
  },
11
- "generatedAt": "2026-08-25T09:26:35.000Z"
11
+ "generatedAt": "2026-08-25T13:15:20.000Z"
12
12
  }
@@ -261,11 +261,6 @@
261
261
  "plugins": [],
262
262
  "prepareCommands": ["effect-tsgo patch --no-typescript --oxlint"],
263
263
  "requiredDevDependencies": ["@effect/tsgo", "oxlint-tsgolint"],
264
- "requiredDevDependencyVersions": {
265
- "@effect/tsgo": "0.36.5",
266
- "oxlint": "1.78.0",
267
- "oxlint-tsgolint": "7.0.2001"
268
- },
269
264
  "rules": {},
270
265
  "settings": {}
271
266
  },
@@ -16,7 +16,7 @@ routed `requirements-grill` status artifact. Preserve its canonical terms;
16
16
  route proposed terminology changes through `requirements-grill` instead of
17
17
  silently renaming them.
18
18
 
19
- Read `references/layout.md` before structure decisions or large refactors.
19
+ Read `references/layout.md` before structure decisions or large refactors. It owns the recursive composition classifier and placement rules.
20
20
 
21
21
  ## Quick Classifier
22
22
 
@@ -65,3 +65,5 @@ Default to explicit use-case actions.
65
65
  - Keep dependencies flowing: transport/composition -> features -> integrations/infrastructure -> external systems.
66
66
  - Keep tests near the feature or module that owns the behavior.
67
67
  - Validate module import direction, import cycles, stale symbols after moves, architecture tests when available, and focused compile/type checks.
68
+
69
+ **Complete when:** every file and composition boundary has one owner under the layout classifier and all applicable validation passes or each failure is reported.
@@ -78,7 +78,7 @@ Common local folders:
78
78
  - `services/`
79
79
  - `tests/`
80
80
  - `errors.ts`
81
- - `layer.ts`, `container.ts`, `module.ts`, or equivalent composition file
81
+ - `container.ts`, `module.ts`, or the framework's equivalent composition file
82
82
  - `router.ts`, `controller.ts`, or equivalent transport adapter when the feature exposes endpoints
83
83
 
84
84
  Feature domains own use cases, policy, persistence contracts, and public behavior.
@@ -167,6 +167,19 @@ Composition roots own container wiring.
167
167
  - Treat lazy imports as a smell when they avoid a cycle instead of fixing import direction.
168
168
  - Keep test wiring in test support or feature composition helpers, not inside production domain logic.
169
169
 
170
+ ### Recursive composition ownership
171
+
172
+ A composition boundary belongs to the nearest honest parent that owns the coordination. Apply this rule recursively at every depth of a domain tree.
173
+
174
+ - A leaf feature or module assembles only the capability it owns.
175
+ - The nearest common parent feature composes its public child capabilities and owns product policy spanning them. Those children are siblings to one another.
176
+ - The process composition root closes the application graph and selects runtime or external adapters across otherwise independent public contracts.
177
+ - Parent composition imports public child entrypoints. Each child retains ownership of its internals.
178
+
179
+ Classify coordination by meaning. Ordering, authorization, state transitions, and choices that change product behavior are parent-feature policy. Selecting an adapter, constructing a runtime, or binding independent public contracts is pure technical binding at the process root.
180
+
181
+ **Complete when:** every boundary is classified exactly once as leaf/module capability assembly, nearest-common-parent business composition, or process-root technical binding.
182
+
170
183
  ## Public Boundaries
171
184
 
172
185
  Feature modules or package roots should expose deliberate public API.
@@ -3,8 +3,9 @@ name: effect-backend-structure
3
3
  description: |
4
4
  Apply Effect-specific backend structure on top of backend-domain-structure.
5
5
  Use when creating or changing Effect actions, repositories, transport adapters,
6
- DB integrations, test placement, or backend boilerplate in any Effect backend
7
- root. Enforces actions-own-orchestration, integration dependency direction,
6
+ DB integrations, test placement, backend boilerplate, or Layer composition
7
+ ownership in any Effect backend root. Enforces actions-own-orchestration,
8
+ integration dependency direction, three-level Layer composition operators,
8
9
  effect-solutions plus opensrc source lookup, and @effect/vitest conventions.
9
10
  compatibility: Requires Effect v4. Examples are reviewed against the version documented in this repository.
10
11
  ---
@@ -24,14 +25,21 @@ This skill adds Effect-specific backend topology, action ownership, source looku
24
25
 
25
26
  ## Workflow
26
27
 
27
- 1. Identify the backend root from the current repo; do not assume a monorepo path.
28
- 2. Read the nearest relevant `AGENTS.md` files.
29
- 3. Read `$backend-domain-structure`, `$effect`, `$effect-service-design` when services or Layers are in scope, and `references/layout.md`.
30
- 4. Run the relevant `effect-solutions` guides before coding.
31
- 5. Check local `opensrc` Effect sources when docs are vague or an API surface is unfamiliar.
32
- 6. Place code using the agnostic backend layers plus the Effect rules below.
33
- 7. Keep transport thin and run business logic through Effects.
34
- 8. Add or update colocated `@effect/vitest` tests for unit and integration coverage.
28
+ 1. Identify the backend root, read its nearest `AGENTS.md` files, `$backend-domain-structure`, `$effect`, this skill's layout reference, and `$effect-service-design` when services or Layers are in scope.
29
+
30
+ **Complete when:** the backend root and every governing instruction or reference used for the change are named.
31
+
32
+ 2. Run the smallest relevant `effect-solutions` guides, then inspect local `opensrc` Effect sources for unfamiliar or ambiguous APIs.
33
+
34
+ **Complete when:** every Effect API decision in scope is supported by a relevant guide or the current source.
35
+
36
+ 3. Classify each Layer exactly once as leaf/module capability implementation, nearest-common-parent business composition, or process production root. Keep transport thin and preserve dependency requirements until their truthful owner supplies them.
37
+
38
+ **Complete when:** every Layer in scope has exactly one owner and its public outputs and remaining requirements match that boundary.
39
+
40
+ 4. Add or update colocated `@effect/vitest` tests for the changed unit or integration boundary.
41
+
42
+ **Complete when:** focused tests validate the resulting public boundary and the repository's required checks pass or each failure is reported.
35
43
 
36
44
  ## Required Source Lookup
37
45
 
@@ -58,6 +66,8 @@ For non-Effect libraries, run `opensrc path <package>` or `opensrc path owner/re
58
66
  - Prefer `catchTag` / `catchTags`, not `catchAll`.
59
67
  - Avoid `any`.
60
68
 
69
+ Read `references/layout.md` for the mutually exclusive Layer ownership classifier, composition terminology, and v4 operator rules.
70
+
61
71
  ## Testing Rules
62
72
 
63
73
  - Keep tests inside the owning feature or module.
@@ -36,11 +36,47 @@ Dependency direction:
36
36
 
37
37
  Composition file placement:
38
38
 
39
- - `platform/effect/app.ts` or local equivalent is the app-wide composition root
39
+ - `platform/effect/app.ts` or local equivalent is the process production root
40
40
  - `platform/effect/request.ts` or local equivalent owns request-scoped runtime context
41
- - `features/<domain>/layer.ts` is the domain composition root
41
+ - a leaf `features/<domain>/layer.ts` implements the capability owned by that domain
42
+ - the nearest common parent domain's `layer.ts` composes its public child Layers; those children are siblings to one another
42
43
  - `features/<domain>/tests/support/` owns feature-local reusable test support
43
44
 
45
+ ## Three Layer Levels
46
+
47
+ ### Leaf/module capability implementation Layer
48
+
49
+ A leaf or module Layer implements only its owned public capability. Keep dependency-requiring variants available so callers can compose without inheriting an inner implementation choice. Cross-child coordination has the nearest common parent as its owner.
50
+
51
+ **Complete when:** the Layer outputs only the module's public capability and every unowned dependency remains in its requirement type.
52
+
53
+ ### Nearest common parent business Layer
54
+
55
+ The nearest common parent business Layer composes its public child Layers. Those child features are siblings to one another. Actions or services owned by the parent hold ordering, authorization, state transitions, and other cross-child product policy. The parent imports public child surfaces and keeps child internals private.
56
+
57
+ **Complete when:** every cross-child product decision has one parent owner and the parent Layer exposes the composed parent-domain capability.
58
+
59
+ ### Process production root
60
+
61
+ `platform/effect/app.ts`, or the repository's equivalent, closes the final Layer graph. It selects runtime and cross-module integration adapters, binds otherwise independent public contracts, and supplies the remaining requirements.
62
+
63
+ **Complete when:** the production graph has no unsatisfied runtime requirements, the root contains technical binding, and reusable product policy remains with its business owner.
64
+
65
+ ## Effect v4 Layer Operators
66
+
67
+ - `Layer.merge` and `Layer.mergeAll` combine Layer outputs, errors, and requirements. Use them for capabilities that remain available side by side. Feeding outputs into requirements uses `provide` or `provideMerge`.
68
+ - `Layer.provide` feeds provider outputs into the target Layer's requirements and returns the target outputs. Provider outputs stay private to that binding.
69
+ - `Layer.provideMerge` feeds provider outputs into the target Layer's requirements and retains both target and provider outputs.
70
+ - Preserve dependency-requiring Layers until the module, nearest parent business, or process root that truthfully owns the choice supplies them.
71
+
72
+ Choose the operator from the intended public output. Side-by-side capabilities use `merge` or `mergeAll`; a private dependency uses `provide`; a dependency that remains public uses `provideMerge`.
73
+
74
+ **Complete when:** every operator's retained outputs match the boundary's public contract and every supplied dependency is chosen by its truthful owner.
75
+
76
+ ## Composition terminology
77
+
78
+ Reserve composition terminology for Layers that assemble public capabilities. Name private `Context.Service` seams by capability under `services/` or in an owner-named module. Use `features/<domain>/layer.ts` for domain Layer ownership and `platform/effect/app.ts`, or the repository's equivalent, for the production root.
79
+
44
80
  Do not import live implementations directly inside actions, services, repositories, or transport adapters.
45
81
 
46
82
  Test layout:
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "channel": "stable",
4
- "version": "2026.08.25-560d7917",
5
- "tag": "baseline/stable/2026.08.25-560d7917",
6
- "commit": "560d7917dfa5c3b0a2eace307013c1c07c57d1a3",
4
+ "version": "2026.08.25-fea65688",
5
+ "tag": "baseline/stable/2026.08.25-fea65688",
6
+ "commit": "fea65688008074eb5051c2ed5d9155ea2aea7657",
7
7
  "archive": "scaffold-baseline.tgz",
8
- "archiveSha256": "4a703a9c2256bb4c145c61260714561ae51660dbd1fe217e1d4bad1f3fea2baf",
8
+ "archiveSha256": "0ee3468bacaf1aae8585691c2d108cc580d717fd478eb7cb6b26a843d634bb67",
9
9
  "compatibility": {
10
- "cliVersionRange": ">=3.3.4 <3.4.0"
10
+ "cliVersionRange": ">=3.3.5 <3.4.0"
11
11
  }
12
12
  }
Binary file