cc-codeconductor 1.0.0 → 1.2.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 (247) hide show
  1. package/README.md +326 -87
  2. package/dist/core/compilation/compile-checker.d.ts +2 -0
  3. package/dist/core/loop/loop-engine.d.ts +3 -0
  4. package/dist/core/verification/verification-runner.d.ts +7 -0
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +3825 -597
  7. package/dist/library.js +195 -18
  8. package/dist/validation/schemas.d.ts +461 -44
  9. package/package.json +4 -1
  10. package/presets/agy/AGENTS.md +13 -9
  11. package/presets/agy/gates/pre-commit/GATE.md +5 -4
  12. package/presets/agy/hooks.json +2 -2
  13. package/presets/agy/scripts/invoke-hook.cjs +115 -0
  14. package/presets/agy/skills/backlog/SKILL.md +61 -0
  15. package/presets/agy/skills/cc-spec-mutation/SKILL.md +165 -0
  16. package/presets/agy/skills/cc-tdd-cycle/SKILL.md +3 -0
  17. package/presets/agy/skills/evaluation/SKILL.md +61 -2
  18. package/presets/agy/skills/openspec/SKILL.md +50 -16
  19. package/presets/agy/skills/security-ai-llm/SKILL.md +43 -0
  20. package/presets/agy/skills/security-blue-team/SKILL.md +43 -0
  21. package/presets/agy/skills/security-cloud/SKILL.md +43 -0
  22. package/presets/agy/skills/security-crypto/SKILL.md +43 -0
  23. package/presets/agy/skills/security-exploit-dev/SKILL.md +45 -0
  24. package/presets/agy/skills/security-grc/SKILL.md +43 -0
  25. package/presets/agy/skills/security-incident-response/SKILL.md +45 -0
  26. package/presets/agy/skills/security-log-analysis/SKILL.md +43 -0
  27. package/presets/agy/skills/security-malware-analysis/SKILL.md +44 -0
  28. package/presets/agy/skills/security-mobile/SKILL.md +43 -0
  29. package/presets/agy/skills/security-network/SKILL.md +43 -0
  30. package/presets/agy/skills/security-ot-ics/SKILL.md +43 -0
  31. package/presets/agy/skills/security-recon/SKILL.md +45 -0
  32. package/presets/agy/skills/security-red-team/SKILL.md +44 -0
  33. package/presets/agy/skills/security-reverse-engineering/SKILL.md +44 -0
  34. package/presets/agy/skills/security-soc-automation/SKILL.md +43 -0
  35. package/presets/agy/skills/security-threat-hunting/SKILL.md +43 -0
  36. package/presets/agy/skills/security-vuln-assessment/SKILL.md +45 -0
  37. package/presets/agy/skills/security-web/SKILL.md +44 -0
  38. package/presets/agy/skills/testing-tdd/SKILL.md +53 -0
  39. package/presets/agy/skills/using-cc-skills/SKILL.md +48 -0
  40. package/presets/agy/workflows/cc-api-contract.md +14 -0
  41. package/presets/agy/workflows/cc-ask.md +2 -1
  42. package/presets/agy/workflows/cc-backlog.md +69 -0
  43. package/presets/agy/workflows/cc-db-migration.md +14 -0
  44. package/presets/agy/workflows/cc-explore.md +1 -1
  45. package/presets/agy/workflows/cc-feature.md +18 -0
  46. package/presets/agy/workflows/cc-fix.md +14 -0
  47. package/presets/agy/workflows/cc-iterative.md +14 -0
  48. package/presets/agy/workflows/cc-openspec.md +17 -1
  49. package/presets/agy/workflows/cc-scorecard.md +2 -0
  50. package/presets/agy/workflows/cc-security.md +180 -0
  51. package/presets/agy/workflows/cc-spec-mutation.md +191 -0
  52. package/presets/agy/workflows/cc-tdd-cycle.md +14 -0
  53. package/presets/claude/CLAUDE.md +4 -0
  54. package/presets/claude/commands/cc/api-contract.md +14 -0
  55. package/presets/claude/commands/cc/ask.md +2 -1
  56. package/presets/claude/commands/cc/backlog.md +104 -0
  57. package/presets/claude/commands/cc/db-migration.md +14 -0
  58. package/presets/claude/commands/cc/explore.md +1 -1
  59. package/presets/claude/commands/cc/feature.md +18 -0
  60. package/presets/claude/commands/cc/fix.md +17 -0
  61. package/presets/claude/commands/cc/iterative.md +14 -0
  62. package/presets/claude/commands/cc/openspec.md +30 -1
  63. package/presets/claude/commands/cc/review.md +3 -0
  64. package/presets/claude/commands/cc/scorecard.md +2 -0
  65. package/presets/claude/commands/cc/security.md +179 -0
  66. package/presets/claude/commands/cc/spec-mutation.md +190 -0
  67. package/presets/claude/commands/cc/tdd-cycle.md +17 -0
  68. package/presets/claude/gates/pre-commit/GATE.md +5 -4
  69. package/presets/claude/settings.json +13 -11
  70. package/presets/claude/skills/backlog/SKILL.md +61 -0
  71. package/presets/claude/skills/evaluation/SKILL.md +47 -24
  72. package/presets/claude/skills/openspec/SKILL.md +46 -34
  73. package/presets/claude/skills/security/SKILL.md +382 -0
  74. package/presets/claude/skills/security-ai-llm/SKILL.md +43 -0
  75. package/presets/claude/skills/security-blue-team/SKILL.md +43 -0
  76. package/presets/claude/skills/security-cloud/SKILL.md +43 -0
  77. package/presets/claude/skills/security-crypto/SKILL.md +43 -0
  78. package/presets/claude/skills/security-exploit-dev/SKILL.md +45 -0
  79. package/presets/claude/skills/security-grc/SKILL.md +43 -0
  80. package/presets/claude/skills/security-incident-response/SKILL.md +45 -0
  81. package/presets/claude/skills/security-log-analysis/SKILL.md +43 -0
  82. package/presets/claude/skills/security-malware-analysis/SKILL.md +44 -0
  83. package/presets/claude/skills/security-mobile/SKILL.md +43 -0
  84. package/presets/claude/skills/security-network/SKILL.md +43 -0
  85. package/presets/claude/skills/security-ot-ics/SKILL.md +43 -0
  86. package/presets/claude/skills/security-recon/SKILL.md +45 -0
  87. package/presets/claude/skills/security-red-team/SKILL.md +44 -0
  88. package/presets/claude/skills/security-reverse-engineering/SKILL.md +44 -0
  89. package/presets/claude/skills/security-soc-automation/SKILL.md +43 -0
  90. package/presets/claude/skills/security-threat-hunting/SKILL.md +43 -0
  91. package/presets/claude/skills/security-vuln-assessment/SKILL.md +45 -0
  92. package/presets/claude/skills/security-web/SKILL.md +44 -0
  93. package/presets/claude/skills/testing-tdd/SKILL.md +53 -0
  94. package/presets/claude/skills/using-cc-skills/SKILL.md +48 -0
  95. package/presets/codex/AGENTS.md +16 -12
  96. package/presets/codex/commands/cc-ask.md +2 -1
  97. package/presets/codex/gates/pre-commit/GATE.md +5 -4
  98. package/presets/codex/skills/backlog/SKILL.md +61 -0
  99. package/presets/codex/skills/cc-api-contract/SKILL.md +87 -0
  100. package/presets/codex/skills/cc-backlog/SKILL.md +108 -0
  101. package/presets/codex/skills/cc-clarify/SKILL.md +36 -0
  102. package/presets/codex/skills/cc-council/SKILL.md +92 -0
  103. package/presets/codex/skills/cc-db-migration/SKILL.md +88 -0
  104. package/presets/codex/skills/cc-explore/SKILL.md +40 -0
  105. package/presets/codex/skills/cc-feature/SKILL.md +154 -0
  106. package/presets/codex/skills/cc-fix/SKILL.md +165 -0
  107. package/presets/codex/skills/cc-handoff/SKILL.md +45 -0
  108. package/presets/codex/skills/cc-iterative/SKILL.md +150 -0
  109. package/presets/codex/skills/cc-openspec/SKILL.md +191 -0
  110. package/presets/codex/skills/cc-pagespeed/SKILL.md +124 -0
  111. package/presets/codex/skills/cc-prototype/SKILL.md +42 -0
  112. package/presets/codex/skills/cc-refactor/SKILL.md +163 -0
  113. package/presets/codex/skills/cc-review/SKILL.md +152 -0
  114. package/presets/codex/skills/cc-scorecard/SKILL.md +82 -0
  115. package/presets/codex/skills/cc-security/SKILL.md +182 -0
  116. package/presets/codex/skills/cc-spec-mutation/SKILL.md +192 -0
  117. package/presets/codex/skills/cc-tdd-cycle/SKILL.md +266 -0
  118. package/presets/codex/skills/cc-test-plan/SKILL.md +153 -0
  119. package/presets/codex/skills/cc-triage/SKILL.md +38 -0
  120. package/presets/codex/skills/evaluation/SKILL.md +65 -0
  121. package/presets/codex/skills/openspec/SKILL.md +66 -0
  122. package/presets/codex/skills/testing-tdd/SKILL.md +53 -0
  123. package/presets/codex/skills/using-cc-skills/SKILL.md +48 -0
  124. package/presets/cursor/AGENTS.md +2 -2
  125. package/presets/cursor/commands/cc/api-contract.md +14 -0
  126. package/presets/cursor/commands/cc/ask.md +2 -1
  127. package/presets/cursor/commands/cc/backlog.md +105 -0
  128. package/presets/cursor/commands/cc/db-migration.md +14 -0
  129. package/presets/cursor/commands/cc/explore.md +1 -1
  130. package/presets/cursor/commands/cc/feature.md +18 -0
  131. package/presets/cursor/commands/cc/fix.md +17 -0
  132. package/presets/cursor/commands/cc/iterative.md +14 -0
  133. package/presets/cursor/commands/cc/openspec.md +30 -1
  134. package/presets/cursor/commands/cc/scorecard.md +2 -0
  135. package/presets/cursor/commands/cc/security.md +179 -0
  136. package/presets/cursor/commands/cc/spec-mutation.md +190 -0
  137. package/presets/cursor/commands/cc/tdd-cycle.md +14 -0
  138. package/presets/cursor/gates/pre-commit/GATE.md +5 -4
  139. package/presets/cursor/skills/backlog/SKILL.md +61 -0
  140. package/presets/cursor/skills/evaluation/SKILL.md +61 -4
  141. package/presets/cursor/skills/openspec/SKILL.md +47 -33
  142. package/presets/cursor/skills/security-ai-llm/SKILL.md +43 -0
  143. package/presets/cursor/skills/security-blue-team/SKILL.md +43 -0
  144. package/presets/cursor/skills/security-cloud/SKILL.md +43 -0
  145. package/presets/cursor/skills/security-crypto/SKILL.md +43 -0
  146. package/presets/cursor/skills/security-exploit-dev/SKILL.md +45 -0
  147. package/presets/cursor/skills/security-grc/SKILL.md +43 -0
  148. package/presets/cursor/skills/security-incident-response/SKILL.md +45 -0
  149. package/presets/cursor/skills/security-log-analysis/SKILL.md +43 -0
  150. package/presets/cursor/skills/security-malware-analysis/SKILL.md +44 -0
  151. package/presets/cursor/skills/security-mobile/SKILL.md +43 -0
  152. package/presets/cursor/skills/security-network/SKILL.md +43 -0
  153. package/presets/cursor/skills/security-ot-ics/SKILL.md +43 -0
  154. package/presets/cursor/skills/security-recon/SKILL.md +45 -0
  155. package/presets/cursor/skills/security-red-team/SKILL.md +44 -0
  156. package/presets/cursor/skills/security-reverse-engineering/SKILL.md +44 -0
  157. package/presets/cursor/skills/security-soc-automation/SKILL.md +43 -0
  158. package/presets/cursor/skills/security-threat-hunting/SKILL.md +43 -0
  159. package/presets/cursor/skills/security-vuln-assessment/SKILL.md +45 -0
  160. package/presets/cursor/skills/security-web/SKILL.md +44 -0
  161. package/presets/cursor/skills/testing-tdd/SKILL.md +35 -574
  162. package/presets/cursor/skills/using-cc-skills/SKILL.md +48 -0
  163. package/presets/gemini/commands/cc/api-contract.toml +82 -0
  164. package/presets/gemini/commands/cc/ask.toml +54 -0
  165. package/presets/gemini/commands/cc/backlog.toml +103 -0
  166. package/presets/gemini/commands/cc/clarify.toml +31 -0
  167. package/presets/gemini/commands/cc/council.toml +87 -0
  168. package/presets/gemini/commands/cc/db-migration.toml +83 -0
  169. package/presets/gemini/commands/cc/explore.toml +35 -0
  170. package/presets/gemini/commands/cc/feature.toml +153 -0
  171. package/presets/gemini/commands/cc/fix.toml +163 -0
  172. package/presets/gemini/commands/cc/handoff.toml +40 -0
  173. package/presets/gemini/commands/cc/iterative.toml +145 -0
  174. package/presets/gemini/commands/cc/openspec.toml +186 -0
  175. package/presets/gemini/commands/cc/pagespeed.toml +119 -0
  176. package/presets/gemini/commands/cc/prototype.toml +37 -0
  177. package/presets/gemini/commands/cc/refactor.toml +158 -0
  178. package/presets/gemini/commands/cc/review.toml +150 -0
  179. package/presets/gemini/commands/cc/scorecard.toml +77 -0
  180. package/presets/gemini/commands/cc/security.toml +177 -0
  181. package/presets/gemini/commands/cc/spec-mutation.toml +187 -0
  182. package/presets/gemini/commands/cc/tdd-cycle.toml +264 -0
  183. package/presets/gemini/commands/cc/test-plan.toml +148 -0
  184. package/presets/gemini/commands/cc/triage.toml +33 -0
  185. package/presets/opencode/README.md +24 -21
  186. package/presets/opencode/agents/architect.md +6 -0
  187. package/presets/opencode/agents/implementer.md +7 -0
  188. package/presets/opencode/agents/reviewer.md +6 -0
  189. package/presets/opencode/agents/tester.md +6 -0
  190. package/presets/opencode/commands/cc-api-contract.md +14 -0
  191. package/presets/opencode/commands/cc-ask.md +2 -1
  192. package/presets/opencode/commands/cc-backlog.md +68 -0
  193. package/presets/opencode/commands/cc-db-migration.md +14 -0
  194. package/presets/opencode/commands/cc-explore.md +1 -1
  195. package/presets/opencode/commands/cc-feature.md +18 -0
  196. package/presets/opencode/commands/cc-fix.md +17 -0
  197. package/presets/opencode/commands/cc-iterative.md +14 -0
  198. package/presets/opencode/commands/cc-openspec.md +17 -1
  199. package/presets/opencode/commands/cc-scorecard.md +2 -0
  200. package/presets/opencode/commands/cc-security.md +179 -0
  201. package/presets/opencode/commands/cc-spec-mutation.md +190 -0
  202. package/presets/opencode/commands/cc-tdd-cycle.md +14 -0
  203. package/presets/opencode/gates/pre-commit/GATE.md +5 -4
  204. package/presets/opencode/opencode.jsonc +1 -1
  205. package/presets/opencode/prompts/v1.0.0/architect.md +6 -0
  206. package/presets/opencode/prompts/v1.0.0/implementer.md +7 -0
  207. package/presets/opencode/prompts/v1.0.0/reviewer.md +6 -0
  208. package/presets/opencode/prompts/v1.0.0/tester.md +6 -0
  209. package/presets/opencode/skills/backlog/SKILL.md +61 -0
  210. package/presets/opencode/skills/evaluation/SKILL.md +61 -2
  211. package/presets/opencode/skills/openspec/SKILL.md +47 -31
  212. package/presets/opencode/skills/security-ai-llm/SKILL.md +43 -0
  213. package/presets/opencode/skills/security-blue-team/SKILL.md +43 -0
  214. package/presets/opencode/skills/security-cloud/SKILL.md +43 -0
  215. package/presets/opencode/skills/security-crypto/SKILL.md +43 -0
  216. package/presets/opencode/skills/security-exploit-dev/SKILL.md +45 -0
  217. package/presets/opencode/skills/security-grc/SKILL.md +43 -0
  218. package/presets/opencode/skills/security-incident-response/SKILL.md +45 -0
  219. package/presets/opencode/skills/security-log-analysis/SKILL.md +43 -0
  220. package/presets/opencode/skills/security-malware-analysis/SKILL.md +44 -0
  221. package/presets/opencode/skills/security-mobile/SKILL.md +43 -0
  222. package/presets/opencode/skills/security-network/SKILL.md +43 -0
  223. package/presets/opencode/skills/security-ot-ics/SKILL.md +43 -0
  224. package/presets/opencode/skills/security-recon/SKILL.md +45 -0
  225. package/presets/opencode/skills/security-red-team/SKILL.md +44 -0
  226. package/presets/opencode/skills/security-reverse-engineering/SKILL.md +44 -0
  227. package/presets/opencode/skills/security-soc-automation/SKILL.md +43 -0
  228. package/presets/opencode/skills/security-threat-hunting/SKILL.md +43 -0
  229. package/presets/opencode/skills/security-vuln-assessment/SKILL.md +45 -0
  230. package/presets/opencode/skills/security-web/SKILL.md +44 -0
  231. package/presets/opencode/skills/testing-tdd/SKILL.md +35 -574
  232. package/presets/opencode/skills/using-cc-skills/SKILL.md +48 -0
  233. package/presets/shared/__pycache__/mutation_runner.cpython-314.pyc +0 -0
  234. package/presets/shared/invoke-hook.cjs +115 -0
  235. package/presets/shared/mutation_runner.py +273 -0
  236. package/src/presets/council/council.yml +12 -0
  237. package/src/presets/manifests/agy.yml +2 -0
  238. package/src/presets/manifests/claude.yml +3 -0
  239. package/src/presets/manifests/gemini.yml +15 -0
  240. package/src/presets/models/agy.yml +24 -24
  241. package/src/presets/models/claude.yml +10 -10
  242. package/src/presets/models/codex.yml +10 -10
  243. package/src/presets/models/cursor.yml +10 -10
  244. package/src/presets/models/gemini.yml +10 -10
  245. package/src/presets/models/opencode.yml +10 -10
  246. package/presets/agy/scripts/post-tool.sh +0 -25
  247. package/presets/agy/scripts/pre-tool.sh +0 -56
@@ -29,7 +29,7 @@ export declare const CouncilSpecSchema: z.ZodObject<{
29
29
  version: z.ZodString;
30
30
  description: z.ZodString;
31
31
  outputContract: z.ZodString;
32
- agents: z.ZodArray<z.ZodObject<{
32
+ agents: z.ZodEffects<z.ZodArray<z.ZodObject<{
33
33
  id: z.ZodString;
34
34
  role: z.ZodString;
35
35
  context: z.ZodEnum<["repo-readonly", "prompt-only"]>;
@@ -47,7 +47,19 @@ export declare const CouncilSpecSchema: z.ZodObject<{
47
47
  context: "repo-readonly" | "prompt-only";
48
48
  modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
49
49
  focus: string[];
50
- }>, "many">;
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
+ }[]>;
51
63
  }, "strip", z.ZodTypeAny, {
52
64
  name: string;
53
65
  version: string;
@@ -530,7 +542,7 @@ export declare const AgentContractSchema: z.ZodObject<{
530
542
  version: z.ZodString;
531
543
  description: z.ZodString;
532
544
  outputContract: z.ZodString;
533
- agents: z.ZodArray<z.ZodObject<{
545
+ agents: z.ZodEffects<z.ZodArray<z.ZodObject<{
534
546
  id: z.ZodString;
535
547
  role: z.ZodString;
536
548
  context: z.ZodEnum<["repo-readonly", "prompt-only"]>;
@@ -548,7 +560,19 @@ export declare const AgentContractSchema: z.ZodObject<{
548
560
  context: "repo-readonly" | "prompt-only";
549
561
  modelHint: "strong-reasoning" | "security-reasoning" | "balanced" | "practical-coding" | "analytical" | "adversarial";
550
562
  focus: string[];
551
- }>, "many">;
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
+ }[]>;
552
576
  }, "strip", z.ZodTypeAny, {
553
577
  name: string;
554
578
  version: string;
@@ -655,7 +679,7 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
655
679
  status: z.ZodEnum<["APPROVED", "REJECTED", "ABSTAIN"]>;
656
680
  securityVeto: z.ZodBoolean;
657
681
  complianceVeto: z.ZodOptional<z.ZodBoolean>;
658
- confidence: z.ZodOptional<z.ZodNumber>;
682
+ confidence: z.ZodNumber;
659
683
  findings: z.ZodArray<z.ZodObject<{
660
684
  category: z.ZodString;
661
685
  severity: z.ZodEnum<["info", "warning", "critical"]>;
@@ -675,6 +699,7 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
675
699
  summary: z.ZodString;
676
700
  }, "strip", z.ZodTypeAny, {
677
701
  status: "APPROVED" | "REJECTED" | "ABSTAIN";
702
+ confidence: number;
678
703
  agentId: string;
679
704
  agentRole: string;
680
705
  securityVeto: boolean;
@@ -685,10 +710,10 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
685
710
  agentId: string;
686
711
  }[];
687
712
  summary: string;
688
- confidence?: number | undefined;
689
713
  complianceVeto?: boolean | undefined;
690
714
  }, {
691
715
  status: "APPROVED" | "REJECTED" | "ABSTAIN";
716
+ confidence: number;
692
717
  agentId: string;
693
718
  agentRole: string;
694
719
  securityVeto: boolean;
@@ -699,37 +724,60 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
699
724
  agentId: string;
700
725
  }[];
701
726
  summary: string;
702
- confidence?: number | undefined;
703
727
  complianceVeto?: boolean | undefined;
704
728
  }>;
705
729
  /**
706
730
  * Consensus config schema
707
731
  */
708
- export declare const ConsensusConfigSchema: z.ZodEffects<z.ZodObject<{
732
+ export declare const ConsensusConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
709
733
  algorithm: z.ZodEnum<["majority", "unanimous"]>;
710
734
  allowSecurityVeto: z.ZodBoolean;
711
735
  allowComplianceVeto: z.ZodOptional<z.ZodBoolean>;
712
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"]>>;
713
739
  }, "strip", z.ZodTypeAny, {
714
740
  algorithm: "majority" | "unanimous";
715
741
  allowSecurityVeto: boolean;
716
742
  allowComplianceVeto?: boolean | undefined;
717
743
  expectedAgentIds?: string[] | undefined;
744
+ quorum?: number | undefined;
745
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
718
746
  }, {
719
747
  algorithm: "majority" | "unanimous";
720
748
  allowSecurityVeto: boolean;
721
749
  allowComplianceVeto?: boolean | undefined;
722
750
  expectedAgentIds?: string[] | undefined;
751
+ quorum?: number | undefined;
752
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
723
753
  }>, {
724
754
  algorithm: "majority" | "unanimous";
725
755
  allowSecurityVeto: boolean;
726
756
  allowComplianceVeto?: boolean | undefined;
727
757
  expectedAgentIds?: string[] | undefined;
758
+ quorum?: number | undefined;
759
+ criticalFindingsPolicy?: "escalate" | "reject" | "ignore" | undefined;
728
760
  }, {
729
761
  algorithm: "majority" | "unanimous";
730
762
  allowSecurityVeto: boolean;
731
763
  allowComplianceVeto?: boolean | undefined;
732
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;
733
781
  }>;
734
782
  /**
735
783
  * Council verdict schema — the final output of the consensus engine
@@ -767,7 +815,7 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
767
815
  status: z.ZodEnum<["APPROVED", "REJECTED", "ABSTAIN"]>;
768
816
  securityVeto: z.ZodBoolean;
769
817
  complianceVeto: z.ZodOptional<z.ZodBoolean>;
770
- confidence: z.ZodOptional<z.ZodNumber>;
818
+ confidence: z.ZodNumber;
771
819
  findings: z.ZodArray<z.ZodObject<{
772
820
  category: z.ZodString;
773
821
  severity: z.ZodEnum<["info", "warning", "critical"]>;
@@ -787,6 +835,7 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
787
835
  summary: z.ZodString;
788
836
  }, "strip", z.ZodTypeAny, {
789
837
  status: "APPROVED" | "REJECTED" | "ABSTAIN";
838
+ confidence: number;
790
839
  agentId: string;
791
840
  agentRole: string;
792
841
  securityVeto: boolean;
@@ -797,10 +846,10 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
797
846
  agentId: string;
798
847
  }[];
799
848
  summary: string;
800
- confidence?: number | undefined;
801
849
  complianceVeto?: boolean | undefined;
802
850
  }, {
803
851
  status: "APPROVED" | "REJECTED" | "ABSTAIN";
852
+ confidence: number;
804
853
  agentId: string;
805
854
  agentRole: string;
806
855
  securityVeto: boolean;
@@ -811,7 +860,6 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
811
860
  agentId: string;
812
861
  }[];
813
862
  summary: string;
814
- confidence?: number | undefined;
815
863
  complianceVeto?: boolean | undefined;
816
864
  }>, "many">;
817
865
  }, "strip", z.ZodTypeAny, {
@@ -830,6 +878,7 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
830
878
  vetoApplied: boolean;
831
879
  individualVerdicts: {
832
880
  status: "APPROVED" | "REJECTED" | "ABSTAIN";
881
+ confidence: number;
833
882
  agentId: string;
834
883
  agentRole: string;
835
884
  securityVeto: boolean;
@@ -840,7 +889,6 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
840
889
  agentId: string;
841
890
  }[];
842
891
  summary: string;
843
- confidence?: number | undefined;
844
892
  complianceVeto?: boolean | undefined;
845
893
  }[];
846
894
  complianceVetoApplied?: boolean | undefined;
@@ -862,6 +910,7 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
862
910
  vetoApplied: boolean;
863
911
  individualVerdicts: {
864
912
  status: "APPROVED" | "REJECTED" | "ABSTAIN";
913
+ confidence: number;
865
914
  agentId: string;
866
915
  agentRole: string;
867
916
  securityVeto: boolean;
@@ -872,7 +921,6 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
872
921
  agentId: string;
873
922
  }[];
874
923
  summary: string;
875
- confidence?: number | undefined;
876
924
  complianceVeto?: boolean | undefined;
877
925
  }[];
878
926
  complianceVetoApplied?: boolean | undefined;
@@ -1293,12 +1341,22 @@ export declare const CanonicalTaskCardSchema: z.ZodObject<{
1293
1341
  agentType: z.ZodString;
1294
1342
  evidenceRequired: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1295
1343
  status: z.ZodEnum<["draft", "ready", "in-progress", "review", "done", "blocked"]>;
1296
- type: z.ZodOptional<z.ZodEnum<["feature", "fix", "refactor", "review", "docs", "test"]>>;
1344
+ type: z.ZodEnum<["feature", "fix", "refactor", "review", "docs", "test"]>;
1297
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>;
1298
1355
  }, "strip", z.ZodTypeAny, {
1299
1356
  id: string;
1300
1357
  context: string;
1301
1358
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
1359
+ type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
1302
1360
  title: string;
1303
1361
  risk: "low" | "medium" | "high";
1304
1362
  objective: string;
@@ -1309,22 +1367,39 @@ export declare const CanonicalTaskCardSchema: z.ZodObject<{
1309
1367
  agentType: string;
1310
1368
  evidenceRequired: string[];
1311
1369
  linkedCapabilities: string[];
1312
- type?: "feature" | "fix" | "refactor" | "test" | "docs" | "review" | undefined;
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;
1313
1379
  }, {
1314
1380
  id: string;
1315
1381
  context: string;
1316
1382
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
1383
+ type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
1317
1384
  title: string;
1318
1385
  risk: "low" | "medium" | "high";
1319
1386
  objective: string;
1320
1387
  acceptanceCriteria: string[];
1321
1388
  agentType: string;
1322
- type?: "feature" | "fix" | "refactor" | "test" | "docs" | "review" | undefined;
1389
+ domain?: string | undefined;
1323
1390
  dependencies?: string[] | undefined;
1324
1391
  constraints?: string[] | undefined;
1325
1392
  targetFiles?: string[] | undefined;
1326
1393
  evidenceRequired?: string[] | undefined;
1327
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;
1328
1403
  }>;
1329
1404
  export declare const ProductGraphNodeSchema: z.ZodObject<{
1330
1405
  id: z.ZodString;
@@ -1593,14 +1668,14 @@ export declare const BusinessReviewOutputSchema: z.ZodObject<{
1593
1668
  questions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1594
1669
  confidence: z.ZodNumber;
1595
1670
  }, "strip", z.ZodTypeAny, {
1596
- status: "proceed" | "defer" | "reject";
1671
+ status: "reject" | "proceed" | "defer";
1597
1672
  confidence: number;
1598
1673
  questions: string[];
1599
1674
  roiEstimate?: string | undefined;
1600
1675
  userImpact?: string | undefined;
1601
1676
  eliminationRisk?: string | undefined;
1602
1677
  }, {
1603
- status: "proceed" | "defer" | "reject";
1678
+ status: "reject" | "proceed" | "defer";
1604
1679
  confidence: number;
1605
1680
  roiEstimate?: string | undefined;
1606
1681
  userImpact?: string | undefined;
@@ -1959,6 +2034,7 @@ export declare const OpenspecTaskCardSchema: z.ZodObject<{
1959
2034
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1960
2035
  acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1961
2036
  status: z.ZodEnum<["pending", "doing", "blocked", "done"]>;
2037
+ itemHash: z.ZodOptional<z.ZodString>;
1962
2038
  }, "strip", z.ZodTypeAny, {
1963
2039
  id: string;
1964
2040
  status: "pending" | "done" | "blocked" | "doing";
@@ -1970,6 +2046,7 @@ export declare const OpenspecTaskCardSchema: z.ZodObject<{
1970
2046
  agent: string;
1971
2047
  dependsOn: string[];
1972
2048
  modelHint?: string | undefined;
2049
+ itemHash?: string | undefined;
1973
2050
  }, {
1974
2051
  id: string;
1975
2052
  status: "pending" | "done" | "blocked" | "doing";
@@ -1981,6 +2058,7 @@ export declare const OpenspecTaskCardSchema: z.ZodObject<{
1981
2058
  agent: string;
1982
2059
  modelHint?: string | undefined;
1983
2060
  dependsOn?: string[] | undefined;
2061
+ itemHash?: string | undefined;
1984
2062
  }>;
1985
2063
  export declare const OpenspecStateSchema: z.ZodObject<{
1986
2064
  version: z.ZodLiteral<1>;
@@ -1996,6 +2074,7 @@ export declare const OpenspecStateSchema: z.ZodObject<{
1996
2074
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1997
2075
  acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1998
2076
  status: z.ZodEnum<["pending", "doing", "blocked", "done"]>;
2077
+ itemHash: z.ZodOptional<z.ZodString>;
1999
2078
  }, "strip", z.ZodTypeAny, {
2000
2079
  id: string;
2001
2080
  status: "pending" | "done" | "blocked" | "doing";
@@ -2007,6 +2086,7 @@ export declare const OpenspecStateSchema: z.ZodObject<{
2007
2086
  agent: string;
2008
2087
  dependsOn: string[];
2009
2088
  modelHint?: string | undefined;
2089
+ itemHash?: string | undefined;
2010
2090
  }, {
2011
2091
  id: string;
2012
2092
  status: "pending" | "done" | "blocked" | "doing";
@@ -2018,6 +2098,7 @@ export declare const OpenspecStateSchema: z.ZodObject<{
2018
2098
  agent: string;
2019
2099
  modelHint?: string | undefined;
2020
2100
  dependsOn?: string[] | undefined;
2101
+ itemHash?: string | undefined;
2021
2102
  }>, "many">>;
2022
2103
  lastScanHash: z.ZodOptional<z.ZodString>;
2023
2104
  lastScanAt: z.ZodOptional<z.ZodString>;
@@ -2036,6 +2117,7 @@ export declare const OpenspecStateSchema: z.ZodObject<{
2036
2117
  agent: string;
2037
2118
  dependsOn: string[];
2038
2119
  modelHint?: string | undefined;
2120
+ itemHash?: string | undefined;
2039
2121
  }[];
2040
2122
  changePaths: Record<string, string>;
2041
2123
  itemSnapshots: Record<string, string>;
@@ -2056,17 +2138,88 @@ export declare const OpenspecStateSchema: z.ZodObject<{
2056
2138
  agent: string;
2057
2139
  modelHint?: string | undefined;
2058
2140
  dependsOn?: string[] | undefined;
2141
+ itemHash?: string | undefined;
2059
2142
  }[] | undefined;
2060
2143
  lastScanHash?: string | undefined;
2061
2144
  lastScanAt?: string | undefined;
2062
2145
  changePaths?: Record<string, string> | undefined;
2063
2146
  itemSnapshots?: Record<string, string> | undefined;
2064
2147
  }>;
2065
- export declare const WorkflowCommandSchema: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify"]>;
2148
+ export declare const SpecAnalyzeFindingSchema: z.ZodObject<{
2149
+ severity: z.ZodEnum<["CRITICAL", "HIGH", "MEDIUM", "LOW"]>;
2150
+ code: z.ZodString;
2151
+ message: z.ZodString;
2152
+ }, "strip", z.ZodTypeAny, {
2153
+ code: string;
2154
+ message: string;
2155
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
2156
+ }, {
2157
+ code: string;
2158
+ message: string;
2159
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
2160
+ }>;
2161
+ export declare const SpecAnalyzeReportSchema: z.ZodObject<{
2162
+ changePath: z.ZodString;
2163
+ frIds: z.ZodArray<z.ZodString, "many">;
2164
+ scIds: z.ZodArray<z.ZodString, "many">;
2165
+ mappedFr: z.ZodArray<z.ZodString, "many">;
2166
+ mappedSc: z.ZodArray<z.ZodString, "many">;
2167
+ mappedToTests: z.ZodArray<z.ZodString, "many">;
2168
+ frCoveragePct: z.ZodNumber;
2169
+ scCoveragePct: z.ZodNumber;
2170
+ testCoveragePct: z.ZodNumber;
2171
+ findings: z.ZodArray<z.ZodObject<{
2172
+ severity: z.ZodEnum<["CRITICAL", "HIGH", "MEDIUM", "LOW"]>;
2173
+ code: z.ZodString;
2174
+ message: z.ZodString;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ code: string;
2177
+ message: string;
2178
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
2179
+ }, {
2180
+ code: string;
2181
+ message: string;
2182
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
2183
+ }>, "many">;
2184
+ stop: z.ZodBoolean;
2185
+ }, "strip", z.ZodTypeAny, {
2186
+ findings: {
2187
+ code: string;
2188
+ message: string;
2189
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
2190
+ }[];
2191
+ changePath: string;
2192
+ frIds: string[];
2193
+ scIds: string[];
2194
+ mappedFr: string[];
2195
+ mappedSc: string[];
2196
+ mappedToTests: string[];
2197
+ frCoveragePct: number;
2198
+ scCoveragePct: number;
2199
+ testCoveragePct: number;
2200
+ stop: boolean;
2201
+ }, {
2202
+ findings: {
2203
+ code: string;
2204
+ message: string;
2205
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
2206
+ }[];
2207
+ changePath: string;
2208
+ frIds: string[];
2209
+ scIds: string[];
2210
+ mappedFr: string[];
2211
+ mappedSc: string[];
2212
+ mappedToTests: string[];
2213
+ frCoveragePct: number;
2214
+ scCoveragePct: number;
2215
+ testCoveragePct: number;
2216
+ stop: boolean;
2217
+ }>;
2218
+ export declare const WorkflowCommandSchema: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "spec-mutation", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2066
2219
  export declare const CcepOutputFormatSchema: z.ZodEnum<["taskcard", "plan", "verdict"]>;
2067
2220
  export declare const CommandEnvelopeSchema: z.ZodObject<{
2068
2221
  protocolVersion: z.ZodLiteral<"ccep-1">;
2069
- command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify"]>;
2222
+ command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "spec-mutation", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2070
2223
  userRequest: z.ZodString;
2071
2224
  projectId: z.ZodString;
2072
2225
  repoContext: z.ZodObject<{
@@ -2109,7 +2262,7 @@ export declare const CommandEnvelopeSchema: z.ZodObject<{
2109
2262
  maxVariance: "low";
2110
2263
  }>;
2111
2264
  }, "strip", z.ZodTypeAny, {
2112
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2265
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2113
2266
  constraints: {
2114
2267
  outputFormat: "taskcard" | "plan" | "verdict";
2115
2268
  needConfirmation: boolean;
@@ -2129,7 +2282,7 @@ export declare const CommandEnvelopeSchema: z.ZodObject<{
2129
2282
  maxVariance: "low";
2130
2283
  };
2131
2284
  }, {
2132
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2285
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2133
2286
  constraints: {
2134
2287
  outputFormat: "taskcard" | "plan" | "verdict";
2135
2288
  needConfirmation: boolean;
@@ -2206,7 +2359,7 @@ export declare const WorkflowRiskRuleSchema: z.ZodObject<{
2206
2359
  export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
2207
2360
  id: z.ZodString;
2208
2361
  version: z.ZodNumber;
2209
- command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify"]>;
2362
+ command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "spec-mutation", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2210
2363
  taskCard: z.ZodOptional<z.ZodObject<{
2211
2364
  type: z.ZodString;
2212
2365
  requiredFields: z.ZodArray<z.ZodString, "many">;
@@ -2307,7 +2460,7 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
2307
2460
  }, "strip", z.ZodTypeAny, {
2308
2461
  id: string;
2309
2462
  version: number;
2310
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2463
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2311
2464
  phases: {
2312
2465
  id: string;
2313
2466
  type?: string | undefined;
@@ -2342,7 +2495,7 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
2342
2495
  }, {
2343
2496
  id: string;
2344
2497
  version: number;
2345
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2498
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2346
2499
  phases: {
2347
2500
  id: string;
2348
2501
  type?: string | undefined;
@@ -2377,7 +2530,7 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
2377
2530
  }>, {
2378
2531
  id: string;
2379
2532
  version: number;
2380
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2533
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2381
2534
  phases: {
2382
2535
  id: string;
2383
2536
  type?: string | undefined;
@@ -2412,7 +2565,7 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
2412
2565
  }, {
2413
2566
  id: string;
2414
2567
  version: number;
2415
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2568
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2416
2569
  phases: {
2417
2570
  id: string;
2418
2571
  type?: string | undefined;
@@ -2448,7 +2601,7 @@ export declare const WorkflowProfileSchema: z.ZodEffects<z.ZodObject<{
2448
2601
  export declare const ExecutionContextSchema: z.ZodObject<{
2449
2602
  envelope: z.ZodObject<{
2450
2603
  protocolVersion: z.ZodLiteral<"ccep-1">;
2451
- command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify"]>;
2604
+ command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "spec-mutation", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2452
2605
  userRequest: z.ZodString;
2453
2606
  projectId: z.ZodString;
2454
2607
  repoContext: z.ZodObject<{
@@ -2491,7 +2644,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2491
2644
  maxVariance: "low";
2492
2645
  }>;
2493
2646
  }, "strip", z.ZodTypeAny, {
2494
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2647
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2495
2648
  constraints: {
2496
2649
  outputFormat: "taskcard" | "plan" | "verdict";
2497
2650
  needConfirmation: boolean;
@@ -2511,7 +2664,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2511
2664
  maxVariance: "low";
2512
2665
  };
2513
2666
  }, {
2514
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2667
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2515
2668
  constraints: {
2516
2669
  outputFormat: "taskcard" | "plan" | "verdict";
2517
2670
  needConfirmation: boolean;
@@ -2534,7 +2687,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2534
2687
  profile: z.ZodEffects<z.ZodObject<{
2535
2688
  id: z.ZodString;
2536
2689
  version: z.ZodNumber;
2537
- command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify"]>;
2690
+ command: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "spec-mutation", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2538
2691
  taskCard: z.ZodOptional<z.ZodObject<{
2539
2692
  type: z.ZodString;
2540
2693
  requiredFields: z.ZodArray<z.ZodString, "many">;
@@ -2635,7 +2788,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2635
2788
  }, "strip", z.ZodTypeAny, {
2636
2789
  id: string;
2637
2790
  version: number;
2638
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2791
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2639
2792
  phases: {
2640
2793
  id: string;
2641
2794
  type?: string | undefined;
@@ -2670,7 +2823,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2670
2823
  }, {
2671
2824
  id: string;
2672
2825
  version: number;
2673
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2826
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2674
2827
  phases: {
2675
2828
  id: string;
2676
2829
  type?: string | undefined;
@@ -2705,7 +2858,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2705
2858
  }>, {
2706
2859
  id: string;
2707
2860
  version: number;
2708
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2861
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2709
2862
  phases: {
2710
2863
  id: string;
2711
2864
  type?: string | undefined;
@@ -2740,7 +2893,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2740
2893
  }, {
2741
2894
  id: string;
2742
2895
  version: number;
2743
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2896
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2744
2897
  phases: {
2745
2898
  id: string;
2746
2899
  type?: string | undefined;
@@ -2774,19 +2927,19 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2774
2927
  intakeSchema?: string | undefined;
2775
2928
  }>;
2776
2929
  intent: z.ZodObject<{
2777
- type: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "api-contract", "db-migration", "pagespeed", "openspec", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify"]>;
2930
+ type: z.ZodEnum<["feature", "fix", "refactor", "review", "test-plan", "tdd-cycle", "spec-mutation", "api-contract", "db-migration", "pagespeed", "openspec", "backlog", "scorecard", "council", "iterative", "explore", "triage", "prototype", "handoff", "clarify", "security"]>;
2778
2931
  goal: z.ZodString;
2779
2932
  domain: z.ZodOptional<z.ZodString>;
2780
2933
  entity: z.ZodOptional<z.ZodString>;
2781
2934
  operation: z.ZodOptional<z.ZodString>;
2782
2935
  }, "strip", z.ZodTypeAny, {
2783
- type: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2936
+ type: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2784
2937
  goal: string;
2785
2938
  domain?: string | undefined;
2786
2939
  entity?: string | undefined;
2787
2940
  operation?: string | undefined;
2788
2941
  }, {
2789
- type: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2942
+ type: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2790
2943
  goal: string;
2791
2944
  domain?: string | undefined;
2792
2945
  entity?: string | undefined;
@@ -2849,7 +3002,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2849
3002
  profile: {
2850
3003
  id: string;
2851
3004
  version: number;
2852
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3005
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2853
3006
  phases: {
2854
3007
  id: string;
2855
3008
  type?: string | undefined;
@@ -2884,7 +3037,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2884
3037
  };
2885
3038
  outputSchema: string;
2886
3039
  envelope: {
2887
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3040
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2888
3041
  constraints: {
2889
3042
  outputFormat: "taskcard" | "plan" | "verdict";
2890
3043
  needConfirmation: boolean;
@@ -2905,7 +3058,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2905
3058
  };
2906
3059
  };
2907
3060
  intent: {
2908
- type: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3061
+ type: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2909
3062
  goal: string;
2910
3063
  domain?: string | undefined;
2911
3064
  entity?: string | undefined;
@@ -2934,7 +3087,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2934
3087
  profile: {
2935
3088
  id: string;
2936
3089
  version: number;
2937
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3090
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2938
3091
  phases: {
2939
3092
  id: string;
2940
3093
  type?: string | undefined;
@@ -2969,7 +3122,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2969
3122
  };
2970
3123
  outputSchema: string;
2971
3124
  envelope: {
2972
- command: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3125
+ command: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2973
3126
  constraints: {
2974
3127
  outputFormat: "taskcard" | "plan" | "verdict";
2975
3128
  needConfirmation: boolean;
@@ -2990,7 +3143,7 @@ export declare const ExecutionContextSchema: z.ZodObject<{
2990
3143
  };
2991
3144
  };
2992
3145
  intent: {
2993
- type: "council" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
3146
+ type: "council" | "security" | "feature" | "fix" | "refactor" | "review" | "test-plan" | "tdd-cycle" | "spec-mutation" | "api-contract" | "db-migration" | "pagespeed" | "openspec" | "backlog" | "scorecard" | "iterative" | "explore" | "triage" | "prototype" | "handoff" | "clarify";
2994
3147
  goal: string;
2995
3148
  domain?: string | undefined;
2996
3149
  entity?: string | undefined;
@@ -3469,6 +3622,11 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
3469
3622
  tokensOut: z.ZodOptional<z.ZodNumber>;
3470
3623
  costUsd: z.ZodOptional<z.ZodNumber>;
3471
3624
  durationMs: z.ZodOptional<z.ZodNumber>;
3625
+ experimentId: z.ZodOptional<z.ZodString>;
3626
+ variantId: z.ZodOptional<z.ZodString>;
3627
+ suiteTaskId: z.ZodOptional<z.ZodString>;
3628
+ harnessFingerprint: z.ZodOptional<z.ZodString>;
3629
+ disabledComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3472
3630
  }, "strip", z.ZodTypeAny, {
3473
3631
  id: string;
3474
3632
  contractVersion: string;
@@ -3488,6 +3646,11 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
3488
3646
  tokensOut?: number | undefined;
3489
3647
  costUsd?: number | undefined;
3490
3648
  durationMs?: number | undefined;
3649
+ experimentId?: string | undefined;
3650
+ variantId?: string | undefined;
3651
+ suiteTaskId?: string | undefined;
3652
+ harnessFingerprint?: string | undefined;
3653
+ disabledComponents?: string[] | undefined;
3491
3654
  }, {
3492
3655
  id: string;
3493
3656
  contractVersion: string;
@@ -3507,6 +3670,248 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
3507
3670
  tokensOut?: number | undefined;
3508
3671
  costUsd?: number | undefined;
3509
3672
  durationMs?: number | undefined;
3673
+ experimentId?: string | undefined;
3674
+ variantId?: string | undefined;
3675
+ suiteTaskId?: string | undefined;
3676
+ harnessFingerprint?: string | undefined;
3677
+ disabledComponents?: string[] | undefined;
3678
+ }>;
3679
+ export declare const HarnessComponentIdSchema: z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>;
3680
+ export declare const HarnessComponentLayerSchema: z.ZodEnum<["phase", "gate", "loop", "knowledge", "council"]>;
3681
+ export declare const HarnessToggleKindSchema: z.ZodEnum<["ccep_phase", "ccep_gates", "config_loop", "config_council", "product_graph"]>;
3682
+ export declare const HarnessCatalogEntrySchema: z.ZodObject<{
3683
+ id: z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>;
3684
+ layer: z.ZodEnum<["phase", "gate", "loop", "knowledge", "council"]>;
3685
+ label: z.ZodString;
3686
+ defaultOn: z.ZodDefault<z.ZodBoolean>;
3687
+ toggle: z.ZodObject<{
3688
+ kind: z.ZodEnum<["ccep_phase", "ccep_gates", "config_loop", "config_council", "product_graph"]>;
3689
+ phaseId: z.ZodOptional<z.ZodString>;
3690
+ }, "strip", z.ZodTypeAny, {
3691
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3692
+ phaseId?: string | undefined;
3693
+ }, {
3694
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3695
+ phaseId?: string | undefined;
3696
+ }>;
3697
+ }, "strip", z.ZodTypeAny, {
3698
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3699
+ label: string;
3700
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3701
+ defaultOn: boolean;
3702
+ toggle: {
3703
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3704
+ phaseId?: string | undefined;
3705
+ };
3706
+ }, {
3707
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3708
+ label: string;
3709
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3710
+ toggle: {
3711
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3712
+ phaseId?: string | undefined;
3713
+ };
3714
+ defaultOn?: boolean | undefined;
3715
+ }>;
3716
+ export declare const HarnessCatalogSchema: z.ZodObject<{
3717
+ version: z.ZodLiteral<1>;
3718
+ components: z.ZodArray<z.ZodObject<{
3719
+ id: z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>;
3720
+ layer: z.ZodEnum<["phase", "gate", "loop", "knowledge", "council"]>;
3721
+ label: z.ZodString;
3722
+ defaultOn: z.ZodDefault<z.ZodBoolean>;
3723
+ toggle: z.ZodObject<{
3724
+ kind: z.ZodEnum<["ccep_phase", "ccep_gates", "config_loop", "config_council", "product_graph"]>;
3725
+ phaseId: z.ZodOptional<z.ZodString>;
3726
+ }, "strip", z.ZodTypeAny, {
3727
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3728
+ phaseId?: string | undefined;
3729
+ }, {
3730
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3731
+ phaseId?: string | undefined;
3732
+ }>;
3733
+ }, "strip", z.ZodTypeAny, {
3734
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3735
+ label: string;
3736
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3737
+ defaultOn: boolean;
3738
+ toggle: {
3739
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3740
+ phaseId?: string | undefined;
3741
+ };
3742
+ }, {
3743
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3744
+ label: string;
3745
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3746
+ toggle: {
3747
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3748
+ phaseId?: string | undefined;
3749
+ };
3750
+ defaultOn?: boolean | undefined;
3751
+ }>, "many">;
3752
+ }, "strip", z.ZodTypeAny, {
3753
+ version: 1;
3754
+ components: {
3755
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3756
+ label: string;
3757
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3758
+ defaultOn: boolean;
3759
+ toggle: {
3760
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3761
+ phaseId?: string | undefined;
3762
+ };
3763
+ }[];
3764
+ }, {
3765
+ version: 1;
3766
+ components: {
3767
+ id: "council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph";
3768
+ label: string;
3769
+ layer: "council" | "loop" | "phase" | "knowledge" | "gate";
3770
+ toggle: {
3771
+ kind: "product_graph" | "ccep_phase" | "ccep_gates" | "config_loop" | "config_council";
3772
+ phaseId?: string | undefined;
3773
+ };
3774
+ defaultOn?: boolean | undefined;
3775
+ }[];
3776
+ }>;
3777
+ export declare const HarnessOverlaySchema: z.ZodObject<{
3778
+ experimentId: z.ZodOptional<z.ZodString>;
3779
+ variantId: z.ZodString;
3780
+ disabledComponents: z.ZodArray<z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>, "many">;
3781
+ disableProductGraph: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3782
+ contractVersion: z.ZodOptional<z.ZodString>;
3783
+ ccepProfile: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3784
+ }, "strip", z.ZodTypeAny, {
3785
+ variantId: string;
3786
+ disabledComponents: ("council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph")[];
3787
+ disableProductGraph: boolean;
3788
+ ccepProfile: string;
3789
+ contractVersion?: string | undefined;
3790
+ experimentId?: string | undefined;
3791
+ }, {
3792
+ variantId: string;
3793
+ disabledComponents: ("council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph")[];
3794
+ contractVersion?: string | undefined;
3795
+ experimentId?: string | undefined;
3796
+ disableProductGraph?: boolean | undefined;
3797
+ ccepProfile?: string | undefined;
3798
+ }>;
3799
+ export declare const HarnessExperimentSchema: z.ZodObject<{
3800
+ id: z.ZodString;
3801
+ suiteId: z.ZodString;
3802
+ createdAt: z.ZodString;
3803
+ contractVersion: z.ZodString;
3804
+ components: z.ZodArray<z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>, "many">;
3805
+ variants: z.ZodArray<z.ZodString, "many">;
3806
+ suiteTaskIds: z.ZodArray<z.ZodString, "many">;
3807
+ suitePath: z.ZodOptional<z.ZodString>;
3808
+ }, "strip", z.ZodTypeAny, {
3809
+ id: string;
3810
+ contractVersion: string;
3811
+ createdAt: string;
3812
+ components: ("council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph")[];
3813
+ suiteId: string;
3814
+ variants: string[];
3815
+ suiteTaskIds: string[];
3816
+ suitePath?: string | undefined;
3817
+ }, {
3818
+ id: string;
3819
+ contractVersion: string;
3820
+ createdAt: string;
3821
+ components: ("council" | "docs" | "review" | "design" | "wayfinding" | "intake" | "test_first" | "confirmation_gates" | "compile_loop" | "product_graph")[];
3822
+ suiteId: string;
3823
+ variants: string[];
3824
+ suiteTaskIds: string[];
3825
+ suitePath?: string | undefined;
3826
+ }>;
3827
+ export declare const HarnessSuiteTaskSchema: z.ZodObject<{
3828
+ id: z.ZodString;
3829
+ title: z.ZodString;
3830
+ type: z.ZodEnum<["feature", "fix", "refactor"]>;
3831
+ risk: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
3832
+ prompt: z.ZodString;
3833
+ scope: z.ZodString;
3834
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
3835
+ testCommand: z.ZodOptional<z.ZodString>;
3836
+ }, "strip", z.ZodTypeAny, {
3837
+ id: string;
3838
+ type: "feature" | "fix" | "refactor";
3839
+ title: string;
3840
+ risk: "low" | "medium" | "high";
3841
+ acceptanceCriteria: string[];
3842
+ scope: string;
3843
+ prompt: string;
3844
+ testCommand?: string | undefined;
3845
+ }, {
3846
+ id: string;
3847
+ type: "feature" | "fix" | "refactor";
3848
+ title: string;
3849
+ acceptanceCriteria: string[];
3850
+ scope: string;
3851
+ prompt: string;
3852
+ risk?: "low" | "medium" | "high" | undefined;
3853
+ testCommand?: string | undefined;
3854
+ }>;
3855
+ export declare const HarnessSuiteSchema: z.ZodObject<{
3856
+ id: z.ZodString;
3857
+ version: z.ZodNumber;
3858
+ fixtureDir: z.ZodOptional<z.ZodString>;
3859
+ tasks: z.ZodArray<z.ZodObject<{
3860
+ id: z.ZodString;
3861
+ title: z.ZodString;
3862
+ type: z.ZodEnum<["feature", "fix", "refactor"]>;
3863
+ risk: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
3864
+ prompt: z.ZodString;
3865
+ scope: z.ZodString;
3866
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
3867
+ testCommand: z.ZodOptional<z.ZodString>;
3868
+ }, "strip", z.ZodTypeAny, {
3869
+ id: string;
3870
+ type: "feature" | "fix" | "refactor";
3871
+ title: string;
3872
+ risk: "low" | "medium" | "high";
3873
+ acceptanceCriteria: string[];
3874
+ scope: string;
3875
+ prompt: string;
3876
+ testCommand?: string | undefined;
3877
+ }, {
3878
+ id: string;
3879
+ type: "feature" | "fix" | "refactor";
3880
+ title: string;
3881
+ acceptanceCriteria: string[];
3882
+ scope: string;
3883
+ prompt: string;
3884
+ risk?: "low" | "medium" | "high" | undefined;
3885
+ testCommand?: string | undefined;
3886
+ }>, "many">;
3887
+ }, "strip", z.ZodTypeAny, {
3888
+ id: string;
3889
+ version: number;
3890
+ tasks: {
3891
+ id: string;
3892
+ type: "feature" | "fix" | "refactor";
3893
+ title: string;
3894
+ risk: "low" | "medium" | "high";
3895
+ acceptanceCriteria: string[];
3896
+ scope: string;
3897
+ prompt: string;
3898
+ testCommand?: string | undefined;
3899
+ }[];
3900
+ fixtureDir?: string | undefined;
3901
+ }, {
3902
+ id: string;
3903
+ version: number;
3904
+ tasks: {
3905
+ id: string;
3906
+ type: "feature" | "fix" | "refactor";
3907
+ title: string;
3908
+ acceptanceCriteria: string[];
3909
+ scope: string;
3910
+ prompt: string;
3911
+ risk?: "low" | "medium" | "high" | undefined;
3912
+ testCommand?: string | undefined;
3913
+ }[];
3914
+ fixtureDir?: string | undefined;
3510
3915
  }>;
3511
3916
  export declare const EvaluationIndexSchema: z.ZodObject<{
3512
3917
  version: z.ZodLiteral<1>;
@@ -3585,12 +3990,20 @@ export type OpenspecTaskCardPhaseInput = z.infer<typeof OpenspecTaskCardPhaseSch
3585
3990
  export type OpenspecTaskCardStatusInput = z.infer<typeof OpenspecTaskCardStatusSchema>;
3586
3991
  export type OpenspecTaskCardInput = z.infer<typeof OpenspecTaskCardSchema>;
3587
3992
  export type OpenspecStateInput = z.infer<typeof OpenspecStateSchema>;
3993
+ export type SpecAnalyzeReportInput = z.infer<typeof SpecAnalyzeReportSchema>;
3588
3994
  export type ScorecardVerdictInput = z.infer<typeof ScorecardVerdictSchema>;
3589
3995
  export type ScorecardCriterionInput = z.infer<typeof ScorecardCriterionSchema>;
3590
3996
  export type ScorecardRecordInput = z.infer<typeof ScorecardRecordSchema>;
3591
3997
  export type TaskOutcomeInput = z.infer<typeof TaskOutcomeSchema>;
3592
3998
  export type EvaluationIndexInput = z.infer<typeof EvaluationIndexSchema>;
3593
3999
  export type ExecutionProfileInput = z.infer<typeof ExecutionProfileSchema>;
4000
+ export type HarnessComponentIdInput = z.infer<typeof HarnessComponentIdSchema>;
4001
+ export type HarnessCatalogEntryInput = z.infer<typeof HarnessCatalogEntrySchema>;
4002
+ export type HarnessCatalogInput = z.infer<typeof HarnessCatalogSchema>;
4003
+ export type HarnessOverlayInput = z.infer<typeof HarnessOverlaySchema>;
4004
+ export type HarnessExperimentInput = z.infer<typeof HarnessExperimentSchema>;
4005
+ export type HarnessSuiteTaskInput = z.infer<typeof HarnessSuiteTaskSchema>;
4006
+ export type HarnessSuiteInput = z.infer<typeof HarnessSuiteSchema>;
3594
4007
  export type WorkflowCommandInput = z.infer<typeof WorkflowCommandSchema>;
3595
4008
  export type CommandEnvelopeInput = z.infer<typeof CommandEnvelopeSchema>;
3596
4009
  export type WorkflowProfileInput = z.infer<typeof WorkflowProfileSchema>;
@@ -3645,6 +4058,10 @@ export declare function validateBacklogDocument(data: unknown): BacklogDocumentI
3645
4058
  export declare function validateOpenspecState(data: unknown): OpenspecStateInput;
3646
4059
  export declare function validateScorecardRecord(data: unknown): ScorecardRecordInput;
3647
4060
  export declare function validateTaskOutcome(data: unknown): TaskOutcomeInput;
4061
+ export declare function validateHarnessCatalog(data: unknown): HarnessCatalogInput;
4062
+ export declare function validateHarnessOverlay(data: unknown): HarnessOverlayInput;
4063
+ export declare function validateHarnessExperiment(data: unknown): HarnessExperimentInput;
4064
+ export declare function validateHarnessSuite(data: unknown): HarnessSuiteInput;
3648
4065
  export declare function validateCommandEnvelope(data: unknown): CommandEnvelopeInput;
3649
4066
  export declare function validateWorkflowProfile(data: unknown): WorkflowProfileInput;
3650
4067
  export declare function validateExecutionContext(data: unknown): ExecutionContextInput;