diff --git a/apps/worker/prompts/pre-recon-code.txt b/apps/worker/prompts/pre-recon-code.txt index 981b7809..e4e05979 100644 --- a/apps/worker/prompts/pre-recon-code.txt +++ b/apps/worker/prompts/pre-recon-code.txt @@ -32,7 +32,7 @@ Read `.gitignore` and run `git ls-files --others --ignored --exclude-standard -- **Phase Sequence:** **PRE-RECON (You)** → RECON → VULN ANALYSIS (5 agents) → EXPLOITATION (5 agents) → REPORTING **Your Input:** External scan results from pre-recon tools (nmap, subfinder, whatweb) -**Your Output:** `deliverables/code_analysis_deliverable.md` (feeds all subsequent analysis phases) +**Your Output:** `deliverables/pre_recon_deliverable.md` (feeds all subsequent analysis phases) **Shared Intelligence:** You create the foundational intelligence baseline that all other agents depend on **WHAT HAPPENED BEFORE YOU:** @@ -132,10 +132,10 @@ After Phase 1 completes, launch all three vulnerability-focused agents in parall - Copy all discovered schema files to `outputs/schemas/` with descriptive names - Include schema locations in your attack surface analysis - **CHUNKED WRITING (MANDATORY):** - 1. Use the **Write** tool to create `deliverables/code_analysis_deliverable.md` with the title and first major section + 1. Use the **Write** tool to create `deliverables/pre_recon_deliverable.md` with the title and first major section 2. Use the **Edit** tool to append each remaining section — match the last few lines of the file, then replace with those lines plus the new section content 3. Repeat step 2 for all remaining sections - 4. Run `save-deliverable` with `--type CODE_ANALYSIS --file-path "deliverables/code_analysis_deliverable.md"` + 4. Run `save-deliverable` with `--type CODE_ANALYSIS --file-path "deliverables/pre_recon_deliverable.md"` - **WARNING:** Do NOT write the entire report in a single tool call — exceeds 32K output token limit. Split into multiple Write/Edit operations. **EXECUTION PATTERN:** @@ -394,7 +394,7 @@ A component is **out-of-scope** if it **cannot** be invoked through the running - Phase 3: Synthesis and report generation completed 2. **Deliverable Generation:** The following files must be successfully created: - - `deliverables/code_analysis_deliverable.md` (via `save-deliverable` with `--file-path`, not inline `--content`) + - `deliverables/pre_recon_deliverable.md` (via `save-deliverable` with `--file-path`, not inline `--content`) - `outputs/schemas/` directory with all discovered schema files copied (if any schemas found) 3. **TodoWrite Completion:** All tasks in your todo list must be marked as completed diff --git a/apps/worker/src/session-manager.ts b/apps/worker/src/session-manager.ts index 817397af..388bb607 100644 --- a/apps/worker/src/session-manager.ts +++ b/apps/worker/src/session-manager.ts @@ -16,7 +16,7 @@ export const AGENTS: Readonly> = Object.freez displayName: 'Pre-recon agent', prerequisites: [], promptTemplate: 'pre-recon-code', - deliverableFilename: 'code_analysis_deliverable.md', + deliverableFilename: 'pre_recon_deliverable.md', modelTier: 'large', }, recon: { @@ -179,7 +179,7 @@ export const PLAYWRIGHT_SESSION_MAPPING: Record = Obj export const AGENT_VALIDATORS: Record = Object.freeze({ // Pre-reconnaissance agent - validates the code analysis deliverable created by the agent 'pre-recon': async (sourceDir: string): Promise => { - const codeAnalysisFile = path.join(sourceDir, 'deliverables', 'code_analysis_deliverable.md'); + const codeAnalysisFile = path.join(sourceDir, 'deliverables', 'pre_recon_deliverable.md'); return await fs.pathExists(codeAnalysisFile); }, diff --git a/apps/worker/src/types/deliverables.ts b/apps/worker/src/types/deliverables.ts index 992af599..828bdbb0 100644 --- a/apps/worker/src/types/deliverables.ts +++ b/apps/worker/src/types/deliverables.ts @@ -45,7 +45,7 @@ export enum DeliverableType { * Hard-coded filename mappings from agent prompts */ export const DELIVERABLE_FILENAMES: Record = { - [DeliverableType.CODE_ANALYSIS]: 'code_analysis_deliverable.md', + [DeliverableType.CODE_ANALYSIS]: 'pre_recon_deliverable.md', [DeliverableType.RECON]: 'recon_deliverable.md', [DeliverableType.INJECTION_ANALYSIS]: 'injection_analysis_deliverable.md', [DeliverableType.INJECTION_QUEUE]: 'injection_exploitation_queue.json',