VOLITION-CI // SYNTHESIS ENGINE v0.4.2
VolitionCI
VolitionCI0%

Autonomous DevSecOps & Cloud Infrastructure Synthesis Studio

PIPELINE · TERRAFORM · KUBERNETES · DOCKER
01Mounting YAML AST & HCL2 structural verifiers
BOOT
02Connecting 4-provider LLM failover mesh
BOOT
03Loading multi-target synthesis blueprints
BOOT
04Activating zero-trust DevSecOps workspace
BOOT
Deterministic Self-Healing VerificationDesigned by Omar Hazem · meetomarhazem.com
Platform Documentation

VolitionCI Architecture & Reference

Complete engineering documentation covering repository ingestion, ReAct modular code synthesis, deterministic YAML and HCL verification, provider failover, and SSE APIs.

1. Overview & Quickstart

VolitionCI is an autonomous DevSecOps and Infrastructure-as-Code generation engine. Rather than relying on brittle single-prompt completions, VolitionCI separates infrastructure authoring into four deterministic stages: Context Ingestion, Architectural Interrogation, Modular ReAct Synthesis, and Self-Healing Verification.

CI/CD Pipelines

GitHub Actions, GitLab CI, Bitbucket Pipelines, CircleCI, and Jenkinsfile specifications with SAST, SBOM, and OIDC deployment stages.

Terraform HCL

Modular cloud topologies across AWS, Google Cloud, Azure, and DigitalOcean with encrypted state backends and isolated VPC networking.

Kubernetes Manifests

Multi-document Deployment, Service, Ingress, HPA v2, and NetworkPolicy manifests calibrated for EKS, GKE, AKS, or vanilla clusters.

Docker Compose

Polyglot local and swarm container topologies featuring healthcheck dependency graphs, internal networks, and named volumes.

2. Ingestion Workflows

Step 1 of the Studio supports three distinct entry points depending on whether you are starting from greenfield requirements or an existing repository:

A. Consultative AI Architect

Describe your target architecture in natural language. On Turn 1, the architect extracts an initial configuration draft, flags ambiguities (such as state locking, multi-AZ database placement, or migration hooks), asks 1-2 targeted clarifying questions, and proposes ecosystem tooling you can toggle on or off.

B. GitHub Repository Tree Scanner

Queries the GitHub Git Trees REST API (`recursive=true`) via Octokit to index build manifests (`package.json`, `pom.xml`, `go.mod`, `Cargo.toml`, `requirements.txt`), existing `Dockerfile` specs, Helm charts, and `.tf` files without cloning proprietary source code onto disk.

C. Manual Stack Composer

Card-driven selector curated per cloud provider and cluster runtime for rapid, deterministic stack assembly without conversational turns.

3. ReAct Planner-Worker Synthesis Engine

Large cloud architectures regularly exceed single-call output token budgets on high-speed inference providers, causing truncated YAML/HCL files. VolitionCI solves this in `/api/synthesize` via a three-phase streaming architecture:

  1. Phase 1 · Modular Infrastructure PlannerEvaluates the repository context and interrogation answers to decompose the target into 2 to 5 ordered modules — for example ["Provider Settings", "Networking", "IAM", "Compute", "Database"].
  2. Phase 2 · Context-Chaining Worker LoopIterates sequentially across planned modules. Each Worker invocation receives all previously verified code so resource references (such as aws_vpc.core.id or shared pipeline job names) remain consistent across module boundaries.
  3. Phase 3 · Semantic Completeness ValidatorCross-checks the assembled artifact against every user-selected stack component and interrogation answer, flagging any omitted service (`MISSING: <component>`) prior to finalizing delivery.

4. Deterministic Validation & Self-Healing Gate

Every synthesized module is concatenated with prior output and validated before the Worker advances:

  • YAML Multi-Document Parsing: Validated through YAML.loadAll() (`js-yaml`), ensuring both single-document CI pipelines and `---`-delimited Kubernetes manifests parse without indentation or anchor errors.
  • HCL Structural & Root-Block Audit: Tracks string-literal and escape-aware brace depth while asserting recognizable top-level Terraform declarations (`terraform`, `provider`, `resource`, `variable`, `module`, `output`, `data`).
  • Automated 3-Attempt Remediation: When a linter error occurs, the exact diagnostic stack trace is fed back into a dedicated healing prompt for up to 3 automated repair cycles.

5. Zero-Trust Security Baselines

Default Hardening Controls Applied Across Archetypes
Keyless Cloud OIDCPrefers short-lived federated JWT credentials (`id-token: write`) over static IAM access keys in CI workflows.
PodSecurity RestrictedEnforces `runAsNonRoot: true`, `allowPrivilegeEscalation: false`, and dropped Linux capabilities on Kubernetes workloads.
Encrypted Remote StateConfigures KMS encryption and state locking (`dynamodb_table` / GCS locks) on Terraform backends.
Supply-Chain AttestationIntegrates Trivy CVE gates, Semgrep SAST, Gitleaks secret audits, Syft SBOMs, and Sigstore Cosign signing.

6. Multi-Provider LLM Routing

`runModelChain` executes each role against an ordered provider list, emitting live `usage` SSE telemetry tagged `(Primary)` or `(Fallback N)`:

PLANNER_CHAIN
  1. gemini-3.6-flash
  2. command-r-plus-08-2024
  3. openai/gpt-oss-20b
WORKER_CHAIN
  1. gemini-3.6-flash
  2. codestral-latest
  3. openai/gpt-oss-120b
VALIDATOR_CHAIN
  1. gemini-3.6-flash
  2. codestral-latest
  3. openai/gpt-oss-20b

7. Self-Hosting & Environment Configuration

To run VolitionCI locally or deploy to Vercel, configure the following keys in `.env.local` or your project secret store:

.env.local
# .env.local
GEMINI_API_KEY="your_google_gemini_api_key"
GROQ_API_KEY="your_groq_api_key"
MISTRAL_API_KEY="your_mistral_codestral_key"
COHERE_API_KEY="your_cohere_api_key"

# Optional: Elevates GitHub REST API rate limits during repository scanning
GITHUB_TOKEN="ghp_optional_personal_access_token"

8. REST & SSE API Reference

POST/api/analyze

Inspects a GitHub repository URL or manual stack array and returns detected languages plus architectural interrogation questions.

Request Example
curl -X POST https://volition-ci.vercel.app/api/analyze \
  -H "Content-Type: application/json" \
  -d '{
    "repoUrl": "https://github.com/Zomma2/VolitionCI",
    "archetype": "pipeline",
    "targetPlatform": "GitHub Actions"
  }'
POST (SSE Stream)/api/synthesize

Streams Server-Sent Events (`status`, `usage`, `complete`, `error`) as the Planner, Worker loop, and Semantic Validator execute.

Server-Sent Event Stream
event: status
data: {"step":"planning"}

event: usage
data: {"model":"gemini-3.6-flash","role":"Planner (Primary)","usage":{"prompt_tokens":312,"completion_tokens":84,"total_tokens":396}}

event: status
data: {"step":"synthesizing_module","module":"Networking","current":1,"total":4}

event: status
data: {"step":"validating"}

event: status
data: {"step":"semantic_validation"}

event: complete
data: {"code":"terraform {\n  required_version = \">= 1.7.0\"\n..."}