@c4a/context 0.7.4 → 0.7.5

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.
@@ -1072,13 +1072,6 @@ export declare const indexerProviderResolutionSemanticInputSchema: z.ZodObject<{
1072
1072
  value?: unknown;
1073
1073
  } | undefined;
1074
1074
  }>;
1075
- export declare const indexerProviderFinalizationSemanticInputSchema: z.ZodObject<{
1076
- stage: z.ZodLiteral<"provider-finalization">;
1077
- }, "strict", z.ZodTypeAny, {
1078
- stage: "provider-finalization";
1079
- }, {
1080
- stage: "provider-finalization";
1081
- }>;
1082
1075
  export declare const indexerProviderProgramAuthorizationSemanticInputSchema: z.ZodObject<{
1083
1076
  stage: z.ZodLiteral<"provider-program-authorization">;
1084
1077
  decision: z.ZodEnum<["approved", "rejected"]>;
@@ -1092,8 +1085,6 @@ export declare const indexerProviderProgramAuthorizationSemanticInputSchema: z.Z
1092
1085
  export declare const indexerPartitionSemanticInputSchema: z.ZodUnion<[z.ZodObject<{
1093
1086
  stage: z.ZodLiteral<"partition">;
1094
1087
  outcome: z.ZodLiteral<"complete">;
1095
- unit_type: z.ZodString;
1096
- partition_axis: z.ZodString;
1097
1088
  groups: z.ZodArray<z.ZodObject<{
1098
1089
  key: z.ZodString;
1099
1090
  title: z.ZodString;
@@ -1190,8 +1181,6 @@ export declare const indexerPartitionSemanticInputSchema: z.ZodUnion<[z.ZodObjec
1190
1181
  reason_code: string;
1191
1182
  }[];
1192
1183
  stage: "partition";
1193
- unit_type: string;
1194
- partition_axis: string;
1195
1184
  groups: {
1196
1185
  title: string;
1197
1186
  key: string;
@@ -1213,8 +1202,6 @@ export declare const indexerPartitionSemanticInputSchema: z.ZodUnion<[z.ZodObjec
1213
1202
  outcome: "complete";
1214
1203
  }, {
1215
1204
  stage: "partition";
1216
- unit_type: string;
1217
- partition_axis: string;
1218
1205
  groups: {
1219
1206
  title: string;
1220
1207
  key: string;
@@ -1245,8 +1232,6 @@ export declare const indexerPartitionSemanticInputSchema: z.ZodUnion<[z.ZodObjec
1245
1232
  }>, z.ZodObject<{
1246
1233
  stage: z.ZodLiteral<"partition">;
1247
1234
  outcome: z.ZodLiteral<"failed">;
1248
- unit_type: z.ZodString;
1249
- partition_axis: z.ZodString;
1250
1235
  groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
1251
1236
  key: z.ZodString;
1252
1237
  title: z.ZodString;
@@ -1369,8 +1354,6 @@ export declare const indexerPartitionSemanticInputSchema: z.ZodUnion<[z.ZodObjec
1369
1354
  missing_capabilities?: string[] | undefined;
1370
1355
  missing_sources?: string[] | undefined;
1371
1356
  };
1372
- unit_type: string;
1373
- partition_axis: string;
1374
1357
  groups: {
1375
1358
  title: string;
1376
1359
  key: string;
@@ -1399,8 +1382,6 @@ export declare const indexerPartitionSemanticInputSchema: z.ZodUnion<[z.ZodObjec
1399
1382
  missing_capabilities?: string[] | undefined;
1400
1383
  missing_sources?: string[] | undefined;
1401
1384
  };
1402
- unit_type: string;
1403
- partition_axis: string;
1404
1385
  outcome: "failed";
1405
1386
  unsupported?: {
1406
1387
  item: string;
@@ -1659,6 +1640,1266 @@ export declare const indexerAuthorSemanticInputSchema: z.ZodEffects<z.ZodObject<
1659
1640
  }[] | undefined;
1660
1641
  }>;
1661
1642
  export type IndexerAuthorSemanticInput = z.infer<typeof indexerAuthorSemanticInputSchema>;
1643
+ declare const indexerPartitionBatchSemanticInputSchema: z.ZodEffects<z.ZodObject<{
1644
+ stage: z.ZodLiteral<"partition">;
1645
+ results: z.ZodArray<z.ZodObject<{
1646
+ task_key: z.ZodString;
1647
+ result: z.ZodUnion<[z.ZodObject<{
1648
+ stage: z.ZodLiteral<"partition">;
1649
+ outcome: z.ZodLiteral<"complete">;
1650
+ groups: z.ZodArray<z.ZodObject<{
1651
+ key: z.ZodString;
1652
+ title: z.ZodString;
1653
+ reader_task: z.ZodString;
1654
+ subject: z.ZodUnion<[z.ZodString, z.ZodObject<{
1655
+ namespace: z.ZodString;
1656
+ kind: z.ZodString;
1657
+ local_key: z.ZodString;
1658
+ }, "strict", z.ZodTypeAny, {
1659
+ kind: string;
1660
+ namespace: string;
1661
+ local_key: string;
1662
+ }, {
1663
+ kind: string;
1664
+ namespace: string;
1665
+ local_key: string;
1666
+ }>]>;
1667
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
1668
+ members: z.ZodArray<z.ZodString, "many">;
1669
+ questions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1670
+ question_targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1671
+ target: z.ZodString;
1672
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
1673
+ }, "strict", z.ZodTypeAny, {
1674
+ role: "enricher" | "primary-carrier";
1675
+ target: string;
1676
+ }, {
1677
+ role: "enricher" | "primary-carrier";
1678
+ target: string;
1679
+ }>, "many">>;
1680
+ outline: z.ZodArray<z.ZodString, "many">;
1681
+ }, "strict", z.ZodTypeAny, {
1682
+ title: string;
1683
+ key: string;
1684
+ questions: string[];
1685
+ subject_intent: "primary" | "enrich-or-independent";
1686
+ reader_task: string;
1687
+ subject: string | {
1688
+ kind: string;
1689
+ namespace: string;
1690
+ local_key: string;
1691
+ };
1692
+ members: string[];
1693
+ question_targets: {
1694
+ role: "enricher" | "primary-carrier";
1695
+ target: string;
1696
+ }[];
1697
+ outline: string[];
1698
+ }, {
1699
+ title: string;
1700
+ key: string;
1701
+ subject_intent: "primary" | "enrich-or-independent";
1702
+ reader_task: string;
1703
+ subject: string | {
1704
+ kind: string;
1705
+ namespace: string;
1706
+ local_key: string;
1707
+ };
1708
+ members: string[];
1709
+ outline: string[];
1710
+ questions?: string[] | undefined;
1711
+ question_targets?: {
1712
+ role: "enricher" | "primary-carrier";
1713
+ target: string;
1714
+ }[] | undefined;
1715
+ }>, "many">;
1716
+ excluded: z.ZodDefault<z.ZodArray<z.ZodObject<{
1717
+ item: z.ZodString;
1718
+ reason_code: z.ZodString;
1719
+ }, "strict", z.ZodTypeAny, {
1720
+ item: string;
1721
+ reason_code: string;
1722
+ }, {
1723
+ item: string;
1724
+ reason_code: string;
1725
+ }>, "many">>;
1726
+ unsupported: z.ZodDefault<z.ZodArray<z.ZodObject<{
1727
+ item: z.ZodString;
1728
+ missing_capabilities: z.ZodArray<z.ZodString, "many">;
1729
+ }, "strict", z.ZodTypeAny, {
1730
+ item: string;
1731
+ missing_capabilities: string[];
1732
+ }, {
1733
+ item: string;
1734
+ missing_capabilities: string[];
1735
+ }>, "many">>;
1736
+ }, "strict", z.ZodTypeAny, {
1737
+ unsupported: {
1738
+ item: string;
1739
+ missing_capabilities: string[];
1740
+ }[];
1741
+ excluded: {
1742
+ item: string;
1743
+ reason_code: string;
1744
+ }[];
1745
+ stage: "partition";
1746
+ groups: {
1747
+ title: string;
1748
+ key: string;
1749
+ questions: string[];
1750
+ subject_intent: "primary" | "enrich-or-independent";
1751
+ reader_task: string;
1752
+ subject: string | {
1753
+ kind: string;
1754
+ namespace: string;
1755
+ local_key: string;
1756
+ };
1757
+ members: string[];
1758
+ question_targets: {
1759
+ role: "enricher" | "primary-carrier";
1760
+ target: string;
1761
+ }[];
1762
+ outline: string[];
1763
+ }[];
1764
+ outcome: "complete";
1765
+ }, {
1766
+ stage: "partition";
1767
+ groups: {
1768
+ title: string;
1769
+ key: string;
1770
+ subject_intent: "primary" | "enrich-or-independent";
1771
+ reader_task: string;
1772
+ subject: string | {
1773
+ kind: string;
1774
+ namespace: string;
1775
+ local_key: string;
1776
+ };
1777
+ members: string[];
1778
+ outline: string[];
1779
+ questions?: string[] | undefined;
1780
+ question_targets?: {
1781
+ role: "enricher" | "primary-carrier";
1782
+ target: string;
1783
+ }[] | undefined;
1784
+ }[];
1785
+ outcome: "complete";
1786
+ unsupported?: {
1787
+ item: string;
1788
+ missing_capabilities: string[];
1789
+ }[] | undefined;
1790
+ excluded?: {
1791
+ item: string;
1792
+ reason_code: string;
1793
+ }[] | undefined;
1794
+ }>, z.ZodObject<{
1795
+ stage: z.ZodLiteral<"partition">;
1796
+ outcome: z.ZodLiteral<"failed">;
1797
+ groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
1798
+ key: z.ZodString;
1799
+ title: z.ZodString;
1800
+ reader_task: z.ZodString;
1801
+ subject: z.ZodUnion<[z.ZodString, z.ZodObject<{
1802
+ namespace: z.ZodString;
1803
+ kind: z.ZodString;
1804
+ local_key: z.ZodString;
1805
+ }, "strict", z.ZodTypeAny, {
1806
+ kind: string;
1807
+ namespace: string;
1808
+ local_key: string;
1809
+ }, {
1810
+ kind: string;
1811
+ namespace: string;
1812
+ local_key: string;
1813
+ }>]>;
1814
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
1815
+ members: z.ZodArray<z.ZodString, "many">;
1816
+ questions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1817
+ question_targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1818
+ target: z.ZodString;
1819
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
1820
+ }, "strict", z.ZodTypeAny, {
1821
+ role: "enricher" | "primary-carrier";
1822
+ target: string;
1823
+ }, {
1824
+ role: "enricher" | "primary-carrier";
1825
+ target: string;
1826
+ }>, "many">>;
1827
+ outline: z.ZodArray<z.ZodString, "many">;
1828
+ }, "strict", z.ZodTypeAny, {
1829
+ title: string;
1830
+ key: string;
1831
+ questions: string[];
1832
+ subject_intent: "primary" | "enrich-or-independent";
1833
+ reader_task: string;
1834
+ subject: string | {
1835
+ kind: string;
1836
+ namespace: string;
1837
+ local_key: string;
1838
+ };
1839
+ members: string[];
1840
+ question_targets: {
1841
+ role: "enricher" | "primary-carrier";
1842
+ target: string;
1843
+ }[];
1844
+ outline: string[];
1845
+ }, {
1846
+ title: string;
1847
+ key: string;
1848
+ subject_intent: "primary" | "enrich-or-independent";
1849
+ reader_task: string;
1850
+ subject: string | {
1851
+ kind: string;
1852
+ namespace: string;
1853
+ local_key: string;
1854
+ };
1855
+ members: string[];
1856
+ outline: string[];
1857
+ questions?: string[] | undefined;
1858
+ question_targets?: {
1859
+ role: "enricher" | "primary-carrier";
1860
+ target: string;
1861
+ }[] | undefined;
1862
+ }>, "many">>;
1863
+ excluded: z.ZodDefault<z.ZodArray<z.ZodObject<{
1864
+ item: z.ZodString;
1865
+ reason_code: z.ZodString;
1866
+ }, "strict", z.ZodTypeAny, {
1867
+ item: string;
1868
+ reason_code: string;
1869
+ }, {
1870
+ item: string;
1871
+ reason_code: string;
1872
+ }>, "many">>;
1873
+ unsupported: z.ZodDefault<z.ZodArray<z.ZodObject<{
1874
+ item: z.ZodString;
1875
+ missing_capabilities: z.ZodArray<z.ZodString, "many">;
1876
+ }, "strict", z.ZodTypeAny, {
1877
+ item: string;
1878
+ missing_capabilities: string[];
1879
+ }, {
1880
+ item: string;
1881
+ missing_capabilities: string[];
1882
+ }>, "many">>;
1883
+ failure: z.ZodObject<{
1884
+ code: z.ZodEnum<["unsupported-domain", "no-stable-axis", "insufficient-identity-facts", "invalid-input", "strategy-failed"]>;
1885
+ message: z.ZodString;
1886
+ unassigned: z.ZodArray<z.ZodString, "many">;
1887
+ missing_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1888
+ missing_sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1889
+ }, "strict", z.ZodTypeAny, {
1890
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
1891
+ message: string;
1892
+ unassigned: string[];
1893
+ missing_capabilities?: string[] | undefined;
1894
+ missing_sources?: string[] | undefined;
1895
+ }, {
1896
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
1897
+ message: string;
1898
+ unassigned: string[];
1899
+ missing_capabilities?: string[] | undefined;
1900
+ missing_sources?: string[] | undefined;
1901
+ }>;
1902
+ }, "strict", z.ZodTypeAny, {
1903
+ unsupported: {
1904
+ item: string;
1905
+ missing_capabilities: string[];
1906
+ }[];
1907
+ excluded: {
1908
+ item: string;
1909
+ reason_code: string;
1910
+ }[];
1911
+ stage: "partition";
1912
+ failure: {
1913
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
1914
+ message: string;
1915
+ unassigned: string[];
1916
+ missing_capabilities?: string[] | undefined;
1917
+ missing_sources?: string[] | undefined;
1918
+ };
1919
+ groups: {
1920
+ title: string;
1921
+ key: string;
1922
+ questions: string[];
1923
+ subject_intent: "primary" | "enrich-or-independent";
1924
+ reader_task: string;
1925
+ subject: string | {
1926
+ kind: string;
1927
+ namespace: string;
1928
+ local_key: string;
1929
+ };
1930
+ members: string[];
1931
+ question_targets: {
1932
+ role: "enricher" | "primary-carrier";
1933
+ target: string;
1934
+ }[];
1935
+ outline: string[];
1936
+ }[];
1937
+ outcome: "failed";
1938
+ }, {
1939
+ stage: "partition";
1940
+ failure: {
1941
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
1942
+ message: string;
1943
+ unassigned: string[];
1944
+ missing_capabilities?: string[] | undefined;
1945
+ missing_sources?: string[] | undefined;
1946
+ };
1947
+ outcome: "failed";
1948
+ unsupported?: {
1949
+ item: string;
1950
+ missing_capabilities: string[];
1951
+ }[] | undefined;
1952
+ excluded?: {
1953
+ item: string;
1954
+ reason_code: string;
1955
+ }[] | undefined;
1956
+ groups?: {
1957
+ title: string;
1958
+ key: string;
1959
+ subject_intent: "primary" | "enrich-or-independent";
1960
+ reader_task: string;
1961
+ subject: string | {
1962
+ kind: string;
1963
+ namespace: string;
1964
+ local_key: string;
1965
+ };
1966
+ members: string[];
1967
+ outline: string[];
1968
+ questions?: string[] | undefined;
1969
+ question_targets?: {
1970
+ role: "enricher" | "primary-carrier";
1971
+ target: string;
1972
+ }[] | undefined;
1973
+ }[] | undefined;
1974
+ }>]>;
1975
+ }, "strict", z.ZodTypeAny, {
1976
+ result: {
1977
+ unsupported: {
1978
+ item: string;
1979
+ missing_capabilities: string[];
1980
+ }[];
1981
+ excluded: {
1982
+ item: string;
1983
+ reason_code: string;
1984
+ }[];
1985
+ stage: "partition";
1986
+ groups: {
1987
+ title: string;
1988
+ key: string;
1989
+ questions: string[];
1990
+ subject_intent: "primary" | "enrich-or-independent";
1991
+ reader_task: string;
1992
+ subject: string | {
1993
+ kind: string;
1994
+ namespace: string;
1995
+ local_key: string;
1996
+ };
1997
+ members: string[];
1998
+ question_targets: {
1999
+ role: "enricher" | "primary-carrier";
2000
+ target: string;
2001
+ }[];
2002
+ outline: string[];
2003
+ }[];
2004
+ outcome: "complete";
2005
+ } | {
2006
+ unsupported: {
2007
+ item: string;
2008
+ missing_capabilities: string[];
2009
+ }[];
2010
+ excluded: {
2011
+ item: string;
2012
+ reason_code: string;
2013
+ }[];
2014
+ stage: "partition";
2015
+ failure: {
2016
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
2017
+ message: string;
2018
+ unassigned: string[];
2019
+ missing_capabilities?: string[] | undefined;
2020
+ missing_sources?: string[] | undefined;
2021
+ };
2022
+ groups: {
2023
+ title: string;
2024
+ key: string;
2025
+ questions: string[];
2026
+ subject_intent: "primary" | "enrich-or-independent";
2027
+ reader_task: string;
2028
+ subject: string | {
2029
+ kind: string;
2030
+ namespace: string;
2031
+ local_key: string;
2032
+ };
2033
+ members: string[];
2034
+ question_targets: {
2035
+ role: "enricher" | "primary-carrier";
2036
+ target: string;
2037
+ }[];
2038
+ outline: string[];
2039
+ }[];
2040
+ outcome: "failed";
2041
+ };
2042
+ task_key: string;
2043
+ }, {
2044
+ result: {
2045
+ stage: "partition";
2046
+ groups: {
2047
+ title: string;
2048
+ key: string;
2049
+ subject_intent: "primary" | "enrich-or-independent";
2050
+ reader_task: string;
2051
+ subject: string | {
2052
+ kind: string;
2053
+ namespace: string;
2054
+ local_key: string;
2055
+ };
2056
+ members: string[];
2057
+ outline: string[];
2058
+ questions?: string[] | undefined;
2059
+ question_targets?: {
2060
+ role: "enricher" | "primary-carrier";
2061
+ target: string;
2062
+ }[] | undefined;
2063
+ }[];
2064
+ outcome: "complete";
2065
+ unsupported?: {
2066
+ item: string;
2067
+ missing_capabilities: string[];
2068
+ }[] | undefined;
2069
+ excluded?: {
2070
+ item: string;
2071
+ reason_code: string;
2072
+ }[] | undefined;
2073
+ } | {
2074
+ stage: "partition";
2075
+ failure: {
2076
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
2077
+ message: string;
2078
+ unassigned: string[];
2079
+ missing_capabilities?: string[] | undefined;
2080
+ missing_sources?: string[] | undefined;
2081
+ };
2082
+ outcome: "failed";
2083
+ unsupported?: {
2084
+ item: string;
2085
+ missing_capabilities: string[];
2086
+ }[] | undefined;
2087
+ excluded?: {
2088
+ item: string;
2089
+ reason_code: string;
2090
+ }[] | undefined;
2091
+ groups?: {
2092
+ title: string;
2093
+ key: string;
2094
+ subject_intent: "primary" | "enrich-or-independent";
2095
+ reader_task: string;
2096
+ subject: string | {
2097
+ kind: string;
2098
+ namespace: string;
2099
+ local_key: string;
2100
+ };
2101
+ members: string[];
2102
+ outline: string[];
2103
+ questions?: string[] | undefined;
2104
+ question_targets?: {
2105
+ role: "enricher" | "primary-carrier";
2106
+ target: string;
2107
+ }[] | undefined;
2108
+ }[] | undefined;
2109
+ };
2110
+ task_key: string;
2111
+ }>, "many">;
2112
+ }, "strict", z.ZodTypeAny, {
2113
+ stage: "partition";
2114
+ results: {
2115
+ result: {
2116
+ unsupported: {
2117
+ item: string;
2118
+ missing_capabilities: string[];
2119
+ }[];
2120
+ excluded: {
2121
+ item: string;
2122
+ reason_code: string;
2123
+ }[];
2124
+ stage: "partition";
2125
+ groups: {
2126
+ title: string;
2127
+ key: string;
2128
+ questions: string[];
2129
+ subject_intent: "primary" | "enrich-or-independent";
2130
+ reader_task: string;
2131
+ subject: string | {
2132
+ kind: string;
2133
+ namespace: string;
2134
+ local_key: string;
2135
+ };
2136
+ members: string[];
2137
+ question_targets: {
2138
+ role: "enricher" | "primary-carrier";
2139
+ target: string;
2140
+ }[];
2141
+ outline: string[];
2142
+ }[];
2143
+ outcome: "complete";
2144
+ } | {
2145
+ unsupported: {
2146
+ item: string;
2147
+ missing_capabilities: string[];
2148
+ }[];
2149
+ excluded: {
2150
+ item: string;
2151
+ reason_code: string;
2152
+ }[];
2153
+ stage: "partition";
2154
+ failure: {
2155
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
2156
+ message: string;
2157
+ unassigned: string[];
2158
+ missing_capabilities?: string[] | undefined;
2159
+ missing_sources?: string[] | undefined;
2160
+ };
2161
+ groups: {
2162
+ title: string;
2163
+ key: string;
2164
+ questions: string[];
2165
+ subject_intent: "primary" | "enrich-or-independent";
2166
+ reader_task: string;
2167
+ subject: string | {
2168
+ kind: string;
2169
+ namespace: string;
2170
+ local_key: string;
2171
+ };
2172
+ members: string[];
2173
+ question_targets: {
2174
+ role: "enricher" | "primary-carrier";
2175
+ target: string;
2176
+ }[];
2177
+ outline: string[];
2178
+ }[];
2179
+ outcome: "failed";
2180
+ };
2181
+ task_key: string;
2182
+ }[];
2183
+ }, {
2184
+ stage: "partition";
2185
+ results: {
2186
+ result: {
2187
+ stage: "partition";
2188
+ groups: {
2189
+ title: string;
2190
+ key: string;
2191
+ subject_intent: "primary" | "enrich-or-independent";
2192
+ reader_task: string;
2193
+ subject: string | {
2194
+ kind: string;
2195
+ namespace: string;
2196
+ local_key: string;
2197
+ };
2198
+ members: string[];
2199
+ outline: string[];
2200
+ questions?: string[] | undefined;
2201
+ question_targets?: {
2202
+ role: "enricher" | "primary-carrier";
2203
+ target: string;
2204
+ }[] | undefined;
2205
+ }[];
2206
+ outcome: "complete";
2207
+ unsupported?: {
2208
+ item: string;
2209
+ missing_capabilities: string[];
2210
+ }[] | undefined;
2211
+ excluded?: {
2212
+ item: string;
2213
+ reason_code: string;
2214
+ }[] | undefined;
2215
+ } | {
2216
+ stage: "partition";
2217
+ failure: {
2218
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
2219
+ message: string;
2220
+ unassigned: string[];
2221
+ missing_capabilities?: string[] | undefined;
2222
+ missing_sources?: string[] | undefined;
2223
+ };
2224
+ outcome: "failed";
2225
+ unsupported?: {
2226
+ item: string;
2227
+ missing_capabilities: string[];
2228
+ }[] | undefined;
2229
+ excluded?: {
2230
+ item: string;
2231
+ reason_code: string;
2232
+ }[] | undefined;
2233
+ groups?: {
2234
+ title: string;
2235
+ key: string;
2236
+ subject_intent: "primary" | "enrich-or-independent";
2237
+ reader_task: string;
2238
+ subject: string | {
2239
+ kind: string;
2240
+ namespace: string;
2241
+ local_key: string;
2242
+ };
2243
+ members: string[];
2244
+ outline: string[];
2245
+ questions?: string[] | undefined;
2246
+ question_targets?: {
2247
+ role: "enricher" | "primary-carrier";
2248
+ target: string;
2249
+ }[] | undefined;
2250
+ }[] | undefined;
2251
+ };
2252
+ task_key: string;
2253
+ }[];
2254
+ }>, {
2255
+ stage: "partition";
2256
+ results: {
2257
+ result: {
2258
+ unsupported: {
2259
+ item: string;
2260
+ missing_capabilities: string[];
2261
+ }[];
2262
+ excluded: {
2263
+ item: string;
2264
+ reason_code: string;
2265
+ }[];
2266
+ stage: "partition";
2267
+ groups: {
2268
+ title: string;
2269
+ key: string;
2270
+ questions: string[];
2271
+ subject_intent: "primary" | "enrich-or-independent";
2272
+ reader_task: string;
2273
+ subject: string | {
2274
+ kind: string;
2275
+ namespace: string;
2276
+ local_key: string;
2277
+ };
2278
+ members: string[];
2279
+ question_targets: {
2280
+ role: "enricher" | "primary-carrier";
2281
+ target: string;
2282
+ }[];
2283
+ outline: string[];
2284
+ }[];
2285
+ outcome: "complete";
2286
+ } | {
2287
+ unsupported: {
2288
+ item: string;
2289
+ missing_capabilities: string[];
2290
+ }[];
2291
+ excluded: {
2292
+ item: string;
2293
+ reason_code: string;
2294
+ }[];
2295
+ stage: "partition";
2296
+ failure: {
2297
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
2298
+ message: string;
2299
+ unassigned: string[];
2300
+ missing_capabilities?: string[] | undefined;
2301
+ missing_sources?: string[] | undefined;
2302
+ };
2303
+ groups: {
2304
+ title: string;
2305
+ key: string;
2306
+ questions: string[];
2307
+ subject_intent: "primary" | "enrich-or-independent";
2308
+ reader_task: string;
2309
+ subject: string | {
2310
+ kind: string;
2311
+ namespace: string;
2312
+ local_key: string;
2313
+ };
2314
+ members: string[];
2315
+ question_targets: {
2316
+ role: "enricher" | "primary-carrier";
2317
+ target: string;
2318
+ }[];
2319
+ outline: string[];
2320
+ }[];
2321
+ outcome: "failed";
2322
+ };
2323
+ task_key: string;
2324
+ }[];
2325
+ }, {
2326
+ stage: "partition";
2327
+ results: {
2328
+ result: {
2329
+ stage: "partition";
2330
+ groups: {
2331
+ title: string;
2332
+ key: string;
2333
+ subject_intent: "primary" | "enrich-or-independent";
2334
+ reader_task: string;
2335
+ subject: string | {
2336
+ kind: string;
2337
+ namespace: string;
2338
+ local_key: string;
2339
+ };
2340
+ members: string[];
2341
+ outline: string[];
2342
+ questions?: string[] | undefined;
2343
+ question_targets?: {
2344
+ role: "enricher" | "primary-carrier";
2345
+ target: string;
2346
+ }[] | undefined;
2347
+ }[];
2348
+ outcome: "complete";
2349
+ unsupported?: {
2350
+ item: string;
2351
+ missing_capabilities: string[];
2352
+ }[] | undefined;
2353
+ excluded?: {
2354
+ item: string;
2355
+ reason_code: string;
2356
+ }[] | undefined;
2357
+ } | {
2358
+ stage: "partition";
2359
+ failure: {
2360
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
2361
+ message: string;
2362
+ unassigned: string[];
2363
+ missing_capabilities?: string[] | undefined;
2364
+ missing_sources?: string[] | undefined;
2365
+ };
2366
+ outcome: "failed";
2367
+ unsupported?: {
2368
+ item: string;
2369
+ missing_capabilities: string[];
2370
+ }[] | undefined;
2371
+ excluded?: {
2372
+ item: string;
2373
+ reason_code: string;
2374
+ }[] | undefined;
2375
+ groups?: {
2376
+ title: string;
2377
+ key: string;
2378
+ subject_intent: "primary" | "enrich-or-independent";
2379
+ reader_task: string;
2380
+ subject: string | {
2381
+ kind: string;
2382
+ namespace: string;
2383
+ local_key: string;
2384
+ };
2385
+ members: string[];
2386
+ outline: string[];
2387
+ questions?: string[] | undefined;
2388
+ question_targets?: {
2389
+ role: "enricher" | "primary-carrier";
2390
+ target: string;
2391
+ }[] | undefined;
2392
+ }[] | undefined;
2393
+ };
2394
+ task_key: string;
2395
+ }[];
2396
+ }>;
2397
+ declare const indexerAuthorBatchSemanticInputSchema: z.ZodEffects<z.ZodObject<{
2398
+ stage: z.ZodLiteral<"author">;
2399
+ results: z.ZodArray<z.ZodObject<{
2400
+ task_key: z.ZodString;
2401
+ result: z.ZodEffects<z.ZodObject<{
2402
+ stage: z.ZodLiteral<"author">;
2403
+ group_key: z.ZodString;
2404
+ outcome: z.ZodEnum<["publish", "catalog-only", "request-material", "unsupported"]>;
2405
+ artifact_intent: z.ZodOptional<z.ZodString>;
2406
+ policy: z.ZodOptional<z.ZodString>;
2407
+ target_resolutions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2408
+ target: z.ZodString;
2409
+ disposition: z.ZodEnum<["reuse-existing", "create-independent", "unresolved"]>;
2410
+ reason_code: z.ZodOptional<z.ZodString>;
2411
+ }, "strict", z.ZodTypeAny, {
2412
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2413
+ target: string;
2414
+ reason_code?: string | undefined;
2415
+ }, {
2416
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2417
+ target: string;
2418
+ reason_code?: string | undefined;
2419
+ }>, "many">>;
2420
+ title: z.ZodOptional<z.ZodString>;
2421
+ summary: z.ZodOptional<z.ZodString>;
2422
+ sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2423
+ key: z.ZodString;
2424
+ heading: z.ZodString;
2425
+ markdown: z.ZodString;
2426
+ source_items: z.ZodArray<z.ZodString, "many">;
2427
+ facts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2428
+ answers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2429
+ }, "strict", z.ZodTypeAny, {
2430
+ key: string;
2431
+ markdown: string;
2432
+ facts: string[];
2433
+ heading: string;
2434
+ source_items: string[];
2435
+ answers: string[];
2436
+ }, {
2437
+ key: string;
2438
+ markdown: string;
2439
+ heading: string;
2440
+ source_items: string[];
2441
+ facts?: string[] | undefined;
2442
+ answers?: string[] | undefined;
2443
+ }>, "many">>;
2444
+ member_dispositions: z.ZodArray<z.ZodObject<{
2445
+ item: z.ZodString;
2446
+ state: z.ZodEnum<["covered", "catalog-only", "unsupported"]>;
2447
+ section: z.ZodOptional<z.ZodString>;
2448
+ reason_code: z.ZodOptional<z.ZodString>;
2449
+ }, "strict", z.ZodTypeAny, {
2450
+ item: string;
2451
+ state: "unsupported" | "catalog-only" | "covered";
2452
+ reason_code?: string | undefined;
2453
+ section?: string | undefined;
2454
+ }, {
2455
+ item: string;
2456
+ state: "unsupported" | "catalog-only" | "covered";
2457
+ reason_code?: string | undefined;
2458
+ section?: string | undefined;
2459
+ }>, "many">;
2460
+ material_gaps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2461
+ question: z.ZodString;
2462
+ source_hints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2463
+ }, "strict", z.ZodTypeAny, {
2464
+ source_hints: string[];
2465
+ question: string;
2466
+ }, {
2467
+ question: string;
2468
+ source_hints?: string[] | undefined;
2469
+ }>, "many">>;
2470
+ diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2471
+ code: z.ZodString;
2472
+ message: z.ZodString;
2473
+ target: z.ZodOptional<z.ZodString>;
2474
+ }, "strict", z.ZodTypeAny, {
2475
+ code: string;
2476
+ message: string;
2477
+ target?: string | undefined;
2478
+ }, {
2479
+ code: string;
2480
+ message: string;
2481
+ target?: string | undefined;
2482
+ }>, "many">>;
2483
+ }, "strict", z.ZodTypeAny, {
2484
+ sections: {
2485
+ key: string;
2486
+ markdown: string;
2487
+ facts: string[];
2488
+ heading: string;
2489
+ source_items: string[];
2490
+ answers: string[];
2491
+ }[];
2492
+ diagnostics: {
2493
+ code: string;
2494
+ message: string;
2495
+ target?: string | undefined;
2496
+ }[];
2497
+ stage: "author";
2498
+ group_key: string;
2499
+ member_dispositions: {
2500
+ item: string;
2501
+ state: "unsupported" | "catalog-only" | "covered";
2502
+ reason_code?: string | undefined;
2503
+ section?: string | undefined;
2504
+ }[];
2505
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2506
+ material_gaps: {
2507
+ source_hints: string[];
2508
+ question: string;
2509
+ }[];
2510
+ target_resolutions: {
2511
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2512
+ target: string;
2513
+ reason_code?: string | undefined;
2514
+ }[];
2515
+ title?: string | undefined;
2516
+ summary?: string | undefined;
2517
+ artifact_intent?: string | undefined;
2518
+ policy?: string | undefined;
2519
+ }, {
2520
+ stage: "author";
2521
+ group_key: string;
2522
+ member_dispositions: {
2523
+ item: string;
2524
+ state: "unsupported" | "catalog-only" | "covered";
2525
+ reason_code?: string | undefined;
2526
+ section?: string | undefined;
2527
+ }[];
2528
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2529
+ title?: string | undefined;
2530
+ sections?: {
2531
+ key: string;
2532
+ markdown: string;
2533
+ heading: string;
2534
+ source_items: string[];
2535
+ facts?: string[] | undefined;
2536
+ answers?: string[] | undefined;
2537
+ }[] | undefined;
2538
+ diagnostics?: {
2539
+ code: string;
2540
+ message: string;
2541
+ target?: string | undefined;
2542
+ }[] | undefined;
2543
+ material_gaps?: {
2544
+ question: string;
2545
+ source_hints?: string[] | undefined;
2546
+ }[] | undefined;
2547
+ summary?: string | undefined;
2548
+ artifact_intent?: string | undefined;
2549
+ policy?: string | undefined;
2550
+ target_resolutions?: {
2551
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2552
+ target: string;
2553
+ reason_code?: string | undefined;
2554
+ }[] | undefined;
2555
+ }>, {
2556
+ sections: {
2557
+ key: string;
2558
+ markdown: string;
2559
+ facts: string[];
2560
+ heading: string;
2561
+ source_items: string[];
2562
+ answers: string[];
2563
+ }[];
2564
+ diagnostics: {
2565
+ code: string;
2566
+ message: string;
2567
+ target?: string | undefined;
2568
+ }[];
2569
+ stage: "author";
2570
+ group_key: string;
2571
+ member_dispositions: {
2572
+ item: string;
2573
+ state: "unsupported" | "catalog-only" | "covered";
2574
+ reason_code?: string | undefined;
2575
+ section?: string | undefined;
2576
+ }[];
2577
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2578
+ material_gaps: {
2579
+ source_hints: string[];
2580
+ question: string;
2581
+ }[];
2582
+ target_resolutions: {
2583
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2584
+ target: string;
2585
+ reason_code?: string | undefined;
2586
+ }[];
2587
+ title?: string | undefined;
2588
+ summary?: string | undefined;
2589
+ artifact_intent?: string | undefined;
2590
+ policy?: string | undefined;
2591
+ }, {
2592
+ stage: "author";
2593
+ group_key: string;
2594
+ member_dispositions: {
2595
+ item: string;
2596
+ state: "unsupported" | "catalog-only" | "covered";
2597
+ reason_code?: string | undefined;
2598
+ section?: string | undefined;
2599
+ }[];
2600
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2601
+ title?: string | undefined;
2602
+ sections?: {
2603
+ key: string;
2604
+ markdown: string;
2605
+ heading: string;
2606
+ source_items: string[];
2607
+ facts?: string[] | undefined;
2608
+ answers?: string[] | undefined;
2609
+ }[] | undefined;
2610
+ diagnostics?: {
2611
+ code: string;
2612
+ message: string;
2613
+ target?: string | undefined;
2614
+ }[] | undefined;
2615
+ material_gaps?: {
2616
+ question: string;
2617
+ source_hints?: string[] | undefined;
2618
+ }[] | undefined;
2619
+ summary?: string | undefined;
2620
+ artifact_intent?: string | undefined;
2621
+ policy?: string | undefined;
2622
+ target_resolutions?: {
2623
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2624
+ target: string;
2625
+ reason_code?: string | undefined;
2626
+ }[] | undefined;
2627
+ }>;
2628
+ }, "strict", z.ZodTypeAny, {
2629
+ result: {
2630
+ sections: {
2631
+ key: string;
2632
+ markdown: string;
2633
+ facts: string[];
2634
+ heading: string;
2635
+ source_items: string[];
2636
+ answers: string[];
2637
+ }[];
2638
+ diagnostics: {
2639
+ code: string;
2640
+ message: string;
2641
+ target?: string | undefined;
2642
+ }[];
2643
+ stage: "author";
2644
+ group_key: string;
2645
+ member_dispositions: {
2646
+ item: string;
2647
+ state: "unsupported" | "catalog-only" | "covered";
2648
+ reason_code?: string | undefined;
2649
+ section?: string | undefined;
2650
+ }[];
2651
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2652
+ material_gaps: {
2653
+ source_hints: string[];
2654
+ question: string;
2655
+ }[];
2656
+ target_resolutions: {
2657
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2658
+ target: string;
2659
+ reason_code?: string | undefined;
2660
+ }[];
2661
+ title?: string | undefined;
2662
+ summary?: string | undefined;
2663
+ artifact_intent?: string | undefined;
2664
+ policy?: string | undefined;
2665
+ };
2666
+ task_key: string;
2667
+ }, {
2668
+ result: {
2669
+ stage: "author";
2670
+ group_key: string;
2671
+ member_dispositions: {
2672
+ item: string;
2673
+ state: "unsupported" | "catalog-only" | "covered";
2674
+ reason_code?: string | undefined;
2675
+ section?: string | undefined;
2676
+ }[];
2677
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2678
+ title?: string | undefined;
2679
+ sections?: {
2680
+ key: string;
2681
+ markdown: string;
2682
+ heading: string;
2683
+ source_items: string[];
2684
+ facts?: string[] | undefined;
2685
+ answers?: string[] | undefined;
2686
+ }[] | undefined;
2687
+ diagnostics?: {
2688
+ code: string;
2689
+ message: string;
2690
+ target?: string | undefined;
2691
+ }[] | undefined;
2692
+ material_gaps?: {
2693
+ question: string;
2694
+ source_hints?: string[] | undefined;
2695
+ }[] | undefined;
2696
+ summary?: string | undefined;
2697
+ artifact_intent?: string | undefined;
2698
+ policy?: string | undefined;
2699
+ target_resolutions?: {
2700
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2701
+ target: string;
2702
+ reason_code?: string | undefined;
2703
+ }[] | undefined;
2704
+ };
2705
+ task_key: string;
2706
+ }>, "many">;
2707
+ }, "strict", z.ZodTypeAny, {
2708
+ stage: "author";
2709
+ results: {
2710
+ result: {
2711
+ sections: {
2712
+ key: string;
2713
+ markdown: string;
2714
+ facts: string[];
2715
+ heading: string;
2716
+ source_items: string[];
2717
+ answers: string[];
2718
+ }[];
2719
+ diagnostics: {
2720
+ code: string;
2721
+ message: string;
2722
+ target?: string | undefined;
2723
+ }[];
2724
+ stage: "author";
2725
+ group_key: string;
2726
+ member_dispositions: {
2727
+ item: string;
2728
+ state: "unsupported" | "catalog-only" | "covered";
2729
+ reason_code?: string | undefined;
2730
+ section?: string | undefined;
2731
+ }[];
2732
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2733
+ material_gaps: {
2734
+ source_hints: string[];
2735
+ question: string;
2736
+ }[];
2737
+ target_resolutions: {
2738
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2739
+ target: string;
2740
+ reason_code?: string | undefined;
2741
+ }[];
2742
+ title?: string | undefined;
2743
+ summary?: string | undefined;
2744
+ artifact_intent?: string | undefined;
2745
+ policy?: string | undefined;
2746
+ };
2747
+ task_key: string;
2748
+ }[];
2749
+ }, {
2750
+ stage: "author";
2751
+ results: {
2752
+ result: {
2753
+ stage: "author";
2754
+ group_key: string;
2755
+ member_dispositions: {
2756
+ item: string;
2757
+ state: "unsupported" | "catalog-only" | "covered";
2758
+ reason_code?: string | undefined;
2759
+ section?: string | undefined;
2760
+ }[];
2761
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2762
+ title?: string | undefined;
2763
+ sections?: {
2764
+ key: string;
2765
+ markdown: string;
2766
+ heading: string;
2767
+ source_items: string[];
2768
+ facts?: string[] | undefined;
2769
+ answers?: string[] | undefined;
2770
+ }[] | undefined;
2771
+ diagnostics?: {
2772
+ code: string;
2773
+ message: string;
2774
+ target?: string | undefined;
2775
+ }[] | undefined;
2776
+ material_gaps?: {
2777
+ question: string;
2778
+ source_hints?: string[] | undefined;
2779
+ }[] | undefined;
2780
+ summary?: string | undefined;
2781
+ artifact_intent?: string | undefined;
2782
+ policy?: string | undefined;
2783
+ target_resolutions?: {
2784
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2785
+ target: string;
2786
+ reason_code?: string | undefined;
2787
+ }[] | undefined;
2788
+ };
2789
+ task_key: string;
2790
+ }[];
2791
+ }>, {
2792
+ stage: "author";
2793
+ results: {
2794
+ result: {
2795
+ sections: {
2796
+ key: string;
2797
+ markdown: string;
2798
+ facts: string[];
2799
+ heading: string;
2800
+ source_items: string[];
2801
+ answers: string[];
2802
+ }[];
2803
+ diagnostics: {
2804
+ code: string;
2805
+ message: string;
2806
+ target?: string | undefined;
2807
+ }[];
2808
+ stage: "author";
2809
+ group_key: string;
2810
+ member_dispositions: {
2811
+ item: string;
2812
+ state: "unsupported" | "catalog-only" | "covered";
2813
+ reason_code?: string | undefined;
2814
+ section?: string | undefined;
2815
+ }[];
2816
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2817
+ material_gaps: {
2818
+ source_hints: string[];
2819
+ question: string;
2820
+ }[];
2821
+ target_resolutions: {
2822
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2823
+ target: string;
2824
+ reason_code?: string | undefined;
2825
+ }[];
2826
+ title?: string | undefined;
2827
+ summary?: string | undefined;
2828
+ artifact_intent?: string | undefined;
2829
+ policy?: string | undefined;
2830
+ };
2831
+ task_key: string;
2832
+ }[];
2833
+ }, {
2834
+ stage: "author";
2835
+ results: {
2836
+ result: {
2837
+ stage: "author";
2838
+ group_key: string;
2839
+ member_dispositions: {
2840
+ item: string;
2841
+ state: "unsupported" | "catalog-only" | "covered";
2842
+ reason_code?: string | undefined;
2843
+ section?: string | undefined;
2844
+ }[];
2845
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
2846
+ title?: string | undefined;
2847
+ sections?: {
2848
+ key: string;
2849
+ markdown: string;
2850
+ heading: string;
2851
+ source_items: string[];
2852
+ facts?: string[] | undefined;
2853
+ answers?: string[] | undefined;
2854
+ }[] | undefined;
2855
+ diagnostics?: {
2856
+ code: string;
2857
+ message: string;
2858
+ target?: string | undefined;
2859
+ }[] | undefined;
2860
+ material_gaps?: {
2861
+ question: string;
2862
+ source_hints?: string[] | undefined;
2863
+ }[] | undefined;
2864
+ summary?: string | undefined;
2865
+ artifact_intent?: string | undefined;
2866
+ policy?: string | undefined;
2867
+ target_resolutions?: {
2868
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
2869
+ target: string;
2870
+ reason_code?: string | undefined;
2871
+ }[] | undefined;
2872
+ };
2873
+ task_key: string;
2874
+ }[];
2875
+ }>;
2876
+ export type IndexerMainBatchSemanticInput = z.infer<typeof indexerPartitionBatchSemanticInputSchema | typeof indexerAuthorBatchSemanticInputSchema>;
2877
+ declare const indexerMainBatchSubmissionEnvelopeSchema: z.ZodObject<{
2878
+ stage: z.ZodEnum<["partition", "author", "post-author"]>;
2879
+ results: z.ZodArray<z.ZodObject<{
2880
+ task_key: z.ZodString;
2881
+ result: z.ZodUnknown;
2882
+ }, "strict", z.ZodTypeAny, {
2883
+ task_key: string;
2884
+ result?: unknown;
2885
+ }, {
2886
+ task_key: string;
2887
+ result?: unknown;
2888
+ }>, "many">;
2889
+ }, "strict", z.ZodTypeAny, {
2890
+ stage: "post-author" | "partition" | "author";
2891
+ results: {
2892
+ task_key: string;
2893
+ result?: unknown;
2894
+ }[];
2895
+ }, {
2896
+ stage: "post-author" | "partition" | "author";
2897
+ results: {
2898
+ task_key: string;
2899
+ result?: unknown;
2900
+ }[];
2901
+ }>;
2902
+ export type IndexerMainBatchSubmissionEnvelope = z.infer<typeof indexerMainBatchSubmissionEnvelopeSchema>;
1662
2903
  export declare const indexerPostAuthorSemanticInputSchema: z.ZodEffects<z.ZodObject<{
1663
2904
  stage: z.ZodLiteral<"post-author">;
1664
2905
  outcome: z.ZodEnum<["complete", "failed"]>;
@@ -1826,22 +3067,48 @@ export declare const indexerLayoutConfirmationInputSchema: z.ZodEffects<z.ZodObj
1826
3067
  stage: z.ZodLiteral<"layout-confirmation">;
1827
3068
  decision: z.ZodEnum<["approved", "rejected"]>;
1828
3069
  feedback: z.ZodOptional<z.ZodString>;
3070
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3071
+ artifact_ref: z.ZodString;
3072
+ output_path: z.ZodString;
3073
+ }, "strict", z.ZodTypeAny, {
3074
+ output_path: string;
3075
+ artifact_ref: string;
3076
+ }, {
3077
+ output_path: string;
3078
+ artifact_ref: string;
3079
+ }>, "many">>;
1829
3080
  }, "strict", z.ZodTypeAny, {
1830
3081
  decision: "approved" | "rejected";
1831
3082
  stage: "layout-confirmation";
1832
3083
  feedback?: string | undefined;
3084
+ paths?: {
3085
+ output_path: string;
3086
+ artifact_ref: string;
3087
+ }[] | undefined;
1833
3088
  }, {
1834
3089
  decision: "approved" | "rejected";
1835
3090
  stage: "layout-confirmation";
1836
3091
  feedback?: string | undefined;
3092
+ paths?: {
3093
+ output_path: string;
3094
+ artifact_ref: string;
3095
+ }[] | undefined;
1837
3096
  }>, {
1838
3097
  decision: "approved" | "rejected";
1839
3098
  stage: "layout-confirmation";
1840
3099
  feedback?: string | undefined;
3100
+ paths?: {
3101
+ output_path: string;
3102
+ artifact_ref: string;
3103
+ }[] | undefined;
1841
3104
  }, {
1842
3105
  decision: "approved" | "rejected";
1843
3106
  stage: "layout-confirmation";
1844
3107
  feedback?: string | undefined;
3108
+ paths?: {
3109
+ output_path: string;
3110
+ artifact_ref: string;
3111
+ }[] | undefined;
1845
3112
  }>;
1846
3113
  export declare const indexerCurrentActionInputSchema: z.ZodUnion<[z.ZodObject<{
1847
3114
  stage: z.ZodLiteral<"provider-selection">;
@@ -2922,717 +4189,1533 @@ export declare const indexerCurrentActionInputSchema: z.ZodUnion<[z.ZodObject<{
2922
4189
  }, {
2923
4190
  decision: "approved" | "rejected";
2924
4191
  stage: "provider-program-authorization";
2925
- }>, z.ZodObject<{
2926
- stage: z.ZodLiteral<"provider-finalization">;
2927
- }, "strict", z.ZodTypeAny, {
2928
- stage: "provider-finalization";
2929
- }, {
2930
- stage: "provider-finalization";
2931
- }>, z.ZodUnion<[z.ZodObject<{
4192
+ }>, z.ZodEffects<z.ZodObject<{
2932
4193
  stage: z.ZodLiteral<"partition">;
2933
- outcome: z.ZodLiteral<"complete">;
2934
- unit_type: z.ZodString;
2935
- partition_axis: z.ZodString;
2936
- groups: z.ZodArray<z.ZodObject<{
2937
- key: z.ZodString;
2938
- title: z.ZodString;
2939
- reader_task: z.ZodString;
2940
- subject: z.ZodUnion<[z.ZodString, z.ZodObject<{
2941
- namespace: z.ZodString;
2942
- kind: z.ZodString;
2943
- local_key: z.ZodString;
4194
+ results: z.ZodArray<z.ZodObject<{
4195
+ task_key: z.ZodString;
4196
+ result: z.ZodUnion<[z.ZodObject<{
4197
+ stage: z.ZodLiteral<"partition">;
4198
+ outcome: z.ZodLiteral<"complete">;
4199
+ groups: z.ZodArray<z.ZodObject<{
4200
+ key: z.ZodString;
4201
+ title: z.ZodString;
4202
+ reader_task: z.ZodString;
4203
+ subject: z.ZodUnion<[z.ZodString, z.ZodObject<{
4204
+ namespace: z.ZodString;
4205
+ kind: z.ZodString;
4206
+ local_key: z.ZodString;
4207
+ }, "strict", z.ZodTypeAny, {
4208
+ kind: string;
4209
+ namespace: string;
4210
+ local_key: string;
4211
+ }, {
4212
+ kind: string;
4213
+ namespace: string;
4214
+ local_key: string;
4215
+ }>]>;
4216
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
4217
+ members: z.ZodArray<z.ZodString, "many">;
4218
+ questions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4219
+ question_targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
4220
+ target: z.ZodString;
4221
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
4222
+ }, "strict", z.ZodTypeAny, {
4223
+ role: "enricher" | "primary-carrier";
4224
+ target: string;
4225
+ }, {
4226
+ role: "enricher" | "primary-carrier";
4227
+ target: string;
4228
+ }>, "many">>;
4229
+ outline: z.ZodArray<z.ZodString, "many">;
4230
+ }, "strict", z.ZodTypeAny, {
4231
+ title: string;
4232
+ key: string;
4233
+ questions: string[];
4234
+ subject_intent: "primary" | "enrich-or-independent";
4235
+ reader_task: string;
4236
+ subject: string | {
4237
+ kind: string;
4238
+ namespace: string;
4239
+ local_key: string;
4240
+ };
4241
+ members: string[];
4242
+ question_targets: {
4243
+ role: "enricher" | "primary-carrier";
4244
+ target: string;
4245
+ }[];
4246
+ outline: string[];
4247
+ }, {
4248
+ title: string;
4249
+ key: string;
4250
+ subject_intent: "primary" | "enrich-or-independent";
4251
+ reader_task: string;
4252
+ subject: string | {
4253
+ kind: string;
4254
+ namespace: string;
4255
+ local_key: string;
4256
+ };
4257
+ members: string[];
4258
+ outline: string[];
4259
+ questions?: string[] | undefined;
4260
+ question_targets?: {
4261
+ role: "enricher" | "primary-carrier";
4262
+ target: string;
4263
+ }[] | undefined;
4264
+ }>, "many">;
4265
+ excluded: z.ZodDefault<z.ZodArray<z.ZodObject<{
4266
+ item: z.ZodString;
4267
+ reason_code: z.ZodString;
4268
+ }, "strict", z.ZodTypeAny, {
4269
+ item: string;
4270
+ reason_code: string;
4271
+ }, {
4272
+ item: string;
4273
+ reason_code: string;
4274
+ }>, "many">>;
4275
+ unsupported: z.ZodDefault<z.ZodArray<z.ZodObject<{
4276
+ item: z.ZodString;
4277
+ missing_capabilities: z.ZodArray<z.ZodString, "many">;
4278
+ }, "strict", z.ZodTypeAny, {
4279
+ item: string;
4280
+ missing_capabilities: string[];
4281
+ }, {
4282
+ item: string;
4283
+ missing_capabilities: string[];
4284
+ }>, "many">>;
2944
4285
  }, "strict", z.ZodTypeAny, {
2945
- kind: string;
2946
- namespace: string;
2947
- local_key: string;
4286
+ unsupported: {
4287
+ item: string;
4288
+ missing_capabilities: string[];
4289
+ }[];
4290
+ excluded: {
4291
+ item: string;
4292
+ reason_code: string;
4293
+ }[];
4294
+ stage: "partition";
4295
+ groups: {
4296
+ title: string;
4297
+ key: string;
4298
+ questions: string[];
4299
+ subject_intent: "primary" | "enrich-or-independent";
4300
+ reader_task: string;
4301
+ subject: string | {
4302
+ kind: string;
4303
+ namespace: string;
4304
+ local_key: string;
4305
+ };
4306
+ members: string[];
4307
+ question_targets: {
4308
+ role: "enricher" | "primary-carrier";
4309
+ target: string;
4310
+ }[];
4311
+ outline: string[];
4312
+ }[];
4313
+ outcome: "complete";
2948
4314
  }, {
2949
- kind: string;
2950
- namespace: string;
2951
- local_key: string;
2952
- }>]>;
2953
- subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
2954
- members: z.ZodArray<z.ZodString, "many">;
2955
- questions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2956
- question_targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2957
- target: z.ZodString;
2958
- role: z.ZodEnum<["primary-carrier", "enricher"]>;
4315
+ stage: "partition";
4316
+ groups: {
4317
+ title: string;
4318
+ key: string;
4319
+ subject_intent: "primary" | "enrich-or-independent";
4320
+ reader_task: string;
4321
+ subject: string | {
4322
+ kind: string;
4323
+ namespace: string;
4324
+ local_key: string;
4325
+ };
4326
+ members: string[];
4327
+ outline: string[];
4328
+ questions?: string[] | undefined;
4329
+ question_targets?: {
4330
+ role: "enricher" | "primary-carrier";
4331
+ target: string;
4332
+ }[] | undefined;
4333
+ }[];
4334
+ outcome: "complete";
4335
+ unsupported?: {
4336
+ item: string;
4337
+ missing_capabilities: string[];
4338
+ }[] | undefined;
4339
+ excluded?: {
4340
+ item: string;
4341
+ reason_code: string;
4342
+ }[] | undefined;
4343
+ }>, z.ZodObject<{
4344
+ stage: z.ZodLiteral<"partition">;
4345
+ outcome: z.ZodLiteral<"failed">;
4346
+ groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
4347
+ key: z.ZodString;
4348
+ title: z.ZodString;
4349
+ reader_task: z.ZodString;
4350
+ subject: z.ZodUnion<[z.ZodString, z.ZodObject<{
4351
+ namespace: z.ZodString;
4352
+ kind: z.ZodString;
4353
+ local_key: z.ZodString;
4354
+ }, "strict", z.ZodTypeAny, {
4355
+ kind: string;
4356
+ namespace: string;
4357
+ local_key: string;
4358
+ }, {
4359
+ kind: string;
4360
+ namespace: string;
4361
+ local_key: string;
4362
+ }>]>;
4363
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
4364
+ members: z.ZodArray<z.ZodString, "many">;
4365
+ questions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4366
+ question_targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
4367
+ target: z.ZodString;
4368
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
4369
+ }, "strict", z.ZodTypeAny, {
4370
+ role: "enricher" | "primary-carrier";
4371
+ target: string;
4372
+ }, {
4373
+ role: "enricher" | "primary-carrier";
4374
+ target: string;
4375
+ }>, "many">>;
4376
+ outline: z.ZodArray<z.ZodString, "many">;
4377
+ }, "strict", z.ZodTypeAny, {
4378
+ title: string;
4379
+ key: string;
4380
+ questions: string[];
4381
+ subject_intent: "primary" | "enrich-or-independent";
4382
+ reader_task: string;
4383
+ subject: string | {
4384
+ kind: string;
4385
+ namespace: string;
4386
+ local_key: string;
4387
+ };
4388
+ members: string[];
4389
+ question_targets: {
4390
+ role: "enricher" | "primary-carrier";
4391
+ target: string;
4392
+ }[];
4393
+ outline: string[];
4394
+ }, {
4395
+ title: string;
4396
+ key: string;
4397
+ subject_intent: "primary" | "enrich-or-independent";
4398
+ reader_task: string;
4399
+ subject: string | {
4400
+ kind: string;
4401
+ namespace: string;
4402
+ local_key: string;
4403
+ };
4404
+ members: string[];
4405
+ outline: string[];
4406
+ questions?: string[] | undefined;
4407
+ question_targets?: {
4408
+ role: "enricher" | "primary-carrier";
4409
+ target: string;
4410
+ }[] | undefined;
4411
+ }>, "many">>;
4412
+ excluded: z.ZodDefault<z.ZodArray<z.ZodObject<{
4413
+ item: z.ZodString;
4414
+ reason_code: z.ZodString;
4415
+ }, "strict", z.ZodTypeAny, {
4416
+ item: string;
4417
+ reason_code: string;
4418
+ }, {
4419
+ item: string;
4420
+ reason_code: string;
4421
+ }>, "many">>;
4422
+ unsupported: z.ZodDefault<z.ZodArray<z.ZodObject<{
4423
+ item: z.ZodString;
4424
+ missing_capabilities: z.ZodArray<z.ZodString, "many">;
4425
+ }, "strict", z.ZodTypeAny, {
4426
+ item: string;
4427
+ missing_capabilities: string[];
4428
+ }, {
4429
+ item: string;
4430
+ missing_capabilities: string[];
4431
+ }>, "many">>;
4432
+ failure: z.ZodObject<{
4433
+ code: z.ZodEnum<["unsupported-domain", "no-stable-axis", "insufficient-identity-facts", "invalid-input", "strategy-failed"]>;
4434
+ message: z.ZodString;
4435
+ unassigned: z.ZodArray<z.ZodString, "many">;
4436
+ missing_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4437
+ missing_sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4438
+ }, "strict", z.ZodTypeAny, {
4439
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4440
+ message: string;
4441
+ unassigned: string[];
4442
+ missing_capabilities?: string[] | undefined;
4443
+ missing_sources?: string[] | undefined;
4444
+ }, {
4445
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4446
+ message: string;
4447
+ unassigned: string[];
4448
+ missing_capabilities?: string[] | undefined;
4449
+ missing_sources?: string[] | undefined;
4450
+ }>;
2959
4451
  }, "strict", z.ZodTypeAny, {
2960
- role: "enricher" | "primary-carrier";
2961
- target: string;
4452
+ unsupported: {
4453
+ item: string;
4454
+ missing_capabilities: string[];
4455
+ }[];
4456
+ excluded: {
4457
+ item: string;
4458
+ reason_code: string;
4459
+ }[];
4460
+ stage: "partition";
4461
+ failure: {
4462
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4463
+ message: string;
4464
+ unassigned: string[];
4465
+ missing_capabilities?: string[] | undefined;
4466
+ missing_sources?: string[] | undefined;
4467
+ };
4468
+ groups: {
4469
+ title: string;
4470
+ key: string;
4471
+ questions: string[];
4472
+ subject_intent: "primary" | "enrich-or-independent";
4473
+ reader_task: string;
4474
+ subject: string | {
4475
+ kind: string;
4476
+ namespace: string;
4477
+ local_key: string;
4478
+ };
4479
+ members: string[];
4480
+ question_targets: {
4481
+ role: "enricher" | "primary-carrier";
4482
+ target: string;
4483
+ }[];
4484
+ outline: string[];
4485
+ }[];
4486
+ outcome: "failed";
2962
4487
  }, {
2963
- role: "enricher" | "primary-carrier";
2964
- target: string;
2965
- }>, "many">>;
2966
- outline: z.ZodArray<z.ZodString, "many">;
4488
+ stage: "partition";
4489
+ failure: {
4490
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4491
+ message: string;
4492
+ unassigned: string[];
4493
+ missing_capabilities?: string[] | undefined;
4494
+ missing_sources?: string[] | undefined;
4495
+ };
4496
+ outcome: "failed";
4497
+ unsupported?: {
4498
+ item: string;
4499
+ missing_capabilities: string[];
4500
+ }[] | undefined;
4501
+ excluded?: {
4502
+ item: string;
4503
+ reason_code: string;
4504
+ }[] | undefined;
4505
+ groups?: {
4506
+ title: string;
4507
+ key: string;
4508
+ subject_intent: "primary" | "enrich-or-independent";
4509
+ reader_task: string;
4510
+ subject: string | {
4511
+ kind: string;
4512
+ namespace: string;
4513
+ local_key: string;
4514
+ };
4515
+ members: string[];
4516
+ outline: string[];
4517
+ questions?: string[] | undefined;
4518
+ question_targets?: {
4519
+ role: "enricher" | "primary-carrier";
4520
+ target: string;
4521
+ }[] | undefined;
4522
+ }[] | undefined;
4523
+ }>]>;
2967
4524
  }, "strict", z.ZodTypeAny, {
2968
- title: string;
2969
- key: string;
2970
- questions: string[];
2971
- subject_intent: "primary" | "enrich-or-independent";
2972
- reader_task: string;
2973
- subject: string | {
2974
- kind: string;
2975
- namespace: string;
2976
- local_key: string;
2977
- };
2978
- members: string[];
2979
- question_targets: {
2980
- role: "enricher" | "primary-carrier";
2981
- target: string;
2982
- }[];
2983
- outline: string[];
4525
+ result: {
4526
+ unsupported: {
4527
+ item: string;
4528
+ missing_capabilities: string[];
4529
+ }[];
4530
+ excluded: {
4531
+ item: string;
4532
+ reason_code: string;
4533
+ }[];
4534
+ stage: "partition";
4535
+ groups: {
4536
+ title: string;
4537
+ key: string;
4538
+ questions: string[];
4539
+ subject_intent: "primary" | "enrich-or-independent";
4540
+ reader_task: string;
4541
+ subject: string | {
4542
+ kind: string;
4543
+ namespace: string;
4544
+ local_key: string;
4545
+ };
4546
+ members: string[];
4547
+ question_targets: {
4548
+ role: "enricher" | "primary-carrier";
4549
+ target: string;
4550
+ }[];
4551
+ outline: string[];
4552
+ }[];
4553
+ outcome: "complete";
4554
+ } | {
4555
+ unsupported: {
4556
+ item: string;
4557
+ missing_capabilities: string[];
4558
+ }[];
4559
+ excluded: {
4560
+ item: string;
4561
+ reason_code: string;
4562
+ }[];
4563
+ stage: "partition";
4564
+ failure: {
4565
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4566
+ message: string;
4567
+ unassigned: string[];
4568
+ missing_capabilities?: string[] | undefined;
4569
+ missing_sources?: string[] | undefined;
4570
+ };
4571
+ groups: {
4572
+ title: string;
4573
+ key: string;
4574
+ questions: string[];
4575
+ subject_intent: "primary" | "enrich-or-independent";
4576
+ reader_task: string;
4577
+ subject: string | {
4578
+ kind: string;
4579
+ namespace: string;
4580
+ local_key: string;
4581
+ };
4582
+ members: string[];
4583
+ question_targets: {
4584
+ role: "enricher" | "primary-carrier";
4585
+ target: string;
4586
+ }[];
4587
+ outline: string[];
4588
+ }[];
4589
+ outcome: "failed";
4590
+ };
4591
+ task_key: string;
2984
4592
  }, {
2985
- title: string;
2986
- key: string;
2987
- subject_intent: "primary" | "enrich-or-independent";
2988
- reader_task: string;
2989
- subject: string | {
2990
- kind: string;
2991
- namespace: string;
2992
- local_key: string;
4593
+ result: {
4594
+ stage: "partition";
4595
+ groups: {
4596
+ title: string;
4597
+ key: string;
4598
+ subject_intent: "primary" | "enrich-or-independent";
4599
+ reader_task: string;
4600
+ subject: string | {
4601
+ kind: string;
4602
+ namespace: string;
4603
+ local_key: string;
4604
+ };
4605
+ members: string[];
4606
+ outline: string[];
4607
+ questions?: string[] | undefined;
4608
+ question_targets?: {
4609
+ role: "enricher" | "primary-carrier";
4610
+ target: string;
4611
+ }[] | undefined;
4612
+ }[];
4613
+ outcome: "complete";
4614
+ unsupported?: {
4615
+ item: string;
4616
+ missing_capabilities: string[];
4617
+ }[] | undefined;
4618
+ excluded?: {
4619
+ item: string;
4620
+ reason_code: string;
4621
+ }[] | undefined;
4622
+ } | {
4623
+ stage: "partition";
4624
+ failure: {
4625
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4626
+ message: string;
4627
+ unassigned: string[];
4628
+ missing_capabilities?: string[] | undefined;
4629
+ missing_sources?: string[] | undefined;
4630
+ };
4631
+ outcome: "failed";
4632
+ unsupported?: {
4633
+ item: string;
4634
+ missing_capabilities: string[];
4635
+ }[] | undefined;
4636
+ excluded?: {
4637
+ item: string;
4638
+ reason_code: string;
4639
+ }[] | undefined;
4640
+ groups?: {
4641
+ title: string;
4642
+ key: string;
4643
+ subject_intent: "primary" | "enrich-or-independent";
4644
+ reader_task: string;
4645
+ subject: string | {
4646
+ kind: string;
4647
+ namespace: string;
4648
+ local_key: string;
4649
+ };
4650
+ members: string[];
4651
+ outline: string[];
4652
+ questions?: string[] | undefined;
4653
+ question_targets?: {
4654
+ role: "enricher" | "primary-carrier";
4655
+ target: string;
4656
+ }[] | undefined;
4657
+ }[] | undefined;
2993
4658
  };
2994
- members: string[];
2995
- outline: string[];
2996
- questions?: string[] | undefined;
2997
- question_targets?: {
2998
- role: "enricher" | "primary-carrier";
2999
- target: string;
3000
- }[] | undefined;
4659
+ task_key: string;
3001
4660
  }>, "many">;
3002
- excluded: z.ZodDefault<z.ZodArray<z.ZodObject<{
3003
- item: z.ZodString;
3004
- reason_code: z.ZodString;
3005
- }, "strict", z.ZodTypeAny, {
3006
- item: string;
3007
- reason_code: string;
3008
- }, {
3009
- item: string;
3010
- reason_code: string;
3011
- }>, "many">>;
3012
- unsupported: z.ZodDefault<z.ZodArray<z.ZodObject<{
3013
- item: z.ZodString;
3014
- missing_capabilities: z.ZodArray<z.ZodString, "many">;
3015
- }, "strict", z.ZodTypeAny, {
3016
- item: string;
3017
- missing_capabilities: string[];
3018
- }, {
3019
- item: string;
3020
- missing_capabilities: string[];
3021
- }>, "many">>;
3022
4661
  }, "strict", z.ZodTypeAny, {
3023
- unsupported: {
3024
- item: string;
3025
- missing_capabilities: string[];
3026
- }[];
3027
- excluded: {
3028
- item: string;
3029
- reason_code: string;
3030
- }[];
3031
4662
  stage: "partition";
3032
- unit_type: string;
3033
- partition_axis: string;
3034
- groups: {
3035
- title: string;
3036
- key: string;
3037
- questions: string[];
3038
- subject_intent: "primary" | "enrich-or-independent";
3039
- reader_task: string;
3040
- subject: string | {
3041
- kind: string;
3042
- namespace: string;
3043
- local_key: string;
4663
+ results: {
4664
+ result: {
4665
+ unsupported: {
4666
+ item: string;
4667
+ missing_capabilities: string[];
4668
+ }[];
4669
+ excluded: {
4670
+ item: string;
4671
+ reason_code: string;
4672
+ }[];
4673
+ stage: "partition";
4674
+ groups: {
4675
+ title: string;
4676
+ key: string;
4677
+ questions: string[];
4678
+ subject_intent: "primary" | "enrich-or-independent";
4679
+ reader_task: string;
4680
+ subject: string | {
4681
+ kind: string;
4682
+ namespace: string;
4683
+ local_key: string;
4684
+ };
4685
+ members: string[];
4686
+ question_targets: {
4687
+ role: "enricher" | "primary-carrier";
4688
+ target: string;
4689
+ }[];
4690
+ outline: string[];
4691
+ }[];
4692
+ outcome: "complete";
4693
+ } | {
4694
+ unsupported: {
4695
+ item: string;
4696
+ missing_capabilities: string[];
4697
+ }[];
4698
+ excluded: {
4699
+ item: string;
4700
+ reason_code: string;
4701
+ }[];
4702
+ stage: "partition";
4703
+ failure: {
4704
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4705
+ message: string;
4706
+ unassigned: string[];
4707
+ missing_capabilities?: string[] | undefined;
4708
+ missing_sources?: string[] | undefined;
4709
+ };
4710
+ groups: {
4711
+ title: string;
4712
+ key: string;
4713
+ questions: string[];
4714
+ subject_intent: "primary" | "enrich-or-independent";
4715
+ reader_task: string;
4716
+ subject: string | {
4717
+ kind: string;
4718
+ namespace: string;
4719
+ local_key: string;
4720
+ };
4721
+ members: string[];
4722
+ question_targets: {
4723
+ role: "enricher" | "primary-carrier";
4724
+ target: string;
4725
+ }[];
4726
+ outline: string[];
4727
+ }[];
4728
+ outcome: "failed";
3044
4729
  };
3045
- members: string[];
3046
- question_targets: {
3047
- role: "enricher" | "primary-carrier";
3048
- target: string;
3049
- }[];
3050
- outline: string[];
4730
+ task_key: string;
3051
4731
  }[];
3052
- outcome: "complete";
3053
4732
  }, {
3054
4733
  stage: "partition";
3055
- unit_type: string;
3056
- partition_axis: string;
3057
- groups: {
3058
- title: string;
3059
- key: string;
3060
- subject_intent: "primary" | "enrich-or-independent";
3061
- reader_task: string;
3062
- subject: string | {
3063
- kind: string;
3064
- namespace: string;
3065
- local_key: string;
3066
- };
3067
- members: string[];
3068
- outline: string[];
3069
- questions?: string[] | undefined;
3070
- question_targets?: {
3071
- role: "enricher" | "primary-carrier";
3072
- target: string;
3073
- }[] | undefined;
3074
- }[];
3075
- outcome: "complete";
3076
- unsupported?: {
3077
- item: string;
3078
- missing_capabilities: string[];
3079
- }[] | undefined;
3080
- excluded?: {
3081
- item: string;
3082
- reason_code: string;
3083
- }[] | undefined;
3084
- }>, z.ZodObject<{
3085
- stage: z.ZodLiteral<"partition">;
3086
- outcome: z.ZodLiteral<"failed">;
3087
- unit_type: z.ZodString;
3088
- partition_axis: z.ZodString;
3089
- groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
3090
- key: z.ZodString;
3091
- title: z.ZodString;
3092
- reader_task: z.ZodString;
3093
- subject: z.ZodUnion<[z.ZodString, z.ZodObject<{
3094
- namespace: z.ZodString;
3095
- kind: z.ZodString;
3096
- local_key: z.ZodString;
3097
- }, "strict", z.ZodTypeAny, {
3098
- kind: string;
3099
- namespace: string;
3100
- local_key: string;
3101
- }, {
3102
- kind: string;
3103
- namespace: string;
3104
- local_key: string;
3105
- }>]>;
3106
- subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
3107
- members: z.ZodArray<z.ZodString, "many">;
3108
- questions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3109
- question_targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
3110
- target: z.ZodString;
3111
- role: z.ZodEnum<["primary-carrier", "enricher"]>;
3112
- }, "strict", z.ZodTypeAny, {
3113
- role: "enricher" | "primary-carrier";
3114
- target: string;
3115
- }, {
3116
- role: "enricher" | "primary-carrier";
3117
- target: string;
3118
- }>, "many">>;
3119
- outline: z.ZodArray<z.ZodString, "many">;
3120
- }, "strict", z.ZodTypeAny, {
3121
- title: string;
3122
- key: string;
3123
- questions: string[];
3124
- subject_intent: "primary" | "enrich-or-independent";
3125
- reader_task: string;
3126
- subject: string | {
3127
- kind: string;
3128
- namespace: string;
3129
- local_key: string;
3130
- };
3131
- members: string[];
3132
- question_targets: {
3133
- role: "enricher" | "primary-carrier";
3134
- target: string;
3135
- }[];
3136
- outline: string[];
3137
- }, {
3138
- title: string;
3139
- key: string;
3140
- subject_intent: "primary" | "enrich-or-independent";
3141
- reader_task: string;
3142
- subject: string | {
3143
- kind: string;
3144
- namespace: string;
3145
- local_key: string;
4734
+ results: {
4735
+ result: {
4736
+ stage: "partition";
4737
+ groups: {
4738
+ title: string;
4739
+ key: string;
4740
+ subject_intent: "primary" | "enrich-or-independent";
4741
+ reader_task: string;
4742
+ subject: string | {
4743
+ kind: string;
4744
+ namespace: string;
4745
+ local_key: string;
4746
+ };
4747
+ members: string[];
4748
+ outline: string[];
4749
+ questions?: string[] | undefined;
4750
+ question_targets?: {
4751
+ role: "enricher" | "primary-carrier";
4752
+ target: string;
4753
+ }[] | undefined;
4754
+ }[];
4755
+ outcome: "complete";
4756
+ unsupported?: {
4757
+ item: string;
4758
+ missing_capabilities: string[];
4759
+ }[] | undefined;
4760
+ excluded?: {
4761
+ item: string;
4762
+ reason_code: string;
4763
+ }[] | undefined;
4764
+ } | {
4765
+ stage: "partition";
4766
+ failure: {
4767
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4768
+ message: string;
4769
+ unassigned: string[];
4770
+ missing_capabilities?: string[] | undefined;
4771
+ missing_sources?: string[] | undefined;
4772
+ };
4773
+ outcome: "failed";
4774
+ unsupported?: {
4775
+ item: string;
4776
+ missing_capabilities: string[];
4777
+ }[] | undefined;
4778
+ excluded?: {
4779
+ item: string;
4780
+ reason_code: string;
4781
+ }[] | undefined;
4782
+ groups?: {
4783
+ title: string;
4784
+ key: string;
4785
+ subject_intent: "primary" | "enrich-or-independent";
4786
+ reader_task: string;
4787
+ subject: string | {
4788
+ kind: string;
4789
+ namespace: string;
4790
+ local_key: string;
4791
+ };
4792
+ members: string[];
4793
+ outline: string[];
4794
+ questions?: string[] | undefined;
4795
+ question_targets?: {
4796
+ role: "enricher" | "primary-carrier";
4797
+ target: string;
4798
+ }[] | undefined;
4799
+ }[] | undefined;
3146
4800
  };
3147
- members: string[];
3148
- outline: string[];
3149
- questions?: string[] | undefined;
3150
- question_targets?: {
3151
- role: "enricher" | "primary-carrier";
3152
- target: string;
3153
- }[] | undefined;
3154
- }>, "many">>;
3155
- excluded: z.ZodDefault<z.ZodArray<z.ZodObject<{
3156
- item: z.ZodString;
3157
- reason_code: z.ZodString;
3158
- }, "strict", z.ZodTypeAny, {
3159
- item: string;
3160
- reason_code: string;
3161
- }, {
3162
- item: string;
3163
- reason_code: string;
3164
- }>, "many">>;
3165
- unsupported: z.ZodDefault<z.ZodArray<z.ZodObject<{
3166
- item: z.ZodString;
3167
- missing_capabilities: z.ZodArray<z.ZodString, "many">;
3168
- }, "strict", z.ZodTypeAny, {
3169
- item: string;
3170
- missing_capabilities: string[];
3171
- }, {
3172
- item: string;
3173
- missing_capabilities: string[];
3174
- }>, "many">>;
3175
- failure: z.ZodObject<{
3176
- code: z.ZodEnum<["unsupported-domain", "no-stable-axis", "insufficient-identity-facts", "invalid-input", "strategy-failed"]>;
3177
- message: z.ZodString;
3178
- unassigned: z.ZodArray<z.ZodString, "many">;
3179
- missing_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3180
- missing_sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3181
- }, "strict", z.ZodTypeAny, {
3182
- code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
3183
- message: string;
3184
- unassigned: string[];
3185
- missing_capabilities?: string[] | undefined;
3186
- missing_sources?: string[] | undefined;
3187
- }, {
3188
- code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
3189
- message: string;
3190
- unassigned: string[];
3191
- missing_capabilities?: string[] | undefined;
3192
- missing_sources?: string[] | undefined;
3193
- }>;
3194
- }, "strict", z.ZodTypeAny, {
3195
- unsupported: {
3196
- item: string;
3197
- missing_capabilities: string[];
3198
- }[];
3199
- excluded: {
3200
- item: string;
3201
- reason_code: string;
4801
+ task_key: string;
3202
4802
  }[];
4803
+ }>, {
3203
4804
  stage: "partition";
3204
- failure: {
3205
- code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
3206
- message: string;
3207
- unassigned: string[];
3208
- missing_capabilities?: string[] | undefined;
3209
- missing_sources?: string[] | undefined;
3210
- };
3211
- unit_type: string;
3212
- partition_axis: string;
3213
- groups: {
3214
- title: string;
3215
- key: string;
3216
- questions: string[];
3217
- subject_intent: "primary" | "enrich-or-independent";
3218
- reader_task: string;
3219
- subject: string | {
3220
- kind: string;
3221
- namespace: string;
3222
- local_key: string;
4805
+ results: {
4806
+ result: {
4807
+ unsupported: {
4808
+ item: string;
4809
+ missing_capabilities: string[];
4810
+ }[];
4811
+ excluded: {
4812
+ item: string;
4813
+ reason_code: string;
4814
+ }[];
4815
+ stage: "partition";
4816
+ groups: {
4817
+ title: string;
4818
+ key: string;
4819
+ questions: string[];
4820
+ subject_intent: "primary" | "enrich-or-independent";
4821
+ reader_task: string;
4822
+ subject: string | {
4823
+ kind: string;
4824
+ namespace: string;
4825
+ local_key: string;
4826
+ };
4827
+ members: string[];
4828
+ question_targets: {
4829
+ role: "enricher" | "primary-carrier";
4830
+ target: string;
4831
+ }[];
4832
+ outline: string[];
4833
+ }[];
4834
+ outcome: "complete";
4835
+ } | {
4836
+ unsupported: {
4837
+ item: string;
4838
+ missing_capabilities: string[];
4839
+ }[];
4840
+ excluded: {
4841
+ item: string;
4842
+ reason_code: string;
4843
+ }[];
4844
+ stage: "partition";
4845
+ failure: {
4846
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4847
+ message: string;
4848
+ unassigned: string[];
4849
+ missing_capabilities?: string[] | undefined;
4850
+ missing_sources?: string[] | undefined;
4851
+ };
4852
+ groups: {
4853
+ title: string;
4854
+ key: string;
4855
+ questions: string[];
4856
+ subject_intent: "primary" | "enrich-or-independent";
4857
+ reader_task: string;
4858
+ subject: string | {
4859
+ kind: string;
4860
+ namespace: string;
4861
+ local_key: string;
4862
+ };
4863
+ members: string[];
4864
+ question_targets: {
4865
+ role: "enricher" | "primary-carrier";
4866
+ target: string;
4867
+ }[];
4868
+ outline: string[];
4869
+ }[];
4870
+ outcome: "failed";
3223
4871
  };
3224
- members: string[];
3225
- question_targets: {
3226
- role: "enricher" | "primary-carrier";
3227
- target: string;
3228
- }[];
3229
- outline: string[];
4872
+ task_key: string;
3230
4873
  }[];
3231
- outcome: "failed";
3232
4874
  }, {
3233
4875
  stage: "partition";
3234
- failure: {
3235
- code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
3236
- message: string;
3237
- unassigned: string[];
3238
- missing_capabilities?: string[] | undefined;
3239
- missing_sources?: string[] | undefined;
3240
- };
3241
- unit_type: string;
3242
- partition_axis: string;
3243
- outcome: "failed";
3244
- unsupported?: {
3245
- item: string;
3246
- missing_capabilities: string[];
3247
- }[] | undefined;
3248
- excluded?: {
3249
- item: string;
3250
- reason_code: string;
3251
- }[] | undefined;
3252
- groups?: {
3253
- title: string;
3254
- key: string;
3255
- subject_intent: "primary" | "enrich-or-independent";
3256
- reader_task: string;
3257
- subject: string | {
3258
- kind: string;
3259
- namespace: string;
3260
- local_key: string;
4876
+ results: {
4877
+ result: {
4878
+ stage: "partition";
4879
+ groups: {
4880
+ title: string;
4881
+ key: string;
4882
+ subject_intent: "primary" | "enrich-or-independent";
4883
+ reader_task: string;
4884
+ subject: string | {
4885
+ kind: string;
4886
+ namespace: string;
4887
+ local_key: string;
4888
+ };
4889
+ members: string[];
4890
+ outline: string[];
4891
+ questions?: string[] | undefined;
4892
+ question_targets?: {
4893
+ role: "enricher" | "primary-carrier";
4894
+ target: string;
4895
+ }[] | undefined;
4896
+ }[];
4897
+ outcome: "complete";
4898
+ unsupported?: {
4899
+ item: string;
4900
+ missing_capabilities: string[];
4901
+ }[] | undefined;
4902
+ excluded?: {
4903
+ item: string;
4904
+ reason_code: string;
4905
+ }[] | undefined;
4906
+ } | {
4907
+ stage: "partition";
4908
+ failure: {
4909
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
4910
+ message: string;
4911
+ unassigned: string[];
4912
+ missing_capabilities?: string[] | undefined;
4913
+ missing_sources?: string[] | undefined;
4914
+ };
4915
+ outcome: "failed";
4916
+ unsupported?: {
4917
+ item: string;
4918
+ missing_capabilities: string[];
4919
+ }[] | undefined;
4920
+ excluded?: {
4921
+ item: string;
4922
+ reason_code: string;
4923
+ }[] | undefined;
4924
+ groups?: {
4925
+ title: string;
4926
+ key: string;
4927
+ subject_intent: "primary" | "enrich-or-independent";
4928
+ reader_task: string;
4929
+ subject: string | {
4930
+ kind: string;
4931
+ namespace: string;
4932
+ local_key: string;
4933
+ };
4934
+ members: string[];
4935
+ outline: string[];
4936
+ questions?: string[] | undefined;
4937
+ question_targets?: {
4938
+ role: "enricher" | "primary-carrier";
4939
+ target: string;
4940
+ }[] | undefined;
4941
+ }[] | undefined;
3261
4942
  };
3262
- members: string[];
3263
- outline: string[];
3264
- questions?: string[] | undefined;
3265
- question_targets?: {
3266
- role: "enricher" | "primary-carrier";
3267
- target: string;
3268
- }[] | undefined;
3269
- }[] | undefined;
3270
- }>]>, z.ZodEffects<z.ZodObject<{
3271
- stage: z.ZodLiteral<"author">;
3272
- group_key: z.ZodString;
3273
- outcome: z.ZodEnum<["publish", "catalog-only", "request-material", "unsupported"]>;
3274
- artifact_intent: z.ZodOptional<z.ZodString>;
3275
- policy: z.ZodOptional<z.ZodString>;
3276
- target_resolutions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3277
- target: z.ZodString;
3278
- disposition: z.ZodEnum<["reuse-existing", "create-independent", "unresolved"]>;
3279
- reason_code: z.ZodOptional<z.ZodString>;
3280
- }, "strict", z.ZodTypeAny, {
3281
- disposition: "reuse-existing" | "create-independent" | "unresolved";
3282
- target: string;
3283
- reason_code?: string | undefined;
3284
- }, {
3285
- disposition: "reuse-existing" | "create-independent" | "unresolved";
3286
- target: string;
3287
- reason_code?: string | undefined;
3288
- }>, "many">>;
3289
- title: z.ZodOptional<z.ZodString>;
3290
- summary: z.ZodOptional<z.ZodString>;
3291
- sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
3292
- key: z.ZodString;
3293
- heading: z.ZodString;
3294
- markdown: z.ZodString;
3295
- source_items: z.ZodArray<z.ZodString, "many">;
3296
- facts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3297
- answers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3298
- }, "strict", z.ZodTypeAny, {
3299
- key: string;
3300
- markdown: string;
3301
- facts: string[];
3302
- heading: string;
3303
- source_items: string[];
3304
- answers: string[];
3305
- }, {
3306
- key: string;
3307
- markdown: string;
3308
- heading: string;
3309
- source_items: string[];
3310
- facts?: string[] | undefined;
3311
- answers?: string[] | undefined;
3312
- }>, "many">>;
3313
- member_dispositions: z.ZodArray<z.ZodObject<{
3314
- item: z.ZodString;
3315
- state: z.ZodEnum<["covered", "catalog-only", "unsupported"]>;
3316
- section: z.ZodOptional<z.ZodString>;
3317
- reason_code: z.ZodOptional<z.ZodString>;
3318
- }, "strict", z.ZodTypeAny, {
3319
- item: string;
3320
- state: "unsupported" | "catalog-only" | "covered";
3321
- reason_code?: string | undefined;
3322
- section?: string | undefined;
3323
- }, {
3324
- item: string;
3325
- state: "unsupported" | "catalog-only" | "covered";
3326
- reason_code?: string | undefined;
3327
- section?: string | undefined;
3328
- }>, "many">;
3329
- material_gaps: z.ZodDefault<z.ZodArray<z.ZodObject<{
3330
- question: z.ZodString;
3331
- source_hints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3332
- }, "strict", z.ZodTypeAny, {
3333
- source_hints: string[];
3334
- question: string;
3335
- }, {
3336
- question: string;
3337
- source_hints?: string[] | undefined;
3338
- }>, "many">>;
3339
- diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
3340
- code: z.ZodString;
3341
- message: z.ZodString;
3342
- target: z.ZodOptional<z.ZodString>;
3343
- }, "strict", z.ZodTypeAny, {
3344
- code: string;
3345
- message: string;
3346
- target?: string | undefined;
3347
- }, {
3348
- code: string;
3349
- message: string;
3350
- target?: string | undefined;
3351
- }>, "many">>;
3352
- }, "strict", z.ZodTypeAny, {
3353
- sections: {
3354
- key: string;
3355
- markdown: string;
3356
- facts: string[];
3357
- heading: string;
3358
- source_items: string[];
3359
- answers: string[];
3360
- }[];
3361
- diagnostics: {
3362
- code: string;
3363
- message: string;
3364
- target?: string | undefined;
3365
- }[];
3366
- stage: "author";
3367
- group_key: string;
3368
- member_dispositions: {
3369
- item: string;
3370
- state: "unsupported" | "catalog-only" | "covered";
3371
- reason_code?: string | undefined;
3372
- section?: string | undefined;
3373
- }[];
3374
- outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
3375
- material_gaps: {
3376
- source_hints: string[];
3377
- question: string;
3378
- }[];
3379
- target_resolutions: {
3380
- disposition: "reuse-existing" | "create-independent" | "unresolved";
3381
- target: string;
3382
- reason_code?: string | undefined;
3383
- }[];
3384
- title?: string | undefined;
3385
- summary?: string | undefined;
3386
- artifact_intent?: string | undefined;
3387
- policy?: string | undefined;
3388
- }, {
3389
- stage: "author";
3390
- group_key: string;
3391
- member_dispositions: {
3392
- item: string;
3393
- state: "unsupported" | "catalog-only" | "covered";
3394
- reason_code?: string | undefined;
3395
- section?: string | undefined;
3396
- }[];
3397
- outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
3398
- title?: string | undefined;
3399
- sections?: {
3400
- key: string;
3401
- markdown: string;
3402
- heading: string;
3403
- source_items: string[];
3404
- facts?: string[] | undefined;
3405
- answers?: string[] | undefined;
3406
- }[] | undefined;
3407
- diagnostics?: {
3408
- code: string;
3409
- message: string;
3410
- target?: string | undefined;
3411
- }[] | undefined;
3412
- material_gaps?: {
3413
- question: string;
3414
- source_hints?: string[] | undefined;
3415
- }[] | undefined;
3416
- summary?: string | undefined;
3417
- artifact_intent?: string | undefined;
3418
- policy?: string | undefined;
3419
- target_resolutions?: {
3420
- disposition: "reuse-existing" | "create-independent" | "unresolved";
3421
- target: string;
3422
- reason_code?: string | undefined;
3423
- }[] | undefined;
3424
- }>, {
3425
- sections: {
3426
- key: string;
3427
- markdown: string;
3428
- facts: string[];
3429
- heading: string;
3430
- source_items: string[];
3431
- answers: string[];
3432
- }[];
3433
- diagnostics: {
3434
- code: string;
3435
- message: string;
3436
- target?: string | undefined;
4943
+ task_key: string;
3437
4944
  }[];
4945
+ }>, z.ZodEffects<z.ZodObject<{
4946
+ stage: z.ZodLiteral<"author">;
4947
+ results: z.ZodArray<z.ZodObject<{
4948
+ task_key: z.ZodString;
4949
+ result: z.ZodEffects<z.ZodObject<{
4950
+ stage: z.ZodLiteral<"author">;
4951
+ group_key: z.ZodString;
4952
+ outcome: z.ZodEnum<["publish", "catalog-only", "request-material", "unsupported"]>;
4953
+ artifact_intent: z.ZodOptional<z.ZodString>;
4954
+ policy: z.ZodOptional<z.ZodString>;
4955
+ target_resolutions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4956
+ target: z.ZodString;
4957
+ disposition: z.ZodEnum<["reuse-existing", "create-independent", "unresolved"]>;
4958
+ reason_code: z.ZodOptional<z.ZodString>;
4959
+ }, "strict", z.ZodTypeAny, {
4960
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
4961
+ target: string;
4962
+ reason_code?: string | undefined;
4963
+ }, {
4964
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
4965
+ target: string;
4966
+ reason_code?: string | undefined;
4967
+ }>, "many">>;
4968
+ title: z.ZodOptional<z.ZodString>;
4969
+ summary: z.ZodOptional<z.ZodString>;
4970
+ sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
4971
+ key: z.ZodString;
4972
+ heading: z.ZodString;
4973
+ markdown: z.ZodString;
4974
+ source_items: z.ZodArray<z.ZodString, "many">;
4975
+ facts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4976
+ answers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4977
+ }, "strict", z.ZodTypeAny, {
4978
+ key: string;
4979
+ markdown: string;
4980
+ facts: string[];
4981
+ heading: string;
4982
+ source_items: string[];
4983
+ answers: string[];
4984
+ }, {
4985
+ key: string;
4986
+ markdown: string;
4987
+ heading: string;
4988
+ source_items: string[];
4989
+ facts?: string[] | undefined;
4990
+ answers?: string[] | undefined;
4991
+ }>, "many">>;
4992
+ member_dispositions: z.ZodArray<z.ZodObject<{
4993
+ item: z.ZodString;
4994
+ state: z.ZodEnum<["covered", "catalog-only", "unsupported"]>;
4995
+ section: z.ZodOptional<z.ZodString>;
4996
+ reason_code: z.ZodOptional<z.ZodString>;
4997
+ }, "strict", z.ZodTypeAny, {
4998
+ item: string;
4999
+ state: "unsupported" | "catalog-only" | "covered";
5000
+ reason_code?: string | undefined;
5001
+ section?: string | undefined;
5002
+ }, {
5003
+ item: string;
5004
+ state: "unsupported" | "catalog-only" | "covered";
5005
+ reason_code?: string | undefined;
5006
+ section?: string | undefined;
5007
+ }>, "many">;
5008
+ material_gaps: z.ZodDefault<z.ZodArray<z.ZodObject<{
5009
+ question: z.ZodString;
5010
+ source_hints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5011
+ }, "strict", z.ZodTypeAny, {
5012
+ source_hints: string[];
5013
+ question: string;
5014
+ }, {
5015
+ question: string;
5016
+ source_hints?: string[] | undefined;
5017
+ }>, "many">>;
5018
+ diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
5019
+ code: z.ZodString;
5020
+ message: z.ZodString;
5021
+ target: z.ZodOptional<z.ZodString>;
5022
+ }, "strict", z.ZodTypeAny, {
5023
+ code: string;
5024
+ message: string;
5025
+ target?: string | undefined;
5026
+ }, {
5027
+ code: string;
5028
+ message: string;
5029
+ target?: string | undefined;
5030
+ }>, "many">>;
5031
+ }, "strict", z.ZodTypeAny, {
5032
+ sections: {
5033
+ key: string;
5034
+ markdown: string;
5035
+ facts: string[];
5036
+ heading: string;
5037
+ source_items: string[];
5038
+ answers: string[];
5039
+ }[];
5040
+ diagnostics: {
5041
+ code: string;
5042
+ message: string;
5043
+ target?: string | undefined;
5044
+ }[];
5045
+ stage: "author";
5046
+ group_key: string;
5047
+ member_dispositions: {
5048
+ item: string;
5049
+ state: "unsupported" | "catalog-only" | "covered";
5050
+ reason_code?: string | undefined;
5051
+ section?: string | undefined;
5052
+ }[];
5053
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5054
+ material_gaps: {
5055
+ source_hints: string[];
5056
+ question: string;
5057
+ }[];
5058
+ target_resolutions: {
5059
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5060
+ target: string;
5061
+ reason_code?: string | undefined;
5062
+ }[];
5063
+ title?: string | undefined;
5064
+ summary?: string | undefined;
5065
+ artifact_intent?: string | undefined;
5066
+ policy?: string | undefined;
5067
+ }, {
5068
+ stage: "author";
5069
+ group_key: string;
5070
+ member_dispositions: {
5071
+ item: string;
5072
+ state: "unsupported" | "catalog-only" | "covered";
5073
+ reason_code?: string | undefined;
5074
+ section?: string | undefined;
5075
+ }[];
5076
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5077
+ title?: string | undefined;
5078
+ sections?: {
5079
+ key: string;
5080
+ markdown: string;
5081
+ heading: string;
5082
+ source_items: string[];
5083
+ facts?: string[] | undefined;
5084
+ answers?: string[] | undefined;
5085
+ }[] | undefined;
5086
+ diagnostics?: {
5087
+ code: string;
5088
+ message: string;
5089
+ target?: string | undefined;
5090
+ }[] | undefined;
5091
+ material_gaps?: {
5092
+ question: string;
5093
+ source_hints?: string[] | undefined;
5094
+ }[] | undefined;
5095
+ summary?: string | undefined;
5096
+ artifact_intent?: string | undefined;
5097
+ policy?: string | undefined;
5098
+ target_resolutions?: {
5099
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5100
+ target: string;
5101
+ reason_code?: string | undefined;
5102
+ }[] | undefined;
5103
+ }>, {
5104
+ sections: {
5105
+ key: string;
5106
+ markdown: string;
5107
+ facts: string[];
5108
+ heading: string;
5109
+ source_items: string[];
5110
+ answers: string[];
5111
+ }[];
5112
+ diagnostics: {
5113
+ code: string;
5114
+ message: string;
5115
+ target?: string | undefined;
5116
+ }[];
5117
+ stage: "author";
5118
+ group_key: string;
5119
+ member_dispositions: {
5120
+ item: string;
5121
+ state: "unsupported" | "catalog-only" | "covered";
5122
+ reason_code?: string | undefined;
5123
+ section?: string | undefined;
5124
+ }[];
5125
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5126
+ material_gaps: {
5127
+ source_hints: string[];
5128
+ question: string;
5129
+ }[];
5130
+ target_resolutions: {
5131
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5132
+ target: string;
5133
+ reason_code?: string | undefined;
5134
+ }[];
5135
+ title?: string | undefined;
5136
+ summary?: string | undefined;
5137
+ artifact_intent?: string | undefined;
5138
+ policy?: string | undefined;
5139
+ }, {
5140
+ stage: "author";
5141
+ group_key: string;
5142
+ member_dispositions: {
5143
+ item: string;
5144
+ state: "unsupported" | "catalog-only" | "covered";
5145
+ reason_code?: string | undefined;
5146
+ section?: string | undefined;
5147
+ }[];
5148
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5149
+ title?: string | undefined;
5150
+ sections?: {
5151
+ key: string;
5152
+ markdown: string;
5153
+ heading: string;
5154
+ source_items: string[];
5155
+ facts?: string[] | undefined;
5156
+ answers?: string[] | undefined;
5157
+ }[] | undefined;
5158
+ diagnostics?: {
5159
+ code: string;
5160
+ message: string;
5161
+ target?: string | undefined;
5162
+ }[] | undefined;
5163
+ material_gaps?: {
5164
+ question: string;
5165
+ source_hints?: string[] | undefined;
5166
+ }[] | undefined;
5167
+ summary?: string | undefined;
5168
+ artifact_intent?: string | undefined;
5169
+ policy?: string | undefined;
5170
+ target_resolutions?: {
5171
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5172
+ target: string;
5173
+ reason_code?: string | undefined;
5174
+ }[] | undefined;
5175
+ }>;
5176
+ }, "strict", z.ZodTypeAny, {
5177
+ result: {
5178
+ sections: {
5179
+ key: string;
5180
+ markdown: string;
5181
+ facts: string[];
5182
+ heading: string;
5183
+ source_items: string[];
5184
+ answers: string[];
5185
+ }[];
5186
+ diagnostics: {
5187
+ code: string;
5188
+ message: string;
5189
+ target?: string | undefined;
5190
+ }[];
5191
+ stage: "author";
5192
+ group_key: string;
5193
+ member_dispositions: {
5194
+ item: string;
5195
+ state: "unsupported" | "catalog-only" | "covered";
5196
+ reason_code?: string | undefined;
5197
+ section?: string | undefined;
5198
+ }[];
5199
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5200
+ material_gaps: {
5201
+ source_hints: string[];
5202
+ question: string;
5203
+ }[];
5204
+ target_resolutions: {
5205
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5206
+ target: string;
5207
+ reason_code?: string | undefined;
5208
+ }[];
5209
+ title?: string | undefined;
5210
+ summary?: string | undefined;
5211
+ artifact_intent?: string | undefined;
5212
+ policy?: string | undefined;
5213
+ };
5214
+ task_key: string;
5215
+ }, {
5216
+ result: {
5217
+ stage: "author";
5218
+ group_key: string;
5219
+ member_dispositions: {
5220
+ item: string;
5221
+ state: "unsupported" | "catalog-only" | "covered";
5222
+ reason_code?: string | undefined;
5223
+ section?: string | undefined;
5224
+ }[];
5225
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5226
+ title?: string | undefined;
5227
+ sections?: {
5228
+ key: string;
5229
+ markdown: string;
5230
+ heading: string;
5231
+ source_items: string[];
5232
+ facts?: string[] | undefined;
5233
+ answers?: string[] | undefined;
5234
+ }[] | undefined;
5235
+ diagnostics?: {
5236
+ code: string;
5237
+ message: string;
5238
+ target?: string | undefined;
5239
+ }[] | undefined;
5240
+ material_gaps?: {
5241
+ question: string;
5242
+ source_hints?: string[] | undefined;
5243
+ }[] | undefined;
5244
+ summary?: string | undefined;
5245
+ artifact_intent?: string | undefined;
5246
+ policy?: string | undefined;
5247
+ target_resolutions?: {
5248
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5249
+ target: string;
5250
+ reason_code?: string | undefined;
5251
+ }[] | undefined;
5252
+ };
5253
+ task_key: string;
5254
+ }>, "many">;
5255
+ }, "strict", z.ZodTypeAny, {
3438
5256
  stage: "author";
3439
- group_key: string;
3440
- member_dispositions: {
3441
- item: string;
3442
- state: "unsupported" | "catalog-only" | "covered";
3443
- reason_code?: string | undefined;
3444
- section?: string | undefined;
5257
+ results: {
5258
+ result: {
5259
+ sections: {
5260
+ key: string;
5261
+ markdown: string;
5262
+ facts: string[];
5263
+ heading: string;
5264
+ source_items: string[];
5265
+ answers: string[];
5266
+ }[];
5267
+ diagnostics: {
5268
+ code: string;
5269
+ message: string;
5270
+ target?: string | undefined;
5271
+ }[];
5272
+ stage: "author";
5273
+ group_key: string;
5274
+ member_dispositions: {
5275
+ item: string;
5276
+ state: "unsupported" | "catalog-only" | "covered";
5277
+ reason_code?: string | undefined;
5278
+ section?: string | undefined;
5279
+ }[];
5280
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5281
+ material_gaps: {
5282
+ source_hints: string[];
5283
+ question: string;
5284
+ }[];
5285
+ target_resolutions: {
5286
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5287
+ target: string;
5288
+ reason_code?: string | undefined;
5289
+ }[];
5290
+ title?: string | undefined;
5291
+ summary?: string | undefined;
5292
+ artifact_intent?: string | undefined;
5293
+ policy?: string | undefined;
5294
+ };
5295
+ task_key: string;
3445
5296
  }[];
3446
- outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
3447
- material_gaps: {
3448
- source_hints: string[];
3449
- question: string;
5297
+ }, {
5298
+ stage: "author";
5299
+ results: {
5300
+ result: {
5301
+ stage: "author";
5302
+ group_key: string;
5303
+ member_dispositions: {
5304
+ item: string;
5305
+ state: "unsupported" | "catalog-only" | "covered";
5306
+ reason_code?: string | undefined;
5307
+ section?: string | undefined;
5308
+ }[];
5309
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5310
+ title?: string | undefined;
5311
+ sections?: {
5312
+ key: string;
5313
+ markdown: string;
5314
+ heading: string;
5315
+ source_items: string[];
5316
+ facts?: string[] | undefined;
5317
+ answers?: string[] | undefined;
5318
+ }[] | undefined;
5319
+ diagnostics?: {
5320
+ code: string;
5321
+ message: string;
5322
+ target?: string | undefined;
5323
+ }[] | undefined;
5324
+ material_gaps?: {
5325
+ question: string;
5326
+ source_hints?: string[] | undefined;
5327
+ }[] | undefined;
5328
+ summary?: string | undefined;
5329
+ artifact_intent?: string | undefined;
5330
+ policy?: string | undefined;
5331
+ target_resolutions?: {
5332
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5333
+ target: string;
5334
+ reason_code?: string | undefined;
5335
+ }[] | undefined;
5336
+ };
5337
+ task_key: string;
3450
5338
  }[];
3451
- target_resolutions: {
3452
- disposition: "reuse-existing" | "create-independent" | "unresolved";
3453
- target: string;
3454
- reason_code?: string | undefined;
5339
+ }>, {
5340
+ stage: "author";
5341
+ results: {
5342
+ result: {
5343
+ sections: {
5344
+ key: string;
5345
+ markdown: string;
5346
+ facts: string[];
5347
+ heading: string;
5348
+ source_items: string[];
5349
+ answers: string[];
5350
+ }[];
5351
+ diagnostics: {
5352
+ code: string;
5353
+ message: string;
5354
+ target?: string | undefined;
5355
+ }[];
5356
+ stage: "author";
5357
+ group_key: string;
5358
+ member_dispositions: {
5359
+ item: string;
5360
+ state: "unsupported" | "catalog-only" | "covered";
5361
+ reason_code?: string | undefined;
5362
+ section?: string | undefined;
5363
+ }[];
5364
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5365
+ material_gaps: {
5366
+ source_hints: string[];
5367
+ question: string;
5368
+ }[];
5369
+ target_resolutions: {
5370
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5371
+ target: string;
5372
+ reason_code?: string | undefined;
5373
+ }[];
5374
+ title?: string | undefined;
5375
+ summary?: string | undefined;
5376
+ artifact_intent?: string | undefined;
5377
+ policy?: string | undefined;
5378
+ };
5379
+ task_key: string;
3455
5380
  }[];
3456
- title?: string | undefined;
3457
- summary?: string | undefined;
3458
- artifact_intent?: string | undefined;
3459
- policy?: string | undefined;
3460
5381
  }, {
3461
5382
  stage: "author";
3462
- group_key: string;
3463
- member_dispositions: {
3464
- item: string;
3465
- state: "unsupported" | "catalog-only" | "covered";
3466
- reason_code?: string | undefined;
3467
- section?: string | undefined;
5383
+ results: {
5384
+ result: {
5385
+ stage: "author";
5386
+ group_key: string;
5387
+ member_dispositions: {
5388
+ item: string;
5389
+ state: "unsupported" | "catalog-only" | "covered";
5390
+ reason_code?: string | undefined;
5391
+ section?: string | undefined;
5392
+ }[];
5393
+ outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
5394
+ title?: string | undefined;
5395
+ sections?: {
5396
+ key: string;
5397
+ markdown: string;
5398
+ heading: string;
5399
+ source_items: string[];
5400
+ facts?: string[] | undefined;
5401
+ answers?: string[] | undefined;
5402
+ }[] | undefined;
5403
+ diagnostics?: {
5404
+ code: string;
5405
+ message: string;
5406
+ target?: string | undefined;
5407
+ }[] | undefined;
5408
+ material_gaps?: {
5409
+ question: string;
5410
+ source_hints?: string[] | undefined;
5411
+ }[] | undefined;
5412
+ summary?: string | undefined;
5413
+ artifact_intent?: string | undefined;
5414
+ policy?: string | undefined;
5415
+ target_resolutions?: {
5416
+ disposition: "reuse-existing" | "create-independent" | "unresolved";
5417
+ target: string;
5418
+ reason_code?: string | undefined;
5419
+ }[] | undefined;
5420
+ };
5421
+ task_key: string;
3468
5422
  }[];
3469
- outcome: "unsupported" | "catalog-only" | "request-material" | "publish";
3470
- title?: string | undefined;
3471
- sections?: {
3472
- key: string;
3473
- markdown: string;
3474
- heading: string;
3475
- source_items: string[];
3476
- facts?: string[] | undefined;
3477
- answers?: string[] | undefined;
3478
- }[] | undefined;
3479
- diagnostics?: {
3480
- code: string;
3481
- message: string;
3482
- target?: string | undefined;
3483
- }[] | undefined;
3484
- material_gaps?: {
3485
- question: string;
3486
- source_hints?: string[] | undefined;
3487
- }[] | undefined;
3488
- summary?: string | undefined;
3489
- artifact_intent?: string | undefined;
3490
- policy?: string | undefined;
3491
- target_resolutions?: {
3492
- disposition: "reuse-existing" | "create-independent" | "unresolved";
3493
- target: string;
3494
- reason_code?: string | undefined;
3495
- }[] | undefined;
3496
5423
  }>, z.ZodEffects<z.ZodObject<{
3497
5424
  stage: z.ZodLiteral<"post-author">;
3498
- outcome: z.ZodEnum<["complete", "failed"]>;
3499
- proposals: z.ZodDefault<z.ZodArray<z.ZodObject<{
3500
- target: z.ZodString;
3501
- artifact_kind: z.ZodString;
3502
- title: z.ZodString;
3503
- summary: z.ZodString;
3504
- sections: z.ZodArray<z.ZodObject<{
3505
- key: z.ZodString;
3506
- heading: z.ZodString;
3507
- markdown: z.ZodString;
3508
- source_refs: z.ZodArray<z.ZodString, "many">;
5425
+ results: z.ZodArray<z.ZodObject<{
5426
+ task_key: z.ZodString;
5427
+ result: z.ZodEffects<z.ZodObject<{
5428
+ stage: z.ZodLiteral<"post-author">;
5429
+ outcome: z.ZodEnum<["complete", "failed"]>;
5430
+ proposals: z.ZodDefault<z.ZodArray<z.ZodObject<{
5431
+ target: z.ZodString;
5432
+ artifact_kind: z.ZodString;
5433
+ title: z.ZodString;
5434
+ summary: z.ZodString;
5435
+ sections: z.ZodArray<z.ZodObject<{
5436
+ key: z.ZodString;
5437
+ heading: z.ZodString;
5438
+ markdown: z.ZodString;
5439
+ source_refs: z.ZodArray<z.ZodString, "many">;
5440
+ }, "strict", z.ZodTypeAny, {
5441
+ key: string;
5442
+ markdown: string;
5443
+ source_refs: string[];
5444
+ heading: string;
5445
+ }, {
5446
+ key: string;
5447
+ markdown: string;
5448
+ source_refs: string[];
5449
+ heading: string;
5450
+ }>, "many">;
5451
+ }, "strict", z.ZodTypeAny, {
5452
+ title: string;
5453
+ artifact_kind: string;
5454
+ sections: {
5455
+ key: string;
5456
+ markdown: string;
5457
+ source_refs: string[];
5458
+ heading: string;
5459
+ }[];
5460
+ target: string;
5461
+ summary: string;
5462
+ }, {
5463
+ title: string;
5464
+ artifact_kind: string;
5465
+ sections: {
5466
+ key: string;
5467
+ markdown: string;
5468
+ source_refs: string[];
5469
+ heading: string;
5470
+ }[];
5471
+ target: string;
5472
+ summary: string;
5473
+ }>, "many">>;
5474
+ diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
5475
+ code: z.ZodString;
5476
+ message: z.ZodString;
5477
+ target: z.ZodOptional<z.ZodString>;
5478
+ }, "strict", z.ZodTypeAny, {
5479
+ code: string;
5480
+ message: string;
5481
+ target?: string | undefined;
5482
+ }, {
5483
+ code: string;
5484
+ message: string;
5485
+ target?: string | undefined;
5486
+ }>, "many">>;
3509
5487
  }, "strict", z.ZodTypeAny, {
3510
- key: string;
3511
- markdown: string;
3512
- source_refs: string[];
3513
- heading: string;
5488
+ proposals: {
5489
+ title: string;
5490
+ artifact_kind: string;
5491
+ sections: {
5492
+ key: string;
5493
+ markdown: string;
5494
+ source_refs: string[];
5495
+ heading: string;
5496
+ }[];
5497
+ target: string;
5498
+ summary: string;
5499
+ }[];
5500
+ diagnostics: {
5501
+ code: string;
5502
+ message: string;
5503
+ target?: string | undefined;
5504
+ }[];
5505
+ stage: "post-author";
5506
+ outcome: "complete" | "failed";
3514
5507
  }, {
3515
- key: string;
3516
- markdown: string;
3517
- source_refs: string[];
3518
- heading: string;
3519
- }>, "many">;
3520
- }, "strict", z.ZodTypeAny, {
3521
- title: string;
3522
- artifact_kind: string;
3523
- sections: {
3524
- key: string;
3525
- markdown: string;
3526
- source_refs: string[];
3527
- heading: string;
3528
- }[];
3529
- target: string;
3530
- summary: string;
3531
- }, {
3532
- title: string;
3533
- artifact_kind: string;
3534
- sections: {
3535
- key: string;
3536
- markdown: string;
3537
- source_refs: string[];
3538
- heading: string;
3539
- }[];
3540
- target: string;
3541
- summary: string;
3542
- }>, "many">>;
3543
- diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
3544
- code: z.ZodString;
3545
- message: z.ZodString;
3546
- target: z.ZodOptional<z.ZodString>;
5508
+ stage: "post-author";
5509
+ outcome: "complete" | "failed";
5510
+ proposals?: {
5511
+ title: string;
5512
+ artifact_kind: string;
5513
+ sections: {
5514
+ key: string;
5515
+ markdown: string;
5516
+ source_refs: string[];
5517
+ heading: string;
5518
+ }[];
5519
+ target: string;
5520
+ summary: string;
5521
+ }[] | undefined;
5522
+ diagnostics?: {
5523
+ code: string;
5524
+ message: string;
5525
+ target?: string | undefined;
5526
+ }[] | undefined;
5527
+ }>, {
5528
+ proposals: {
5529
+ title: string;
5530
+ artifact_kind: string;
5531
+ sections: {
5532
+ key: string;
5533
+ markdown: string;
5534
+ source_refs: string[];
5535
+ heading: string;
5536
+ }[];
5537
+ target: string;
5538
+ summary: string;
5539
+ }[];
5540
+ diagnostics: {
5541
+ code: string;
5542
+ message: string;
5543
+ target?: string | undefined;
5544
+ }[];
5545
+ stage: "post-author";
5546
+ outcome: "complete" | "failed";
5547
+ }, {
5548
+ stage: "post-author";
5549
+ outcome: "complete" | "failed";
5550
+ proposals?: {
5551
+ title: string;
5552
+ artifact_kind: string;
5553
+ sections: {
5554
+ key: string;
5555
+ markdown: string;
5556
+ source_refs: string[];
5557
+ heading: string;
5558
+ }[];
5559
+ target: string;
5560
+ summary: string;
5561
+ }[] | undefined;
5562
+ diagnostics?: {
5563
+ code: string;
5564
+ message: string;
5565
+ target?: string | undefined;
5566
+ }[] | undefined;
5567
+ }>;
3547
5568
  }, "strict", z.ZodTypeAny, {
3548
- code: string;
3549
- message: string;
3550
- target?: string | undefined;
5569
+ result: {
5570
+ proposals: {
5571
+ title: string;
5572
+ artifact_kind: string;
5573
+ sections: {
5574
+ key: string;
5575
+ markdown: string;
5576
+ source_refs: string[];
5577
+ heading: string;
5578
+ }[];
5579
+ target: string;
5580
+ summary: string;
5581
+ }[];
5582
+ diagnostics: {
5583
+ code: string;
5584
+ message: string;
5585
+ target?: string | undefined;
5586
+ }[];
5587
+ stage: "post-author";
5588
+ outcome: "complete" | "failed";
5589
+ };
5590
+ task_key: string;
3551
5591
  }, {
3552
- code: string;
3553
- message: string;
3554
- target?: string | undefined;
3555
- }>, "many">>;
5592
+ result: {
5593
+ stage: "post-author";
5594
+ outcome: "complete" | "failed";
5595
+ proposals?: {
5596
+ title: string;
5597
+ artifact_kind: string;
5598
+ sections: {
5599
+ key: string;
5600
+ markdown: string;
5601
+ source_refs: string[];
5602
+ heading: string;
5603
+ }[];
5604
+ target: string;
5605
+ summary: string;
5606
+ }[] | undefined;
5607
+ diagnostics?: {
5608
+ code: string;
5609
+ message: string;
5610
+ target?: string | undefined;
5611
+ }[] | undefined;
5612
+ };
5613
+ task_key: string;
5614
+ }>, "many">;
3556
5615
  }, "strict", z.ZodTypeAny, {
3557
- proposals: {
3558
- title: string;
3559
- artifact_kind: string;
3560
- sections: {
3561
- key: string;
3562
- markdown: string;
3563
- source_refs: string[];
3564
- heading: string;
3565
- }[];
3566
- target: string;
3567
- summary: string;
3568
- }[];
3569
- diagnostics: {
3570
- code: string;
3571
- message: string;
3572
- target?: string | undefined;
3573
- }[];
3574
5616
  stage: "post-author";
3575
- outcome: "complete" | "failed";
5617
+ results: {
5618
+ result: {
5619
+ proposals: {
5620
+ title: string;
5621
+ artifact_kind: string;
5622
+ sections: {
5623
+ key: string;
5624
+ markdown: string;
5625
+ source_refs: string[];
5626
+ heading: string;
5627
+ }[];
5628
+ target: string;
5629
+ summary: string;
5630
+ }[];
5631
+ diagnostics: {
5632
+ code: string;
5633
+ message: string;
5634
+ target?: string | undefined;
5635
+ }[];
5636
+ stage: "post-author";
5637
+ outcome: "complete" | "failed";
5638
+ };
5639
+ task_key: string;
5640
+ }[];
3576
5641
  }, {
3577
5642
  stage: "post-author";
3578
- outcome: "complete" | "failed";
3579
- proposals?: {
3580
- title: string;
3581
- artifact_kind: string;
3582
- sections: {
3583
- key: string;
3584
- markdown: string;
3585
- source_refs: string[];
3586
- heading: string;
3587
- }[];
3588
- target: string;
3589
- summary: string;
3590
- }[] | undefined;
3591
- diagnostics?: {
3592
- code: string;
3593
- message: string;
3594
- target?: string | undefined;
3595
- }[] | undefined;
3596
- }>, {
3597
- proposals: {
3598
- title: string;
3599
- artifact_kind: string;
3600
- sections: {
3601
- key: string;
3602
- markdown: string;
3603
- source_refs: string[];
3604
- heading: string;
3605
- }[];
3606
- target: string;
3607
- summary: string;
3608
- }[];
3609
- diagnostics: {
3610
- code: string;
3611
- message: string;
3612
- target?: string | undefined;
5643
+ results: {
5644
+ result: {
5645
+ stage: "post-author";
5646
+ outcome: "complete" | "failed";
5647
+ proposals?: {
5648
+ title: string;
5649
+ artifact_kind: string;
5650
+ sections: {
5651
+ key: string;
5652
+ markdown: string;
5653
+ source_refs: string[];
5654
+ heading: string;
5655
+ }[];
5656
+ target: string;
5657
+ summary: string;
5658
+ }[] | undefined;
5659
+ diagnostics?: {
5660
+ code: string;
5661
+ message: string;
5662
+ target?: string | undefined;
5663
+ }[] | undefined;
5664
+ };
5665
+ task_key: string;
3613
5666
  }[];
5667
+ }>, {
3614
5668
  stage: "post-author";
3615
- outcome: "complete" | "failed";
5669
+ results: {
5670
+ result: {
5671
+ proposals: {
5672
+ title: string;
5673
+ artifact_kind: string;
5674
+ sections: {
5675
+ key: string;
5676
+ markdown: string;
5677
+ source_refs: string[];
5678
+ heading: string;
5679
+ }[];
5680
+ target: string;
5681
+ summary: string;
5682
+ }[];
5683
+ diagnostics: {
5684
+ code: string;
5685
+ message: string;
5686
+ target?: string | undefined;
5687
+ }[];
5688
+ stage: "post-author";
5689
+ outcome: "complete" | "failed";
5690
+ };
5691
+ task_key: string;
5692
+ }[];
3616
5693
  }, {
3617
5694
  stage: "post-author";
3618
- outcome: "complete" | "failed";
3619
- proposals?: {
3620
- title: string;
3621
- artifact_kind: string;
3622
- sections: {
3623
- key: string;
3624
- markdown: string;
3625
- source_refs: string[];
3626
- heading: string;
3627
- }[];
3628
- target: string;
3629
- summary: string;
3630
- }[] | undefined;
3631
- diagnostics?: {
3632
- code: string;
3633
- message: string;
3634
- target?: string | undefined;
3635
- }[] | undefined;
5695
+ results: {
5696
+ result: {
5697
+ stage: "post-author";
5698
+ outcome: "complete" | "failed";
5699
+ proposals?: {
5700
+ title: string;
5701
+ artifact_kind: string;
5702
+ sections: {
5703
+ key: string;
5704
+ markdown: string;
5705
+ source_refs: string[];
5706
+ heading: string;
5707
+ }[];
5708
+ target: string;
5709
+ summary: string;
5710
+ }[] | undefined;
5711
+ diagnostics?: {
5712
+ code: string;
5713
+ message: string;
5714
+ target?: string | undefined;
5715
+ }[] | undefined;
5716
+ };
5717
+ task_key: string;
5718
+ }[];
3636
5719
  }>, z.ZodEffects<z.ZodObject<{
3637
5720
  stage: z.ZodLiteral<"structure-review">;
3638
5721
  decision: z.ZodEnum<["approved", "request-adjustment"]>;
@@ -3657,22 +5740,55 @@ export declare const indexerCurrentActionInputSchema: z.ZodUnion<[z.ZodObject<{
3657
5740
  stage: z.ZodLiteral<"layout-confirmation">;
3658
5741
  decision: z.ZodEnum<["approved", "rejected"]>;
3659
5742
  feedback: z.ZodOptional<z.ZodString>;
5743
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
5744
+ artifact_ref: z.ZodString;
5745
+ output_path: z.ZodString;
5746
+ }, "strict", z.ZodTypeAny, {
5747
+ output_path: string;
5748
+ artifact_ref: string;
5749
+ }, {
5750
+ output_path: string;
5751
+ artifact_ref: string;
5752
+ }>, "many">>;
3660
5753
  }, "strict", z.ZodTypeAny, {
3661
5754
  decision: "approved" | "rejected";
3662
5755
  stage: "layout-confirmation";
3663
5756
  feedback?: string | undefined;
5757
+ paths?: {
5758
+ output_path: string;
5759
+ artifact_ref: string;
5760
+ }[] | undefined;
3664
5761
  }, {
3665
5762
  decision: "approved" | "rejected";
3666
5763
  stage: "layout-confirmation";
3667
5764
  feedback?: string | undefined;
5765
+ paths?: {
5766
+ output_path: string;
5767
+ artifact_ref: string;
5768
+ }[] | undefined;
3668
5769
  }>, {
3669
5770
  decision: "approved" | "rejected";
3670
5771
  stage: "layout-confirmation";
3671
5772
  feedback?: string | undefined;
5773
+ paths?: {
5774
+ output_path: string;
5775
+ artifact_ref: string;
5776
+ }[] | undefined;
3672
5777
  }, {
3673
5778
  decision: "approved" | "rejected";
3674
5779
  stage: "layout-confirmation";
3675
5780
  feedback?: string | undefined;
5781
+ paths?: {
5782
+ output_path: string;
5783
+ artifact_ref: string;
5784
+ }[] | undefined;
3676
5785
  }>]>;
3677
5786
  export type IndexerCurrentActionInput = z.infer<typeof indexerCurrentActionInputSchema>;
3678
5787
  export declare function validateIndexerCurrentActionInput(value: unknown): IndexerCurrentActionInput;
5788
+ /**
5789
+ * Parses the current Action envelope without rejecting valid peer results when
5790
+ * one Partition, Author, or post-author task has an invalid nested result. Callers must
5791
+ * validate each nested result with its stage schema before committing it.
5792
+ */
5793
+ export declare function parseIndexerCurrentActionSubmission(value: unknown): IndexerCurrentActionInput | IndexerMainBatchSubmissionEnvelope;
5794
+ export {};