Add abbreviated mode to investigation-report format#191
Merged
Alan-Jowett merged 3 commits intomicrosoft:mainfrom Apr 6, 2026
Merged
Add abbreviated mode to investigation-report format#191Alan-Jowett merged 3 commits intomicrosoft:mainfrom
Alan-Jowett merged 3 commits intomicrosoft:mainfrom
Conversation
…#112) Add conditional abbreviated format for routine, low-severity audits: - Triggers when finding count <= 5 AND no Critical/High findings - Abbreviated format: Executive Summary, Findings, Remediation Plan, Coverage (4 sections vs. 9) - Saves ~500-1000 response tokens per low-finding audit - Auto-escalates to full format if any finding is Critical/High Also mark section 9 (Revision History) as optional — omit for single-pass automated audits. Full format unchanged for incident response, security audits, and any investigation with >5 findings or Critical/High severity. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds conditional guidance to the investigation-report format so routine, low-severity audits can use a shorter report structure (reducing prompt/response overhead) while preserving the existing full format for higher-risk investigations.
Changes:
- Introduces an abbreviated format path (Executive Summary, Findings, Remediation Plan, Coverage) when there are ≤5 findings and none are Critical/High.
- Adds auto-escalation guidance to switch back to the full format if severity increases.
- Marks Revision History as optional for single-pass automated audits.
- Resolve MUST/optional contradiction: sections 1-8 required, section 9 included only for versioned reports - Remove '(optional)' from section 9 heading to prevent it leaking into generated report output; express optionality in instructions - Add zero-findings rule: state 'None identified' in Findings and 'No remediation required' in Remediation Plan; Coverage still required Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add explicit 'enumerate findings first, then choose format' step to avoid circular instructions (can't know finding count before analysis) - Add compatibility escape: if invoking template requires full 9-section structure, honor that over abbreviation rules - Dismiss §9 '(Optional)' heading request — contradicts previous round's resolved comment that removed it to prevent leaking into generated output Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #112
Summary
Add a conditional abbreviated format to
investigation-reportfor routine, low-severity audits. Saves ~500-1000 response tokens per audit by omitting sections that add overhead without analytical value.Changes
Evidence (from issue)
Session profiling of three PromptKit audit prompts found ~500 response tokens (~15-25% of response) spent on formulaic sections (Problem Statement, Prevention, Revision History) in audits with only 3 low-severity findings.