@chrisdudek/yg 2.4.1 → 2.5.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.
@@ -32,4 +32,5 @@ quality:
32
32
  context_budget:
33
33
  warning: 10000
34
34
  error: 20000
35
+ own_warning: 5000
35
36
  `;
@@ -307,8 +307,8 @@ When reviewing graph quality (triggered by user or quality improvement):
307
307
 
308
308
  - **\`yg\` not found** → inform user: "yg CLI is not installed or not in PATH." Stop.
309
309
  - **Unfixable validate errors** → if not resolved after 3 attempts, stop and report to user. Do not loop.
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
+ - **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.
312
312
  - **Corrupted \`.yggdrasil/\` files** → report to user. Do not attempt repair.
313
313
  - **Incremental sync** → run \`yg drift-sync\` every 3-5 source files during multi-file tasks. Do not defer to end.`;
314
314
 
@@ -400,7 +400,7 @@ When code anchors (\`anchors\` in an aspect entry in \`yg-node.yaml\`) are prese
400
400
 
401
401
  - [ ] 1. Read \`schemas/yg-flow.yaml\`
402
402
  - [ ] 2. Create \`flows/<name>/\` directory
403
- - [ ] 3. Write \`yg-flow.yaml\` — declare participants and flow-level aspects
403
+ - [ ] 3. Write \`yg-flow.yaml\` — declare nodes (participant list) and flow-level aspects
404
404
  - [ ] 4. Write \`description.md\` with required sections: Business context, Trigger, Goal, Participants, Paths (at least Happy path), Invariants across all paths
405
405
  - [ ] 5. \`yg validate\`
406
406
 
@@ -453,7 +453,7 @@ yg drift-sync --node <path> [--recursive] | --all
453
453
  | Information specific to this node | Local node artifact (check \`yg-config.yaml artifacts\` for types) |
454
454
  | Rule that applies to many nodes | Aspect (content \`.md\` files in \`aspects/<id>/\`) |
455
455
  | Architectural invariant for a node type | Required aspect in \`yg-config.yaml node_types\` |
456
- | Business process participation | Flow (\`yg-flow.yaml participants\`) |
456
+ | Business process participation | Flow (\`yg-flow.yaml nodes\`) |
457
457
  | Process-level requirement | Flow \`aspects\` + aspect directory |
458
458
  | Context shared across a domain | Parent node artifact |
459
459
  | Technology stack | Node artifact at appropriate hierarchy level |
@@ -3,7 +3,7 @@
3
3
  # plus description.md with required sections (see rules).
4
4
 
5
5
  name: EndToEndProcessName # required — display name
6
- nodes: # required, non-empty — participant nodes
6
+ nodes: # required, non-empty — participant nodes (alias: participants)
7
7
  - orders/order-service # paths relative to model/
8
8
  - payments/payment-service
9
9
  - inventory/inventory-service
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrisdudek/yg",
3
- "version": "2.4.1",
3
+ "version": "2.5.1",
4
4
  "description": "Make your repository self-aware. Persistent semantic memory and deterministic context assembly for AI agents.",
5
5
  "type": "module",
6
6
  "bin": {