@agent-plan/core 0.2.24 → 0.2.26

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 (50) hide show
  1. package/dist/display-status.d.ts +3 -3
  2. package/dist/display-status.d.ts.map +1 -1
  3. package/dist/display-status.js +5 -4
  4. package/dist/handoff-context.d.ts +91 -1
  5. package/dist/handoff-context.d.ts.map +1 -1
  6. package/dist/handoff-context.js +134 -2
  7. package/dist/index.d.ts +5 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +4 -0
  10. package/dist/naming.d.ts +3 -0
  11. package/dist/naming.d.ts.map +1 -1
  12. package/dist/naming.js +7 -0
  13. package/dist/payload-fallback.d.ts +38 -0
  14. package/dist/payload-fallback.d.ts.map +1 -0
  15. package/dist/payload-fallback.js +73 -0
  16. package/dist/plan-store.d.ts +65 -8
  17. package/dist/plan-store.d.ts.map +1 -1
  18. package/dist/plan-store.js +391 -39
  19. package/dist/planner-rules.d.ts +3 -11
  20. package/dist/planner-rules.d.ts.map +1 -1
  21. package/dist/planner-rules.js +23 -6
  22. package/dist/planner-skill.d.ts +24 -0
  23. package/dist/planner-skill.d.ts.map +1 -0
  24. package/dist/planner-skill.js +113 -0
  25. package/dist/project-context-migration.d.ts +47 -0
  26. package/dist/project-context-migration.d.ts.map +1 -0
  27. package/dist/project-context-migration.js +168 -0
  28. package/dist/read-tracking.d.ts +27 -8
  29. package/dist/read-tracking.d.ts.map +1 -1
  30. package/dist/read-tracking.js +79 -34
  31. package/dist/recap.d.ts.map +1 -1
  32. package/dist/recap.js +2 -6
  33. package/dist/refs.d.ts +6 -1
  34. package/dist/refs.d.ts.map +1 -1
  35. package/dist/refs.js +25 -0
  36. package/dist/renderer.d.ts.map +1 -1
  37. package/dist/renderer.js +24 -1
  38. package/dist/requirement-macro-tasks.d.ts +18 -0
  39. package/dist/requirement-macro-tasks.d.ts.map +1 -0
  40. package/dist/requirement-macro-tasks.js +55 -0
  41. package/dist/schema.d.ts +1088 -273
  42. package/dist/schema.d.ts.map +1 -1
  43. package/dist/schema.js +65 -0
  44. package/dist/task-selection.js +2 -2
  45. package/dist/task-start-outcome.d.ts +1 -1
  46. package/dist/task-start-outcome.d.ts.map +1 -1
  47. package/dist/task-start-outcome.js +1 -0
  48. package/package.json +3 -1
  49. package/planner-skill.md +210 -0
  50. package/skills/grill-me/SKILL.md +10 -0
package/dist/schema.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const TimestampSchema: z.ZodString;
3
3
  export declare const SlugSchema: z.ZodString;
4
+ export declare const DescriptionRefSchema: z.ZodEffects<z.ZodString, string, string>;
4
5
  export declare const CodebaseFileSchema: z.ZodObject<{
5
6
  path: z.ZodString;
6
7
  kind: z.ZodDefault<z.ZodString>;
@@ -169,14 +170,14 @@ export declare const ActivityEntrySchema: z.ZodObject<{
169
170
  ref: z.ZodDefault<z.ZodString>;
170
171
  summary: z.ZodDefault<z.ZodString>;
171
172
  }, "strip", z.ZodTypeAny, {
172
- type: string;
173
173
  at: string;
174
+ type: string;
174
175
  id: string;
175
176
  ref: string;
176
177
  summary: string;
177
178
  }, {
178
- type: string;
179
179
  at: string;
180
+ type: string;
180
181
  id: string;
181
182
  ref?: string | undefined;
182
183
  summary?: string | undefined;
@@ -189,30 +190,30 @@ export declare const ActivityLogSchema: z.ZodObject<{
189
190
  ref: z.ZodDefault<z.ZodString>;
190
191
  summary: z.ZodDefault<z.ZodString>;
191
192
  }, "strip", z.ZodTypeAny, {
192
- type: string;
193
193
  at: string;
194
+ type: string;
194
195
  id: string;
195
196
  ref: string;
196
197
  summary: string;
197
198
  }, {
198
- type: string;
199
199
  at: string;
200
+ type: string;
200
201
  id: string;
201
202
  ref?: string | undefined;
202
203
  summary?: string | undefined;
203
204
  }>, "many">>;
204
205
  }, "strip", z.ZodTypeAny, {
205
206
  entries: {
206
- type: string;
207
207
  at: string;
208
+ type: string;
208
209
  id: string;
209
210
  ref: string;
210
211
  summary: string;
211
212
  }[];
212
213
  }, {
213
214
  entries?: {
214
- type: string;
215
215
  at: string;
216
+ type: string;
216
217
  id: string;
217
218
  ref?: string | undefined;
218
219
  summary?: string | undefined;
@@ -408,10 +409,67 @@ export declare const WorkDeviationSchema: z.ZodObject<{
408
409
  resolvedAt?: string | undefined;
409
410
  resumedAt?: string | undefined;
410
411
  }>;
412
+ export declare const ProjectGuidelinesSchema: z.ZodObject<{
413
+ content: z.ZodDefault<z.ZodString>;
414
+ updatedAt: z.ZodDefault<z.ZodString>;
415
+ sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
416
+ sessionId: z.ZodString;
417
+ createdAt: z.ZodString;
418
+ }, "strip", z.ZodTypeAny, {
419
+ createdAt: string;
420
+ sessionId: string;
421
+ }, {
422
+ createdAt: string;
423
+ sessionId: string;
424
+ }>, "many">>;
425
+ }, "strip", z.ZodTypeAny, {
426
+ updatedAt: string;
427
+ content: string;
428
+ sessionInfo: {
429
+ createdAt: string;
430
+ sessionId: string;
431
+ }[];
432
+ }, {
433
+ updatedAt?: string | undefined;
434
+ content?: string | undefined;
435
+ sessionInfo?: {
436
+ createdAt: string;
437
+ sessionId: string;
438
+ }[] | undefined;
439
+ }>;
411
440
  export declare const ProjectSchema: z.ZodObject<{
412
441
  name: z.ZodString;
413
442
  goal: z.ZodDefault<z.ZodString>;
414
443
  description: z.ZodDefault<z.ZodString>;
444
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
445
+ projectGuidelines: z.ZodDefault<z.ZodObject<{
446
+ content: z.ZodDefault<z.ZodString>;
447
+ updatedAt: z.ZodDefault<z.ZodString>;
448
+ sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
449
+ sessionId: z.ZodString;
450
+ createdAt: z.ZodString;
451
+ }, "strip", z.ZodTypeAny, {
452
+ createdAt: string;
453
+ sessionId: string;
454
+ }, {
455
+ createdAt: string;
456
+ sessionId: string;
457
+ }>, "many">>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ updatedAt: string;
460
+ content: string;
461
+ sessionInfo: {
462
+ createdAt: string;
463
+ sessionId: string;
464
+ }[];
465
+ }, {
466
+ updatedAt?: string | undefined;
467
+ content?: string | undefined;
468
+ sessionInfo?: {
469
+ createdAt: string;
470
+ sessionId: string;
471
+ }[] | undefined;
472
+ }>>;
415
473
  webPort: z.ZodDefault<z.ZodNumber>;
416
474
  scope: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
417
475
  outOfScope: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -568,6 +626,14 @@ export declare const ProjectSchema: z.ZodObject<{
568
626
  name: string;
569
627
  goal: string;
570
628
  description: string;
629
+ projectGuidelines: {
630
+ updatedAt: string;
631
+ content: string;
632
+ sessionInfo: {
633
+ createdAt: string;
634
+ sessionId: string;
635
+ }[];
636
+ };
571
637
  webPort: number;
572
638
  scope: string[];
573
639
  outOfScope: string[];
@@ -618,6 +684,7 @@ export declare const ProjectSchema: z.ZodObject<{
618
684
  resolvedAt: string;
619
685
  resumedAt: string;
620
686
  }[];
687
+ descriptionRef?: string | undefined;
621
688
  }, {
622
689
  name: string;
623
690
  workflowRules: {
@@ -627,6 +694,15 @@ export declare const ProjectSchema: z.ZodObject<{
627
694
  };
628
695
  goal?: string | undefined;
629
696
  description?: string | undefined;
697
+ descriptionRef?: string | undefined;
698
+ projectGuidelines?: {
699
+ updatedAt?: string | undefined;
700
+ content?: string | undefined;
701
+ sessionInfo?: {
702
+ createdAt: string;
703
+ sessionId: string;
704
+ }[] | undefined;
705
+ } | undefined;
630
706
  webPort?: number | undefined;
631
707
  scope?: string[] | undefined;
632
708
  outOfScope?: string[] | undefined;
@@ -797,6 +873,7 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
797
873
  title: z.ZodString;
798
874
  status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
799
875
  description: z.ZodDefault<z.ZodString>;
876
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
800
877
  /** Updated only when this task's description changes; distinct from entity updatedAt. */
801
878
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
802
879
  notes: z.ZodDefault<z.ZodString>;
@@ -978,6 +1055,10 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
978
1055
  id: string;
979
1056
  createdAt: string;
980
1057
  title: string;
1058
+ sessionInfo: {
1059
+ createdAt: string;
1060
+ sessionId: string;
1061
+ }[];
981
1062
  description: string;
982
1063
  decisions: string[];
983
1064
  acceptedDecisions: {
@@ -1038,10 +1119,7 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
1038
1119
  }[];
1039
1120
  startedAt: string;
1040
1121
  completedAt: string;
1041
- sessionInfo: {
1042
- createdAt: string;
1043
- sessionId: string;
1044
- }[];
1122
+ descriptionRef?: string | undefined;
1045
1123
  }, {
1046
1124
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1047
1125
  updatedAt: string;
@@ -1052,7 +1130,12 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
1052
1130
  shortName: string;
1053
1131
  number?: number | undefined;
1054
1132
  notes?: string | undefined;
1133
+ sessionInfo?: {
1134
+ createdAt: string;
1135
+ sessionId: string;
1136
+ }[] | undefined;
1055
1137
  description?: string | undefined;
1138
+ descriptionRef?: string | undefined;
1056
1139
  decisions?: string[] | undefined;
1057
1140
  acceptedDecisions?: {
1058
1141
  id: string;
@@ -1110,10 +1193,6 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
1110
1193
  }[] | undefined;
1111
1194
  startedAt?: string | undefined;
1112
1195
  completedAt?: string | undefined;
1113
- sessionInfo?: {
1114
- createdAt: string;
1115
- sessionId: string;
1116
- }[] | undefined;
1117
1196
  }>, {
1118
1197
  checklist: {
1119
1198
  id: string;
@@ -1128,6 +1207,10 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
1128
1207
  id: string;
1129
1208
  createdAt: string;
1130
1209
  title: string;
1210
+ sessionInfo: {
1211
+ createdAt: string;
1212
+ sessionId: string;
1213
+ }[];
1131
1214
  description: string;
1132
1215
  decisions: string[];
1133
1216
  acceptedDecisions: {
@@ -1182,10 +1265,7 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
1182
1265
  }[];
1183
1266
  startedAt: string;
1184
1267
  completedAt: string;
1185
- sessionInfo: {
1186
- createdAt: string;
1187
- sessionId: string;
1188
- }[];
1268
+ descriptionRef?: string | undefined;
1189
1269
  }, {
1190
1270
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1191
1271
  updatedAt: string;
@@ -1196,7 +1276,12 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
1196
1276
  shortName: string;
1197
1277
  number?: number | undefined;
1198
1278
  notes?: string | undefined;
1279
+ sessionInfo?: {
1280
+ createdAt: string;
1281
+ sessionId: string;
1282
+ }[] | undefined;
1199
1283
  description?: string | undefined;
1284
+ descriptionRef?: string | undefined;
1200
1285
  decisions?: string[] | undefined;
1201
1286
  acceptedDecisions?: {
1202
1287
  id: string;
@@ -1254,10 +1339,6 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
1254
1339
  }[] | undefined;
1255
1340
  startedAt?: string | undefined;
1256
1341
  completedAt?: string | undefined;
1257
- sessionInfo?: {
1258
- createdAt: string;
1259
- sessionId: string;
1260
- }[] | undefined;
1261
1342
  }>;
1262
1343
  export declare const HandoffHistoryEntrySchema: z.ZodObject<{
1263
1344
  /** Relative path under .planner/.local/handoff-archive/ (e.g. <phaseId>-<ISO>.md). */
@@ -1274,6 +1355,102 @@ export declare const HandoffHistoryEntrySchema: z.ZodObject<{
1274
1355
  file?: string | undefined;
1275
1356
  reason?: string | undefined;
1276
1357
  }>;
1358
+ export declare const HandoffCompletenessEntrySchema: z.ZodObject<{
1359
+ category: z.ZodString;
1360
+ status: z.ZodEnum<["captured", "not-applicable"]>;
1361
+ detail: z.ZodString;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ status: "captured" | "not-applicable";
1364
+ category: string;
1365
+ detail: string;
1366
+ }, {
1367
+ status: "captured" | "not-applicable";
1368
+ category: string;
1369
+ detail: string;
1370
+ }>;
1371
+ export declare const HandoffSupportingDocumentSchema: z.ZodObject<{
1372
+ path: z.ZodString;
1373
+ description: z.ZodString;
1374
+ contentHash: z.ZodString;
1375
+ contentLength: z.ZodNumber;
1376
+ }, "strip", z.ZodTypeAny, {
1377
+ path: string;
1378
+ description: string;
1379
+ contentHash: string;
1380
+ contentLength: number;
1381
+ }, {
1382
+ path: string;
1383
+ description: string;
1384
+ contentHash: string;
1385
+ contentLength: number;
1386
+ }>;
1387
+ export declare const HandoffCompletenessAuditSchema: z.ZodObject<{
1388
+ version: z.ZodNumber;
1389
+ entries: z.ZodArray<z.ZodObject<{
1390
+ category: z.ZodString;
1391
+ status: z.ZodEnum<["captured", "not-applicable"]>;
1392
+ detail: z.ZodString;
1393
+ }, "strip", z.ZodTypeAny, {
1394
+ status: "captured" | "not-applicable";
1395
+ category: string;
1396
+ detail: string;
1397
+ }, {
1398
+ status: "captured" | "not-applicable";
1399
+ category: string;
1400
+ detail: string;
1401
+ }>, "many">;
1402
+ supportingDocuments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1403
+ path: z.ZodString;
1404
+ description: z.ZodString;
1405
+ contentHash: z.ZodString;
1406
+ contentLength: z.ZodNumber;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ path: string;
1409
+ description: string;
1410
+ contentHash: string;
1411
+ contentLength: number;
1412
+ }, {
1413
+ path: string;
1414
+ description: string;
1415
+ contentHash: string;
1416
+ contentLength: number;
1417
+ }>, "many">>;
1418
+ contentHash: z.ZodString;
1419
+ contentLength: z.ZodNumber;
1420
+ verifiedAt: z.ZodString;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ entries: {
1423
+ status: "captured" | "not-applicable";
1424
+ category: string;
1425
+ detail: string;
1426
+ }[];
1427
+ contentHash: string;
1428
+ contentLength: number;
1429
+ version: number;
1430
+ supportingDocuments: {
1431
+ path: string;
1432
+ description: string;
1433
+ contentHash: string;
1434
+ contentLength: number;
1435
+ }[];
1436
+ verifiedAt: string;
1437
+ }, {
1438
+ entries: {
1439
+ status: "captured" | "not-applicable";
1440
+ category: string;
1441
+ detail: string;
1442
+ }[];
1443
+ contentHash: string;
1444
+ contentLength: number;
1445
+ version: number;
1446
+ verifiedAt: string;
1447
+ supportingDocuments?: {
1448
+ path: string;
1449
+ description: string;
1450
+ contentHash: string;
1451
+ contentLength: number;
1452
+ }[] | undefined;
1453
+ }>;
1277
1454
  export declare const PhaseSchema: z.ZodObject<{
1278
1455
  id: z.ZodString;
1279
1456
  /** MUST be a feature UUID (not a ref like "F005"). Validated at the schema
@@ -1291,6 +1468,7 @@ export declare const PhaseSchema: z.ZodObject<{
1291
1468
  contextReadyReason: z.ZodDefault<z.ZodString>;
1292
1469
  summary: z.ZodDefault<z.ZodString>;
1293
1470
  description: z.ZodDefault<z.ZodString>;
1471
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1294
1472
  /** Updated only when this phase's description changes; distinct from entity updatedAt. */
1295
1473
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
1296
1474
  notes: z.ZodDefault<z.ZodString>;
@@ -1338,6 +1516,7 @@ export declare const PhaseSchema: z.ZodObject<{
1338
1516
  title: z.ZodString;
1339
1517
  status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1340
1518
  description: z.ZodDefault<z.ZodString>;
1519
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1341
1520
  /** Updated only when this task's description changes; distinct from entity updatedAt. */
1342
1521
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
1343
1522
  notes: z.ZodDefault<z.ZodString>;
@@ -1519,6 +1698,10 @@ export declare const PhaseSchema: z.ZodObject<{
1519
1698
  id: string;
1520
1699
  createdAt: string;
1521
1700
  title: string;
1701
+ sessionInfo: {
1702
+ createdAt: string;
1703
+ sessionId: string;
1704
+ }[];
1522
1705
  description: string;
1523
1706
  decisions: string[];
1524
1707
  acceptedDecisions: {
@@ -1579,10 +1762,7 @@ export declare const PhaseSchema: z.ZodObject<{
1579
1762
  }[];
1580
1763
  startedAt: string;
1581
1764
  completedAt: string;
1582
- sessionInfo: {
1583
- createdAt: string;
1584
- sessionId: string;
1585
- }[];
1765
+ descriptionRef?: string | undefined;
1586
1766
  }, {
1587
1767
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1588
1768
  updatedAt: string;
@@ -1593,7 +1773,12 @@ export declare const PhaseSchema: z.ZodObject<{
1593
1773
  shortName: string;
1594
1774
  number?: number | undefined;
1595
1775
  notes?: string | undefined;
1776
+ sessionInfo?: {
1777
+ createdAt: string;
1778
+ sessionId: string;
1779
+ }[] | undefined;
1596
1780
  description?: string | undefined;
1781
+ descriptionRef?: string | undefined;
1597
1782
  decisions?: string[] | undefined;
1598
1783
  acceptedDecisions?: {
1599
1784
  id: string;
@@ -1651,10 +1836,6 @@ export declare const PhaseSchema: z.ZodObject<{
1651
1836
  }[] | undefined;
1652
1837
  startedAt?: string | undefined;
1653
1838
  completedAt?: string | undefined;
1654
- sessionInfo?: {
1655
- createdAt: string;
1656
- sessionId: string;
1657
- }[] | undefined;
1658
1839
  }>, {
1659
1840
  checklist: {
1660
1841
  id: string;
@@ -1669,6 +1850,10 @@ export declare const PhaseSchema: z.ZodObject<{
1669
1850
  id: string;
1670
1851
  createdAt: string;
1671
1852
  title: string;
1853
+ sessionInfo: {
1854
+ createdAt: string;
1855
+ sessionId: string;
1856
+ }[];
1672
1857
  description: string;
1673
1858
  decisions: string[];
1674
1859
  acceptedDecisions: {
@@ -1723,10 +1908,7 @@ export declare const PhaseSchema: z.ZodObject<{
1723
1908
  }[];
1724
1909
  startedAt: string;
1725
1910
  completedAt: string;
1726
- sessionInfo: {
1727
- createdAt: string;
1728
- sessionId: string;
1729
- }[];
1911
+ descriptionRef?: string | undefined;
1730
1912
  }, {
1731
1913
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1732
1914
  updatedAt: string;
@@ -1737,7 +1919,12 @@ export declare const PhaseSchema: z.ZodObject<{
1737
1919
  shortName: string;
1738
1920
  number?: number | undefined;
1739
1921
  notes?: string | undefined;
1922
+ sessionInfo?: {
1923
+ createdAt: string;
1924
+ sessionId: string;
1925
+ }[] | undefined;
1740
1926
  description?: string | undefined;
1927
+ descriptionRef?: string | undefined;
1741
1928
  decisions?: string[] | undefined;
1742
1929
  acceptedDecisions?: {
1743
1930
  id: string;
@@ -1795,15 +1982,79 @@ export declare const PhaseSchema: z.ZodObject<{
1795
1982
  }[] | undefined;
1796
1983
  startedAt?: string | undefined;
1797
1984
  completedAt?: string | undefined;
1798
- sessionInfo?: {
1799
- createdAt: string;
1800
- sessionId: string;
1801
- }[] | undefined;
1802
1985
  }>, "many">>;
1803
1986
  createdAt: z.ZodString;
1804
1987
  updatedAt: z.ZodString;
1805
1988
  handoff: z.ZodDefault<z.ZodString>;
1806
1989
  handoffUpdatedAt: z.ZodDefault<z.ZodString>;
1990
+ /** Durable proof that the active handoff passed the versioned completeness and read-back contract. */
1991
+ handoffAudit: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1992
+ version: z.ZodNumber;
1993
+ entries: z.ZodArray<z.ZodObject<{
1994
+ category: z.ZodString;
1995
+ status: z.ZodEnum<["captured", "not-applicable"]>;
1996
+ detail: z.ZodString;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ status: "captured" | "not-applicable";
1999
+ category: string;
2000
+ detail: string;
2001
+ }, {
2002
+ status: "captured" | "not-applicable";
2003
+ category: string;
2004
+ detail: string;
2005
+ }>, "many">;
2006
+ supportingDocuments: z.ZodDefault<z.ZodArray<z.ZodObject<{
2007
+ path: z.ZodString;
2008
+ description: z.ZodString;
2009
+ contentHash: z.ZodString;
2010
+ contentLength: z.ZodNumber;
2011
+ }, "strip", z.ZodTypeAny, {
2012
+ path: string;
2013
+ description: string;
2014
+ contentHash: string;
2015
+ contentLength: number;
2016
+ }, {
2017
+ path: string;
2018
+ description: string;
2019
+ contentHash: string;
2020
+ contentLength: number;
2021
+ }>, "many">>;
2022
+ contentHash: z.ZodString;
2023
+ contentLength: z.ZodNumber;
2024
+ verifiedAt: z.ZodString;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ entries: {
2027
+ status: "captured" | "not-applicable";
2028
+ category: string;
2029
+ detail: string;
2030
+ }[];
2031
+ contentHash: string;
2032
+ contentLength: number;
2033
+ version: number;
2034
+ supportingDocuments: {
2035
+ path: string;
2036
+ description: string;
2037
+ contentHash: string;
2038
+ contentLength: number;
2039
+ }[];
2040
+ verifiedAt: string;
2041
+ }, {
2042
+ entries: {
2043
+ status: "captured" | "not-applicable";
2044
+ category: string;
2045
+ detail: string;
2046
+ }[];
2047
+ contentHash: string;
2048
+ contentLength: number;
2049
+ version: number;
2050
+ verifiedAt: string;
2051
+ supportingDocuments?: {
2052
+ path: string;
2053
+ description: string;
2054
+ contentHash: string;
2055
+ contentLength: number;
2056
+ }[] | undefined;
2057
+ }>>>;
1807
2058
  /** When the handoff was last read/acknowledged on recap (ISO). Non-empty means
1808
2059
  * the agent has seen it; the recap won't re-prompt every turn. Reading is
1809
2060
  * non-mutating: content remains until every task is done/canceled, a later
@@ -1871,6 +2122,10 @@ export declare const PhaseSchema: z.ZodObject<{
1871
2122
  summary: string;
1872
2123
  createdAt: string;
1873
2124
  title: string;
2125
+ sessionInfo: {
2126
+ createdAt: string;
2127
+ sessionId: string;
2128
+ }[];
1874
2129
  description: string;
1875
2130
  decisions: string[];
1876
2131
  acceptedDecisions: {
@@ -1893,10 +2148,6 @@ export declare const PhaseSchema: z.ZodObject<{
1893
2148
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1894
2149
  }[];
1895
2150
  dependsOn: string[];
1896
- sessionInfo: {
1897
- createdAt: string;
1898
- sessionId: string;
1899
- }[];
1900
2151
  slug: string;
1901
2152
  discussedAt: string;
1902
2153
  contextReady: boolean;
@@ -1921,6 +2172,10 @@ export declare const PhaseSchema: z.ZodObject<{
1921
2172
  id: string;
1922
2173
  createdAt: string;
1923
2174
  title: string;
2175
+ sessionInfo: {
2176
+ createdAt: string;
2177
+ sessionId: string;
2178
+ }[];
1924
2179
  description: string;
1925
2180
  decisions: string[];
1926
2181
  acceptedDecisions: {
@@ -1975,19 +2230,34 @@ export declare const PhaseSchema: z.ZodObject<{
1975
2230
  }[];
1976
2231
  startedAt: string;
1977
2232
  completedAt: string;
1978
- sessionInfo: {
1979
- createdAt: string;
1980
- sessionId: string;
1981
- }[];
2233
+ descriptionRef?: string | undefined;
1982
2234
  }[];
1983
2235
  handoff: string;
1984
2236
  handoffUpdatedAt: string;
2237
+ handoffAudit: {
2238
+ entries: {
2239
+ status: "captured" | "not-applicable";
2240
+ category: string;
2241
+ detail: string;
2242
+ }[];
2243
+ contentHash: string;
2244
+ contentLength: number;
2245
+ version: number;
2246
+ supportingDocuments: {
2247
+ path: string;
2248
+ description: string;
2249
+ contentHash: string;
2250
+ contentLength: number;
2251
+ }[];
2252
+ verifiedAt: string;
2253
+ } | null;
1985
2254
  handoffReadAt: string;
1986
2255
  handoffHistory: {
1987
2256
  file: string;
1988
2257
  reason: string;
1989
2258
  clearedAt: string;
1990
2259
  }[];
2260
+ descriptionRef?: string | undefined;
1991
2261
  featureId?: string | undefined;
1992
2262
  }, {
1993
2263
  number: number;
@@ -1999,7 +2269,12 @@ export declare const PhaseSchema: z.ZodObject<{
1999
2269
  dependencies?: string[] | undefined;
2000
2270
  notes?: string | undefined;
2001
2271
  summary?: string | undefined;
2272
+ sessionInfo?: {
2273
+ createdAt: string;
2274
+ sessionId: string;
2275
+ }[] | undefined;
2002
2276
  description?: string | undefined;
2277
+ descriptionRef?: string | undefined;
2003
2278
  decisions?: string[] | undefined;
2004
2279
  acceptedDecisions?: {
2005
2280
  id: string;
@@ -2021,10 +2296,6 @@ export declare const PhaseSchema: z.ZodObject<{
2021
2296
  description?: string | undefined;
2022
2297
  }[] | undefined;
2023
2298
  dependsOn?: string[] | undefined;
2024
- sessionInfo?: {
2025
- createdAt: string;
2026
- sessionId: string;
2027
- }[] | undefined;
2028
2299
  featureId?: string | undefined;
2029
2300
  discussedAt?: string | undefined;
2030
2301
  contextReady?: boolean | undefined;
@@ -2045,7 +2316,12 @@ export declare const PhaseSchema: z.ZodObject<{
2045
2316
  shortName: string;
2046
2317
  number?: number | undefined;
2047
2318
  notes?: string | undefined;
2319
+ sessionInfo?: {
2320
+ createdAt: string;
2321
+ sessionId: string;
2322
+ }[] | undefined;
2048
2323
  description?: string | undefined;
2324
+ descriptionRef?: string | undefined;
2049
2325
  decisions?: string[] | undefined;
2050
2326
  acceptedDecisions?: {
2051
2327
  id: string;
@@ -2103,13 +2379,26 @@ export declare const PhaseSchema: z.ZodObject<{
2103
2379
  }[] | undefined;
2104
2380
  startedAt?: string | undefined;
2105
2381
  completedAt?: string | undefined;
2106
- sessionInfo?: {
2107
- createdAt: string;
2108
- sessionId: string;
2109
- }[] | undefined;
2110
2382
  }[] | undefined;
2111
2383
  handoff?: string | undefined;
2112
2384
  handoffUpdatedAt?: string | undefined;
2385
+ handoffAudit?: {
2386
+ entries: {
2387
+ status: "captured" | "not-applicable";
2388
+ category: string;
2389
+ detail: string;
2390
+ }[];
2391
+ contentHash: string;
2392
+ contentLength: number;
2393
+ version: number;
2394
+ verifiedAt: string;
2395
+ supportingDocuments?: {
2396
+ path: string;
2397
+ description: string;
2398
+ contentHash: string;
2399
+ contentLength: number;
2400
+ }[] | undefined;
2401
+ } | null | undefined;
2113
2402
  handoffReadAt?: string | undefined;
2114
2403
  handoffHistory?: {
2115
2404
  clearedAt: string;
@@ -2125,6 +2414,7 @@ export declare const FeatureSchema: z.ZodObject<{
2125
2414
  priority: z.ZodDefault<z.ZodNumber>;
2126
2415
  name: z.ZodString;
2127
2416
  description: z.ZodDefault<z.ZodString>;
2417
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2128
2418
  /** Updated only when this feature's description changes; distinct from entity updatedAt. */
2129
2419
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
2130
2420
  discussedAt: z.ZodDefault<z.ZodString>;
@@ -2200,6 +2490,10 @@ export declare const FeatureSchema: z.ZodObject<{
2200
2490
  updatedAt: string;
2201
2491
  id: string;
2202
2492
  createdAt: string;
2493
+ sessionInfo: {
2494
+ createdAt: string;
2495
+ sessionId: string;
2496
+ }[];
2203
2497
  description: string;
2204
2498
  acceptedDecisions: {
2205
2499
  id: string;
@@ -2221,10 +2515,6 @@ export declare const FeatureSchema: z.ZodObject<{
2221
2515
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2222
2516
  }[];
2223
2517
  dependsOn: string[];
2224
- sessionInfo: {
2225
- createdAt: string;
2226
- sessionId: string;
2227
- }[];
2228
2518
  discussedAt: string;
2229
2519
  contextReady: boolean;
2230
2520
  contextReadyReason: string;
@@ -2233,13 +2523,19 @@ export declare const FeatureSchema: z.ZodObject<{
2233
2523
  workDone: string;
2234
2524
  workRemaining: string;
2235
2525
  phaseIds: string[];
2526
+ descriptionRef?: string | undefined;
2236
2527
  }, {
2237
2528
  name: string;
2238
2529
  updatedAt: string;
2239
2530
  id: string;
2240
2531
  createdAt: string;
2241
2532
  number?: number | undefined;
2533
+ sessionInfo?: {
2534
+ createdAt: string;
2535
+ sessionId: string;
2536
+ }[] | undefined;
2242
2537
  description?: string | undefined;
2538
+ descriptionRef?: string | undefined;
2243
2539
  acceptedDecisions?: {
2244
2540
  id: string;
2245
2541
  title: string;
@@ -2260,10 +2556,6 @@ export declare const FeatureSchema: z.ZodObject<{
2260
2556
  description?: string | undefined;
2261
2557
  }[] | undefined;
2262
2558
  dependsOn?: string[] | undefined;
2263
- sessionInfo?: {
2264
- createdAt: string;
2265
- sessionId: string;
2266
- }[] | undefined;
2267
2559
  discussedAt?: string | undefined;
2268
2560
  contextReady?: boolean | undefined;
2269
2561
  contextReadyReason?: string | undefined;
@@ -2282,6 +2574,7 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2282
2574
  priority: z.ZodDefault<z.ZodNumber>;
2283
2575
  name: z.ZodString;
2284
2576
  description: z.ZodDefault<z.ZodString>;
2577
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2285
2578
  /** Updated only when this feature's description changes; distinct from entity updatedAt. */
2286
2579
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
2287
2580
  discussedAt: z.ZodDefault<z.ZodString>;
@@ -2357,6 +2650,10 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2357
2650
  updatedAt: string;
2358
2651
  id: string;
2359
2652
  createdAt: string;
2653
+ sessionInfo: {
2654
+ createdAt: string;
2655
+ sessionId: string;
2656
+ }[];
2360
2657
  description: string;
2361
2658
  acceptedDecisions: {
2362
2659
  id: string;
@@ -2378,10 +2675,6 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2378
2675
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2379
2676
  }[];
2380
2677
  dependsOn: string[];
2381
- sessionInfo: {
2382
- createdAt: string;
2383
- sessionId: string;
2384
- }[];
2385
2678
  discussedAt: string;
2386
2679
  contextReady: boolean;
2387
2680
  contextReadyReason: string;
@@ -2390,13 +2683,19 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2390
2683
  workDone: string;
2391
2684
  workRemaining: string;
2392
2685
  phaseIds: string[];
2686
+ descriptionRef?: string | undefined;
2393
2687
  }, {
2394
2688
  name: string;
2395
2689
  updatedAt: string;
2396
2690
  id: string;
2397
2691
  createdAt: string;
2398
2692
  number?: number | undefined;
2693
+ sessionInfo?: {
2694
+ createdAt: string;
2695
+ sessionId: string;
2696
+ }[] | undefined;
2399
2697
  description?: string | undefined;
2698
+ descriptionRef?: string | undefined;
2400
2699
  acceptedDecisions?: {
2401
2700
  id: string;
2402
2701
  title: string;
@@ -2417,10 +2716,6 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2417
2716
  description?: string | undefined;
2418
2717
  }[] | undefined;
2419
2718
  dependsOn?: string[] | undefined;
2420
- sessionInfo?: {
2421
- createdAt: string;
2422
- sessionId: string;
2423
- }[] | undefined;
2424
2719
  discussedAt?: string | undefined;
2425
2720
  contextReady?: boolean | undefined;
2426
2721
  contextReadyReason?: string | undefined;
@@ -2437,7 +2732,11 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2437
2732
  updatedAt: string;
2438
2733
  id: string;
2439
2734
  createdAt: string;
2440
- description: string;
2735
+ sessionInfo: {
2736
+ createdAt: string;
2737
+ sessionId: string;
2738
+ }[];
2739
+ description: string;
2441
2740
  acceptedDecisions: {
2442
2741
  id: string;
2443
2742
  title: string;
@@ -2458,10 +2757,6 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2458
2757
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2459
2758
  }[];
2460
2759
  dependsOn: string[];
2461
- sessionInfo: {
2462
- createdAt: string;
2463
- sessionId: string;
2464
- }[];
2465
2760
  discussedAt: string;
2466
2761
  contextReady: boolean;
2467
2762
  contextReadyReason: string;
@@ -2470,6 +2765,7 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2470
2765
  workDone: string;
2471
2766
  workRemaining: string;
2472
2767
  phaseIds: string[];
2768
+ descriptionRef?: string | undefined;
2473
2769
  }[];
2474
2770
  }, {
2475
2771
  features: {
@@ -2478,7 +2774,12 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2478
2774
  id: string;
2479
2775
  createdAt: string;
2480
2776
  number?: number | undefined;
2777
+ sessionInfo?: {
2778
+ createdAt: string;
2779
+ sessionId: string;
2780
+ }[] | undefined;
2481
2781
  description?: string | undefined;
2782
+ descriptionRef?: string | undefined;
2482
2783
  acceptedDecisions?: {
2483
2784
  id: string;
2484
2785
  title: string;
@@ -2499,10 +2800,6 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
2499
2800
  description?: string | undefined;
2500
2801
  }[] | undefined;
2501
2802
  dependsOn?: string[] | undefined;
2502
- sessionInfo?: {
2503
- createdAt: string;
2504
- sessionId: string;
2505
- }[] | undefined;
2506
2803
  discussedAt?: string | undefined;
2507
2804
  contextReady?: boolean | undefined;
2508
2805
  contextReadyReason?: string | undefined;
@@ -2582,11 +2879,11 @@ export declare const RequirementSchema: z.ZodObject<{
2582
2879
  id: string;
2583
2880
  createdAt: string;
2584
2881
  title: string;
2585
- description: string;
2586
2882
  sessionInfo: {
2587
2883
  createdAt: string;
2588
2884
  sessionId: string;
2589
2885
  }[];
2886
+ description: string;
2590
2887
  macroTasks: {
2591
2888
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2592
2889
  updatedAt: string;
@@ -2602,11 +2899,11 @@ export declare const RequirementSchema: z.ZodObject<{
2602
2899
  id: string;
2603
2900
  createdAt: string;
2604
2901
  title: string;
2605
- description?: string | undefined;
2606
2902
  sessionInfo?: {
2607
2903
  createdAt: string;
2608
2904
  sessionId: string;
2609
2905
  }[] | undefined;
2906
+ description?: string | undefined;
2610
2907
  macroTasks?: {
2611
2908
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2612
2909
  updatedAt: string;
@@ -2665,11 +2962,11 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
2665
2962
  id: string;
2666
2963
  createdAt: string;
2667
2964
  title: string;
2668
- description: string;
2669
2965
  sessionInfo: {
2670
2966
  createdAt: string;
2671
2967
  sessionId: string;
2672
2968
  }[];
2969
+ description: string;
2673
2970
  macroTasks: {
2674
2971
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2675
2972
  updatedAt: string;
@@ -2685,11 +2982,11 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
2685
2982
  id: string;
2686
2983
  createdAt: string;
2687
2984
  title: string;
2688
- description?: string | undefined;
2689
2985
  sessionInfo?: {
2690
2986
  createdAt: string;
2691
2987
  sessionId: string;
2692
2988
  }[] | undefined;
2989
+ description?: string | undefined;
2693
2990
  macroTasks?: {
2694
2991
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2695
2992
  updatedAt: string;
@@ -2707,11 +3004,11 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
2707
3004
  id: string;
2708
3005
  createdAt: string;
2709
3006
  title: string;
2710
- description: string;
2711
3007
  sessionInfo: {
2712
3008
  createdAt: string;
2713
3009
  sessionId: string;
2714
3010
  }[];
3011
+ description: string;
2715
3012
  macroTasks: {
2716
3013
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2717
3014
  updatedAt: string;
@@ -2729,11 +3026,11 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
2729
3026
  id: string;
2730
3027
  createdAt: string;
2731
3028
  title: string;
2732
- description?: string | undefined;
2733
3029
  sessionInfo?: {
2734
3030
  createdAt: string;
2735
3031
  sessionId: string;
2736
3032
  }[] | undefined;
3033
+ description?: string | undefined;
2737
3034
  macroTasks?: {
2738
3035
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2739
3036
  updatedAt: string;
@@ -2745,6 +3042,168 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
2745
3042
  linkedPhaseIds?: string[] | undefined;
2746
3043
  }[];
2747
3044
  }>;
3045
+ export declare const IdeaPromotionTargetTypeSchema: z.ZodEnum<["feature", "phase", "task"]>;
3046
+ export declare const IdeaPromotionSchema: z.ZodObject<{
3047
+ targetType: z.ZodEnum<["feature", "phase", "task"]>;
3048
+ targetId: z.ZodString;
3049
+ targetRef: z.ZodString;
3050
+ promotedAt: z.ZodString;
3051
+ }, "strip", z.ZodTypeAny, {
3052
+ targetType: "feature" | "phase" | "task";
3053
+ targetId: string;
3054
+ targetRef: string;
3055
+ promotedAt: string;
3056
+ }, {
3057
+ targetType: "feature" | "phase" | "task";
3058
+ targetId: string;
3059
+ targetRef: string;
3060
+ promotedAt: string;
3061
+ }>;
3062
+ export declare const IdeaSchema: z.ZodObject<{
3063
+ id: z.ZodString;
3064
+ /** Global Ideas sequence, independent from feature/phase/task numbering. */
3065
+ number: z.ZodNumber;
3066
+ shortId: z.ZodString;
3067
+ title: z.ZodString;
3068
+ description: z.ZodDefault<z.ZodString>;
3069
+ promotion: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3070
+ targetType: z.ZodEnum<["feature", "phase", "task"]>;
3071
+ targetId: z.ZodString;
3072
+ targetRef: z.ZodString;
3073
+ promotedAt: z.ZodString;
3074
+ }, "strip", z.ZodTypeAny, {
3075
+ targetType: "feature" | "phase" | "task";
3076
+ targetId: string;
3077
+ targetRef: string;
3078
+ promotedAt: string;
3079
+ }, {
3080
+ targetType: "feature" | "phase" | "task";
3081
+ targetId: string;
3082
+ targetRef: string;
3083
+ promotedAt: string;
3084
+ }>>>;
3085
+ createdAt: z.ZodString;
3086
+ updatedAt: z.ZodString;
3087
+ }, "strip", z.ZodTypeAny, {
3088
+ number: number;
3089
+ updatedAt: string;
3090
+ id: string;
3091
+ createdAt: string;
3092
+ title: string;
3093
+ description: string;
3094
+ shortId: string;
3095
+ promotion: {
3096
+ targetType: "feature" | "phase" | "task";
3097
+ targetId: string;
3098
+ targetRef: string;
3099
+ promotedAt: string;
3100
+ } | null;
3101
+ }, {
3102
+ number: number;
3103
+ updatedAt: string;
3104
+ id: string;
3105
+ createdAt: string;
3106
+ title: string;
3107
+ shortId: string;
3108
+ description?: string | undefined;
3109
+ promotion?: {
3110
+ targetType: "feature" | "phase" | "task";
3111
+ targetId: string;
3112
+ targetRef: string;
3113
+ promotedAt: string;
3114
+ } | null | undefined;
3115
+ }>;
3116
+ export declare const IdeasDocumentSchema: z.ZodObject<{
3117
+ nextIdeaNumber: z.ZodDefault<z.ZodNumber>;
3118
+ ideas: z.ZodDefault<z.ZodArray<z.ZodObject<{
3119
+ id: z.ZodString;
3120
+ /** Global Ideas sequence, independent from feature/phase/task numbering. */
3121
+ number: z.ZodNumber;
3122
+ shortId: z.ZodString;
3123
+ title: z.ZodString;
3124
+ description: z.ZodDefault<z.ZodString>;
3125
+ promotion: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3126
+ targetType: z.ZodEnum<["feature", "phase", "task"]>;
3127
+ targetId: z.ZodString;
3128
+ targetRef: z.ZodString;
3129
+ promotedAt: z.ZodString;
3130
+ }, "strip", z.ZodTypeAny, {
3131
+ targetType: "feature" | "phase" | "task";
3132
+ targetId: string;
3133
+ targetRef: string;
3134
+ promotedAt: string;
3135
+ }, {
3136
+ targetType: "feature" | "phase" | "task";
3137
+ targetId: string;
3138
+ targetRef: string;
3139
+ promotedAt: string;
3140
+ }>>>;
3141
+ createdAt: z.ZodString;
3142
+ updatedAt: z.ZodString;
3143
+ }, "strip", z.ZodTypeAny, {
3144
+ number: number;
3145
+ updatedAt: string;
3146
+ id: string;
3147
+ createdAt: string;
3148
+ title: string;
3149
+ description: string;
3150
+ shortId: string;
3151
+ promotion: {
3152
+ targetType: "feature" | "phase" | "task";
3153
+ targetId: string;
3154
+ targetRef: string;
3155
+ promotedAt: string;
3156
+ } | null;
3157
+ }, {
3158
+ number: number;
3159
+ updatedAt: string;
3160
+ id: string;
3161
+ createdAt: string;
3162
+ title: string;
3163
+ shortId: string;
3164
+ description?: string | undefined;
3165
+ promotion?: {
3166
+ targetType: "feature" | "phase" | "task";
3167
+ targetId: string;
3168
+ targetRef: string;
3169
+ promotedAt: string;
3170
+ } | null | undefined;
3171
+ }>, "many">>;
3172
+ }, "strip", z.ZodTypeAny, {
3173
+ nextIdeaNumber: number;
3174
+ ideas: {
3175
+ number: number;
3176
+ updatedAt: string;
3177
+ id: string;
3178
+ createdAt: string;
3179
+ title: string;
3180
+ description: string;
3181
+ shortId: string;
3182
+ promotion: {
3183
+ targetType: "feature" | "phase" | "task";
3184
+ targetId: string;
3185
+ targetRef: string;
3186
+ promotedAt: string;
3187
+ } | null;
3188
+ }[];
3189
+ }, {
3190
+ nextIdeaNumber?: number | undefined;
3191
+ ideas?: {
3192
+ number: number;
3193
+ updatedAt: string;
3194
+ id: string;
3195
+ createdAt: string;
3196
+ title: string;
3197
+ shortId: string;
3198
+ description?: string | undefined;
3199
+ promotion?: {
3200
+ targetType: "feature" | "phase" | "task";
3201
+ targetId: string;
3202
+ targetRef: string;
3203
+ promotedAt: string;
3204
+ } | null | undefined;
3205
+ }[] | undefined;
3206
+ }>;
2748
3207
  export declare const PlanWorkspaceSchema: z.ZodObject<{
2749
3208
  manifest: z.ZodObject<{
2750
3209
  schemaVersion: z.ZodLiteral<1>;
@@ -2769,6 +3228,35 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2769
3228
  name: z.ZodString;
2770
3229
  goal: z.ZodDefault<z.ZodString>;
2771
3230
  description: z.ZodDefault<z.ZodString>;
3231
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3232
+ projectGuidelines: z.ZodDefault<z.ZodObject<{
3233
+ content: z.ZodDefault<z.ZodString>;
3234
+ updatedAt: z.ZodDefault<z.ZodString>;
3235
+ sessionInfo: z.ZodDefault<z.ZodArray<z.ZodObject<{
3236
+ sessionId: z.ZodString;
3237
+ createdAt: z.ZodString;
3238
+ }, "strip", z.ZodTypeAny, {
3239
+ createdAt: string;
3240
+ sessionId: string;
3241
+ }, {
3242
+ createdAt: string;
3243
+ sessionId: string;
3244
+ }>, "many">>;
3245
+ }, "strip", z.ZodTypeAny, {
3246
+ updatedAt: string;
3247
+ content: string;
3248
+ sessionInfo: {
3249
+ createdAt: string;
3250
+ sessionId: string;
3251
+ }[];
3252
+ }, {
3253
+ updatedAt?: string | undefined;
3254
+ content?: string | undefined;
3255
+ sessionInfo?: {
3256
+ createdAt: string;
3257
+ sessionId: string;
3258
+ }[] | undefined;
3259
+ }>>;
2772
3260
  webPort: z.ZodDefault<z.ZodNumber>;
2773
3261
  scope: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2774
3262
  outOfScope: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -2925,6 +3413,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2925
3413
  name: string;
2926
3414
  goal: string;
2927
3415
  description: string;
3416
+ projectGuidelines: {
3417
+ updatedAt: string;
3418
+ content: string;
3419
+ sessionInfo: {
3420
+ createdAt: string;
3421
+ sessionId: string;
3422
+ }[];
3423
+ };
2928
3424
  webPort: number;
2929
3425
  scope: string[];
2930
3426
  outOfScope: string[];
@@ -2975,6 +3471,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2975
3471
  resolvedAt: string;
2976
3472
  resumedAt: string;
2977
3473
  }[];
3474
+ descriptionRef?: string | undefined;
2978
3475
  }, {
2979
3476
  name: string;
2980
3477
  workflowRules: {
@@ -2984,6 +3481,15 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2984
3481
  };
2985
3482
  goal?: string | undefined;
2986
3483
  description?: string | undefined;
3484
+ descriptionRef?: string | undefined;
3485
+ projectGuidelines?: {
3486
+ updatedAt?: string | undefined;
3487
+ content?: string | undefined;
3488
+ sessionInfo?: {
3489
+ createdAt: string;
3490
+ sessionId: string;
3491
+ }[] | undefined;
3492
+ } | undefined;
2987
3493
  webPort?: number | undefined;
2988
3494
  scope?: string[] | undefined;
2989
3495
  outOfScope?: string[] | undefined;
@@ -3039,6 +3545,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3039
3545
  priority: z.ZodDefault<z.ZodNumber>;
3040
3546
  name: z.ZodString;
3041
3547
  description: z.ZodDefault<z.ZodString>;
3548
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3042
3549
  /** Updated only when this feature's description changes; distinct from entity updatedAt. */
3043
3550
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
3044
3551
  discussedAt: z.ZodDefault<z.ZodString>;
@@ -3114,6 +3621,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3114
3621
  updatedAt: string;
3115
3622
  id: string;
3116
3623
  createdAt: string;
3624
+ sessionInfo: {
3625
+ createdAt: string;
3626
+ sessionId: string;
3627
+ }[];
3117
3628
  description: string;
3118
3629
  acceptedDecisions: {
3119
3630
  id: string;
@@ -3135,10 +3646,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3135
3646
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3136
3647
  }[];
3137
3648
  dependsOn: string[];
3138
- sessionInfo: {
3139
- createdAt: string;
3140
- sessionId: string;
3141
- }[];
3142
3649
  discussedAt: string;
3143
3650
  contextReady: boolean;
3144
3651
  contextReadyReason: string;
@@ -3147,13 +3654,19 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3147
3654
  workDone: string;
3148
3655
  workRemaining: string;
3149
3656
  phaseIds: string[];
3657
+ descriptionRef?: string | undefined;
3150
3658
  }, {
3151
3659
  name: string;
3152
3660
  updatedAt: string;
3153
3661
  id: string;
3154
3662
  createdAt: string;
3155
3663
  number?: number | undefined;
3664
+ sessionInfo?: {
3665
+ createdAt: string;
3666
+ sessionId: string;
3667
+ }[] | undefined;
3156
3668
  description?: string | undefined;
3669
+ descriptionRef?: string | undefined;
3157
3670
  acceptedDecisions?: {
3158
3671
  id: string;
3159
3672
  title: string;
@@ -3174,10 +3687,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3174
3687
  description?: string | undefined;
3175
3688
  }[] | undefined;
3176
3689
  dependsOn?: string[] | undefined;
3177
- sessionInfo?: {
3178
- createdAt: string;
3179
- sessionId: string;
3180
- }[] | undefined;
3181
3690
  discussedAt?: string | undefined;
3182
3691
  contextReady?: boolean | undefined;
3183
3692
  contextReadyReason?: string | undefined;
@@ -3194,6 +3703,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3194
3703
  updatedAt: string;
3195
3704
  id: string;
3196
3705
  createdAt: string;
3706
+ sessionInfo: {
3707
+ createdAt: string;
3708
+ sessionId: string;
3709
+ }[];
3197
3710
  description: string;
3198
3711
  acceptedDecisions: {
3199
3712
  id: string;
@@ -3215,10 +3728,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3215
3728
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3216
3729
  }[];
3217
3730
  dependsOn: string[];
3218
- sessionInfo: {
3219
- createdAt: string;
3220
- sessionId: string;
3221
- }[];
3222
3731
  discussedAt: string;
3223
3732
  contextReady: boolean;
3224
3733
  contextReadyReason: string;
@@ -3227,6 +3736,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3227
3736
  workDone: string;
3228
3737
  workRemaining: string;
3229
3738
  phaseIds: string[];
3739
+ descriptionRef?: string | undefined;
3230
3740
  }[];
3231
3741
  }, {
3232
3742
  features: {
@@ -3235,7 +3745,12 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3235
3745
  id: string;
3236
3746
  createdAt: string;
3237
3747
  number?: number | undefined;
3748
+ sessionInfo?: {
3749
+ createdAt: string;
3750
+ sessionId: string;
3751
+ }[] | undefined;
3238
3752
  description?: string | undefined;
3753
+ descriptionRef?: string | undefined;
3239
3754
  acceptedDecisions?: {
3240
3755
  id: string;
3241
3756
  title: string;
@@ -3256,10 +3771,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3256
3771
  description?: string | undefined;
3257
3772
  }[] | undefined;
3258
3773
  dependsOn?: string[] | undefined;
3259
- sessionInfo?: {
3260
- createdAt: string;
3261
- sessionId: string;
3262
- }[] | undefined;
3263
3774
  discussedAt?: string | undefined;
3264
3775
  contextReady?: boolean | undefined;
3265
3776
  contextReadyReason?: string | undefined;
@@ -3318,11 +3829,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3318
3829
  id: string;
3319
3830
  createdAt: string;
3320
3831
  title: string;
3321
- description: string;
3322
3832
  sessionInfo: {
3323
3833
  createdAt: string;
3324
3834
  sessionId: string;
3325
3835
  }[];
3836
+ description: string;
3326
3837
  macroTasks: {
3327
3838
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3328
3839
  updatedAt: string;
@@ -3338,11 +3849,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3338
3849
  id: string;
3339
3850
  createdAt: string;
3340
3851
  title: string;
3341
- description?: string | undefined;
3342
3852
  sessionInfo?: {
3343
3853
  createdAt: string;
3344
3854
  sessionId: string;
3345
3855
  }[] | undefined;
3856
+ description?: string | undefined;
3346
3857
  macroTasks?: {
3347
3858
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3348
3859
  updatedAt: string;
@@ -3360,11 +3871,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3360
3871
  id: string;
3361
3872
  createdAt: string;
3362
3873
  title: string;
3363
- description: string;
3364
3874
  sessionInfo: {
3365
3875
  createdAt: string;
3366
3876
  sessionId: string;
3367
3877
  }[];
3878
+ description: string;
3368
3879
  macroTasks: {
3369
3880
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3370
3881
  updatedAt: string;
@@ -3382,11 +3893,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3382
3893
  id: string;
3383
3894
  createdAt: string;
3384
3895
  title: string;
3385
- description?: string | undefined;
3386
3896
  sessionInfo?: {
3387
3897
  createdAt: string;
3388
3898
  sessionId: string;
3389
3899
  }[] | undefined;
3900
+ description?: string | undefined;
3390
3901
  macroTasks?: {
3391
3902
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3392
3903
  updatedAt: string;
@@ -3398,6 +3909,97 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3398
3909
  linkedPhaseIds?: string[] | undefined;
3399
3910
  }[];
3400
3911
  }>;
3912
+ ideas: z.ZodDefault<z.ZodObject<{
3913
+ nextIdeaNumber: z.ZodDefault<z.ZodNumber>;
3914
+ ideas: z.ZodDefault<z.ZodArray<z.ZodObject<{
3915
+ id: z.ZodString;
3916
+ /** Global Ideas sequence, independent from feature/phase/task numbering. */
3917
+ number: z.ZodNumber;
3918
+ shortId: z.ZodString;
3919
+ title: z.ZodString;
3920
+ description: z.ZodDefault<z.ZodString>;
3921
+ promotion: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3922
+ targetType: z.ZodEnum<["feature", "phase", "task"]>;
3923
+ targetId: z.ZodString;
3924
+ targetRef: z.ZodString;
3925
+ promotedAt: z.ZodString;
3926
+ }, "strip", z.ZodTypeAny, {
3927
+ targetType: "feature" | "phase" | "task";
3928
+ targetId: string;
3929
+ targetRef: string;
3930
+ promotedAt: string;
3931
+ }, {
3932
+ targetType: "feature" | "phase" | "task";
3933
+ targetId: string;
3934
+ targetRef: string;
3935
+ promotedAt: string;
3936
+ }>>>;
3937
+ createdAt: z.ZodString;
3938
+ updatedAt: z.ZodString;
3939
+ }, "strip", z.ZodTypeAny, {
3940
+ number: number;
3941
+ updatedAt: string;
3942
+ id: string;
3943
+ createdAt: string;
3944
+ title: string;
3945
+ description: string;
3946
+ shortId: string;
3947
+ promotion: {
3948
+ targetType: "feature" | "phase" | "task";
3949
+ targetId: string;
3950
+ targetRef: string;
3951
+ promotedAt: string;
3952
+ } | null;
3953
+ }, {
3954
+ number: number;
3955
+ updatedAt: string;
3956
+ id: string;
3957
+ createdAt: string;
3958
+ title: string;
3959
+ shortId: string;
3960
+ description?: string | undefined;
3961
+ promotion?: {
3962
+ targetType: "feature" | "phase" | "task";
3963
+ targetId: string;
3964
+ targetRef: string;
3965
+ promotedAt: string;
3966
+ } | null | undefined;
3967
+ }>, "many">>;
3968
+ }, "strip", z.ZodTypeAny, {
3969
+ nextIdeaNumber: number;
3970
+ ideas: {
3971
+ number: number;
3972
+ updatedAt: string;
3973
+ id: string;
3974
+ createdAt: string;
3975
+ title: string;
3976
+ description: string;
3977
+ shortId: string;
3978
+ promotion: {
3979
+ targetType: "feature" | "phase" | "task";
3980
+ targetId: string;
3981
+ targetRef: string;
3982
+ promotedAt: string;
3983
+ } | null;
3984
+ }[];
3985
+ }, {
3986
+ nextIdeaNumber?: number | undefined;
3987
+ ideas?: {
3988
+ number: number;
3989
+ updatedAt: string;
3990
+ id: string;
3991
+ createdAt: string;
3992
+ title: string;
3993
+ shortId: string;
3994
+ description?: string | undefined;
3995
+ promotion?: {
3996
+ targetType: "feature" | "phase" | "task";
3997
+ targetId: string;
3998
+ targetRef: string;
3999
+ promotedAt: string;
4000
+ } | null | undefined;
4001
+ }[] | undefined;
4002
+ }>>;
3401
4003
  phases: z.ZodArray<z.ZodObject<{
3402
4004
  id: z.ZodString;
3403
4005
  /** MUST be a feature UUID (not a ref like "F005"). Validated at the schema
@@ -3415,6 +4017,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3415
4017
  contextReadyReason: z.ZodDefault<z.ZodString>;
3416
4018
  summary: z.ZodDefault<z.ZodString>;
3417
4019
  description: z.ZodDefault<z.ZodString>;
4020
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3418
4021
  /** Updated only when this phase's description changes; distinct from entity updatedAt. */
3419
4022
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
3420
4023
  notes: z.ZodDefault<z.ZodString>;
@@ -3462,6 +4065,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3462
4065
  title: z.ZodString;
3463
4066
  status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3464
4067
  description: z.ZodDefault<z.ZodString>;
4068
+ descriptionRef: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3465
4069
  /** Updated only when this task's description changes; distinct from entity updatedAt. */
3466
4070
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
3467
4071
  notes: z.ZodDefault<z.ZodString>;
@@ -3643,6 +4247,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3643
4247
  id: string;
3644
4248
  createdAt: string;
3645
4249
  title: string;
4250
+ sessionInfo: {
4251
+ createdAt: string;
4252
+ sessionId: string;
4253
+ }[];
3646
4254
  description: string;
3647
4255
  decisions: string[];
3648
4256
  acceptedDecisions: {
@@ -3703,10 +4311,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3703
4311
  }[];
3704
4312
  startedAt: string;
3705
4313
  completedAt: string;
3706
- sessionInfo: {
3707
- createdAt: string;
3708
- sessionId: string;
3709
- }[];
4314
+ descriptionRef?: string | undefined;
3710
4315
  }, {
3711
4316
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3712
4317
  updatedAt: string;
@@ -3717,7 +4322,12 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3717
4322
  shortName: string;
3718
4323
  number?: number | undefined;
3719
4324
  notes?: string | undefined;
4325
+ sessionInfo?: {
4326
+ createdAt: string;
4327
+ sessionId: string;
4328
+ }[] | undefined;
3720
4329
  description?: string | undefined;
4330
+ descriptionRef?: string | undefined;
3721
4331
  decisions?: string[] | undefined;
3722
4332
  acceptedDecisions?: {
3723
4333
  id: string;
@@ -3775,10 +4385,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3775
4385
  }[] | undefined;
3776
4386
  startedAt?: string | undefined;
3777
4387
  completedAt?: string | undefined;
3778
- sessionInfo?: {
3779
- createdAt: string;
3780
- sessionId: string;
3781
- }[] | undefined;
3782
4388
  }>, {
3783
4389
  checklist: {
3784
4390
  id: string;
@@ -3793,6 +4399,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3793
4399
  id: string;
3794
4400
  createdAt: string;
3795
4401
  title: string;
4402
+ sessionInfo: {
4403
+ createdAt: string;
4404
+ sessionId: string;
4405
+ }[];
3796
4406
  description: string;
3797
4407
  decisions: string[];
3798
4408
  acceptedDecisions: {
@@ -3847,10 +4457,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3847
4457
  }[];
3848
4458
  startedAt: string;
3849
4459
  completedAt: string;
3850
- sessionInfo: {
3851
- createdAt: string;
3852
- sessionId: string;
3853
- }[];
4460
+ descriptionRef?: string | undefined;
3854
4461
  }, {
3855
4462
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3856
4463
  updatedAt: string;
@@ -3861,7 +4468,12 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3861
4468
  shortName: string;
3862
4469
  number?: number | undefined;
3863
4470
  notes?: string | undefined;
4471
+ sessionInfo?: {
4472
+ createdAt: string;
4473
+ sessionId: string;
4474
+ }[] | undefined;
3864
4475
  description?: string | undefined;
4476
+ descriptionRef?: string | undefined;
3865
4477
  decisions?: string[] | undefined;
3866
4478
  acceptedDecisions?: {
3867
4479
  id: string;
@@ -3919,15 +4531,79 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3919
4531
  }[] | undefined;
3920
4532
  startedAt?: string | undefined;
3921
4533
  completedAt?: string | undefined;
3922
- sessionInfo?: {
3923
- createdAt: string;
3924
- sessionId: string;
3925
- }[] | undefined;
3926
4534
  }>, "many">>;
3927
4535
  createdAt: z.ZodString;
3928
4536
  updatedAt: z.ZodString;
3929
4537
  handoff: z.ZodDefault<z.ZodString>;
3930
4538
  handoffUpdatedAt: z.ZodDefault<z.ZodString>;
4539
+ /** Durable proof that the active handoff passed the versioned completeness and read-back contract. */
4540
+ handoffAudit: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4541
+ version: z.ZodNumber;
4542
+ entries: z.ZodArray<z.ZodObject<{
4543
+ category: z.ZodString;
4544
+ status: z.ZodEnum<["captured", "not-applicable"]>;
4545
+ detail: z.ZodString;
4546
+ }, "strip", z.ZodTypeAny, {
4547
+ status: "captured" | "not-applicable";
4548
+ category: string;
4549
+ detail: string;
4550
+ }, {
4551
+ status: "captured" | "not-applicable";
4552
+ category: string;
4553
+ detail: string;
4554
+ }>, "many">;
4555
+ supportingDocuments: z.ZodDefault<z.ZodArray<z.ZodObject<{
4556
+ path: z.ZodString;
4557
+ description: z.ZodString;
4558
+ contentHash: z.ZodString;
4559
+ contentLength: z.ZodNumber;
4560
+ }, "strip", z.ZodTypeAny, {
4561
+ path: string;
4562
+ description: string;
4563
+ contentHash: string;
4564
+ contentLength: number;
4565
+ }, {
4566
+ path: string;
4567
+ description: string;
4568
+ contentHash: string;
4569
+ contentLength: number;
4570
+ }>, "many">>;
4571
+ contentHash: z.ZodString;
4572
+ contentLength: z.ZodNumber;
4573
+ verifiedAt: z.ZodString;
4574
+ }, "strip", z.ZodTypeAny, {
4575
+ entries: {
4576
+ status: "captured" | "not-applicable";
4577
+ category: string;
4578
+ detail: string;
4579
+ }[];
4580
+ contentHash: string;
4581
+ contentLength: number;
4582
+ version: number;
4583
+ supportingDocuments: {
4584
+ path: string;
4585
+ description: string;
4586
+ contentHash: string;
4587
+ contentLength: number;
4588
+ }[];
4589
+ verifiedAt: string;
4590
+ }, {
4591
+ entries: {
4592
+ status: "captured" | "not-applicable";
4593
+ category: string;
4594
+ detail: string;
4595
+ }[];
4596
+ contentHash: string;
4597
+ contentLength: number;
4598
+ version: number;
4599
+ verifiedAt: string;
4600
+ supportingDocuments?: {
4601
+ path: string;
4602
+ description: string;
4603
+ contentHash: string;
4604
+ contentLength: number;
4605
+ }[] | undefined;
4606
+ }>>>;
3931
4607
  /** When the handoff was last read/acknowledged on recap (ISO). Non-empty means
3932
4608
  * the agent has seen it; the recap won't re-prompt every turn. Reading is
3933
4609
  * non-mutating: content remains until every task is done/canceled, a later
@@ -3995,6 +4671,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3995
4671
  summary: string;
3996
4672
  createdAt: string;
3997
4673
  title: string;
4674
+ sessionInfo: {
4675
+ createdAt: string;
4676
+ sessionId: string;
4677
+ }[];
3998
4678
  description: string;
3999
4679
  decisions: string[];
4000
4680
  acceptedDecisions: {
@@ -4017,10 +4697,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4017
4697
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
4018
4698
  }[];
4019
4699
  dependsOn: string[];
4020
- sessionInfo: {
4021
- createdAt: string;
4022
- sessionId: string;
4023
- }[];
4024
4700
  slug: string;
4025
4701
  discussedAt: string;
4026
4702
  contextReady: boolean;
@@ -4045,6 +4721,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4045
4721
  id: string;
4046
4722
  createdAt: string;
4047
4723
  title: string;
4724
+ sessionInfo: {
4725
+ createdAt: string;
4726
+ sessionId: string;
4727
+ }[];
4048
4728
  description: string;
4049
4729
  decisions: string[];
4050
4730
  acceptedDecisions: {
@@ -4099,19 +4779,34 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4099
4779
  }[];
4100
4780
  startedAt: string;
4101
4781
  completedAt: string;
4102
- sessionInfo: {
4103
- createdAt: string;
4104
- sessionId: string;
4105
- }[];
4782
+ descriptionRef?: string | undefined;
4106
4783
  }[];
4107
4784
  handoff: string;
4108
4785
  handoffUpdatedAt: string;
4786
+ handoffAudit: {
4787
+ entries: {
4788
+ status: "captured" | "not-applicable";
4789
+ category: string;
4790
+ detail: string;
4791
+ }[];
4792
+ contentHash: string;
4793
+ contentLength: number;
4794
+ version: number;
4795
+ supportingDocuments: {
4796
+ path: string;
4797
+ description: string;
4798
+ contentHash: string;
4799
+ contentLength: number;
4800
+ }[];
4801
+ verifiedAt: string;
4802
+ } | null;
4109
4803
  handoffReadAt: string;
4110
4804
  handoffHistory: {
4111
4805
  file: string;
4112
4806
  reason: string;
4113
4807
  clearedAt: string;
4114
4808
  }[];
4809
+ descriptionRef?: string | undefined;
4115
4810
  featureId?: string | undefined;
4116
4811
  }, {
4117
4812
  number: number;
@@ -4123,7 +4818,12 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4123
4818
  dependencies?: string[] | undefined;
4124
4819
  notes?: string | undefined;
4125
4820
  summary?: string | undefined;
4821
+ sessionInfo?: {
4822
+ createdAt: string;
4823
+ sessionId: string;
4824
+ }[] | undefined;
4126
4825
  description?: string | undefined;
4826
+ descriptionRef?: string | undefined;
4127
4827
  decisions?: string[] | undefined;
4128
4828
  acceptedDecisions?: {
4129
4829
  id: string;
@@ -4145,10 +4845,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4145
4845
  description?: string | undefined;
4146
4846
  }[] | undefined;
4147
4847
  dependsOn?: string[] | undefined;
4148
- sessionInfo?: {
4149
- createdAt: string;
4150
- sessionId: string;
4151
- }[] | undefined;
4152
4848
  featureId?: string | undefined;
4153
4849
  discussedAt?: string | undefined;
4154
4850
  contextReady?: boolean | undefined;
@@ -4169,7 +4865,12 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4169
4865
  shortName: string;
4170
4866
  number?: number | undefined;
4171
4867
  notes?: string | undefined;
4868
+ sessionInfo?: {
4869
+ createdAt: string;
4870
+ sessionId: string;
4871
+ }[] | undefined;
4172
4872
  description?: string | undefined;
4873
+ descriptionRef?: string | undefined;
4173
4874
  decisions?: string[] | undefined;
4174
4875
  acceptedDecisions?: {
4175
4876
  id: string;
@@ -4227,13 +4928,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4227
4928
  }[] | undefined;
4228
4929
  startedAt?: string | undefined;
4229
4930
  completedAt?: string | undefined;
4230
- sessionInfo?: {
4231
- createdAt: string;
4232
- sessionId: string;
4233
- }[] | undefined;
4234
4931
  }[] | undefined;
4235
4932
  handoff?: string | undefined;
4236
4933
  handoffUpdatedAt?: string | undefined;
4934
+ handoffAudit?: {
4935
+ entries: {
4936
+ status: "captured" | "not-applicable";
4937
+ category: string;
4938
+ detail: string;
4939
+ }[];
4940
+ contentHash: string;
4941
+ contentLength: number;
4942
+ version: number;
4943
+ verifiedAt: string;
4944
+ supportingDocuments?: {
4945
+ path: string;
4946
+ description: string;
4947
+ contentHash: string;
4948
+ contentLength: number;
4949
+ }[] | undefined;
4950
+ } | null | undefined;
4237
4951
  handoffReadAt?: string | undefined;
4238
4952
  handoffHistory?: {
4239
4953
  clearedAt: string;
@@ -4242,6 +4956,70 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4242
4956
  }[] | undefined;
4243
4957
  }>, "many">;
4244
4958
  }, "strip", z.ZodTypeAny, {
4959
+ project: {
4960
+ name: string;
4961
+ goal: string;
4962
+ description: string;
4963
+ projectGuidelines: {
4964
+ updatedAt: string;
4965
+ content: string;
4966
+ sessionInfo: {
4967
+ createdAt: string;
4968
+ sessionId: string;
4969
+ }[];
4970
+ };
4971
+ webPort: number;
4972
+ scope: string[];
4973
+ outOfScope: string[];
4974
+ decisions: string[];
4975
+ globalRules: string[];
4976
+ technologies: string[];
4977
+ tools: string[];
4978
+ contentLanguage: string;
4979
+ chatLanguage: string;
4980
+ workflowRules: {
4981
+ beforePhaseStart: string[];
4982
+ beforeTaskStart: string[];
4983
+ afterPhaseComplete: string[];
4984
+ };
4985
+ acceptedDecisions: {
4986
+ id: string;
4987
+ title: string;
4988
+ decision: string;
4989
+ rationale: string;
4990
+ implementationNotes: string;
4991
+ acceptedAt: string;
4992
+ }[];
4993
+ nextFeatureNumber: number;
4994
+ nextPhaseNumber: number;
4995
+ nextTaskNumber: number;
4996
+ workDeviations: {
4997
+ id: string;
4998
+ createdAt: string;
4999
+ reason: string;
5000
+ recommendedTaskId: string;
5001
+ temporaryTaskId: string;
5002
+ resumeTaskId: string;
5003
+ snapshot: {
5004
+ id: string;
5005
+ reason: string;
5006
+ whatWasBeingDone: string;
5007
+ resumeLocation: string;
5008
+ howToResume: string;
5009
+ relatedTaskId: string;
5010
+ pausedAt: string;
5011
+ pausedBy: string;
5012
+ } | null;
5013
+ requestedBy: "agent" | "user";
5014
+ approvedBy: string;
5015
+ state: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled";
5016
+ activatedAt: string;
5017
+ resumeRequiredAt: string;
5018
+ resolvedAt: string;
5019
+ resumedAt: string;
5020
+ }[];
5021
+ descriptionRef?: string | undefined;
5022
+ };
4245
5023
  features: {
4246
5024
  features: {
4247
5025
  number: number;
@@ -4249,6 +5027,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4249
5027
  updatedAt: string;
4250
5028
  id: string;
4251
5029
  createdAt: string;
5030
+ sessionInfo: {
5031
+ createdAt: string;
5032
+ sessionId: string;
5033
+ }[];
4252
5034
  description: string;
4253
5035
  acceptedDecisions: {
4254
5036
  id: string;
@@ -4270,10 +5052,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4270
5052
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4271
5053
  }[];
4272
5054
  dependsOn: string[];
4273
- sessionInfo: {
4274
- createdAt: string;
4275
- sessionId: string;
4276
- }[];
4277
5055
  discussedAt: string;
4278
5056
  contextReady: boolean;
4279
5057
  contextReadyReason: string;
@@ -4282,6 +5060,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4282
5060
  workDone: string;
4283
5061
  workRemaining: string;
4284
5062
  phaseIds: string[];
5063
+ descriptionRef?: string | undefined;
4285
5064
  }[];
4286
5065
  };
4287
5066
  requirements: {
@@ -4291,11 +5070,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4291
5070
  id: string;
4292
5071
  createdAt: string;
4293
5072
  title: string;
4294
- description: string;
4295
5073
  sessionInfo: {
4296
5074
  createdAt: string;
4297
5075
  sessionId: string;
4298
5076
  }[];
5077
+ description: string;
4299
5078
  macroTasks: {
4300
5079
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4301
5080
  updatedAt: string;
@@ -4307,6 +5086,24 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4307
5086
  linkedPhaseIds: string[];
4308
5087
  }[];
4309
5088
  };
5089
+ ideas: {
5090
+ nextIdeaNumber: number;
5091
+ ideas: {
5092
+ number: number;
5093
+ updatedAt: string;
5094
+ id: string;
5095
+ createdAt: string;
5096
+ title: string;
5097
+ description: string;
5098
+ shortId: string;
5099
+ promotion: {
5100
+ targetType: "feature" | "phase" | "task";
5101
+ targetId: string;
5102
+ targetRef: string;
5103
+ promotedAt: string;
5104
+ } | null;
5105
+ }[];
5106
+ };
4310
5107
  manifest: {
4311
5108
  updatedAt: string;
4312
5109
  schemaVersion: 1;
@@ -4314,61 +5111,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4314
5111
  projectName: string;
4315
5112
  createdAt: string;
4316
5113
  };
4317
- project: {
4318
- name: string;
4319
- goal: string;
4320
- description: string;
4321
- webPort: number;
4322
- scope: string[];
4323
- outOfScope: string[];
4324
- decisions: string[];
4325
- globalRules: string[];
4326
- technologies: string[];
4327
- tools: string[];
4328
- contentLanguage: string;
4329
- chatLanguage: string;
4330
- workflowRules: {
4331
- beforePhaseStart: string[];
4332
- beforeTaskStart: string[];
4333
- afterPhaseComplete: string[];
4334
- };
4335
- acceptedDecisions: {
4336
- id: string;
4337
- title: string;
4338
- decision: string;
4339
- rationale: string;
4340
- implementationNotes: string;
4341
- acceptedAt: string;
4342
- }[];
4343
- nextFeatureNumber: number;
4344
- nextPhaseNumber: number;
4345
- nextTaskNumber: number;
4346
- workDeviations: {
4347
- id: string;
4348
- createdAt: string;
4349
- reason: string;
4350
- recommendedTaskId: string;
4351
- temporaryTaskId: string;
4352
- resumeTaskId: string;
4353
- snapshot: {
4354
- id: string;
4355
- reason: string;
4356
- whatWasBeingDone: string;
4357
- resumeLocation: string;
4358
- howToResume: string;
4359
- relatedTaskId: string;
4360
- pausedAt: string;
4361
- pausedBy: string;
4362
- } | null;
4363
- requestedBy: "agent" | "user";
4364
- approvedBy: string;
4365
- state: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled";
4366
- activatedAt: string;
4367
- resumeRequiredAt: string;
4368
- resolvedAt: string;
4369
- resumedAt: string;
4370
- }[];
4371
- };
4372
5114
  phases: {
4373
5115
  number: number;
4374
5116
  dependencies: string[];
@@ -4378,6 +5120,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4378
5120
  summary: string;
4379
5121
  createdAt: string;
4380
5122
  title: string;
5123
+ sessionInfo: {
5124
+ createdAt: string;
5125
+ sessionId: string;
5126
+ }[];
4381
5127
  description: string;
4382
5128
  decisions: string[];
4383
5129
  acceptedDecisions: {
@@ -4400,10 +5146,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4400
5146
  toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
4401
5147
  }[];
4402
5148
  dependsOn: string[];
4403
- sessionInfo: {
4404
- createdAt: string;
4405
- sessionId: string;
4406
- }[];
4407
5149
  slug: string;
4408
5150
  discussedAt: string;
4409
5151
  contextReady: boolean;
@@ -4428,6 +5170,10 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4428
5170
  id: string;
4429
5171
  createdAt: string;
4430
5172
  title: string;
5173
+ sessionInfo: {
5174
+ createdAt: string;
5175
+ sessionId: string;
5176
+ }[];
4431
5177
  description: string;
4432
5178
  decisions: string[];
4433
5179
  acceptedDecisions: {
@@ -4482,22 +5228,101 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4482
5228
  }[];
4483
5229
  startedAt: string;
4484
5230
  completedAt: string;
4485
- sessionInfo: {
4486
- createdAt: string;
4487
- sessionId: string;
4488
- }[];
5231
+ descriptionRef?: string | undefined;
4489
5232
  }[];
4490
5233
  handoff: string;
4491
5234
  handoffUpdatedAt: string;
5235
+ handoffAudit: {
5236
+ entries: {
5237
+ status: "captured" | "not-applicable";
5238
+ category: string;
5239
+ detail: string;
5240
+ }[];
5241
+ contentHash: string;
5242
+ contentLength: number;
5243
+ version: number;
5244
+ supportingDocuments: {
5245
+ path: string;
5246
+ description: string;
5247
+ contentHash: string;
5248
+ contentLength: number;
5249
+ }[];
5250
+ verifiedAt: string;
5251
+ } | null;
4492
5252
  handoffReadAt: string;
4493
5253
  handoffHistory: {
4494
5254
  file: string;
4495
5255
  reason: string;
4496
5256
  clearedAt: string;
4497
5257
  }[];
5258
+ descriptionRef?: string | undefined;
4498
5259
  featureId?: string | undefined;
4499
5260
  }[];
4500
5261
  }, {
5262
+ project: {
5263
+ name: string;
5264
+ workflowRules: {
5265
+ beforePhaseStart?: string[] | undefined;
5266
+ beforeTaskStart?: string[] | undefined;
5267
+ afterPhaseComplete?: string[] | undefined;
5268
+ };
5269
+ goal?: string | undefined;
5270
+ description?: string | undefined;
5271
+ descriptionRef?: string | undefined;
5272
+ projectGuidelines?: {
5273
+ updatedAt?: string | undefined;
5274
+ content?: string | undefined;
5275
+ sessionInfo?: {
5276
+ createdAt: string;
5277
+ sessionId: string;
5278
+ }[] | undefined;
5279
+ } | undefined;
5280
+ webPort?: number | undefined;
5281
+ scope?: string[] | undefined;
5282
+ outOfScope?: string[] | undefined;
5283
+ decisions?: string[] | undefined;
5284
+ globalRules?: string[] | undefined;
5285
+ technologies?: string[] | undefined;
5286
+ tools?: string[] | undefined;
5287
+ contentLanguage?: string | undefined;
5288
+ chatLanguage?: string | undefined;
5289
+ acceptedDecisions?: {
5290
+ id: string;
5291
+ title: string;
5292
+ acceptedAt: string;
5293
+ decision?: string | undefined;
5294
+ rationale?: string | undefined;
5295
+ implementationNotes?: string | undefined;
5296
+ }[] | undefined;
5297
+ nextFeatureNumber?: number | undefined;
5298
+ nextPhaseNumber?: number | undefined;
5299
+ nextTaskNumber?: number | undefined;
5300
+ workDeviations?: {
5301
+ id: string;
5302
+ createdAt: string;
5303
+ recommendedTaskId: string;
5304
+ temporaryTaskId: string;
5305
+ resumeTaskId: string;
5306
+ reason?: string | undefined;
5307
+ snapshot?: {
5308
+ id: string;
5309
+ reason: string;
5310
+ whatWasBeingDone: string;
5311
+ resumeLocation: string;
5312
+ howToResume: string;
5313
+ pausedAt: string;
5314
+ relatedTaskId?: string | undefined;
5315
+ pausedBy?: string | undefined;
5316
+ } | null | undefined;
5317
+ requestedBy?: "agent" | "user" | undefined;
5318
+ approvedBy?: string | undefined;
5319
+ state?: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled" | undefined;
5320
+ activatedAt?: string | undefined;
5321
+ resumeRequiredAt?: string | undefined;
5322
+ resolvedAt?: string | undefined;
5323
+ resumedAt?: string | undefined;
5324
+ }[] | undefined;
5325
+ };
4501
5326
  features: {
4502
5327
  features: {
4503
5328
  name: string;
@@ -4505,7 +5330,12 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4505
5330
  id: string;
4506
5331
  createdAt: string;
4507
5332
  number?: number | undefined;
5333
+ sessionInfo?: {
5334
+ createdAt: string;
5335
+ sessionId: string;
5336
+ }[] | undefined;
4508
5337
  description?: string | undefined;
5338
+ descriptionRef?: string | undefined;
4509
5339
  acceptedDecisions?: {
4510
5340
  id: string;
4511
5341
  title: string;
@@ -4526,10 +5356,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4526
5356
  description?: string | undefined;
4527
5357
  }[] | undefined;
4528
5358
  dependsOn?: string[] | undefined;
4529
- sessionInfo?: {
4530
- createdAt: string;
4531
- sessionId: string;
4532
- }[] | undefined;
4533
5359
  discussedAt?: string | undefined;
4534
5360
  contextReady?: boolean | undefined;
4535
5361
  contextReadyReason?: string | undefined;
@@ -4547,11 +5373,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4547
5373
  id: string;
4548
5374
  createdAt: string;
4549
5375
  title: string;
4550
- description?: string | undefined;
4551
5376
  sessionInfo?: {
4552
5377
  createdAt: string;
4553
5378
  sessionId: string;
4554
5379
  }[] | undefined;
5380
+ description?: string | undefined;
4555
5381
  macroTasks?: {
4556
5382
  status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4557
5383
  updatedAt: string;
@@ -4570,61 +5396,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4570
5396
  projectName: string;
4571
5397
  createdAt: string;
4572
5398
  };
4573
- project: {
4574
- name: string;
4575
- workflowRules: {
4576
- beforePhaseStart?: string[] | undefined;
4577
- beforeTaskStart?: string[] | undefined;
4578
- afterPhaseComplete?: string[] | undefined;
4579
- };
4580
- goal?: string | undefined;
4581
- description?: string | undefined;
4582
- webPort?: number | undefined;
4583
- scope?: string[] | undefined;
4584
- outOfScope?: string[] | undefined;
4585
- decisions?: string[] | undefined;
4586
- globalRules?: string[] | undefined;
4587
- technologies?: string[] | undefined;
4588
- tools?: string[] | undefined;
4589
- contentLanguage?: string | undefined;
4590
- chatLanguage?: string | undefined;
4591
- acceptedDecisions?: {
4592
- id: string;
4593
- title: string;
4594
- acceptedAt: string;
4595
- decision?: string | undefined;
4596
- rationale?: string | undefined;
4597
- implementationNotes?: string | undefined;
4598
- }[] | undefined;
4599
- nextFeatureNumber?: number | undefined;
4600
- nextPhaseNumber?: number | undefined;
4601
- nextTaskNumber?: number | undefined;
4602
- workDeviations?: {
4603
- id: string;
4604
- createdAt: string;
4605
- recommendedTaskId: string;
4606
- temporaryTaskId: string;
4607
- resumeTaskId: string;
4608
- reason?: string | undefined;
4609
- snapshot?: {
4610
- id: string;
4611
- reason: string;
4612
- whatWasBeingDone: string;
4613
- resumeLocation: string;
4614
- howToResume: string;
4615
- pausedAt: string;
4616
- relatedTaskId?: string | undefined;
4617
- pausedBy?: string | undefined;
4618
- } | null | undefined;
4619
- requestedBy?: "agent" | "user" | undefined;
4620
- approvedBy?: string | undefined;
4621
- state?: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled" | undefined;
4622
- activatedAt?: string | undefined;
4623
- resumeRequiredAt?: string | undefined;
4624
- resolvedAt?: string | undefined;
4625
- resumedAt?: string | undefined;
4626
- }[] | undefined;
4627
- };
4628
5399
  phases: {
4629
5400
  number: number;
4630
5401
  updatedAt: string;
@@ -4635,7 +5406,12 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4635
5406
  dependencies?: string[] | undefined;
4636
5407
  notes?: string | undefined;
4637
5408
  summary?: string | undefined;
5409
+ sessionInfo?: {
5410
+ createdAt: string;
5411
+ sessionId: string;
5412
+ }[] | undefined;
4638
5413
  description?: string | undefined;
5414
+ descriptionRef?: string | undefined;
4639
5415
  decisions?: string[] | undefined;
4640
5416
  acceptedDecisions?: {
4641
5417
  id: string;
@@ -4657,10 +5433,6 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4657
5433
  description?: string | undefined;
4658
5434
  }[] | undefined;
4659
5435
  dependsOn?: string[] | undefined;
4660
- sessionInfo?: {
4661
- createdAt: string;
4662
- sessionId: string;
4663
- }[] | undefined;
4664
5436
  featureId?: string | undefined;
4665
5437
  discussedAt?: string | undefined;
4666
5438
  contextReady?: boolean | undefined;
@@ -4681,7 +5453,12 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4681
5453
  shortName: string;
4682
5454
  number?: number | undefined;
4683
5455
  notes?: string | undefined;
5456
+ sessionInfo?: {
5457
+ createdAt: string;
5458
+ sessionId: string;
5459
+ }[] | undefined;
4684
5460
  description?: string | undefined;
5461
+ descriptionRef?: string | undefined;
4685
5462
  decisions?: string[] | undefined;
4686
5463
  acceptedDecisions?: {
4687
5464
  id: string;
@@ -4739,13 +5516,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4739
5516
  }[] | undefined;
4740
5517
  startedAt?: string | undefined;
4741
5518
  completedAt?: string | undefined;
4742
- sessionInfo?: {
4743
- createdAt: string;
4744
- sessionId: string;
4745
- }[] | undefined;
4746
5519
  }[] | undefined;
4747
5520
  handoff?: string | undefined;
4748
5521
  handoffUpdatedAt?: string | undefined;
5522
+ handoffAudit?: {
5523
+ entries: {
5524
+ status: "captured" | "not-applicable";
5525
+ category: string;
5526
+ detail: string;
5527
+ }[];
5528
+ contentHash: string;
5529
+ contentLength: number;
5530
+ version: number;
5531
+ verifiedAt: string;
5532
+ supportingDocuments?: {
5533
+ path: string;
5534
+ description: string;
5535
+ contentHash: string;
5536
+ contentLength: number;
5537
+ }[] | undefined;
5538
+ } | null | undefined;
4749
5539
  handoffReadAt?: string | undefined;
4750
5540
  handoffHistory?: {
4751
5541
  clearedAt: string;
@@ -4753,6 +5543,24 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
4753
5543
  reason?: string | undefined;
4754
5544
  }[] | undefined;
4755
5545
  }[];
5546
+ ideas?: {
5547
+ nextIdeaNumber?: number | undefined;
5548
+ ideas?: {
5549
+ number: number;
5550
+ updatedAt: string;
5551
+ id: string;
5552
+ createdAt: string;
5553
+ title: string;
5554
+ shortId: string;
5555
+ description?: string | undefined;
5556
+ promotion?: {
5557
+ targetType: "feature" | "phase" | "task";
5558
+ targetId: string;
5559
+ targetRef: string;
5560
+ promotedAt: string;
5561
+ } | null | undefined;
5562
+ }[] | undefined;
5563
+ } | undefined;
4756
5564
  }>;
4757
5565
  export type Timestamp = z.infer<typeof TimestampSchema>;
4758
5566
  export type SessionInfo = z.infer<typeof SessionInfoSchema>;
@@ -4776,6 +5584,9 @@ export type SubtaskStatus = z.infer<typeof SubtaskStatusSchema>;
4776
5584
  export type Manifest = z.infer<typeof ManifestSchema>;
4777
5585
  export type WorkflowRules = z.infer<typeof WorkflowRulesSchema>;
4778
5586
  export type AcceptedDecision = z.infer<typeof AcceptedDecisionSchema>;
5587
+ export type HandoffCompletenessEntry = z.infer<typeof HandoffCompletenessEntrySchema>;
5588
+ export type HandoffSupportingDocument = z.infer<typeof HandoffSupportingDocumentSchema>;
5589
+ export type HandoffCompletenessAudit = z.infer<typeof HandoffCompletenessAuditSchema>;
4779
5590
  export type Project = z.infer<typeof ProjectSchema>;
4780
5591
  export type WorkDeviation = z.infer<typeof WorkDeviationSchema>;
4781
5592
  export type TaskPauseSnapshot = z.infer<typeof TaskPauseSnapshotSchema>;
@@ -4790,6 +5601,10 @@ export type Phase = z.infer<typeof PhaseSchema> & {
4790
5601
  export type MacroTask = z.infer<typeof MacroTaskSchema>;
4791
5602
  export type Requirement = z.infer<typeof RequirementSchema>;
4792
5603
  export type RequirementsDocument = z.infer<typeof RequirementsDocumentSchema>;
5604
+ export type IdeaPromotionTargetType = z.infer<typeof IdeaPromotionTargetTypeSchema>;
5605
+ export type IdeaPromotion = z.infer<typeof IdeaPromotionSchema>;
5606
+ export type Idea = z.infer<typeof IdeaSchema>;
5607
+ export type IdeasDocument = z.infer<typeof IdeasDocumentSchema>;
4793
5608
  export type PlanWorkspace = Omit<z.infer<typeof PlanWorkspaceSchema>, "phases" | "features"> & {
4794
5609
  phases: Phase[];
4795
5610
  features: FeaturesDocument;