Prerequisites
Before deploying:- Wrangler installed and authenticated (
ensemble wrangler loginorwrangler login) - Working ensemble running locally (
ensemble wrangler dev --local-protocol http) wrangler.tomlconfigured- Edgit initialized (
edgit init)
Quick Start
Deployment Configuration
Create aconductor.config.ts in your project root for type-safe deployment settings:
Configuration Options
Tag-Based Deployment
Conductor uses Git tags for deployment, integrated with Edgit’s component versioning system:v1.0.0) are immutable snapshots.
Environment tags (staging, production) are mutable pointers that can be moved between versions.
Why Tags?
- Instant rollbacks - Just move the environment tag back
- Audit trail - Git history shows who deployed what, when
- Hot-swappable components - Prompts and schemas update without rebuilds
- Multi-environment - Different versions in staging vs production
CI/CD with GitHub Actions
Copy the workflow templates to your project:.github/workflows/conductor.yaml:
Required Secrets
Add these to your repository secrets:CLOUDFLARE_API_TOKEN: Create at https://dash.cloudflare.com/profile/api-tokensCLOUDFLARE_ACCOUNT_ID: Find in Cloudflare dashboard
Validation Script
Createscripts/validate-refs.ts to ensure all component references exist before deployment:
Environment Setup
wrangler.toml
Configure environments in yourwrangler.toml:
Create KV Namespaces
wrangler.toml.
Component Sync to KV
When tags are pushed, the workflow syncs component content to Cloudflare KV:Deployment Workflow
Complete Flow
Tag Format
Tags follow the 4-level hierarchy:{prefix}/{type}/{name}/{slot}
- prefix:
components(hot-swappable) orlogic(requires rebuild) - type:
prompts,agents,schemas, etc. - name: Component name
- slot: Version (
v1.0.0) or environment (staging,production)
Rollback
Instant Rollback
View History
Troubleshooting
Component not found in production
Component not found in production
Problem: Component works locally but not in productionFix: Ensure the component is registered and synced
KV sync not working
KV sync not working
Problem: Components not updating in KVFix: Check KV namespace binding
Validation script failing
Validation script failing
Problem: CI fails with “unregistered component reference”Fix: Register the component before referencing it
Environment tag not triggering deploy
Environment tag not triggering deploy
Problem: Pushing environment tag doesn’t deployFix: Ensure tag format is correct and matches workflow triggers
Next Steps
Deployment Strategies
Progressive rollouts, canaries, blue-green
CI/CD Integration
Advanced automation with Edgit
Rollback & Time Travel
Emergency rollbacks and debugging
Configuring Cloudflare
Complete Cloudflare setup guide

