cc-codeconductor 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +11 -10
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +2689 -528
  4. package/dist/library.js +859 -715
  5. package/dist/validation/schemas.d.ts +784 -138
  6. package/dist/validation/scoped-context-schemas.d.ts +1074 -0
  7. package/package.json +3 -2
  8. package/presets/agy/skills/database-migrations/SKILL.md +64 -0
  9. package/presets/agy/skills/rust-async/SKILL.md +64 -0
  10. package/presets/agy/skills/rust-engineering/SKILL.md +69 -0
  11. package/presets/agy/skills/rust-sqlx/SKILL.md +64 -0
  12. package/presets/claude/settings.json +1 -8
  13. package/presets/claude/skills/database-migrations/SKILL.md +64 -0
  14. package/presets/claude/skills/rust-async/SKILL.md +64 -0
  15. package/presets/claude/skills/rust-engineering/SKILL.md +69 -0
  16. package/presets/claude/skills/rust-sqlx/SKILL.md +64 -0
  17. package/presets/codex/skills/database-migrations/SKILL.md +64 -0
  18. package/presets/codex/skills/rust-async/SKILL.md +64 -0
  19. package/presets/codex/skills/rust-engineering/SKILL.md +69 -0
  20. package/presets/codex/skills/rust-sqlx/SKILL.md +64 -0
  21. package/presets/cursor/skills/database-migrations/SKILL.md +64 -0
  22. package/presets/cursor/skills/rust-async/SKILL.md +64 -0
  23. package/presets/cursor/skills/rust-engineering/SKILL.md +69 -0
  24. package/presets/cursor/skills/rust-sqlx/SKILL.md +64 -0
  25. package/presets/opencode/skills/database-migrations/SKILL.md +64 -0
  26. package/presets/opencode/skills/rust-async/SKILL.md +64 -0
  27. package/presets/opencode/skills/rust-engineering/SKILL.md +69 -0
  28. package/presets/opencode/skills/rust-sqlx/SKILL.md +64 -0
  29. package/src/presets/shared-skills.yml +8 -0
@@ -61,8 +61,8 @@ export declare const CouncilSpecSchema: z.ZodObject<{
61
61
  focus: string[];
62
62
  }[]>;
63
63
  }, "strip", z.ZodTypeAny, {
64
- name: string;
65
64
  version: string;
65
+ name: string;
66
66
  description: string;
67
67
  outputContract: string;
68
68
  agents: {
@@ -73,8 +73,8 @@ export declare const CouncilSpecSchema: z.ZodObject<{
73
73
  focus: string[];
74
74
  }[];
75
75
  }, {
76
- name: string;
77
76
  version: string;
77
+ name: string;
78
78
  description: string;
79
79
  outputContract: string;
80
80
  agents: {
@@ -96,22 +96,210 @@ export declare const ProjectProfileSchema: z.ZodObject<{
96
96
  frameworks: z.ZodArray<z.ZodString, "many">;
97
97
  signals: z.ZodArray<z.ZodString, "many">;
98
98
  confidence: z.ZodEnum<["low", "medium", "high"]>;
99
+ scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
+ root: z.ZodString;
101
+ language: z.ZodString;
102
+ status: z.ZodEnum<["confirmed", "indicative", "inconclusive", "absent"]>;
103
+ packages: z.ZodArray<z.ZodObject<{
104
+ name: z.ZodString;
105
+ manifest: z.ZodString;
106
+ workspaceRoot: z.ZodOptional<z.ZodString>;
107
+ }, "strict", z.ZodTypeAny, {
108
+ manifest: string;
109
+ name: string;
110
+ workspaceRoot?: string | undefined;
111
+ }, {
112
+ manifest: string;
113
+ name: string;
114
+ workspaceRoot?: string | undefined;
115
+ }>, "many">;
116
+ capabilities: z.ZodArray<z.ZodString, "many">;
117
+ declaredDatabaseBackends: z.ZodArray<z.ZodString, "many">;
118
+ dependencyEvidence: z.ZodArray<z.ZodObject<{
119
+ file: z.ZodString;
120
+ section: z.ZodString;
121
+ key: z.ZodString;
122
+ name: z.ZodString;
123
+ alias: z.ZodOptional<z.ZodString>;
124
+ category: z.ZodEnum<["normal", "dev", "build"]>;
125
+ optional: z.ZodBoolean;
126
+ features: z.ZodArray<z.ZodString, "many">;
127
+ defaultFeatures: z.ZodBoolean;
128
+ target: z.ZodOptional<z.ZodString>;
129
+ owner: z.ZodString;
130
+ resolution: z.ZodEnum<["declared", "workspace-inherited", "unresolved"]>;
131
+ }, "strict", z.ZodTypeAny, {
132
+ file: string;
133
+ section: string;
134
+ key: string;
135
+ name: string;
136
+ category: "normal" | "dev" | "build";
137
+ optional: boolean;
138
+ features: string[];
139
+ defaultFeatures: boolean;
140
+ owner: string;
141
+ resolution: "declared" | "workspace-inherited" | "unresolved";
142
+ alias?: string | undefined;
143
+ target?: string | undefined;
144
+ }, {
145
+ file: string;
146
+ section: string;
147
+ key: string;
148
+ name: string;
149
+ category: "normal" | "dev" | "build";
150
+ optional: boolean;
151
+ features: string[];
152
+ defaultFeatures: boolean;
153
+ owner: string;
154
+ resolution: "declared" | "workspace-inherited" | "unresolved";
155
+ alias?: string | undefined;
156
+ target?: string | undefined;
157
+ }>, "many">;
158
+ diagnostics: z.ZodArray<z.ZodObject<{
159
+ code: z.ZodString;
160
+ message: z.ZodString;
161
+ }, "strict", z.ZodTypeAny, {
162
+ code: string;
163
+ message: string;
164
+ }, {
165
+ code: string;
166
+ message: string;
167
+ }>, "many">;
168
+ }, "strict", z.ZodTypeAny, {
169
+ status: "confirmed" | "indicative" | "inconclusive" | "absent";
170
+ diagnostics: {
171
+ code: string;
172
+ message: string;
173
+ }[];
174
+ root: string;
175
+ language: string;
176
+ packages: {
177
+ manifest: string;
178
+ name: string;
179
+ workspaceRoot?: string | undefined;
180
+ }[];
181
+ capabilities: string[];
182
+ declaredDatabaseBackends: string[];
183
+ dependencyEvidence: {
184
+ file: string;
185
+ section: string;
186
+ key: string;
187
+ name: string;
188
+ category: "normal" | "dev" | "build";
189
+ optional: boolean;
190
+ features: string[];
191
+ defaultFeatures: boolean;
192
+ owner: string;
193
+ resolution: "declared" | "workspace-inherited" | "unresolved";
194
+ alias?: string | undefined;
195
+ target?: string | undefined;
196
+ }[];
197
+ }, {
198
+ status: "confirmed" | "indicative" | "inconclusive" | "absent";
199
+ diagnostics: {
200
+ code: string;
201
+ message: string;
202
+ }[];
203
+ root: string;
204
+ language: string;
205
+ packages: {
206
+ manifest: string;
207
+ name: string;
208
+ workspaceRoot?: string | undefined;
209
+ }[];
210
+ capabilities: string[];
211
+ declaredDatabaseBackends: string[];
212
+ dependencyEvidence: {
213
+ file: string;
214
+ section: string;
215
+ key: string;
216
+ name: string;
217
+ category: "normal" | "dev" | "build";
218
+ optional: boolean;
219
+ features: string[];
220
+ defaultFeatures: boolean;
221
+ owner: string;
222
+ resolution: "declared" | "workspace-inherited" | "unresolved";
223
+ alias?: string | undefined;
224
+ target?: string | undefined;
225
+ }[];
226
+ }>, "many">>;
99
227
  }, "strip", z.ZodTypeAny, {
100
- rootDir: string;
101
228
  languages: string[];
229
+ rootDir: string;
102
230
  runtimes: string[];
103
231
  packageManagers: string[];
104
232
  frameworks: string[];
105
233
  signals: string[];
106
234
  confidence: "low" | "medium" | "high";
235
+ scopes?: {
236
+ status: "confirmed" | "indicative" | "inconclusive" | "absent";
237
+ diagnostics: {
238
+ code: string;
239
+ message: string;
240
+ }[];
241
+ root: string;
242
+ language: string;
243
+ packages: {
244
+ manifest: string;
245
+ name: string;
246
+ workspaceRoot?: string | undefined;
247
+ }[];
248
+ capabilities: string[];
249
+ declaredDatabaseBackends: string[];
250
+ dependencyEvidence: {
251
+ file: string;
252
+ section: string;
253
+ key: string;
254
+ name: string;
255
+ category: "normal" | "dev" | "build";
256
+ optional: boolean;
257
+ features: string[];
258
+ defaultFeatures: boolean;
259
+ owner: string;
260
+ resolution: "declared" | "workspace-inherited" | "unresolved";
261
+ alias?: string | undefined;
262
+ target?: string | undefined;
263
+ }[];
264
+ }[] | undefined;
107
265
  }, {
108
- rootDir: string;
109
266
  languages: string[];
267
+ rootDir: string;
110
268
  runtimes: string[];
111
269
  packageManagers: string[];
112
270
  frameworks: string[];
113
271
  signals: string[];
114
272
  confidence: "low" | "medium" | "high";
273
+ scopes?: {
274
+ status: "confirmed" | "indicative" | "inconclusive" | "absent";
275
+ diagnostics: {
276
+ code: string;
277
+ message: string;
278
+ }[];
279
+ root: string;
280
+ language: string;
281
+ packages: {
282
+ manifest: string;
283
+ name: string;
284
+ workspaceRoot?: string | undefined;
285
+ }[];
286
+ capabilities: string[];
287
+ declaredDatabaseBackends: string[];
288
+ dependencyEvidence: {
289
+ file: string;
290
+ section: string;
291
+ key: string;
292
+ name: string;
293
+ category: "normal" | "dev" | "build";
294
+ optional: boolean;
295
+ features: string[];
296
+ defaultFeatures: boolean;
297
+ owner: string;
298
+ resolution: "declared" | "workspace-inherited" | "unresolved";
299
+ alias?: string | undefined;
300
+ target?: string | undefined;
301
+ }[];
302
+ }[] | undefined;
115
303
  }>;
116
304
  /**
117
305
  * Compile check config schema — validates the compileCheck section.
@@ -462,6 +650,7 @@ export declare const ModelConfigSchema: z.ZodObject<{
462
650
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
463
651
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
464
652
  }, "strip", z.ZodTypeAny, {
653
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
465
654
  agents: Record<string, {
466
655
  opencode?: string | undefined;
467
656
  claude?: string | undefined;
@@ -473,10 +662,10 @@ export declare const ModelConfigSchema: z.ZodObject<{
473
662
  muse?: string | undefined;
474
663
  grok?: string | undefined;
475
664
  }>;
476
- target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
477
665
  tools?: Record<string, Record<string, string>> | undefined;
478
666
  permissions?: Record<string, string> | undefined;
479
667
  }, {
668
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
480
669
  agents: Record<string, {
481
670
  opencode?: string | undefined;
482
671
  claude?: string | undefined;
@@ -488,7 +677,6 @@ export declare const ModelConfigSchema: z.ZodObject<{
488
677
  muse?: string | undefined;
489
678
  grok?: string | undefined;
490
679
  }>;
491
- target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
492
680
  tools?: Record<string, Record<string, string>> | undefined;
493
681
  permissions?: Record<string, string> | undefined;
494
682
  }>;
@@ -586,27 +774,27 @@ export declare const TargetCapabilitiesSchema: z.ZodObject<{
586
774
  }>;
587
775
  }, "strip", z.ZodTypeAny, {
588
776
  target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
589
- invocation: "colon" | "hyphen" | "dollar";
590
- commandFormat: "markdown" | "toml" | "skill";
591
- contextFile: string;
592
777
  capabilities: {
593
778
  council: boolean;
594
779
  subagents: boolean;
595
780
  hooks: boolean;
596
781
  mcp: boolean;
597
782
  };
598
- subagentInvocationStyle?: "task-tool" | "adopt-role" | "invoke-with-context" | undefined;
599
- }, {
600
- target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
601
783
  invocation: "colon" | "hyphen" | "dollar";
602
784
  commandFormat: "markdown" | "toml" | "skill";
603
785
  contextFile: string;
786
+ subagentInvocationStyle?: "task-tool" | "adopt-role" | "invoke-with-context" | undefined;
787
+ }, {
788
+ target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
604
789
  capabilities: {
605
790
  council: boolean;
606
791
  subagents: boolean;
607
792
  hooks: boolean;
608
793
  mcp: boolean;
609
794
  };
795
+ invocation: "colon" | "hyphen" | "dollar";
796
+ commandFormat: "markdown" | "toml" | "skill";
797
+ contextFile: string;
610
798
  subagentInvocationStyle?: "task-tool" | "adopt-role" | "invoke-with-context" | undefined;
611
799
  }>;
612
800
  export type TargetCapabilities = z.infer<typeof TargetCapabilitiesSchema>;
@@ -713,8 +901,8 @@ export declare const AgentContractSchema: z.ZodObject<{
713
901
  focus: string[];
714
902
  }[]>;
715
903
  }, "strip", z.ZodTypeAny, {
716
- name: string;
717
904
  version: string;
905
+ name: string;
718
906
  description: string;
719
907
  outputContract: string;
720
908
  agents: {
@@ -725,8 +913,8 @@ export declare const AgentContractSchema: z.ZodObject<{
725
913
  focus: string[];
726
914
  }[];
727
915
  }, {
728
- name: string;
729
916
  version: string;
917
+ name: string;
730
918
  description: string;
731
919
  outputContract: string;
732
920
  agents: {
@@ -751,8 +939,8 @@ export declare const AgentContractSchema: z.ZodObject<{
751
939
  renderHints: z.ZodOptional<z.ZodRecord<z.ZodEnum<["claude", "opencode", "codex", "gemini", "cursor", "agy"]>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
752
940
  }, "strip", z.ZodTypeAny, {
753
941
  council: {
754
- name: string;
755
942
  version: string;
943
+ name: string;
756
944
  description: string;
757
945
  outputContract: string;
758
946
  agents: {
@@ -771,8 +959,8 @@ export declare const AgentContractSchema: z.ZodObject<{
771
959
  renderHints?: Partial<Record<"opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy", Record<string, unknown>>> | undefined;
772
960
  }, {
773
961
  council: {
774
- name: string;
775
962
  version: string;
963
+ name: string;
776
964
  description: string;
777
965
  outputContract: string;
778
966
  agents: {
@@ -800,13 +988,13 @@ export declare const CouncilFindingSchema: z.ZodObject<{
800
988
  agentId: z.ZodString;
801
989
  }, "strip", z.ZodTypeAny, {
802
990
  message: string;
803
- category: string;
804
991
  severity: "info" | "warning" | "critical";
992
+ category: string;
805
993
  agentId: string;
806
994
  }, {
807
995
  message: string;
808
- category: string;
809
996
  severity: "info" | "warning" | "critical";
997
+ category: string;
810
998
  agentId: string;
811
999
  }>;
812
1000
  /**
@@ -826,13 +1014,13 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
826
1014
  agentId: z.ZodString;
827
1015
  }, "strip", z.ZodTypeAny, {
828
1016
  message: string;
829
- category: string;
830
1017
  severity: "info" | "warning" | "critical";
1018
+ category: string;
831
1019
  agentId: string;
832
1020
  }, {
833
1021
  message: string;
834
- category: string;
835
1022
  severity: "info" | "warning" | "critical";
1023
+ category: string;
836
1024
  agentId: string;
837
1025
  }>, "many">;
838
1026
  summary: z.ZodString;
@@ -845,8 +1033,8 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
845
1033
  securityVeto: boolean;
846
1034
  findings: {
847
1035
  message: string;
848
- category: string;
849
1036
  severity: "info" | "warning" | "critical";
1037
+ category: string;
850
1038
  agentId: string;
851
1039
  }[];
852
1040
  summary: string;
@@ -860,8 +1048,8 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
860
1048
  securityVeto: boolean;
861
1049
  findings: {
862
1050
  message: string;
863
- category: string;
864
1051
  severity: "info" | "warning" | "critical";
1052
+ category: string;
865
1053
  agentId: string;
866
1054
  }[];
867
1055
  summary: string;
@@ -948,13 +1136,13 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
948
1136
  agentId: z.ZodString;
949
1137
  }, "strip", z.ZodTypeAny, {
950
1138
  message: string;
951
- category: string;
952
1139
  severity: "info" | "warning" | "critical";
1140
+ category: string;
953
1141
  agentId: string;
954
1142
  }, {
955
1143
  message: string;
956
- category: string;
957
1144
  severity: "info" | "warning" | "critical";
1145
+ category: string;
958
1146
  agentId: string;
959
1147
  }>, "many">;
960
1148
  summary: z.ZodString;
@@ -972,13 +1160,13 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
972
1160
  agentId: z.ZodString;
973
1161
  }, "strip", z.ZodTypeAny, {
974
1162
  message: string;
975
- category: string;
976
1163
  severity: "info" | "warning" | "critical";
1164
+ category: string;
977
1165
  agentId: string;
978
1166
  }, {
979
1167
  message: string;
980
- category: string;
981
1168
  severity: "info" | "warning" | "critical";
1169
+ category: string;
982
1170
  agentId: string;
983
1171
  }>, "many">;
984
1172
  summary: z.ZodString;
@@ -991,8 +1179,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
991
1179
  securityVeto: boolean;
992
1180
  findings: {
993
1181
  message: string;
994
- category: string;
995
1182
  severity: "info" | "warning" | "critical";
1183
+ category: string;
996
1184
  agentId: string;
997
1185
  }[];
998
1186
  summary: string;
@@ -1006,8 +1194,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
1006
1194
  securityVeto: boolean;
1007
1195
  findings: {
1008
1196
  message: string;
1009
- category: string;
1010
1197
  severity: "info" | "warning" | "critical";
1198
+ category: string;
1011
1199
  agentId: string;
1012
1200
  }[];
1013
1201
  summary: string;
@@ -1018,8 +1206,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
1018
1206
  status: "APPROVED" | "REJECTED" | "ESCALATED";
1019
1207
  findings: {
1020
1208
  message: string;
1021
- category: string;
1022
1209
  severity: "info" | "warning" | "critical";
1210
+ category: string;
1023
1211
  agentId: string;
1024
1212
  }[];
1025
1213
  summary: string;
@@ -1036,8 +1224,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
1036
1224
  securityVeto: boolean;
1037
1225
  findings: {
1038
1226
  message: string;
1039
- category: string;
1040
1227
  severity: "info" | "warning" | "critical";
1228
+ category: string;
1041
1229
  agentId: string;
1042
1230
  }[];
1043
1231
  summary: string;
@@ -1051,8 +1239,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
1051
1239
  status: "APPROVED" | "REJECTED" | "ESCALATED";
1052
1240
  findings: {
1053
1241
  message: string;
1054
- category: string;
1055
1242
  severity: "info" | "warning" | "critical";
1243
+ category: string;
1056
1244
  agentId: string;
1057
1245
  }[];
1058
1246
  summary: string;
@@ -1069,8 +1257,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
1069
1257
  securityVeto: boolean;
1070
1258
  findings: {
1071
1259
  message: string;
1072
- category: string;
1073
1260
  severity: "info" | "warning" | "critical";
1261
+ category: string;
1074
1262
  agentId: string;
1075
1263
  }[];
1076
1264
  summary: string;
@@ -1175,8 +1363,8 @@ export declare const SentryWebhookSchema: z.ZodObject<{
1175
1363
  lineNo: number;
1176
1364
  colNo?: number | undefined;
1177
1365
  }[];
1178
- filename?: string | undefined;
1179
1366
  environment?: string | undefined;
1367
+ filename?: string | undefined;
1180
1368
  release?: string | undefined;
1181
1369
  }, {
1182
1370
  issueId: string;
@@ -1189,8 +1377,8 @@ export declare const SentryWebhookSchema: z.ZodObject<{
1189
1377
  lineNo: number;
1190
1378
  colNo?: number | undefined;
1191
1379
  }[];
1192
- filename?: string | undefined;
1193
1380
  environment?: string | undefined;
1381
+ filename?: string | undefined;
1194
1382
  release?: string | undefined;
1195
1383
  }>;
1196
1384
  export type SentryWebhookInput = z.infer<typeof SentryWebhookSchema>;
@@ -1206,16 +1394,16 @@ export declare const MemoryPointerSchema: z.ZodObject<{
1206
1394
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1207
1395
  }, "strip", z.ZodTypeAny, {
1208
1396
  id: number;
1397
+ file: string;
1209
1398
  summary: string;
1210
1399
  topic_key: string;
1211
- file: string;
1212
1400
  timestamp: string;
1213
1401
  tags: string[];
1214
1402
  }, {
1215
1403
  id: number;
1404
+ file: string;
1216
1405
  summary: string;
1217
1406
  topic_key: string;
1218
- file: string;
1219
1407
  timestamp: string;
1220
1408
  tags?: string[] | undefined;
1221
1409
  }>;
@@ -1233,16 +1421,16 @@ export declare const MemoryIndexSchema: z.ZodObject<{
1233
1421
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1234
1422
  }, "strip", z.ZodTypeAny, {
1235
1423
  id: number;
1424
+ file: string;
1236
1425
  summary: string;
1237
1426
  topic_key: string;
1238
- file: string;
1239
1427
  timestamp: string;
1240
1428
  tags: string[];
1241
1429
  }, {
1242
1430
  id: number;
1431
+ file: string;
1243
1432
  summary: string;
1244
1433
  topic_key: string;
1245
- file: string;
1246
1434
  timestamp: string;
1247
1435
  tags?: string[] | undefined;
1248
1436
  }>, "many">;
@@ -1250,9 +1438,9 @@ export declare const MemoryIndexSchema: z.ZodObject<{
1250
1438
  version: 1;
1251
1439
  pointers: {
1252
1440
  id: number;
1441
+ file: string;
1253
1442
  summary: string;
1254
1443
  topic_key: string;
1255
- file: string;
1256
1444
  timestamp: string;
1257
1445
  tags: string[];
1258
1446
  }[];
@@ -1260,9 +1448,9 @@ export declare const MemoryIndexSchema: z.ZodObject<{
1260
1448
  version: 1;
1261
1449
  pointers: {
1262
1450
  id: number;
1451
+ file: string;
1263
1452
  summary: string;
1264
1453
  topic_key: string;
1265
- file: string;
1266
1454
  timestamp: string;
1267
1455
  tags?: string[] | undefined;
1268
1456
  }[];
@@ -1398,10 +1586,10 @@ export declare const KnowledgeEntitySchema: z.ZodObject<{
1398
1586
  data: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1399
1587
  }, "strip", z.ZodTypeAny, {
1400
1588
  id: string;
1401
- type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1589
+ type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
1590
+ source: string;
1402
1591
  name: string;
1403
1592
  confidence: "low" | "medium" | "high";
1404
- source: string;
1405
1593
  relations: {
1406
1594
  targetId: string;
1407
1595
  relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
@@ -1410,10 +1598,10 @@ export declare const KnowledgeEntitySchema: z.ZodObject<{
1410
1598
  version?: string | undefined;
1411
1599
  }, {
1412
1600
  id: string;
1413
- type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1601
+ type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
1602
+ source: string;
1414
1603
  name: string;
1415
1604
  confidence: "low" | "medium" | "high";
1416
- source: string;
1417
1605
  version?: string | undefined;
1418
1606
  relations?: {
1419
1607
  targetId: string;
@@ -1434,8 +1622,8 @@ export declare const DecisionSchema: z.ZodObject<{
1434
1622
  source: z.ZodOptional<z.ZodString>;
1435
1623
  }, "strip", z.ZodTypeAny, {
1436
1624
  id: string;
1437
- context: string;
1438
1625
  date: string;
1626
+ context: string;
1439
1627
  alternatives: string[];
1440
1628
  chosenOption: string;
1441
1629
  rationale: string;
@@ -1445,8 +1633,8 @@ export declare const DecisionSchema: z.ZodObject<{
1445
1633
  source?: string | undefined;
1446
1634
  }, {
1447
1635
  id: string;
1448
- context: string;
1449
1636
  date: string;
1637
+ context: string;
1450
1638
  chosenOption: string;
1451
1639
  rationale: string;
1452
1640
  source?: string | undefined;
@@ -1469,9 +1657,9 @@ export declare const EvidenceSchema: z.ZodObject<{
1469
1657
  }, "strip", z.ZodTypeAny, {
1470
1658
  id: string;
1471
1659
  type: string;
1660
+ source: string;
1472
1661
  confidence: number;
1473
1662
  timestamp: string;
1474
- source: string;
1475
1663
  summary?: string | undefined;
1476
1664
  data?: Record<string, unknown> | undefined;
1477
1665
  relatedTask?: string | undefined;
@@ -1480,9 +1668,9 @@ export declare const EvidenceSchema: z.ZodObject<{
1480
1668
  }, {
1481
1669
  id: string;
1482
1670
  type: string;
1671
+ source: string;
1483
1672
  confidence: number;
1484
1673
  timestamp: string;
1485
- source: string;
1486
1674
  summary?: string | undefined;
1487
1675
  data?: Record<string, unknown> | undefined;
1488
1676
  relatedTask?: string | undefined;
@@ -1535,9 +1723,9 @@ export declare const CanonicalTaskCardSchema: z.ZodObject<{
1535
1723
  authorization: z.ZodOptional<z.ZodString>;
1536
1724
  }, "strip", z.ZodTypeAny, {
1537
1725
  id: string;
1538
- context: string;
1539
1726
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
1540
1727
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
1728
+ context: string;
1541
1729
  title: string;
1542
1730
  risk: "low" | "medium" | "high";
1543
1731
  objective: string;
@@ -1559,9 +1747,9 @@ export declare const CanonicalTaskCardSchema: z.ZodObject<{
1559
1747
  authorization?: string | undefined;
1560
1748
  }, {
1561
1749
  id: string;
1562
- context: string;
1563
1750
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
1564
1751
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
1752
+ context: string;
1565
1753
  title: string;
1566
1754
  risk: "low" | "medium" | "high";
1567
1755
  objective: string;
@@ -1592,19 +1780,19 @@ export declare const ProductGraphNodeSchema: z.ZodObject<{
1592
1780
  version: z.ZodOptional<z.ZodString>;
1593
1781
  }, "strip", z.ZodTypeAny, {
1594
1782
  id: string;
1595
- type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1783
+ type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
1596
1784
  name: string;
1597
1785
  data: Record<string, unknown>;
1598
1786
  version?: string | undefined;
1599
- confidence?: "low" | "medium" | "high" | undefined;
1600
1787
  source?: string | undefined;
1788
+ confidence?: "low" | "medium" | "high" | undefined;
1601
1789
  }, {
1602
1790
  id: string;
1603
- type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1791
+ type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
1604
1792
  name: string;
1605
1793
  version?: string | undefined;
1606
- confidence?: "low" | "medium" | "high" | undefined;
1607
1794
  source?: string | undefined;
1795
+ confidence?: "low" | "medium" | "high" | undefined;
1608
1796
  data?: Record<string, unknown> | undefined;
1609
1797
  }>;
1610
1798
  export declare const ProductGraphEdgeSchema: z.ZodObject<{
@@ -1634,19 +1822,19 @@ export declare const ProductGraphSchema: z.ZodObject<{
1634
1822
  version: z.ZodOptional<z.ZodString>;
1635
1823
  }, "strip", z.ZodTypeAny, {
1636
1824
  id: string;
1637
- type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1825
+ type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
1638
1826
  name: string;
1639
1827
  data: Record<string, unknown>;
1640
1828
  version?: string | undefined;
1641
- confidence?: "low" | "medium" | "high" | undefined;
1642
1829
  source?: string | undefined;
1830
+ confidence?: "low" | "medium" | "high" | undefined;
1643
1831
  }, {
1644
1832
  id: string;
1645
- type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1833
+ type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
1646
1834
  name: string;
1647
1835
  version?: string | undefined;
1648
- confidence?: "low" | "medium" | "high" | undefined;
1649
1836
  source?: string | undefined;
1837
+ confidence?: "low" | "medium" | "high" | undefined;
1650
1838
  data?: Record<string, unknown> | undefined;
1651
1839
  }>, "many">;
1652
1840
  edges: z.ZodArray<z.ZodObject<{
@@ -1669,12 +1857,12 @@ export declare const ProductGraphSchema: z.ZodObject<{
1669
1857
  productName: string;
1670
1858
  nodes: {
1671
1859
  id: string;
1672
- type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1860
+ type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
1673
1861
  name: string;
1674
1862
  data: Record<string, unknown>;
1675
1863
  version?: string | undefined;
1676
- confidence?: "low" | "medium" | "high" | undefined;
1677
1864
  source?: string | undefined;
1865
+ confidence?: "low" | "medium" | "high" | undefined;
1678
1866
  }[];
1679
1867
  edges: {
1680
1868
  relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
@@ -1688,11 +1876,11 @@ export declare const ProductGraphSchema: z.ZodObject<{
1688
1876
  productName: string;
1689
1877
  nodes: {
1690
1878
  id: string;
1691
- type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric" | "task" | "evidence";
1879
+ type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
1692
1880
  name: string;
1693
1881
  version?: string | undefined;
1694
- confidence?: "low" | "medium" | "high" | undefined;
1695
1882
  source?: string | undefined;
1883
+ confidence?: "low" | "medium" | "high" | undefined;
1696
1884
  data?: Record<string, unknown> | undefined;
1697
1885
  }[];
1698
1886
  edges: {
@@ -1744,12 +1932,12 @@ export declare const OperationalStateSchema: z.ZodObject<{
1744
1932
  reason: z.ZodString;
1745
1933
  since: z.ZodString;
1746
1934
  }, "strip", z.ZodTypeAny, {
1747
- taskId: string;
1748
1935
  reason: string;
1936
+ taskId: string;
1749
1937
  since: string;
1750
1938
  }, {
1751
- taskId: string;
1752
1939
  reason: string;
1940
+ taskId: string;
1753
1941
  since: string;
1754
1942
  }>, "many">>;
1755
1943
  sprintFocus: z.ZodOptional<z.ZodString>;
@@ -1760,8 +1948,8 @@ export declare const OperationalStateSchema: z.ZodObject<{
1760
1948
  activeAgents: string[];
1761
1949
  activeTaskIds: string[];
1762
1950
  blockers: {
1763
- taskId: string;
1764
1951
  reason: string;
1952
+ taskId: string;
1765
1953
  since: string;
1766
1954
  }[];
1767
1955
  sprintFocus?: string | undefined;
@@ -1771,8 +1959,8 @@ export declare const OperationalStateSchema: z.ZodObject<{
1771
1959
  activeAgents?: string[] | undefined;
1772
1960
  activeTaskIds?: string[] | undefined;
1773
1961
  blockers?: {
1774
- taskId: string;
1775
1962
  reason: string;
1963
+ taskId: string;
1776
1964
  since: string;
1777
1965
  }[] | undefined;
1778
1966
  sprintFocus?: string | undefined;
@@ -1944,14 +2132,14 @@ export declare const BacklogItemSchema: z.ZodObject<{
1944
2132
  lastUpdate: z.ZodOptional<z.ZodString>;
1945
2133
  }, "strip", z.ZodTypeAny, {
1946
2134
  id: string;
1947
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2135
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
1948
2136
  type: "feature" | "refactor" | "bug" | "tech-debt";
2137
+ scope: string;
1949
2138
  description: string;
1950
2139
  title: string;
1951
2140
  priority: "P0" | "P1" | "P2" | "P3";
1952
2141
  acceptanceCriteria: string[];
1953
2142
  dependencies: string[];
1954
- scope: string;
1955
2143
  outOfScope: string;
1956
2144
  progress: number;
1957
2145
  owner?: string | undefined;
@@ -1962,16 +2150,16 @@ export declare const BacklogItemSchema: z.ZodObject<{
1962
2150
  lastUpdate?: string | undefined;
1963
2151
  }, {
1964
2152
  id: string;
1965
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2153
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
1966
2154
  type: "feature" | "refactor" | "bug" | "tech-debt";
2155
+ scope: string;
1967
2156
  description: string;
1968
2157
  title: string;
1969
2158
  priority: "P0" | "P1" | "P2" | "P3";
1970
2159
  acceptanceCriteria: string[];
1971
- scope: string;
1972
2160
  progress: number;
1973
- dependencies?: string[] | undefined;
1974
2161
  owner?: string | undefined;
2162
+ dependencies?: string[] | undefined;
1975
2163
  outOfScope?: string | undefined;
1976
2164
  businessValue?: string | undefined;
1977
2165
  risks?: string | undefined;
@@ -2019,14 +2207,14 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
2019
2207
  lastUpdate: z.ZodOptional<z.ZodString>;
2020
2208
  }, "strip", z.ZodTypeAny, {
2021
2209
  id: string;
2022
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2210
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
2023
2211
  type: "feature" | "refactor" | "bug" | "tech-debt";
2212
+ scope: string;
2024
2213
  description: string;
2025
2214
  title: string;
2026
2215
  priority: "P0" | "P1" | "P2" | "P3";
2027
2216
  acceptanceCriteria: string[];
2028
2217
  dependencies: string[];
2029
- scope: string;
2030
2218
  outOfScope: string;
2031
2219
  progress: number;
2032
2220
  owner?: string | undefined;
@@ -2037,16 +2225,16 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
2037
2225
  lastUpdate?: string | undefined;
2038
2226
  }, {
2039
2227
  id: string;
2040
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2228
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
2041
2229
  type: "feature" | "refactor" | "bug" | "tech-debt";
2230
+ scope: string;
2042
2231
  description: string;
2043
2232
  title: string;
2044
2233
  priority: "P0" | "P1" | "P2" | "P3";
2045
2234
  acceptanceCriteria: string[];
2046
- scope: string;
2047
2235
  progress: number;
2048
- dependencies?: string[] | undefined;
2049
2236
  owner?: string | undefined;
2237
+ dependencies?: string[] | undefined;
2050
2238
  outOfScope?: string | undefined;
2051
2239
  businessValue?: string | undefined;
2052
2240
  risks?: string | undefined;
@@ -2074,14 +2262,14 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
2074
2262
  lastUpdate: z.ZodOptional<z.ZodString>;
2075
2263
  }, "strip", z.ZodTypeAny, {
2076
2264
  id: string;
2077
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2265
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
2078
2266
  type: "feature" | "refactor" | "bug" | "tech-debt";
2267
+ scope: string;
2079
2268
  description: string;
2080
2269
  title: string;
2081
2270
  priority: "P0" | "P1" | "P2" | "P3";
2082
2271
  acceptanceCriteria: string[];
2083
2272
  dependencies: string[];
2084
- scope: string;
2085
2273
  outOfScope: string;
2086
2274
  progress: number;
2087
2275
  owner?: string | undefined;
@@ -2092,16 +2280,16 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
2092
2280
  lastUpdate?: string | undefined;
2093
2281
  }, {
2094
2282
  id: string;
2095
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2283
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
2096
2284
  type: "feature" | "refactor" | "bug" | "tech-debt";
2285
+ scope: string;
2097
2286
  description: string;
2098
2287
  title: string;
2099
2288
  priority: "P0" | "P1" | "P2" | "P3";
2100
2289
  acceptanceCriteria: string[];
2101
- scope: string;
2102
2290
  progress: number;
2103
- dependencies?: string[] | undefined;
2104
2291
  owner?: string | undefined;
2292
+ dependencies?: string[] | undefined;
2105
2293
  outOfScope?: string | undefined;
2106
2294
  businessValue?: string | undefined;
2107
2295
  risks?: string | undefined;
@@ -2119,14 +2307,14 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
2119
2307
  };
2120
2308
  items: {
2121
2309
  id: string;
2122
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2310
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
2123
2311
  type: "feature" | "refactor" | "bug" | "tech-debt";
2312
+ scope: string;
2124
2313
  description: string;
2125
2314
  title: string;
2126
2315
  priority: "P0" | "P1" | "P2" | "P3";
2127
2316
  acceptanceCriteria: string[];
2128
2317
  dependencies: string[];
2129
- scope: string;
2130
2318
  outOfScope: string;
2131
2319
  progress: number;
2132
2320
  owner?: string | undefined;
@@ -2138,14 +2326,14 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
2138
2326
  }[];
2139
2327
  archive: {
2140
2328
  id: string;
2141
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2329
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
2142
2330
  type: "feature" | "refactor" | "bug" | "tech-debt";
2331
+ scope: string;
2143
2332
  description: string;
2144
2333
  title: string;
2145
2334
  priority: "P0" | "P1" | "P2" | "P3";
2146
2335
  acceptanceCriteria: string[];
2147
2336
  dependencies: string[];
2148
- scope: string;
2149
2337
  outOfScope: string;
2150
2338
  progress: number;
2151
2339
  owner?: string | undefined;
@@ -2165,16 +2353,16 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
2165
2353
  };
2166
2354
  items: {
2167
2355
  id: string;
2168
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2356
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
2169
2357
  type: "feature" | "refactor" | "bug" | "tech-debt";
2358
+ scope: string;
2170
2359
  description: string;
2171
2360
  title: string;
2172
2361
  priority: "P0" | "P1" | "P2" | "P3";
2173
2362
  acceptanceCriteria: string[];
2174
- scope: string;
2175
2363
  progress: number;
2176
- dependencies?: string[] | undefined;
2177
2364
  owner?: string | undefined;
2365
+ dependencies?: string[] | undefined;
2178
2366
  outOfScope?: string | undefined;
2179
2367
  businessValue?: string | undefined;
2180
2368
  risks?: string | undefined;
@@ -2184,16 +2372,16 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
2184
2372
  }[];
2185
2373
  archive?: {
2186
2374
  id: string;
2187
- status: "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "BLOCKED" | "REVIEW" | "DONE";
2375
+ status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
2188
2376
  type: "feature" | "refactor" | "bug" | "tech-debt";
2377
+ scope: string;
2189
2378
  description: string;
2190
2379
  title: string;
2191
2380
  priority: "P0" | "P1" | "P2" | "P3";
2192
2381
  acceptanceCriteria: string[];
2193
- scope: string;
2194
2382
  progress: number;
2195
- dependencies?: string[] | undefined;
2196
2383
  owner?: string | undefined;
2384
+ dependencies?: string[] | undefined;
2197
2385
  outOfScope?: string | undefined;
2198
2386
  businessValue?: string | undefined;
2199
2387
  risks?: string | undefined;
@@ -3149,15 +3337,15 @@ export declare const ExecutionContextSchema: z.ZodObject<{
3149
3337
  domains: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3150
3338
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3151
3339
  }, "strip", z.ZodTypeAny, {
3152
- confidence: "low" | "medium" | "high";
3153
3340
  source: "detect" | "graphify" | "manual" | "product-graph";
3154
- domains?: unknown[] | undefined;
3341
+ confidence: "low" | "medium" | "high";
3155
3342
  rules?: string[] | undefined;
3343
+ domains?: unknown[] | undefined;
3156
3344
  }, {
3157
- confidence: "low" | "medium" | "high";
3158
3345
  source: "detect" | "graphify" | "manual" | "product-graph";
3159
- domains?: unknown[] | undefined;
3346
+ confidence: "low" | "medium" | "high";
3160
3347
  rules?: string[] | undefined;
3348
+ domains?: unknown[] | undefined;
3161
3349
  }>;
3162
3350
  policies: z.ZodObject<{
3163
3351
  architecture: z.ZodString;
@@ -3177,6 +3365,352 @@ export declare const ExecutionContextSchema: z.ZodObject<{
3177
3365
  }>;
3178
3366
  currentPhase: z.ZodOptional<z.ZodString>;
3179
3367
  outputSchema: z.ZodString;
3368
+ scopedContext: z.ZodOptional<z.ZodObject<{
3369
+ manifest: z.ZodObject<{
3370
+ schemaVersion: z.ZodLiteral<1>;
3371
+ scope: z.ZodObject<{
3372
+ files: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3373
+ role: z.ZodString;
3374
+ }, "strict", z.ZodTypeAny, {
3375
+ files: string[];
3376
+ role: string;
3377
+ }, {
3378
+ files: string[];
3379
+ role: string;
3380
+ }>;
3381
+ profiles: z.ZodArray<z.ZodUnknown, "many">;
3382
+ skills: z.ZodArray<z.ZodObject<{
3383
+ id: z.ZodString;
3384
+ version: z.ZodString;
3385
+ }, "strict", z.ZodTypeAny, {
3386
+ id: string;
3387
+ version: string;
3388
+ }, {
3389
+ id: string;
3390
+ version: string;
3391
+ }>, "many">;
3392
+ rules: z.ZodArray<z.ZodObject<{
3393
+ id: z.ZodString;
3394
+ kind: z.ZodEnum<["default", "invariant"]>;
3395
+ originClass: z.ZodEnum<["engine", "stack", "repository", "task"]>;
3396
+ scopeRoot: z.ZodString;
3397
+ depth: z.ZodNumber;
3398
+ sourcePath: z.ZodString;
3399
+ contentHash: z.ZodString;
3400
+ appliesTo: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3401
+ }, "strict", z.ZodTypeAny, {
3402
+ id: string;
3403
+ kind: "default" | "invariant";
3404
+ scopeRoot: string;
3405
+ originClass: "engine" | "stack" | "repository" | "task";
3406
+ depth: number;
3407
+ sourcePath: string;
3408
+ contentHash: string;
3409
+ appliesTo: string[];
3410
+ }, {
3411
+ id: string;
3412
+ kind: "default" | "invariant";
3413
+ scopeRoot: string;
3414
+ originClass: "engine" | "stack" | "repository" | "task";
3415
+ depth: number;
3416
+ sourcePath: string;
3417
+ contentHash: string;
3418
+ appliesTo: string[];
3419
+ }>, "many">;
3420
+ overrides: z.ZodArray<z.ZodObject<{
3421
+ id: z.ZodString;
3422
+ winner: z.ZodString;
3423
+ loser: z.ZodString;
3424
+ }, "strict", z.ZodTypeAny, {
3425
+ id: string;
3426
+ winner: string;
3427
+ loser: string;
3428
+ }, {
3429
+ id: string;
3430
+ winner: string;
3431
+ loser: string;
3432
+ }>, "many">;
3433
+ omittedReferences: z.ZodArray<z.ZodObject<{
3434
+ ref: z.ZodString;
3435
+ reason: z.ZodString;
3436
+ }, "strict", z.ZodTypeAny, {
3437
+ reason: string;
3438
+ ref: string;
3439
+ }, {
3440
+ reason: string;
3441
+ ref: string;
3442
+ }>, "many">;
3443
+ diagnostics: z.ZodArray<z.ZodObject<{
3444
+ code: z.ZodString;
3445
+ severity: z.ZodEnum<["info", "warning", "blocking"]>;
3446
+ message: z.ZodString;
3447
+ }, "strict", z.ZodTypeAny, {
3448
+ code: string;
3449
+ message: string;
3450
+ severity: "info" | "warning" | "blocking";
3451
+ }, {
3452
+ code: string;
3453
+ message: string;
3454
+ severity: "info" | "warning" | "blocking";
3455
+ }>, "many">;
3456
+ budget: z.ZodObject<{
3457
+ maxBytes: z.ZodNumber;
3458
+ usedBytes: z.ZodNumber;
3459
+ }, "strict", z.ZodTypeAny, {
3460
+ maxBytes: number;
3461
+ usedBytes: number;
3462
+ }, {
3463
+ maxBytes: number;
3464
+ usedBytes: number;
3465
+ }>;
3466
+ hash: z.ZodString;
3467
+ }, "strict", z.ZodTypeAny, {
3468
+ schemaVersion: 1;
3469
+ rules: {
3470
+ id: string;
3471
+ kind: "default" | "invariant";
3472
+ scopeRoot: string;
3473
+ originClass: "engine" | "stack" | "repository" | "task";
3474
+ depth: number;
3475
+ sourcePath: string;
3476
+ contentHash: string;
3477
+ appliesTo: string[];
3478
+ }[];
3479
+ scope: {
3480
+ files: string[];
3481
+ role: string;
3482
+ };
3483
+ profiles: unknown[];
3484
+ skills: {
3485
+ id: string;
3486
+ version: string;
3487
+ }[];
3488
+ overrides: {
3489
+ id: string;
3490
+ winner: string;
3491
+ loser: string;
3492
+ }[];
3493
+ omittedReferences: {
3494
+ reason: string;
3495
+ ref: string;
3496
+ }[];
3497
+ diagnostics: {
3498
+ code: string;
3499
+ message: string;
3500
+ severity: "info" | "warning" | "blocking";
3501
+ }[];
3502
+ budget: {
3503
+ maxBytes: number;
3504
+ usedBytes: number;
3505
+ };
3506
+ hash: string;
3507
+ }, {
3508
+ schemaVersion: 1;
3509
+ rules: {
3510
+ id: string;
3511
+ kind: "default" | "invariant";
3512
+ scopeRoot: string;
3513
+ originClass: "engine" | "stack" | "repository" | "task";
3514
+ depth: number;
3515
+ sourcePath: string;
3516
+ contentHash: string;
3517
+ appliesTo: string[];
3518
+ }[];
3519
+ scope: {
3520
+ files: string[];
3521
+ role: string;
3522
+ };
3523
+ profiles: unknown[];
3524
+ skills: {
3525
+ id: string;
3526
+ version: string;
3527
+ }[];
3528
+ overrides: {
3529
+ id: string;
3530
+ winner: string;
3531
+ loser: string;
3532
+ }[];
3533
+ omittedReferences: {
3534
+ reason: string;
3535
+ ref: string;
3536
+ }[];
3537
+ diagnostics: {
3538
+ code: string;
3539
+ message: string;
3540
+ severity: "info" | "warning" | "blocking";
3541
+ }[];
3542
+ budget: {
3543
+ maxBytes: number;
3544
+ usedBytes: number;
3545
+ };
3546
+ hash: string;
3547
+ }>;
3548
+ view: z.ZodObject<{
3549
+ hash: z.ZodString;
3550
+ rules: z.ZodArray<z.ZodObject<{
3551
+ id: z.ZodString;
3552
+ kind: z.ZodEnum<["default", "invariant"]>;
3553
+ trigger: z.ZodString;
3554
+ action: z.ZodString;
3555
+ exceptions: z.ZodString;
3556
+ verify: z.ZodArray<z.ZodString, "many">;
3557
+ appliesTo: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3558
+ source: z.ZodString;
3559
+ }, "strict", z.ZodTypeAny, {
3560
+ id: string;
3561
+ kind: "default" | "invariant";
3562
+ trigger: string;
3563
+ action: string;
3564
+ exceptions: string;
3565
+ appliesTo: string[];
3566
+ verify: string[];
3567
+ source: string;
3568
+ }, {
3569
+ id: string;
3570
+ kind: "default" | "invariant";
3571
+ trigger: string;
3572
+ action: string;
3573
+ exceptions: string;
3574
+ appliesTo: string[];
3575
+ verify: string[];
3576
+ source: string;
3577
+ }>, "many">;
3578
+ }, "strict", z.ZodTypeAny, {
3579
+ rules: {
3580
+ id: string;
3581
+ kind: "default" | "invariant";
3582
+ trigger: string;
3583
+ action: string;
3584
+ exceptions: string;
3585
+ appliesTo: string[];
3586
+ verify: string[];
3587
+ source: string;
3588
+ }[];
3589
+ hash: string;
3590
+ }, {
3591
+ rules: {
3592
+ id: string;
3593
+ kind: "default" | "invariant";
3594
+ trigger: string;
3595
+ action: string;
3596
+ exceptions: string;
3597
+ appliesTo: string[];
3598
+ verify: string[];
3599
+ source: string;
3600
+ }[];
3601
+ hash: string;
3602
+ }>;
3603
+ }, "strict", z.ZodTypeAny, {
3604
+ manifest: {
3605
+ schemaVersion: 1;
3606
+ rules: {
3607
+ id: string;
3608
+ kind: "default" | "invariant";
3609
+ scopeRoot: string;
3610
+ originClass: "engine" | "stack" | "repository" | "task";
3611
+ depth: number;
3612
+ sourcePath: string;
3613
+ contentHash: string;
3614
+ appliesTo: string[];
3615
+ }[];
3616
+ scope: {
3617
+ files: string[];
3618
+ role: string;
3619
+ };
3620
+ profiles: unknown[];
3621
+ skills: {
3622
+ id: string;
3623
+ version: string;
3624
+ }[];
3625
+ overrides: {
3626
+ id: string;
3627
+ winner: string;
3628
+ loser: string;
3629
+ }[];
3630
+ omittedReferences: {
3631
+ reason: string;
3632
+ ref: string;
3633
+ }[];
3634
+ diagnostics: {
3635
+ code: string;
3636
+ message: string;
3637
+ severity: "info" | "warning" | "blocking";
3638
+ }[];
3639
+ budget: {
3640
+ maxBytes: number;
3641
+ usedBytes: number;
3642
+ };
3643
+ hash: string;
3644
+ };
3645
+ view: {
3646
+ rules: {
3647
+ id: string;
3648
+ kind: "default" | "invariant";
3649
+ trigger: string;
3650
+ action: string;
3651
+ exceptions: string;
3652
+ appliesTo: string[];
3653
+ verify: string[];
3654
+ source: string;
3655
+ }[];
3656
+ hash: string;
3657
+ };
3658
+ }, {
3659
+ manifest: {
3660
+ schemaVersion: 1;
3661
+ rules: {
3662
+ id: string;
3663
+ kind: "default" | "invariant";
3664
+ scopeRoot: string;
3665
+ originClass: "engine" | "stack" | "repository" | "task";
3666
+ depth: number;
3667
+ sourcePath: string;
3668
+ contentHash: string;
3669
+ appliesTo: string[];
3670
+ }[];
3671
+ scope: {
3672
+ files: string[];
3673
+ role: string;
3674
+ };
3675
+ profiles: unknown[];
3676
+ skills: {
3677
+ id: string;
3678
+ version: string;
3679
+ }[];
3680
+ overrides: {
3681
+ id: string;
3682
+ winner: string;
3683
+ loser: string;
3684
+ }[];
3685
+ omittedReferences: {
3686
+ reason: string;
3687
+ ref: string;
3688
+ }[];
3689
+ diagnostics: {
3690
+ code: string;
3691
+ message: string;
3692
+ severity: "info" | "warning" | "blocking";
3693
+ }[];
3694
+ budget: {
3695
+ maxBytes: number;
3696
+ usedBytes: number;
3697
+ };
3698
+ hash: string;
3699
+ };
3700
+ view: {
3701
+ rules: {
3702
+ id: string;
3703
+ kind: "default" | "invariant";
3704
+ trigger: string;
3705
+ action: string;
3706
+ exceptions: string;
3707
+ appliesTo: string[];
3708
+ verify: string[];
3709
+ source: string;
3710
+ }[];
3711
+ hash: string;
3712
+ };
3713
+ }>>;
3180
3714
  }, "strip", z.ZodTypeAny, {
3181
3715
  project: {
3182
3716
  name: string;
@@ -3250,10 +3784,10 @@ export declare const ExecutionContextSchema: z.ZodObject<{
3250
3784
  };
3251
3785
  knowledge: Record<string, unknown>;
3252
3786
  ast: {
3253
- confidence: "low" | "medium" | "high";
3254
3787
  source: "detect" | "graphify" | "manual" | "product-graph";
3255
- domains?: unknown[] | undefined;
3788
+ confidence: "low" | "medium" | "high";
3256
3789
  rules?: string[] | undefined;
3790
+ domains?: unknown[] | undefined;
3257
3791
  };
3258
3792
  policies: {
3259
3793
  architecture: string;
@@ -3262,6 +3796,62 @@ export declare const ExecutionContextSchema: z.ZodObject<{
3262
3796
  breakingChanges: string;
3263
3797
  };
3264
3798
  currentPhase?: string | undefined;
3799
+ scopedContext?: {
3800
+ manifest: {
3801
+ schemaVersion: 1;
3802
+ rules: {
3803
+ id: string;
3804
+ kind: "default" | "invariant";
3805
+ scopeRoot: string;
3806
+ originClass: "engine" | "stack" | "repository" | "task";
3807
+ depth: number;
3808
+ sourcePath: string;
3809
+ contentHash: string;
3810
+ appliesTo: string[];
3811
+ }[];
3812
+ scope: {
3813
+ files: string[];
3814
+ role: string;
3815
+ };
3816
+ profiles: unknown[];
3817
+ skills: {
3818
+ id: string;
3819
+ version: string;
3820
+ }[];
3821
+ overrides: {
3822
+ id: string;
3823
+ winner: string;
3824
+ loser: string;
3825
+ }[];
3826
+ omittedReferences: {
3827
+ reason: string;
3828
+ ref: string;
3829
+ }[];
3830
+ diagnostics: {
3831
+ code: string;
3832
+ message: string;
3833
+ severity: "info" | "warning" | "blocking";
3834
+ }[];
3835
+ budget: {
3836
+ maxBytes: number;
3837
+ usedBytes: number;
3838
+ };
3839
+ hash: string;
3840
+ };
3841
+ view: {
3842
+ rules: {
3843
+ id: string;
3844
+ kind: "default" | "invariant";
3845
+ trigger: string;
3846
+ action: string;
3847
+ exceptions: string;
3848
+ appliesTo: string[];
3849
+ verify: string[];
3850
+ source: string;
3851
+ }[];
3852
+ hash: string;
3853
+ };
3854
+ } | undefined;
3265
3855
  }, {
3266
3856
  project: {
3267
3857
  name: string;
@@ -3334,10 +3924,10 @@ export declare const ExecutionContextSchema: z.ZodObject<{
3334
3924
  operation?: string | undefined;
3335
3925
  };
3336
3926
  ast: {
3337
- confidence: "low" | "medium" | "high";
3338
3927
  source: "detect" | "graphify" | "manual" | "product-graph";
3339
- domains?: unknown[] | undefined;
3928
+ confidence: "low" | "medium" | "high";
3340
3929
  rules?: string[] | undefined;
3930
+ domains?: unknown[] | undefined;
3341
3931
  };
3342
3932
  policies: {
3343
3933
  architecture: string;
@@ -3347,6 +3937,62 @@ export declare const ExecutionContextSchema: z.ZodObject<{
3347
3937
  };
3348
3938
  knowledge?: Record<string, unknown> | undefined;
3349
3939
  currentPhase?: string | undefined;
3940
+ scopedContext?: {
3941
+ manifest: {
3942
+ schemaVersion: 1;
3943
+ rules: {
3944
+ id: string;
3945
+ kind: "default" | "invariant";
3946
+ scopeRoot: string;
3947
+ originClass: "engine" | "stack" | "repository" | "task";
3948
+ depth: number;
3949
+ sourcePath: string;
3950
+ contentHash: string;
3951
+ appliesTo: string[];
3952
+ }[];
3953
+ scope: {
3954
+ files: string[];
3955
+ role: string;
3956
+ };
3957
+ profiles: unknown[];
3958
+ skills: {
3959
+ id: string;
3960
+ version: string;
3961
+ }[];
3962
+ overrides: {
3963
+ id: string;
3964
+ winner: string;
3965
+ loser: string;
3966
+ }[];
3967
+ omittedReferences: {
3968
+ reason: string;
3969
+ ref: string;
3970
+ }[];
3971
+ diagnostics: {
3972
+ code: string;
3973
+ message: string;
3974
+ severity: "info" | "warning" | "blocking";
3975
+ }[];
3976
+ budget: {
3977
+ maxBytes: number;
3978
+ usedBytes: number;
3979
+ };
3980
+ hash: string;
3981
+ };
3982
+ view: {
3983
+ rules: {
3984
+ id: string;
3985
+ kind: "default" | "invariant";
3986
+ trigger: string;
3987
+ action: string;
3988
+ exceptions: string;
3989
+ appliesTo: string[];
3990
+ verify: string[];
3991
+ source: string;
3992
+ }[];
3993
+ hash: string;
3994
+ };
3995
+ } | undefined;
3350
3996
  }>;
3351
3997
  export declare const PlannerOutputSchema: z.ZodObject<{
3352
3998
  status: z.ZodEnum<["success", "needs_clarification"]>;
@@ -3359,12 +4005,12 @@ export declare const PlannerOutputSchema: z.ZodObject<{
3359
4005
  severity: z.ZodEnum<["low", "medium", "high"]>;
3360
4006
  }, "strip", z.ZodTypeAny, {
3361
4007
  type: string;
3362
- description: string;
3363
4008
  severity: "low" | "medium" | "high";
4009
+ description: string;
3364
4010
  }, {
3365
4011
  type: string;
3366
- description: string;
3367
4012
  severity: "low" | "medium" | "high";
4013
+ description: string;
3368
4014
  }>, "many">;
3369
4015
  tasks: z.ZodArray<z.ZodObject<{
3370
4016
  id: z.ZodString;
@@ -3399,8 +4045,8 @@ export declare const PlannerOutputSchema: z.ZodObject<{
3399
4045
  }[];
3400
4046
  risks: {
3401
4047
  type: string;
3402
- description: string;
3403
4048
  severity: "low" | "medium" | "high";
4049
+ description: string;
3404
4050
  }[];
3405
4051
  goal: string;
3406
4052
  assumptions: string[];
@@ -3418,8 +4064,8 @@ export declare const PlannerOutputSchema: z.ZodObject<{
3418
4064
  }[];
3419
4065
  risks: {
3420
4066
  type: string;
3421
- description: string;
3422
4067
  severity: "low" | "medium" | "high";
4068
+ description: string;
3423
4069
  }[];
3424
4070
  goal: string;
3425
4071
  assumptions: string[];
@@ -3779,8 +4425,8 @@ export declare const ScorecardRecordSchema: z.ZodObject<{
3779
4425
  }[];
3780
4426
  weightedScore: number;
3781
4427
  createdAt: string;
3782
- model?: string | undefined;
3783
4428
  source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
4429
+ model?: string | undefined;
3784
4430
  backlogId?: string | undefined;
3785
4431
  evaluator?: string | undefined;
3786
4432
  }, {
@@ -3800,9 +4446,9 @@ export declare const ScorecardRecordSchema: z.ZodObject<{
3800
4446
  }[];
3801
4447
  weightedScore: number;
3802
4448
  createdAt: string;
4449
+ source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
3803
4450
  model?: string | undefined;
3804
4451
  findings?: string[] | undefined;
3805
- source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
3806
4452
  backlogId?: string | undefined;
3807
4453
  evaluator?: string | undefined;
3808
4454
  }>;
@@ -3911,9 +4557,9 @@ export declare const DeliveryLedgerSchema: z.ZodObject<{
3911
4557
  authorization: z.ZodOptional<z.ZodString>;
3912
4558
  }, "strip", z.ZodTypeAny, {
3913
4559
  id: string;
3914
- context: string;
3915
4560
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
3916
4561
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
4562
+ context: string;
3917
4563
  title: string;
3918
4564
  risk: "low" | "medium" | "high";
3919
4565
  objective: string;
@@ -3935,9 +4581,9 @@ export declare const DeliveryLedgerSchema: z.ZodObject<{
3935
4581
  authorization?: string | undefined;
3936
4582
  }, {
3937
4583
  id: string;
3938
- context: string;
3939
4584
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
3940
4585
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
4586
+ context: string;
3941
4587
  title: string;
3942
4588
  risk: "low" | "medium" | "high";
3943
4589
  objective: string;
@@ -3981,18 +4627,18 @@ export declare const DeliveryLedgerSchema: z.ZodObject<{
3981
4627
  }, "strip", z.ZodTypeAny, {
3982
4628
  id: string;
3983
4629
  version: 1;
4630
+ evidence: string[];
3984
4631
  tasks: {
3985
4632
  id: string;
3986
4633
  status: "pending" | "done" | "blocked";
3987
4634
  title: string;
3988
4635
  }[];
3989
- evidence: string[];
3990
4636
  updatedAt: string;
3991
4637
  taskCard: {
3992
4638
  id: string;
3993
- context: string;
3994
4639
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
3995
4640
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
4641
+ context: string;
3996
4642
  title: string;
3997
4643
  risk: "low" | "medium" | "high";
3998
4644
  objective: string;
@@ -4021,18 +4667,18 @@ export declare const DeliveryLedgerSchema: z.ZodObject<{
4021
4667
  }, {
4022
4668
  id: string;
4023
4669
  version: 1;
4670
+ evidence: string[];
4024
4671
  tasks: {
4025
4672
  id: string;
4026
4673
  status: "pending" | "done" | "blocked";
4027
4674
  title: string;
4028
4675
  }[];
4029
- evidence: string[];
4030
4676
  updatedAt: string;
4031
4677
  taskCard: {
4032
4678
  id: string;
4033
- context: string;
4034
4679
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
4035
4680
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
4681
+ context: string;
4036
4682
  title: string;
4037
4683
  risk: "low" | "medium" | "high";
4038
4684
  objective: string;
@@ -4085,11 +4731,11 @@ export declare const HandoffEnvelopeSchema: z.ZodObject<{
4085
4731
  constraints: z.ZodArray<z.ZodString, "many">;
4086
4732
  unresolved: z.ZodArray<z.ZodString, "many">;
4087
4733
  }, "strip", z.ZodTypeAny, {
4088
- constraints: string[];
4089
4734
  unresolved: string[];
4090
- }, {
4091
4735
  constraints: string[];
4736
+ }, {
4092
4737
  unresolved: string[];
4738
+ constraints: string[];
4093
4739
  }>;
4094
4740
  scope: z.ZodObject<{
4095
4741
  relevantFiles: z.ZodArray<z.ZodString, "many">;
@@ -4139,23 +4785,23 @@ export declare const HandoffEnvelopeSchema: z.ZodObject<{
4139
4785
  technicalPlanPath?: string | undefined;
4140
4786
  }>;
4141
4787
  }, "strip", z.ZodTypeAny, {
4142
- version: 1;
4143
4788
  task: {
4144
4789
  id: string;
4145
4790
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
4146
4791
  objective: string;
4147
4792
  acceptanceCriteria: string[];
4148
4793
  };
4794
+ verification: {
4795
+ evidence: string[];
4796
+ };
4797
+ version: 1;
4149
4798
  scope: {
4150
4799
  boundaries: string[];
4151
4800
  relevantFiles: string[];
4152
4801
  };
4153
4802
  decisions: {
4154
- constraints: string[];
4155
4803
  unresolved: string[];
4156
- };
4157
- verification: {
4158
- evidence: string[];
4804
+ constraints: string[];
4159
4805
  };
4160
4806
  change: {
4161
4807
  touchedFiles: string[];
@@ -4170,23 +4816,23 @@ export declare const HandoffEnvelopeSchema: z.ZodObject<{
4170
4816
  technicalPlanPath?: string | undefined;
4171
4817
  };
4172
4818
  }, {
4173
- version: 1;
4174
4819
  task: {
4175
4820
  id: string;
4176
4821
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
4177
4822
  objective: string;
4178
4823
  acceptanceCriteria: string[];
4179
4824
  };
4825
+ verification: {
4826
+ evidence: string[];
4827
+ };
4828
+ version: 1;
4180
4829
  scope: {
4181
4830
  boundaries: string[];
4182
4831
  relevantFiles: string[];
4183
4832
  };
4184
4833
  decisions: {
4185
- constraints: string[];
4186
4834
  unresolved: string[];
4187
- };
4188
- verification: {
4189
- evidence: string[];
4835
+ constraints: string[];
4190
4836
  };
4191
4837
  change: {
4192
4838
  touchedFiles: string[];
@@ -4231,9 +4877,9 @@ export declare const DeliveryLedgerRequestSchema: z.ZodObject<{
4231
4877
  authorization: z.ZodOptional<z.ZodString>;
4232
4878
  }, "strip", z.ZodTypeAny, {
4233
4879
  id: string;
4234
- context: string;
4235
4880
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
4236
4881
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
4882
+ context: string;
4237
4883
  title: string;
4238
4884
  risk: "low" | "medium" | "high";
4239
4885
  objective: string;
@@ -4255,9 +4901,9 @@ export declare const DeliveryLedgerRequestSchema: z.ZodObject<{
4255
4901
  authorization?: string | undefined;
4256
4902
  }, {
4257
4903
  id: string;
4258
- context: string;
4259
4904
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
4260
4905
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
4906
+ context: string;
4261
4907
  title: string;
4262
4908
  risk: "low" | "medium" | "high";
4263
4909
  objective: string;
@@ -4302,9 +4948,9 @@ export declare const DeliveryLedgerRequestSchema: z.ZodObject<{
4302
4948
  }[];
4303
4949
  taskCard: {
4304
4950
  id: string;
4305
- context: string;
4306
4951
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
4307
4952
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
4953
+ context: string;
4308
4954
  title: string;
4309
4955
  risk: "low" | "medium" | "high";
4310
4956
  objective: string;
@@ -4338,9 +4984,9 @@ export declare const DeliveryLedgerRequestSchema: z.ZodObject<{
4338
4984
  }[];
4339
4985
  taskCard: {
4340
4986
  id: string;
4341
- context: string;
4342
4987
  status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
4343
4988
  type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
4989
+ context: string;
4344
4990
  title: string;
4345
4991
  risk: "low" | "medium" | "high";
4346
4992
  objective: string;
@@ -4436,10 +5082,10 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
4436
5082
  }>>;
4437
5083
  }, "strip", z.ZodTypeAny, {
4438
5084
  id: string;
5085
+ source: "review" | "openspec" | "manual" | "pipeline";
4439
5086
  model: string;
4440
5087
  contractVersion: string;
4441
5088
  timestamp: string;
4442
- source: "review" | "openspec" | "manual" | "pipeline";
4443
5089
  taskId: string;
4444
5090
  agent: string;
4445
5091
  status?: "reject" | "pass" | "phase_done" | "phase_failed" | "revise" | undefined;
@@ -4472,10 +5118,10 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
4472
5118
  } | undefined;
4473
5119
  }, {
4474
5120
  id: string;
5121
+ source: "review" | "openspec" | "manual" | "pipeline";
4475
5122
  model: string;
4476
5123
  contractVersion: string;
4477
5124
  timestamp: string;
4478
- source: "review" | "openspec" | "manual" | "pipeline";
4479
5125
  taskId: string;
4480
5126
  agent: string;
4481
5127
  status?: "reject" | "pass" | "phase_done" | "phase_failed" | "revise" | undefined;
@@ -4667,18 +5313,18 @@ export declare const HarnessSuiteTaskSchema: z.ZodObject<{
4667
5313
  }, "strip", z.ZodTypeAny, {
4668
5314
  id: string;
4669
5315
  type: "feature" | "fix" | "refactor";
5316
+ scope: string;
4670
5317
  title: string;
4671
5318
  risk: "low" | "medium" | "high";
4672
5319
  acceptanceCriteria: string[];
4673
- scope: string;
4674
5320
  prompt: string;
4675
5321
  testCommand?: string | undefined;
4676
5322
  }, {
4677
5323
  id: string;
4678
5324
  type: "feature" | "fix" | "refactor";
5325
+ scope: string;
4679
5326
  title: string;
4680
5327
  acceptanceCriteria: string[];
4681
- scope: string;
4682
5328
  prompt: string;
4683
5329
  risk?: "low" | "medium" | "high" | undefined;
4684
5330
  testCommand?: string | undefined;
@@ -4699,18 +5345,18 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
4699
5345
  }, "strip", z.ZodTypeAny, {
4700
5346
  id: string;
4701
5347
  type: "feature" | "fix" | "refactor";
5348
+ scope: string;
4702
5349
  title: string;
4703
5350
  risk: "low" | "medium" | "high";
4704
5351
  acceptanceCriteria: string[];
4705
- scope: string;
4706
5352
  prompt: string;
4707
5353
  testCommand?: string | undefined;
4708
5354
  }, {
4709
5355
  id: string;
4710
5356
  type: "feature" | "fix" | "refactor";
5357
+ scope: string;
4711
5358
  title: string;
4712
5359
  acceptanceCriteria: string[];
4713
- scope: string;
4714
5360
  prompt: string;
4715
5361
  risk?: "low" | "medium" | "high" | undefined;
4716
5362
  testCommand?: string | undefined;
@@ -4721,10 +5367,10 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
4721
5367
  tasks: {
4722
5368
  id: string;
4723
5369
  type: "feature" | "fix" | "refactor";
5370
+ scope: string;
4724
5371
  title: string;
4725
5372
  risk: "low" | "medium" | "high";
4726
5373
  acceptanceCriteria: string[];
4727
- scope: string;
4728
5374
  prompt: string;
4729
5375
  testCommand?: string | undefined;
4730
5376
  }[];
@@ -4735,9 +5381,9 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
4735
5381
  tasks: {
4736
5382
  id: string;
4737
5383
  type: "feature" | "fix" | "refactor";
5384
+ scope: string;
4738
5385
  title: string;
4739
5386
  acceptanceCriteria: string[];
4740
- scope: string;
4741
5387
  prompt: string;
4742
5388
  risk?: "low" | "medium" | "high" | undefined;
4743
5389
  testCommand?: string | undefined;
@@ -4770,17 +5416,17 @@ export declare const ExecutionProfileSchema: z.ZodObject<{
4770
5416
  testerReviewer?: "primary" | "delegate" | undefined;
4771
5417
  }>>;
4772
5418
  }, "strip", z.ZodTypeAny, {
4773
- profile: "balanced" | "quality" | "economical";
4774
5419
  overrides: Record<string, string>;
5420
+ profile: "balanced" | "quality" | "economical";
4775
5421
  target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse" | undefined;
4776
5422
  subagentPolicy?: {
4777
5423
  orchestrator?: "primary" | "delegate" | undefined;
4778
5424
  testerReviewer?: "primary" | "delegate" | undefined;
4779
5425
  } | undefined;
4780
5426
  }, {
4781
- profile?: "balanced" | "quality" | "economical" | undefined;
4782
- target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse" | undefined;
4783
5427
  overrides?: Record<string, string> | undefined;
5428
+ target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse" | undefined;
5429
+ profile?: "balanced" | "quality" | "economical" | undefined;
4784
5430
  subagentPolicy?: {
4785
5431
  orchestrator?: "primary" | "delegate" | undefined;
4786
5432
  testerReviewer?: "primary" | "delegate" | undefined;