@punks/cli 3.2.1 → 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.
Files changed (48) hide show
  1. package/AGENTS.md +2 -0
  2. package/dist/BASELINE_CHANGELOG.md +33 -0
  3. package/dist/CHANGELOG.md +22 -1
  4. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +2 -1
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +8 -0
  7. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md +19 -16
  8. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/rule-authoring/SKILL.md +18 -0
  9. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/rule-authoring/references/migration.md +10 -0
  10. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +1 -1
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/architecture-convergence.md +4 -3
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/tdd/SKILL.md +3 -2
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/tdd/high-signal-tests.md +17 -3
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +9 -9
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/domain-modeling/SKILL.md +12 -12
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -2
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +1 -1
  18. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/SKILL.md +1 -1
  19. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +5 -7
  20. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +16 -16
  21. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +12 -11
  22. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +9 -9
  23. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/prepare-review.md +1 -1
  24. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +1 -1
  25. package/dist/baseline/scaffold-baseline.json +5 -5
  26. package/dist/baseline/scaffold-baseline.tgz +0 -0
  27. package/dist/data/AGENTS.md +2 -0
  28. package/dist/index.js +11 -11
  29. package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +4 -1
  30. package/dist/skills/agnostic/docs/rule-authoring/SKILL.md +18 -0
  31. package/dist/skills/agnostic/docs/rule-authoring/references/migration.md +10 -0
  32. package/dist/skills/agnostic/planning/create-plan/SKILL.md +1 -1
  33. package/dist/skills/agnostic/planning/create-plan/references/architecture-convergence.md +4 -3
  34. package/dist/skills/agnostic/quality/tdd/SKILL.md +3 -2
  35. package/dist/skills/agnostic/quality/tdd/high-signal-tests.md +17 -3
  36. package/dist/skills/agnostic/requirements/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +9 -9
  37. package/dist/skills/agnostic/requirements/domain-modeling/SKILL.md +12 -12
  38. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -2
  39. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +1 -1
  40. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
  41. package/dist/skills/misc/wait-what/SKILL.md +1 -1
  42. package/dist/skills/phases/delivery-phase/SKILL.md +5 -7
  43. package/dist/skills/phases/delivery-phase/phases/review.md +16 -16
  44. package/dist/skills/phases/delivery-phase/phases/router.md +12 -11
  45. package/dist/skills/phases/delivery-phase/references/phase-handoff.md +9 -9
  46. package/dist/skills/phases/review-phase/phases/prepare-review.md +1 -1
  47. package/dist/skills/phases/review-phase/references/state-graph.md +1 -1
  48. package/package.json +9 -71
package/AGENTS.md CHANGED
@@ -4,6 +4,8 @@ Primary skills here: `autoreview`, `codebase-design`, `effect`, `effect-backend-
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
 
7
+ Reusable skill changes in distributed assets are complete only after the root source-first flow: canonical edit, commit, push, `bun run sync:skills`, exact receipt-SHA verification, then baseline publication when requested.
8
+
7
9
  Keep consumer-repo product logic out of the CLI. The future backend owns registry, provenance, auth, telemetry, and artifact access; the CLI remains the local scanner, cache, prompt/skill/hook placer, and filesystem writer.
8
10
 
9
11
  When pushing a new npm executable release, update `CHANGELOG.md` first with a non-empty section for the exact `apps/cli/package.json` version. `bun run release:publish` must publish `@punks/cli`, push the matching `v<version>` tag, and create the GitHub release from that changelog entry. Baseline-only releases stay on `baseline/stable/*` and do not require package changelog entries.
@@ -2,6 +2,39 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## baseline/stable/2026.08.17-high-signal-tests - 2026-08-17
6
+
7
+ Compatibility: `>=3.2.1 <4`
8
+
9
+ ### Changed
10
+
11
+ - Sync canonical `wearedevpunks/skills@ebc83ccfc317c9dbae1f6348a7827cba2783a02d` from `main`.
12
+ - Refine `tdd` around high-signal behavioral evidence and cull tests satisfied by existence, type checking, provider simulation or shape assumptions, contract restatement, low-value UI or command registration checks, and resistance to intentional reversal.
13
+ - Scope the reusable-skill source-first flow to CLI release and distributed-asset prompts: canonical edit, commit, push, root sync, exact receipt verification, then requested baseline publication.
14
+
15
+ ## baseline/stable/2026.08.15-glossary-convention - 2026-08-15
16
+
17
+ Compatibility: `>=3.2.0 <4`
18
+
19
+ ### Changed
20
+
21
+ - Sync canonical `wearedevpunks/skills@354d08e26897ddbf28eb667498fdf3363ca2081c` from `main`.
22
+ - Rename the domain-document convention from `CONTEXT.md`/`CONTEXT-MAP.md` to `GLOSSARY.md`/`GLOSSARY-MAP.md`, including `GLOSSARY-FORMAT.md`.
23
+
24
+ ## baseline/stable/2026.08.14-agent-workflow-rules-autonomy - 2026-08-14
25
+
26
+ Compatibility: `>=3.2.1 <4`
27
+
28
+ ### Added
29
+
30
+ - Add the concise `rule-authoring` skill for scaffold and update handoffs that maintain project-owned `.agents/rules` and one exhaustive scoped-prompt registry pointer.
31
+
32
+ ### Changed
33
+
34
+ - Sync canonical `wearedevpunks/skills@f370868c9f7968fa5649f90be172b57a39759929` from `main`.
35
+ - Close applicable technical architecture during requirements grilling while keeping `CONTEXT.md` glossary-only; specs own accepted architecture and plans derive execution work.
36
+ - Make Full Delivery route continuously through authorized phases and at most three review cycles; only an explicit user request enables HITL confirmation.
37
+
5
38
  ### Changed
6
39
 
7
40
  - Make `requirements-grill` wait for `$grilling` to report completion before presenting persisted state for approval.
package/dist/CHANGELOG.md CHANGED
@@ -2,13 +2,34 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ### Changed
6
+
7
+ - Prepare `baseline/stable/2026.08.17-high-signal-tests` for CLI `>=3.2.1 <4` from canonical `wearedevpunks/skills@ebc83ccfc317c9dbae1f6348a7827cba2783a02d`, strengthening high-signal TDD culling and the scoped source-first skill-release flow.
8
+
9
+ - Sync canonical `wearedevpunks/skills@354d08e26897ddbf28eb667498fdf3363ca2081c` from `main` and rename the domain-document convention from `CONTEXT.md`/`CONTEXT-MAP.md` to `GLOSSARY.md`/`GLOSSARY-MAP.md`, including `GLOSSARY-FORMAT.md`.
10
+
11
+ ### Added
12
+
13
+ - Add the concise `rule-authoring` skill for scaffold and update handoffs that create or reconcile project-owned `.agents/rules`.
14
+
15
+ ### Changed
16
+
17
+ - Close applicable technical architecture during requirements grilling so specs own accepted topology, boundaries, dependencies, and seams while planning derives execution work.
18
+ - Make Full Delivery continue through its authorized phases and review cycles without confirmation; HITL pauses now require an explicit user request.
19
+
20
+ ## 3.2.2 - 2026-08-17
21
+
22
+ ### Fixed
23
+
24
+ - Detect SQLAlchemy and Alembic from Python dependency files so scaffold pack selection includes the `sqlalchemy` pack without manual selection.
25
+ - Preserve project-authored wiki `AGENTS.md` content during semantic scaffold reconciliation while continuing to enforce its `CLAUDE.md` mirror and managed wiki files.
26
+
5
27
  ## 3.2.1 - 2026-08-13
6
28
 
7
29
  ### Changed
8
30
 
9
31
  - Sync canonical `wearedevpunks/skills@1739a7a75ab975ca867da8603766c39d4befc25b` from `main`.
10
32
  - Enforce plan-wide architecture convergence in `create-plan` and `implement-spec`: `$show-me`-authored ownership, dependency, responsibility, architecture-wave, public-seam, and migration-ledger contracts; task-level ownership fields; cumulative per-wave conformance; and final zero-drift closure with an empty migration ledger.
11
- - Rotate the protected Turborepo remote-cache signature authority and align release verification with its new fingerprint.
12
33
 
13
34
  ### Fixed
14
35
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "channel": "stable",
4
- "version": "2026.08.14-4ddd7101",
5
- "tag": "baseline/stable/2026.08.14-4ddd7101",
6
- "commit": "4ddd71013dcf8c1a41d57c403f62f4b394962209",
4
+ "version": "2026.08.17-5ef3e434",
5
+ "tag": "baseline/stable/2026.08.17-5ef3e434",
6
+ "commit": "5ef3e434d5b8afc9b38d803870003ae016a7b558",
7
7
  "sha256": null,
8
8
  "compatibility": {
9
- "cliVersionRange": ">=3.2.1 <3.3.0"
9
+ "cliVersionRange": ">=3.2.2 <3.3.0"
10
10
  },
11
- "generatedAt": "2026-08-14T07:51:38.000Z"
11
+ "generatedAt": "2026-08-17T09:39:49.000Z"
12
12
  }
@@ -53,7 +53,8 @@
53
53
  "writing-fragments",
54
54
  "writing-beats",
55
55
  "writing-shape",
56
- "writing-for-agents"
56
+ "writing-for-agents",
57
+ "rule-authoring"
57
58
  ],
58
59
  "triggerPackages": []
59
60
  },
@@ -735,6 +735,14 @@
735
735
  "sourceDirectory": "skills/misc/wait-what",
736
736
  "tier": "agnostic"
737
737
  },
738
+ {
739
+ "framework": null,
740
+ "id": "rule-authoring",
741
+ "language": null,
742
+ "requiresTools": [],
743
+ "sourceDirectory": "skills/agnostic/docs/rule-authoring",
744
+ "tier": "agnostic"
745
+ },
738
746
  {
739
747
  "framework": null,
740
748
  "id": "show-me",
@@ -32,6 +32,7 @@ If an expected artifact is missing, continue and report it.
32
32
 
33
33
  Then:
34
34
 
35
+ - activate `$writing-for-agents`, then `$rule-authoring`
35
36
  - author the requested root, docs, and workspace guidance
36
37
  - treat `.devpunks/specs/prompts/**` as the complete prompt-authoring contract; apply every scoped-prompt criterion it contains
37
38
  - ground scoped prompts in current code evidence: structure, placement, dependencies, and boundaries first; applied coding conventions second; enforced constraints outrank the nearest stable module-family pattern
@@ -64,25 +65,27 @@ Read the command summary before any generated artifact. If it reports no diff, r
64
65
 
65
66
  For a diff, inspect only paths changed or flagged by this run. Apply every matching row:
66
67
 
67
- | Changed category | Required follow-through |
68
- | ---------------------------------------- | --------------------------------------------------------------------- |
69
- | Settings or manifest pins only | Confirm accepted pins. |
70
- | Skill content; IDs unchanged | Inspect affected skills and active mirrors only. |
71
- | Skill added, removed, or renamed | Reconcile affected IDs and their mirrors. |
72
- | `local-edited` conflict | Preserve local intent; ask when project and baseline intent conflict. |
73
- | Missing or stale path | Confirm the named recreation or deletion and direct references. |
74
- | Prompt input | Reconcile only affected prompt scopes and mirrors. |
75
- | Subagent input | Reconcile only generated and final subagent manifests. |
76
- | Lint, hook, or script input | Validate the affected config or command; ask before changing policy. |
77
- | Required tools | Check only added, changed, or failed tools. |
78
- | Source-guide content | Inspect only affected guide files. |
79
- | Wiki input | Reconcile affected routes or documents, then validate them. |
80
- | Default or detected pack addition | Follow only categories changed by that addition. |
81
- | Optional/removal/policy/surface decision | Ask for the unresolved decision. |
82
- | First adoption or missing final output | Run applicable scaffold follow-through. |
68
+ | Changed category | Required follow-through |
69
+ | ---------------------------------------- | --------------------------------------------------------------------------------------------------- |
70
+ | Settings or manifest pins only | Confirm accepted pins. |
71
+ | Skill content; IDs unchanged | Inspect affected skills and active mirrors only. |
72
+ | Skill added, removed, or renamed | Reconcile affected IDs and their mirrors. |
73
+ | `local-edited` conflict | Preserve local intent; ask when project and baseline intent conflict. |
74
+ | Missing or stale path | Confirm the named recreation or deletion and direct references. |
75
+ | Prompt or Rule Registry input | Activate `$writing-for-agents`, then `$rule-authoring`; reconcile only affected scopes and mirrors. |
76
+ | Subagent input | Reconcile only generated and final subagent manifests. |
77
+ | Lint, hook, or script input | Validate the affected config or command; ask before changing policy. |
78
+ | Required tools | Check only added, changed, or failed tools. |
79
+ | Source-guide content | Inspect only affected guide files. |
80
+ | Wiki input | Reconcile affected routes or documents, then validate them. |
81
+ | Default or detected pack addition | Follow only categories changed by that addition. |
82
+ | Optional/removal/policy/surface decision | Ask for the unresolved decision. |
83
+ | First adoption or missing final output | Run applicable scaffold follow-through. |
83
84
 
84
85
  After write modes, run targeted validation and one fresh `hi check --json`. Rerun `hi update` once only when that check detects new CLI or baseline drift, then finish with one final `hi check --json`.
85
86
 
87
+ Before completing a changed update, activate `$writing-for-agents`, then `$rule-authoring`. A no-op Rule Registry reconciliation is valid.
88
+
86
89
  ### Tools Ensure
87
90
 
88
91
  Treat the command as a global or external mutation.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: rule-authoring
3
+ description: Maintain project-owned Codebase Rules after `hi scaffold` or `hi update`. Use only from those post-command handoffs.
4
+ ---
5
+
6
+ # Rule Authoring
7
+
8
+ Use with `$writing-for-agents`.
9
+
10
+ 1. Read or create `.agents/rules/index.md`.
11
+ 2. Keep one stable invariant per scope-grouped rule file. Require current Code Evidence or a linked accepted architecture decision.
12
+ 3. Index each rule by stable id, scope, path trigger, task trigger, optional tags, and file. Tags aid discovery; the other triggers decide activation.
13
+ 4. Keep scoped `AGENTS.md` files to scope, exact skill routing, and one exhaustive Rule Registry pointer.
14
+ 5. Evaluate every activated rule as `pass`, `fail`, or `not-applicable` with evidence in the current handoff or work log.
15
+
16
+ Rule files contain: `id`, `authority`, one positive requirement, activation triggers, verification, and exceptions.
17
+
18
+ For an existing repository, follow [migration.md](references/migration.md). Completion means the index is exhaustive, every pointer resolves, and project-owned rules remain preserved.
@@ -0,0 +1,10 @@
1
+ # Rule Migration
2
+
3
+ Classify each scoped `AGENTS.md` line:
4
+
5
+ - keep the scope boundary and exact skill-routing table
6
+ - move stable codebase patterns and accepted architecture constraints into granular `.agents/rules/<scope>/` files
7
+ - remove duplicated rule bodies after indexing them
8
+ - keep workflow routing at its owning prompt or skill
9
+
10
+ Start with the narrowest scopes. Use current executable code or a durable accepted architecture decision as authority. Preserve project-owned rule files during scaffold and update. Finish when every scoped prompt has one exhaustive `.agents/rules/index.md` pointer and every migrated invariant has one authoritative body.
@@ -51,7 +51,7 @@ silently renaming them.
51
51
  obligations into `implementation_skill_guidance`; preserve `assigned_skills`
52
52
  as planning provenance.
53
53
  11. Read `references/architecture-convergence.md`. Persist architecture applicability. For architecture-bearing
54
- work, ground and author the complete architecture contract before finalizing task and wave boundaries.
54
+ work, derive and validate the architecture contract accepted in `SPEC.md`; route missing or contradictory target design back to `requirements-grill`.
55
55
  12. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
56
56
  13. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
57
57
  14. Read `references/backlog-sync.md`. Sync backlog at epic/story level only when
@@ -1,7 +1,6 @@
1
1
  # Architecture Convergence
2
2
 
3
- Use this branch when a plan can change cumulative code ownership. The saved plan is the architecture
4
- contract; later execution checks conformance against it.
3
+ Use this branch when a plan can change cumulative code ownership. `SPEC.md` owns the accepted target architecture; the saved plan derives its execution contract and later execution checks conformance against it.
5
4
 
6
5
  ## Classify Applicability
7
6
 
@@ -17,7 +16,9 @@ Persist `architecture_applicability: local | architecture-bearing` with evidence
17
16
  Classification is complete when every planned location and consumer is covered by one outcome. A plan
18
17
  cannot use `local` merely because each task looks small in isolation.
19
18
 
20
- ## Ground the Contract
19
+ ## Derive the Contract
20
+
21
+ Read the accepted technical decisions and verification seams in `SPEC.md`. If the target topology, dependency direction, boundaries, or public seams are absent or contradictory, return to `requirements-grill`; do not invent a competing target.
21
22
 
22
23
  For backend scope, invoke `$backend-domain-structure` and read its layout reference. Derive honest feature,
23
24
  platform/composition, integration, persistence, model, and public-boundary ownership from the repository.
@@ -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 assertion choices, use [high-signal-tests.md](high-signal-tests.md): move tests one semantic level above the change and verify durable behavior through the nearest public seam.
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
- **Bad tests** are coupled to implementation. They mock internal collaborators, test private methods, or verify through external means (like querying a database directly instead of using the interface). The warning sign: your test breaks when you refactor, but behavior hasn't changed. If you rename an internal function and tests fail, those tests were testing implementation, not behavior.
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
- - component interaction and visible outcome
11
+ - user-critical interaction and visible outcome
12
12
  - exported API result
13
- - persisted contract or generated artifact
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 be valuable after the implementation is completely rewritten? If yes, it is probably high signal.
53
+ Ask: would this test still protect a named product capability after the implementation is completely rewritten? If not, cull it.
@@ -1,4 +1,4 @@
1
- # CONTEXT.md Format
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 `CONTEXT.md` at the repo root.
34
+ **Single context (most repos):** One `GLOSSARY.md` at the repo root.
35
35
 
36
- **Multiple contexts:** A `CONTEXT-MAP.md` at the repo root lists the contexts, where they live, and how they relate to each other:
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/CONTEXT.md) — receives and tracks customer orders
44
- - [Billing](./src/billing/CONTEXT.md) — generates invoices and processes payments
45
- - [Fulfillment](./src/fulfillment/CONTEXT.md) — manages warehouse picking and shipping
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 `CONTEXT-MAP.md` exists, read it to find contexts
57
- - If only a root `CONTEXT.md` exists, single context
58
- - If neither exists, create a root `CONTEXT.md` lazily when the first term is resolved
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 CONTEXT.md, or recording or editing an ADR.
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_ `CONTEXT.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.)
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
- ├── CONTEXT.md
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 `CONTEXT-MAP.md` exists at the root, the repo has multiple contexts. The map points to where each one lives:
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
- ├── CONTEXT-MAP.md
28
+ ├── GLOSSARY-MAP.md
29
29
  ├── docs/
30
30
  │ └── adr/ ← system-wide decisions
31
31
  ├── src/
32
32
  │ ├── ordering/
33
- │ │ ├── CONTEXT.md
33
+ │ │ ├── GLOSSARY.md
34
34
  │ │ └── docs/adr/ ← context-specific decisions
35
35
  │ └── billing/
36
- │ ├── CONTEXT.md
36
+ │ ├── GLOSSARY.md
37
37
  │ └── docs/adr/
38
38
  ```
39
39
 
40
- Create files lazily — only when you have something to write. If no `CONTEXT.md` exists, create one when the first term is resolved. If no `docs/adr/` exists, create it when the first ADR is needed.
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 `CONTEXT.md`, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y — which is it?"
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 CONTEXT.md inline
60
+ ### Update GLOSSARY.md inline
61
61
 
62
- When a term is resolved, update `CONTEXT.md` right there. Don't batch these up — capture them as they happen. Use the format in [CONTEXT-FORMAT.md](./CONTEXT-FORMAT.md).
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
- `CONTEXT.md` should be totally devoid of implementation details. Do not treat `CONTEXT.md` as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.
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
- - After `$grilling` completes and the durable artifacts are current, invoke
41
- `$show-me` to present the persisted shared understanding before requesting
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` as the sole authority for modeling pressure and acceptance criteria. This workflow owns only when its accepted results are persisted: inline in the active grill glossary, then through wiki synthesis after explicit closure.
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
 
@@ -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 `CONTEXT.md`.
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, write the phase outcome, then stop or re-enter `delivery-phase` to route again.
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
- Completion of one phase does not imply loading the rest of the chain.
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` is user-invoked. Only below the three-pass budget may delivery
51
- persist `review_due` and return the exact `$review-phase` invocation context,
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
- - Selected phase completed and resumable state was written.
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.
@@ -3,7 +3,7 @@
3
3
  Use after implementation or whenever delivery has `review_due` for a stale or
4
4
  missing retained review.
5
5
 
6
- ## Prepare Explicit Review
6
+ ## Prepare Review
7
7
 
8
8
  1. Validate accepted bounds and normalize a supported Git/diff target without
9
9
  mutating it. Unsupported targets or invalid bounds enter `review_failed`
@@ -14,17 +14,17 @@ missing retained review.
14
14
  current-route evidence. This is a zero-write no-op: do not persist
15
15
  `review_due` or mutate any handoff, counter, or delivery status.
16
16
  4. Only when recovered `review_count < 3`, persist `review_due` with the valid
17
- normalized target and exact explicit `$review-phase` invocation
18
- context defined in the phase-handoff reference. Do not preallocate an ordinal
19
- or derive `review_run_id` yet.
20
- 5. Return that invocation context and stop. Only an explicit operator invocation
21
- of `$review-phase` consumes it, preallocates ordinal `review_count + 1`, fixes
22
- `review_run_id`, and enters `review_running`.
23
-
24
- For `report_retention_pending`, return an explicit `$review-phase` resume context
25
- with the existing run id, local report identity, and fresh target/source hashes,
26
- then stop. The explicit review invocation resumes retention without rerunning
27
- lenses.
17
+ normalized target and `$review-phase` invocation context defined in the
18
+ phase-handoff reference. Do not preallocate an ordinal or derive
19
+ `review_run_id` yet.
20
+ 5. Full delivery invokes `$review-phase` with that context immediately. Other
21
+ modes return it and stop. Invocation preallocates ordinal `review_count + 1`,
22
+ fixes `review_run_id`, and enters `review_running`.
23
+
24
+ For `report_retention_pending`, use a `$review-phase` resume context with the
25
+ existing run id, local report identity, and fresh target/source hashes. Full
26
+ delivery resumes it immediately; other modes return it and stop. Retention
27
+ resumes without rerunning lenses.
28
28
 
29
29
  ## Route Retained Findings
30
30
 
@@ -44,9 +44,9 @@ directly without another increment.
44
44
 
45
45
  ## Completion
46
46
 
47
- Before review, completion is a durable `review_due` handoff plus exact explicit
48
- invocation context and a stop. After review returns `review_routed`, completion
47
+ Before review, completion is a durable `review_due` handoff plus an invocation
48
+ context; full delivery consumes it immediately. After review returns `review_routed`, completion
49
49
  records report path, report SHA-256, report commit SHA, verified retained ref,
50
50
  lineage, run id, recovered/projected counts, stable finding ids, primary route,
51
- secondary debt route when present, and resulting state. Then stop or re-enter
52
- delivery routing.
51
+ secondary debt route when present, and resulting state. Full delivery re-enters
52
+ routing; other modes stop at their boundary.
@@ -19,12 +19,12 @@ state take precedence over inferred artifact order.
19
19
  `review_failed` even when a persisted counter is 3. Only after those checks
20
20
  may it recover `review_count` and evaluate the budget in memory. Exhaustion
21
21
  returns `review_budget_exhausted` with zero handoff or status writes. A count
22
- below 3 persists `review_due` and returns the exact explicit `$review-phase`
23
- invocation context. Then stop. Delivery never enters `review_running` itself.
24
- 3. For `report_retention_pending`, load [review.md](review.md) only to return the
25
- exact explicit `$review-phase` resume context, then stop. A fresh local report
26
- resumes without rerunning lenses. Stop on terminal `review_failed` with its
27
- exact evidence.
22
+ below 3 persists `review_due`. Full delivery activates `$review-phase` with
23
+ that context; other modes return the exact explicit invocation context and stop.
24
+ 3. For `report_retention_pending`, load [review.md](review.md) to resume
25
+ `$review-phase` in full delivery or return its exact resume context in other
26
+ modes. A fresh local report resumes without rerunning lenses. Stop on terminal
27
+ `review_failed` with its exact evidence.
28
28
  4. Otherwise recover review state by `review_lineage_id`: read the highest valid
29
29
  retained ordinal, reconcile the handoff `review_count` projection, then assess
30
30
  target and source freshness separately.
@@ -48,8 +48,8 @@ state take precedence over inferred artifact order.
48
48
  13. If implementation exists and its retained review is missing or stale, load
49
49
  [review.md](review.md). That phase validates accepted bounds and normalizes a
50
50
  supported target before any delivery-budget evaluation, then returns either
51
- `review_failed`, `review_budget_exhausted`, or the exact explicit
52
- `$review-phase` invocation context and stops.
51
+ `review_failed`, `review_budget_exhausted`, or a valid `$review-phase`
52
+ context. Full delivery consumes that context immediately; other modes stop.
53
53
  14. Route remaining docs-affecting work to [docs-ingest.md](docs-ingest.md),
54
54
  otherwise [closeout.md](closeout.md).
55
55
 
@@ -59,9 +59,10 @@ revision, resume, rebase, commit, retry, and handoff preserve them.
59
59
 
60
60
  ## HITL And Resume
61
61
 
62
- A HITL checkpoint is explicit user control. Run only the requested phase and
63
- stop after its handoff. Earlier phases may have completed through direct skills;
64
- reuse fresh matching artifacts rather than rerunning them.
62
+ A HITL checkpoint exists only when the user explicitly requests it. Full
63
+ delivery otherwise continues across ordinary in-bounds operations without
64
+ confirmation. Earlier phases may have completed through direct skills; reuse
65
+ fresh matching artifacts rather than rerunning them.
65
66
 
66
67
  ## Output
67
68