Orchestrata Ultimate › Plans › execution-plan-amendment

Amendment to Execution Plan: Automated CI/CD Integration

Source: plans/execution-plan-amendment.md at 8a2cb42ad · last changed 2026-07-27 · first committed 2026-04-11 · 148 lines.

Prose pending.

Plan text

Amendment to Execution Plan: Automated CI/CD Integration

Overview

This amendment adds fully automated CI/CD capabilities to the existing execution plan by integrating GitLab deployment into the phased approach.

New Phase 0: CI/CD Infrastructure Setup

Prerequisites

Step A1: Create GitLab Infrastructure Directory

mkdir -p /home/mohamed/workspace/orchestrata-ultimate/incus/gitlab

Step A2: Deploy GitLab Container (Docker-based approach)

# Launch GitLab container with proper resources
incus launch images:ubuntu/22.04 gitlab-server --storage default --config limits.cpu=4 --config limits.memory=8GB

# Attach network
incus network attach incusbr0 gitlab-server eth0

# Configure static IP (optional but recommended)
incus config device set gitlab-server eth0 ipv4.address 10.222.9.200

Step A3: Deploy GitLab Using Docker (Reliable Method)

# Use the docker-deploy script
./incus/gitlab/docker-deploy.sh gitlab-server

# This will:
# 1. Install Docker and Docker Compose in the container
# 2. Create a docker-compose.yml for GitLab
# 3. Start GitLab with proper configuration
# 4. Wait for services to be ready

Step A4: Configure GitLab Runner

# Install GitLab Runner (after GitLab is running)
incus exec gitlab-server -- curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | incus exec gitlab-server -- bash
incus exec gitlab-server -- apt-get install -y gitlab-runner

# Register runner for orchestrata-ultimate project
# This will be done after project creation

Integration with Existing Phases

Modified Phase 0: Foundation (now Phase 1)

All existing Phase 0 steps remain unchanged but are renumbered as Phase 1.

Modified Tier 1: Agents That Talk and Think (now Tier 2)

All existing Tier 1 steps remain unchanged but are renumbered as Tier 2.

Modified Tier 2: Coordination and Governance (now Tier 3)

All existing Tier 2 steps remain unchanged but are renumbered as Tier 3.

Modified Tier 3: Knowledge and Memory (now Tier 4)

All existing Tier 3 steps remain unchanged but are renumbered as Tier 4.

Modified Tier 4: External Surface (now Tier 5)

All existing Tier 4 steps remain unchanged but are renumbered as Tier 5.

New Tier 1: CI/CD Pipeline Setup

Sub-phase 1.1: Repository Configuration

  1. Create orchestrata-ultimate project in GitLab
  2. Configure GitLab CI/CD variables (LLM keys, environment configs)
  3. Set up protected branches and merge request rules
  4. Configure GitLab Pages for documentation

Sub-phase 1.2: Pipeline Definition

  1. Create .gitlab-ci.yml with multi-stage pipeline:
    • build: Install dependencies, run static analysis
    • test: Run unit tests with coverage
    • integration: Run integration tests with Incus containers
    • deploy: Deploy to staging environment
    • release: Create release tags and artifacts

Sub-phase 1.3: Automated Testing Infrastructure

  1. Set up Incus test containers for each phase
  2. Configure GitLab Runner with Incus access
  3. Create test environment templates
  4. Implement parallel test execution

Sub-phase 1.4: Monitoring and Notification

  1. Configure pipeline failure notifications
  2. Set up performance monitoring
  3. Implement automated rollback on failure
  4. Configure security scanning

Benefits of This Amendment

1. Fully Automated Deployment

2. Integrated Testing

3. Production-Ready Pipeline

4. Scalable Infrastructure

Implementation Commands

Quick Start (Phases 0-A1 through 0-A3):

# Execute all CI/CD setup steps
./incus/gitlab/launch.sh gitlab-server
./incus/gitlab/docker-deploy.sh gitlab-server

Verification:

# Check GitLab status
incus exec gitlab-server -- docker ps

# Access GitLab UI
echo "GitLab available at: http://10.222.9.200:8080"

# Check runner status
incus exec gitlab-server -- gitlab-runner status

Next Steps

After CI/CD infrastructure is deployed:

  1. Proceed with original Phase 0 (Foundation) as Phase 1
  2. Configure GitLab project and CI/CD pipeline
  3. Integrate automated testing with Incus containers
  4. Deploy each tier through the CI/CD pipeline

This amendment ensures that the entire porting process is fully automated, reproducible, and production-ready.