Euxis Centralized Versioning System¶
This document describes how version management works across the Euxis system, ensuring consistency and eliminating hardcoded version references.
System Components¶
1. Registry.json (Primary Source)¶
File:
data/agents/registry.jsonField:
protocol_versionPurpose: Authoritative version source used by all workflows and documentation
2. CI/CD Workflows (Dynamic Usage)¶
All GitHub workflows now extract version dynamically:
- name: Extract version from registry
run: |
if [ -n "${{ github.event.inputs.version }}" ]; then
echo "Using override version: ${{ github.event.inputs.version }}"
echo "EUXIS_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
else
echo "Extracting version from data/agents/registry.json..."
EUXIS_VERSION=$(python3 -c "import json; print(json.load(open('data/agents/registry.json'))['protocol_version'])")
echo "Found version: $EUXIS_VERSION"
echo "EUXIS_VERSION=$EUXIS_VERSION" >> $GITHUB_ENV
fi
3. Agent Prompts (YAML Frontmatter)¶
All agent prompts include version in their YAML frontmatter:
---
agent_id: example
version: "0.0.3"
---
Version Bump Process¶
When releasing a new version:
Update the authoritative source:
# Edit data/agents/registry.json vim data/agents/registry.json # Update "protocol_version": "X.Y.Z"
Synchronize all references: Update agent prompts and documentation to match the new version.
Commit changes:
git add -A git commit -m "version: bump to X.Y.Z"
CI/CD Integration¶
Workflow Version Override¶
All workflows support manual version override:
workflow_dispatch:
inputs:
version:
description: 'Override version (leave empty to use data/agents/registry.json)'
required: false
default: ''
Environment Variable Usage¶
Workflows expose version as $EUXIS_VERSION:
echo "Building Euxis v$EUXIS_VERSION..."
echo "=== Euxis v$EUXIS_VERSION Platform Report ===" > report.md
Benefits¶
✅ Single Source of Truth¶
No version conflicts between files
One place to update for new releases
Automatic consistency across all components
✅ Eliminates Hardcoding¶
No more hardcoded version strings scattered across workflow files
Dynamic version extraction from authoritative source
Workflow flexibility with manual override capability
✅ Validation & Automation¶
Dynamic consistency checking via CI gates
CI/CD integration for version validation
✅ Audit Trail¶
Clear version history in
data/agents/registry.jsonCompliance with versioning protocol
Troubleshooting¶
Version Mismatch Detected¶
Verify
data/agents/registry.jsonhas the correctprotocol_version.Sync version references in prompts and files.
Workflow Using Wrong Version¶
Verify
data/agents/registry.jsonhas correctprotocol_versionEnsure workflow has version extraction step
Check that
$EUXIS_VERSIONis used instead of hardcoded values
Manual Override Not Working¶
Verify workflow input is properly defined
Check that environment variable logic handles override correctly
Ensure subsequent steps use
$EUXIS_VERSIONenvironment variable
Migration Notes¶
Before (Hardcoded)¶
# BAD: Hardcoded version
echo "Euxis v0.0.3 Platform Report" > report.md
default: 'v0.0.3'
After (Dynamic)¶
# GOOD: Dynamic version from registry
echo "Euxis v$EUXIS_VERSION Platform Report" > report.md
EUXIS_VERSION=$(python3 -c "import json; print(json.load(open('data/agents/registry.json'))['protocol_version'])")
This system ensures version consistency across the entire Euxis codebase while providing flexibility for testing and development workflows.