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
+71
View File
@@ -0,0 +1,71 @@
export { BaseAgent } from "./base.js";
export { OrchestratorAgent } from "./orchestrator.js";
export { PlannerAgent } from "./planner.js";
export { ExecutorAgent } from "./executor.js";
export { VerifierAgent } from "./verifier.js";
export { ResearcherAgent } from "./researcher.js";
export { ChallengerAgent } from "./challenger.js";
export { SecurityAuditorAgent } from "./security-auditor.js";
export { DebuggerAgent } from "./debugger.js";
export { DocWriterAgent } from "./doc-writer.js";
export { DocVerifierAgent } from "./doc-verifier.js";
export { CodeReviewerAgent } from "./code-reviewer.js";
export { IdeationAgent } from "./ideation-agent.js";
export { RoadmapperAgent } from "./roadmapper.js";
export { PlanCheckerAgent } from "./plan-checker.js";
export { ProjectResearcherAgent } from "./project-researcher.js";
export { ResearchSynthesizerAgent } from "./research-synthesizer.js";
export { SolutionWriterAgent } from "./solution-writer.js";
export { PhaseResearcherAgent } from "./phase-researcher.js";
import { AgentName } from "../types/config.js";
import { BaseAgent as BaseAgentType } from "./base.js";
import { OrchestratorAgent } from "./orchestrator.js";
import { PlannerAgent } from "./planner.js";
import { ExecutorAgent } from "./executor.js";
import { VerifierAgent } from "./verifier.js";
import { ResearcherAgent } from "./researcher.js";
import { ChallengerAgent } from "./challenger.js";
import { SecurityAuditorAgent } from "./security-auditor.js";
import { DebuggerAgent } from "./debugger.js";
import { DocWriterAgent } from "./doc-writer.js";
import { DocVerifierAgent } from "./doc-verifier.js";
import { CodeReviewerAgent } from "./code-reviewer.js";
import { IdeationAgent } from "./ideation-agent.js";
import { RoadmapperAgent } from "./roadmapper.js";
import { PlanCheckerAgent } from "./plan-checker.js";
import { ProjectResearcherAgent } from "./project-researcher.js";
import { ResearchSynthesizerAgent } from "./research-synthesizer.js";
import { SolutionWriterAgent } from "./solution-writer.js";
import { PhaseResearcherAgent } from "./phase-researcher.js";
const agentRegistry: Record<AgentName, () => BaseAgentType> = {
orchestrator: () => new OrchestratorAgent(),
planner: () => new PlannerAgent(),
executor: () => new ExecutorAgent(),
verifier: () => new VerifierAgent(),
researcher: () => new ResearcherAgent(),
"phase-researcher": () => new PhaseResearcherAgent(),
challenger: () => new ChallengerAgent(),
"security-auditor": () => new SecurityAuditorAgent(),
debugger: () => new DebuggerAgent(),
"doc-writer": () => new DocWriterAgent(),
"doc-verifier": () => new DocVerifierAgent(),
"code-reviewer": () => new CodeReviewerAgent(),
"ideation-agent": () => new IdeationAgent(),
roadmapper: () => new RoadmapperAgent(),
"plan-checker": () => new PlanCheckerAgent(),
"project-researcher": () => new ProjectResearcherAgent(),
"research-synthesizer": () => new ResearchSynthesizerAgent(),
"solution-writer": () => new SolutionWriterAgent(),
};
export function getAgent(name: AgentName): BaseAgentType {
const factory = agentRegistry[name];
if (!factory) throw new Error(`Unknown agent: ${name}`);
return factory();
}
export function getAvailableAgents(): AgentName[] {
return Object.keys(agentRegistry) as AgentName[];
}