gaia-framework 1.62.0 → 1.63.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/CLAUDE.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # GAIA Framework v1.62.0
2
+ # GAIA Framework v1.63.0
3
3
 
4
4
  This project uses the **GAIA** (Generative Agile Intelligence Architecture) framework — an AI agent framework for Claude Code that orchestrates software product development through 26 specialized agents, 65 workflows, and 8 shared skills.
5
5
 
package/README.md CHANGED
@@ -460,7 +460,7 @@ The single source of truth is `_gaia/_config/global.yaml`:
460
460
 
461
461
  ```yaml
462
462
  framework_name: "GAIA"
463
- framework_version: "1.62.0"
463
+ framework_version: "1.63.0"
464
464
  user_name: "your-name"
465
465
  project_name: "your-project"
466
466
  ```
@@ -3,7 +3,7 @@
3
3
  # After modifying this file, run /gaia-build-configs to regenerate resolved configs.
4
4
 
5
5
  framework_name: "GAIA"
6
- framework_version: "1.62.0"
6
+ framework_version: "1.63.0"
7
7
 
8
8
  # User settings
9
9
  user_name: "jlouage"
@@ -7,7 +7,7 @@ modules:
7
7
  path: "_gaia/core"
8
8
  type: built-in
9
9
  - name: lifecycle
10
- version: "1.39.0"
10
+ version: "1.40.0"
11
11
  path: "_gaia/lifecycle"
12
12
  type: built-in
13
13
  - name: dev
@@ -9,4 +9,4 @@ name,displayName,description,path,applicable_agents
9
9
  "security-basics","Security Basics","OWASP Top 10, input validation, secrets, CORS/CSRF","_gaia/dev/skills/security-basics.md","all-dev,architect,security,devops"
10
10
  "validation-patterns","Validation Patterns","Claim extraction, filesystem verification, cross-reference, severity classification, findings formatting","_gaia/lifecycle/skills/validation-patterns.md","validator"
11
11
  "ground-truth-management","Ground Truth Management","Entry structure, incremental/full refresh, conflict resolution, archival, token budget, brownfield extraction","_gaia/lifecycle/skills/ground-truth-management.md","validator"
12
- "memory-management","Memory Management","Session load/save, decision formatting, stale detection, deduplication, context summarization","_gaia/lifecycle/skills/memory-management.md","all"
12
+ "memory-management","Memory Management","Session load/save, decision formatting, stale detection, deduplication, context summarization, cross-ref loading, budget-monitoring","_gaia/lifecycle/skills/memory-management.md","all"
@@ -2,7 +2,7 @@
2
2
  inherits: "{project-root}/_gaia/_config/global.yaml"
3
3
 
4
4
  module_name: "lifecycle"
5
- module_version: "1.39.0"
5
+ module_version: "1.40.0"
6
6
 
7
7
  planning_artifacts: "{project-root}/docs/planning-artifacts"
8
8
  implementation_artifacts: "{project-root}/docs/implementation-artifacts"
@@ -2,7 +2,7 @@
2
2
  name: memory-management
3
3
  version: '1.0'
4
4
  applicable_agents: [all]
5
- description: 'Session load/save, decision formatting, stale detection, deduplication, context summarization'
5
+ description: 'Session load/save, decision formatting, stale detection, deduplication, context summarization, cross-ref loading, budget monitoring'
6
6
  ---
7
7
 
8
8
  <!-- SECTION: decision-formatting -->
@@ -320,3 +320,36 @@ After loading cross-references, record in the session checkpoint:
320
320
 
321
321
  This enables `/gaia-resume` to detect stale cross-references when resuming a session.
322
322
  <!-- END SECTION -->
323
+
324
+ <!-- SECTION: budget-monitoring -->
325
+ ## Budget Monitoring
326
+
327
+ Calculate and report token budget usage per agent sidecar. Reusable by any workflow that needs budget status.
328
+
329
+ **Input:**
330
+ - Agent sidecar file sizes (bytes) from filesystem scan
331
+ - Tier budgets from `_memory/config.yaml`: `tiers.tier_1.session_budget` (300K), `tiers.tier_2.session_budget` (100K)
332
+ - Per-agent ground truth budgets: `agents.{agent-id}.ground_truth_budget` (Tier 1 only)
333
+
334
+ **Token calculation:**
335
+ - Approximate tokens = file size in bytes / 4 (chars-per-token convention)
336
+ - Sum across all sidecar files per agent (decision-log.md + conversation-context.md + ground-truth.md)
337
+
338
+ **Threshold classification:**
339
+ - **OK:** below 80% of budget
340
+ - **warning:** at or above 80%, below 90%
341
+ - **critical:** at or above 90%, below 100%
342
+ - **over-budget:** at or above 100% — triggers archival recommendation
343
+
344
+ **Tier handling:**
345
+ - Tier 1: report session budget usage and ground truth budget usage separately
346
+ - Tier 2: report session budget usage only (no ground truth file)
347
+ - Tier 3 / untiered: report actual token count with "no budget enforced"
348
+
349
+ **Output format (Token Budget Table):**
350
+
351
+ | Agent | Tier | Files Scanned | Token Usage | Session Budget | GT Budget | % Used | Status |
352
+ |-------|------|---------------|-------------|----------------|-----------|--------|--------|
353
+
354
+ For Tier 3 and untiered agents, budget columns show "no budget enforced" with actual token count.
355
+ <!-- END SECTION -->
@@ -106,24 +106,14 @@
106
106
  </step>
107
107
 
108
108
  <step n="7" title="Token Budget Reporting">
109
- <action>For each agent sidecar, calculate token usage:
110
- - Sum file sizes in bytes across all sidecar files (from Step 2 inventory)
111
- - Convert to approximate token count: file size in bytes / 4 (chars-per-token approximation from config archival.token_approximation)
112
- - For Tier 1 agents: also calculate ground-truth.md token usage separately</action>
113
- <action>Compare against budgets from {memory_path}/config.yaml:
114
- - Tier 1 session budget: tiers.tier_1.session_budget (300K tokens)
115
- - Tier 1 ground truth budget: agents.{agent}.ground_truth_budget (per-agent: Val 200K, Theo 150K, Derek 100K, Nate 100K)
116
- - Tier 2 session budget: tiers.tier_2.session_budget (100K tokens)
117
- - Tier 3: no budget enforced
118
- - Untiered: no budget enforced</action>
119
- <action>Apply threshold status indicators per archival config:
120
- - OK: below 80% of budget
121
- - warning: at or above 80% but below 90%
122
- - critical: at or above 90% but below 100%
123
- - over-budget: at or above 100%</action>
124
- <action>Build Token Budget Table with columns:
125
- | Agent | Tier | Files Scanned | Token Usage | Session Budget | GT Budget | % Used | Status |
126
- For Tier 3 and untiered agents: budget column shows "no budget enforced" with actual token count reported</action>
109
+ <action>JIT-load the budget-monitoring section from {project-root}/_gaia/lifecycle/skills/memory-management.md
110
+ Load only the content between &lt;!-- SECTION: budget-monitoring --&gt; and &lt;!-- END SECTION --&gt; markers</action>
111
+ <action>Apply the budget-monitoring skill procedure using file sizes from Step 2 inventory and tier budgets from {memory_path}/config.yaml:
112
+ - Calculate token usage per agent (sum sidecar file sizes, convert via skill formula)
113
+ - Classify each agent by threshold status (OK / warning / critical / over-budget)
114
+ - For Tier 1 agents: also report ground truth budget usage separately
115
+ - For Tier 3 / untiered: report actual tokens with "no budget enforced"</action>
116
+ <action>Build Token Budget Table per the skill's output format</action>
127
117
  </step>
128
118
 
129
119
  <step n="8" title="Archival Recommendations">
package/gaia-install.sh CHANGED
@@ -6,7 +6,7 @@ set -euo pipefail
6
6
  # Installs, updates, validates, and reports on GAIA installations.
7
7
  # ─────────────────────────────────────────────────────────────────────────────
8
8
 
9
- readonly VERSION="1.62.0"
9
+ readonly VERSION="1.63.0"
10
10
  readonly GITHUB_REPO="https://github.com/jlouage/Gaia-framework.git"
11
11
  readonly MANIFEST_REL="_gaia/_config/manifest.yaml"
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaia-framework",
3
- "version": "1.62.0",
3
+ "version": "1.63.0",
4
4
  "description": "GAIA — Generative Agile Intelligence Architecture installer",
5
5
  "bin": {
6
6
  "gaia-framework": "./bin/gaia-framework.js"