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
+34
View File
@@ -0,0 +1,34 @@
{
"name": "@continuous-intelligence/ci",
"version": "0.1.0",
"description": "Fully autonomous AI-driven software engineering harness - Continuous Intelligence",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"ci": "./dist/cli/index.js"
},
"scripts": {
"build": "tsc",
"dev": "ts-node src/cli.ts",
"typecheck": "tsc --noEmit",
"test": "jest",
"prepublishOnly": "npm run build"
},
"keywords": ["ci", "autonomous", "ai", "software-engineering", "agent"],
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"commander": "^12.1.0",
"zod": "^3.23.0"
},
"devDependencies": {
"typescript": "^5.5.0",
"@types/node": "^20.14.0",
"ts-node": "^10.9.0",
"jest": "^29.7.0",
"ts-jest": "^29.2.0",
"@types/jest": "^29.5.0"
}
}