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:
@@ -0,0 +1,51 @@
|
||||
export type EscalationType =
|
||||
| "irreversible_action"
|
||||
| "verification_failure"
|
||||
| "low_confidence_decision"
|
||||
| "security_escalation"
|
||||
| "specification_ambiguity";
|
||||
|
||||
export type EscalationResolution =
|
||||
| "approved"
|
||||
| "rejected"
|
||||
| "modified"
|
||||
| "pending"
|
||||
| "timeout_auto_proceed";
|
||||
|
||||
export interface EscalationOption {
|
||||
id: string;
|
||||
label: string;
|
||||
description: string;
|
||||
recommended: boolean;
|
||||
}
|
||||
|
||||
export interface Escalation {
|
||||
id: string;
|
||||
timestamp: string;
|
||||
type: EscalationType;
|
||||
phase: string;
|
||||
plan?: string;
|
||||
task?: string;
|
||||
description: string;
|
||||
context: string;
|
||||
options: EscalationOption[];
|
||||
default_option_id: string;
|
||||
resolution: EscalationResolution;
|
||||
resolved_at?: string;
|
||||
resolution_detail?: string;
|
||||
audit_file: string;
|
||||
}
|
||||
|
||||
export interface EscalationResult {
|
||||
escalation: Escalation;
|
||||
chosen_option_id: string;
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
export const ESCALATION_TYPES: Record<EscalationType, string> = {
|
||||
irreversible_action: "Irreversible Action",
|
||||
verification_failure: "Verification Failure",
|
||||
low_confidence_decision: "Low Confidence Decision",
|
||||
security_escalation: "Security Escalation",
|
||||
specification_ambiguity: "Specification Ambiguity",
|
||||
};
|
||||
Reference in New Issue
Block a user