@chrisdudek/yg 2.4.0 → 2.5.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/dist/bin.js +115 -15
- package/dist/bin.js.map +1 -1
- package/dist/templates/default-config.ts +1 -0
- package/dist/templates/rules.ts +3 -1
- package/package.json +1 -1
package/dist/templates/rules.ts
CHANGED
|
@@ -117,6 +117,7 @@ You have broken Yggdrasil if you do any of the following:
|
|
|
117
117
|
- ❌ Placed a cross-cutting requirement in a local artifact instead of an aspect, or used an aspect id with no \`aspects/\` directory.
|
|
118
118
|
- ❌ Invented a rationale, business rule, or decision — or recorded a decision without documenting rejected alternatives and rationale (use "rationale: unknown" if unknown).
|
|
119
119
|
- ❌ Used blackbox coverage for greenfield (new) code.
|
|
120
|
+
- ❌ Deleted or shortened graph artifact content to reduce context package size instead of splitting the node.
|
|
120
121
|
|
|
121
122
|
### Escape Hatch
|
|
122
123
|
|
|
@@ -306,7 +307,8 @@ When reviewing graph quality (triggered by user or quality improvement):
|
|
|
306
307
|
|
|
307
308
|
- **\`yg\` not found** → inform user: "yg CLI is not installed or not in PATH." Stop.
|
|
308
309
|
- **Unfixable validate errors** → if not resolved after 3 attempts, stop and report to user. Do not loop.
|
|
309
|
-
- **Budget
|
|
310
|
+
- **Budget warning (W005/W006)** → informational. \`yg validate\` shows a breakdown (own/hierarchy/aspects/flows/dependencies). Large inherited context means the system is complex — this is not a problem to fix, it is reality to acknowledge. Do not delete knowledge from artifacts. Do not attempt to "reduce" inherited context.
|
|
311
|
+
- **Own budget warning (W015)** → own artifacts are large. Consider splitting this node's responsibilities into child nodes. Redistribute knowledge across children so total knowledge is preserved or increased, never reduced.
|
|
310
312
|
- **Corrupted \`.yggdrasil/\` files** → report to user. Do not attempt repair.
|
|
311
313
|
- **Incremental sync** → run \`yg drift-sync\` every 3-5 source files during multi-file tasks. Do not defer to end.`;
|
|
312
314
|
|