Files
ci/src/agents/phase-researcher.ts
T
CI 9cf5c000d9 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/)
2026-05-28 23:24:42 +00:00

19 lines
595 B
TypeScript

import { BaseAgent, AgentContext, AgentResult } from "./base.js";
export class PhaseResearcherAgent extends BaseAgent {
readonly name = "phase-researcher";
readonly description = "Researches how to implement a specific phase well.";
async execute(context: AgentContext): Promise<AgentResult> {
this.log("Researching phase implementation...");
const start = Date.now();
return {
success: true,
output: "Phase research complete",
artifacts_created: ["RESEARCH.md"],
decisions: 0,
escalations: 0,
duration_ms: Date.now() - start,
};
}
}