Skip to content

fix: replace code_analysis_deliverable with pre_recon_deliverable (#258)#259

Open
TheNotoBarth wants to merge 1 commit intoKeygraphHQ:mainfrom
TheNotoBarth:main
Open

fix: replace code_analysis_deliverable with pre_recon_deliverable (#258)#259
TheNotoBarth wants to merge 1 commit intoKeygraphHQ:mainfrom
TheNotoBarth:main

Conversation

@TheNotoBarth
Copy link
Copy Markdown

I modified the output file name of pre-recon-agent to solve this issue(#258

Copilot AI review requested due to automatic review settings March 27, 2026 06:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a workflow-breaking filename mismatch by renaming the pre-recon phase deliverable output to the filename expected by downstream agents/consumers (Issue #258).

Changes:

  • Updated the CODE_ANALYSIS deliverable filename mapping to pre_recon_deliverable.md.
  • Updated the pre-recon agent’s configured deliverable filename and validator to use pre_recon_deliverable.md.
  • Updated the pre-recon prompt instructions to write/save deliverables/pre_recon_deliverable.md.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
apps/worker/src/types/deliverables.ts Remaps DeliverableType.CODE_ANALYSIS to the downstream-expected pre_recon_deliverable.md.
apps/worker/src/session-manager.ts Aligns pre-recon agent configuration + validator checks with the new deliverable filename.
apps/worker/prompts/pre-recon-code.txt Updates prompt instructions so the agent writes/saves the correct deliverable filename.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 180 to 183
// Pre-reconnaissance agent - validates the code analysis deliverable created by the agent
'pre-recon': async (sourceDir: string): Promise<boolean> => {
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);
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pre-recon validator now checks for pre_recon_deliverable.md, but the local variable name (codeAnalysisFile) and the preceding comment still refer to “code analysis deliverable”. Renaming the variable/comment to match the new deliverable filename would avoid confusion when debugging validation failures.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants