@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.
- package/AGENTS.md +2 -0
- package/dist/BASELINE_CHANGELOG.md +33 -0
- package/dist/CHANGELOG.md +22 -1
- package/dist/baseline/scaffold-baseline/baseline.json +5 -5
- 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 +19 -16
- 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/planning/create-plan/SKILL.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/architecture-convergence.md +4 -3
- 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/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 +16 -16
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +12 -11
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +9 -9
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/prepare-review.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +1 -1
- 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 +11 -11
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +4 -1
- 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/planning/create-plan/SKILL.md +1 -1
- package/dist/skills/agnostic/planning/create-plan/references/architecture-convergence.md +4 -3
- 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/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 +16 -16
- package/dist/skills/phases/delivery-phase/phases/router.md +12 -11
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +9 -9
- package/dist/skills/phases/review-phase/phases/prepare-review.md +1 -1
- package/dist/skills/phases/review-phase/references/state-graph.md +1 -1
- package/package.json +9 -71
|
@@ -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
|
|
@@ -71,7 +72,7 @@ For a diff, inspect only paths changed or flagged by this run. Apply every match
|
|
|
71
72
|
| Skill added, removed, or renamed | Reconcile affected IDs and their mirrors. |
|
|
72
73
|
| `local-edited` conflict | Preserve local intent; ask when project and baseline intent conflict. |
|
|
73
74
|
| Missing or stale path | Confirm the named recreation or deletion and direct references. |
|
|
74
|
-
| Prompt input |
|
|
75
|
+
| Prompt or Rule Registry input | Activate `$writing-for-agents`, then `$rule-authoring`; reconcile only affected scopes and mirrors. |
|
|
75
76
|
| Subagent input | Reconcile only generated and final subagent manifests. |
|
|
76
77
|
| Lint, hook, or script input | Validate the affected config or command; ask before changing policy. |
|
|
77
78
|
| Required tools | Check only added, changed, or failed tools. |
|
|
@@ -83,6 +84,8 @@ For a diff, inspect only paths changed or flagged by this run. Apply every match
|
|
|
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
|
-
|
|
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.
|
|
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
|
-
##
|
|
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
|
|
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,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.
|
|
@@ -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
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
5.
|
|
21
|
-
|
|
22
|
-
`review_run_id`, and enters `review_running`.
|
|
23
|
-
|
|
24
|
-
For `report_retention_pending`,
|
|
25
|
-
|
|
26
|
-
|
|
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
|
|
48
|
-
|
|
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.
|
|
52
|
-
|
|
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
|
|
23
|
-
|
|
24
|
-
3. For `report_retention_pending`, load [review.md](review.md)
|
|
25
|
-
|
|
26
|
-
resumes without rerunning lenses. Stop on terminal
|
|
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
|
|
52
|
-
|
|
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
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
|
@@ -46,13 +46,12 @@ writes active state, primary route, `repair_count = review_count`, and
|
|
|
46
46
|
idempotency `review_run_id`; complete the transition only after the write. A
|
|
47
47
|
recorded run id resumes its state without increment or guard fallthrough.
|
|
48
48
|
|
|
49
|
-
##
|
|
49
|
+
## Review Invocation Context
|
|
50
50
|
|
|
51
|
-
Delivery persists this block for `review_due
|
|
52
|
-
stopping:
|
|
51
|
+
Delivery persists this block for `review_due`:
|
|
53
52
|
|
|
54
53
|
```text
|
|
55
|
-
|
|
54
|
+
review_invocation_authority: full_delivery | explicit_operator
|
|
56
55
|
review_invocation_skill: $review-phase
|
|
57
56
|
review_invocation_mode: delivery
|
|
58
57
|
delivery_goal_identity:
|
|
@@ -64,14 +63,15 @@ current_route:
|
|
|
64
63
|
normalized_target:
|
|
65
64
|
```
|
|
66
65
|
|
|
67
|
-
The `review_due` handoff leaves `review_run_id` unset.
|
|
68
|
-
|
|
69
|
-
id, and enters
|
|
66
|
+
The `review_due` handoff leaves `review_run_id` unset. Full delivery consumes the
|
|
67
|
+
context immediately; other modes return it for explicit operator invocation.
|
|
68
|
+
Consumption preallocates the next ordinal, fixes the run id, and enters
|
|
69
|
+
`review_running`.
|
|
70
70
|
|
|
71
71
|
For `report_retention_pending`, the explicit resume context additionally carries
|
|
72
72
|
the existing `review_run_id`, ordinal, local report path and SHA-256, target hash,
|
|
73
|
-
source hashes, and intended retained ref.
|
|
74
|
-
|
|
73
|
+
source hashes, and intended retained ref. Full delivery resumes `$review-phase`;
|
|
74
|
+
other modes return the context for explicit retry without rerunning lenses.
|
|
75
75
|
|
|
76
76
|
After fix 3, `clean_handoff` is final authority. Link immutable review 3, final
|
|
77
77
|
changes, the same passing focused validation, and clean status.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Entry Guard
|
|
4
4
|
|
|
5
5
|
The router selected this gate from fresh `review_due` evidence supplied by an
|
|
6
|
-
explicit
|
|
6
|
+
authorized full-delivery or explicit-operator invocation. The review mode is `delivery` or `standalone`,
|
|
7
7
|
and no valid later-state evidence already owns the run.
|
|
8
8
|
|
|
9
9
|
## Inputs
|
|
@@ -8,7 +8,7 @@ and clean handoff.
|
|
|
8
8
|
| --- | --- | --- | --- | --- | --- | --- |
|
|
9
9
|
| Current delivery state | Review considered | Unsupported target | Delivery caller | Return `review_failed` | None; zero handoff or status writes | Exact target failure; no report |
|
|
10
10
|
| Current delivery state | Review considered | Invalid accepted bounds | Delivery caller | Return `review_failed` | None; zero handoff or status writes | Exact bounds failure; no report |
|
|
11
|
-
| `review_due` |
|
|
11
|
+
| `review_due` | Authorized review invocation | Delivery; accepted bounds and target valid; recovered `review_count < 3` | Delivery caller | `review_running` | Preallocate ordinal `review_count + 1`; no completed-pass change | Lineage, run id, ordinal, bounds identity/hash, normalized target |
|
|
12
12
|
| `review_due` | Explicit review invocation | Standalone; accepted bounds and target valid | Standalone caller | `review_running` | None | Lineage, run id, bounds identity/hash, normalized target |
|
|
13
13
|
| Current delivery state | Review considered | Delivery; in-memory accepted bounds and target valid; recovered `review_count >= 3` | Delivery caller | Return `review_budget_exhausted` | None; zero handoff or status writes | Exact current route, lineage, counters; no report or status mutation |
|
|
14
14
|
| `review_running` | All lenses and parent verification complete | One frozen snapshot; complete local report exists | `review-phase` | `report_retention_pending` | None; no completed-pass change | Complete report and fresh target/source hashes |
|