cc-codeconductor 0.5.0 → 1.1.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 (268) hide show
  1. package/README.md +387 -150
  2. package/dist/cli/errors.d.ts +65 -0
  3. package/dist/core/compilation/compile-checker.d.ts +53 -0
  4. package/dist/core/config/codeconductor-config.d.ts +42 -0
  5. package/dist/core/config/config-loader.d.ts +11 -0
  6. package/dist/core/filesystem/credential-guard.d.ts +18 -0
  7. package/dist/core/goal/goal-planner.d.ts +8 -0
  8. package/dist/core/goal/goal-state.d.ts +15 -0
  9. package/dist/core/loop/git-stats.d.ts +13 -0
  10. package/dist/core/loop/loop-engine.d.ts +82 -0
  11. package/dist/core/memory/episodic-store.d.ts +6 -0
  12. package/dist/core/memory/operational-state.d.ts +6 -0
  13. package/dist/core/orchestrator/runtime-orchestrator.d.ts +25 -0
  14. package/dist/core/planner/product-planner.d.ts +18 -0
  15. package/dist/core/presets/package-paths.d.ts +4 -0
  16. package/dist/core/product-graph/graph-store.d.ts +11 -0
  17. package/dist/core/product-graph/paths.d.ts +18 -0
  18. package/dist/core/verification/verification-runner.d.ts +57 -0
  19. package/dist/domain/loop/loop-state.d.ts +74 -0
  20. package/dist/domain/product/entities.d.ts +11 -0
  21. package/dist/index.d.ts +15 -0
  22. package/dist/index.js +24165 -15800
  23. package/dist/library.js +2744 -0
  24. package/dist/utils/result.d.ts +36 -0
  25. package/dist/validation/schemas.d.ts +4006 -0
  26. package/package.json +18 -2
  27. package/policy.yml +12 -11
  28. package/presets/agy/AGENTS.md +14 -5
  29. package/presets/agy/gates/pre-commit/GATE.md +137 -0
  30. package/presets/agy/skills/backlog/SKILL.md +91 -0
  31. package/presets/agy/skills/cc-fix/SKILL.md +2 -2
  32. package/presets/agy/skills/cc-tdd-cycle/SKILL.md +11 -0
  33. package/presets/agy/skills/openspec/SKILL.md +5 -1
  34. package/presets/agy/skills/security-ai-llm/SKILL.md +43 -0
  35. package/presets/agy/skills/security-blue-team/SKILL.md +43 -0
  36. package/presets/agy/skills/security-cloud/SKILL.md +43 -0
  37. package/presets/agy/skills/security-crypto/SKILL.md +43 -0
  38. package/presets/agy/skills/security-exploit-dev/SKILL.md +45 -0
  39. package/presets/agy/skills/security-grc/SKILL.md +43 -0
  40. package/presets/agy/skills/security-incident-response/SKILL.md +45 -0
  41. package/presets/agy/skills/security-log-analysis/SKILL.md +43 -0
  42. package/presets/agy/skills/security-malware-analysis/SKILL.md +44 -0
  43. package/presets/agy/skills/security-mobile/SKILL.md +43 -0
  44. package/presets/agy/skills/security-network/SKILL.md +43 -0
  45. package/presets/agy/skills/security-ot-ics/SKILL.md +43 -0
  46. package/presets/agy/skills/security-recon/SKILL.md +45 -0
  47. package/presets/agy/skills/security-red-team/SKILL.md +44 -0
  48. package/presets/agy/skills/security-reverse-engineering/SKILL.md +44 -0
  49. package/presets/agy/skills/security-soc-automation/SKILL.md +43 -0
  50. package/presets/agy/skills/security-threat-hunting/SKILL.md +43 -0
  51. package/presets/agy/skills/security-vuln-assessment/SKILL.md +45 -0
  52. package/presets/agy/skills/security-web/SKILL.md +44 -0
  53. package/presets/agy/workflows/cc-api-contract.md +12 -0
  54. package/presets/agy/workflows/cc-ask.md +56 -0
  55. package/presets/agy/workflows/cc-backlog.md +69 -0
  56. package/presets/agy/workflows/cc-clarify.md +33 -0
  57. package/presets/agy/workflows/cc-council.md +31 -7
  58. package/presets/agy/workflows/cc-db-migration.md +22 -9
  59. package/presets/agy/workflows/cc-explore.md +37 -0
  60. package/presets/agy/workflows/cc-feature.md +41 -19
  61. package/presets/agy/workflows/cc-fix.md +50 -23
  62. package/presets/agy/workflows/cc-handoff.md +42 -0
  63. package/presets/agy/workflows/cc-iterative.md +128 -0
  64. package/presets/agy/workflows/cc-openspec.md +16 -1
  65. package/presets/agy/workflows/cc-pagespeed.md +12 -0
  66. package/presets/agy/workflows/cc-prototype.md +39 -0
  67. package/presets/agy/workflows/cc-refactor.md +12 -0
  68. package/presets/agy/workflows/cc-review.md +12 -0
  69. package/presets/agy/workflows/cc-scorecard.md +12 -0
  70. package/presets/agy/workflows/cc-security.md +180 -0
  71. package/presets/agy/workflows/cc-tdd-cycle.md +24 -0
  72. package/presets/agy/workflows/cc-test-plan.md +12 -0
  73. package/presets/agy/workflows/cc-triage.md +35 -0
  74. package/presets/claude/CLAUDE.md +68 -0
  75. package/presets/claude/commands/cc/api-contract.md +12 -0
  76. package/presets/claude/commands/cc/ask.md +56 -0
  77. package/presets/claude/commands/cc/backlog.md +104 -0
  78. package/presets/claude/commands/cc/clarify.md +32 -0
  79. package/presets/claude/commands/cc/council.md +87 -0
  80. package/presets/claude/commands/cc/db-migration.md +22 -9
  81. package/presets/claude/commands/cc/explore.md +36 -0
  82. package/presets/claude/commands/cc/feature.md +49 -22
  83. package/presets/claude/commands/cc/fix.md +74 -20
  84. package/presets/claude/commands/cc/handoff.md +44 -0
  85. package/presets/claude/commands/cc/iterative.md +132 -0
  86. package/presets/claude/commands/cc/openspec.md +41 -1
  87. package/presets/claude/commands/cc/pagespeed.md +12 -0
  88. package/presets/claude/commands/cc/prototype.md +38 -0
  89. package/presets/claude/commands/cc/refactor.md +152 -1
  90. package/presets/claude/commands/cc/review.md +78 -16
  91. package/presets/claude/commands/cc/scorecard.md +12 -0
  92. package/presets/claude/commands/cc/security.md +179 -0
  93. package/presets/claude/commands/cc/tdd-cycle.md +53 -3
  94. package/presets/claude/commands/cc/test-plan.md +12 -0
  95. package/presets/claude/commands/cc/triage.md +34 -0
  96. package/presets/claude/gates/pre-commit/GATE.md +137 -0
  97. package/presets/claude/settings.json +8 -46
  98. package/presets/claude/skills/backlog/SKILL.md +91 -0
  99. package/presets/claude/skills/openspec/SKILL.md +5 -1
  100. package/presets/claude/skills/security/SKILL.md +382 -0
  101. package/presets/claude/skills/security-ai-llm/SKILL.md +43 -0
  102. package/presets/claude/skills/security-blue-team/SKILL.md +43 -0
  103. package/presets/claude/skills/security-cloud/SKILL.md +43 -0
  104. package/presets/claude/skills/security-crypto/SKILL.md +43 -0
  105. package/presets/claude/skills/security-exploit-dev/SKILL.md +45 -0
  106. package/presets/claude/skills/security-grc/SKILL.md +43 -0
  107. package/presets/claude/skills/security-incident-response/SKILL.md +45 -0
  108. package/presets/claude/skills/security-log-analysis/SKILL.md +43 -0
  109. package/presets/claude/skills/security-malware-analysis/SKILL.md +44 -0
  110. package/presets/claude/skills/security-mobile/SKILL.md +43 -0
  111. package/presets/claude/skills/security-network/SKILL.md +43 -0
  112. package/presets/claude/skills/security-ot-ics/SKILL.md +43 -0
  113. package/presets/claude/skills/security-recon/SKILL.md +45 -0
  114. package/presets/claude/skills/security-red-team/SKILL.md +44 -0
  115. package/presets/claude/skills/security-reverse-engineering/SKILL.md +44 -0
  116. package/presets/claude/skills/security-soc-automation/SKILL.md +43 -0
  117. package/presets/claude/skills/security-threat-hunting/SKILL.md +43 -0
  118. package/presets/claude/skills/security-vuln-assessment/SKILL.md +45 -0
  119. package/presets/claude/skills/security-web/SKILL.md +44 -0
  120. package/presets/codex/AGENTS.md +6 -6
  121. package/presets/codex/commands/cc-ask.md +56 -0
  122. package/presets/codex/gates/pre-commit/GATE.md +137 -0
  123. package/presets/cursor/AGENTS.md +8 -8
  124. package/presets/cursor/agents/business-agent.md +44 -0
  125. package/presets/cursor/agents/continuous-architect.md +37 -0
  126. package/presets/cursor/agents/docs.md +1 -0
  127. package/presets/cursor/agents/goal-planner.md +1 -1
  128. package/presets/cursor/agents/impact-analyst.md +43 -0
  129. package/presets/cursor/agents/orchestrator.md +6 -6
  130. package/presets/cursor/commands/cc/api-contract.md +12 -0
  131. package/presets/cursor/commands/cc/ask.md +56 -0
  132. package/presets/cursor/commands/cc/backlog.md +105 -0
  133. package/presets/cursor/commands/cc/clarify.md +32 -0
  134. package/presets/cursor/commands/cc/council.md +87 -0
  135. package/presets/cursor/commands/cc/db-migration.md +22 -9
  136. package/presets/cursor/commands/cc/explore.md +36 -0
  137. package/presets/cursor/commands/cc/feature.md +41 -19
  138. package/presets/cursor/commands/cc/fix.md +47 -20
  139. package/presets/cursor/commands/cc/handoff.md +41 -0
  140. package/presets/cursor/commands/cc/iterative.md +133 -0
  141. package/presets/cursor/commands/cc/openspec.md +38 -8
  142. package/presets/cursor/commands/cc/pagespeed.md +12 -0
  143. package/presets/cursor/commands/cc/prototype.md +38 -0
  144. package/presets/cursor/commands/cc/refactor.md +12 -0
  145. package/presets/cursor/commands/cc/review.md +12 -0
  146. package/presets/cursor/commands/cc/scorecard.md +12 -0
  147. package/presets/cursor/commands/cc/security.md +179 -0
  148. package/presets/cursor/commands/cc/tdd-cycle.md +24 -0
  149. package/presets/cursor/commands/cc/test-plan.md +12 -0
  150. package/presets/cursor/commands/cc/triage.md +34 -0
  151. package/presets/cursor/gates/pre-commit/GATE.md +137 -0
  152. package/presets/cursor/rules/orchestration.mdc +1 -1
  153. package/presets/cursor/skills/backlog/SKILL.md +91 -0
  154. package/presets/cursor/skills/openspec/SKILL.md +5 -1
  155. package/presets/cursor/skills/security-ai-llm/SKILL.md +43 -0
  156. package/presets/cursor/skills/security-blue-team/SKILL.md +43 -0
  157. package/presets/cursor/skills/security-cloud/SKILL.md +43 -0
  158. package/presets/cursor/skills/security-crypto/SKILL.md +43 -0
  159. package/presets/cursor/skills/security-exploit-dev/SKILL.md +45 -0
  160. package/presets/cursor/skills/security-grc/SKILL.md +43 -0
  161. package/presets/cursor/skills/security-incident-response/SKILL.md +45 -0
  162. package/presets/cursor/skills/security-log-analysis/SKILL.md +43 -0
  163. package/presets/cursor/skills/security-malware-analysis/SKILL.md +44 -0
  164. package/presets/cursor/skills/security-mobile/SKILL.md +43 -0
  165. package/presets/cursor/skills/security-network/SKILL.md +43 -0
  166. package/presets/cursor/skills/security-ot-ics/SKILL.md +43 -0
  167. package/presets/cursor/skills/security-recon/SKILL.md +45 -0
  168. package/presets/cursor/skills/security-red-team/SKILL.md +44 -0
  169. package/presets/cursor/skills/security-reverse-engineering/SKILL.md +44 -0
  170. package/presets/cursor/skills/security-soc-automation/SKILL.md +43 -0
  171. package/presets/cursor/skills/security-threat-hunting/SKILL.md +43 -0
  172. package/presets/cursor/skills/security-vuln-assessment/SKILL.md +45 -0
  173. package/presets/cursor/skills/security-web/SKILL.md +44 -0
  174. package/presets/opencode/agents/architect.md +22 -1
  175. package/presets/opencode/agents/complexity-auditor.md +16 -1
  176. package/presets/opencode/agents/contract-builder.md +17 -1
  177. package/presets/opencode/agents/devil.md +158 -0
  178. package/presets/opencode/agents/docs.md +19 -1
  179. package/presets/opencode/agents/goal-planner.md +32 -2
  180. package/presets/opencode/agents/implementer.md +32 -2
  181. package/presets/opencode/agents/orchestrator.md +79 -12
  182. package/presets/opencode/agents/planner.md +61 -0
  183. package/presets/opencode/agents/repo-explorer.md +16 -0
  184. package/presets/opencode/agents/reviewer.md +33 -3
  185. package/presets/opencode/agents/security-reviewer.md +31 -1
  186. package/presets/opencode/agents/task-coach.md +69 -1
  187. package/presets/opencode/agents/tester.md +18 -1
  188. package/presets/opencode/commands/cc-api-contract.md +12 -0
  189. package/presets/opencode/commands/cc-ask.md +56 -0
  190. package/presets/opencode/commands/cc-backlog.md +68 -0
  191. package/presets/opencode/commands/cc-clarify.md +31 -0
  192. package/presets/opencode/commands/cc-council.md +87 -0
  193. package/presets/opencode/commands/cc-db-migration.md +22 -9
  194. package/presets/opencode/commands/cc-explore.md +35 -0
  195. package/presets/opencode/commands/cc-feature.md +41 -19
  196. package/presets/opencode/commands/cc-fix.md +50 -23
  197. package/presets/opencode/commands/cc-handoff.md +40 -0
  198. package/presets/opencode/commands/cc-iterative.md +127 -0
  199. package/presets/opencode/commands/cc-openspec.md +16 -1
  200. package/presets/opencode/commands/cc-pagespeed.md +12 -0
  201. package/presets/opencode/commands/cc-prototype.md +37 -0
  202. package/presets/opencode/commands/cc-refactor.md +12 -0
  203. package/presets/opencode/commands/cc-review.md +12 -0
  204. package/presets/opencode/commands/cc-scorecard.md +12 -0
  205. package/presets/opencode/commands/cc-security.md +179 -0
  206. package/presets/opencode/commands/cc-tdd-cycle.md +24 -0
  207. package/presets/opencode/commands/cc-test-plan.md +12 -0
  208. package/presets/opencode/commands/cc-triage.md +33 -0
  209. package/presets/opencode/gates/pre-commit/GATE.md +137 -0
  210. package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +11 -0
  211. package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +11 -0
  212. package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +11 -0
  213. package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +11 -0
  214. package/presets/opencode/prompts/v0.5.0/goal-planner.md +1 -1
  215. package/presets/opencode/prompts/v0.5.0/orchestrator.md +6 -6
  216. package/presets/opencode/prompts/v0.6.0/implementer.md +35 -0
  217. package/presets/opencode/prompts/v0.6.0/planner.md +36 -0
  218. package/presets/opencode/prompts/v0.6.0/reviewer.md +40 -0
  219. package/presets/opencode/prompts/v1.0.0/README.md +47 -0
  220. package/presets/opencode/prompts/v1.0.0/architect.md +259 -0
  221. package/presets/opencode/prompts/v1.0.0/complexity-auditor.md +116 -0
  222. package/presets/opencode/prompts/v1.0.0/contract-builder.md +120 -0
  223. package/presets/opencode/prompts/v1.0.0/devil.md +169 -0
  224. package/presets/opencode/prompts/v1.0.0/docs.md +229 -0
  225. package/presets/opencode/prompts/v1.0.0/goal-planner.md +123 -0
  226. package/presets/opencode/prompts/v1.0.0/implementer.md +228 -0
  227. package/presets/opencode/prompts/v1.0.0/orchestrator.md +474 -0
  228. package/presets/opencode/prompts/v1.0.0/planner.md +72 -0
  229. package/presets/opencode/prompts/v1.0.0/repo-explorer.md +147 -0
  230. package/presets/opencode/prompts/v1.0.0/reviewer.md +295 -0
  231. package/presets/opencode/prompts/v1.0.0/security-reviewer.md +170 -0
  232. package/presets/opencode/prompts/v1.0.0/task-coach.md +235 -0
  233. package/presets/opencode/prompts/v1.0.0/tester.md +298 -0
  234. package/presets/opencode/skills/backlog/SKILL.md +91 -0
  235. package/presets/opencode/skills/openspec/SKILL.md +5 -1
  236. package/presets/opencode/skills/security-ai-llm/SKILL.md +43 -0
  237. package/presets/opencode/skills/security-blue-team/SKILL.md +43 -0
  238. package/presets/opencode/skills/security-cloud/SKILL.md +43 -0
  239. package/presets/opencode/skills/security-crypto/SKILL.md +43 -0
  240. package/presets/opencode/skills/security-exploit-dev/SKILL.md +45 -0
  241. package/presets/opencode/skills/security-grc/SKILL.md +43 -0
  242. package/presets/opencode/skills/security-incident-response/SKILL.md +45 -0
  243. package/presets/opencode/skills/security-log-analysis/SKILL.md +43 -0
  244. package/presets/opencode/skills/security-malware-analysis/SKILL.md +44 -0
  245. package/presets/opencode/skills/security-mobile/SKILL.md +43 -0
  246. package/presets/opencode/skills/security-network/SKILL.md +43 -0
  247. package/presets/opencode/skills/security-ot-ics/SKILL.md +43 -0
  248. package/presets/opencode/skills/security-recon/SKILL.md +45 -0
  249. package/presets/opencode/skills/security-red-team/SKILL.md +44 -0
  250. package/presets/opencode/skills/security-reverse-engineering/SKILL.md +44 -0
  251. package/presets/opencode/skills/security-soc-automation/SKILL.md +43 -0
  252. package/presets/opencode/skills/security-threat-hunting/SKILL.md +43 -0
  253. package/presets/opencode/skills/security-vuln-assessment/SKILL.md +45 -0
  254. package/presets/opencode/skills/security-web/SKILL.md +44 -0
  255. package/presets/seo-hotel/settings.json +0 -17
  256. package/src/presets/council/council.yml +12 -0
  257. package/src/presets/manifests/agy.yml +2 -2
  258. package/src/presets/manifests/claude.yml +2 -2
  259. package/src/presets/manifests/codex.yml +2 -2
  260. package/src/presets/manifests/cursor.yml +2 -2
  261. package/src/presets/manifests/gemini.yml +2 -2
  262. package/src/presets/manifests/opencode.yml +2 -2
  263. package/src/presets/models/agy.yml +93 -66
  264. package/src/presets/models/claude.yml +79 -53
  265. package/src/presets/models/codex.yml +79 -54
  266. package/src/presets/models/cursor.yml +72 -58
  267. package/src/presets/models/gemini.yml +79 -53
  268. package/src/presets/models/opencode.yml +72 -46
@@ -0,0 +1,4006 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Council agent spec schema
4
+ */
5
+ export declare const CouncilAgentSpecSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ role: z.ZodString;
8
+ context: z.ZodEnum<["repo-readonly", "prompt-only"]>;
9
+ modelHint: z.ZodEnum<["strong-reasoning", "security-reasoning", "balanced", "practical-coding", "analytical", "adversarial"]>;
10
+ focus: z.ZodArray<z.ZodString, "many">;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ role: string;
14
+ context: "repo-readonly" | "prompt-only";
15
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
16
+ focus: string[];
17
+ }, {
18
+ id: string;
19
+ role: string;
20
+ context: "repo-readonly" | "prompt-only";
21
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
22
+ focus: string[];
23
+ }>;
24
+ /**
25
+ * Council spec schema
26
+ */
27
+ export declare const CouncilSpecSchema: z.ZodObject<{
28
+ name: z.ZodString;
29
+ version: z.ZodString;
30
+ description: z.ZodString;
31
+ outputContract: z.ZodString;
32
+ agents: z.ZodEffects<z.ZodArray<z.ZodObject<{
33
+ id: z.ZodString;
34
+ role: z.ZodString;
35
+ context: z.ZodEnum<["repo-readonly", "prompt-only"]>;
36
+ modelHint: z.ZodEnum<["strong-reasoning", "security-reasoning", "balanced", "practical-coding", "analytical", "adversarial"]>;
37
+ focus: z.ZodArray<z.ZodString, "many">;
38
+ }, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ role: string;
41
+ context: "repo-readonly" | "prompt-only";
42
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
43
+ focus: string[];
44
+ }, {
45
+ id: string;
46
+ role: string;
47
+ context: "repo-readonly" | "prompt-only";
48
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
49
+ focus: string[];
50
+ }>, "many">, {
51
+ id: string;
52
+ role: string;
53
+ context: "repo-readonly" | "prompt-only";
54
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
55
+ focus: string[];
56
+ }[], {
57
+ id: string;
58
+ role: string;
59
+ context: "repo-readonly" | "prompt-only";
60
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
61
+ focus: string[];
62
+ }[]>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ name: string;
65
+ version: string;
66
+ description: string;
67
+ outputContract: string;
68
+ agents: {
69
+ id: string;
70
+ role: string;
71
+ context: "repo-readonly" | "prompt-only";
72
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
73
+ focus: string[];
74
+ }[];
75
+ }, {
76
+ name: string;
77
+ version: string;
78
+ description: string;
79
+ outputContract: string;
80
+ agents: {
81
+ id: string;
82
+ role: string;
83
+ context: "repo-readonly" | "prompt-only";
84
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
85
+ focus: string[];
86
+ }[];
87
+ }>;
88
+ /**
89
+ * Project profile schema
90
+ */
91
+ export declare const ProjectProfileSchema: z.ZodObject<{
92
+ rootDir: z.ZodString;
93
+ languages: z.ZodArray<z.ZodString, "many">;
94
+ runtimes: z.ZodArray<z.ZodString, "many">;
95
+ packageManagers: z.ZodArray<z.ZodString, "many">;
96
+ frameworks: z.ZodArray<z.ZodString, "many">;
97
+ signals: z.ZodArray<z.ZodString, "many">;
98
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ rootDir: string;
101
+ languages: string[];
102
+ runtimes: string[];
103
+ packageManagers: string[];
104
+ frameworks: string[];
105
+ signals: string[];
106
+ confidence: "low" | "medium" | "high";
107
+ }, {
108
+ rootDir: string;
109
+ languages: string[];
110
+ runtimes: string[];
111
+ packageManagers: string[];
112
+ frameworks: string[];
113
+ signals: string[];
114
+ confidence: "low" | "medium" | "high";
115
+ }>;
116
+ /**
117
+ * Compile check config schema — validates the compileCheck section.
118
+ *
119
+ * `command` is a string from the analyzed repo. Verification only executes it
120
+ * when `--allow-compile-check` is set or the argv matches the compile allowlist.
121
+ */
122
+ export declare const CompileCheckConfigSchema: z.ZodObject<{
123
+ enabled: z.ZodBoolean;
124
+ command: z.ZodOptional<z.ZodString>;
125
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ enabled: boolean;
128
+ command?: string | undefined;
129
+ timeoutMs?: number | undefined;
130
+ }, {
131
+ enabled: boolean;
132
+ command?: string | undefined;
133
+ timeoutMs?: number | undefined;
134
+ }>;
135
+ /**
136
+ * Loop config schema — validates the loop section for compile-fix iteration
137
+ */
138
+ export declare const LoopConfigSchema: z.ZodObject<{
139
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
140
+ maxIterations: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
141
+ maxTokenBudget: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
142
+ compaction: z.ZodOptional<z.ZodObject<{
143
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
144
+ historyFile: z.ZodOptional<z.ZodString>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ enabled: boolean;
147
+ historyFile?: string | undefined;
148
+ }, {
149
+ enabled?: boolean | undefined;
150
+ historyFile?: string | undefined;
151
+ }>>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ enabled: boolean;
154
+ maxIterations: number;
155
+ maxTokenBudget: number;
156
+ compaction?: {
157
+ enabled: boolean;
158
+ historyFile?: string | undefined;
159
+ } | undefined;
160
+ }, {
161
+ enabled?: boolean | undefined;
162
+ maxIterations?: number | undefined;
163
+ maxTokenBudget?: number | undefined;
164
+ compaction?: {
165
+ enabled?: boolean | undefined;
166
+ historyFile?: string | undefined;
167
+ } | undefined;
168
+ }>;
169
+ /**
170
+ * CodeConductor config schema
171
+ */
172
+ export declare const CodeConductorConfigSchema: z.ZodObject<{
173
+ version: z.ZodString;
174
+ project: z.ZodObject<{
175
+ name: z.ZodString;
176
+ profile: z.ZodOptional<z.ZodString>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ name: string;
179
+ profile?: string | undefined;
180
+ }, {
181
+ name: string;
182
+ profile?: string | undefined;
183
+ }>;
184
+ defaults: z.ZodObject<{
185
+ target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy"]>;
186
+ overwrite: z.ZodBoolean;
187
+ locale: z.ZodDefault<z.ZodOptional<z.ZodEnum<["en", "es"]>>>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
190
+ overwrite: boolean;
191
+ locale: "en" | "es";
192
+ }, {
193
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
194
+ overwrite: boolean;
195
+ locale?: "en" | "es" | undefined;
196
+ }>;
197
+ presets: z.ZodObject<{
198
+ council: z.ZodObject<{
199
+ enabled: z.ZodBoolean;
200
+ version: z.ZodString;
201
+ }, "strip", z.ZodTypeAny, {
202
+ version: string;
203
+ enabled: boolean;
204
+ }, {
205
+ version: string;
206
+ enabled: boolean;
207
+ }>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ council: {
210
+ version: string;
211
+ enabled: boolean;
212
+ };
213
+ }, {
214
+ council: {
215
+ version: string;
216
+ enabled: boolean;
217
+ };
218
+ }>;
219
+ safety: z.ZodObject<{
220
+ destructiveCommands: z.ZodArray<z.ZodString, "many">;
221
+ secretPatterns: z.ZodArray<z.ZodString, "many">;
222
+ compileCheck: z.ZodOptional<z.ZodObject<{
223
+ enabled: z.ZodBoolean;
224
+ command: z.ZodOptional<z.ZodString>;
225
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ enabled: boolean;
228
+ command?: string | undefined;
229
+ timeoutMs?: number | undefined;
230
+ }, {
231
+ enabled: boolean;
232
+ command?: string | undefined;
233
+ timeoutMs?: number | undefined;
234
+ }>>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ destructiveCommands: string[];
237
+ secretPatterns: string[];
238
+ compileCheck?: {
239
+ enabled: boolean;
240
+ command?: string | undefined;
241
+ timeoutMs?: number | undefined;
242
+ } | undefined;
243
+ }, {
244
+ destructiveCommands: string[];
245
+ secretPatterns: string[];
246
+ compileCheck?: {
247
+ enabled: boolean;
248
+ command?: string | undefined;
249
+ timeoutMs?: number | undefined;
250
+ } | undefined;
251
+ }>;
252
+ loop: z.ZodOptional<z.ZodObject<{
253
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
254
+ maxIterations: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
255
+ maxTokenBudget: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
256
+ compaction: z.ZodOptional<z.ZodObject<{
257
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
258
+ historyFile: z.ZodOptional<z.ZodString>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ enabled: boolean;
261
+ historyFile?: string | undefined;
262
+ }, {
263
+ enabled?: boolean | undefined;
264
+ historyFile?: string | undefined;
265
+ }>>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ enabled: boolean;
268
+ maxIterations: number;
269
+ maxTokenBudget: number;
270
+ compaction?: {
271
+ enabled: boolean;
272
+ historyFile?: string | undefined;
273
+ } | undefined;
274
+ }, {
275
+ enabled?: boolean | undefined;
276
+ maxIterations?: number | undefined;
277
+ maxTokenBudget?: number | undefined;
278
+ compaction?: {
279
+ enabled?: boolean | undefined;
280
+ historyFile?: string | undefined;
281
+ } | undefined;
282
+ }>>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ version: string;
285
+ project: {
286
+ name: string;
287
+ profile?: string | undefined;
288
+ };
289
+ defaults: {
290
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
291
+ overwrite: boolean;
292
+ locale: "en" | "es";
293
+ };
294
+ presets: {
295
+ council: {
296
+ version: string;
297
+ enabled: boolean;
298
+ };
299
+ };
300
+ safety: {
301
+ destructiveCommands: string[];
302
+ secretPatterns: string[];
303
+ compileCheck?: {
304
+ enabled: boolean;
305
+ command?: string | undefined;
306
+ timeoutMs?: number | undefined;
307
+ } | undefined;
308
+ };
309
+ loop?: {
310
+ enabled: boolean;
311
+ maxIterations: number;
312
+ maxTokenBudget: number;
313
+ compaction?: {
314
+ enabled: boolean;
315
+ historyFile?: string | undefined;
316
+ } | undefined;
317
+ } | undefined;
318
+ }, {
319
+ version: string;
320
+ project: {
321
+ name: string;
322
+ profile?: string | undefined;
323
+ };
324
+ defaults: {
325
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
326
+ overwrite: boolean;
327
+ locale?: "en" | "es" | undefined;
328
+ };
329
+ presets: {
330
+ council: {
331
+ version: string;
332
+ enabled: boolean;
333
+ };
334
+ };
335
+ safety: {
336
+ destructiveCommands: string[];
337
+ secretPatterns: string[];
338
+ compileCheck?: {
339
+ enabled: boolean;
340
+ command?: string | undefined;
341
+ timeoutMs?: number | undefined;
342
+ } | undefined;
343
+ };
344
+ loop?: {
345
+ enabled?: boolean | undefined;
346
+ maxIterations?: number | undefined;
347
+ maxTokenBudget?: number | undefined;
348
+ compaction?: {
349
+ enabled?: boolean | undefined;
350
+ historyFile?: string | undefined;
351
+ } | undefined;
352
+ } | undefined;
353
+ }>;
354
+ /**
355
+ * Runner target schema
356
+ */
357
+ export declare const RunnerTargetSchema: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy", "all"]>;
358
+ /**
359
+ * Install manifest schemas
360
+ */
361
+ export declare const InstallStrategySchema: z.ZodEnum<["overwrite", "append", "merge-json", "merge-managed", "skip"]>;
362
+ export declare const ManifestEntrySchema: z.ZodObject<{
363
+ src: z.ZodString;
364
+ dest: z.ZodString;
365
+ strategy: z.ZodEnum<["overwrite", "append", "merge-json", "merge-managed", "skip"]>;
366
+ globalStrategy: z.ZodOptional<z.ZodEnum<["overwrite", "append", "merge-json", "merge-managed", "skip"]>>;
367
+ template: z.ZodOptional<z.ZodBoolean>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ src: string;
370
+ dest: string;
371
+ strategy: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip";
372
+ globalStrategy?: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip" | undefined;
373
+ template?: boolean | undefined;
374
+ }, {
375
+ src: string;
376
+ dest: string;
377
+ strategy: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip";
378
+ globalStrategy?: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip" | undefined;
379
+ template?: boolean | undefined;
380
+ }>;
381
+ export declare const InstallManifestSchema: z.ZodObject<{
382
+ target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy"]>;
383
+ entries: z.ZodArray<z.ZodObject<{
384
+ src: z.ZodString;
385
+ dest: z.ZodString;
386
+ strategy: z.ZodEnum<["overwrite", "append", "merge-json", "merge-managed", "skip"]>;
387
+ globalStrategy: z.ZodOptional<z.ZodEnum<["overwrite", "append", "merge-json", "merge-managed", "skip"]>>;
388
+ template: z.ZodOptional<z.ZodBoolean>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ src: string;
391
+ dest: string;
392
+ strategy: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip";
393
+ globalStrategy?: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip" | undefined;
394
+ template?: boolean | undefined;
395
+ }, {
396
+ src: string;
397
+ dest: string;
398
+ strategy: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip";
399
+ globalStrategy?: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip" | undefined;
400
+ template?: boolean | undefined;
401
+ }>, "many">;
402
+ }, "strip", z.ZodTypeAny, {
403
+ entries: {
404
+ src: string;
405
+ dest: string;
406
+ strategy: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip";
407
+ globalStrategy?: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip" | undefined;
408
+ template?: boolean | undefined;
409
+ }[];
410
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
411
+ }, {
412
+ entries: {
413
+ src: string;
414
+ dest: string;
415
+ strategy: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip";
416
+ globalStrategy?: "overwrite" | "append" | "merge-json" | "merge-managed" | "skip" | undefined;
417
+ template?: boolean | undefined;
418
+ }[];
419
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
420
+ }>;
421
+ /**
422
+ * Tool provider names schema — maps base tool names to provider-specific names
423
+ */
424
+ export declare const ToolProviderNamesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
425
+ export declare const PermissionProviderNamesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
426
+ /**
427
+ * Model config schema — defines model names per provider per agent role
428
+ */
429
+ export declare const ModelConfigSchema: z.ZodObject<{
430
+ target: z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy"]>;
431
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
432
+ claude: z.ZodOptional<z.ZodString>;
433
+ opencode: z.ZodOptional<z.ZodString>;
434
+ codex: z.ZodOptional<z.ZodString>;
435
+ gemini: z.ZodOptional<z.ZodString>;
436
+ cursor: z.ZodOptional<z.ZodString>;
437
+ agy: z.ZodOptional<z.ZodString>;
438
+ grok: z.ZodOptional<z.ZodString>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ opencode?: string | undefined;
441
+ claude?: string | undefined;
442
+ codex?: string | undefined;
443
+ gemini?: string | undefined;
444
+ cursor?: string | undefined;
445
+ agy?: string | undefined;
446
+ grok?: string | undefined;
447
+ }, {
448
+ opencode?: string | undefined;
449
+ claude?: string | undefined;
450
+ codex?: string | undefined;
451
+ gemini?: string | undefined;
452
+ cursor?: string | undefined;
453
+ agy?: string | undefined;
454
+ grok?: string | undefined;
455
+ }>>;
456
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
457
+ permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ agents: Record<string, {
460
+ opencode?: string | undefined;
461
+ claude?: string | undefined;
462
+ codex?: string | undefined;
463
+ gemini?: string | undefined;
464
+ cursor?: string | undefined;
465
+ agy?: string | undefined;
466
+ grok?: string | undefined;
467
+ }>;
468
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
469
+ tools?: Record<string, Record<string, string>> | undefined;
470
+ permissions?: Record<string, string> | undefined;
471
+ }, {
472
+ agents: Record<string, {
473
+ opencode?: string | undefined;
474
+ claude?: string | undefined;
475
+ codex?: string | undefined;
476
+ gemini?: string | undefined;
477
+ cursor?: string | undefined;
478
+ agy?: string | undefined;
479
+ grok?: string | undefined;
480
+ }>;
481
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
482
+ tools?: Record<string, Record<string, string>> | undefined;
483
+ permissions?: Record<string, string> | undefined;
484
+ }>;
485
+ export type ModelConfig = z.infer<typeof ModelConfigSchema>;
486
+ /**
487
+ * Type exports
488
+ */
489
+ export type InstallStrategy = z.infer<typeof InstallStrategySchema>;
490
+ export type ManifestEntry = z.infer<typeof ManifestEntrySchema>;
491
+ export type InstallManifest = z.infer<typeof InstallManifestSchema>;
492
+ export type CouncilAgentSpecInput = z.infer<typeof CouncilAgentSpecSchema>;
493
+ export type CouncilSpecInput = z.infer<typeof CouncilSpecSchema>;
494
+ export type ProjectProfileInput = z.infer<typeof ProjectProfileSchema>;
495
+ export type CodeConductorConfigInput = z.infer<typeof CodeConductorConfigSchema>;
496
+ export type CompileCheckConfigInput = z.infer<typeof CompileCheckConfigSchema>;
497
+ export type LoopConfigInput = z.infer<typeof LoopConfigSchema>;
498
+ export type RunnerTargetInput = z.infer<typeof RunnerTargetSchema>;
499
+ /**
500
+ * Validate council spec
501
+ */
502
+ export declare function validateCouncilSpec(data: unknown): CouncilSpecInput;
503
+ /**
504
+ * Validate project profile
505
+ */
506
+ export declare function validateProjectProfile(data: unknown): ProjectProfileInput;
507
+ /**
508
+ * Validate config
509
+ */
510
+ export declare function validateConfig(data: unknown): CodeConductorConfigInput;
511
+ /**
512
+ * Validate runner target
513
+ */
514
+ export declare function validateRunnerTarget(data: unknown): RunnerTargetInput;
515
+ /**
516
+ * Validate model configuration
517
+ */
518
+ export declare function validateModelConfig(data: unknown): ModelConfig;
519
+ /**
520
+ * Contract target enum
521
+ */
522
+ export declare const ContractTargetSchema: z.ZodEnum<["claude", "opencode", "codex", "gemini", "cursor", "agy"]>;
523
+ /**
524
+ * Contract format schema — a target with optional render options
525
+ */
526
+ export declare const ContractFormatSchema: z.ZodObject<{
527
+ target: z.ZodEnum<["claude", "opencode", "codex", "gemini", "cursor", "agy"]>;
528
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
531
+ options?: Record<string, unknown> | undefined;
532
+ }, {
533
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
534
+ options?: Record<string, unknown> | undefined;
535
+ }>;
536
+ /**
537
+ * Agent contract schema — provider-agnostic contract definition
538
+ */
539
+ export declare const AgentContractSchema: z.ZodObject<{
540
+ council: z.ZodObject<{
541
+ name: z.ZodString;
542
+ version: z.ZodString;
543
+ description: z.ZodString;
544
+ outputContract: z.ZodString;
545
+ agents: z.ZodEffects<z.ZodArray<z.ZodObject<{
546
+ id: z.ZodString;
547
+ role: z.ZodString;
548
+ context: z.ZodEnum<["repo-readonly", "prompt-only"]>;
549
+ modelHint: z.ZodEnum<["strong-reasoning", "security-reasoning", "balanced", "practical-coding", "analytical", "adversarial"]>;
550
+ focus: z.ZodArray<z.ZodString, "many">;
551
+ }, "strip", z.ZodTypeAny, {
552
+ id: string;
553
+ role: string;
554
+ context: "repo-readonly" | "prompt-only";
555
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
556
+ focus: string[];
557
+ }, {
558
+ id: string;
559
+ role: string;
560
+ context: "repo-readonly" | "prompt-only";
561
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
562
+ focus: string[];
563
+ }>, "many">, {
564
+ id: string;
565
+ role: string;
566
+ context: "repo-readonly" | "prompt-only";
567
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
568
+ focus: string[];
569
+ }[], {
570
+ id: string;
571
+ role: string;
572
+ context: "repo-readonly" | "prompt-only";
573
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
574
+ focus: string[];
575
+ }[]>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ name: string;
578
+ version: string;
579
+ description: string;
580
+ outputContract: string;
581
+ agents: {
582
+ id: string;
583
+ role: string;
584
+ context: "repo-readonly" | "prompt-only";
585
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
586
+ focus: string[];
587
+ }[];
588
+ }, {
589
+ name: string;
590
+ version: string;
591
+ description: string;
592
+ outputContract: string;
593
+ agents: {
594
+ id: string;
595
+ role: string;
596
+ context: "repo-readonly" | "prompt-only";
597
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
598
+ focus: string[];
599
+ }[];
600
+ }>;
601
+ targets: z.ZodArray<z.ZodObject<{
602
+ target: z.ZodEnum<["claude", "opencode", "codex", "gemini", "cursor", "agy"]>;
603
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
606
+ options?: Record<string, unknown> | undefined;
607
+ }, {
608
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
609
+ options?: Record<string, unknown> | undefined;
610
+ }>, "many">;
611
+ contractVersion: z.ZodString;
612
+ renderHints: z.ZodOptional<z.ZodRecord<z.ZodEnum<["claude", "opencode", "codex", "gemini", "cursor", "agy"]>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
613
+ }, "strip", z.ZodTypeAny, {
614
+ council: {
615
+ name: string;
616
+ version: string;
617
+ description: string;
618
+ outputContract: string;
619
+ agents: {
620
+ id: string;
621
+ role: string;
622
+ context: "repo-readonly" | "prompt-only";
623
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
624
+ focus: string[];
625
+ }[];
626
+ };
627
+ targets: {
628
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
629
+ options?: Record<string, unknown> | undefined;
630
+ }[];
631
+ contractVersion: string;
632
+ renderHints?: Partial<Record<"opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy", Record<string, unknown>>> | undefined;
633
+ }, {
634
+ council: {
635
+ name: string;
636
+ version: string;
637
+ description: string;
638
+ outputContract: string;
639
+ agents: {
640
+ id: string;
641
+ role: string;
642
+ context: "repo-readonly" | "prompt-only";
643
+ modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
644
+ focus: string[];
645
+ }[];
646
+ };
647
+ targets: {
648
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy";
649
+ options?: Record<string, unknown> | undefined;
650
+ }[];
651
+ contractVersion: string;
652
+ renderHints?: Partial<Record<"opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy", Record<string, unknown>>> | undefined;
653
+ }>;
654
+ /**
655
+ * Council finding schema — a single review observation
656
+ */
657
+ export declare const CouncilFindingSchema: z.ZodObject<{
658
+ category: z.ZodString;
659
+ severity: z.ZodEnum<["info", "warning", "critical"]>;
660
+ message: z.ZodString;
661
+ agentId: z.ZodString;
662
+ }, "strip", z.ZodTypeAny, {
663
+ message: string;
664
+ category: string;
665
+ severity: "info" | "warning" | "critical";
666
+ agentId: string;
667
+ }, {
668
+ message: string;
669
+ category: string;
670
+ severity: "info" | "warning" | "critical";
671
+ agentId: string;
672
+ }>;
673
+ /**
674
+ * Council verdict input schema — verdict from a single reviewer
675
+ */
676
+ export declare const CouncilVerdictInputSchema: z.ZodObject<{
677
+ agentId: z.ZodEffects<z.ZodString, string, string>;
678
+ agentRole: z.ZodString;
679
+ status: z.ZodEnum<["APPROVED", "REJECTED", "ABSTAIN"]>;
680
+ securityVeto: z.ZodBoolean;
681
+ complianceVeto: z.ZodOptional<z.ZodBoolean>;
682
+ confidence: z.ZodNumber;
683
+ findings: z.ZodArray<z.ZodObject<{
684
+ category: z.ZodString;
685
+ severity: z.ZodEnum<["info", "warning", "critical"]>;
686
+ message: z.ZodString;
687
+ agentId: z.ZodString;
688
+ }, "strip", z.ZodTypeAny, {
689
+ message: string;
690
+ category: string;
691
+ severity: "info" | "warning" | "critical";
692
+ agentId: string;
693
+ }, {
694
+ message: string;
695
+ category: string;
696
+ severity: "info" | "warning" | "critical";
697
+ agentId: string;
698
+ }>, "many">;
699
+ summary: z.ZodString;
700
+ }, "strip", z.ZodTypeAny, {
701
+ status: "APPROVED" | "REJECTED" | "ABSTAIN";
702
+ confidence: number;
703
+ agentId: string;
704
+ agentRole: string;
705
+ securityVeto: boolean;
706
+ findings: {
707
+ message: string;
708
+ category: string;
709
+ severity: "info" | "warning" | "critical";
710
+ agentId: string;
711
+ }[];
712
+ summary: string;
713
+ complianceVeto?: boolean | undefined;
714
+ }, {
715
+ status: "APPROVED" | "REJECTED" | "ABSTAIN";
716
+ confidence: number;
717
+ agentId: string;
718
+ agentRole: string;
719
+ securityVeto: boolean;
720
+ findings: {
721
+ message: string;
722
+ category: string;
723
+ severity: "info" | "warning" | "critical";
724
+ agentId: string;
725
+ }[];
726
+ summary: string;
727
+ complianceVeto?: boolean | undefined;
728
+ }>;
729
+ /**
730
+ * Consensus config schema
731
+ */
732
+ export declare const ConsensusConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
733
+ algorithm: z.ZodEnum<["majority", "unanimous"]>;
734
+ allowSecurityVeto: z.ZodBoolean;
735
+ allowComplianceVeto: z.ZodOptional<z.ZodBoolean>;
736
+ expectedAgentIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>>;
737
+ quorum: z.ZodOptional<z.ZodNumber>;
738
+ criticalFindingsPolicy: z.ZodOptional<z.ZodEnum<["escalate", "reject", "ignore"]>>;
739
+ }, "strip", z.ZodTypeAny, {
740
+ algorithm: "majority" | "unanimous";
741
+ allowSecurityVeto: boolean;
742
+ allowComplianceVeto?: boolean | undefined;
743
+ expectedAgentIds?: string[] | undefined;
744
+ quorum?: number | undefined;
745
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
746
+ }, {
747
+ algorithm: "majority" | "unanimous";
748
+ allowSecurityVeto: boolean;
749
+ allowComplianceVeto?: boolean | undefined;
750
+ expectedAgentIds?: string[] | undefined;
751
+ quorum?: number | undefined;
752
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
753
+ }>, {
754
+ algorithm: "majority" | "unanimous";
755
+ allowSecurityVeto: boolean;
756
+ allowComplianceVeto?: boolean | undefined;
757
+ expectedAgentIds?: string[] | undefined;
758
+ quorum?: number | undefined;
759
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
760
+ }, {
761
+ algorithm: "majority" | "unanimous";
762
+ allowSecurityVeto: boolean;
763
+ allowComplianceVeto?: boolean | undefined;
764
+ expectedAgentIds?: string[] | undefined;
765
+ quorum?: number | undefined;
766
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
767
+ }>, {
768
+ algorithm: "majority" | "unanimous";
769
+ allowSecurityVeto: boolean;
770
+ allowComplianceVeto?: boolean | undefined;
771
+ expectedAgentIds?: string[] | undefined;
772
+ quorum?: number | undefined;
773
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
774
+ }, {
775
+ algorithm: "majority" | "unanimous";
776
+ allowSecurityVeto: boolean;
777
+ allowComplianceVeto?: boolean | undefined;
778
+ expectedAgentIds?: string[] | undefined;
779
+ quorum?: number | undefined;
780
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
781
+ }>;
782
+ /**
783
+ * Council verdict schema — the final output of the consensus engine
784
+ */
785
+ export declare const CouncilVerdictSchema: z.ZodObject<{
786
+ status: z.ZodEnum<["APPROVED", "REJECTED", "ESCALATED"]>;
787
+ totalAgents: z.ZodNumber;
788
+ approvedCount: z.ZodNumber;
789
+ rejectedCount: z.ZodNumber;
790
+ abstainedCount: z.ZodNumber;
791
+ vetoApplied: z.ZodBoolean;
792
+ complianceVetoApplied: z.ZodOptional<z.ZodBoolean>;
793
+ vetoByAgentId: z.ZodOptional<z.ZodString>;
794
+ averageConfidence: z.ZodOptional<z.ZodNumber>;
795
+ findings: z.ZodArray<z.ZodObject<{
796
+ category: z.ZodString;
797
+ severity: z.ZodEnum<["info", "warning", "critical"]>;
798
+ message: z.ZodString;
799
+ agentId: z.ZodString;
800
+ }, "strip", z.ZodTypeAny, {
801
+ message: string;
802
+ category: string;
803
+ severity: "info" | "warning" | "critical";
804
+ agentId: string;
805
+ }, {
806
+ message: string;
807
+ category: string;
808
+ severity: "info" | "warning" | "critical";
809
+ agentId: string;
810
+ }>, "many">;
811
+ summary: z.ZodString;
812
+ individualVerdicts: z.ZodArray<z.ZodObject<{
813
+ agentId: z.ZodEffects<z.ZodString, string, string>;
814
+ agentRole: z.ZodString;
815
+ status: z.ZodEnum<["APPROVED", "REJECTED", "ABSTAIN"]>;
816
+ securityVeto: z.ZodBoolean;
817
+ complianceVeto: z.ZodOptional<z.ZodBoolean>;
818
+ confidence: z.ZodNumber;
819
+ findings: z.ZodArray<z.ZodObject<{
820
+ category: z.ZodString;
821
+ severity: z.ZodEnum<["info", "warning", "critical"]>;
822
+ message: z.ZodString;
823
+ agentId: z.ZodString;
824
+ }, "strip", z.ZodTypeAny, {
825
+ message: string;
826
+ category: string;
827
+ severity: "info" | "warning" | "critical";
828
+ agentId: string;
829
+ }, {
830
+ message: string;
831
+ category: string;
832
+ severity: "info" | "warning" | "critical";
833
+ agentId: string;
834
+ }>, "many">;
835
+ summary: z.ZodString;
836
+ }, "strip", z.ZodTypeAny, {
837
+ status: "APPROVED" | "REJECTED" | "ABSTAIN";
838
+ confidence: number;
839
+ agentId: string;
840
+ agentRole: string;
841
+ securityVeto: boolean;
842
+ findings: {
843
+ message: string;
844
+ category: string;
845
+ severity: "info" | "warning" | "critical";
846
+ agentId: string;
847
+ }[];
848
+ summary: string;
849
+ complianceVeto?: boolean | undefined;
850
+ }, {
851
+ status: "APPROVED" | "REJECTED" | "ABSTAIN";
852
+ confidence: number;
853
+ agentId: string;
854
+ agentRole: string;
855
+ securityVeto: boolean;
856
+ findings: {
857
+ message: string;
858
+ category: string;
859
+ severity: "info" | "warning" | "critical";
860
+ agentId: string;
861
+ }[];
862
+ summary: string;
863
+ complianceVeto?: boolean | undefined;
864
+ }>, "many">;
865
+ }, "strip", z.ZodTypeAny, {
866
+ status: "APPROVED" | "REJECTED" | "ESCALATED";
867
+ findings: {
868
+ message: string;
869
+ category: string;
870
+ severity: "info" | "warning" | "critical";
871
+ agentId: string;
872
+ }[];
873
+ summary: string;
874
+ totalAgents: number;
875
+ approvedCount: number;
876
+ rejectedCount: number;
877
+ abstainedCount: number;
878
+ vetoApplied: boolean;
879
+ individualVerdicts: {
880
+ status: "APPROVED" | "REJECTED" | "ABSTAIN";
881
+ confidence: number;
882
+ agentId: string;
883
+ agentRole: string;
884
+ securityVeto: boolean;
885
+ findings: {
886
+ message: string;
887
+ category: string;
888
+ severity: "info" | "warning" | "critical";
889
+ agentId: string;
890
+ }[];
891
+ summary: string;
892
+ complianceVeto?: boolean | undefined;
893
+ }[];
894
+ complianceVetoApplied?: boolean | undefined;
895
+ vetoByAgentId?: string | undefined;
896
+ averageConfidence?: number | undefined;
897
+ }, {
898
+ status: "APPROVED" | "REJECTED" | "ESCALATED";
899
+ findings: {
900
+ message: string;
901
+ category: string;
902
+ severity: "info" | "warning" | "critical";
903
+ agentId: string;
904
+ }[];
905
+ summary: string;
906
+ totalAgents: number;
907
+ approvedCount: number;
908
+ rejectedCount: number;
909
+ abstainedCount: number;
910
+ vetoApplied: boolean;
911
+ individualVerdicts: {
912
+ status: "APPROVED" | "REJECTED" | "ABSTAIN";
913
+ confidence: number;
914
+ agentId: string;
915
+ agentRole: string;
916
+ securityVeto: boolean;
917
+ findings: {
918
+ message: string;
919
+ category: string;
920
+ severity: "info" | "warning" | "critical";
921
+ agentId: string;
922
+ }[];
923
+ summary: string;
924
+ complianceVeto?: boolean | undefined;
925
+ }[];
926
+ complianceVetoApplied?: boolean | undefined;
927
+ vetoByAgentId?: string | undefined;
928
+ averageConfidence?: number | undefined;
929
+ }>;
930
+ /**
931
+ * Claude agent file schema — validates a single Claude-generated agent markdown file
932
+ */
933
+ export declare const ClaudeAgentFileSchema: z.ZodObject<{
934
+ path: z.ZodString;
935
+ content: z.ZodString;
936
+ overwrite: z.ZodBoolean;
937
+ }, "strip", z.ZodTypeAny, {
938
+ path: string;
939
+ overwrite: boolean;
940
+ content: string;
941
+ }, {
942
+ path: string;
943
+ overwrite: boolean;
944
+ content: string;
945
+ }>;
946
+ /**
947
+ * OpenCode agent file schema — validates a single OpenCode-generated agent markdown file
948
+ */
949
+ export declare const OpenCodeAgentFileSchema: z.ZodObject<{
950
+ path: z.ZodString;
951
+ content: z.ZodString;
952
+ overwrite: z.ZodBoolean;
953
+ }, "strip", z.ZodTypeAny, {
954
+ path: string;
955
+ overwrite: boolean;
956
+ content: string;
957
+ }, {
958
+ path: string;
959
+ overwrite: boolean;
960
+ content: string;
961
+ }>;
962
+ /**
963
+ * Stack frame schema — a single frame from a Sentry stack trace
964
+ */
965
+ export declare const SentryStackFrameSchema: z.ZodObject<{
966
+ filename: z.ZodString;
967
+ function: z.ZodString;
968
+ lineNo: z.ZodNumber;
969
+ colNo: z.ZodOptional<z.ZodNumber>;
970
+ context: z.ZodArray<z.ZodString, "many">;
971
+ }, "strip", z.ZodTypeAny, {
972
+ function: string;
973
+ context: string[];
974
+ filename: string;
975
+ lineNo: number;
976
+ colNo?: number | undefined;
977
+ }, {
978
+ function: string;
979
+ context: string[];
980
+ filename: string;
981
+ lineNo: number;
982
+ colNo?: number | undefined;
983
+ }>;
984
+ /**
985
+ * Sentry webhook payload schema — validates the issue context from Sentry webhooks
986
+ */
987
+ export declare const SentryWebhookSchema: z.ZodObject<{
988
+ issueId: z.ZodString;
989
+ title: z.ZodString;
990
+ culprit: z.ZodString;
991
+ filename: z.ZodOptional<z.ZodString>;
992
+ stackTrace: z.ZodArray<z.ZodObject<{
993
+ filename: z.ZodString;
994
+ function: z.ZodString;
995
+ lineNo: z.ZodNumber;
996
+ colNo: z.ZodOptional<z.ZodNumber>;
997
+ context: z.ZodArray<z.ZodString, "many">;
998
+ }, "strip", z.ZodTypeAny, {
999
+ function: string;
1000
+ context: string[];
1001
+ filename: string;
1002
+ lineNo: number;
1003
+ colNo?: number | undefined;
1004
+ }, {
1005
+ function: string;
1006
+ context: string[];
1007
+ filename: string;
1008
+ lineNo: number;
1009
+ colNo?: number | undefined;
1010
+ }>, "many">;
1011
+ environment: z.ZodOptional<z.ZodString>;
1012
+ release: z.ZodOptional<z.ZodString>;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ issueId: string;
1015
+ title: string;
1016
+ culprit: string;
1017
+ stackTrace: {
1018
+ function: string;
1019
+ context: string[];
1020
+ filename: string;
1021
+ lineNo: number;
1022
+ colNo?: number | undefined;
1023
+ }[];
1024
+ filename?: string | undefined;
1025
+ environment?: string | undefined;
1026
+ release?: string | undefined;
1027
+ }, {
1028
+ issueId: string;
1029
+ title: string;
1030
+ culprit: string;
1031
+ stackTrace: {
1032
+ function: string;
1033
+ context: string[];
1034
+ filename: string;
1035
+ lineNo: number;
1036
+ colNo?: number | undefined;
1037
+ }[];
1038
+ filename?: string | undefined;
1039
+ environment?: string | undefined;
1040
+ release?: string | undefined;
1041
+ }>;
1042
+ export type SentryWebhookInput = z.infer<typeof SentryWebhookSchema>;
1043
+ /**
1044
+ * Memory pointer schema — a lightweight reference to an Engram observation
1045
+ */
1046
+ export declare const MemoryPointerSchema: z.ZodObject<{
1047
+ topic_key: z.ZodString;
1048
+ id: z.ZodNumber;
1049
+ file: z.ZodString;
1050
+ summary: z.ZodString;
1051
+ timestamp: z.ZodString;
1052
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ id: number;
1055
+ summary: string;
1056
+ topic_key: string;
1057
+ file: string;
1058
+ timestamp: string;
1059
+ tags: string[];
1060
+ }, {
1061
+ id: number;
1062
+ summary: string;
1063
+ topic_key: string;
1064
+ file: string;
1065
+ timestamp: string;
1066
+ tags?: string[] | undefined;
1067
+ }>;
1068
+ /**
1069
+ * Memory index schema — the persistent pointer layer of the 3-layer memory arch
1070
+ */
1071
+ export declare const MemoryIndexSchema: z.ZodObject<{
1072
+ version: z.ZodLiteral<1>;
1073
+ pointers: z.ZodArray<z.ZodObject<{
1074
+ topic_key: z.ZodString;
1075
+ id: z.ZodNumber;
1076
+ file: z.ZodString;
1077
+ summary: z.ZodString;
1078
+ timestamp: z.ZodString;
1079
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ id: number;
1082
+ summary: string;
1083
+ topic_key: string;
1084
+ file: string;
1085
+ timestamp: string;
1086
+ tags: string[];
1087
+ }, {
1088
+ id: number;
1089
+ summary: string;
1090
+ topic_key: string;
1091
+ file: string;
1092
+ timestamp: string;
1093
+ tags?: string[] | undefined;
1094
+ }>, "many">;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ version: 1;
1097
+ pointers: {
1098
+ id: number;
1099
+ summary: string;
1100
+ topic_key: string;
1101
+ file: string;
1102
+ timestamp: string;
1103
+ tags: string[];
1104
+ }[];
1105
+ }, {
1106
+ version: 1;
1107
+ pointers: {
1108
+ id: number;
1109
+ summary: string;
1110
+ topic_key: string;
1111
+ file: string;
1112
+ timestamp: string;
1113
+ tags?: string[] | undefined;
1114
+ }[];
1115
+ }>;
1116
+ /**
1117
+ * Goal task schema — a single task in a goal graph
1118
+ */
1119
+ export declare const GoalTaskSchema: z.ZodObject<{
1120
+ id: z.ZodString;
1121
+ title: z.ZodString;
1122
+ type: z.ZodEnum<["feature", "fix", "refactor", "test", "docs"]>;
1123
+ risk: z.ZodEnum<["low", "medium", "high"]>;
1124
+ status: z.ZodEnum<["pending", "in-progress", "done", "blocked"]>;
1125
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1126
+ acceptance_criteria: z.ZodArray<z.ZodString, "many">;
1127
+ blocked_reason: z.ZodOptional<z.ZodString>;
1128
+ context_scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<["isolated", "continuation", "full"]>>>;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ id: string;
1131
+ status: "pending" | "in-progress" | "done" | "blocked";
1132
+ type: "feature" | "fix" | "refactor" | "test" | "docs";
1133
+ title: string;
1134
+ risk: "low" | "medium" | "high";
1135
+ depends_on: string[];
1136
+ acceptance_criteria: string[];
1137
+ context_scope: "isolated" | "continuation" | "full";
1138
+ blocked_reason?: string | undefined;
1139
+ }, {
1140
+ id: string;
1141
+ status: "pending" | "in-progress" | "done" | "blocked";
1142
+ type: "feature" | "fix" | "refactor" | "test" | "docs";
1143
+ title: string;
1144
+ risk: "low" | "medium" | "high";
1145
+ acceptance_criteria: string[];
1146
+ depends_on?: string[] | undefined;
1147
+ blocked_reason?: string | undefined;
1148
+ context_scope?: "isolated" | "continuation" | "full" | undefined;
1149
+ }>;
1150
+ /**
1151
+ * Goal graph schema — a complete goal with task dependencies
1152
+ */
1153
+ export declare const GoalGraphSchema: z.ZodObject<{
1154
+ objective: z.ZodString;
1155
+ tasks: z.ZodArray<z.ZodObject<{
1156
+ id: z.ZodString;
1157
+ title: z.ZodString;
1158
+ type: z.ZodEnum<["feature", "fix", "refactor", "test", "docs"]>;
1159
+ risk: z.ZodEnum<["low", "medium", "high"]>;
1160
+ status: z.ZodEnum<["pending", "in-progress", "done", "blocked"]>;
1161
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1162
+ acceptance_criteria: z.ZodArray<z.ZodString, "many">;
1163
+ blocked_reason: z.ZodOptional<z.ZodString>;
1164
+ context_scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<["isolated", "continuation", "full"]>>>;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ id: string;
1167
+ status: "pending" | "in-progress" | "done" | "blocked";
1168
+ type: "feature" | "fix" | "refactor" | "test" | "docs";
1169
+ title: string;
1170
+ risk: "low" | "medium" | "high";
1171
+ depends_on: string[];
1172
+ acceptance_criteria: string[];
1173
+ context_scope: "isolated" | "continuation" | "full";
1174
+ blocked_reason?: string | undefined;
1175
+ }, {
1176
+ id: string;
1177
+ status: "pending" | "in-progress" | "done" | "blocked";
1178
+ type: "feature" | "fix" | "refactor" | "test" | "docs";
1179
+ title: string;
1180
+ risk: "low" | "medium" | "high";
1181
+ acceptance_criteria: string[];
1182
+ depends_on?: string[] | undefined;
1183
+ blocked_reason?: string | undefined;
1184
+ context_scope?: "isolated" | "continuation" | "full" | undefined;
1185
+ }>, "many">;
1186
+ created_at: z.ZodString;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ objective: string;
1189
+ tasks: {
1190
+ id: string;
1191
+ status: "pending" | "in-progress" | "done" | "blocked";
1192
+ type: "feature" | "fix" | "refactor" | "test" | "docs";
1193
+ title: string;
1194
+ risk: "low" | "medium" | "high";
1195
+ depends_on: string[];
1196
+ acceptance_criteria: string[];
1197
+ context_scope: "isolated" | "continuation" | "full";
1198
+ blocked_reason?: string | undefined;
1199
+ }[];
1200
+ created_at: string;
1201
+ }, {
1202
+ objective: string;
1203
+ tasks: {
1204
+ id: string;
1205
+ status: "pending" | "in-progress" | "done" | "blocked";
1206
+ type: "feature" | "fix" | "refactor" | "test" | "docs";
1207
+ title: string;
1208
+ risk: "low" | "medium" | "high";
1209
+ acceptance_criteria: string[];
1210
+ depends_on?: string[] | undefined;
1211
+ blocked_reason?: string | undefined;
1212
+ context_scope?: "isolated" | "continuation" | "full" | undefined;
1213
+ }[];
1214
+ created_at: string;
1215
+ }>;
1216
+ export declare const ConfidenceLevelSchema: z.ZodEnum<["low", "medium", "high"]>;
1217
+ export declare const ProductNodeTypeSchema: z.ZodEnum<["product", "domain", "capability", "requirement", "decision", "component", "flow", "contract", "metric", "risk", "task", "evidence"]>;
1218
+ export declare const GraphRelationSchema: z.ZodEnum<["implements", "depends_on", "documents", "affects", "evidences", "blocks", "contains"]>;
1219
+ export declare const KnowledgeEntitySchema: z.ZodObject<{
1220
+ type: z.ZodEnum<["product", "domain", "capability", "requirement", "decision", "component", "flow", "contract", "metric", "risk", "task", "evidence"]>;
1221
+ id: z.ZodString;
1222
+ name: z.ZodString;
1223
+ source: z.ZodString;
1224
+ version: z.ZodOptional<z.ZodString>;
1225
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
1226
+ relations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1227
+ targetId: z.ZodString;
1228
+ relation: z.ZodEnum<["implements", "depends_on", "documents", "affects", "evidences", "blocks", "contains"]>;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ targetId: string;
1231
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1232
+ }, {
1233
+ targetId: string;
1234
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1235
+ }>, "many">>;
1236
+ data: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ id: string;
1239
+ type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1240
+ name: string;
1241
+ confidence: "low" | "medium" | "high";
1242
+ source: string;
1243
+ relations: {
1244
+ targetId: string;
1245
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1246
+ }[];
1247
+ data: Record<string, unknown>;
1248
+ version?: string | undefined;
1249
+ }, {
1250
+ id: string;
1251
+ type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1252
+ name: string;
1253
+ confidence: "low" | "medium" | "high";
1254
+ source: string;
1255
+ version?: string | undefined;
1256
+ relations?: {
1257
+ targetId: string;
1258
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1259
+ }[] | undefined;
1260
+ data?: Record<string, unknown> | undefined;
1261
+ }>;
1262
+ export declare const DecisionSchema: z.ZodObject<{
1263
+ id: z.ZodString;
1264
+ context: z.ZodString;
1265
+ alternatives: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1266
+ chosenOption: z.ZodString;
1267
+ rationale: z.ZodString;
1268
+ consequences: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1269
+ date: z.ZodString;
1270
+ linkedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1271
+ linkedComponents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1272
+ source: z.ZodOptional<z.ZodString>;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ id: string;
1275
+ context: string;
1276
+ date: string;
1277
+ alternatives: string[];
1278
+ chosenOption: string;
1279
+ rationale: string;
1280
+ consequences: string[];
1281
+ linkedTasks: string[];
1282
+ linkedComponents: string[];
1283
+ source?: string | undefined;
1284
+ }, {
1285
+ id: string;
1286
+ context: string;
1287
+ date: string;
1288
+ chosenOption: string;
1289
+ rationale: string;
1290
+ source?: string | undefined;
1291
+ alternatives?: string[] | undefined;
1292
+ consequences?: string[] | undefined;
1293
+ linkedTasks?: string[] | undefined;
1294
+ linkedComponents?: string[] | undefined;
1295
+ }>;
1296
+ export declare const EvidenceSchema: z.ZodObject<{
1297
+ id: z.ZodString;
1298
+ source: z.ZodString;
1299
+ type: z.ZodString;
1300
+ timestamp: z.ZodString;
1301
+ relatedTask: z.ZodOptional<z.ZodString>;
1302
+ relatedDecision: z.ZodOptional<z.ZodString>;
1303
+ confidence: z.ZodNumber;
1304
+ checksum: z.ZodOptional<z.ZodString>;
1305
+ summary: z.ZodOptional<z.ZodString>;
1306
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ id: string;
1309
+ type: string;
1310
+ confidence: number;
1311
+ timestamp: string;
1312
+ source: string;
1313
+ summary?: string | undefined;
1314
+ data?: Record<string, unknown> | undefined;
1315
+ relatedTask?: string | undefined;
1316
+ relatedDecision?: string | undefined;
1317
+ checksum?: string | undefined;
1318
+ }, {
1319
+ id: string;
1320
+ type: string;
1321
+ confidence: number;
1322
+ timestamp: string;
1323
+ source: string;
1324
+ summary?: string | undefined;
1325
+ data?: Record<string, unknown> | undefined;
1326
+ relatedTask?: string | undefined;
1327
+ relatedDecision?: string | undefined;
1328
+ checksum?: string | undefined;
1329
+ }>;
1330
+ export declare const CanonicalTaskCardStatusSchema: z.ZodEnum<["draft", "ready", "in-progress", "review", "done", "blocked"]>;
1331
+ export declare const CanonicalTaskCardSchema: z.ZodObject<{
1332
+ id: z.ZodString;
1333
+ title: z.ZodString;
1334
+ objective: z.ZodString;
1335
+ context: z.ZodString;
1336
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1337
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1338
+ constraints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1339
+ risk: z.ZodEnum<["low", "medium", "high"]>;
1340
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1341
+ agentType: z.ZodString;
1342
+ evidenceRequired: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1343
+ status: z.ZodEnum<["draft", "ready", "in-progress", "review", "done", "blocked"]>;
1344
+ type: z.ZodEnum<["feature", "fix", "refactor", "review", "docs", "test"]>;
1345
+ linkedCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1346
+ boundaries: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1347
+ requiresHumanReview: z.ZodOptional<z.ZodBoolean>;
1348
+ requiresTests: z.ZodOptional<z.ZodBoolean>;
1349
+ contextScope: z.ZodOptional<z.ZodEnum<["isolated", "continuation", "full"]>>;
1350
+ actualBehavior: z.ZodOptional<z.ZodString>;
1351
+ expectedBehavior: z.ZodOptional<z.ZodString>;
1352
+ reproductionSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1353
+ domain: z.ZodOptional<z.ZodString>;
1354
+ authorization: z.ZodOptional<z.ZodString>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ id: string;
1357
+ context: string;
1358
+ status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
1359
+ type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
1360
+ title: string;
1361
+ risk: "low" | "medium" | "high";
1362
+ objective: string;
1363
+ acceptanceCriteria: string[];
1364
+ dependencies: string[];
1365
+ constraints: string[];
1366
+ targetFiles: string[];
1367
+ agentType: string;
1368
+ evidenceRequired: string[];
1369
+ linkedCapabilities: string[];
1370
+ boundaries: string[];
1371
+ domain?: string | undefined;
1372
+ requiresHumanReview?: boolean | undefined;
1373
+ requiresTests?: boolean | undefined;
1374
+ contextScope?: "isolated" | "continuation" | "full" | undefined;
1375
+ actualBehavior?: string | undefined;
1376
+ expectedBehavior?: string | undefined;
1377
+ reproductionSteps?: string[] | undefined;
1378
+ authorization?: string | undefined;
1379
+ }, {
1380
+ id: string;
1381
+ context: string;
1382
+ status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
1383
+ type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
1384
+ title: string;
1385
+ risk: "low" | "medium" | "high";
1386
+ objective: string;
1387
+ acceptanceCriteria: string[];
1388
+ agentType: string;
1389
+ domain?: string | undefined;
1390
+ dependencies?: string[] | undefined;
1391
+ constraints?: string[] | undefined;
1392
+ targetFiles?: string[] | undefined;
1393
+ evidenceRequired?: string[] | undefined;
1394
+ linkedCapabilities?: string[] | undefined;
1395
+ boundaries?: string[] | undefined;
1396
+ requiresHumanReview?: boolean | undefined;
1397
+ requiresTests?: boolean | undefined;
1398
+ contextScope?: "isolated" | "continuation" | "full" | undefined;
1399
+ actualBehavior?: string | undefined;
1400
+ expectedBehavior?: string | undefined;
1401
+ reproductionSteps?: string[] | undefined;
1402
+ authorization?: string | undefined;
1403
+ }>;
1404
+ export declare const ProductGraphNodeSchema: z.ZodObject<{
1405
+ id: z.ZodString;
1406
+ type: z.ZodEnum<["product", "domain", "capability", "requirement", "decision", "component", "flow", "contract", "metric", "risk", "task", "evidence"]>;
1407
+ name: z.ZodString;
1408
+ data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1409
+ source: z.ZodOptional<z.ZodString>;
1410
+ confidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1411
+ version: z.ZodOptional<z.ZodString>;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ id: string;
1414
+ type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1415
+ name: string;
1416
+ data: Record<string, unknown>;
1417
+ version?: string | undefined;
1418
+ confidence?: "low" | "medium" | "high" | undefined;
1419
+ source?: string | undefined;
1420
+ }, {
1421
+ id: string;
1422
+ type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1423
+ name: string;
1424
+ version?: string | undefined;
1425
+ confidence?: "low" | "medium" | "high" | undefined;
1426
+ source?: string | undefined;
1427
+ data?: Record<string, unknown> | undefined;
1428
+ }>;
1429
+ export declare const ProductGraphEdgeSchema: z.ZodObject<{
1430
+ from: z.ZodString;
1431
+ to: z.ZodString;
1432
+ relation: z.ZodEnum<["implements", "depends_on", "documents", "affects", "evidences", "blocks", "contains"]>;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1435
+ from: string;
1436
+ to: string;
1437
+ }, {
1438
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1439
+ from: string;
1440
+ to: string;
1441
+ }>;
1442
+ export declare const ProductGraphSchema: z.ZodObject<{
1443
+ version: z.ZodLiteral<1>;
1444
+ productId: z.ZodString;
1445
+ productName: z.ZodString;
1446
+ nodes: z.ZodArray<z.ZodObject<{
1447
+ id: z.ZodString;
1448
+ type: z.ZodEnum<["product", "domain", "capability", "requirement", "decision", "component", "flow", "contract", "metric", "risk", "task", "evidence"]>;
1449
+ name: z.ZodString;
1450
+ data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1451
+ source: z.ZodOptional<z.ZodString>;
1452
+ confidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1453
+ version: z.ZodOptional<z.ZodString>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ id: string;
1456
+ type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1457
+ name: string;
1458
+ data: Record<string, unknown>;
1459
+ version?: string | undefined;
1460
+ confidence?: "low" | "medium" | "high" | undefined;
1461
+ source?: string | undefined;
1462
+ }, {
1463
+ id: string;
1464
+ type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1465
+ name: string;
1466
+ version?: string | undefined;
1467
+ confidence?: "low" | "medium" | "high" | undefined;
1468
+ source?: string | undefined;
1469
+ data?: Record<string, unknown> | undefined;
1470
+ }>, "many">;
1471
+ edges: z.ZodArray<z.ZodObject<{
1472
+ from: z.ZodString;
1473
+ to: z.ZodString;
1474
+ relation: z.ZodEnum<["implements", "depends_on", "documents", "affects", "evidences", "blocks", "contains"]>;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1477
+ from: string;
1478
+ to: string;
1479
+ }, {
1480
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1481
+ from: string;
1482
+ to: string;
1483
+ }>, "many">;
1484
+ updatedAt: z.ZodString;
1485
+ }, "strip", z.ZodTypeAny, {
1486
+ version: 1;
1487
+ productId: string;
1488
+ productName: string;
1489
+ nodes: {
1490
+ id: string;
1491
+ type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1492
+ name: string;
1493
+ data: Record<string, unknown>;
1494
+ version?: string | undefined;
1495
+ confidence?: "low" | "medium" | "high" | undefined;
1496
+ source?: string | undefined;
1497
+ }[];
1498
+ edges: {
1499
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1500
+ from: string;
1501
+ to: string;
1502
+ }[];
1503
+ updatedAt: string;
1504
+ }, {
1505
+ version: 1;
1506
+ productId: string;
1507
+ productName: string;
1508
+ nodes: {
1509
+ id: string;
1510
+ type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1511
+ name: string;
1512
+ version?: string | undefined;
1513
+ confidence?: "low" | "medium" | "high" | undefined;
1514
+ source?: string | undefined;
1515
+ data?: Record<string, unknown> | undefined;
1516
+ }[];
1517
+ edges: {
1518
+ relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
1519
+ from: string;
1520
+ to: string;
1521
+ }[];
1522
+ updatedAt: string;
1523
+ }>;
1524
+ export declare const ProductMetaSchema: z.ZodObject<{
1525
+ version: z.ZodLiteral<1>;
1526
+ graphVersion: z.ZodString;
1527
+ lastIngestAt: z.ZodOptional<z.ZodString>;
1528
+ sourceHashes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ version: 1;
1531
+ graphVersion: string;
1532
+ sourceHashes: Record<string, string>;
1533
+ lastIngestAt?: string | undefined;
1534
+ }, {
1535
+ version: 1;
1536
+ graphVersion: string;
1537
+ lastIngestAt?: string | undefined;
1538
+ sourceHashes?: Record<string, string> | undefined;
1539
+ }>;
1540
+ export declare const ProductEventTypeSchema: z.ZodEnum<["task.started", "task.completed", "decision.recorded", "evidence.added", "ingest.completed", "goal.updated", "blocker.detected", "verification.completed", "feedback.processed"]>;
1541
+ export declare const ProductEventSchema: z.ZodObject<{
1542
+ id: z.ZodString;
1543
+ type: z.ZodEnum<["task.started", "task.completed", "decision.recorded", "evidence.added", "ingest.completed", "goal.updated", "blocker.detected", "verification.completed", "feedback.processed"]>;
1544
+ timestamp: z.ZodString;
1545
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ id: string;
1548
+ type: "task.started" | "task.completed" | "decision.recorded" | "evidence.added" | "ingest.completed" | "goal.updated" | "blocker.detected" | "verification.completed" | "feedback.processed";
1549
+ timestamp: string;
1550
+ payload: Record<string, unknown>;
1551
+ }, {
1552
+ id: string;
1553
+ type: "task.started" | "task.completed" | "decision.recorded" | "evidence.added" | "ingest.completed" | "goal.updated" | "blocker.detected" | "verification.completed" | "feedback.processed";
1554
+ timestamp: string;
1555
+ payload?: Record<string, unknown> | undefined;
1556
+ }>;
1557
+ export declare const OperationalStateSchema: z.ZodObject<{
1558
+ version: z.ZodLiteral<1>;
1559
+ activeAgents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1560
+ activeTaskIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1561
+ blockers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1562
+ taskId: z.ZodString;
1563
+ reason: z.ZodString;
1564
+ since: z.ZodString;
1565
+ }, "strip", z.ZodTypeAny, {
1566
+ taskId: string;
1567
+ reason: string;
1568
+ since: string;
1569
+ }, {
1570
+ taskId: string;
1571
+ reason: string;
1572
+ since: string;
1573
+ }>, "many">>;
1574
+ sprintFocus: z.ZodOptional<z.ZodString>;
1575
+ updatedAt: z.ZodString;
1576
+ }, "strip", z.ZodTypeAny, {
1577
+ version: 1;
1578
+ updatedAt: string;
1579
+ activeAgents: string[];
1580
+ activeTaskIds: string[];
1581
+ blockers: {
1582
+ taskId: string;
1583
+ reason: string;
1584
+ since: string;
1585
+ }[];
1586
+ sprintFocus?: string | undefined;
1587
+ }, {
1588
+ version: 1;
1589
+ updatedAt: string;
1590
+ activeAgents?: string[] | undefined;
1591
+ activeTaskIds?: string[] | undefined;
1592
+ blockers?: {
1593
+ taskId: string;
1594
+ reason: string;
1595
+ since: string;
1596
+ }[] | undefined;
1597
+ sprintFocus?: string | undefined;
1598
+ }>;
1599
+ export declare const StrategicMemorySchema: z.ZodObject<{
1600
+ version: z.ZodLiteral<1>;
1601
+ kpis: z.ZodDefault<z.ZodArray<z.ZodObject<{
1602
+ name: z.ZodString;
1603
+ target: z.ZodString;
1604
+ current: z.ZodOptional<z.ZodString>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ name: string;
1607
+ target: string;
1608
+ current?: string | undefined;
1609
+ }, {
1610
+ name: string;
1611
+ target: string;
1612
+ current?: string | undefined;
1613
+ }>, "many">>;
1614
+ quarterlyFocus: z.ZodOptional<z.ZodString>;
1615
+ tradeoffs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1616
+ updatedAt: z.ZodString;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ version: 1;
1619
+ updatedAt: string;
1620
+ kpis: {
1621
+ name: string;
1622
+ target: string;
1623
+ current?: string | undefined;
1624
+ }[];
1625
+ tradeoffs: string[];
1626
+ quarterlyFocus?: string | undefined;
1627
+ }, {
1628
+ version: 1;
1629
+ updatedAt: string;
1630
+ kpis?: {
1631
+ name: string;
1632
+ target: string;
1633
+ current?: string | undefined;
1634
+ }[] | undefined;
1635
+ quarterlyFocus?: string | undefined;
1636
+ tradeoffs?: string[] | undefined;
1637
+ }>;
1638
+ export declare const ImpactReportSchema: z.ZodObject<{
1639
+ target: z.ZodString;
1640
+ brokenEndpoints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1641
+ brokenContracts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1642
+ affectedTests: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1643
+ affectedFlows: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1644
+ affectedComponents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1645
+ summary: z.ZodString;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ target: string;
1648
+ summary: string;
1649
+ brokenEndpoints: string[];
1650
+ brokenContracts: string[];
1651
+ affectedTests: string[];
1652
+ affectedFlows: string[];
1653
+ affectedComponents: string[];
1654
+ }, {
1655
+ target: string;
1656
+ summary: string;
1657
+ brokenEndpoints?: string[] | undefined;
1658
+ brokenContracts?: string[] | undefined;
1659
+ affectedTests?: string[] | undefined;
1660
+ affectedFlows?: string[] | undefined;
1661
+ affectedComponents?: string[] | undefined;
1662
+ }>;
1663
+ export declare const BusinessReviewOutputSchema: z.ZodObject<{
1664
+ status: z.ZodEnum<["proceed", "defer", "reject"]>;
1665
+ roiEstimate: z.ZodOptional<z.ZodString>;
1666
+ userImpact: z.ZodOptional<z.ZodString>;
1667
+ eliminationRisk: z.ZodOptional<z.ZodString>;
1668
+ questions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1669
+ confidence: z.ZodNumber;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ status: "reject" | "proceed" | "defer";
1672
+ confidence: number;
1673
+ questions: string[];
1674
+ roiEstimate?: string | undefined;
1675
+ userImpact?: string | undefined;
1676
+ eliminationRisk?: string | undefined;
1677
+ }, {
1678
+ status: "reject" | "proceed" | "defer";
1679
+ confidence: number;
1680
+ roiEstimate?: string | undefined;
1681
+ userImpact?: string | undefined;
1682
+ eliminationRisk?: string | undefined;
1683
+ questions?: string[] | undefined;
1684
+ }>;
1685
+ export declare const VerificationReportSchema: z.ZodObject<{
1686
+ taskId: z.ZodString;
1687
+ passed: z.ZodBoolean;
1688
+ checks: z.ZodArray<z.ZodObject<{
1689
+ name: z.ZodString;
1690
+ passed: z.ZodBoolean;
1691
+ message: z.ZodString;
1692
+ }, "strip", z.ZodTypeAny, {
1693
+ message: string;
1694
+ name: string;
1695
+ passed: boolean;
1696
+ }, {
1697
+ message: string;
1698
+ name: string;
1699
+ passed: boolean;
1700
+ }>, "many">;
1701
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1702
+ confidence: z.ZodNumber;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ confidence: number;
1705
+ taskId: string;
1706
+ passed: boolean;
1707
+ checks: {
1708
+ message: string;
1709
+ name: string;
1710
+ passed: boolean;
1711
+ }[];
1712
+ evidenceIds: string[];
1713
+ }, {
1714
+ confidence: number;
1715
+ taskId: string;
1716
+ passed: boolean;
1717
+ checks: {
1718
+ message: string;
1719
+ name: string;
1720
+ passed: boolean;
1721
+ }[];
1722
+ evidenceIds?: string[] | undefined;
1723
+ }>;
1724
+ export declare const BacklogStatusSchema: z.ZodEnum<["TODO", "READY", "PLANNED", "IN_PROGRESS", "BLOCKED", "REVIEW", "DONE"]>;
1725
+ export declare const BacklogTypeSchema: z.ZodEnum<["feature", "bug", "refactor", "tech-debt"]>;
1726
+ export declare const BacklogPrioritySchema: z.ZodEnum<["P0", "P1", "P2", "P3"]>;
1727
+ export declare const BacklogGlobalSchema: z.ZodObject<{
1728
+ product: z.ZodString;
1729
+ strategy: z.ZodString;
1730
+ policy: z.ZodString;
1731
+ reviewRequired: z.ZodBoolean;
1732
+ tddRequired: z.ZodBoolean;
1733
+ }, "strip", z.ZodTypeAny, {
1734
+ strategy: string;
1735
+ product: string;
1736
+ policy: string;
1737
+ reviewRequired: boolean;
1738
+ tddRequired: boolean;
1739
+ }, {
1740
+ strategy: string;
1741
+ product: string;
1742
+ policy: string;
1743
+ reviewRequired: boolean;
1744
+ tddRequired: boolean;
1745
+ }>;
1746
+ export declare const BacklogItemSchema: z.ZodObject<{
1747
+ id: z.ZodString;
1748
+ title: z.ZodString;
1749
+ priority: z.ZodEnum<["P0", "P1", "P2", "P3"]>;
1750
+ status: z.ZodEnum<["TODO", "READY", "PLANNED", "IN_PROGRESS", "BLOCKED", "REVIEW", "DONE"]>;
1751
+ type: z.ZodEnum<["feature", "bug", "refactor", "tech-debt"]>;
1752
+ owner: z.ZodOptional<z.ZodString>;
1753
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1754
+ description: z.ZodString;
1755
+ scope: z.ZodString;
1756
+ outOfScope: z.ZodDefault<z.ZodString>;
1757
+ businessValue: z.ZodOptional<z.ZodString>;
1758
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1759
+ risks: z.ZodOptional<z.ZodString>;
1760
+ progress: z.ZodNumber;
1761
+ branch: z.ZodOptional<z.ZodString>;
1762
+ reviewer: z.ZodOptional<z.ZodString>;
1763
+ lastUpdate: z.ZodOptional<z.ZodString>;
1764
+ }, "strip", z.ZodTypeAny, {
1765
+ id: string;
1766
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1767
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1768
+ description: string;
1769
+ title: string;
1770
+ acceptanceCriteria: string[];
1771
+ dependencies: string[];
1772
+ priority: "P0" | "P1" | "P2" | "P3";
1773
+ scope: string;
1774
+ outOfScope: string;
1775
+ progress: number;
1776
+ owner?: string | undefined;
1777
+ businessValue?: string | undefined;
1778
+ risks?: string | undefined;
1779
+ branch?: string | undefined;
1780
+ reviewer?: string | undefined;
1781
+ lastUpdate?: string | undefined;
1782
+ }, {
1783
+ id: string;
1784
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1785
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1786
+ description: string;
1787
+ title: string;
1788
+ acceptanceCriteria: string[];
1789
+ priority: "P0" | "P1" | "P2" | "P3";
1790
+ scope: string;
1791
+ progress: number;
1792
+ dependencies?: string[] | undefined;
1793
+ owner?: string | undefined;
1794
+ outOfScope?: string | undefined;
1795
+ businessValue?: string | undefined;
1796
+ risks?: string | undefined;
1797
+ branch?: string | undefined;
1798
+ reviewer?: string | undefined;
1799
+ lastUpdate?: string | undefined;
1800
+ }>;
1801
+ export declare const BacklogDocumentSchema: z.ZodObject<{
1802
+ global: z.ZodObject<{
1803
+ product: z.ZodString;
1804
+ strategy: z.ZodString;
1805
+ policy: z.ZodString;
1806
+ reviewRequired: z.ZodBoolean;
1807
+ tddRequired: z.ZodBoolean;
1808
+ }, "strip", z.ZodTypeAny, {
1809
+ strategy: string;
1810
+ product: string;
1811
+ policy: string;
1812
+ reviewRequired: boolean;
1813
+ tddRequired: boolean;
1814
+ }, {
1815
+ strategy: string;
1816
+ product: string;
1817
+ policy: string;
1818
+ reviewRequired: boolean;
1819
+ tddRequired: boolean;
1820
+ }>;
1821
+ items: z.ZodArray<z.ZodObject<{
1822
+ id: z.ZodString;
1823
+ title: z.ZodString;
1824
+ priority: z.ZodEnum<["P0", "P1", "P2", "P3"]>;
1825
+ status: z.ZodEnum<["TODO", "READY", "PLANNED", "IN_PROGRESS", "BLOCKED", "REVIEW", "DONE"]>;
1826
+ type: z.ZodEnum<["feature", "bug", "refactor", "tech-debt"]>;
1827
+ owner: z.ZodOptional<z.ZodString>;
1828
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1829
+ description: z.ZodString;
1830
+ scope: z.ZodString;
1831
+ outOfScope: z.ZodDefault<z.ZodString>;
1832
+ businessValue: z.ZodOptional<z.ZodString>;
1833
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1834
+ risks: z.ZodOptional<z.ZodString>;
1835
+ progress: z.ZodNumber;
1836
+ branch: z.ZodOptional<z.ZodString>;
1837
+ reviewer: z.ZodOptional<z.ZodString>;
1838
+ lastUpdate: z.ZodOptional<z.ZodString>;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ id: string;
1841
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1842
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1843
+ description: string;
1844
+ title: string;
1845
+ acceptanceCriteria: string[];
1846
+ dependencies: string[];
1847
+ priority: "P0" | "P1" | "P2" | "P3";
1848
+ scope: string;
1849
+ outOfScope: string;
1850
+ progress: number;
1851
+ owner?: string | undefined;
1852
+ businessValue?: string | undefined;
1853
+ risks?: string | undefined;
1854
+ branch?: string | undefined;
1855
+ reviewer?: string | undefined;
1856
+ lastUpdate?: string | undefined;
1857
+ }, {
1858
+ id: string;
1859
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1860
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1861
+ description: string;
1862
+ title: string;
1863
+ acceptanceCriteria: string[];
1864
+ priority: "P0" | "P1" | "P2" | "P3";
1865
+ scope: string;
1866
+ progress: number;
1867
+ dependencies?: string[] | undefined;
1868
+ owner?: string | undefined;
1869
+ outOfScope?: string | undefined;
1870
+ businessValue?: string | undefined;
1871
+ risks?: string | undefined;
1872
+ branch?: string | undefined;
1873
+ reviewer?: string | undefined;
1874
+ lastUpdate?: string | undefined;
1875
+ }>, "many">;
1876
+ archive: z.ZodDefault<z.ZodArray<z.ZodObject<{
1877
+ id: z.ZodString;
1878
+ title: z.ZodString;
1879
+ priority: z.ZodEnum<["P0", "P1", "P2", "P3"]>;
1880
+ status: z.ZodEnum<["TODO", "READY", "PLANNED", "IN_PROGRESS", "BLOCKED", "REVIEW", "DONE"]>;
1881
+ type: z.ZodEnum<["feature", "bug", "refactor", "tech-debt"]>;
1882
+ owner: z.ZodOptional<z.ZodString>;
1883
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1884
+ description: z.ZodString;
1885
+ scope: z.ZodString;
1886
+ outOfScope: z.ZodDefault<z.ZodString>;
1887
+ businessValue: z.ZodOptional<z.ZodString>;
1888
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1889
+ risks: z.ZodOptional<z.ZodString>;
1890
+ progress: z.ZodNumber;
1891
+ branch: z.ZodOptional<z.ZodString>;
1892
+ reviewer: z.ZodOptional<z.ZodString>;
1893
+ lastUpdate: z.ZodOptional<z.ZodString>;
1894
+ }, "strip", z.ZodTypeAny, {
1895
+ id: string;
1896
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1897
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1898
+ description: string;
1899
+ title: string;
1900
+ acceptanceCriteria: string[];
1901
+ dependencies: string[];
1902
+ priority: "P0" | "P1" | "P2" | "P3";
1903
+ scope: string;
1904
+ outOfScope: string;
1905
+ progress: number;
1906
+ owner?: string | undefined;
1907
+ businessValue?: string | undefined;
1908
+ risks?: string | undefined;
1909
+ branch?: string | undefined;
1910
+ reviewer?: string | undefined;
1911
+ lastUpdate?: string | undefined;
1912
+ }, {
1913
+ id: string;
1914
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1915
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1916
+ description: string;
1917
+ title: string;
1918
+ acceptanceCriteria: string[];
1919
+ priority: "P0" | "P1" | "P2" | "P3";
1920
+ scope: string;
1921
+ progress: number;
1922
+ dependencies?: string[] | undefined;
1923
+ owner?: string | undefined;
1924
+ outOfScope?: string | undefined;
1925
+ businessValue?: string | undefined;
1926
+ risks?: string | undefined;
1927
+ branch?: string | undefined;
1928
+ reviewer?: string | undefined;
1929
+ lastUpdate?: string | undefined;
1930
+ }>, "many">>;
1931
+ }, "strip", z.ZodTypeAny, {
1932
+ global: {
1933
+ strategy: string;
1934
+ product: string;
1935
+ policy: string;
1936
+ reviewRequired: boolean;
1937
+ tddRequired: boolean;
1938
+ };
1939
+ items: {
1940
+ id: string;
1941
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1942
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1943
+ description: string;
1944
+ title: string;
1945
+ acceptanceCriteria: string[];
1946
+ dependencies: string[];
1947
+ priority: "P0" | "P1" | "P2" | "P3";
1948
+ scope: string;
1949
+ outOfScope: string;
1950
+ progress: number;
1951
+ owner?: string | undefined;
1952
+ businessValue?: string | undefined;
1953
+ risks?: string | undefined;
1954
+ branch?: string | undefined;
1955
+ reviewer?: string | undefined;
1956
+ lastUpdate?: string | undefined;
1957
+ }[];
1958
+ archive: {
1959
+ id: string;
1960
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1961
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1962
+ description: string;
1963
+ title: string;
1964
+ acceptanceCriteria: string[];
1965
+ dependencies: string[];
1966
+ priority: "P0" | "P1" | "P2" | "P3";
1967
+ scope: string;
1968
+ outOfScope: string;
1969
+ progress: number;
1970
+ owner?: string | undefined;
1971
+ businessValue?: string | undefined;
1972
+ risks?: string | undefined;
1973
+ branch?: string | undefined;
1974
+ reviewer?: string | undefined;
1975
+ lastUpdate?: string | undefined;
1976
+ }[];
1977
+ }, {
1978
+ global: {
1979
+ strategy: string;
1980
+ product: string;
1981
+ policy: string;
1982
+ reviewRequired: boolean;
1983
+ tddRequired: boolean;
1984
+ };
1985
+ items: {
1986
+ id: string;
1987
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
1988
+ type: "feature" | "refactor" | "bug" | "tech-debt";
1989
+ description: string;
1990
+ title: string;
1991
+ acceptanceCriteria: string[];
1992
+ priority: "P0" | "P1" | "P2" | "P3";
1993
+ scope: string;
1994
+ progress: number;
1995
+ dependencies?: string[] | undefined;
1996
+ owner?: string | undefined;
1997
+ outOfScope?: string | undefined;
1998
+ businessValue?: string | undefined;
1999
+ risks?: string | undefined;
2000
+ branch?: string | undefined;
2001
+ reviewer?: string | undefined;
2002
+ lastUpdate?: string | undefined;
2003
+ }[];
2004
+ archive?: {
2005
+ id: string;
2006
+ status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2007
+ type: "feature" | "refactor" | "bug" | "tech-debt";
2008
+ description: string;
2009
+ title: string;
2010
+ acceptanceCriteria: string[];
2011
+ priority: "P0" | "P1" | "P2" | "P3";
2012
+ scope: string;
2013
+ progress: number;
2014
+ dependencies?: string[] | undefined;
2015
+ owner?: string | undefined;
2016
+ outOfScope?: string | undefined;
2017
+ businessValue?: string | undefined;
2018
+ risks?: string | undefined;
2019
+ branch?: string | undefined;
2020
+ reviewer?: string | undefined;
2021
+ lastUpdate?: string | undefined;
2022
+ }[] | undefined;
2023
+ }>;
2024
+ export declare const OpenspecTaskCardPhaseSchema: z.ZodEnum<["discover", "design", "implement", "test", "review"]>;
2025
+ export declare const OpenspecTaskCardStatusSchema: z.ZodEnum<["pending", "doing", "blocked", "done"]>;
2026
+ export declare const OpenspecTaskCardSchema: z.ZodObject<{
2027
+ id: z.ZodString;
2028
+ backlogId: z.ZodString;
2029
+ phase: z.ZodEnum<["discover", "design", "implement", "test", "review"]>;
2030
+ title: z.ZodString;
2031
+ prompt: z.ZodString;
2032
+ agent: z.ZodString;
2033
+ modelHint: z.ZodOptional<z.ZodString>;
2034
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2035
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
2036
+ status: z.ZodEnum<["pending", "doing", "blocked", "done"]>;
2037
+ itemHash: z.ZodOptional<z.ZodString>;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ id: string;
2040
+ status: "pending" | "done" | "blocked" | "doing";
2041
+ title: string;
2042
+ acceptanceCriteria: string[];
2043
+ backlogId: string;
2044
+ phase: "test" | "review" | "discover" | "design" | "implement";
2045
+ prompt: string;
2046
+ agent: string;
2047
+ dependsOn: string[];
2048
+ modelHint?: string | undefined;
2049
+ itemHash?: string | undefined;
2050
+ }, {
2051
+ id: string;
2052
+ status: "pending" | "done" | "blocked" | "doing";
2053
+ title: string;
2054
+ acceptanceCriteria: string[];
2055
+ backlogId: string;
2056
+ phase: "test" | "review" | "discover" | "design" | "implement";
2057
+ prompt: string;
2058
+ agent: string;
2059
+ modelHint?: string | undefined;
2060
+ dependsOn?: string[] | undefined;
2061
+ itemHash?: string | undefined;
2062
+ }>;
2063
+ export declare const OpenspecStateSchema: z.ZodObject<{
2064
+ version: z.ZodLiteral<1>;
2065
+ activeItemId: z.ZodOptional<z.ZodString>;
2066
+ taskCards: z.ZodDefault<z.ZodArray<z.ZodObject<{
2067
+ id: z.ZodString;
2068
+ backlogId: z.ZodString;
2069
+ phase: z.ZodEnum<["discover", "design", "implement", "test", "review"]>;
2070
+ title: z.ZodString;
2071
+ prompt: z.ZodString;
2072
+ agent: z.ZodString;
2073
+ modelHint: z.ZodOptional<z.ZodString>;
2074
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2075
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
2076
+ status: z.ZodEnum<["pending", "doing", "blocked", "done"]>;
2077
+ itemHash: z.ZodOptional<z.ZodString>;
2078
+ }, "strip", z.ZodTypeAny, {
2079
+ id: string;
2080
+ status: "pending" | "done" | "blocked" | "doing";
2081
+ title: string;
2082
+ acceptanceCriteria: string[];
2083
+ backlogId: string;
2084
+ phase: "test" | "review" | "discover" | "design" | "implement";
2085
+ prompt: string;
2086
+ agent: string;
2087
+ dependsOn: string[];
2088
+ modelHint?: string | undefined;
2089
+ itemHash?: string | undefined;
2090
+ }, {
2091
+ id: string;
2092
+ status: "pending" | "done" | "blocked" | "doing";
2093
+ title: string;
2094
+ acceptanceCriteria: string[];
2095
+ backlogId: string;
2096
+ phase: "test" | "review" | "discover" | "design" | "implement";
2097
+ prompt: string;
2098
+ agent: string;
2099
+ modelHint?: string | undefined;
2100
+ dependsOn?: string[] | undefined;
2101
+ itemHash?: string | undefined;
2102
+ }>, "many">>;
2103
+ lastScanHash: z.ZodOptional<z.ZodString>;
2104
+ lastScanAt: z.ZodOptional<z.ZodString>;
2105
+ changePaths: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
2106
+ itemSnapshots: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
2107
+ }, "strip", z.ZodTypeAny, {
2108
+ version: 1;
2109
+ taskCards: {
2110
+ id: string;
2111
+ status: "pending" | "done" | "blocked" | "doing";
2112
+ title: string;
2113
+ acceptanceCriteria: string[];
2114
+ backlogId: string;
2115
+ phase: "test" | "review" | "discover" | "design" | "implement";
2116
+ prompt: string;
2117
+ agent: string;
2118
+ dependsOn: string[];
2119
+ modelHint?: string | undefined;
2120
+ itemHash?: string | undefined;
2121
+ }[];
2122
+ changePaths: Record<string, string>;
2123
+ itemSnapshots: Record<string, string>;
2124
+ activeItemId?: string | undefined;
2125
+ lastScanHash?: string | undefined;
2126
+ lastScanAt?: string | undefined;
2127
+ }, {
2128
+ version: 1;
2129
+ activeItemId?: string | undefined;
2130
+ taskCards?: {
2131
+ id: string;
2132
+ status: "pending" | "done" | "blocked" | "doing";
2133
+ title: string;
2134
+ acceptanceCriteria: string[];
2135
+ backlogId: string;
2136
+ phase: "test" | "review" | "discover" | "design" | "implement";
2137
+ prompt: string;
2138
+ agent: string;
2139
+ modelHint?: string | undefined;
2140
+ dependsOn?: string[] | undefined;
2141
+ itemHash?: string | undefined;
2142
+ }[] | undefined;
2143
+ lastScanHash?: string | undefined;
2144
+ lastScanAt?: string | undefined;
2145
+ changePaths?: Record<string, string> | undefined;
2146
+ itemSnapshots?: Record<string, string> | undefined;
2147
+ }>;
2148
+ export declare const WorkflowCommandSchema: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2149
+ export declare const CcepOutputFormatSchema: z.ZodEnum<["taskcard", "plan", "verdict"]>;
2150
+ export declare const CommandEnvelopeSchema: z.ZodObject<{
2151
+ protocolVersion: z.ZodLiteral<"ccep-1">;
2152
+ command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2153
+ userRequest: z.ZodString;
2154
+ projectId: z.ZodString;
2155
+ repoContext: z.ZodObject<{
2156
+ domain: z.ZodOptional<z.ZodString>;
2157
+ stack: z.ZodArray<z.ZodString, "many">;
2158
+ existingModules: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2159
+ architecture: z.ZodOptional<z.ZodString>;
2160
+ }, "strip", z.ZodTypeAny, {
2161
+ stack: string[];
2162
+ existingModules: string[];
2163
+ domain?: string | undefined;
2164
+ architecture?: string | undefined;
2165
+ }, {
2166
+ stack: string[];
2167
+ domain?: string | undefined;
2168
+ existingModules?: string[] | undefined;
2169
+ architecture?: string | undefined;
2170
+ }>;
2171
+ constraints: z.ZodObject<{
2172
+ outputFormat: z.ZodEnum<["taskcard", "plan", "verdict"]>;
2173
+ needConfirmation: z.ZodBoolean;
2174
+ riskThreshold: z.ZodEnum<["low", "medium", "high"]>;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ outputFormat: "taskcard" | "plan" | "verdict";
2177
+ needConfirmation: boolean;
2178
+ riskThreshold: "low" | "medium" | "high";
2179
+ }, {
2180
+ outputFormat: "taskcard" | "plan" | "verdict";
2181
+ needConfirmation: boolean;
2182
+ riskThreshold: "low" | "medium" | "high";
2183
+ }>;
2184
+ executionPolicy: z.ZodObject<{
2185
+ modelMode: z.ZodLiteral<"structured">;
2186
+ maxVariance: z.ZodLiteral<"low">;
2187
+ }, "strip", z.ZodTypeAny, {
2188
+ modelMode: "structured";
2189
+ maxVariance: "low";
2190
+ }, {
2191
+ modelMode: "structured";
2192
+ maxVariance: "low";
2193
+ }>;
2194
+ }, "strip", z.ZodTypeAny, {
2195
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2196
+ constraints: {
2197
+ outputFormat: "taskcard" | "plan" | "verdict";
2198
+ needConfirmation: boolean;
2199
+ riskThreshold: "low" | "medium" | "high";
2200
+ };
2201
+ protocolVersion: "ccep-1";
2202
+ userRequest: string;
2203
+ projectId: string;
2204
+ repoContext: {
2205
+ stack: string[];
2206
+ existingModules: string[];
2207
+ domain?: string | undefined;
2208
+ architecture?: string | undefined;
2209
+ };
2210
+ executionPolicy: {
2211
+ modelMode: "structured";
2212
+ maxVariance: "low";
2213
+ };
2214
+ }, {
2215
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2216
+ constraints: {
2217
+ outputFormat: "taskcard" | "plan" | "verdict";
2218
+ needConfirmation: boolean;
2219
+ riskThreshold: "low" | "medium" | "high";
2220
+ };
2221
+ protocolVersion: "ccep-1";
2222
+ userRequest: string;
2223
+ projectId: string;
2224
+ repoContext: {
2225
+ stack: string[];
2226
+ domain?: string | undefined;
2227
+ existingModules?: string[] | undefined;
2228
+ architecture?: string | undefined;
2229
+ };
2230
+ executionPolicy: {
2231
+ modelMode: "structured";
2232
+ maxVariance: "low";
2233
+ };
2234
+ }>;
2235
+ export declare const WorkflowPhaseSchema: z.ZodObject<{
2236
+ id: z.ZodString;
2237
+ agent: z.ZodOptional<z.ZodString>;
2238
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2239
+ skill: z.ZodOptional<z.ZodString>;
2240
+ type: z.ZodOptional<z.ZodString>;
2241
+ outputSchema: z.ZodOptional<z.ZodString>;
2242
+ stopGate: z.ZodOptional<z.ZodString>;
2243
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2244
+ requires: z.ZodOptional<z.ZodString>;
2245
+ parallelWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2246
+ }, "strip", z.ZodTypeAny, {
2247
+ id: string;
2248
+ type?: string | undefined;
2249
+ agents?: string[] | undefined;
2250
+ agent?: string | undefined;
2251
+ dependsOn?: string[] | undefined;
2252
+ skill?: string | undefined;
2253
+ outputSchema?: string | undefined;
2254
+ stopGate?: string | undefined;
2255
+ requires?: string | undefined;
2256
+ parallelWith?: string[] | undefined;
2257
+ }, {
2258
+ id: string;
2259
+ type?: string | undefined;
2260
+ agents?: string[] | undefined;
2261
+ agent?: string | undefined;
2262
+ dependsOn?: string[] | undefined;
2263
+ skill?: string | undefined;
2264
+ outputSchema?: string | undefined;
2265
+ stopGate?: string | undefined;
2266
+ requires?: string | undefined;
2267
+ parallelWith?: string[] | undefined;
2268
+ }>;
2269
+ export declare const WorkflowRiskRuleSchema: z.ZodObject<{
2270
+ when: z.ZodObject<{
2271
+ risk: z.ZodUnion<[z.ZodEnum<["low", "medium", "high"]>, z.ZodArray<z.ZodEnum<["low", "medium", "high"]>, "many">]>;
2272
+ }, "strip", z.ZodTypeAny, {
2273
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2274
+ }, {
2275
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2276
+ }>;
2277
+ then: z.ZodArray<z.ZodString, "many">;
2278
+ }, "strip", z.ZodTypeAny, {
2279
+ when: {
2280
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2281
+ };
2282
+ then: string[];
2283
+ }, {
2284
+ when: {
2285
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2286
+ };
2287
+ then: string[];
2288
+ }>;
2289
+ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
2290
+ id: z.ZodString;
2291
+ version: z.ZodNumber;
2292
+ command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2293
+ taskCard: z.ZodOptional<z.ZodObject<{
2294
+ type: z.ZodString;
2295
+ requiredFields: z.ZodArray<z.ZodString, "many">;
2296
+ optionalFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2297
+ }, "strip", z.ZodTypeAny, {
2298
+ type: string;
2299
+ requiredFields: string[];
2300
+ optionalFields?: string[] | undefined;
2301
+ }, {
2302
+ type: string;
2303
+ requiredFields: string[];
2304
+ optionalFields?: string[] | undefined;
2305
+ }>>;
2306
+ intakeSchema: z.ZodOptional<z.ZodString>;
2307
+ phases: z.ZodArray<z.ZodObject<{
2308
+ id: z.ZodString;
2309
+ agent: z.ZodOptional<z.ZodString>;
2310
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2311
+ skill: z.ZodOptional<z.ZodString>;
2312
+ type: z.ZodOptional<z.ZodString>;
2313
+ outputSchema: z.ZodOptional<z.ZodString>;
2314
+ stopGate: z.ZodOptional<z.ZodString>;
2315
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2316
+ requires: z.ZodOptional<z.ZodString>;
2317
+ parallelWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2318
+ }, "strip", z.ZodTypeAny, {
2319
+ id: string;
2320
+ type?: string | undefined;
2321
+ agents?: string[] | undefined;
2322
+ agent?: string | undefined;
2323
+ dependsOn?: string[] | undefined;
2324
+ skill?: string | undefined;
2325
+ outputSchema?: string | undefined;
2326
+ stopGate?: string | undefined;
2327
+ requires?: string | undefined;
2328
+ parallelWith?: string[] | undefined;
2329
+ }, {
2330
+ id: string;
2331
+ type?: string | undefined;
2332
+ agents?: string[] | undefined;
2333
+ agent?: string | undefined;
2334
+ dependsOn?: string[] | undefined;
2335
+ skill?: string | undefined;
2336
+ outputSchema?: string | undefined;
2337
+ stopGate?: string | undefined;
2338
+ requires?: string | undefined;
2339
+ parallelWith?: string[] | undefined;
2340
+ }>, "many">;
2341
+ routing: z.ZodObject<{
2342
+ default: z.ZodArray<z.ZodString, "many">;
2343
+ riskRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2344
+ when: z.ZodObject<{
2345
+ risk: z.ZodUnion<[z.ZodEnum<["low", "medium", "high"]>, z.ZodArray<z.ZodEnum<["low", "medium", "high"]>, "many">]>;
2346
+ }, "strip", z.ZodTypeAny, {
2347
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2348
+ }, {
2349
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2350
+ }>;
2351
+ then: z.ZodArray<z.ZodString, "many">;
2352
+ }, "strip", z.ZodTypeAny, {
2353
+ when: {
2354
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2355
+ };
2356
+ then: string[];
2357
+ }, {
2358
+ when: {
2359
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2360
+ };
2361
+ then: string[];
2362
+ }>, "many">>;
2363
+ }, "strip", z.ZodTypeAny, {
2364
+ default: string[];
2365
+ riskRules?: {
2366
+ when: {
2367
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2368
+ };
2369
+ then: string[];
2370
+ }[] | undefined;
2371
+ }, {
2372
+ default: string[];
2373
+ riskRules?: {
2374
+ when: {
2375
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2376
+ };
2377
+ then: string[];
2378
+ }[] | undefined;
2379
+ }>;
2380
+ confirmationGate: z.ZodObject<{
2381
+ stopOnHighRisk: z.ZodBoolean;
2382
+ stopOnQuestions: z.ZodBoolean;
2383
+ }, "strip", z.ZodTypeAny, {
2384
+ stopOnHighRisk: boolean;
2385
+ stopOnQuestions: boolean;
2386
+ }, {
2387
+ stopOnHighRisk: boolean;
2388
+ stopOnQuestions: boolean;
2389
+ }>;
2390
+ }, "strip", z.ZodTypeAny, {
2391
+ id: string;
2392
+ version: number;
2393
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2394
+ phases: {
2395
+ id: string;
2396
+ type?: string | undefined;
2397
+ agents?: string[] | undefined;
2398
+ agent?: string | undefined;
2399
+ dependsOn?: string[] | undefined;
2400
+ skill?: string | undefined;
2401
+ outputSchema?: string | undefined;
2402
+ stopGate?: string | undefined;
2403
+ requires?: string | undefined;
2404
+ parallelWith?: string[] | undefined;
2405
+ }[];
2406
+ routing: {
2407
+ default: string[];
2408
+ riskRules?: {
2409
+ when: {
2410
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2411
+ };
2412
+ then: string[];
2413
+ }[] | undefined;
2414
+ };
2415
+ confirmationGate: {
2416
+ stopOnHighRisk: boolean;
2417
+ stopOnQuestions: boolean;
2418
+ };
2419
+ taskCard?: {
2420
+ type: string;
2421
+ requiredFields: string[];
2422
+ optionalFields?: string[] | undefined;
2423
+ } | undefined;
2424
+ intakeSchema?: string | undefined;
2425
+ }, {
2426
+ id: string;
2427
+ version: number;
2428
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2429
+ phases: {
2430
+ id: string;
2431
+ type?: string | undefined;
2432
+ agents?: string[] | undefined;
2433
+ agent?: string | undefined;
2434
+ dependsOn?: string[] | undefined;
2435
+ skill?: string | undefined;
2436
+ outputSchema?: string | undefined;
2437
+ stopGate?: string | undefined;
2438
+ requires?: string | undefined;
2439
+ parallelWith?: string[] | undefined;
2440
+ }[];
2441
+ routing: {
2442
+ default: string[];
2443
+ riskRules?: {
2444
+ when: {
2445
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2446
+ };
2447
+ then: string[];
2448
+ }[] | undefined;
2449
+ };
2450
+ confirmationGate: {
2451
+ stopOnHighRisk: boolean;
2452
+ stopOnQuestions: boolean;
2453
+ };
2454
+ taskCard?: {
2455
+ type: string;
2456
+ requiredFields: string[];
2457
+ optionalFields?: string[] | undefined;
2458
+ } | undefined;
2459
+ intakeSchema?: string | undefined;
2460
+ }>, {
2461
+ id: string;
2462
+ version: number;
2463
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2464
+ phases: {
2465
+ id: string;
2466
+ type?: string | undefined;
2467
+ agents?: string[] | undefined;
2468
+ agent?: string | undefined;
2469
+ dependsOn?: string[] | undefined;
2470
+ skill?: string | undefined;
2471
+ outputSchema?: string | undefined;
2472
+ stopGate?: string | undefined;
2473
+ requires?: string | undefined;
2474
+ parallelWith?: string[] | undefined;
2475
+ }[];
2476
+ routing: {
2477
+ default: string[];
2478
+ riskRules?: {
2479
+ when: {
2480
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2481
+ };
2482
+ then: string[];
2483
+ }[] | undefined;
2484
+ };
2485
+ confirmationGate: {
2486
+ stopOnHighRisk: boolean;
2487
+ stopOnQuestions: boolean;
2488
+ };
2489
+ taskCard?: {
2490
+ type: string;
2491
+ requiredFields: string[];
2492
+ optionalFields?: string[] | undefined;
2493
+ } | undefined;
2494
+ intakeSchema?: string | undefined;
2495
+ }, {
2496
+ id: string;
2497
+ version: number;
2498
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2499
+ phases: {
2500
+ id: string;
2501
+ type?: string | undefined;
2502
+ agents?: string[] | undefined;
2503
+ agent?: string | undefined;
2504
+ dependsOn?: string[] | undefined;
2505
+ skill?: string | undefined;
2506
+ outputSchema?: string | undefined;
2507
+ stopGate?: string | undefined;
2508
+ requires?: string | undefined;
2509
+ parallelWith?: string[] | undefined;
2510
+ }[];
2511
+ routing: {
2512
+ default: string[];
2513
+ riskRules?: {
2514
+ when: {
2515
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2516
+ };
2517
+ then: string[];
2518
+ }[] | undefined;
2519
+ };
2520
+ confirmationGate: {
2521
+ stopOnHighRisk: boolean;
2522
+ stopOnQuestions: boolean;
2523
+ };
2524
+ taskCard?: {
2525
+ type: string;
2526
+ requiredFields: string[];
2527
+ optionalFields?: string[] | undefined;
2528
+ } | undefined;
2529
+ intakeSchema?: string | undefined;
2530
+ }>;
2531
+ export declare const ExecutionContextSchema: z.ZodObject<{
2532
+ envelope: z.ZodObject<{
2533
+ protocolVersion: z.ZodLiteral<"ccep-1">;
2534
+ command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2535
+ userRequest: z.ZodString;
2536
+ projectId: z.ZodString;
2537
+ repoContext: z.ZodObject<{
2538
+ domain: z.ZodOptional<z.ZodString>;
2539
+ stack: z.ZodArray<z.ZodString, "many">;
2540
+ existingModules: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2541
+ architecture: z.ZodOptional<z.ZodString>;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ stack: string[];
2544
+ existingModules: string[];
2545
+ domain?: string | undefined;
2546
+ architecture?: string | undefined;
2547
+ }, {
2548
+ stack: string[];
2549
+ domain?: string | undefined;
2550
+ existingModules?: string[] | undefined;
2551
+ architecture?: string | undefined;
2552
+ }>;
2553
+ constraints: z.ZodObject<{
2554
+ outputFormat: z.ZodEnum<["taskcard", "plan", "verdict"]>;
2555
+ needConfirmation: z.ZodBoolean;
2556
+ riskThreshold: z.ZodEnum<["low", "medium", "high"]>;
2557
+ }, "strip", z.ZodTypeAny, {
2558
+ outputFormat: "taskcard" | "plan" | "verdict";
2559
+ needConfirmation: boolean;
2560
+ riskThreshold: "low" | "medium" | "high";
2561
+ }, {
2562
+ outputFormat: "taskcard" | "plan" | "verdict";
2563
+ needConfirmation: boolean;
2564
+ riskThreshold: "low" | "medium" | "high";
2565
+ }>;
2566
+ executionPolicy: z.ZodObject<{
2567
+ modelMode: z.ZodLiteral<"structured">;
2568
+ maxVariance: z.ZodLiteral<"low">;
2569
+ }, "strip", z.ZodTypeAny, {
2570
+ modelMode: "structured";
2571
+ maxVariance: "low";
2572
+ }, {
2573
+ modelMode: "structured";
2574
+ maxVariance: "low";
2575
+ }>;
2576
+ }, "strip", z.ZodTypeAny, {
2577
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2578
+ constraints: {
2579
+ outputFormat: "taskcard" | "plan" | "verdict";
2580
+ needConfirmation: boolean;
2581
+ riskThreshold: "low" | "medium" | "high";
2582
+ };
2583
+ protocolVersion: "ccep-1";
2584
+ userRequest: string;
2585
+ projectId: string;
2586
+ repoContext: {
2587
+ stack: string[];
2588
+ existingModules: string[];
2589
+ domain?: string | undefined;
2590
+ architecture?: string | undefined;
2591
+ };
2592
+ executionPolicy: {
2593
+ modelMode: "structured";
2594
+ maxVariance: "low";
2595
+ };
2596
+ }, {
2597
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2598
+ constraints: {
2599
+ outputFormat: "taskcard" | "plan" | "verdict";
2600
+ needConfirmation: boolean;
2601
+ riskThreshold: "low" | "medium" | "high";
2602
+ };
2603
+ protocolVersion: "ccep-1";
2604
+ userRequest: string;
2605
+ projectId: string;
2606
+ repoContext: {
2607
+ stack: string[];
2608
+ domain?: string | undefined;
2609
+ existingModules?: string[] | undefined;
2610
+ architecture?: string | undefined;
2611
+ };
2612
+ executionPolicy: {
2613
+ modelMode: "structured";
2614
+ maxVariance: "low";
2615
+ };
2616
+ }>;
2617
+ profile: z.ZodEffects<z.ZodObject<{
2618
+ id: z.ZodString;
2619
+ version: z.ZodNumber;
2620
+ command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2621
+ taskCard: z.ZodOptional<z.ZodObject<{
2622
+ type: z.ZodString;
2623
+ requiredFields: z.ZodArray<z.ZodString, "many">;
2624
+ optionalFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2625
+ }, "strip", z.ZodTypeAny, {
2626
+ type: string;
2627
+ requiredFields: string[];
2628
+ optionalFields?: string[] | undefined;
2629
+ }, {
2630
+ type: string;
2631
+ requiredFields: string[];
2632
+ optionalFields?: string[] | undefined;
2633
+ }>>;
2634
+ intakeSchema: z.ZodOptional<z.ZodString>;
2635
+ phases: z.ZodArray<z.ZodObject<{
2636
+ id: z.ZodString;
2637
+ agent: z.ZodOptional<z.ZodString>;
2638
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2639
+ skill: z.ZodOptional<z.ZodString>;
2640
+ type: z.ZodOptional<z.ZodString>;
2641
+ outputSchema: z.ZodOptional<z.ZodString>;
2642
+ stopGate: z.ZodOptional<z.ZodString>;
2643
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2644
+ requires: z.ZodOptional<z.ZodString>;
2645
+ parallelWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ id: string;
2648
+ type?: string | undefined;
2649
+ agents?: string[] | undefined;
2650
+ agent?: string | undefined;
2651
+ dependsOn?: string[] | undefined;
2652
+ skill?: string | undefined;
2653
+ outputSchema?: string | undefined;
2654
+ stopGate?: string | undefined;
2655
+ requires?: string | undefined;
2656
+ parallelWith?: string[] | undefined;
2657
+ }, {
2658
+ id: string;
2659
+ type?: string | undefined;
2660
+ agents?: string[] | undefined;
2661
+ agent?: string | undefined;
2662
+ dependsOn?: string[] | undefined;
2663
+ skill?: string | undefined;
2664
+ outputSchema?: string | undefined;
2665
+ stopGate?: string | undefined;
2666
+ requires?: string | undefined;
2667
+ parallelWith?: string[] | undefined;
2668
+ }>, "many">;
2669
+ routing: z.ZodObject<{
2670
+ default: z.ZodArray<z.ZodString, "many">;
2671
+ riskRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2672
+ when: z.ZodObject<{
2673
+ risk: z.ZodUnion<[z.ZodEnum<["low", "medium", "high"]>, z.ZodArray<z.ZodEnum<["low", "medium", "high"]>, "many">]>;
2674
+ }, "strip", z.ZodTypeAny, {
2675
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2676
+ }, {
2677
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2678
+ }>;
2679
+ then: z.ZodArray<z.ZodString, "many">;
2680
+ }, "strip", z.ZodTypeAny, {
2681
+ when: {
2682
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2683
+ };
2684
+ then: string[];
2685
+ }, {
2686
+ when: {
2687
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2688
+ };
2689
+ then: string[];
2690
+ }>, "many">>;
2691
+ }, "strip", z.ZodTypeAny, {
2692
+ default: string[];
2693
+ riskRules?: {
2694
+ when: {
2695
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2696
+ };
2697
+ then: string[];
2698
+ }[] | undefined;
2699
+ }, {
2700
+ default: string[];
2701
+ riskRules?: {
2702
+ when: {
2703
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2704
+ };
2705
+ then: string[];
2706
+ }[] | undefined;
2707
+ }>;
2708
+ confirmationGate: z.ZodObject<{
2709
+ stopOnHighRisk: z.ZodBoolean;
2710
+ stopOnQuestions: z.ZodBoolean;
2711
+ }, "strip", z.ZodTypeAny, {
2712
+ stopOnHighRisk: boolean;
2713
+ stopOnQuestions: boolean;
2714
+ }, {
2715
+ stopOnHighRisk: boolean;
2716
+ stopOnQuestions: boolean;
2717
+ }>;
2718
+ }, "strip", z.ZodTypeAny, {
2719
+ id: string;
2720
+ version: number;
2721
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2722
+ phases: {
2723
+ id: string;
2724
+ type?: string | undefined;
2725
+ agents?: string[] | undefined;
2726
+ agent?: string | undefined;
2727
+ dependsOn?: string[] | undefined;
2728
+ skill?: string | undefined;
2729
+ outputSchema?: string | undefined;
2730
+ stopGate?: string | undefined;
2731
+ requires?: string | undefined;
2732
+ parallelWith?: string[] | undefined;
2733
+ }[];
2734
+ routing: {
2735
+ default: string[];
2736
+ riskRules?: {
2737
+ when: {
2738
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2739
+ };
2740
+ then: string[];
2741
+ }[] | undefined;
2742
+ };
2743
+ confirmationGate: {
2744
+ stopOnHighRisk: boolean;
2745
+ stopOnQuestions: boolean;
2746
+ };
2747
+ taskCard?: {
2748
+ type: string;
2749
+ requiredFields: string[];
2750
+ optionalFields?: string[] | undefined;
2751
+ } | undefined;
2752
+ intakeSchema?: string | undefined;
2753
+ }, {
2754
+ id: string;
2755
+ version: number;
2756
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2757
+ phases: {
2758
+ id: string;
2759
+ type?: string | undefined;
2760
+ agents?: string[] | undefined;
2761
+ agent?: string | undefined;
2762
+ dependsOn?: string[] | undefined;
2763
+ skill?: string | undefined;
2764
+ outputSchema?: string | undefined;
2765
+ stopGate?: string | undefined;
2766
+ requires?: string | undefined;
2767
+ parallelWith?: string[] | undefined;
2768
+ }[];
2769
+ routing: {
2770
+ default: string[];
2771
+ riskRules?: {
2772
+ when: {
2773
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2774
+ };
2775
+ then: string[];
2776
+ }[] | undefined;
2777
+ };
2778
+ confirmationGate: {
2779
+ stopOnHighRisk: boolean;
2780
+ stopOnQuestions: boolean;
2781
+ };
2782
+ taskCard?: {
2783
+ type: string;
2784
+ requiredFields: string[];
2785
+ optionalFields?: string[] | undefined;
2786
+ } | undefined;
2787
+ intakeSchema?: string | undefined;
2788
+ }>, {
2789
+ id: string;
2790
+ version: number;
2791
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2792
+ phases: {
2793
+ id: string;
2794
+ type?: string | undefined;
2795
+ agents?: string[] | undefined;
2796
+ agent?: string | undefined;
2797
+ dependsOn?: string[] | undefined;
2798
+ skill?: string | undefined;
2799
+ outputSchema?: string | undefined;
2800
+ stopGate?: string | undefined;
2801
+ requires?: string | undefined;
2802
+ parallelWith?: string[] | undefined;
2803
+ }[];
2804
+ routing: {
2805
+ default: string[];
2806
+ riskRules?: {
2807
+ when: {
2808
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2809
+ };
2810
+ then: string[];
2811
+ }[] | undefined;
2812
+ };
2813
+ confirmationGate: {
2814
+ stopOnHighRisk: boolean;
2815
+ stopOnQuestions: boolean;
2816
+ };
2817
+ taskCard?: {
2818
+ type: string;
2819
+ requiredFields: string[];
2820
+ optionalFields?: string[] | undefined;
2821
+ } | undefined;
2822
+ intakeSchema?: string | undefined;
2823
+ }, {
2824
+ id: string;
2825
+ version: number;
2826
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2827
+ phases: {
2828
+ id: string;
2829
+ type?: string | undefined;
2830
+ agents?: string[] | undefined;
2831
+ agent?: string | undefined;
2832
+ dependsOn?: string[] | undefined;
2833
+ skill?: string | undefined;
2834
+ outputSchema?: string | undefined;
2835
+ stopGate?: string | undefined;
2836
+ requires?: string | undefined;
2837
+ parallelWith?: string[] | undefined;
2838
+ }[];
2839
+ routing: {
2840
+ default: string[];
2841
+ riskRules?: {
2842
+ when: {
2843
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2844
+ };
2845
+ then: string[];
2846
+ }[] | undefined;
2847
+ };
2848
+ confirmationGate: {
2849
+ stopOnHighRisk: boolean;
2850
+ stopOnQuestions: boolean;
2851
+ };
2852
+ taskCard?: {
2853
+ type: string;
2854
+ requiredFields: string[];
2855
+ optionalFields?: string[] | undefined;
2856
+ } | undefined;
2857
+ intakeSchema?: string | undefined;
2858
+ }>;
2859
+ intent: z.ZodObject<{
2860
+ type: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2861
+ goal: z.ZodString;
2862
+ domain: z.ZodOptional<z.ZodString>;
2863
+ entity: z.ZodOptional<z.ZodString>;
2864
+ operation: z.ZodOptional<z.ZodString>;
2865
+ }, "strip", z.ZodTypeAny, {
2866
+ type: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2867
+ goal: string;
2868
+ domain?: string | undefined;
2869
+ entity?: string | undefined;
2870
+ operation?: string | undefined;
2871
+ }, {
2872
+ type: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2873
+ goal: string;
2874
+ domain?: string | undefined;
2875
+ entity?: string | undefined;
2876
+ operation?: string | undefined;
2877
+ }>;
2878
+ project: z.ZodObject<{
2879
+ name: z.ZodString;
2880
+ rootDir: z.ZodString;
2881
+ stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2882
+ }, "strip", z.ZodTypeAny, {
2883
+ name: string;
2884
+ rootDir: string;
2885
+ stack?: string[] | undefined;
2886
+ }, {
2887
+ name: string;
2888
+ rootDir: string;
2889
+ stack?: string[] | undefined;
2890
+ }>;
2891
+ knowledge: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2892
+ ast: z.ZodObject<{
2893
+ source: z.ZodEnum<["detect", "graphify", "manual", "product-graph"]>;
2894
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
2895
+ domains: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2896
+ rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2897
+ }, "strip", z.ZodTypeAny, {
2898
+ confidence: "low" | "medium" | "high";
2899
+ source: "detect" | "graphify" | "manual" | "product-graph";
2900
+ domains?: unknown[] | undefined;
2901
+ rules?: string[] | undefined;
2902
+ }, {
2903
+ confidence: "low" | "medium" | "high";
2904
+ source: "detect" | "graphify" | "manual" | "product-graph";
2905
+ domains?: unknown[] | undefined;
2906
+ rules?: string[] | undefined;
2907
+ }>;
2908
+ policies: z.ZodObject<{
2909
+ architecture: z.ZodString;
2910
+ testing: z.ZodString;
2911
+ documentation: z.ZodString;
2912
+ breakingChanges: z.ZodString;
2913
+ }, "strip", z.ZodTypeAny, {
2914
+ architecture: string;
2915
+ testing: string;
2916
+ documentation: string;
2917
+ breakingChanges: string;
2918
+ }, {
2919
+ architecture: string;
2920
+ testing: string;
2921
+ documentation: string;
2922
+ breakingChanges: string;
2923
+ }>;
2924
+ currentPhase: z.ZodOptional<z.ZodString>;
2925
+ outputSchema: z.ZodString;
2926
+ }, "strip", z.ZodTypeAny, {
2927
+ project: {
2928
+ name: string;
2929
+ rootDir: string;
2930
+ stack?: string[] | undefined;
2931
+ };
2932
+ profile: {
2933
+ id: string;
2934
+ version: number;
2935
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2936
+ phases: {
2937
+ id: string;
2938
+ type?: string | undefined;
2939
+ agents?: string[] | undefined;
2940
+ agent?: string | undefined;
2941
+ dependsOn?: string[] | undefined;
2942
+ skill?: string | undefined;
2943
+ outputSchema?: string | undefined;
2944
+ stopGate?: string | undefined;
2945
+ requires?: string | undefined;
2946
+ parallelWith?: string[] | undefined;
2947
+ }[];
2948
+ routing: {
2949
+ default: string[];
2950
+ riskRules?: {
2951
+ when: {
2952
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
2953
+ };
2954
+ then: string[];
2955
+ }[] | undefined;
2956
+ };
2957
+ confirmationGate: {
2958
+ stopOnHighRisk: boolean;
2959
+ stopOnQuestions: boolean;
2960
+ };
2961
+ taskCard?: {
2962
+ type: string;
2963
+ requiredFields: string[];
2964
+ optionalFields?: string[] | undefined;
2965
+ } | undefined;
2966
+ intakeSchema?: string | undefined;
2967
+ };
2968
+ outputSchema: string;
2969
+ envelope: {
2970
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2971
+ constraints: {
2972
+ outputFormat: "taskcard" | "plan" | "verdict";
2973
+ needConfirmation: boolean;
2974
+ riskThreshold: "low" | "medium" | "high";
2975
+ };
2976
+ protocolVersion: "ccep-1";
2977
+ userRequest: string;
2978
+ projectId: string;
2979
+ repoContext: {
2980
+ stack: string[];
2981
+ existingModules: string[];
2982
+ domain?: string | undefined;
2983
+ architecture?: string | undefined;
2984
+ };
2985
+ executionPolicy: {
2986
+ modelMode: "structured";
2987
+ maxVariance: "low";
2988
+ };
2989
+ };
2990
+ intent: {
2991
+ type: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2992
+ goal: string;
2993
+ domain?: string | undefined;
2994
+ entity?: string | undefined;
2995
+ operation?: string | undefined;
2996
+ };
2997
+ knowledge: Record<string, unknown>;
2998
+ ast: {
2999
+ confidence: "low" | "medium" | "high";
3000
+ source: "detect" | "graphify" | "manual" | "product-graph";
3001
+ domains?: unknown[] | undefined;
3002
+ rules?: string[] | undefined;
3003
+ };
3004
+ policies: {
3005
+ architecture: string;
3006
+ testing: string;
3007
+ documentation: string;
3008
+ breakingChanges: string;
3009
+ };
3010
+ currentPhase?: string | undefined;
3011
+ }, {
3012
+ project: {
3013
+ name: string;
3014
+ rootDir: string;
3015
+ stack?: string[] | undefined;
3016
+ };
3017
+ profile: {
3018
+ id: string;
3019
+ version: number;
3020
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3021
+ phases: {
3022
+ id: string;
3023
+ type?: string | undefined;
3024
+ agents?: string[] | undefined;
3025
+ agent?: string | undefined;
3026
+ dependsOn?: string[] | undefined;
3027
+ skill?: string | undefined;
3028
+ outputSchema?: string | undefined;
3029
+ stopGate?: string | undefined;
3030
+ requires?: string | undefined;
3031
+ parallelWith?: string[] | undefined;
3032
+ }[];
3033
+ routing: {
3034
+ default: string[];
3035
+ riskRules?: {
3036
+ when: {
3037
+ risk: "low" | "medium" | "high" | ("low" | "medium" | "high")[];
3038
+ };
3039
+ then: string[];
3040
+ }[] | undefined;
3041
+ };
3042
+ confirmationGate: {
3043
+ stopOnHighRisk: boolean;
3044
+ stopOnQuestions: boolean;
3045
+ };
3046
+ taskCard?: {
3047
+ type: string;
3048
+ requiredFields: string[];
3049
+ optionalFields?: string[] | undefined;
3050
+ } | undefined;
3051
+ intakeSchema?: string | undefined;
3052
+ };
3053
+ outputSchema: string;
3054
+ envelope: {
3055
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3056
+ constraints: {
3057
+ outputFormat: "taskcard" | "plan" | "verdict";
3058
+ needConfirmation: boolean;
3059
+ riskThreshold: "low" | "medium" | "high";
3060
+ };
3061
+ protocolVersion: "ccep-1";
3062
+ userRequest: string;
3063
+ projectId: string;
3064
+ repoContext: {
3065
+ stack: string[];
3066
+ domain?: string | undefined;
3067
+ existingModules?: string[] | undefined;
3068
+ architecture?: string | undefined;
3069
+ };
3070
+ executionPolicy: {
3071
+ modelMode: "structured";
3072
+ maxVariance: "low";
3073
+ };
3074
+ };
3075
+ intent: {
3076
+ type: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3077
+ goal: string;
3078
+ domain?: string | undefined;
3079
+ entity?: string | undefined;
3080
+ operation?: string | undefined;
3081
+ };
3082
+ ast: {
3083
+ confidence: "low" | "medium" | "high";
3084
+ source: "detect" | "graphify" | "manual" | "product-graph";
3085
+ domains?: unknown[] | undefined;
3086
+ rules?: string[] | undefined;
3087
+ };
3088
+ policies: {
3089
+ architecture: string;
3090
+ testing: string;
3091
+ documentation: string;
3092
+ breakingChanges: string;
3093
+ };
3094
+ knowledge?: Record<string, unknown> | undefined;
3095
+ currentPhase?: string | undefined;
3096
+ }>;
3097
+ export declare const PlannerOutputSchema: z.ZodObject<{
3098
+ status: z.ZodEnum<["success", "needs_clarification"]>;
3099
+ confidence: z.ZodNumber;
3100
+ goal: z.ZodString;
3101
+ assumptions: z.ZodArray<z.ZodString, "many">;
3102
+ risks: z.ZodArray<z.ZodObject<{
3103
+ type: z.ZodString;
3104
+ description: z.ZodString;
3105
+ severity: z.ZodEnum<["low", "medium", "high"]>;
3106
+ }, "strip", z.ZodTypeAny, {
3107
+ type: string;
3108
+ description: string;
3109
+ severity: "low" | "medium" | "high";
3110
+ }, {
3111
+ type: string;
3112
+ description: string;
3113
+ severity: "low" | "medium" | "high";
3114
+ }>, "many">;
3115
+ tasks: z.ZodArray<z.ZodObject<{
3116
+ id: z.ZodString;
3117
+ title: z.ZodString;
3118
+ priority: z.ZodString;
3119
+ estimate: z.ZodString;
3120
+ dependencies: z.ZodArray<z.ZodString, "many">;
3121
+ }, "strip", z.ZodTypeAny, {
3122
+ id: string;
3123
+ title: string;
3124
+ dependencies: string[];
3125
+ priority: string;
3126
+ estimate: string;
3127
+ }, {
3128
+ id: string;
3129
+ title: string;
3130
+ dependencies: string[];
3131
+ priority: string;
3132
+ estimate: string;
3133
+ }>, "many">;
3134
+ questionsForUser: z.ZodArray<z.ZodString, "many">;
3135
+ needsConfirmation: z.ZodBoolean;
3136
+ }, "strip", z.ZodTypeAny, {
3137
+ status: "success" | "needs_clarification";
3138
+ confidence: number;
3139
+ tasks: {
3140
+ id: string;
3141
+ title: string;
3142
+ dependencies: string[];
3143
+ priority: string;
3144
+ estimate: string;
3145
+ }[];
3146
+ risks: {
3147
+ type: string;
3148
+ description: string;
3149
+ severity: "low" | "medium" | "high";
3150
+ }[];
3151
+ goal: string;
3152
+ assumptions: string[];
3153
+ questionsForUser: string[];
3154
+ needsConfirmation: boolean;
3155
+ }, {
3156
+ status: "success" | "needs_clarification";
3157
+ confidence: number;
3158
+ tasks: {
3159
+ id: string;
3160
+ title: string;
3161
+ dependencies: string[];
3162
+ priority: string;
3163
+ estimate: string;
3164
+ }[];
3165
+ risks: {
3166
+ type: string;
3167
+ description: string;
3168
+ severity: "low" | "medium" | "high";
3169
+ }[];
3170
+ goal: string;
3171
+ assumptions: string[];
3172
+ questionsForUser: string[];
3173
+ needsConfirmation: boolean;
3174
+ }>;
3175
+ export declare const AgentArtifactSchema: z.ZodObject<{
3176
+ type: z.ZodString;
3177
+ path: z.ZodOptional<z.ZodString>;
3178
+ content: z.ZodOptional<z.ZodString>;
3179
+ }, "strip", z.ZodTypeAny, {
3180
+ type: string;
3181
+ path?: string | undefined;
3182
+ content?: string | undefined;
3183
+ }, {
3184
+ type: string;
3185
+ path?: string | undefined;
3186
+ content?: string | undefined;
3187
+ }>;
3188
+ export declare const AgentOutputSchema: z.ZodObject<{
3189
+ status: z.ZodEnum<["success", "failure", "blocked", "needs_clarification"]>;
3190
+ confidence: z.ZodNumber;
3191
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3192
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3193
+ type: z.ZodString;
3194
+ path: z.ZodOptional<z.ZodString>;
3195
+ content: z.ZodOptional<z.ZodString>;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ type: string;
3198
+ path?: string | undefined;
3199
+ content?: string | undefined;
3200
+ }, {
3201
+ type: string;
3202
+ path?: string | undefined;
3203
+ content?: string | undefined;
3204
+ }>, "many">>;
3205
+ next_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3206
+ }, "strip", z.ZodTypeAny, {
3207
+ status: "blocked" | "success" | "needs_clarification" | "failure";
3208
+ confidence: number;
3209
+ warnings: string[];
3210
+ artifacts: {
3211
+ type: string;
3212
+ path?: string | undefined;
3213
+ content?: string | undefined;
3214
+ }[];
3215
+ next_actions: string[];
3216
+ }, {
3217
+ status: "blocked" | "success" | "needs_clarification" | "failure";
3218
+ confidence: number;
3219
+ warnings?: string[] | undefined;
3220
+ artifacts?: {
3221
+ type: string;
3222
+ path?: string | undefined;
3223
+ content?: string | undefined;
3224
+ }[] | undefined;
3225
+ next_actions?: string[] | undefined;
3226
+ }>;
3227
+ export declare const ImplementerTestsSchema: z.ZodObject<{
3228
+ runner: z.ZodString;
3229
+ result: z.ZodEnum<["passed", "failed"]>;
3230
+ failedTests: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3231
+ }, "strip", z.ZodTypeAny, {
3232
+ runner: string;
3233
+ result: "passed" | "failed";
3234
+ failedTests?: string[] | undefined;
3235
+ }, {
3236
+ runner: string;
3237
+ result: "passed" | "failed";
3238
+ failedTests?: string[] | undefined;
3239
+ }>;
3240
+ export declare const ImplementerOutputSchema: z.ZodObject<{
3241
+ confidence: z.ZodNumber;
3242
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3243
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3244
+ type: z.ZodString;
3245
+ path: z.ZodOptional<z.ZodString>;
3246
+ content: z.ZodOptional<z.ZodString>;
3247
+ }, "strip", z.ZodTypeAny, {
3248
+ type: string;
3249
+ path?: string | undefined;
3250
+ content?: string | undefined;
3251
+ }, {
3252
+ type: string;
3253
+ path?: string | undefined;
3254
+ content?: string | undefined;
3255
+ }>, "many">>;
3256
+ next_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3257
+ } & {
3258
+ status: z.ZodEnum<["success", "failure", "blocked"]>;
3259
+ filesChanged: z.ZodDefault<z.ZodArray<z.ZodObject<{
3260
+ path: z.ZodString;
3261
+ summary: z.ZodString;
3262
+ }, "strip", z.ZodTypeAny, {
3263
+ path: string;
3264
+ summary: string;
3265
+ }, {
3266
+ path: string;
3267
+ summary: string;
3268
+ }>, "many">>;
3269
+ tests: z.ZodOptional<z.ZodObject<{
3270
+ runner: z.ZodString;
3271
+ result: z.ZodEnum<["passed", "failed"]>;
3272
+ failedTests: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3273
+ }, "strip", z.ZodTypeAny, {
3274
+ runner: string;
3275
+ result: "passed" | "failed";
3276
+ failedTests?: string[] | undefined;
3277
+ }, {
3278
+ runner: string;
3279
+ result: "passed" | "failed";
3280
+ failedTests?: string[] | undefined;
3281
+ }>>;
3282
+ }, "strip", z.ZodTypeAny, {
3283
+ status: "blocked" | "success" | "failure";
3284
+ confidence: number;
3285
+ warnings: string[];
3286
+ artifacts: {
3287
+ type: string;
3288
+ path?: string | undefined;
3289
+ content?: string | undefined;
3290
+ }[];
3291
+ next_actions: string[];
3292
+ filesChanged: {
3293
+ path: string;
3294
+ summary: string;
3295
+ }[];
3296
+ tests?: {
3297
+ runner: string;
3298
+ result: "passed" | "failed";
3299
+ failedTests?: string[] | undefined;
3300
+ } | undefined;
3301
+ }, {
3302
+ status: "blocked" | "success" | "failure";
3303
+ confidence: number;
3304
+ warnings?: string[] | undefined;
3305
+ artifacts?: {
3306
+ type: string;
3307
+ path?: string | undefined;
3308
+ content?: string | undefined;
3309
+ }[] | undefined;
3310
+ next_actions?: string[] | undefined;
3311
+ filesChanged?: {
3312
+ path: string;
3313
+ summary: string;
3314
+ }[] | undefined;
3315
+ tests?: {
3316
+ runner: string;
3317
+ result: "passed" | "failed";
3318
+ failedTests?: string[] | undefined;
3319
+ } | undefined;
3320
+ }>;
3321
+ export declare const ReviewAxisSchema: z.ZodEnum<["complexity", "cost", "performance", "maintainability", "security", "scalability", "style"]>;
3322
+ export declare const ReviewFindingSchema: z.ZodObject<{
3323
+ severity: z.ZodEnum<["CRITICAL", "WARNING", "SUGGESTION"]>;
3324
+ message: z.ZodString;
3325
+ axis: z.ZodUnion<[z.ZodEnum<["complexity", "cost", "performance", "maintainability", "security", "scalability", "style"]>, z.ZodString]>;
3326
+ path: z.ZodOptional<z.ZodString>;
3327
+ line: z.ZodOptional<z.ZodNumber>;
3328
+ }, "strip", z.ZodTypeAny, {
3329
+ message: string;
3330
+ severity: "CRITICAL" | "WARNING" | "SUGGESTION";
3331
+ axis: string;
3332
+ path?: string | undefined;
3333
+ line?: number | undefined;
3334
+ }, {
3335
+ message: string;
3336
+ severity: "CRITICAL" | "WARNING" | "SUGGESTION";
3337
+ axis: string;
3338
+ path?: string | undefined;
3339
+ line?: number | undefined;
3340
+ }>;
3341
+ export declare const ReviewerOutputSchema: z.ZodObject<{
3342
+ status: z.ZodEnum<["pass", "fail"]>;
3343
+ confidence: z.ZodNumber;
3344
+ verdict: z.ZodEnum<["approved", "approved_with_warnings", "blocked"]>;
3345
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3346
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
3347
+ severity: z.ZodEnum<["CRITICAL", "WARNING", "SUGGESTION"]>;
3348
+ message: z.ZodString;
3349
+ axis: z.ZodUnion<[z.ZodEnum<["complexity", "cost", "performance", "maintainability", "security", "scalability", "style"]>, z.ZodString]>;
3350
+ path: z.ZodOptional<z.ZodString>;
3351
+ line: z.ZodOptional<z.ZodNumber>;
3352
+ }, "strip", z.ZodTypeAny, {
3353
+ message: string;
3354
+ severity: "CRITICAL" | "WARNING" | "SUGGESTION";
3355
+ axis: string;
3356
+ path?: string | undefined;
3357
+ line?: number | undefined;
3358
+ }, {
3359
+ message: string;
3360
+ severity: "CRITICAL" | "WARNING" | "SUGGESTION";
3361
+ axis: string;
3362
+ path?: string | undefined;
3363
+ line?: number | undefined;
3364
+ }>, "many">>;
3365
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3366
+ type: z.ZodString;
3367
+ path: z.ZodOptional<z.ZodString>;
3368
+ content: z.ZodOptional<z.ZodString>;
3369
+ }, "strip", z.ZodTypeAny, {
3370
+ type: string;
3371
+ path?: string | undefined;
3372
+ content?: string | undefined;
3373
+ }, {
3374
+ type: string;
3375
+ path?: string | undefined;
3376
+ content?: string | undefined;
3377
+ }>, "many">>;
3378
+ next_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3379
+ }, "strip", z.ZodTypeAny, {
3380
+ status: "pass" | "fail";
3381
+ confidence: number;
3382
+ findings: {
3383
+ message: string;
3384
+ severity: "CRITICAL" | "WARNING" | "SUGGESTION";
3385
+ axis: string;
3386
+ path?: string | undefined;
3387
+ line?: number | undefined;
3388
+ }[];
3389
+ verdict: "blocked" | "approved" | "approved_with_warnings";
3390
+ warnings: string[];
3391
+ artifacts: {
3392
+ type: string;
3393
+ path?: string | undefined;
3394
+ content?: string | undefined;
3395
+ }[];
3396
+ next_actions: string[];
3397
+ }, {
3398
+ status: "pass" | "fail";
3399
+ confidence: number;
3400
+ verdict: "blocked" | "approved" | "approved_with_warnings";
3401
+ findings?: {
3402
+ message: string;
3403
+ severity: "CRITICAL" | "WARNING" | "SUGGESTION";
3404
+ axis: string;
3405
+ path?: string | undefined;
3406
+ line?: number | undefined;
3407
+ }[] | undefined;
3408
+ warnings?: string[] | undefined;
3409
+ artifacts?: {
3410
+ type: string;
3411
+ path?: string | undefined;
3412
+ content?: string | undefined;
3413
+ }[] | undefined;
3414
+ next_actions?: string[] | undefined;
3415
+ }>;
3416
+ export declare const TechnicalPlanOutputSchema: z.ZodObject<{
3417
+ approach: z.ZodString;
3418
+ filesAffected: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3419
+ risks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3420
+ openQuestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3421
+ }, "strip", z.ZodTypeAny, {
3422
+ risks: string[];
3423
+ approach: string;
3424
+ filesAffected: string[];
3425
+ openQuestions?: string[] | undefined;
3426
+ }, {
3427
+ approach: string;
3428
+ risks?: string[] | undefined;
3429
+ filesAffected?: string[] | undefined;
3430
+ openQuestions?: string[] | undefined;
3431
+ }>;
3432
+ export declare const ScorecardVerdictSchema: z.ZodEnum<["PASS", "REVISE", "REJECT"]>;
3433
+ export declare const ScorecardCriterionIdSchema: z.ZodEnum<["acceptance", "minimal_diff", "tests", "regressions", "conventions", "documentation", "context_discipline", "cc_gain"]>;
3434
+ export declare const ScorecardCriterionSchema: z.ZodObject<{
3435
+ id: z.ZodEnum<["acceptance", "minimal_diff", "tests", "regressions", "conventions", "documentation", "context_discipline", "cc_gain"]>;
3436
+ label: z.ZodString;
3437
+ weight: z.ZodNumber;
3438
+ score: z.ZodNumber;
3439
+ notes: z.ZodOptional<z.ZodString>;
3440
+ autoSuggested: z.ZodOptional<z.ZodBoolean>;
3441
+ }, "strip", z.ZodTypeAny, {
3442
+ id: "documentation" | "tests" | "acceptance" | "minimal_diff" | "regressions" | "conventions" | "context_discipline" | "cc_gain";
3443
+ label: string;
3444
+ weight: number;
3445
+ score: number;
3446
+ notes?: string | undefined;
3447
+ autoSuggested?: boolean | undefined;
3448
+ }, {
3449
+ id: "documentation" | "tests" | "acceptance" | "minimal_diff" | "regressions" | "conventions" | "context_discipline" | "cc_gain";
3450
+ label: string;
3451
+ weight: number;
3452
+ score: number;
3453
+ notes?: string | undefined;
3454
+ autoSuggested?: boolean | undefined;
3455
+ }>;
3456
+ export declare const ScorecardRecordSchema: z.ZodObject<{
3457
+ id: z.ZodString;
3458
+ taskId: z.ZodString;
3459
+ agent: z.ZodString;
3460
+ model: z.ZodOptional<z.ZodString>;
3461
+ contractVersion: z.ZodString;
3462
+ evaluator: z.ZodOptional<z.ZodString>;
3463
+ criteria: z.ZodArray<z.ZodObject<{
3464
+ id: z.ZodEnum<["acceptance", "minimal_diff", "tests", "regressions", "conventions", "documentation", "context_discipline", "cc_gain"]>;
3465
+ label: z.ZodString;
3466
+ weight: z.ZodNumber;
3467
+ score: z.ZodNumber;
3468
+ notes: z.ZodOptional<z.ZodString>;
3469
+ autoSuggested: z.ZodOptional<z.ZodBoolean>;
3470
+ }, "strip", z.ZodTypeAny, {
3471
+ id: "documentation" | "tests" | "acceptance" | "minimal_diff" | "regressions" | "conventions" | "context_discipline" | "cc_gain";
3472
+ label: string;
3473
+ weight: number;
3474
+ score: number;
3475
+ notes?: string | undefined;
3476
+ autoSuggested?: boolean | undefined;
3477
+ }, {
3478
+ id: "documentation" | "tests" | "acceptance" | "minimal_diff" | "regressions" | "conventions" | "context_discipline" | "cc_gain";
3479
+ label: string;
3480
+ weight: number;
3481
+ score: number;
3482
+ notes?: string | undefined;
3483
+ autoSuggested?: boolean | undefined;
3484
+ }>, "many">;
3485
+ weightedScore: z.ZodNumber;
3486
+ verdict: z.ZodEnum<["PASS", "REVISE", "REJECT"]>;
3487
+ findings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
3488
+ createdAt: z.ZodString;
3489
+ backlogId: z.ZodOptional<z.ZodString>;
3490
+ source: z.ZodOptional<z.ZodEnum<["openspec", "review", "manual", "pipeline"]>>;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ id: string;
3493
+ contractVersion: string;
3494
+ findings: string[];
3495
+ taskId: string;
3496
+ agent: string;
3497
+ verdict: "PASS" | "REVISE" | "REJECT";
3498
+ criteria: {
3499
+ id: "documentation" | "tests" | "acceptance" | "minimal_diff" | "regressions" | "conventions" | "context_discipline" | "cc_gain";
3500
+ label: string;
3501
+ weight: number;
3502
+ score: number;
3503
+ notes?: string | undefined;
3504
+ autoSuggested?: boolean | undefined;
3505
+ }[];
3506
+ weightedScore: number;
3507
+ createdAt: string;
3508
+ source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
3509
+ backlogId?: string | undefined;
3510
+ model?: string | undefined;
3511
+ evaluator?: string | undefined;
3512
+ }, {
3513
+ id: string;
3514
+ contractVersion: string;
3515
+ taskId: string;
3516
+ agent: string;
3517
+ verdict: "PASS" | "REVISE" | "REJECT";
3518
+ criteria: {
3519
+ id: "documentation" | "tests" | "acceptance" | "minimal_diff" | "regressions" | "conventions" | "context_discipline" | "cc_gain";
3520
+ label: string;
3521
+ weight: number;
3522
+ score: number;
3523
+ notes?: string | undefined;
3524
+ autoSuggested?: boolean | undefined;
3525
+ }[];
3526
+ weightedScore: number;
3527
+ createdAt: string;
3528
+ findings?: string[] | undefined;
3529
+ source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
3530
+ backlogId?: string | undefined;
3531
+ model?: string | undefined;
3532
+ evaluator?: string | undefined;
3533
+ }>;
3534
+ export declare const TaskOutcomeSourceSchema: z.ZodEnum<["openspec", "review", "manual", "pipeline"]>;
3535
+ export declare const TaskOutcomeStatusSchema: z.ZodEnum<["phase_done", "phase_failed", "pass", "revise", "reject"]>;
3536
+ export declare const TaskOutcomeSchema: z.ZodObject<{
3537
+ id: z.ZodString;
3538
+ taskId: z.ZodString;
3539
+ source: z.ZodEnum<["openspec", "review", "manual", "pipeline"]>;
3540
+ agent: z.ZodString;
3541
+ model: z.ZodString;
3542
+ contractVersion: z.ZodString;
3543
+ timestamp: z.ZodString;
3544
+ status: z.ZodOptional<z.ZodEnum<["phase_done", "phase_failed", "pass", "revise", "reject"]>>;
3545
+ verdict: z.ZodOptional<z.ZodEnum<["PASS", "REVISE", "REJECT"]>>;
3546
+ weightedScore: z.ZodOptional<z.ZodNumber>;
3547
+ taskCardId: z.ZodOptional<z.ZodString>;
3548
+ backlogId: z.ZodOptional<z.ZodString>;
3549
+ phase: z.ZodOptional<z.ZodString>;
3550
+ scorecardId: z.ZodOptional<z.ZodString>;
3551
+ tokensIn: z.ZodOptional<z.ZodNumber>;
3552
+ tokensOut: z.ZodOptional<z.ZodNumber>;
3553
+ costUsd: z.ZodOptional<z.ZodNumber>;
3554
+ durationMs: z.ZodOptional<z.ZodNumber>;
3555
+ experimentId: z.ZodOptional<z.ZodString>;
3556
+ variantId: z.ZodOptional<z.ZodString>;
3557
+ suiteTaskId: z.ZodOptional<z.ZodString>;
3558
+ harnessFingerprint: z.ZodOptional<z.ZodString>;
3559
+ disabledComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3560
+ }, "strip", z.ZodTypeAny, {
3561
+ id: string;
3562
+ contractVersion: string;
3563
+ timestamp: string;
3564
+ source: "review" | "openspec" | "manual" | "pipeline";
3565
+ taskId: string;
3566
+ agent: string;
3567
+ model: string;
3568
+ status?: "reject" | "pass" | "phase_done" | "phase_failed" | "revise" | undefined;
3569
+ backlogId?: string | undefined;
3570
+ phase?: string | undefined;
3571
+ verdict?: "PASS" | "REVISE" | "REJECT" | undefined;
3572
+ weightedScore?: number | undefined;
3573
+ taskCardId?: string | undefined;
3574
+ scorecardId?: string | undefined;
3575
+ tokensIn?: number | undefined;
3576
+ tokensOut?: number | undefined;
3577
+ costUsd?: number | undefined;
3578
+ durationMs?: number | undefined;
3579
+ experimentId?: string | undefined;
3580
+ variantId?: string | undefined;
3581
+ suiteTaskId?: string | undefined;
3582
+ harnessFingerprint?: string | undefined;
3583
+ disabledComponents?: string[] | undefined;
3584
+ }, {
3585
+ id: string;
3586
+ contractVersion: string;
3587
+ timestamp: string;
3588
+ source: "review" | "openspec" | "manual" | "pipeline";
3589
+ taskId: string;
3590
+ agent: string;
3591
+ model: string;
3592
+ status?: "reject" | "pass" | "phase_done" | "phase_failed" | "revise" | undefined;
3593
+ backlogId?: string | undefined;
3594
+ phase?: string | undefined;
3595
+ verdict?: "PASS" | "REVISE" | "REJECT" | undefined;
3596
+ weightedScore?: number | undefined;
3597
+ taskCardId?: string | undefined;
3598
+ scorecardId?: string | undefined;
3599
+ tokensIn?: number | undefined;
3600
+ tokensOut?: number | undefined;
3601
+ costUsd?: number | undefined;
3602
+ durationMs?: number | undefined;
3603
+ experimentId?: string | undefined;
3604
+ variantId?: string | undefined;
3605
+ suiteTaskId?: string | undefined;
3606
+ harnessFingerprint?: string | undefined;
3607
+ disabledComponents?: string[] | undefined;
3608
+ }>;
3609
+ export declare const HarnessComponentIdSchema: z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>;
3610
+ export declare const HarnessComponentLayerSchema: z.ZodEnum<["phase", "gate", "loop", "knowledge", "council"]>;
3611
+ export declare const HarnessToggleKindSchema: z.ZodEnum<["ccep_phase", "ccep_gates", "config_loop", "config_council", "product_graph"]>;
3612
+ export declare const HarnessCatalogEntrySchema: z.ZodObject<{
3613
+ id: z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>;
3614
+ layer: z.ZodEnum<["phase", "gate", "loop", "knowledge", "council"]>;
3615
+ label: z.ZodString;
3616
+ defaultOn: z.ZodDefault<z.ZodBoolean>;
3617
+ toggle: z.ZodObject<{
3618
+ kind: z.ZodEnum<["ccep_phase", "ccep_gates", "config_loop", "config_council", "product_graph"]>;
3619
+ phaseId: z.ZodOptional<z.ZodString>;
3620
+ }, "strip", z.ZodTypeAny, {
3621
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3622
+ phaseId?: string | undefined;
3623
+ }, {
3624
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3625
+ phaseId?: string | undefined;
3626
+ }>;
3627
+ }, "strip", z.ZodTypeAny, {
3628
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3629
+ label: string;
3630
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3631
+ defaultOn: boolean;
3632
+ toggle: {
3633
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3634
+ phaseId?: string | undefined;
3635
+ };
3636
+ }, {
3637
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3638
+ label: string;
3639
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3640
+ toggle: {
3641
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3642
+ phaseId?: string | undefined;
3643
+ };
3644
+ defaultOn?: boolean | undefined;
3645
+ }>;
3646
+ export declare const HarnessCatalogSchema: z.ZodObject<{
3647
+ version: z.ZodLiteral<1>;
3648
+ components: z.ZodArray<z.ZodObject<{
3649
+ id: z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>;
3650
+ layer: z.ZodEnum<["phase", "gate", "loop", "knowledge", "council"]>;
3651
+ label: z.ZodString;
3652
+ defaultOn: z.ZodDefault<z.ZodBoolean>;
3653
+ toggle: z.ZodObject<{
3654
+ kind: z.ZodEnum<["ccep_phase", "ccep_gates", "config_loop", "config_council", "product_graph"]>;
3655
+ phaseId: z.ZodOptional<z.ZodString>;
3656
+ }, "strip", z.ZodTypeAny, {
3657
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3658
+ phaseId?: string | undefined;
3659
+ }, {
3660
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3661
+ phaseId?: string | undefined;
3662
+ }>;
3663
+ }, "strip", z.ZodTypeAny, {
3664
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3665
+ label: string;
3666
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3667
+ defaultOn: boolean;
3668
+ toggle: {
3669
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3670
+ phaseId?: string | undefined;
3671
+ };
3672
+ }, {
3673
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3674
+ label: string;
3675
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3676
+ toggle: {
3677
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3678
+ phaseId?: string | undefined;
3679
+ };
3680
+ defaultOn?: boolean | undefined;
3681
+ }>, "many">;
3682
+ }, "strip", z.ZodTypeAny, {
3683
+ version: 1;
3684
+ components: {
3685
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3686
+ label: string;
3687
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3688
+ defaultOn: boolean;
3689
+ toggle: {
3690
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3691
+ phaseId?: string | undefined;
3692
+ };
3693
+ }[];
3694
+ }, {
3695
+ version: 1;
3696
+ components: {
3697
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3698
+ label: string;
3699
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3700
+ toggle: {
3701
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3702
+ phaseId?: string | undefined;
3703
+ };
3704
+ defaultOn?: boolean | undefined;
3705
+ }[];
3706
+ }>;
3707
+ export declare const HarnessOverlaySchema: z.ZodObject<{
3708
+ experimentId: z.ZodOptional<z.ZodString>;
3709
+ variantId: z.ZodString;
3710
+ disabledComponents: z.ZodArray<z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>, "many">;
3711
+ disableProductGraph: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3712
+ contractVersion: z.ZodOptional<z.ZodString>;
3713
+ ccepProfile: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3714
+ }, "strip", z.ZodTypeAny, {
3715
+ variantId: string;
3716
+ disabledComponents: ("council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph")[];
3717
+ disableProductGraph: boolean;
3718
+ ccepProfile: string;
3719
+ contractVersion?: string | undefined;
3720
+ experimentId?: string | undefined;
3721
+ }, {
3722
+ variantId: string;
3723
+ disabledComponents: ("council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph")[];
3724
+ contractVersion?: string | undefined;
3725
+ experimentId?: string | undefined;
3726
+ disableProductGraph?: boolean | undefined;
3727
+ ccepProfile?: string | undefined;
3728
+ }>;
3729
+ export declare const HarnessExperimentSchema: z.ZodObject<{
3730
+ id: z.ZodString;
3731
+ suiteId: z.ZodString;
3732
+ createdAt: z.ZodString;
3733
+ contractVersion: z.ZodString;
3734
+ components: z.ZodArray<z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>, "many">;
3735
+ variants: z.ZodArray<z.ZodString, "many">;
3736
+ suiteTaskIds: z.ZodArray<z.ZodString, "many">;
3737
+ suitePath: z.ZodOptional<z.ZodString>;
3738
+ }, "strip", z.ZodTypeAny, {
3739
+ id: string;
3740
+ contractVersion: string;
3741
+ createdAt: string;
3742
+ components: ("council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph")[];
3743
+ suiteId: string;
3744
+ variants: string[];
3745
+ suiteTaskIds: string[];
3746
+ suitePath?: string | undefined;
3747
+ }, {
3748
+ id: string;
3749
+ contractVersion: string;
3750
+ createdAt: string;
3751
+ components: ("council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph")[];
3752
+ suiteId: string;
3753
+ variants: string[];
3754
+ suiteTaskIds: string[];
3755
+ suitePath?: string | undefined;
3756
+ }>;
3757
+ export declare const HarnessSuiteTaskSchema: z.ZodObject<{
3758
+ id: z.ZodString;
3759
+ title: z.ZodString;
3760
+ type: z.ZodEnum<["feature", "fix", "refactor"]>;
3761
+ risk: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
3762
+ prompt: z.ZodString;
3763
+ scope: z.ZodString;
3764
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
3765
+ testCommand: z.ZodOptional<z.ZodString>;
3766
+ }, "strip", z.ZodTypeAny, {
3767
+ id: string;
3768
+ type: "feature" | "fix" | "refactor";
3769
+ title: string;
3770
+ risk: "low" | "medium" | "high";
3771
+ acceptanceCriteria: string[];
3772
+ scope: string;
3773
+ prompt: string;
3774
+ testCommand?: string | undefined;
3775
+ }, {
3776
+ id: string;
3777
+ type: "feature" | "fix" | "refactor";
3778
+ title: string;
3779
+ acceptanceCriteria: string[];
3780
+ scope: string;
3781
+ prompt: string;
3782
+ risk?: "low" | "medium" | "high" | undefined;
3783
+ testCommand?: string | undefined;
3784
+ }>;
3785
+ export declare const HarnessSuiteSchema: z.ZodObject<{
3786
+ id: z.ZodString;
3787
+ version: z.ZodNumber;
3788
+ fixtureDir: z.ZodOptional<z.ZodString>;
3789
+ tasks: z.ZodArray<z.ZodObject<{
3790
+ id: z.ZodString;
3791
+ title: z.ZodString;
3792
+ type: z.ZodEnum<["feature", "fix", "refactor"]>;
3793
+ risk: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
3794
+ prompt: z.ZodString;
3795
+ scope: z.ZodString;
3796
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
3797
+ testCommand: z.ZodOptional<z.ZodString>;
3798
+ }, "strip", z.ZodTypeAny, {
3799
+ id: string;
3800
+ type: "feature" | "fix" | "refactor";
3801
+ title: string;
3802
+ risk: "low" | "medium" | "high";
3803
+ acceptanceCriteria: string[];
3804
+ scope: string;
3805
+ prompt: string;
3806
+ testCommand?: string | undefined;
3807
+ }, {
3808
+ id: string;
3809
+ type: "feature" | "fix" | "refactor";
3810
+ title: string;
3811
+ acceptanceCriteria: string[];
3812
+ scope: string;
3813
+ prompt: string;
3814
+ risk?: "low" | "medium" | "high" | undefined;
3815
+ testCommand?: string | undefined;
3816
+ }>, "many">;
3817
+ }, "strip", z.ZodTypeAny, {
3818
+ id: string;
3819
+ version: number;
3820
+ tasks: {
3821
+ id: string;
3822
+ type: "feature" | "fix" | "refactor";
3823
+ title: string;
3824
+ risk: "low" | "medium" | "high";
3825
+ acceptanceCriteria: string[];
3826
+ scope: string;
3827
+ prompt: string;
3828
+ testCommand?: string | undefined;
3829
+ }[];
3830
+ fixtureDir?: string | undefined;
3831
+ }, {
3832
+ id: string;
3833
+ version: number;
3834
+ tasks: {
3835
+ id: string;
3836
+ type: "feature" | "fix" | "refactor";
3837
+ title: string;
3838
+ acceptanceCriteria: string[];
3839
+ scope: string;
3840
+ prompt: string;
3841
+ risk?: "low" | "medium" | "high" | undefined;
3842
+ testCommand?: string | undefined;
3843
+ }[];
3844
+ fixtureDir?: string | undefined;
3845
+ }>;
3846
+ export declare const EvaluationIndexSchema: z.ZodObject<{
3847
+ version: z.ZodLiteral<1>;
3848
+ lastOutcomeId: z.ZodOptional<z.ZodString>;
3849
+ }, "strip", z.ZodTypeAny, {
3850
+ version: 1;
3851
+ lastOutcomeId?: string | undefined;
3852
+ }, {
3853
+ version: 1;
3854
+ lastOutcomeId?: string | undefined;
3855
+ }>;
3856
+ export declare const ExecutionProfileNameSchema: z.ZodEnum<["balanced", "quality", "economical"]>;
3857
+ export declare const ExecutionProfileSchema: z.ZodObject<{
3858
+ profile: z.ZodDefault<z.ZodEnum<["balanced", "quality", "economical"]>>;
3859
+ target: z.ZodOptional<z.ZodEnum<["opencode", "claude", "codex", "gemini", "cursor", "agy"]>>;
3860
+ overrides: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
3861
+ subagentPolicy: z.ZodOptional<z.ZodObject<{
3862
+ orchestrator: z.ZodOptional<z.ZodEnum<["primary", "delegate"]>>;
3863
+ testerReviewer: z.ZodOptional<z.ZodEnum<["primary", "delegate"]>>;
3864
+ }, "strip", z.ZodTypeAny, {
3865
+ orchestrator?: "primary" | "delegate" | undefined;
3866
+ testerReviewer?: "primary" | "delegate" | undefined;
3867
+ }, {
3868
+ orchestrator?: "primary" | "delegate" | undefined;
3869
+ testerReviewer?: "primary" | "delegate" | undefined;
3870
+ }>>;
3871
+ }, "strip", z.ZodTypeAny, {
3872
+ profile: "balanced" | "quality" | "economical";
3873
+ overrides: Record<string, string>;
3874
+ target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | undefined;
3875
+ subagentPolicy?: {
3876
+ orchestrator?: "primary" | "delegate" | undefined;
3877
+ testerReviewer?: "primary" | "delegate" | undefined;
3878
+ } | undefined;
3879
+ }, {
3880
+ profile?: "balanced" | "quality" | "economical" | undefined;
3881
+ target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | undefined;
3882
+ overrides?: Record<string, string> | undefined;
3883
+ subagentPolicy?: {
3884
+ orchestrator?: "primary" | "delegate" | undefined;
3885
+ testerReviewer?: "primary" | "delegate" | undefined;
3886
+ } | undefined;
3887
+ }>;
3888
+ export type ContractTargetInput = z.infer<typeof ContractTargetSchema>;
3889
+ export type ContractFormatInput = z.infer<typeof ContractFormatSchema>;
3890
+ export type AgentContractInput = z.infer<typeof AgentContractSchema>;
3891
+ export type CouncilFindingInput = z.infer<typeof CouncilFindingSchema>;
3892
+ export type CouncilVerdictInputData = z.infer<typeof CouncilVerdictInputSchema>;
3893
+ export type ConsensusConfigInput = z.infer<typeof ConsensusConfigSchema>;
3894
+ export type CouncilVerdictOutput = z.infer<typeof CouncilVerdictSchema>;
3895
+ export type GoalTaskInput = z.infer<typeof GoalTaskSchema>;
3896
+ export type GoalGraphInput = z.infer<typeof GoalGraphSchema>;
3897
+ export type KnowledgeEntityInput = z.infer<typeof KnowledgeEntitySchema>;
3898
+ export type DecisionInput = z.infer<typeof DecisionSchema>;
3899
+ export type EvidenceInput = z.infer<typeof EvidenceSchema>;
3900
+ export type CanonicalTaskCardInput = z.infer<typeof CanonicalTaskCardSchema>;
3901
+ export type ProductGraphInput = z.infer<typeof ProductGraphSchema>;
3902
+ export type ProductGraphNodeInput = z.infer<typeof ProductGraphNodeSchema>;
3903
+ export type ProductGraphEdgeInput = z.infer<typeof ProductGraphEdgeSchema>;
3904
+ export type ProductMetaInput = z.infer<typeof ProductMetaSchema>;
3905
+ export type ProductEventInput = z.infer<typeof ProductEventSchema>;
3906
+ export type OperationalStateInput = z.infer<typeof OperationalStateSchema>;
3907
+ export type StrategicMemoryInput = z.infer<typeof StrategicMemorySchema>;
3908
+ export type ImpactReportInput = z.infer<typeof ImpactReportSchema>;
3909
+ export type BusinessReviewOutputInput = z.infer<typeof BusinessReviewOutputSchema>;
3910
+ export type VerificationReportInput = z.infer<typeof VerificationReportSchema>;
3911
+ export type MemoryPointerInput = z.infer<typeof MemoryPointerSchema>;
3912
+ export type MemoryIndexInput = z.infer<typeof MemoryIndexSchema>;
3913
+ export type BacklogStatusInput = z.infer<typeof BacklogStatusSchema>;
3914
+ export type BacklogTypeInput = z.infer<typeof BacklogTypeSchema>;
3915
+ export type BacklogPriorityInput = z.infer<typeof BacklogPrioritySchema>;
3916
+ export type BacklogGlobalInput = z.infer<typeof BacklogGlobalSchema>;
3917
+ export type BacklogItemInput = z.infer<typeof BacklogItemSchema>;
3918
+ export type BacklogDocumentInput = z.infer<typeof BacklogDocumentSchema>;
3919
+ export type OpenspecTaskCardPhaseInput = z.infer<typeof OpenspecTaskCardPhaseSchema>;
3920
+ export type OpenspecTaskCardStatusInput = z.infer<typeof OpenspecTaskCardStatusSchema>;
3921
+ export type OpenspecTaskCardInput = z.infer<typeof OpenspecTaskCardSchema>;
3922
+ export type OpenspecStateInput = z.infer<typeof OpenspecStateSchema>;
3923
+ export type ScorecardVerdictInput = z.infer<typeof ScorecardVerdictSchema>;
3924
+ export type ScorecardCriterionInput = z.infer<typeof ScorecardCriterionSchema>;
3925
+ export type ScorecardRecordInput = z.infer<typeof ScorecardRecordSchema>;
3926
+ export type TaskOutcomeInput = z.infer<typeof TaskOutcomeSchema>;
3927
+ export type EvaluationIndexInput = z.infer<typeof EvaluationIndexSchema>;
3928
+ export type ExecutionProfileInput = z.infer<typeof ExecutionProfileSchema>;
3929
+ export type HarnessComponentIdInput = z.infer<typeof HarnessComponentIdSchema>;
3930
+ export type HarnessCatalogEntryInput = z.infer<typeof HarnessCatalogEntrySchema>;
3931
+ export type HarnessCatalogInput = z.infer<typeof HarnessCatalogSchema>;
3932
+ export type HarnessOverlayInput = z.infer<typeof HarnessOverlaySchema>;
3933
+ export type HarnessExperimentInput = z.infer<typeof HarnessExperimentSchema>;
3934
+ export type HarnessSuiteTaskInput = z.infer<typeof HarnessSuiteTaskSchema>;
3935
+ export type HarnessSuiteInput = z.infer<typeof HarnessSuiteSchema>;
3936
+ export type WorkflowCommandInput = z.infer<typeof WorkflowCommandSchema>;
3937
+ export type CommandEnvelopeInput = z.infer<typeof CommandEnvelopeSchema>;
3938
+ export type WorkflowProfileInput = z.infer<typeof WorkflowProfileSchema>;
3939
+ export type ExecutionContextInput = z.infer<typeof ExecutionContextSchema>;
3940
+ export type PlannerOutputInput = z.infer<typeof PlannerOutputSchema>;
3941
+ export type AgentOutputInput = z.infer<typeof AgentOutputSchema>;
3942
+ export type ImplementerOutputInput = z.infer<typeof ImplementerOutputSchema>;
3943
+ export type ReviewerOutputInput = z.infer<typeof ReviewerOutputSchema>;
3944
+ /**
3945
+ * Validate agent contract input
3946
+ */
3947
+ export declare function validateAgentContract(data: unknown): AgentContractInput;
3948
+ /**
3949
+ * Validate council verdict input
3950
+ */
3951
+ export declare function validateCouncilVerdictInput(data: unknown): CouncilVerdictInputData;
3952
+ /**
3953
+ * Validate consensus config
3954
+ */
3955
+ export declare function validateConsensusConfig(data: unknown): ConsensusConfigInput;
3956
+ /**
3957
+ * Validate council verdict output
3958
+ */
3959
+ export declare function validateCouncilVerdict(data: unknown): CouncilVerdictOutput;
3960
+ /**
3961
+ * Validate a Claude agent file
3962
+ */
3963
+ export declare function validateClaudeAgentFile(data: unknown): z.infer<typeof ClaudeAgentFileSchema>;
3964
+ /**
3965
+ * Validate an OpenCode agent file
3966
+ */
3967
+ export declare function validateOpenCodeAgentFile(data: unknown): z.infer<typeof OpenCodeAgentFileSchema>;
3968
+ /**
3969
+ * Validate goal graph
3970
+ */
3971
+ export declare function validateGoalGraph(data: unknown): z.infer<typeof GoalGraphSchema>;
3972
+ /**
3973
+ * Validate memory pointer
3974
+ */
3975
+ export declare function validateMemoryPointer(data: unknown): z.infer<typeof MemoryPointerSchema>;
3976
+ /**
3977
+ * Validate memory index
3978
+ */
3979
+ export declare function validateMemoryIndex(data: unknown): z.infer<typeof MemoryIndexSchema>;
3980
+ /**
3981
+ * Validate backlog document
3982
+ */
3983
+ export declare function validateBacklogDocument(data: unknown): BacklogDocumentInput;
3984
+ /**
3985
+ * Validate openspec state
3986
+ */
3987
+ export declare function validateOpenspecState(data: unknown): OpenspecStateInput;
3988
+ export declare function validateScorecardRecord(data: unknown): ScorecardRecordInput;
3989
+ export declare function validateTaskOutcome(data: unknown): TaskOutcomeInput;
3990
+ export declare function validateHarnessCatalog(data: unknown): HarnessCatalogInput;
3991
+ export declare function validateHarnessOverlay(data: unknown): HarnessOverlayInput;
3992
+ export declare function validateHarnessExperiment(data: unknown): HarnessExperimentInput;
3993
+ export declare function validateHarnessSuite(data: unknown): HarnessSuiteInput;
3994
+ export declare function validateCommandEnvelope(data: unknown): CommandEnvelopeInput;
3995
+ export declare function validateWorkflowProfile(data: unknown): WorkflowProfileInput;
3996
+ export declare function validateExecutionContext(data: unknown): ExecutionContextInput;
3997
+ export declare function validatePlannerOutput(data: unknown): PlannerOutputInput;
3998
+ export declare function validateAgentOutput(data: unknown): AgentOutputInput;
3999
+ export declare function validateImplementerOutput(data: unknown): ImplementerOutputInput;
4000
+ export declare function validateReviewerOutput(data: unknown): ReviewerOutputInput;
4001
+ export declare function validateProductGraph(data: unknown): ProductGraphInput;
4002
+ export declare function validateKnowledgeEntity(data: unknown): KnowledgeEntityInput;
4003
+ export declare function validateDecision(data: unknown): DecisionInput;
4004
+ export declare function validateEvidence(data: unknown): EvidenceInput;
4005
+ export declare function validateCanonicalTaskCard(data: unknown): CanonicalTaskCardInput;
4006
+ export declare function validateProductEvent(data: unknown): ProductEventInput;