@chrisdudek/yg 2.4.0 → 2.4.1
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 +3 -1
- package/dist/bin.js.map +1 -1
- package/dist/templates/rules.ts +2 -0
- 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
|
|
|
@@ -307,6 +308,7 @@ When reviewing graph quality (triggered by user or quality improvement):
|
|
|
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
310
|
- **Budget exceeded** → if \`yg build-context\` exits with error (context package exceeds budget), warn user: "This node should be split." Do not proceed with implementation.
|
|
311
|
+
- **Budget warning (W005)** → if \`yg validate\` shows W005 (context near budget), the node needs splitting. NEVER delete knowledge from artifacts to reduce token count — knowledge destroyed is irrecoverable. Instead: identify a cohesive subset of the node's responsibilities, propose a split to the user, create child nodes, and redistribute artifacts. The total knowledge must be 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
|
|