feat: implement CI (Continuous Intelligence) autonomous engineering harness

Implements the full PRD for CI - a fully autonomous AI-driven software
engineering harness derived from Learnship's architecture.

Core components:
- CI Orchestrator agent with autonomous pipeline (SPECIFY → CLARIFY →
  RESEARCH → PLAN → EXECUTE → VERIFY → COMPLETE)
- Decision Engine with confidence thresholds (high/medium/low)
- Clarify Phase with question budget and default acceptance
- Escalation Protocol with timeout auto-proceed
- Audit Trail system (.ci/audit/) for post-hoc review
- Error Recovery with retry, plan revision, and rollback

18 agents (all Learnship agents + Orchestrator):
- Autonomous behavioral modifications per PRD §7.1
- Agent registry with factory pattern

11 CLI commands:
- ci init, ci run, ci quick, ci debug, ci verify
- ci review, ci status, ci audit, ci clarify
- ci rollback, ci ship

4-layer verification system:
- Structural, Behavioral, Security, Code Quality

3 autonomy levels: full, supervised, guided
Compatible with Learnship artifact schemas (.planning/)
This commit is contained in:
CI
2026-05-28 23:24:42 +00:00
commit 9cf5c000d9
57 changed files with 7336 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
export { OrchestratorAgent } from "./agents/orchestrator.js";
export { DecisionEngine } from "./core/decision-engine.js";
export { EscalationProtocol } from "./core/escalation.js";
export { ClarifyPhase } from "./core/clarify.js";
export { ArtifactManager } from "./core/artifacts.js";
export { ErrorRecovery } from "./core/error-recovery.js";
export { VerificationPipeline } from "./verification/index.js";
export { getAgent, getAvailableAgents } from "./agents/index.js";
export { initCI, loadConfig, saveConfig, isCIInitialized } from "./core/config.js";
export { logDecision, logEscalation, readAudit, getAuditSummary } from "./core/audit.js";
export type { CIConfig, AutonomyLevel, ModelProfile } from "./types/config.js";
export type { Decision, DecisionCategory } from "./types/decisions.js";
export type { Escalation, EscalationType } from "./types/escalation.js";
export type { PipelineState, PhaseResult, OrchestratorResult } from "./types/pipeline.js";
export type { ClarifyQuestion, ClarifyResult } from "./types/clarify.js";
export type { Specification } from "./types/specification.js";
export type { AgentContext, AgentResult } from "./agents/base.js";
export type { LayeredVerificationResult } from "./verification/index.js";