@punks/cli 3.2.0 → 3.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/AGENTS.md +2 -0
- package/dist/BASELINE_CHANGELOG.md +47 -1
- package/dist/CHANGELOG.md +36 -0
- package/dist/baseline/scaffold-baseline/baseline.json +5 -5
- package/dist/baseline/scaffold-baseline/data/catalog/lint-assets.json +48 -0
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +2 -1
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +8 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md +20 -22
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/rule-authoring/SKILL.md +18 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/rule-authoring/references/migration.md +10 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/upstream/mattpocock-writing-skills.md +81 -12
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/REFERENCE.md +11 -14
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +17 -14
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/architecture-convergence.md +99 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +34 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/planner-task-graph.md +15 -12
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +6 -5
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +10 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +100 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +25 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +17 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +14 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel.md +7 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/tdd/SKILL.md +3 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/tdd/high-signal-tests.md +17 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +9 -9
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/domain-modeling/SKILL.md +12 -12
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/UPSTREAM.md +17 -0
- package/dist/baseline/scaffold-baseline/skills/misc/wait-what/SKILL.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +5 -7
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +25 -50
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +22 -27
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +10 -28
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/AUTHORING-HANDOFF.md +11 -14
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/prepare-review.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/retain-report.md +2 -9
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/return-route.md +8 -6
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/run-review.md +5 -8
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/durable-report.md +14 -29
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +32 -45
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/targets.md +1 -2
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/scripts/review-contract.mjs +12 -86
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/AGENTS.md +2 -0
- package/dist/index.js +15 -15
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +5 -7
- package/dist/skills/agnostic/docs/rule-authoring/SKILL.md +18 -0
- package/dist/skills/agnostic/docs/rule-authoring/references/migration.md +10 -0
- package/dist/skills/agnostic/docs/upstream/mattpocock-writing-skills.md +81 -12
- package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +11 -14
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +17 -14
- package/dist/skills/agnostic/planning/create-plan/references/architecture-convergence.md +99 -0
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +34 -0
- package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +15 -12
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +6 -5
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +10 -0
- package/dist/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +100 -0
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +25 -2
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +17 -1
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +14 -0
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +7 -0
- package/dist/skills/agnostic/quality/tdd/SKILL.md +3 -2
- package/dist/skills/agnostic/quality/tdd/high-signal-tests.md +17 -3
- package/dist/skills/agnostic/requirements/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +9 -9
- package/dist/skills/agnostic/requirements/domain-modeling/SKILL.md +12 -12
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -2
- package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +1 -1
- package/dist/skills/frameworks/effect/effect-service-design/UPSTREAM.md +17 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
- package/dist/skills/misc/wait-what/SKILL.md +1 -1
- package/dist/skills/phases/delivery-phase/SKILL.md +5 -7
- package/dist/skills/phases/delivery-phase/phases/review.md +25 -50
- package/dist/skills/phases/delivery-phase/phases/router.md +20 -25
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +10 -28
- package/dist/skills/phases/review-phase/AUTHORING-HANDOFF.md +11 -14
- package/dist/skills/phases/review-phase/phases/prepare-review.md +1 -1
- package/dist/skills/phases/review-phase/phases/retain-report.md +2 -9
- package/dist/skills/phases/review-phase/phases/return-route.md +8 -6
- package/dist/skills/phases/review-phase/phases/run-review.md +5 -8
- package/dist/skills/phases/review-phase/references/durable-report.md +14 -29
- package/dist/skills/phases/review-phase/references/state-graph.md +6 -19
- package/dist/skills/phases/review-phase/references/targets.md +1 -2
- package/dist/skills/phases/review-phase/scripts/review-contract.mjs +11 -91
- package/package.json +9 -71
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Architecture Conformance
|
|
2
|
+
|
|
3
|
+
Use this contract when `PLAN.md` declares architecture applicability as
|
|
4
|
+
`architecture-bearing`. A `local` plan keeps the normal task design checks and
|
|
5
|
+
does not invent an architecture contract during execution.
|
|
6
|
+
|
|
7
|
+
The plan is authoritative. Execute its **Target Ownership Topology**, **Declared
|
|
8
|
+
Dependency Graph**, **Responsibility Acceptance Criteria**, **Architecture Waves**,
|
|
9
|
+
public seam contract, and migration ledger. Execution may clarify
|
|
10
|
+
evidence. An evidence-only clarification may be recorded locally when it changes
|
|
11
|
+
no owner, edge, criterion, wave, seam, migration, or task contract. Any target
|
|
12
|
+
contract change pauses execution and routes back through `$create-plan` on the
|
|
13
|
+
same spec folder for architecture convergence authoring and plan review. Reload
|
|
14
|
+
the amended plan before dispatching more architecture-bearing work.
|
|
15
|
+
|
|
16
|
+
## Load the theory
|
|
17
|
+
|
|
18
|
+
Before the first architecture wave, load `$backend-domain-structure` for
|
|
19
|
+
backend scope and `$frontend-domain-structure` for frontend scope. Read their
|
|
20
|
+
required references. Use their responsibility classifiers, public boundaries,
|
|
21
|
+
and dependency direction to interpret the plan against the actual repository.
|
|
22
|
+
Preserve project-native folder names: responsibility is authoritative; an
|
|
23
|
+
example tree is not.
|
|
24
|
+
|
|
25
|
+
When an accepted amendment changes the target contract, re-ground the affected
|
|
26
|
+
scope in `$backend-domain-structure` and `$frontend-domain-structure` as
|
|
27
|
+
applicable, including their required references. Rewrite every affected
|
|
28
|
+
`$show-me` persisted view from the amended authority before execution resumes.
|
|
29
|
+
|
|
30
|
+
Invoke `$show-me` to render each persisted architecture evidence view from the
|
|
31
|
+
authoritative plan and observed code. Persist the smallest useful ownership
|
|
32
|
+
tree, dependency graph, wave delta, or seam diff beside its textual conclusion
|
|
33
|
+
in `IMPLEMENTATION-NOTES.md`. The view preserves plan labels, status,
|
|
34
|
+
uncertainty, and violations; it introduces no architecture decision.
|
|
35
|
+
|
|
36
|
+
## Before dispatch
|
|
37
|
+
|
|
38
|
+
For each architecture wave:
|
|
39
|
+
|
|
40
|
+
1. Resolve its required starting topology and dependency state from the prior
|
|
41
|
+
checkpoint.
|
|
42
|
+
2. Map every task's `architecture_wave`, `behavior_owner`,
|
|
43
|
+
`integration_surface`, `public_seam`, `topology_delta`,
|
|
44
|
+
`forbidden_ownership`, `temporary_seams` including `expiry_wave`, and
|
|
45
|
+
`responsibility_acceptance_criteria` including each `criterion_id` and
|
|
46
|
+
`due_wave` into its worker brief unchanged.
|
|
47
|
+
3. Verify the tasks collectively advance the declared architecture wave and
|
|
48
|
+
have responsibility acceptance criteria that can be evidenced.
|
|
49
|
+
4. Block dispatch when a prerequisite checkpoint failed or the wave would
|
|
50
|
+
introduce an undeclared dependency, public seam change, or temporary seam.
|
|
51
|
+
|
|
52
|
+
Dispatch is ready when every architecture-bearing task has an accountable
|
|
53
|
+
owner, expected graph delta, seam contract, and checkable responsibility bound.
|
|
54
|
+
|
|
55
|
+
## Cumulative conformance checkpoint
|
|
56
|
+
|
|
57
|
+
Run a cumulative conformance checkpoint after every architecture wave, before
|
|
58
|
+
computing the next wave. Inspect the whole affected graph, not only the latest
|
|
59
|
+
diff:
|
|
60
|
+
|
|
61
|
+
- compare actual responsibility placement with the Target Ownership Topology;
|
|
62
|
+
- compare static imports and semantic calls with the Declared Dependency Graph;
|
|
63
|
+
- prove every Responsibility Acceptance Criterion due through the current
|
|
64
|
+
architecture wave, keyed by `criterion_id`, with changed artifacts and focused
|
|
65
|
+
validation;
|
|
66
|
+
- rerun each previously met criterion as a regression check and revoke its met
|
|
67
|
+
status when current evidence fails;
|
|
68
|
+
- reconcile every planned `topology_delta` and `forbidden_ownership` rule;
|
|
69
|
+
- detect public seam additions, removals, signature changes, aliases, and deep
|
|
70
|
+
imports, and reconcile each with the public seam contract;
|
|
71
|
+
- reconcile the migration ledger: introducing task, reason, allowed consumers,
|
|
72
|
+
removal task, expiry wave, current status, and removal proof;
|
|
73
|
+
- reject undeclared temporary seams and migrations due through the current
|
|
74
|
+
architecture wave whose removal proof is absent;
|
|
75
|
+
- run the narrowest available architecture, import-boundary, cycle, type, and
|
|
76
|
+
focused behavior checks.
|
|
77
|
+
|
|
78
|
+
Record the checkpoint in `PLAN.md` and under `## Architecture Conformance
|
|
79
|
+
Evidence` in `IMPLEMENTATION-NOTES.md`. Include expected state, observed state,
|
|
80
|
+
evidence, violations, public seam delta, migration delta, and verdict. A failed
|
|
81
|
+
checkpoint blocks dependent architecture waves. Repair the current wave or
|
|
82
|
+
route a target-contract amendment through `$create-plan`; final closure is not
|
|
83
|
+
the first cleanup pass.
|
|
84
|
+
|
|
85
|
+
## Final closure
|
|
86
|
+
|
|
87
|
+
After the last architecture wave, rerun the checkpoint across the complete
|
|
88
|
+
affected topology. Closure requires:
|
|
89
|
+
|
|
90
|
+
- zero drift from the Target Ownership Topology and Declared Dependency Graph;
|
|
91
|
+
- every Responsibility Acceptance Criterion met with cited evidence;
|
|
92
|
+
- every public seam change declared and accepted;
|
|
93
|
+
- the entire migration ledger is empty, with removal proof for every retired
|
|
94
|
+
temporary seam;
|
|
95
|
+
- no expired or undeclared temporary seam remains;
|
|
96
|
+
- focused architecture and behavior validation is green.
|
|
97
|
+
|
|
98
|
+
Keep the spec incomplete when closure fails. Record exact drift and the task or
|
|
99
|
+
decision required to remove it; never convert in-goal architecture drift into
|
|
100
|
+
generic tech debt.
|
|
@@ -47,6 +47,10 @@ Read, in this order:
|
|
|
47
47
|
4. `<resolved-spec-folder>/IMPLEMENTATION-NOTES.md` if present
|
|
48
48
|
5. `docs/reference/tech-debt/<domain>/<spec>.md` if present
|
|
49
49
|
|
|
50
|
+
When `PLAN.md` declares architecture applicability as `architecture-bearing`,
|
|
51
|
+
also read [architecture-conformance.md](architecture-conformance.md) before
|
|
52
|
+
dispatching the first wave.
|
|
53
|
+
|
|
50
54
|
If package or framework behavior matters, inspect source with `opensrc --modify false` before guessing.
|
|
51
55
|
|
|
52
56
|
## 4. Prepare execution notes
|
|
@@ -60,6 +64,9 @@ Use [../assets/IMPLEMENTATION-NOTES-TEMPLATE.md](../assets/IMPLEMENTATION-NOTES-
|
|
|
60
64
|
- For tasks with `runtime_validation: required`, load [runtime-product-validation.md](runtime-product-validation.md) and keep `## Runtime Validation Evidence` current.
|
|
61
65
|
- For visibly exercisable acceptance criteria, keep `## Behavior Verification
|
|
62
66
|
Evidence` current using the template contract.
|
|
67
|
+
- For architecture-bearing plans, seed `## Architecture Conformance Evidence`
|
|
68
|
+
from the persisted architecture contract and keep one cumulative checkpoint
|
|
69
|
+
per architecture wave plus final closure.
|
|
63
70
|
- Seed `## Skill Application Evidence` from every task's
|
|
64
71
|
`implementation_skill_guidance`. Preserve each guidance item unchanged and
|
|
65
72
|
create exactly one evidence row for it.
|
|
@@ -136,6 +143,9 @@ After each completed wave:
|
|
|
136
143
|
status, and how/where pointer against changed artifacts; for
|
|
137
144
|
`not_applicable`, verify why and where the guidance was assessed
|
|
138
145
|
- update `IMPLEMENTATION-NOTES.md` with non-obvious decisions, surprises, or deviations
|
|
146
|
+
- for architecture-bearing plans, run the cumulative conformance checkpoint
|
|
147
|
+
after every architecture wave; persist the `$show-me` view, textual conclusion,
|
|
148
|
+
graph and ownership evidence, public-seam delta, migration-ledger delta, and verdict
|
|
139
149
|
- for UI implementation changes, record durable before/after screenshot asset links in `IMPLEMENTATION-NOTES.md`
|
|
140
150
|
- for required runtime validation, record the scenario, public action, correlation or provenance ids, observed result, durable evidence, cleanup, and status or exact blocker in `IMPLEMENTATION-NOTES.md`
|
|
141
151
|
- persist each `$verify-behavior` result under `## Behavior Verification
|
|
@@ -183,6 +193,11 @@ Re-read `SPEC.md` acceptance criteria and mark each one:
|
|
|
183
193
|
|
|
184
194
|
Record a reason for every unmet or blocked item in `IMPLEMENTATION-NOTES.md`.
|
|
185
195
|
|
|
196
|
+
For architecture-bearing plans, acceptance also audits every Responsibility
|
|
197
|
+
Acceptance Criterion against the cumulative evidence. A failed topology,
|
|
198
|
+
dependency, public-seam, or migration-ledger checkpoint keeps affected criteria
|
|
199
|
+
unmet or blocked.
|
|
200
|
+
|
|
186
201
|
Acceptance that depends on required runtime validation is `met` only when its recorded evidence is conclusive. An exact blocker makes it `blocked`.
|
|
187
202
|
|
|
188
203
|
Visibly exercisable acceptance is `met` only when its Behavior Verification
|
|
@@ -223,11 +238,19 @@ Before reporting back:
|
|
|
223
238
|
- ensure **Skill Application Evidence** has exact one-to-one cardinality with
|
|
224
239
|
plan guidance; allowed statuses are `loaded`, `applied`, and
|
|
225
240
|
`not_applicable`
|
|
241
|
+
- ensure **Architecture Conformance Evidence**, when applicable, contains every
|
|
242
|
+
wave checkpoint and final closure; closure proves zero drift and an empty
|
|
243
|
+
migration ledger
|
|
226
244
|
- ensure **Remaining work** matches any unmet or blocked criteria
|
|
227
245
|
- ensure no in-goal debt remains as TODO, follow-up cleanup, or vague later-work text
|
|
228
246
|
- ensure every tech-debt ledger entry has exact blocker/decision/owner/next action
|
|
229
|
-
- set `SPEC.md` frontmatter `status: implemented`
|
|
230
|
-
|
|
247
|
+
- set `SPEC.md` frontmatter `status: implemented` and `PLAN.md` `**Status:**
|
|
248
|
+
Complete` only when every acceptance criterion is met, every reachable task is
|
|
249
|
+
complete, and any architecture-bearing plan has successful final architecture
|
|
250
|
+
closure
|
|
251
|
+
- preserve the current blocked or incomplete `SPEC.md` and `PLAN.md` statuses
|
|
252
|
+
when any acceptance item, task, checkpoint, or final architecture closure is
|
|
253
|
+
unmet or blocked
|
|
231
254
|
- ensure the PR body, PR comment, or PR-ready handoff snippet includes the same UI evidence links when UI changed
|
|
232
255
|
|
|
233
256
|
## 13. Final report shape
|
|
@@ -30,6 +30,16 @@ For each task, extract:
|
|
|
30
30
|
- acceptance criteria
|
|
31
31
|
- validation
|
|
32
32
|
- `tdd_target`
|
|
33
|
+
- `architecture_wave`
|
|
34
|
+
- `behavior_owner`
|
|
35
|
+
- `integration_surface`
|
|
36
|
+
- `public_seam`
|
|
37
|
+
- `topology_delta`
|
|
38
|
+
- `forbidden_ownership`
|
|
39
|
+
- `temporary_seams`
|
|
40
|
+
- each temporary seam's `expiry_wave`
|
|
41
|
+
- `responsibility_acceptance_criteria`
|
|
42
|
+
- each criterion's `criterion_id` and `due_wave`
|
|
33
43
|
- `assigned_skills`
|
|
34
44
|
- `implementation_skill_guidance`
|
|
35
45
|
- `review_mode`
|
|
@@ -81,7 +91,10 @@ After the workers return:
|
|
|
81
91
|
entry and no unmatched record
|
|
82
92
|
5. verify each record against the worker result and changed artifacts
|
|
83
93
|
6. ensure non-obvious deviations or surprises were written into `IMPLEMENTATION-NOTES.md`
|
|
84
|
-
7.
|
|
94
|
+
7. for an architecture wave, run the cumulative conformance checkpoint in
|
|
95
|
+
[architecture-conformance.md](architecture-conformance.md), render and persist
|
|
96
|
+
its `$show-me` evidence, and block dependent waves on any violation
|
|
97
|
+
8. retry or escalate failed work instead of quietly advancing
|
|
85
98
|
|
|
86
99
|
Move to the next wave only after the current wave is validated and logged.
|
|
87
100
|
|
|
@@ -108,6 +121,9 @@ A task is complete only when all of the following are true:
|
|
|
108
121
|
- any non-obvious deviations are reflected in `IMPLEMENTATION-NOTES.md`
|
|
109
122
|
- skill-application evidence has exact one-to-one cardinality with forwarded
|
|
110
123
|
guidance
|
|
124
|
+
- architecture-bearing tasks satisfy their responsibility acceptance criteria,
|
|
125
|
+
declared topology delta, dependency constraints, public seam contract, and
|
|
126
|
+
migration-ledger obligations at the cumulative checkpoint
|
|
111
127
|
|
|
112
128
|
If any of these are missing, the task is not done yet.
|
|
113
129
|
|
|
@@ -20,6 +20,16 @@ Every worker brief should include:
|
|
|
20
20
|
- `tdd_target`
|
|
21
21
|
- `tdd_status`
|
|
22
22
|
- `codebase_design_notes`
|
|
23
|
+
- `architecture_wave`
|
|
24
|
+
- `behavior_owner`
|
|
25
|
+
- `integration_surface`
|
|
26
|
+
- `public_seam`
|
|
27
|
+
- `topology_delta`
|
|
28
|
+
- `forbidden_ownership`
|
|
29
|
+
- `temporary_seams`
|
|
30
|
+
- each temporary seam's `expiry_wave`
|
|
31
|
+
- `responsibility_acceptance_criteria`
|
|
32
|
+
- each criterion's `criterion_id` and `due_wave`
|
|
23
33
|
- `red_command`
|
|
24
34
|
- `expected_red_failure`
|
|
25
35
|
- `green_command`
|
|
@@ -61,6 +71,7 @@ Each worker brief should require:
|
|
|
61
71
|
`loaded`, `applied`, or `not_applicable` status, and a how/where pointer;
|
|
62
72
|
`not_applicable` also states why and where it was assessed
|
|
63
73
|
19. refusing completion for required runtime validation without conclusive recorded evidence; returning an exact blocker leaves the task blocked
|
|
74
|
+
20. for an architecture-bearing task, implementing toward the declared ownership topology and dependency graph, proving each due `responsibility_acceptance_criteria` item by `criterion_id`, and reporting every public-seam and migration-ledger delta with its architecture wave
|
|
64
75
|
|
|
65
76
|
## Worker output contract
|
|
66
77
|
|
|
@@ -77,6 +88,9 @@ Require the worker to return:
|
|
|
77
88
|
- one skill-application evidence record for every forwarded guidance item,
|
|
78
89
|
preserving the exact skill identity
|
|
79
90
|
- anything blocked or risky, with exact reason and required decision
|
|
91
|
+
- architecture evidence: observed ownership and dependency delta,
|
|
92
|
+
responsibility-acceptance proof keyed by `criterion_id`, public-seam delta,
|
|
93
|
+
and temporary-seam status including `expiry_wave`
|
|
80
94
|
|
|
81
95
|
## Scope rule
|
|
82
96
|
|
|
@@ -21,6 +21,9 @@ unblocked. Keep the wave boundary and parent validation.
|
|
|
21
21
|
- unchanged guidance forwarding and exactly one verified skill-application
|
|
22
22
|
evidence record per guidance entry
|
|
23
23
|
- clear reporting of retries, issues, or blockers
|
|
24
|
+
- for architecture-bearing plans, cumulative ownership, dependency,
|
|
25
|
+
responsibility-acceptance, public-seam, and migration-ledger evidence after
|
|
26
|
+
every architecture wave
|
|
24
27
|
|
|
25
28
|
## Loop rule
|
|
26
29
|
|
|
@@ -30,3 +33,7 @@ Keep iterating wave by wave until:
|
|
|
30
33
|
- or a real blocker remains and is reported honestly
|
|
31
34
|
|
|
32
35
|
Retry failed work or report the exact blocker before advancing.
|
|
36
|
+
|
|
37
|
+
An architecture wave advances only after its cumulative conformance checkpoint
|
|
38
|
+
passes. Final closure confirms zero drift and an empty migration ledger; it is
|
|
39
|
+
never the first consolidation pass.
|
|
@@ -34,11 +34,11 @@ If the current code already passes the new test, do not fake RED. Isolate the pr
|
|
|
34
34
|
|
|
35
35
|
**Core principle**: Tests should verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't.
|
|
36
36
|
|
|
37
|
-
For
|
|
37
|
+
For test selection and assertions, use [high-signal-tests.md](high-signal-tests.md): keep tests only when they prove durable product or capability behavior through an owned public seam.
|
|
38
38
|
|
|
39
39
|
**Good tests** are integration-style: they exercise real code paths through public APIs. They describe _what_ the system does, not _how_ it does it. A good test reads like a specification - "user can checkout with valid cart" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.
|
|
40
40
|
|
|
41
|
-
**
|
|
41
|
+
**Low-signal tests** spend maintenance without protecting owned behavior. Cull existence and registration checks, assertions already satisfied by typechecking, simulated third-party behavior or provider-shape assumptions, shape/contract checks standing in for a feature, low-value UI wiring, and regressions whose only value is blocking reversion. Keep the owned behavior and culling rules co-located in [high-signal-tests.md](high-signal-tests.md).
|
|
42
42
|
|
|
43
43
|
See [tests.md](tests.md) for examples and [mocking.md](mocking.md) for mocking guidelines.
|
|
44
44
|
|
|
@@ -133,6 +133,7 @@ After all tests pass, look for [refactor candidates](refactoring.md):
|
|
|
133
133
|
[ ] Test describes behavior, not implementation
|
|
134
134
|
[ ] Test uses public interface only
|
|
135
135
|
[ ] Assertions preserve the product/capability invariant
|
|
136
|
+
[ ] Test proves behavior owned by this system; typechecking or a third party's suite cannot provide the same evidence
|
|
136
137
|
[ ] Test would survive internal refactor
|
|
137
138
|
[ ] Code is minimal for this test
|
|
138
139
|
[ ] No speculative features added
|
|
@@ -8,14 +8,28 @@ High-signal tests verify durable behavior through the nearest public seam:
|
|
|
8
8
|
|
|
9
9
|
- CLI command output or exit status
|
|
10
10
|
- HTTP route response
|
|
11
|
-
-
|
|
11
|
+
- user-critical interaction and visible outcome
|
|
12
12
|
- exported API result
|
|
13
|
-
- persisted
|
|
13
|
+
- persisted product outcome or generated artifact consumed as a feature
|
|
14
14
|
|
|
15
15
|
Move the test one semantic level above the change. If you changed a helper, test the capability that uses it. If you changed formatting, test the stable contract that formatting serves.
|
|
16
16
|
|
|
17
17
|
Prefer observable outcomes over helper calls, private state, call order, intermediate shapes, and internal module boundaries.
|
|
18
18
|
|
|
19
|
+
## Cull Low-Signal Tests
|
|
20
|
+
|
|
21
|
+
Keep a test only when its failure proves an owned product or capability behavior broke. Cull tests that only prove:
|
|
22
|
+
|
|
23
|
+
- a feature, module, route, or command exists or registers; execute the public capability and assert its meaningful outcome instead
|
|
24
|
+
- code has a valid type or shape already enforced by typechecking
|
|
25
|
+
- a third-party provider behaves as documented, including mocks or fixtures that reproduce its response shape; the provider owns that contract
|
|
26
|
+
- an object, schema, generated file, or wire shape matches a contract without proving a feature behavior
|
|
27
|
+
- UI wiring, rendering trivia, or cosmetic UX details; retain only user-critical workflows, accessibility behavior, and failure recovery
|
|
28
|
+
- a command is discoverable or registered without proving what running it does
|
|
29
|
+
- a past change cannot be reverted; retain a regression only when it names and protects an enduring capability invariant
|
|
30
|
+
|
|
31
|
+
Owned compatibility is the boundary. Keep exact protocol or artifact assertions only when this repository owns that public compatibility and a consumer-visible capability depends on it. For provider integrations, test the behavior our adapter owns—mapping our inputs, handling our failures, and producing our public outcome—without recreating or asserting the provider's contract.
|
|
32
|
+
|
|
19
33
|
## Choose Assertions
|
|
20
34
|
|
|
21
35
|
Assert the strongest stable meaning, not the most convenient internal shape.
|
|
@@ -36,4 +50,4 @@ Write regressions as product or capability invariants, not bug-scar tombstones.
|
|
|
36
50
|
- Keep the old failure mode only as setup or context when needed.
|
|
37
51
|
- Avoid asserting the accidental old shape unless that shape is now a contract.
|
|
38
52
|
|
|
39
|
-
Ask: would this test still
|
|
53
|
+
Ask: would this test still protect a named product capability after the implementation is completely rewritten? If not, cull it.
|
package/dist/skills/agnostic/requirements/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GLOSSARY.md Format
|
|
2
2
|
|
|
3
3
|
## Structure
|
|
4
4
|
|
|
@@ -31,18 +31,18 @@ _Avoid_: Client, buyer, account
|
|
|
31
31
|
|
|
32
32
|
## Single vs multi-context repos
|
|
33
33
|
|
|
34
|
-
**Single context (most repos):** One `
|
|
34
|
+
**Single context (most repos):** One `GLOSSARY.md` at the repo root.
|
|
35
35
|
|
|
36
|
-
**Multiple contexts:** A `
|
|
36
|
+
**Multiple contexts:** A `GLOSSARY-MAP.md` at the repo root lists the contexts, where they live, and how they relate to each other:
|
|
37
37
|
|
|
38
38
|
```md
|
|
39
39
|
# Context Map
|
|
40
40
|
|
|
41
41
|
## Contexts
|
|
42
42
|
|
|
43
|
-
- [Ordering](./src/ordering/
|
|
44
|
-
- [Billing](./src/billing/
|
|
45
|
-
- [Fulfillment](./src/fulfillment/
|
|
43
|
+
- [Ordering](./src/ordering/GLOSSARY.md) — receives and tracks customer orders
|
|
44
|
+
- [Billing](./src/billing/GLOSSARY.md) — generates invoices and processes payments
|
|
45
|
+
- [Fulfillment](./src/fulfillment/GLOSSARY.md) — manages warehouse picking and shipping
|
|
46
46
|
|
|
47
47
|
## Relationships
|
|
48
48
|
|
|
@@ -53,8 +53,8 @@ _Avoid_: Client, buyer, account
|
|
|
53
53
|
|
|
54
54
|
The skill infers which structure applies:
|
|
55
55
|
|
|
56
|
-
- If `
|
|
57
|
-
- If only a root `
|
|
58
|
-
- If neither exists, create a root `
|
|
56
|
+
- If `GLOSSARY-MAP.md` exists, read it to find contexts
|
|
57
|
+
- If only a root `GLOSSARY.md` exists, single context
|
|
58
|
+
- If neither exists, create a root `GLOSSARY.md` lazily when the first term is resolved
|
|
59
59
|
|
|
60
60
|
When multiple contexts exist, infer which one the current topic relates to. If unclear, ask.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: domain-modeling
|
|
3
|
-
description: Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a
|
|
3
|
+
description: Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Domain Modeling
|
|
7
7
|
|
|
8
|
-
Actively build and sharpen the project's domain model as you design. This is the *active* discipline — challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely *reading* `
|
|
8
|
+
Actively build and sharpen the project's domain model as you design. This is the *active* discipline — challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely *reading* `GLOSSARY.md` for vocabulary is not this skill — that's a one-line habit any skill can do. This skill is for when you're changing the model, not just consuming it.)
|
|
9
9
|
|
|
10
10
|
## File structure
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ Most repos have a single context:
|
|
|
13
13
|
|
|
14
14
|
```
|
|
15
15
|
/
|
|
16
|
-
├──
|
|
16
|
+
├── GLOSSARY.md
|
|
17
17
|
├── docs/
|
|
18
18
|
│ └── adr/
|
|
19
19
|
│ ├── 0001-event-sourced-orders.md
|
|
@@ -21,29 +21,29 @@ Most repos have a single context:
|
|
|
21
21
|
└── src/
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
If a `
|
|
24
|
+
If a `GLOSSARY-MAP.md` exists at the root, the repo has multiple contexts. The map points to where each one lives:
|
|
25
25
|
|
|
26
26
|
```
|
|
27
27
|
/
|
|
28
|
-
├──
|
|
28
|
+
├── GLOSSARY-MAP.md
|
|
29
29
|
├── docs/
|
|
30
30
|
│ └── adr/ ← system-wide decisions
|
|
31
31
|
├── src/
|
|
32
32
|
│ ├── ordering/
|
|
33
|
-
│ │ ├──
|
|
33
|
+
│ │ ├── GLOSSARY.md
|
|
34
34
|
│ │ └── docs/adr/ ← context-specific decisions
|
|
35
35
|
│ └── billing/
|
|
36
|
-
│ ├──
|
|
36
|
+
│ ├── GLOSSARY.md
|
|
37
37
|
│ └── docs/adr/
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
Create files lazily — only when you have something to write. If no `
|
|
40
|
+
Create files lazily — only when you have something to write. If no `GLOSSARY.md` exists, create one when the first term is resolved. If no `docs/adr/` exists, create it when the first ADR is needed.
|
|
41
41
|
|
|
42
42
|
## During the session
|
|
43
43
|
|
|
44
44
|
### Challenge against the glossary
|
|
45
45
|
|
|
46
|
-
When the user uses a term that conflicts with the existing language in `
|
|
46
|
+
When the user uses a term that conflicts with the existing language in `GLOSSARY.md`, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y — which is it?"
|
|
47
47
|
|
|
48
48
|
### Sharpen fuzzy language
|
|
49
49
|
|
|
@@ -57,11 +57,11 @@ When domain relationships are being discussed, stress-test them with specific sc
|
|
|
57
57
|
|
|
58
58
|
When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?"
|
|
59
59
|
|
|
60
|
-
### Update
|
|
60
|
+
### Update GLOSSARY.md inline
|
|
61
61
|
|
|
62
|
-
When a term is resolved, update `
|
|
62
|
+
When a term is resolved, update `GLOSSARY.md` right there. Don't batch these up — capture them as they happen. Use the format in [GLOSSARY-FORMAT.md](./GLOSSARY-FORMAT.md).
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
Pressure-test implementation and architecture consequences during live modeling. Persist accepted technical decisions in the grill artifacts and `SPEC.md`. Keep `GLOSSARY.md` glossary-only.
|
|
65
65
|
|
|
66
66
|
### Offer ADRs sparingly
|
|
67
67
|
|
|
@@ -33,12 +33,13 @@ Both workflows can happen in one long session, but keep the responsibilities dis
|
|
|
33
33
|
- Use `$wait-what` to present every grilling question and recommendation to the user. A round is complete only when every frontier item has been presented, answered, parked, or explicitly deferred, and the updated durable artifacts are persisted before continuing.
|
|
34
34
|
- Give `$domain-modeling` the active status glossary before the first question. Invoke it whenever a round changes terminology, relationships, or domain decisions, and persist its accepted results through `artifact-output` before continuing.
|
|
35
35
|
- Inspect relevant routed learning artifacts before grilling requirements that depend on known behavior, prior bugs, project conventions, or domain facts.
|
|
36
|
+
- Record whether the work has technical consequences. For code- or architecture-bearing work, close the applicable topology, dependencies, seams, boundaries, persistence, and module shape from current code evidence. Persist accepted design in the grill artifacts; keep `GLOSSARY.md` glossary-only.
|
|
36
37
|
- Prefer conservative defaults once enough context exists.
|
|
37
38
|
- If the user authorizes auto-pinning defaults, record obvious remaining defaults without needless extra questions.
|
|
38
39
|
- Treat parked branches as preserved knowledge, not deleted scope.
|
|
39
40
|
- Apply the round persistence contract in `artifact-output` alongside `$grilling`.
|
|
40
|
-
-
|
|
41
|
-
|
|
41
|
+
- When `$grilling` reports completion, invoke `$show-me` to present the
|
|
42
|
+
persisted shared understanding before requesting
|
|
42
43
|
approval. Treat the presentation as a derived view: persist any correction
|
|
43
44
|
through `artifact-output`, then present the corrected state again. Approval
|
|
44
45
|
applies to the durable artifacts, not the presentation.
|
|
@@ -16,7 +16,7 @@ At each `$grilling` round boundary, apply the [round persistence contract](artif
|
|
|
16
16
|
|
|
17
17
|
## Domain Modeling
|
|
18
18
|
|
|
19
|
-
Use `$domain-modeling`
|
|
19
|
+
Use `$domain-modeling` for terminology, relationships, and implementation pressure. Record whether technical consequences exist. When they do, ground the applicable topology, dependency direction, seams, boundaries, persistence, and module shape in current code. Persist accepted architecture in grill artifacts for `create-spec`; keep the active glossary implementation-free.
|
|
20
20
|
|
|
21
21
|
## Conservative Closure
|
|
22
22
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Upstream provenance
|
|
2
|
+
|
|
3
|
+
Adapted from Dillon Mulroy's [`dmmulroy/skills`](https://github.com/dmmulroy/skills/tree/8603380821fee6a77c82639f364ce8fe4f5a92be/effect-service-design) at commit:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
8603380821fee6a77c82639f364ce8fe4f5a92be
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
That source repository retains [Matt Pocock's MIT license](https://github.com/mattpocock/skills/blob/84fdeffd12f2ee307994d1eb6feb48173b6e0502/LICENSE)
|
|
10
|
+
for the underlying skill material. The adjacent `LICENSE` is byte-identical to
|
|
11
|
+
that upstream license and preserves Matt's copyright and attribution. This skill
|
|
12
|
+
is an indirect derivative, not a skill published in Matt's current curated
|
|
13
|
+
`mattpocock/skills` catalog.
|
|
14
|
+
|
|
15
|
+
Devpunks keeps the service-or-value test, design/audit branches, service and
|
|
16
|
+
Layer inventory, and honest test-substitute guidance, then adapts the
|
|
17
|
+
architecture boundaries to the local Effect skill family.
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
|
@@ -9,4 +9,4 @@ routed `requirements-grill` status artifact. Preserve its canonical terms;
|
|
|
9
9
|
route proposed terminology changes through `requirements-grill` instead of
|
|
10
10
|
silently renaming them.
|
|
11
11
|
|
|
12
|
-
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 `
|
|
12
|
+
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 `GLOSSARY.md`.
|
|
@@ -15,9 +15,9 @@ disable-model-invocation: true
|
|
|
15
15
|
handoff, validation, and docs state to choose the current gate.
|
|
16
16
|
3. If approved artifact links or UI Evidence links are present, carry them as routing evidence.
|
|
17
17
|
4. Load exactly one phase file from `phases/`.
|
|
18
|
-
5. Complete that phase
|
|
18
|
+
5. Complete that phase and write its outcome. Full delivery re-enters routing immediately; other modes stop at their selected boundary.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Full delivery grants its selected inner steps the authority needed to reach closeout. Progressive loading still exposes one phase at a time.
|
|
21
21
|
|
|
22
22
|
## Entry Modes
|
|
23
23
|
|
|
@@ -47,16 +47,14 @@ Completion of one phase does not imply loading the rest of the chain.
|
|
|
47
47
|
- A phase may delegate to `create-spec`, `write-backlog`, `create-plan`,
|
|
48
48
|
`implement-spec`, `debugging-phase`, or `docs-ingest-phase` only from
|
|
49
49
|
its own phase file.
|
|
50
|
-
- `review-phase`
|
|
51
|
-
|
|
52
|
-
then delivery stops. It never invokes that skill itself.
|
|
50
|
+
- In full delivery, activate `review-phase` as an authorized inner step below the three-pass budget. Outside full delivery, return its exact explicit invocation context and stop.
|
|
51
|
+
- After the third repair, run focused validation. Passing resumes routing toward closeout; terminal failure is a blocker.
|
|
53
52
|
- After a phase completes, write enough state for future resume. Review-triggered
|
|
54
53
|
repair uses the idempotent fields in
|
|
55
54
|
[references/phase-handoff.md](references/phase-handoff.md).
|
|
56
55
|
|
|
57
56
|
## Stop Conditions
|
|
58
57
|
|
|
59
|
-
-
|
|
60
|
-
- User requested a HITL checkpoint before the next phase.
|
|
58
|
+
- User explicitly requested a HITL checkpoint or one-phase mode and its resumable state was written.
|
|
61
59
|
- Router reaches closeout and final evidence is reported.
|
|
62
60
|
- Scope is ambiguous, stale, contradictory, or blocked by missing access.
|