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 +1 -1
- package/README.md +1 -1
- package/_gaia/_config/global.yaml +1 -1
- package/_gaia/_config/manifest.yaml +1 -1
- package/_gaia/_config/skill-manifest.csv +1 -1
- package/_gaia/lifecycle/config.yaml +1 -1
- package/_gaia/lifecycle/skills/memory-management.md +34 -1
- package/_gaia/lifecycle/workflows/anytime/memory-hygiene/instructions.xml +8 -18
- package/gaia-install.sh +1 -1
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
# GAIA Framework v1.
|
|
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
|
@@ -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.
|
|
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>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
- Tier 1
|
|
115
|
-
- Tier
|
|
116
|
-
|
|
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 <!-- SECTION: budget-monitoring --> and <!-- END SECTION --> 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.
|
|
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
|
|