agentic-qe 3.6.0 → 3.6.2

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 (204) hide show
  1. package/.claude/agents/v3/qe-devils-advocate.md +218 -0
  2. package/.claude/agents/v3/qe-quality-criteria-recommender.md +2 -2
  3. package/.claude/skills/qe-iterative-loop/SKILL.md +1 -1
  4. package/.claude/skills/release/SKILL.md +17 -31
  5. package/.claude/skills/skills-manifest.json +1 -1
  6. package/README.md +38 -35
  7. package/package.json +1 -1
  8. package/scripts/cloud-db-config.json +1 -1
  9. package/v3/CHANGELOG.md +44 -0
  10. package/v3/README.md +7 -7
  11. package/v3/assets/agents/v3/qe-devils-advocate.md +218 -0
  12. package/v3/assets/agents/v3/qe-quality-criteria-recommender.md +2 -2
  13. package/v3/assets/skills/qe-iterative-loop/SKILL.md +1 -1
  14. package/v3/dist/agents/devils-advocate/agent.d.ts +103 -0
  15. package/v3/dist/agents/devils-advocate/agent.d.ts.map +1 -0
  16. package/v3/dist/agents/devils-advocate/agent.js +240 -0
  17. package/v3/dist/agents/devils-advocate/agent.js.map +1 -0
  18. package/v3/dist/agents/devils-advocate/index.d.ts +60 -0
  19. package/v3/dist/agents/devils-advocate/index.d.ts.map +1 -0
  20. package/v3/dist/agents/devils-advocate/index.js +72 -0
  21. package/v3/dist/agents/devils-advocate/index.js.map +1 -0
  22. package/v3/dist/agents/devils-advocate/strategies.d.ts +59 -0
  23. package/v3/dist/agents/devils-advocate/strategies.d.ts.map +1 -0
  24. package/v3/dist/agents/devils-advocate/strategies.js +438 -0
  25. package/v3/dist/agents/devils-advocate/strategies.js.map +1 -0
  26. package/v3/dist/agents/devils-advocate/types.d.ts +182 -0
  27. package/v3/dist/agents/devils-advocate/types.d.ts.map +1 -0
  28. package/v3/dist/agents/devils-advocate/types.js +96 -0
  29. package/v3/dist/agents/devils-advocate/types.js.map +1 -0
  30. package/v3/dist/agents/index.d.ts +20 -0
  31. package/v3/dist/agents/index.d.ts.map +1 -0
  32. package/v3/dist/agents/index.js +20 -0
  33. package/v3/dist/agents/index.js.map +1 -0
  34. package/v3/dist/cli/bundle.js +4489 -119
  35. package/v3/dist/coordination/agent-teams/adapter.d.ts +108 -0
  36. package/v3/dist/coordination/agent-teams/adapter.d.ts.map +1 -0
  37. package/v3/dist/coordination/agent-teams/adapter.js +316 -0
  38. package/v3/dist/coordination/agent-teams/adapter.js.map +1 -0
  39. package/v3/dist/coordination/agent-teams/domain-team-manager.d.ts +164 -0
  40. package/v3/dist/coordination/agent-teams/domain-team-manager.d.ts.map +1 -0
  41. package/v3/dist/coordination/agent-teams/domain-team-manager.js +342 -0
  42. package/v3/dist/coordination/agent-teams/domain-team-manager.js.map +1 -0
  43. package/v3/dist/coordination/agent-teams/index.d.ts +53 -0
  44. package/v3/dist/coordination/agent-teams/index.d.ts.map +1 -0
  45. package/v3/dist/coordination/agent-teams/index.js +61 -0
  46. package/v3/dist/coordination/agent-teams/index.js.map +1 -0
  47. package/v3/dist/coordination/agent-teams/mailbox.d.ts +142 -0
  48. package/v3/dist/coordination/agent-teams/mailbox.d.ts.map +1 -0
  49. package/v3/dist/coordination/agent-teams/mailbox.js +395 -0
  50. package/v3/dist/coordination/agent-teams/mailbox.js.map +1 -0
  51. package/v3/dist/coordination/agent-teams/tracing.d.ts +199 -0
  52. package/v3/dist/coordination/agent-teams/tracing.d.ts.map +1 -0
  53. package/v3/dist/coordination/agent-teams/tracing.js +308 -0
  54. package/v3/dist/coordination/agent-teams/tracing.js.map +1 -0
  55. package/v3/dist/coordination/agent-teams/types.d.ts +121 -0
  56. package/v3/dist/coordination/agent-teams/types.d.ts.map +1 -0
  57. package/v3/dist/coordination/agent-teams/types.js +17 -0
  58. package/v3/dist/coordination/agent-teams/types.js.map +1 -0
  59. package/v3/dist/coordination/circuit-breaker/breaker-registry.d.ts +146 -0
  60. package/v3/dist/coordination/circuit-breaker/breaker-registry.d.ts.map +1 -0
  61. package/v3/dist/coordination/circuit-breaker/breaker-registry.js +368 -0
  62. package/v3/dist/coordination/circuit-breaker/breaker-registry.js.map +1 -0
  63. package/v3/dist/coordination/circuit-breaker/domain-circuit-breaker.d.ts +134 -0
  64. package/v3/dist/coordination/circuit-breaker/domain-circuit-breaker.d.ts.map +1 -0
  65. package/v3/dist/coordination/circuit-breaker/domain-circuit-breaker.js +337 -0
  66. package/v3/dist/coordination/circuit-breaker/domain-circuit-breaker.js.map +1 -0
  67. package/v3/dist/coordination/circuit-breaker/index.d.ts +46 -0
  68. package/v3/dist/coordination/circuit-breaker/index.d.ts.map +1 -0
  69. package/v3/dist/coordination/circuit-breaker/index.js +51 -0
  70. package/v3/dist/coordination/circuit-breaker/index.js.map +1 -0
  71. package/v3/dist/coordination/circuit-breaker/types.d.ts +112 -0
  72. package/v3/dist/coordination/circuit-breaker/types.d.ts.map +1 -0
  73. package/v3/dist/coordination/circuit-breaker/types.js +10 -0
  74. package/v3/dist/coordination/circuit-breaker/types.js.map +1 -0
  75. package/v3/dist/coordination/competing-hypotheses/hypothesis-manager.d.ts +122 -0
  76. package/v3/dist/coordination/competing-hypotheses/hypothesis-manager.d.ts.map +1 -0
  77. package/v3/dist/coordination/competing-hypotheses/hypothesis-manager.js +377 -0
  78. package/v3/dist/coordination/competing-hypotheses/hypothesis-manager.js.map +1 -0
  79. package/v3/dist/coordination/competing-hypotheses/index.d.ts +34 -0
  80. package/v3/dist/coordination/competing-hypotheses/index.d.ts.map +1 -0
  81. package/v3/dist/coordination/competing-hypotheses/index.js +39 -0
  82. package/v3/dist/coordination/competing-hypotheses/index.js.map +1 -0
  83. package/v3/dist/coordination/competing-hypotheses/types.d.ts +134 -0
  84. package/v3/dist/coordination/competing-hypotheses/types.d.ts.map +1 -0
  85. package/v3/dist/coordination/competing-hypotheses/types.js +20 -0
  86. package/v3/dist/coordination/competing-hypotheses/types.js.map +1 -0
  87. package/v3/dist/coordination/dynamic-scaling/dynamic-scaler.d.ts +173 -0
  88. package/v3/dist/coordination/dynamic-scaling/dynamic-scaler.d.ts.map +1 -0
  89. package/v3/dist/coordination/dynamic-scaling/dynamic-scaler.js +368 -0
  90. package/v3/dist/coordination/dynamic-scaling/dynamic-scaler.js.map +1 -0
  91. package/v3/dist/coordination/dynamic-scaling/index.d.ts +38 -0
  92. package/v3/dist/coordination/dynamic-scaling/index.d.ts.map +1 -0
  93. package/v3/dist/coordination/dynamic-scaling/index.js +39 -0
  94. package/v3/dist/coordination/dynamic-scaling/index.js.map +1 -0
  95. package/v3/dist/coordination/dynamic-scaling/types.d.ts +147 -0
  96. package/v3/dist/coordination/dynamic-scaling/types.d.ts.map +1 -0
  97. package/v3/dist/coordination/dynamic-scaling/types.js +40 -0
  98. package/v3/dist/coordination/dynamic-scaling/types.js.map +1 -0
  99. package/v3/dist/coordination/federation/federation-mailbox.d.ts +215 -0
  100. package/v3/dist/coordination/federation/federation-mailbox.d.ts.map +1 -0
  101. package/v3/dist/coordination/federation/federation-mailbox.js +442 -0
  102. package/v3/dist/coordination/federation/federation-mailbox.js.map +1 -0
  103. package/v3/dist/coordination/federation/index.d.ts +38 -0
  104. package/v3/dist/coordination/federation/index.d.ts.map +1 -0
  105. package/v3/dist/coordination/federation/index.js +39 -0
  106. package/v3/dist/coordination/federation/index.js.map +1 -0
  107. package/v3/dist/coordination/federation/types.d.ts +103 -0
  108. package/v3/dist/coordination/federation/types.d.ts.map +1 -0
  109. package/v3/dist/coordination/federation/types.js +20 -0
  110. package/v3/dist/coordination/federation/types.js.map +1 -0
  111. package/v3/dist/coordination/fleet-tiers/index.d.ts +39 -0
  112. package/v3/dist/coordination/fleet-tiers/index.d.ts.map +1 -0
  113. package/v3/dist/coordination/fleet-tiers/index.js +44 -0
  114. package/v3/dist/coordination/fleet-tiers/index.js.map +1 -0
  115. package/v3/dist/coordination/fleet-tiers/tier-config.d.ts +60 -0
  116. package/v3/dist/coordination/fleet-tiers/tier-config.d.ts.map +1 -0
  117. package/v3/dist/coordination/fleet-tiers/tier-config.js +242 -0
  118. package/v3/dist/coordination/fleet-tiers/tier-config.js.map +1 -0
  119. package/v3/dist/coordination/fleet-tiers/tier-selector.d.ts +134 -0
  120. package/v3/dist/coordination/fleet-tiers/tier-selector.d.ts.map +1 -0
  121. package/v3/dist/coordination/fleet-tiers/tier-selector.js +373 -0
  122. package/v3/dist/coordination/fleet-tiers/tier-selector.js.map +1 -0
  123. package/v3/dist/coordination/fleet-tiers/types.d.ts +137 -0
  124. package/v3/dist/coordination/fleet-tiers/types.d.ts.map +1 -0
  125. package/v3/dist/coordination/fleet-tiers/types.js +20 -0
  126. package/v3/dist/coordination/fleet-tiers/types.js.map +1 -0
  127. package/v3/dist/coordination/index.d.ts +16 -0
  128. package/v3/dist/coordination/index.d.ts.map +1 -1
  129. package/v3/dist/coordination/index.js +29 -0
  130. package/v3/dist/coordination/index.js.map +1 -1
  131. package/v3/dist/coordination/queen-coordinator.d.ts +79 -0
  132. package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
  133. package/v3/dist/coordination/queen-coordinator.js +363 -0
  134. package/v3/dist/coordination/queen-coordinator.js.map +1 -1
  135. package/v3/dist/coordination/task-dag/dag.d.ts +93 -0
  136. package/v3/dist/coordination/task-dag/dag.d.ts.map +1 -0
  137. package/v3/dist/coordination/task-dag/dag.js +496 -0
  138. package/v3/dist/coordination/task-dag/dag.js.map +1 -0
  139. package/v3/dist/coordination/task-dag/index.d.ts +54 -0
  140. package/v3/dist/coordination/task-dag/index.d.ts.map +1 -0
  141. package/v3/dist/coordination/task-dag/index.js +62 -0
  142. package/v3/dist/coordination/task-dag/index.js.map +1 -0
  143. package/v3/dist/coordination/task-dag/scheduler.d.ts +123 -0
  144. package/v3/dist/coordination/task-dag/scheduler.d.ts.map +1 -0
  145. package/v3/dist/coordination/task-dag/scheduler.js +262 -0
  146. package/v3/dist/coordination/task-dag/scheduler.js.map +1 -0
  147. package/v3/dist/coordination/task-dag/types.d.ts +103 -0
  148. package/v3/dist/coordination/task-dag/types.d.ts.map +1 -0
  149. package/v3/dist/coordination/task-dag/types.js +9 -0
  150. package/v3/dist/coordination/task-dag/types.js.map +1 -0
  151. package/v3/dist/domains/enterprise-integration/services/odata-service.js +3 -3
  152. package/v3/dist/domains/enterprise-integration/services/odata-service.js.map +1 -1
  153. package/v3/dist/domains/enterprise-integration/services/soap-wsdl-service.d.ts.map +1 -1
  154. package/v3/dist/domains/enterprise-integration/services/soap-wsdl-service.js +9 -4
  155. package/v3/dist/domains/enterprise-integration/services/soap-wsdl-service.js.map +1 -1
  156. package/v3/dist/domains/requirements-validation/services/quality-criteria/quality-criteria-service.js +1 -1
  157. package/v3/dist/domains/requirements-validation/services/quality-criteria/quality-criteria-service.js.map +1 -1
  158. package/v3/dist/hooks/index.d.ts +8 -1
  159. package/v3/dist/hooks/index.d.ts.map +1 -1
  160. package/v3/dist/hooks/index.js +8 -1
  161. package/v3/dist/hooks/index.js.map +1 -1
  162. package/v3/dist/hooks/quality-gate-enforcer.d.ts +134 -0
  163. package/v3/dist/hooks/quality-gate-enforcer.d.ts.map +1 -0
  164. package/v3/dist/hooks/quality-gate-enforcer.js +265 -0
  165. package/v3/dist/hooks/quality-gate-enforcer.js.map +1 -0
  166. package/v3/dist/hooks/reasoning-bank-pattern-store.d.ts +60 -0
  167. package/v3/dist/hooks/reasoning-bank-pattern-store.d.ts.map +1 -0
  168. package/v3/dist/hooks/reasoning-bank-pattern-store.js +179 -0
  169. package/v3/dist/hooks/reasoning-bank-pattern-store.js.map +1 -0
  170. package/v3/dist/hooks/task-completed-hook.d.ts +174 -0
  171. package/v3/dist/hooks/task-completed-hook.d.ts.map +1 -0
  172. package/v3/dist/hooks/task-completed-hook.js +330 -0
  173. package/v3/dist/hooks/task-completed-hook.js.map +1 -0
  174. package/v3/dist/hooks/teammate-idle-hook.d.ts +167 -0
  175. package/v3/dist/hooks/teammate-idle-hook.d.ts.map +1 -0
  176. package/v3/dist/hooks/teammate-idle-hook.js +332 -0
  177. package/v3/dist/hooks/teammate-idle-hook.js.map +1 -0
  178. package/v3/dist/index.d.ts +3 -0
  179. package/v3/dist/index.d.ts.map +1 -1
  180. package/v3/dist/index.js +4 -0
  181. package/v3/dist/index.js.map +1 -1
  182. package/v3/dist/init/agents-installer.d.ts +5 -1
  183. package/v3/dist/init/agents-installer.d.ts.map +1 -1
  184. package/v3/dist/init/agents-installer.js +13 -5
  185. package/v3/dist/init/agents-installer.js.map +1 -1
  186. package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
  187. package/v3/dist/init/phases/12-verification.js +13 -1
  188. package/v3/dist/init/phases/12-verification.js.map +1 -1
  189. package/v3/dist/kernel/unified-memory.d.ts.map +1 -1
  190. package/v3/dist/kernel/unified-memory.js +303 -18
  191. package/v3/dist/kernel/unified-memory.js.map +1 -1
  192. package/v3/dist/learning/pattern-store.js +1 -1
  193. package/v3/dist/learning/pattern-store.js.map +1 -1
  194. package/v3/dist/learning/qe-patterns.d.ts +2 -0
  195. package/v3/dist/learning/qe-patterns.d.ts.map +1 -1
  196. package/v3/dist/learning/qe-patterns.js.map +1 -1
  197. package/v3/dist/learning/qe-reasoning-bank.d.ts.map +1 -1
  198. package/v3/dist/learning/qe-reasoning-bank.js +16 -3
  199. package/v3/dist/learning/qe-reasoning-bank.js.map +1 -1
  200. package/v3/dist/mcp/bundle.js +4473 -133
  201. package/v3/dist/sync/cloud/tunnel-manager.d.ts.map +1 -1
  202. package/v3/dist/sync/cloud/tunnel-manager.js +11 -0
  203. package/v3/dist/sync/cloud/tunnel-manager.js.map +1 -1
  204. package/v3/package.json +1 -1
@@ -0,0 +1,182 @@
1
+ /**
2
+ * Agentic QE v3 - Devil's Advocate Agent Types
3
+ * ADR-064, Phase 2C: Type definitions for the Devil's Advocate agent
4
+ *
5
+ * The Devil's Advocate agent challenges other agents' outputs by reviewing
6
+ * test completeness, questioning security scan results, and identifying
7
+ * coverage gaps in claimed results.
8
+ *
9
+ * @module agents/devils-advocate
10
+ */
11
+ /**
12
+ * The kind of output being challenged by the Devil's Advocate.
13
+ * Each target type maps to specific challenge strategies that know
14
+ * how to inspect and critique that category of output.
15
+ */
16
+ export type ChallengeTargetType = 'test-generation' | 'coverage-analysis' | 'security-scan' | 'quality-assessment' | 'defect-prediction' | 'contract-validation' | 'requirements';
17
+ /**
18
+ * All valid challenge target types, for runtime validation.
19
+ */
20
+ export declare const ALL_CHALLENGE_TARGET_TYPES: readonly ChallengeTargetType[];
21
+ /**
22
+ * The output being challenged by the Devil's Advocate.
23
+ * Represents the concrete artifact produced by another agent
24
+ * that will be subjected to critical review.
25
+ */
26
+ export interface ChallengeTarget {
27
+ /** What kind of output is being challenged */
28
+ readonly type: ChallengeTargetType;
29
+ /** ID of the agent that produced this output */
30
+ readonly agentId: string;
31
+ /** Domain this output belongs to */
32
+ readonly domain: string;
33
+ /** The actual output data to be challenged */
34
+ readonly output: Record<string, unknown>;
35
+ /** When this output was produced (epoch ms) */
36
+ readonly timestamp: number;
37
+ /** Optional task ID for traceability */
38
+ readonly taskId?: string;
39
+ }
40
+ /**
41
+ * Severity of a challenge finding. Determines the urgency
42
+ * and impact assessment of a discovered gap or weakness.
43
+ */
44
+ export type ChallengeSeverity = 'critical' | 'high' | 'medium' | 'low' | 'informational';
45
+ /**
46
+ * All valid challenge severities in descending order of importance.
47
+ * Used for filtering and sorting challenges.
48
+ */
49
+ export declare const SEVERITY_ORDER: readonly ChallengeSeverity[];
50
+ /**
51
+ * Numeric weight for each severity level, used in score computation.
52
+ * Higher weight means greater negative impact on the overall score.
53
+ */
54
+ export declare const SEVERITY_WEIGHTS: Readonly<Record<ChallengeSeverity, number>>;
55
+ /**
56
+ * A specific challenge raised against an agent's output.
57
+ * Each challenge documents a gap, weakness, or questionable aspect
58
+ * found during the Devil's Advocate review.
59
+ */
60
+ export interface Challenge {
61
+ /** Unique identifier for this challenge */
62
+ readonly id: string;
63
+ /** How severe this gap or weakness is */
64
+ readonly severity: ChallengeSeverity;
65
+ /** Category of the challenge (e.g., 'missing-edge-case', 'false-positive') */
66
+ readonly category: string;
67
+ /** Short descriptive title */
68
+ readonly title: string;
69
+ /** Detailed description of the challenge */
70
+ readonly description: string;
71
+ /** Evidence supporting this challenge */
72
+ readonly evidence: string;
73
+ /** What should be done to address this challenge */
74
+ readonly recommendation: string;
75
+ /** Confidence in this challenge being valid (0-1) */
76
+ readonly confidence: number;
77
+ }
78
+ /**
79
+ * Result of a Devil's Advocate review of an agent's output.
80
+ * Aggregates all challenges found and provides an overall assessment.
81
+ */
82
+ export interface ChallengeResult {
83
+ /** What type of output was reviewed */
84
+ readonly targetType: ChallengeTargetType;
85
+ /** ID of the agent whose output was reviewed */
86
+ readonly targetAgentId: string;
87
+ /** All challenges found during the review */
88
+ readonly challenges: readonly Challenge[];
89
+ /** Overall score (0-1), where 1 means no challenges found */
90
+ readonly overallScore: number;
91
+ /** Human-readable summary of the review */
92
+ readonly summary: string;
93
+ /** When the review was completed (epoch ms) */
94
+ readonly timestamp: number;
95
+ /** How long the review took (ms) */
96
+ readonly reviewDuration: number;
97
+ }
98
+ /**
99
+ * Types of challenge strategies the Devil's Advocate can employ.
100
+ * Each strategy focuses on a specific category of potential weakness.
101
+ */
102
+ export type ChallengeStrategyType = 'missing-edge-cases' | 'false-positive-detection' | 'coverage-gap-critique' | 'security-blind-spots' | 'assumption-questioning' | 'boundary-value-gaps' | 'error-handling-gaps';
103
+ /**
104
+ * All valid challenge strategy types, for runtime validation.
105
+ */
106
+ export declare const ALL_CHALLENGE_STRATEGY_TYPES: readonly ChallengeStrategyType[];
107
+ /**
108
+ * Interface that all challenge strategies must implement.
109
+ * Each strategy inspects a target output and produces challenges.
110
+ */
111
+ export interface ChallengeStrategy {
112
+ /** Which strategy type this implements */
113
+ readonly type: ChallengeStrategyType;
114
+ /** Which target types this strategy can be applied to */
115
+ readonly applicableTo: readonly ChallengeTargetType[];
116
+ /**
117
+ * Analyze the target output and produce challenges.
118
+ *
119
+ * @param target - The output being challenged
120
+ * @returns Array of challenges found
121
+ */
122
+ challenge(target: ChallengeTarget): Challenge[];
123
+ }
124
+ /**
125
+ * Configuration for Devil's Advocate behavior.
126
+ * Controls which strategies run, how sensitive the review is,
127
+ * and what gets included in the final result.
128
+ */
129
+ export interface DevilsAdvocateConfig {
130
+ /** Minimum confidence to report a challenge (0-1). @default 0.3 */
131
+ readonly minConfidence: number;
132
+ /** Maximum challenges to report per review. @default 20 */
133
+ readonly maxChallengesPerReview: number;
134
+ /** Which challenge strategies to enable */
135
+ readonly enabledStrategies: readonly ChallengeStrategyType[];
136
+ /** Only include challenges at or above this severity. @default 'informational' */
137
+ readonly minSeverity: ChallengeSeverity;
138
+ }
139
+ /**
140
+ * Default configuration for the Devil's Advocate agent.
141
+ */
142
+ export declare const DEFAULT_DEVILS_ADVOCATE_CONFIG: DevilsAdvocateConfig;
143
+ /**
144
+ * Accumulated statistics from Devil's Advocate reviews.
145
+ * Provides insight into the kinds of gaps being found across reviews.
146
+ */
147
+ export interface DevilsAdvocateStats {
148
+ /** Total number of reviews performed */
149
+ readonly totalReviews: number;
150
+ /** Total number of challenges raised across all reviews */
151
+ readonly totalChallenges: number;
152
+ /** Challenge count broken down by severity */
153
+ readonly challengesBySeverity: Readonly<Record<ChallengeSeverity, number>>;
154
+ /** Challenge count broken down by category */
155
+ readonly challengesByCategory: Readonly<Record<string, number>>;
156
+ /** Average number of challenges per review */
157
+ readonly averageChallengesPerReview: number;
158
+ /** Average overall score across all reviews */
159
+ readonly averageScore: number;
160
+ }
161
+ /**
162
+ * Check if a string is a valid ChallengeTargetType.
163
+ *
164
+ * @param value - String to check
165
+ * @returns True if value is a valid ChallengeTargetType
166
+ */
167
+ export declare function isChallengeTargetType(value: string): value is ChallengeTargetType;
168
+ /**
169
+ * Check if a string is a valid ChallengeStrategyType.
170
+ *
171
+ * @param value - String to check
172
+ * @returns True if value is a valid ChallengeStrategyType
173
+ */
174
+ export declare function isChallengeStrategyType(value: string): value is ChallengeStrategyType;
175
+ /**
176
+ * Check if a string is a valid ChallengeSeverity.
177
+ *
178
+ * @param value - String to check
179
+ * @returns True if value is a valid ChallengeSeverity
180
+ */
181
+ export declare function isChallengeSeverity(value: string): value is ChallengeSeverity;
182
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/agents/devils-advocate/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAC3B,iBAAiB,GACjB,mBAAmB,GACnB,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,qBAAqB,GACrB,cAAc,CAAC;AAEnB;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,mBAAmB,EAQ3D,CAAC;AAEX;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,gDAAgD;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,oCAAoC;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,8CAA8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAMD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,MAAM,GACN,QAAQ,GACR,KAAK,GACL,eAAe,CAAC;AAEpB;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,iBAAiB,EAM7C,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAM/D,CAAC;AAMX;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,2CAA2C;IAC3C,QAAQ,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CAErF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAE7E"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Agentic QE v3 - Devil's Advocate Agent Types
3
+ * ADR-064, Phase 2C: Type definitions for the Devil's Advocate agent
4
+ *
5
+ * The Devil's Advocate agent challenges other agents' outputs by reviewing
6
+ * test completeness, questioning security scan results, and identifying
7
+ * coverage gaps in claimed results.
8
+ *
9
+ * @module agents/devils-advocate
10
+ */
11
+ /**
12
+ * All valid challenge target types, for runtime validation.
13
+ */
14
+ export const ALL_CHALLENGE_TARGET_TYPES = [
15
+ 'test-generation',
16
+ 'coverage-analysis',
17
+ 'security-scan',
18
+ 'quality-assessment',
19
+ 'defect-prediction',
20
+ 'contract-validation',
21
+ 'requirements',
22
+ ];
23
+ /**
24
+ * All valid challenge severities in descending order of importance.
25
+ * Used for filtering and sorting challenges.
26
+ */
27
+ export const SEVERITY_ORDER = [
28
+ 'critical',
29
+ 'high',
30
+ 'medium',
31
+ 'low',
32
+ 'informational',
33
+ ];
34
+ /**
35
+ * Numeric weight for each severity level, used in score computation.
36
+ * Higher weight means greater negative impact on the overall score.
37
+ */
38
+ export const SEVERITY_WEIGHTS = {
39
+ critical: 0.25,
40
+ high: 0.15,
41
+ medium: 0.08,
42
+ low: 0.03,
43
+ informational: 0.01,
44
+ };
45
+ /**
46
+ * All valid challenge strategy types, for runtime validation.
47
+ */
48
+ export const ALL_CHALLENGE_STRATEGY_TYPES = [
49
+ 'missing-edge-cases',
50
+ 'false-positive-detection',
51
+ 'coverage-gap-critique',
52
+ 'security-blind-spots',
53
+ 'assumption-questioning',
54
+ 'boundary-value-gaps',
55
+ 'error-handling-gaps',
56
+ ];
57
+ /**
58
+ * Default configuration for the Devil's Advocate agent.
59
+ */
60
+ export const DEFAULT_DEVILS_ADVOCATE_CONFIG = {
61
+ minConfidence: 0.3,
62
+ maxChallengesPerReview: 20,
63
+ enabledStrategies: ALL_CHALLENGE_STRATEGY_TYPES,
64
+ minSeverity: 'informational',
65
+ };
66
+ // ============================================================================
67
+ // Type Guards
68
+ // ============================================================================
69
+ /**
70
+ * Check if a string is a valid ChallengeTargetType.
71
+ *
72
+ * @param value - String to check
73
+ * @returns True if value is a valid ChallengeTargetType
74
+ */
75
+ export function isChallengeTargetType(value) {
76
+ return ALL_CHALLENGE_TARGET_TYPES.includes(value);
77
+ }
78
+ /**
79
+ * Check if a string is a valid ChallengeStrategyType.
80
+ *
81
+ * @param value - String to check
82
+ * @returns True if value is a valid ChallengeStrategyType
83
+ */
84
+ export function isChallengeStrategyType(value) {
85
+ return ALL_CHALLENGE_STRATEGY_TYPES.includes(value);
86
+ }
87
+ /**
88
+ * Check if a string is a valid ChallengeSeverity.
89
+ *
90
+ * @param value - String to check
91
+ * @returns True if value is a valid ChallengeSeverity
92
+ */
93
+ export function isChallengeSeverity(value) {
94
+ return SEVERITY_ORDER.includes(value);
95
+ }
96
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/agents/devils-advocate/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAoBH;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAmC;IACxE,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;IACf,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACrB,cAAc;CACN,CAAC;AAqCX;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,UAAU;IACV,MAAM;IACN,QAAQ;IACR,KAAK;IACL,eAAe;CACP,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAgD;IAC3E,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,IAAI;IACZ,GAAG,EAAE,IAAI;IACT,aAAa,EAAE,IAAI;CACX,CAAC;AAwEX;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAqC;IAC5E,oBAAoB;IACpB,0BAA0B;IAC1B,uBAAuB;IACvB,sBAAsB;IACtB,wBAAwB;IACxB,qBAAqB;IACrB,qBAAqB;CACb,CAAC;AAwCX;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAyB;IAClE,aAAa,EAAE,GAAG;IAClB,sBAAsB,EAAE,EAAE;IAC1B,iBAAiB,EAAE,4BAA4B;IAC/C,WAAW,EAAE,eAAe;CACpB,CAAC;AAyBX,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAa;IACjD,OAAQ,0BAAgD,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC3E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa;IACnD,OAAQ,4BAAkD,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,OAAQ,cAAoC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Agentic QE v3 - Agents Layer
3
+ * Specialized QE agents (Devil's Advocate, Claim Verifier)
4
+ *
5
+ * Re-exported as namespaces to avoid name collisions with generic names
6
+ * like "Evidence", "Claim", "Challenge" etc.
7
+ *
8
+ * @module agents
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * import { DevilsAdvocate, ClaimVerifier } from '@agentic-qe/v3/agents';
13
+ *
14
+ * const da = DevilsAdvocate.createDevilsAdvocate();
15
+ * const cv = ClaimVerifier.createClaimVerifierService();
16
+ * ```
17
+ */
18
+ export * as DevilsAdvocate from './devils-advocate/index.js';
19
+ export * as ClaimVerifier from './claim-verifier/index.js';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Agentic QE v3 - Agents Layer
3
+ * Specialized QE agents (Devil's Advocate, Claim Verifier)
4
+ *
5
+ * Re-exported as namespaces to avoid name collisions with generic names
6
+ * like "Evidence", "Claim", "Challenge" etc.
7
+ *
8
+ * @module agents
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * import { DevilsAdvocate, ClaimVerifier } from '@agentic-qe/v3/agents';
13
+ *
14
+ * const da = DevilsAdvocate.createDevilsAdvocate();
15
+ * const cv = ClaimVerifier.createClaimVerifierService();
16
+ * ```
17
+ */
18
+ export * as DevilsAdvocate from './devils-advocate/index.js';
19
+ export * as ClaimVerifier from './claim-verifier/index.js';
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC"}