create-githolon 0.45.0 → 0.47.0
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/package.json +1 -1
- package/template/docs/08-births.md +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-githolon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Scaffold a Nomos domain package: the starter domain + compile config + live e2e. `npm create githolon my-app`.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -76,3 +76,19 @@ relation models your policy; `creator` is the convention `birthChild` uses.)
|
|
|
76
76
|
- **Don't hand-roll a second recipe *builder*** across your domains — keep the recipe inline (it's small)
|
|
77
77
|
or share one tiny helper *in your own code*; the framework deliberately keeps **one** birth verb.
|
|
78
78
|
- **Don't put a clock/random in the plan** — `bornAt` rides the payload (the timestamp doctrine).
|
|
79
|
+
|
|
80
|
+
## Prove it — the 30-second loop
|
|
81
|
+
|
|
82
|
+
Every compile validates your genesis recipe statically (child domain composed in the package? seed
|
|
83
|
+
directive exists? recipe payload satisfies its schema? every plan returns an **array** of ops) and prints
|
|
84
|
+
any problem as a `⚠ births` warning **containing the fix**. Then:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npx githolon compile # ⚠ births warnings = fix these first (the message says how)
|
|
88
|
+
npx githolon proof # OFFLINE: drives your .births() directive on the real kernel, folds the
|
|
89
|
+
# child through its OWN gate, reads the seed back, verify_chain green
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
A red proof names the exact genesis step the child's gate refused. The most common first-timer halt: a
|
|
93
|
+
plan that returns a fluent builder — builders record themselves, so end the plan with `return [];`.
|
|
94
|
+
A complete working two-domain births package to copy: `bench/scale/fixtures/estate-birth` (nomos2 repo).
|