@in-the-loop-labs/pair-review 5.2.2 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +26 -16
  2. package/package.json +1 -1
  3. package/plugin/.claude-plugin/plugin.json +1 -1
  4. package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
  5. package/plugin-code-critic/skills/analyze/references/level1-thorough.md +52 -121
  6. package/plugin-code-critic/skills/analyze/references/level2-thorough.md +49 -113
  7. package/plugin-code-critic/skills/analyze/references/level3-thorough.md +46 -195
  8. package/plugin-code-critic/skills/analyze/references/orchestration-thorough.md +56 -112
  9. package/plugin-pair-loop/.claude-plugin/plugin.json +1 -1
  10. package/public/css/analysis-config.css +29 -0
  11. package/public/css/pr.css +208 -0
  12. package/public/js/components/AIPanel.js +14 -9
  13. package/public/js/components/ChatPanel.js +790 -54
  14. package/public/js/components/ConfirmDialog.js +70 -2
  15. package/public/js/modules/pierre-bridge.js +58 -97
  16. package/public/js/modules/suggestion-manager.js +9 -121
  17. package/public/js/pr.js +15 -28
  18. package/public/js/utils/scroll-into-view.js +18 -4
  19. package/src/ai/analyzer.js +31 -6
  20. package/src/ai/antigravity-provider.js +62 -42
  21. package/src/ai/claude-provider.js +18 -20
  22. package/src/ai/codex-provider.js +76 -81
  23. package/src/ai/executable-provider.js +3 -1
  24. package/src/ai/index.js +2 -0
  25. package/src/ai/muse-provider.js +84 -52
  26. package/src/ai/omp-provider.js +27 -12
  27. package/src/ai/pi-provider.js +12 -6
  28. package/src/ai/prompts/baseline/consolidation/thorough.js +56 -43
  29. package/src/ai/prompts/baseline/level1/thorough.js +76 -138
  30. package/src/ai/prompts/baseline/level2/thorough.js +76 -129
  31. package/src/ai/prompts/baseline/level3/thorough.js +67 -212
  32. package/src/ai/prompts/baseline/orchestration/thorough.js +79 -130
  33. package/src/ai/prompts/render-for-skill.js +5 -0
  34. package/src/ai/prompts/shared/adversarial-verification.js +68 -0
  35. package/src/ai/provider.js +61 -2
  36. package/src/ai/stream-parser.js +22 -1
  37. package/src/chat/acp-bridge.js +11 -0
  38. package/src/chat/chat-models.js +348 -0
  39. package/src/chat/chat-providers.js +17 -0
  40. package/src/chat/claude-code-bridge.js +9 -0
  41. package/src/chat/codex-bridge.js +6 -1
  42. package/src/chat/omp-bridge.js +5 -0
  43. package/src/chat/pi-bridge.js +20 -5
  44. package/src/chat/session-manager.js +158 -63
  45. package/src/config.js +1 -1
  46. package/src/hooks/payloads.js +5 -1
  47. package/src/main.js +1 -1
  48. package/src/routes/chat.js +83 -11
@@ -3,16 +3,18 @@
3
3
  * Level 3 Thorough Prompt - Codebase Context Analysis (Deep Review)
4
4
  *
5
5
  * This is the thorough tier variant of Level 3 analysis (codebase context).
6
- * It is optimized for careful, detailed reviews with extended reasoning
7
- * and comprehensive guidance for architectural and cross-file analysis.
6
+ * It is targeted at frontier reasoning models and is optimized for
7
+ * evidence-grounded cross-file analysis: cited patterns must actually be
8
+ * found, and breaking-change claims must name a real victim.
8
9
  *
9
- * Tier-specific optimizations applied:
10
- * - EXTENDED: Focus areas with more detailed codebase analysis considerations
11
- * - ADDED: Confidence calibration guidance section
12
- * - ADDED: Reasoning encouragement section
13
- * - EXPANDED: Category definitions with codebase-context examples
14
- * - EXPANDED: Guidelines with additional considerations
15
- * - INCLUDED: All optional sections including file-level-guidance
10
+ * Tier-specific design decisions:
11
+ * - KEPT: Structured analysis process (dependency tracing folded in)
12
+ * - ADDED: Verification standard (patterns must exist, victims must be named)
13
+ * - ADDED: Do-not-report list (false-positive suppression)
14
+ * - COMPRESSED: Focus areas from eleven checklist categories to six
15
+ * prioritized hunting grounds, security listed first
16
+ * - REMOVED: Category taxonomy tutoring and reasoning-encouragement boilerplate
17
+ * - UNIFIED: Confidence semantics shared across all pipeline stages
16
18
  *
17
19
  * Section categories:
18
20
  * - locked: Cannot be modified by variants (data integrity)
@@ -52,29 +54,6 @@ const taggedPrompt = `<section name="role" required="true" tier="thorough">
52
54
  {{lineNumberGuidance}}
53
55
  </section>
54
56
 
55
- <section name="reasoning-encouragement" required="true" tier="thorough">
56
- ## Reasoning Approach
57
- Approach this analysis systematically, building understanding from specific changes to their broader implications.
58
-
59
- **Dependency tracing**: For each changed function, class, or module:
60
- - Who calls this code? Trace the call graph to understand impact radius
61
- - What does this code depend on? Check if dependencies are being used correctly
62
- - Are there interface contracts (explicit or implicit) being modified?
63
-
64
- **Pattern recognition**: Actively search for established patterns:
65
- - Find 2-3 similar implementations elsewhere in the codebase before evaluating conformance
66
- - Distinguish between "this is how it's done here" vs "this is how it should be done"
67
- - Consider whether the change should establish a new pattern or follow existing ones
68
-
69
- **Architectural thinking**: Reason about system-level implications:
70
- - Map how data flows through the changed code paths
71
- - Identify trust boundaries and security perimeters being crossed
72
- - Consider failure modes: what happens when this code fails?
73
- - Evaluate whether changes maintain appropriate layering
74
-
75
- **Calibrate your output**: Quality matters more than speed. Surface fewer high-confidence findings that genuinely require codebase-wide understanding.
76
- </section>
77
-
78
57
  <section name="generated-files" optional="true" tier="fast,balanced,thorough">
79
58
  {{generatedFiles}}
80
59
  </section>
@@ -91,7 +70,7 @@ Focus on understanding the relationships between these specific changes and exis
91
70
 
92
71
  Key questions to answer:
93
72
  - How do these changes interact with the established architecture?
94
- - Are there patterns elsewhere in the codebase that these changes should follow?
73
+ - Are there patterns elsewhere in the codebase that these changes should follow — or improve?
95
74
  - What other parts of the system might be affected by these changes?
96
75
  - Are there missing changes (tests, documentation, configuration) that should accompany these changes?
97
76
  </section>
@@ -100,120 +79,46 @@ Key questions to answer:
100
79
  ## Analysis Process
101
80
  A structured framework for codebase exploration:
102
81
 
103
- 1. **Map the change scope** - Before analyzing details, understand what's changing:
104
- - List all modified functions/classes and their public interfaces
105
- - Identify which changes are additive vs modifications to existing behavior
106
-
107
- 2. **Trace dependencies** - Build the dependency graph:
108
- - Use grep/find to locate all callers of modified code
109
- - Check for dependents that might break due to interface changes
110
- - Identify transitive dependencies that could be affected
111
-
112
- 3. **Identify patterns** - Search before judging:
113
- - Find 2-3 similar implementations in the codebase
114
- - Note the conventions: naming, error handling, logging, validation
115
- - Determine if there's a canonical way this type of code is written here
116
-
117
- 4. **Evaluate conformance** - With patterns identified, assess the changes:
118
- - Do they follow established conventions?
119
- - Are deviations justified improvements or inconsistencies?
120
- - Would following the pattern make the code better or worse?
121
-
122
- 5. **Assess ripple effects** - Consider downstream impact:
123
- - What breaks if these changes have bugs?
124
- - Are there integration points that need updating?
125
- - Could these changes cause issues in untested code paths?
126
-
127
- 6. **Check completeness** - Identify missing pieces:
128
- - Tests: do similar modules have tests? What patterns do they follow?
129
- - Docs: would users/developers need updated documentation?
130
- - Config: are there environment or deployment considerations?
131
-
132
- 7. **Consider evolution** - Think long-term:
133
- - Do these changes make future modifications easier or harder?
134
- - Is technical debt being paid down or accumulated?
82
+ 1. **Map the change scope** — List the modified functions/classes and their public interfaces. Separate additive changes from modifications to existing behavior; the latter carry the breaking-change risk.
83
+
84
+ 2. **Trace dependencies** — Use grep/find to locate every caller of modified code. For behavior changes, check each caller's assumptions; for interface changes, check every call site. This is where Level 3's highest-value findings live.
85
+
86
+ 3. **Find the precedents** — Locate 2-3 similar implementations in the codebase before judging conformance. Note their conventions (naming, error handling, validation, logging). Distinguish "this is how it's done here" from "this is how it should be done" — the change may be right to deviate, or may be the opportunity to improve the pattern.
87
+
88
+ 4. **Assess system impact** — Trace data flow through the changed paths: trust boundaries crossed, failure modes if this code throws or returns bad data, layering violations, performance effects on other code paths (N+1 patterns, contention, cache behavior).
89
+
90
+ 5. **Check completeness** — Do similar modules have tests, and does this change follow that pattern? Are documentation, configuration, feature flags, or migrations needed to accompany these changes?
135
91
  </section>
136
92
 
137
93
  <section name="focus-areas" required="true" tier="thorough">
138
- ## Analysis Focus Areas
139
- Carefully identify and analyze the following in codebase context:
140
-
141
- ### Architectural Consistency
142
- - Do these changes fit with the overall architecture or disrupt established patterns?
143
- - Are there abstraction boundaries being crossed inappropriately?
144
- - Does the code organization match the project's conventions?
145
- - Are there layering violations (e.g., UI code directly accessing database)?
146
- - Is there appropriate separation of concerns?
147
-
148
- ### Established Patterns
149
- - Do these changes follow patterns used elsewhere in the codebase?
150
- - Are there similar implementations that these changes should mirror?
151
- - Do error handling, logging, and validation patterns match the rest of the codebase?
152
- - Are naming conventions consistent with the project?
153
- - Should these changes be improving patterns rather than just following them?
154
-
155
- ### Cross-File Dependencies
156
- - How do these changes impact other files that depend on them?
157
- - Are there callers that might break due to these changes?
158
- - Are there implicit contracts being changed without updating dependents?
159
- - Could these changes cause issues in code paths not directly modified?
160
- - Are there circular dependencies being introduced or existing ones being worsened?
161
-
162
- ### Testing Coverage
163
- - {{testingGuidance}}
164
- - Are there existing test patterns that these changes should follow?
165
- - Do the tests cover the interaction between changed code and the rest of the system?
166
- - Are integration tests needed in addition to unit tests?
167
- - Are there test utilities or fixtures that should be used?
168
-
169
- ### Documentation Completeness
170
- - Do these changes require updates to project documentation?
171
- - Are they consistent with documented APIs and contracts?
172
- - Do public interfaces have appropriate documentation?
173
- - Are there README files or guides that need updating?
174
- - Should architecture decision records be created or updated?
175
-
176
- ### API Contracts
177
- - Do these changes maintain consistency with existing API patterns?
178
- - Are there breaking changes to public interfaces?
179
- - Are versioning conventions being followed?
180
- - Do error responses match established patterns?
181
- - Are there backwards compatibility concerns?
182
-
183
- ### Configuration & Environment
184
- - Do these changes necessitate configuration updates?
185
- - Are there environment-specific considerations?
186
- - Do deployment processes need to be updated?
187
- - Are there feature flags or settings that should accompany these changes?
188
- - Will these changes work correctly across different environments?
189
-
190
- ### Breaking Changes & Compatibility
191
- - Do these changes break existing functionality or contracts?
192
- - Are there deprecation warnings needed?
193
- - Is backwards compatibility maintained where required?
194
- - Are migrations or upgrade paths provided?
195
- - What is the blast radius if something goes wrong?
196
-
197
- ### Performance Impact
198
- - How do these changes affect performance elsewhere in the system?
199
- - Are there N+1 queries or similar patterns that affect other code paths?
200
- - Could these changes cause resource contention?
201
- - Are caching patterns being affected?
202
- - Do these changes scale appropriately with the rest of the system?
203
-
204
- ### Security Considerations
205
- - Do these changes introduce security risks in other parts of the system?
206
- - Are there authentication/authorization patterns being bypassed?
207
- - How do these changes affect data flow security?
208
- - Are there trust boundaries being modified?
209
- - Do these changes expose sensitive data in new ways?
210
-
211
- ### Good Practices
212
- - Good practices worth praising in the context of codebase conventions
213
- - Clean integration with existing architecture
214
- - Thoughtful handling of cross-cutting concerns
215
- - Improvements to overall codebase quality
216
- - Changes that make the codebase more maintainable
94
+ ## What to Hunt For
95
+ In priority order:
96
+
97
+ 1. **Security boundaries** — authentication or authorization patterns bypassed compared to how the codebase protects similar surfaces; trust boundaries crossed unsafely; new data exposure paths.
98
+ 2. **Breaking changes** — callers whose assumptions this change violates; public interface changes without dependent updates; implicit contracts (ordering, nullability, error types) changed silently; backwards compatibility and migration gaps.
99
+ 3. **Pattern conformance** — deviations from established codebase patterns, citing the precedents you found; reimplementation of existing utilities; a new layer, service, or abstraction duplicating a capability an existing mechanism already provides; places where the change should improve a pattern rather than merely follow it.
100
+ 4. **Missing accompanying changes** — check whether similar modules have tests and what patterns they follow; documentation for changed public interfaces; configuration, feature flags, or migrations these changes require. Testing guidance for this review:
101
+ {{testingGuidance}}
102
+ 5. **System-level risk** — performance impact on other code paths; resource contention; blast radius if this code fails.
103
+ 6. **Praise** — at most 1-2 items, for changes that integrate exceptionally well or pay down real debt.
104
+ </section>
105
+
106
+ <section name="verification-standard" required="true" tier="thorough">
107
+ ## Verification Standard
108
+ - **Cited patterns must exist.** When you claim "the codebase does X elsewhere", you must have found X via grep/find, and you must name the file (and lines where practical). No confabulated conventions.
109
+ - **Breaking-change claims must name the victim.** "This could break callers" requires identifying an actual caller that breaks, with the concrete failure scenario. If you searched and every caller handles the change, there is no finding.
110
+ - **Refute before reporting.** For each candidate finding, actively look for the evidence that would kill it — the guard that handles the case, the caller that was updated, the test that covers it. Record what you checked in the reasoning array. Discard only what you actually refuted — a concrete finding you could neither confirm nor refute is reported as a question at 0.3-0.5 confidence, stating what you could not verify.
111
+ - **Security findings are attack scenarios.** Describe the exploit, not the defect: who can exploit it (position and required privileges), how (the concrete input, request, or sequence), and what they gain or damage. The code-level fix belongs in the suggestion field. If no attack path exists today, either refute the finding or report it as hardening at reduced confidence, naming the assumption that currently blocks exploitation.
112
+ - **Simplicity findings must show the simpler version.** If you cannot sketch the equivalent simpler code, it is a style preference — drop it.
113
+ </section>
114
+
115
+ <section name="do-not-report" required="true" tier="thorough">
116
+ ## Do Not Report
117
+ - Findings visible from the diff or a single file alone — Levels 1 and 2 own those. Ask: "Did I need to look at other files to find this?" If no, omit it.
118
+ - Pre-existing architectural debt these changes neither touch nor worsen
119
+ - Speculative "consider adding caching/abstraction/flexibility" without a concrete current cost
120
+ - Generic "add more tests" — only flag test gaps with evidence of the project's testing pattern for similar code
121
+ - Findings that remain below 0.3 confidence even after verification
217
122
  </section>
218
123
 
219
124
  <section name="available-commands" required="true" tier="thorough">
@@ -228,7 +133,7 @@ You have READ-ONLY access to the codebase. You may run commands like:
228
133
  IMPORTANT: Do NOT modify any files. Do NOT run write commands (rm, mv, git commit, etc.).
229
134
  Your role is strictly to analyze and report findings.
230
135
 
231
- Note: You may optionally use parallel read-only Tasks to explore different areas of the codebase if that would be helpful for a thorough analysis. This is especially useful for:
136
+ Note: If your environment provides a subagent or task-delegation tool, you may use it to parallelize independent read-only exploration. This is especially useful for:
232
137
  - Searching for similar patterns in different parts of the codebase
233
138
  - Tracing dependencies across multiple files
234
139
  - Analyzing test coverage in parallel with main code analysis
@@ -291,27 +196,18 @@ The content inside the block is the complete replacement for the commented line(
291
196
  </section>
292
197
 
293
198
  <section name="diff-instructions" required="true" tier="thorough">
294
- ## Line Number Reference (old_or_new field)
295
- The "old_or_new" field indicates which line number column to use:
296
- - **"NEW"** (default): Use the NEW column number. This is correct for:
297
- - ADDED lines marked with [+]
298
- - CONTEXT lines (unchanged lines that appear in both versions)
299
- - **"OLD"**: Use the OLD column number. ONLY use this for DELETED lines marked with [-].
300
-
301
- **IMPORTANT**: Context lines exist in BOTH the old and new file - always use "NEW" for context lines.
302
- Only use "OLD" when the line is prefixed with [-] indicating it was deleted.
303
-
304
- If you are unsure, use "NEW" - it is correct for the vast majority of suggestions.
199
+ ## old_or_new Field Reference
200
+ Use "NEW" (the default) for added lines [+] and context lines. Use "OLD" only for DELETED lines marked with [-]. When uncertain, use "NEW".
305
201
  </section>
306
202
 
307
203
  <section name="confidence-guidance" required="true" tier="thorough">
308
204
  ## Confidence Calibration
309
- **Confidence** measures epistemic certainty - how sure are you that this IS a problem?
205
+ **Confidence** is the probability that the finding is real and correctly described:
310
206
 
311
207
  - **High (0.8-1.0)**: You verified the issue. You traced the code paths, found the callers, checked the patterns. This is definitely a problem.
312
208
  - **Medium (0.5-0.79)**: Strong evidence but incomplete verification. You found concerning patterns but haven't exhaustively checked all code paths.
313
209
  - **Low (0.3-0.49)**: Suspicion based on heuristics. The code looks problematic but you lack evidence from the codebase to confirm.
314
- - **Very low (<0.3)**: Observation for human review. You're not sure if this is actually an issue.
210
+ - **Very low (<0.3)**: Do not report — see Do Not Report.
315
211
 
316
212
  **Critical distinction**: Confidence != severity. Examples:
317
213
  - Naming inconsistency: high confidence (easy to verify), low severity
@@ -323,77 +219,34 @@ Lower your confidence when:
323
219
  - The issue depends on runtime behavior you can't verify statically
324
220
  </section>
325
221
 
326
- <section name="category-definitions" required="true" tier="thorough">
327
- ## Category Definitions
328
-
329
- ### Issue Types
330
- - **bug**: Errors visible when considering codebase context. Code that will fail or behave incorrectly due to how it interacts with other parts of the system.
331
- - Example: New service doesn't follow established retry patterns, causing cascade failures
332
- - **improvement**: Enhancements to better integrate with codebase patterns. The code works but could be more consistent with established conventions.
333
- - Example: New module uses different configuration approach than similar modules
334
- - **praise**: Good practices that follow codebase conventions. Positive feedback for well-integrated changes.
335
- - Example: New API endpoint follows all established patterns perfectly
336
- - **suggestion**: General recommendations based on codebase context. Ideas that may improve system coherence.
337
- - Example: Consider reusing the existing utility instead of implementing similar functionality
338
- - **design**: Architecture and structural concerns at the codebase level.
339
- - Example: New service creates a circular dependency with existing module
340
- - **performance**: Efficiency issues that affect the broader system.
341
- - Example: New query pattern doesn't use the established caching strategy
342
- - **security**: Security issues visible in codebase context.
343
- - Example: New endpoint bypasses the authentication middleware used elsewhere
344
- - **code-style**: Style inconsistencies with codebase conventions.
345
- - Example: Module structure differs from established project organization
346
- </section>
347
-
348
222
  <section name="file-level-guidance" required="true" tier="thorough">
349
223
  ## File-Level Suggestions
350
- In addition to line-specific suggestions, you SHOULD include file-level observations in the "fileLevelSuggestions" array. These are observations about an entire file that are not tied to specific lines, such as:
351
- - Architectural concerns about the file's role in the codebase
352
- - Missing tests for the file's functionality based on project testing patterns
353
- - Integration issues with other parts of the codebase
354
- - File-level design pattern inconsistencies with the rest of the codebase
355
- - Documentation gaps for the file compared to similar files
356
- - Organizational issues (file location, module structure)
357
- - Opportunities to consolidate with existing code elsewhere in the codebase
358
-
359
- File-level suggestions should NOT have a line number. They apply to the entire file.
224
+ In addition to line-specific suggestions, you CAN include file-level observations in the "fileLevelSuggestions" array. These are observations about an entire file that are not tied to specific lines.
360
225
 
361
226
  **When to use file-level suggestions:**
362
227
  - The observation requires understanding the file's role in the codebase, not just one line
363
- - The suggestion would improve overall codebase coherence
364
228
  - The issue cannot be addressed by changing a single line
365
- - The praise applies to how well the file integrates with the broader codebase
366
229
  - The concern relates to where the file should be located or how it should be organized
230
+ - The praise applies to how well the file integrates with the broader codebase
367
231
 
368
232
  **Examples of good file-level suggestions:**
369
233
  - "This new service should be in the services/ directory to follow project structure"
370
234
  - "This file duplicates functionality in src/utils/helpers.js - consider consolidating"
371
235
  - "Missing integration tests - similar modules have tests in tests/integration/"
372
236
  - "Excellent implementation of the repository pattern matching existing services"
237
+
238
+ File-level suggestions should NOT have a line number. They apply to the entire file.
373
239
  </section>
374
240
 
375
241
  <section name="guidelines" required="true" tier="thorough">
376
242
  ## Guidelines
377
243
 
378
- ### Scope: Level 3 vs Level 1/2
379
- Level 3 findings must require codebase context. If an issue could be identified from the file alone, it belongs in Level 2. Ask yourself: "Did I need to look at other files to find this?" If no, omit it.
380
-
381
244
  ### Output Standards
382
245
  - **Line-level vs file-level**: Anchor to specific lines when possible. File-level suggestions are for issues that genuinely span the entire file.
383
246
  - **Actionable suggestions**: Reference specific patterns or files. Not "follow the established pattern" but "follow the pattern in src/services/UserService.js lines 45-60".
384
247
  - **Praise items**: Omit the suggestion field. Explain what they did well relative to codebase conventions.
385
- - **Evidence-based**: When citing a pattern, you should have actually found it via grep/find.
386
-
387
- ### Exploration Strategy
388
- - Start with the changed files and work outward
389
- - Look for similar implementations to compare against
390
- - Check how dependents use the changed code
391
- - Verify test coverage matches patterns elsewhere
392
-
393
- ### Calibration
394
- - Prefer fewer high-confidence findings over many uncertain observations
395
- - Lower confidence when codebase conventions are unclear or inconsistent
396
- - Distinguish "must fix" (breaks things, security risk) from "should consider" (consistency, maintainability)
248
+ - **Must fix vs should consider**: Distinguish findings that break things or create security risk from consistency and maintainability considerations. The human reviewer makes the final call.
249
+ - **Reply shape**: Your reply is the JSON object alone — no sentence announcing what you will do, no narration of what you did. The first character of your reply is \`{\`.
397
250
  </section>`;
398
251
 
399
252
  /**
@@ -406,26 +259,28 @@ const sections = [
406
259
  { name: 'custom-instructions', optional: true, tier: ['fast', 'balanced', 'thorough'] },
407
260
  { name: 'level-header', required: true, tier: ['thorough'] },
408
261
  { name: 'line-number-guidance', required: true, tier: ['thorough'] },
409
- { name: 'reasoning-encouragement', required: true, tier: ['thorough'] },
410
262
  { name: 'generated-files', optional: true, tier: ['fast', 'balanced', 'thorough'] },
411
263
  { name: 'changed-files', locked: true },
412
264
  { name: 'purpose', required: true, tier: ['thorough'] },
413
265
  { name: 'analysis-process', required: true, tier: ['thorough'] },
414
266
  { name: 'focus-areas', required: true, tier: ['thorough'] },
267
+ { name: 'verification-standard', required: true, tier: ['thorough'] },
268
+ { name: 'do-not-report', required: true, tier: ['thorough'] },
415
269
  { name: 'available-commands', required: true, tier: ['thorough'] },
416
270
  { name: 'sparse-checkout', optional: true, tier: ['fast', 'balanced', 'thorough'] },
417
271
  { name: 'severity-classification', required: true },
418
272
  { name: 'output-schema', locked: true },
419
273
  { name: 'diff-instructions', required: true, tier: ['thorough'] },
420
274
  { name: 'confidence-guidance', required: true, tier: ['thorough'] },
421
- { name: 'category-definitions', required: true, tier: ['thorough'] },
422
275
  { name: 'file-level-guidance', required: true, tier: ['thorough'] },
423
276
  { name: 'guidelines', required: true, tier: ['thorough'] }
424
277
  ];
425
278
 
426
279
  /**
427
280
  * Default section order for Level 3 Thorough
428
- * Note: Added reasoning-encouragement, confidence-guidance, and category-definitions sections
281
+ * Note: verification-standard/do-not-report replace the former
282
+ * reasoning-encouragement and category-definitions sections; dependency
283
+ * tracing and architectural thinking were folded into analysis-process
429
284
  */
430
285
  const defaultOrder = [
431
286
  'role',
@@ -433,19 +288,19 @@ const defaultOrder = [
433
288
  'custom-instructions',
434
289
  'level-header',
435
290
  'line-number-guidance',
436
- 'reasoning-encouragement',
437
291
  'generated-files',
438
292
  'changed-files',
439
293
  'purpose',
440
294
  'analysis-process',
441
295
  'focus-areas',
296
+ 'verification-standard',
297
+ 'do-not-report',
442
298
  'available-commands',
443
299
  'sparse-checkout',
444
300
  'severity-classification',
445
301
  'output-schema',
446
302
  'diff-instructions',
447
303
  'confidence-guidance',
448
- 'category-definitions',
449
304
  'file-level-guidance',
450
305
  'guidelines'
451
306
  ];