@punks/cli 3.1.7 → 3.1.9
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/dist/BASELINE_CHANGELOG.md +14 -1
- package/dist/CHANGELOG.md +22 -1
- package/dist/data/control-plane.json +1 -1
- package/dist/data/scripts/sync-subagents.mjs +7 -26
- package/dist/index.js +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +1 -4
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +4 -7
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +0 -3
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +1 -2
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +1 -14
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +0 -5
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +0 -4
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +1 -14
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +0 -4
- package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +4 -7
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +9 -8
- package/dist/skills/frameworks/effect/effect/SKILL.md +12 -5
- package/dist/skills/frameworks/effect/effect/references/CONFIG.md +19 -10
- package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +63 -3
- package/dist/skills/frameworks/effect/effect/references/TESTING.md +72 -2
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +29 -12
- package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
- package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
- package/dist/skills/misc/wait-what/SKILL.md +3 -7
- package/dist/skills/phases/delivery-phase/phases/review.md +3 -1
- package/dist/skills/phases/delivery-phase/phases/router.md +2 -2
- package/dist/skills/phases/delivery-phase/phases/spec.md +1 -4
- package/dist/skills/phases/finder-phase/SKILL.md +0 -3
- package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +1 -3
- package/dist/skills/phases/review-phase/SKILL.md +3 -4
- package/package.json +2 -2
- package/dist/skills/frameworks/effect/effect-service-design/LICENSE +0 -21
- package/dist/skills/frameworks/effect/effect-service-design/SKILL.md +0 -124
- package/dist/skills/frameworks/effect/effect-service-design/references/AUDIT.md +0 -98
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +0 -29
- package/dist/skills/phases/prototype-phase/agents/openai.yaml +0 -2
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: wait-what
|
|
3
|
-
description:
|
|
3
|
+
description: Stop. That last message did not land — re-pitch it.
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
Re-pitch the
|
|
7
|
-
|
|
8
|
-
- a little bit of context needed to understand the result
|
|
9
|
-
- ASD-STE100 Simplified Technical English
|
|
10
|
-
- ubiquitous language from `CONTEXT.md` when available
|
|
11
|
-
- the artifact glossary plus repository vocabulary when `CONTEXT.md` is unavailable
|
|
7
|
+
Wait — I don't understand where you've got to here. Re-pitch that: give me a little bit of context, talk in ASD-STE100 Simplified Technical English, and use the ubiquitous language from `CONTEXT.md`.
|
|
@@ -5,7 +5,9 @@ diff, branch, PR, or implementation artifact.
|
|
|
5
5
|
|
|
6
6
|
## Delegate
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Mandatory step: after this phase is selected, load and call `review-phase`
|
|
9
|
+
before routing or closing delivery. Preserve its findings-first, readonly
|
|
10
|
+
posture even when tests pass.
|
|
9
11
|
|
|
10
12
|
## Rules
|
|
11
13
|
|
|
@@ -13,8 +13,8 @@ until this router selects one.
|
|
|
13
13
|
## Routing Order
|
|
14
14
|
|
|
15
15
|
1. If goal bounds are unclear, stop and ask one concrete question.
|
|
16
|
-
2. If no matching agent-ready `SPEC.md` exists
|
|
17
|
-
3. If the spec is stale, contradictory,
|
|
16
|
+
2. If no matching agent-ready `SPEC.md` exists, load [spec.md](spec.md).
|
|
17
|
+
3. If the spec exists but is stale, contradictory, or missing required child-story scope, load [spec.md](spec.md).
|
|
18
18
|
4. If the verified post-spec backlog projection is missing or stale, load [backlog.md](backlog.md).
|
|
19
19
|
5. If no execution-ready matching plan exists, load [plan.md](plan.md).
|
|
20
20
|
6. If the plan exists but lacks dependencies, owned paths, validation gates, or wave boundaries, load [plan.md](plan.md).
|
|
@@ -11,8 +11,7 @@ Load `create-spec` only after this phase is selected.
|
|
|
11
11
|
|
|
12
12
|
- Confirm the bounded goal, issue, tracker item, or requested capability.
|
|
13
13
|
- Reuse existing spec artifacts when they match the requested scope.
|
|
14
|
-
- Treat
|
|
15
|
-
- When no tracker children exist, confirmed requirements and acceptance criteria are sufficient to compile a provider-neutral spec.
|
|
14
|
+
- Treat child stories, sub-issues, acceptance criteria, constraints, and non-goals as required input, not loose references.
|
|
16
15
|
- If requirements are unsettled, return the compiler's `spec-not-ready` result
|
|
17
16
|
and route each named gap upstream instead of interviewing here.
|
|
18
17
|
|
|
@@ -23,8 +22,6 @@ Write or verify:
|
|
|
23
22
|
- matching `SPEC.md`
|
|
24
23
|
- `readiness: agent-ready`
|
|
25
24
|
- `spec-written`
|
|
26
|
-
- verified remote retention
|
|
27
|
-
- verified stable blob URL
|
|
28
25
|
- source issue/tracker/spec folder
|
|
29
26
|
|
|
30
27
|
Then stop or re-enter `delivery-phase` for routing.
|
|
@@ -30,9 +30,6 @@ directly. Compose the lean `wayfinder` primitive and preserve a resumable map.
|
|
|
30
30
|
- A `fog` item records a frontier or uncertainty description. Once Finder can
|
|
31
31
|
derive a precise question, graduate it into `grilling`, `research`, or
|
|
32
32
|
`prototype`; the question belongs to that concrete item, not the fog intake.
|
|
33
|
-
- The materialization handoff supplies the source fog parent for every
|
|
34
|
-
Finder-derived `grilling`, `research`, or `prototype` item. `write-backlog`
|
|
35
|
-
selects the provider-supported evidence-parent representation.
|
|
36
33
|
- Frontier tickets are open, unblocked, and unclaimed. Dependencies and claims
|
|
37
34
|
use provider-native relations and assignment/state.
|
|
38
35
|
- Child flows return immutable resolution pointers. Finder produces semantic
|
|
@@ -16,8 +16,7 @@ The backlog root is the living map. Docs, specs, grill logs, and notes are evide
|
|
|
16
16
|
or `prototype`; the fog item itself does not require that question.
|
|
17
17
|
- Is not delivery-eligible.
|
|
18
18
|
- Is not a `SPEC.md` anchor.
|
|
19
|
-
-
|
|
20
|
-
provider supports that relation.
|
|
19
|
+
- Does not own child tickets by default.
|
|
21
20
|
|
|
22
21
|
### Grilling
|
|
23
22
|
|
|
@@ -72,7 +71,6 @@ Return:
|
|
|
72
71
|
- current frontier
|
|
73
72
|
- selected next concept
|
|
74
73
|
- chosen or proposed placement
|
|
75
|
-
- source fog parent for a Finder-derived `grilling`, `research`, or `prototype`
|
|
76
74
|
- evidence used
|
|
77
75
|
- open blockers
|
|
78
76
|
- next skill or phase
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-phase
|
|
3
3
|
description: >-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
mandatory review wrapper inside delivery-phase.
|
|
4
|
+
Findings-first readonly review with explicit entry gates, delegated lenses,
|
|
5
|
+
artifacts, and validation.
|
|
6
|
+
disable-model-invocation: true
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
# Review Phase
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punks/cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "Harness Intelligence scaffolding CLI",
|
|
5
5
|
"homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dev": "bun run ./src/index.ts scaffold",
|
|
31
31
|
"entrypoints": "bun ./scripts/print-entrypoints.mjs",
|
|
32
32
|
"fixtures:check:managed-assets": "vitest run --config vitest.config.ts src/features/context-planning/managed-assets-fixture.native.test.ts",
|
|
33
|
-
"fixtures:update:managed-assets": "HI_UPDATE_MANAGED_ASSETS_FIXTURE=1 bun run fixtures:check:managed-assets",
|
|
33
|
+
"fixtures:update:managed-assets": "bun run build && HI_UPDATE_MANAGED_ASSETS_FIXTURE=1 bun run fixtures:check:managed-assets",
|
|
34
34
|
"local": "bun run build && bun run ./dist/index.js",
|
|
35
35
|
"release:attest": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-cli-verification.mjs attest",
|
|
36
36
|
"release:publish": "node ./scripts/release-dispatcher.mjs",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Matt Pocock
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: effect-service-design
|
|
3
|
-
description: Design Effect services. Use when designing a new Effect service module or auditing an existing codebase for service, Layer, and composition improvements.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Effect Service Design
|
|
7
|
-
|
|
8
|
-
Treat a service as an **authority seam**: a cohesive capability whose requirements should propagate through Effect context. An **Effect service module** owns the service contract, construction, production Layer, and any honest reusable test implementation that belong to the same capability.
|
|
9
|
-
|
|
10
|
-
## 1. Establish the local rules
|
|
11
|
-
|
|
12
|
-
Read the nearest `AGENTS.md`, architecture docs, coding standards, project Effect guidance, pinned Effect version/source, and relevant vendored examples. Prefer current project-compatible patterns over remembered APIs.
|
|
13
|
-
|
|
14
|
-
**Complete when:** the governing files and pinned source examples have been read and recorded for use in later decisions.
|
|
15
|
-
|
|
16
|
-
## 2. Select the branch
|
|
17
|
-
|
|
18
|
-
- **Design branch:** for a new service or a focused redesign, bound the capability, trace one caller-visible operation to every effect, then continue below.
|
|
19
|
-
- **Audit branch:** for a codebase, package, feature slice, or diff, read and follow [`references/AUDIT.md`](references/AUDIT.md), applying the rules below to every candidate it finds.
|
|
20
|
-
|
|
21
|
-
**Complete when:** one branch is selected, its scope is bounded, and the caller-visible operations in scope are named.
|
|
22
|
-
|
|
23
|
-
## 3. Apply the service test
|
|
24
|
-
|
|
25
|
-
A real service owns at least one meaningful capability:
|
|
26
|
-
|
|
27
|
-
- authority over persistence, credentials, external I/O, runtime resources, configuration, time, randomness, or lifecycle;
|
|
28
|
-
- state or behavior with real production and test/runtime variation;
|
|
29
|
-
- enough implementation complexity that deleting the module would spread complexity into callers.
|
|
30
|
-
|
|
31
|
-
Prefer an existing Effect service such as `Clock`, `Crypto`, `Random`, `Config`, `HttpClient`, `FileSystem`, or `Path` before defining an application service.
|
|
32
|
-
|
|
33
|
-
Keep these as values or pure modules:
|
|
34
|
-
|
|
35
|
-
- parsed domain inputs and per-call request data;
|
|
36
|
-
- deterministic calculations, projections, parsers, and constructors;
|
|
37
|
-
- options that select policy for one call;
|
|
38
|
-
- framework values confined to their adapter;
|
|
39
|
-
- wrappers that only rename or forward another service.
|
|
40
|
-
|
|
41
|
-
A test-only desire to inject a value is not enough. The seam must represent real ownership or variability in production.
|
|
42
|
-
|
|
43
|
-
**Complete when:** the deletion test and the existing-service/adapter audit both support either “service” or “value,” and the rejected alternative is stated plainly.
|
|
44
|
-
|
|
45
|
-
## 4. Place the authority seam
|
|
46
|
-
|
|
47
|
-
- Domain modules stay pure.
|
|
48
|
-
- A concrete adapter owns its technology-specific `make` and `layer`.
|
|
49
|
-
- Composition roots select and provide concrete Layers. They do not become reusable policy modules.
|
|
50
|
-
- Runtime bindings are yielded in the composition root or owning adapter, then hidden behind application/domain types.
|
|
51
|
-
|
|
52
|
-
Yield stable dependencies while building the Layer and close over them in service methods. Yield request-, fiber-, or operation-scoped context inside the method that uses it. Let requirements propagate until the module that truthfully chooses an implementation provides them.
|
|
53
|
-
|
|
54
|
-
Passing an external library's constructor options remains correct after the owning adapter has yielded the relevant runtime capability. React props, request values, domain inputs, and framework constructors are not Effect dependency injection.
|
|
55
|
-
|
|
56
|
-
**Complete when:** dependencies point inward, raw technology types stop at adapters, and no inner caller chooses a concrete implementation it does not own.
|
|
57
|
-
|
|
58
|
-
## 5. Shape the Effect service module
|
|
59
|
-
|
|
60
|
-
Follow the project's established equivalent of this shape:
|
|
61
|
-
|
|
62
|
-
```ts
|
|
63
|
-
export interface Interface {
|
|
64
|
-
readonly operation: (input: Input) => Effect.Effect<Output, OperationError>
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export class Service extends Context.Service<Service, Interface>()(
|
|
68
|
-
"@app/Capability",
|
|
69
|
-
) {}
|
|
70
|
-
|
|
71
|
-
export const make: Effect.Effect<
|
|
72
|
-
Service["Service"],
|
|
73
|
-
never,
|
|
74
|
-
Dependency.Service
|
|
75
|
-
> = Effect.gen(function* () {
|
|
76
|
-
const dependency = yield* Dependency.Service
|
|
77
|
-
|
|
78
|
-
const operation = Effect.fn("Capability.operation")(function* (input: Input) {
|
|
79
|
-
return yield* dependency.operation(input)
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
return Service.of({ operation })
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
export const layerWithoutDependencies = Layer.effect(Service, make)
|
|
86
|
-
|
|
87
|
-
export const layer = layerWithoutDependencies.pipe(
|
|
88
|
-
Layer.provide([Dependency.layer]),
|
|
89
|
-
)
|
|
90
|
-
|
|
91
|
-
export const layerTest = Layer.succeed(
|
|
92
|
-
Service,
|
|
93
|
-
Service.of({
|
|
94
|
-
operation: (_input) => Effect.succeed(testOutput),
|
|
95
|
-
}),
|
|
96
|
-
)
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
`layerWithoutDependencies` preserves the service's requirements for composition. `layer` is the ready production assembly and provides the concrete dependency Layers. `layerTest` illustrates a complete static substitute; export it only when that behavior is reusable and honest. Use `layerMemory` instead when an in-memory implementation faithfully preserves the observable contract.
|
|
100
|
-
|
|
101
|
-
Use `Layer.succeed` for an already-built value, `Layer.sync` for lazy synchronous construction, and `Layer.effect` for effectful acquisition. Preserve an established compatible naming convention when renaming would add churn without clarity.
|
|
102
|
-
|
|
103
|
-
Keep interfaces narrow and domain-shaped. Use named `Effect.fn` methods, typed expected errors, and yielded dependencies. Add options, methods, services, and combinators only when each hides enough complexity to earn its place.
|
|
104
|
-
|
|
105
|
-
**Complete when:** the tag, interface, `make`, dependency-preserving Layer, production `layer`, errors, methods, and test strategy have one clear owner, and every exported symbol is required by a caller.
|
|
106
|
-
|
|
107
|
-
## 6. Choose test Layers honestly
|
|
108
|
-
|
|
109
|
-
- Use `Layer.succeed` for a complete static implementation.
|
|
110
|
-
- Add `layerTest` plus a test-control service when reusable state, failure injection, or observation is part of a real seam.
|
|
111
|
-
- Name a Layer `layerMemory` only when it faithfully implements the service's observable contract in memory.
|
|
112
|
-
- Prefer a real local substitute when persistence, transactions, serialization, or protocol behavior matters.
|
|
113
|
-
- Keep a tiny one-off fake in its test when promoting it would create production surface solely for that test.
|
|
114
|
-
|
|
115
|
-
Tests cross the same service interface as production callers. When a reusable control service exists, back its production tag and test-control tag with the same object. Partial objects with “unused” methods that die are focused test fixtures, not reusable in-memory adapters.
|
|
116
|
-
|
|
117
|
-
**Complete when:** each test implementation is complete for its advertised name, tests observe outcomes through the public interface, and no new seam exists only to support mocking.
|
|
118
|
-
|
|
119
|
-
## 7. Finish the selected branch
|
|
120
|
-
|
|
121
|
-
- **Design branch:** record the service-or-value decision and its evidence. When implementation is requested, create or refactor the module, update composition roots and tests, and run the repository's required checks.
|
|
122
|
-
- **Audit branch:** produce prioritized findings with file/line or symbol evidence, target module shapes, composition and test impact, and explicit “keep” decisions.
|
|
123
|
-
|
|
124
|
-
**Complete when:** the designed capability has an explicit disposition and validated implementation when requested, or every audit inventory row has a disposition; validation passes or every failure is reported.
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# Codebase audit branch
|
|
2
|
-
|
|
3
|
-
Use this branch for an entire codebase, package, feature slice, or diff.
|
|
4
|
-
|
|
5
|
-
## 1. Build the inventory
|
|
6
|
-
|
|
7
|
-
Enumerate source and test files, then find:
|
|
8
|
-
|
|
9
|
-
- every `Context.Service`, tag, `Layer`, `make`, `provide`, and `provideService`;
|
|
10
|
-
- service-shaped interfaces/classes with effectful methods;
|
|
11
|
-
- parameter, property, constructor, callback, options-bag, and Layer injection;
|
|
12
|
-
- direct access to time, randomness, cryptography, IDs, configuration, HTTP, persistence, registries, renderers, filesystem, runtime bindings, and mutable globals;
|
|
13
|
-
- test fakes, in-memory implementations, module mocks, and hand-built `Layer.succeed` values.
|
|
14
|
-
|
|
15
|
-
For each service record:
|
|
16
|
-
|
|
17
|
-
| Field | Question |
|
|
18
|
-
| --- | --- |
|
|
19
|
-
| Owner | Which module owns the capability's meaning? |
|
|
20
|
-
| Contract | Where are the interface and tag? |
|
|
21
|
-
| Constructor | Does `make` yield every dependency? |
|
|
22
|
-
| Production | Which module owns the concrete `layer`? |
|
|
23
|
-
| Tests | Is there an honest reusable test/local implementation? |
|
|
24
|
-
| Consumers | Are capabilities yielded or drilled? |
|
|
25
|
-
| Requirements | Do Effect requirements propagate to the composition root? |
|
|
26
|
-
| Verdict | Keep, deepen, relocate, merge, remove, or create? |
|
|
27
|
-
|
|
28
|
-
**Complete when:** every discovered service/tag and Layer appears exactly once in the inventory.
|
|
29
|
-
|
|
30
|
-
## 2. Trace requirements
|
|
31
|
-
|
|
32
|
-
For each service and service-shaped constructor:
|
|
33
|
-
|
|
34
|
-
1. Trace one public operation to every effect.
|
|
35
|
-
2. Mark where each dependency first appears.
|
|
36
|
-
3. Mark where it is yielded, passed as a value, captured from a property, or concretely provided.
|
|
37
|
-
4. Verify the module providing a Layer truthfully owns that implementation choice.
|
|
38
|
-
5. Check pinned source for framework/runtime services before recommending a wrapper.
|
|
39
|
-
|
|
40
|
-
Pay special attention to:
|
|
41
|
-
|
|
42
|
-
- a service yielded once and then passed through several functions;
|
|
43
|
-
- a `Layer` accepted as a function argument;
|
|
44
|
-
- dependency bags and constructors in Effect-native code;
|
|
45
|
-
- plain service values passed into handler builders;
|
|
46
|
-
- local `Effect.provide` calls that erase requirements below the composition root;
|
|
47
|
-
- global Clock, crypto, random, environment, fetch, database, registry, or binding access;
|
|
48
|
-
- a service contract, `make`, production Layer, and test Layer scattered across unrelated modules.
|
|
49
|
-
|
|
50
|
-
**Complete when:** every capability in the inventory has an unbroken path from use to the composition root or a documented value boundary.
|
|
51
|
-
|
|
52
|
-
## 3. Classify each candidate
|
|
53
|
-
|
|
54
|
-
Apply the service test from `SKILL.md`, then classify dependencies:
|
|
55
|
-
|
|
56
|
-
- **built-in Effect capability** — yield it directly;
|
|
57
|
-
- **technology adapter** — implement the port in the adapter module;
|
|
58
|
-
- **request/domain value** — keep it explicit;
|
|
59
|
-
- **framework boundary** — isolate its required constructor/property API in the adapter or root;
|
|
60
|
-
- **pass-through abstraction** — remove or fold into its owner.
|
|
61
|
-
|
|
62
|
-
Use the deletion test. Confirm an existing module cannot own the behavior before proposing a new one. Prefer merging duplicated capabilities over introducing a generic registry or dependency bag.
|
|
63
|
-
|
|
64
|
-
**Complete when:** every candidate has one classification and concrete evidence; no finding rests only on stylistic preference.
|
|
65
|
-
|
|
66
|
-
## 4. Audit test implementations
|
|
67
|
-
|
|
68
|
-
For each service, inspect how tests replace or control it:
|
|
69
|
-
|
|
70
|
-
- static complete value → local or colocated `Layer.succeed`;
|
|
71
|
-
- reusable state/control → first-class test service and `layerTest`;
|
|
72
|
-
- faithful in-memory semantics → `layerMemory`;
|
|
73
|
-
- persistence/protocol semantics → real local adapter;
|
|
74
|
-
- narrow one-off behavior → fixture local to the test.
|
|
75
|
-
|
|
76
|
-
Compare the fake's advertised contract with its implementation. A partial fake can remain local, but it cannot be recommended as a general in-memory Layer.
|
|
77
|
-
|
|
78
|
-
**Complete when:** every production service has an intentional test strategy or an explicit reason no substitute is needed.
|
|
79
|
-
|
|
80
|
-
## 5. Report only actionable findings
|
|
81
|
-
|
|
82
|
-
Prioritize by correctness and requirement visibility:
|
|
83
|
-
|
|
84
|
-
- **P0** — hidden authority, direct unsafe runtime access, broken or duplicated capability, wrong Layer ownership;
|
|
85
|
-
- **P1** — repeated dependency drilling, missing dependency-preserving or production Layer, scattered service module;
|
|
86
|
-
- **P2** — naming or colocation cleanup that should ride with a nearby refactor.
|
|
87
|
-
|
|
88
|
-
For each finding include:
|
|
89
|
-
|
|
90
|
-
1. evidence with file/line or symbol references;
|
|
91
|
-
2. why the current shape hides requirements or creates caller burden;
|
|
92
|
-
3. the smallest target Effect service module shape, including `layerWithoutDependencies`, assembled `layer`, and any honest reusable test Layer;
|
|
93
|
-
4. the composition-root and test impact;
|
|
94
|
-
5. what should remain unchanged.
|
|
95
|
-
|
|
96
|
-
Include a final “keep” section covering explicit values, pure functions, framework boundaries, correctly separated ports/adapters, and request-scoped services.
|
|
97
|
-
|
|
98
|
-
**Complete when:** every inventory row has a disposition, every recommendation names its owner and target shape, and speculative abstractions have been removed from the report.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules/
|
|
3
|
-
|
|
4
|
-
# Website (lives on docs branch)
|
|
5
|
-
website/
|
|
6
|
-
|
|
7
|
-
# Build outputs
|
|
8
|
-
dist/
|
|
9
|
-
*.js
|
|
10
|
-
*.d.ts
|
|
11
|
-
*.js.map
|
|
12
|
-
|
|
13
|
-
# IDE
|
|
14
|
-
.idea/
|
|
15
|
-
.vscode/
|
|
16
|
-
*.swp
|
|
17
|
-
*.swo
|
|
18
|
-
|
|
19
|
-
# OS
|
|
20
|
-
.DS_Store
|
|
21
|
-
Thumbs.db
|
|
22
|
-
|
|
23
|
-
# Logs
|
|
24
|
-
*.log
|
|
25
|
-
npm-debug.log*
|
|
26
|
-
|
|
27
|
-
# Environment
|
|
28
|
-
.env
|
|
29
|
-
.env.local
|