@interf/compiler 0.33.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/README.md +122 -226
  2. package/dist/cli/commands/agents.js +1 -32
  3. package/dist/cli/commands/benchmark.d.ts +2 -3
  4. package/dist/cli/commands/benchmark.js +1 -31
  5. package/dist/cli/commands/build-plan.js +26 -50
  6. package/dist/cli/commands/build.d.ts +2 -3
  7. package/dist/cli/commands/build.js +1 -31
  8. package/dist/cli/commands/graphs.js +177 -32
  9. package/dist/cli/commands/mcp.d.ts +1 -0
  10. package/dist/cli/commands/mcp.js +223 -126
  11. package/dist/cli/commands/project.js +10 -36
  12. package/dist/cli/commands/reset.d.ts +2 -3
  13. package/dist/cli/commands/reset.js +1 -22
  14. package/dist/cli/commands/runs.js +86 -33
  15. package/dist/cli/commands/status.js +3 -24
  16. package/dist/cli/commands/traces.js +1 -29
  17. package/dist/cli/commands/wizard.js +17 -29
  18. package/dist/cli/lib/http-client.d.ts +39 -0
  19. package/dist/cli/lib/http-client.js +73 -0
  20. package/dist/packages/build-plans/authoring/brief.d.ts +25 -4
  21. package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +42 -1
  22. package/dist/packages/build-plans/authoring/build-plan-authoring.js +470 -63
  23. package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +9 -0
  24. package/dist/packages/build-plans/authoring/build-plan-edit-session.js +27 -10
  25. package/dist/packages/build-plans/authoring/build-plan-improvement.js +62 -8
  26. package/dist/packages/build-plans/authoring/lib/build-plan-edit-utils.d.ts +1 -0
  27. package/dist/packages/build-plans/package/build-plan-definitions.d.ts +0 -1
  28. package/dist/packages/build-plans/package/build-plan-definitions.js +5 -3
  29. package/dist/packages/build-plans/package/build-plan-stage-runner.d.ts +1 -0
  30. package/dist/packages/build-plans/package/build-plan-stage-runner.js +2 -1
  31. package/dist/packages/build-plans/package/builtin-build-plan.d.ts +2 -2
  32. package/dist/packages/build-plans/package/builtin-build-plan.js +3 -3
  33. package/dist/packages/build-plans/package/context-interface.d.ts +3 -0
  34. package/dist/packages/build-plans/package/context-interface.js +5 -5
  35. package/dist/packages/build-plans/package/interf-build-plan-package.js +22 -22
  36. package/dist/packages/build-plans/package/local-build-plans.d.ts +10 -5
  37. package/dist/packages/build-plans/package/local-build-plans.js +57 -32
  38. package/dist/packages/contracts/index.d.ts +4 -3
  39. package/dist/packages/contracts/index.js +2 -1
  40. package/dist/packages/contracts/lib/context-graph-layer.d.ts +161 -0
  41. package/dist/packages/contracts/lib/context-graph-layer.js +216 -0
  42. package/dist/packages/contracts/lib/project-paths.d.ts +7 -0
  43. package/dist/packages/contracts/lib/project-paths.js +9 -0
  44. package/dist/packages/contracts/lib/project-schema.d.ts +264 -1
  45. package/dist/packages/contracts/lib/project-schema.js +38 -13
  46. package/dist/packages/contracts/lib/schema.d.ts +556 -23
  47. package/dist/packages/contracts/lib/schema.js +279 -18
  48. package/dist/packages/contracts/utils/filesystem.d.ts +1 -0
  49. package/dist/packages/contracts/utils/filesystem.js +29 -1
  50. package/dist/packages/projects/lib/schema.d.ts +6 -8
  51. package/dist/packages/projects/lib/schema.js +3 -1
  52. package/dist/packages/projects/source-config.d.ts +0 -5
  53. package/dist/packages/projects/source-config.js +9 -22
  54. package/dist/packages/runtime/actions/fields.d.ts +4 -0
  55. package/dist/packages/runtime/actions/form-builders.js +79 -31
  56. package/dist/packages/runtime/actions/form-validators.js +9 -3
  57. package/dist/packages/runtime/actions/helpers.js +3 -3
  58. package/dist/packages/runtime/actions/registry.d.ts +1 -1
  59. package/dist/packages/runtime/actions/registry.js +1 -1
  60. package/dist/packages/runtime/actions/requests.d.ts +1 -1
  61. package/dist/packages/runtime/actions/requests.js +12 -6
  62. package/dist/packages/runtime/actions/schemas.d.ts +7 -0
  63. package/dist/packages/runtime/actions/schemas.js +1 -0
  64. package/dist/packages/runtime/agent-handoff.js +8 -7
  65. package/dist/packages/runtime/agents/lib/execution-profile.d.ts +14 -0
  66. package/dist/packages/runtime/agents/lib/execution-profile.js +23 -0
  67. package/dist/packages/runtime/agents/lib/execution.js +14 -8
  68. package/dist/packages/runtime/agents/lib/executors.d.ts +1 -0
  69. package/dist/packages/runtime/agents/lib/executors.js +11 -2
  70. package/dist/packages/runtime/agents/lib/logs.d.ts +10 -0
  71. package/dist/packages/runtime/agents/lib/logs.js +32 -8
  72. package/dist/packages/runtime/agents/lib/preflight.js +4 -1
  73. package/dist/packages/runtime/agents/lib/render.d.ts +18 -0
  74. package/dist/packages/runtime/agents/lib/render.js +44 -18
  75. package/dist/packages/runtime/agents/lib/shell-templates.js +105 -63
  76. package/dist/packages/runtime/agents/lib/shells.d.ts +29 -0
  77. package/dist/packages/runtime/agents/lib/shells.js +158 -32
  78. package/dist/packages/runtime/agents/lib/source-context-scan.d.ts +10 -0
  79. package/dist/packages/runtime/agents/lib/source-context-scan.js +388 -0
  80. package/dist/packages/runtime/agents/lib/status.js +1 -14
  81. package/dist/packages/runtime/agents/lib/string-utils.d.ts +16 -0
  82. package/dist/packages/runtime/agents/lib/string-utils.js +36 -0
  83. package/dist/packages/runtime/agents/lib/types.d.ts +1 -0
  84. package/dist/packages/runtime/agents/providers/codex.js +2 -0
  85. package/dist/packages/runtime/agents/role-executors.js +2 -1
  86. package/dist/packages/runtime/auth/session-store.js +11 -3
  87. package/dist/packages/runtime/benchmark-question-draft.d.ts +3 -0
  88. package/dist/packages/runtime/benchmark-question-draft.js +57 -28
  89. package/dist/packages/runtime/build/artifact-status.d.ts +1 -1
  90. package/dist/packages/runtime/build/artifact-status.js +1 -1
  91. package/dist/packages/runtime/build/build-evidence.d.ts +2 -1
  92. package/dist/packages/runtime/build/build-evidence.js +11 -5
  93. package/dist/packages/runtime/build/build-pipeline.js +89 -5
  94. package/dist/packages/runtime/build/build-stage-plan.js +3 -1
  95. package/dist/packages/runtime/build/build-stage-runner.js +169 -32
  96. package/dist/packages/runtime/build/build-target.d.ts +3 -0
  97. package/dist/packages/runtime/build/build-target.js +25 -1
  98. package/dist/packages/runtime/build/check-evaluator.d.ts +1 -1
  99. package/dist/packages/runtime/build/check-evaluator.js +655 -4
  100. package/dist/packages/runtime/build/context-graph-paths.d.ts +13 -0
  101. package/dist/packages/runtime/build/context-graph-paths.js +27 -0
  102. package/dist/packages/runtime/build/index.d.ts +2 -2
  103. package/dist/packages/runtime/build/index.js +2 -2
  104. package/dist/packages/runtime/build/inspect-map.d.ts +10 -0
  105. package/dist/packages/runtime/build/inspect-map.js +270 -0
  106. package/dist/packages/runtime/build/lib/schema.d.ts +246 -53
  107. package/dist/packages/runtime/build/lib/schema.js +173 -15
  108. package/dist/packages/runtime/build/native-entrypoint.d.ts +2 -0
  109. package/dist/packages/runtime/build/native-entrypoint.js +286 -0
  110. package/dist/packages/runtime/build/runtime-contracts.js +9 -3
  111. package/dist/packages/runtime/build/runtime-log-paths.d.ts +3 -0
  112. package/dist/packages/runtime/build/runtime-log-paths.js +16 -0
  113. package/dist/packages/runtime/build/runtime-prompt.js +6 -4
  114. package/dist/packages/runtime/build/runtime-runs.js +63 -10
  115. package/dist/packages/runtime/build/runtime-types.d.ts +4 -1
  116. package/dist/packages/runtime/build/runtime.d.ts +3 -1
  117. package/dist/packages/runtime/build/runtime.js +3 -1
  118. package/dist/packages/runtime/build/source-files.js +11 -2
  119. package/dist/packages/runtime/build/source-inventory.d.ts +1 -0
  120. package/dist/packages/runtime/build/source-inventory.js +246 -7
  121. package/dist/packages/runtime/build/source-manifest.d.ts +11 -0
  122. package/dist/packages/runtime/build/source-manifest.js +30 -2
  123. package/dist/packages/runtime/build/stage-evidence.js +80 -11
  124. package/dist/packages/runtime/build/stage-manifest.d.ts +45 -0
  125. package/dist/packages/runtime/build/stage-manifest.js +1125 -0
  126. package/dist/packages/runtime/build/stage-reuse.js +12 -0
  127. package/dist/packages/runtime/build/stage-session.d.ts +81 -0
  128. package/dist/packages/runtime/build/stage-session.js +308 -0
  129. package/dist/packages/runtime/build/state-io.js +10 -11
  130. package/dist/packages/runtime/build/state-view.js +1 -1
  131. package/dist/packages/runtime/build/state.d.ts +1 -1
  132. package/dist/packages/runtime/build/state.js +1 -1
  133. package/dist/packages/runtime/build/summary-coverage-index.d.ts +21 -0
  134. package/dist/packages/runtime/build/summary-coverage-index.js +189 -0
  135. package/dist/packages/runtime/build/traces.js +3 -3
  136. package/dist/packages/runtime/build/validate-context-graph.d.ts +1 -1
  137. package/dist/packages/runtime/build/validate-context-graph.js +5 -5
  138. package/dist/packages/runtime/build/validate.d.ts +1 -1
  139. package/dist/packages/runtime/build/validate.js +1 -1
  140. package/dist/packages/runtime/client.d.ts +3 -3
  141. package/dist/packages/runtime/client.js +8 -13
  142. package/dist/packages/runtime/context-checks.js +13 -0
  143. package/dist/packages/runtime/context-graph-scaffold.js +2 -1
  144. package/dist/packages/runtime/context-graph-semantic-graph.d.ts +9 -0
  145. package/dist/packages/runtime/context-graph-semantic-graph.js +416 -0
  146. package/dist/packages/runtime/execution/lib/schema.d.ts +34 -31
  147. package/dist/packages/runtime/index.d.ts +2 -2
  148. package/dist/packages/runtime/index.js +1 -1
  149. package/dist/packages/runtime/native-run-handlers.d.ts +38 -0
  150. package/dist/packages/runtime/native-run-handlers.js +52 -33
  151. package/dist/packages/runtime/plan-artifact-contract.js +1 -1
  152. package/dist/packages/runtime/project-source-state.d.ts +4 -4
  153. package/dist/packages/runtime/project-source-state.js +5 -2
  154. package/dist/packages/runtime/project-store.d.ts +5 -0
  155. package/dist/packages/runtime/project-store.js +30 -3
  156. package/dist/packages/runtime/requested-artifacts.js +1 -1
  157. package/dist/packages/runtime/run-observability.js +9 -4
  158. package/dist/packages/runtime/runtime-action-proposals.js +3 -3
  159. package/dist/packages/runtime/runtime-build-plans.js +47 -3
  160. package/dist/packages/runtime/runtime-build-runs.js +9 -16
  161. package/dist/packages/runtime/runtime-caches.d.ts +26 -0
  162. package/dist/packages/runtime/runtime-caches.js +47 -0
  163. package/dist/packages/runtime/runtime-jobs.js +6 -6
  164. package/dist/packages/runtime/runtime-project-mutations.js +1 -0
  165. package/dist/packages/runtime/runtime-project-reads.d.ts +4 -1
  166. package/dist/packages/runtime/runtime-project-reads.js +229 -36
  167. package/dist/packages/runtime/runtime-proposal-helpers.js +6 -6
  168. package/dist/packages/runtime/runtime-resource-builders.d.ts +4 -2
  169. package/dist/packages/runtime/runtime-resource-builders.js +16 -14
  170. package/dist/packages/runtime/runtime-status.d.ts +14 -0
  171. package/dist/packages/runtime/runtime-status.js +15 -0
  172. package/dist/packages/runtime/runtime-verify-runs.js +6 -5
  173. package/dist/packages/runtime/runtime.d.ts +439 -22
  174. package/dist/packages/runtime/runtime.js +16 -2
  175. package/dist/packages/runtime/schemas/actions.d.ts +24 -0
  176. package/dist/packages/runtime/schemas/agents.d.ts +28 -0
  177. package/dist/packages/runtime/schemas/agents.js +33 -0
  178. package/dist/packages/runtime/schemas/build-plans.d.ts +181 -8
  179. package/dist/packages/runtime/schemas/build-plans.js +36 -2
  180. package/dist/packages/runtime/schemas/context-graphs.d.ts +1522 -0
  181. package/dist/packages/runtime/schemas/context-graphs.js +110 -0
  182. package/dist/packages/runtime/schemas/files.d.ts +7 -347
  183. package/dist/packages/runtime/schemas/files.js +1 -24
  184. package/dist/packages/runtime/schemas/index.d.ts +1 -0
  185. package/dist/packages/runtime/schemas/index.js +1 -0
  186. package/dist/packages/runtime/schemas/jobs.js +4 -0
  187. package/dist/packages/runtime/schemas/projects.d.ts +48 -21
  188. package/dist/packages/runtime/schemas/projects.js +34 -10
  189. package/dist/packages/runtime/schemas/runs.d.ts +1009 -240
  190. package/dist/packages/runtime/schemas/runs.js +17 -0
  191. package/dist/packages/runtime/service/openapi.js +1 -0
  192. package/dist/packages/runtime/service/operations.d.ts +1666 -145
  193. package/dist/packages/runtime/service/operations.js +147 -17
  194. package/dist/packages/runtime/service/routes.d.ts +11 -3
  195. package/dist/packages/runtime/service/routes.js +11 -3
  196. package/dist/packages/runtime/service/server-app-boot.js +2 -2
  197. package/dist/packages/runtime/service/server-helpers.d.ts +11 -0
  198. package/dist/packages/runtime/service/server-helpers.js +19 -0
  199. package/dist/packages/runtime/service/server-routes-action-proposals.js +4 -2
  200. package/dist/packages/runtime/service/server-routes-agents.js +19 -85
  201. package/dist/packages/runtime/service/server-routes-build-plans.js +14 -11
  202. package/dist/packages/runtime/service/server-routes-project-context.js +102 -7
  203. package/dist/packages/runtime/service/server-routes-project-jobs.js +19 -12
  204. package/dist/packages/runtime/service/server-routes-project-runs.js +5 -2
  205. package/dist/packages/runtime/service/server-routes-projects.js +6 -2
  206. package/dist/packages/runtime/service/server-routes-runs.js +11 -4
  207. package/dist/packages/runtime/verify/lib/schema.js +12 -0
  208. package/dist/packages/runtime/verify/test-file-guard.d.ts +2 -0
  209. package/dist/packages/runtime/verify/test-file-guard.js +29 -0
  210. package/dist/packages/runtime/verify/verify-execution.d.ts +7 -0
  211. package/dist/packages/runtime/verify/verify-execution.js +109 -35
  212. package/dist/packages/runtime/verify/verify-paths.d.ts +1 -0
  213. package/dist/packages/runtime/verify/verify-paths.js +4 -0
  214. package/dist/packages/runtime/verify/verify-specs.js +49 -39
  215. package/dist/packages/runtime/wire-schemas.d.ts +1 -1
  216. package/dist/packages/runtime/wire-schemas.js +1 -1
  217. package/package.json +2 -8
  218. package/public-repo/CONTRIBUTING.md +10 -3
  219. package/public-repo/README.md +122 -226
  220. package/public-repo/build-plans/interf-default/README.md +15 -12
  221. package/public-repo/build-plans/interf-default/build/stages/entrypoint/SKILL.md +74 -0
  222. package/public-repo/build-plans/interf-default/build/stages/knowledge/SKILL.md +95 -0
  223. package/public-repo/build-plans/interf-default/build/stages/summarize/SKILL.md +38 -5
  224. package/public-repo/build-plans/interf-default/build-plan.json +27 -23
  225. package/public-repo/build-plans/interf-default/build-plan.schema.json +24 -20
  226. package/public-repo/build-plans/interf-default/use/query/SKILL.md +8 -7
  227. package/public-repo/openapi/local-service.openapi.json +11637 -4213
  228. package/public-repo/skills/interf/SKILL.md +174 -134
  229. package/dist/packages/runtime/build/runtime-paths.d.ts +0 -8
  230. package/dist/packages/runtime/build/runtime-paths.js +0 -26
  231. package/dist/packages/runtime/build/state-paths.d.ts +0 -7
  232. package/dist/packages/runtime/build/state-paths.js +0 -22
  233. package/public-repo/build-plans/interf-default/build/stages/shape/SKILL.md +0 -34
  234. package/public-repo/build-plans/interf-default/build/stages/structure/SKILL.md +0 -28
@@ -93,32 +93,73 @@ export declare const SERVICE_OPERATIONS: readonly [{
93
93
  readonly visibility: "public";
94
94
  readonly response_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
95
95
  readonly success_status: 200;
96
+ }, {
97
+ readonly id: "listProjects";
98
+ readonly method: "GET";
99
+ readonly path: "/v1/projects";
100
+ readonly tags: ["Projects"];
101
+ readonly summary: "List Projects";
102
+ readonly description: "Return Projects registered on this instance with Source bindings, intent, Build Plan selection, and Context Graph locators.";
103
+ readonly visibility: "app";
104
+ readonly response_schema: z.ZodObject<{
105
+ projects: z.ZodArray<z.ZodObject<{
106
+ id: z.ZodString;
107
+ project_id: z.ZodOptional<z.ZodString>;
108
+ source: z.ZodObject<{
109
+ kind: z.ZodEnum<{
110
+ "local-folder": "local-folder";
111
+ }>;
112
+ locator: z.ZodString;
113
+ }, z.core.$strict>;
114
+ intent: z.ZodString;
115
+ build_plan_id: z.ZodNullable<z.ZodString>;
116
+ config_path: z.ZodString;
117
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ context_graph: z.ZodObject<{
119
+ kind: z.ZodEnum<{
120
+ "local-path": "local-path";
121
+ "remote-url": "remote-url";
122
+ "api-served": "api-served";
123
+ }>;
124
+ value: z.ZodString;
125
+ }, z.core.$strict>;
126
+ context_graph_path: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strict>>;
128
+ }, z.core.$strict>;
129
+ readonly success_status: 200;
96
130
  }, {
97
131
  readonly id: "createProject";
98
132
  readonly method: "POST";
99
133
  readonly path: "/v1/projects";
100
134
  readonly tags: ["Projects"];
101
135
  readonly summary: "Create Project";
102
- readonly description: "Create a Project bound to one Source. Project ids may be generated by clients.";
136
+ readonly description: "Create a Project bound to one Source and one agent task intent. Project ids may be generated by clients.";
103
137
  readonly visibility: "app";
104
138
  readonly workflow_step: 1;
105
139
  readonly request_schema: z.ZodObject<{
106
140
  id: z.ZodString;
107
141
  source: z.ZodObject<{
108
- kind: z.ZodLiteral<"local-folder">;
142
+ kind: z.ZodEnum<{
143
+ "local-folder": "local-folder";
144
+ }>;
109
145
  locator: z.ZodString;
110
146
  }, z.core.$strict>;
147
+ intent: z.ZodString;
111
148
  build_plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
149
  }, z.core.$strict>;
113
150
  readonly response_schema: z.ZodObject<{
114
151
  id: z.ZodString;
115
152
  project_id: z.ZodOptional<z.ZodString>;
116
153
  source: z.ZodObject<{
117
- kind: z.ZodLiteral<"local-folder">;
154
+ kind: z.ZodEnum<{
155
+ "local-folder": "local-folder";
156
+ }>;
118
157
  locator: z.ZodString;
119
158
  }, z.core.$strict>;
159
+ intent: z.ZodString;
120
160
  build_plan_id: z.ZodNullable<z.ZodString>;
121
161
  config_path: z.ZodString;
162
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
163
  context_graph: z.ZodObject<{
123
164
  kind: z.ZodEnum<{
124
165
  "local-path": "local-path";
@@ -141,22 +182,178 @@ export declare const SERVICE_OPERATIONS: readonly [{
141
182
  readonly parameters: [ServiceOperationParameter];
142
183
  readonly response_schema: z.ZodObject<{
143
184
  id: z.ZodString;
144
- project_id: z.ZodOptional<z.ZodString>;
185
+ name: z.ZodString;
145
186
  source: z.ZodObject<{
146
- kind: z.ZodLiteral<"local-folder">;
187
+ kind: z.ZodEnum<{
188
+ "local-folder": "local-folder";
189
+ }>;
147
190
  locator: z.ZodString;
148
191
  }, z.core.$strict>;
149
- build_plan_id: z.ZodNullable<z.ZodString>;
192
+ intent: z.ZodString;
193
+ config: z.ZodObject<{
194
+ id: z.ZodOptional<z.ZodString>;
195
+ name: z.ZodString;
196
+ intent: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
197
+ path: z.ZodString;
198
+ build_plan: z.ZodOptional<z.ZodString>;
199
+ latest_context_graph_run_id: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strict>;
150
201
  config_path: z.ZodString;
202
+ source_path: z.ZodString;
203
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ build_plan_id: z.ZodNullable<z.ZodString>;
151
205
  context_graph: z.ZodObject<{
152
- kind: z.ZodEnum<{
153
- "local-path": "local-path";
154
- "remote-url": "remote-url";
155
- "api-served": "api-served";
206
+ project: z.ZodString;
207
+ path: z.ZodNullable<z.ZodString>;
208
+ exists: z.ZodBoolean;
209
+ intent: z.ZodString;
210
+ build_plan_id: z.ZodNullable<z.ZodString>;
211
+ latest_build_run_id: z.ZodNullable<z.ZodString>;
212
+ latest_benchmark_run_id: z.ZodNullable<z.ZodString>;
213
+ }, z.core.$strict>;
214
+ context_graph_path: z.ZodNullable<z.ZodString>;
215
+ readiness: z.ZodObject<{
216
+ kind: z.ZodLiteral<"interf-readiness-state">;
217
+ version: z.ZodLiteral<1>;
218
+ generated_at: z.ZodString;
219
+ project: z.ZodString;
220
+ status: z.ZodEnum<{
221
+ ready: "ready";
222
+ "not-ready": "not-ready";
223
+ failed: "failed";
224
+ "not-configured": "not-configured";
225
+ "not-built": "not-built";
226
+ building: "building";
227
+ built: "built";
228
+ checking: "checking";
229
+ stale: "stale";
156
230
  }>;
157
- value: z.ZodString;
231
+ ready: z.ZodBoolean;
232
+ summary: z.ZodString;
233
+ context_graph_path: z.ZodNullable<z.ZodString>;
234
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ build: z.ZodNullable<z.ZodObject<{
237
+ gate: z.ZodEnum<{
238
+ "context-graph": "context-graph";
239
+ "project-config": "project-config";
240
+ "build-run": "build-run";
241
+ "artifact-diagnostics": "artifact-diagnostics";
242
+ "context-checks": "context-checks";
243
+ benchmarks: "benchmarks";
244
+ "benchmarks-current": "benchmarks-current";
245
+ }>;
246
+ ok: z.ZodBoolean;
247
+ status: z.ZodOptional<z.ZodEnum<{
248
+ ready: "ready";
249
+ "not-ready": "not-ready";
250
+ failed: "failed";
251
+ "not-configured": "not-configured";
252
+ "not-built": "not-built";
253
+ building: "building";
254
+ built: "built";
255
+ checking: "checking";
256
+ stale: "stale";
257
+ }>>;
258
+ summary: z.ZodString;
259
+ detail: z.ZodOptional<z.ZodString>;
260
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ }, z.core.$strict>>;
263
+ check_results: z.ZodObject<{
264
+ configured: z.ZodNumber;
265
+ fingerprint: z.ZodNullable<z.ZodString>;
266
+ source_files: z.ZodNullable<z.ZodObject<{
267
+ passed: z.ZodNumber;
268
+ total: z.ZodNumber;
269
+ pass_rate: z.ZodNullable<z.ZodNumber>;
270
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
+ stale: z.ZodDefault<z.ZodBoolean>;
272
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ }, z.core.$strict>>;
275
+ context_graph: z.ZodNullable<z.ZodObject<{
276
+ passed: z.ZodNumber;
277
+ total: z.ZodNumber;
278
+ pass_rate: z.ZodNullable<z.ZodNumber>;
279
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
+ stale: z.ZodDefault<z.ZodBoolean>;
281
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
+ }, z.core.$strict>>;
284
+ }, z.core.$strict>;
285
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
286
+ gate: z.ZodEnum<{
287
+ "context-graph": "context-graph";
288
+ "project-config": "project-config";
289
+ "build-run": "build-run";
290
+ "artifact-diagnostics": "artifact-diagnostics";
291
+ "context-checks": "context-checks";
292
+ benchmarks: "benchmarks";
293
+ "benchmarks-current": "benchmarks-current";
294
+ }>;
295
+ ok: z.ZodBoolean;
296
+ status: z.ZodOptional<z.ZodEnum<{
297
+ ready: "ready";
298
+ "not-ready": "not-ready";
299
+ failed: "failed";
300
+ "not-configured": "not-configured";
301
+ "not-built": "not-built";
302
+ building: "building";
303
+ built: "built";
304
+ checking: "checking";
305
+ stale: "stale";
306
+ }>>;
307
+ summary: z.ZodString;
308
+ detail: z.ZodOptional<z.ZodString>;
309
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ }, z.core.$strict>>>;
158
312
  }, z.core.$strict>;
159
- context_graph_path: z.ZodOptional<z.ZodString>;
313
+ runs: z.ZodObject<{
314
+ latest_build_run_id: z.ZodNullable<z.ZodString>;
315
+ latest_benchmark_run_id: z.ZodNullable<z.ZodString>;
316
+ }, z.core.$strict>;
317
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
320
+ artifact_id: z.ZodString;
321
+ status: z.ZodEnum<{
322
+ ready: "ready";
323
+ failed: "failed";
324
+ skipped: "skipped";
325
+ not_ready: "not_ready";
326
+ }>;
327
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
328
+ check_results: z.ZodDefault<z.ZodArray<z.ZodObject<{
329
+ check_id: z.ZodString;
330
+ kind: z.ZodEnum<{
331
+ file_exists: "file_exists";
332
+ source_manifest_valid: "source_manifest_valid";
333
+ min_file_count: "min_file_count";
334
+ min_file_count_matches_source: "min_file_count_matches_source";
335
+ source_summary_folders: "source_summary_folders";
336
+ source_page_coverage: "source_page_coverage";
337
+ frontmatter_valid: "frontmatter_valid";
338
+ frontmatter_required_keys: "frontmatter_required_keys";
339
+ frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
340
+ source_refs_required: "source_refs_required";
341
+ summary_backlinks_present: "summary_backlinks_present";
342
+ knowledge_web_connectivity: "knowledge_web_connectivity";
343
+ graph_notes_connected: "graph_notes_connected";
344
+ wikilinks_valid: "wikilinks_valid";
345
+ must_not_contain: "must_not_contain";
346
+ must_contain: "must_contain";
347
+ qa_match: "qa_match";
348
+ }>;
349
+ passed: z.ZodBoolean;
350
+ required: z.ZodBoolean;
351
+ summary: z.ZodString;
352
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
353
+ evaluated_at: z.ZodString;
354
+ }, z.core.$strict>>>;
355
+ summary: z.ZodOptional<z.ZodString>;
356
+ }, z.core.$strict>>>;
160
357
  }, z.core.$strict>;
161
358
  readonly success_status: 200;
162
359
  }, {
@@ -165,7 +362,7 @@ export declare const SERVICE_OPERATIONS: readonly [{
165
362
  readonly path: "/v1/projects/{project_id}/build-plan-drafts";
166
363
  readonly tags: ["Build Plans"];
167
364
  readonly summary: "Prepare Build Plan";
168
- readonly description: "Draft a Build Plan from the approved intent, Context Checks, and requested Artifacts. This does not run a Build.";
365
+ readonly description: "Draft a Build Plan from the Project intent, requested outputs, and coverage expectations. This does not run a Build.";
169
366
  readonly visibility: "app";
170
367
  readonly workflow_step: 2;
171
368
  readonly parameters: [ServiceOperationParameter];
@@ -189,7 +386,6 @@ export declare const SERVICE_OPERATIONS: readonly [{
189
386
  backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
190
387
  required: z.ZodDefault<z.ZodBoolean>;
191
388
  }, z.core.$strict>>>;
192
- intent: z.ZodString;
193
389
  requested_artifacts: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
194
390
  id: z.ZodOptional<z.ZodString>;
195
391
  title: z.ZodString;
@@ -221,6 +417,9 @@ export declare const SERVICE_OPERATIONS: readonly [{
221
417
  frontmatter_required_keys: "frontmatter_required_keys";
222
418
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
223
419
  source_refs_required: "source_refs_required";
420
+ summary_backlinks_present: "summary_backlinks_present";
421
+ knowledge_web_connectivity: "knowledge_web_connectivity";
422
+ graph_notes_connected: "graph_notes_connected";
224
423
  wikilinks_valid: "wikilinks_valid";
225
424
  must_not_contain: "must_not_contain";
226
425
  must_contain: "must_contain";
@@ -270,6 +469,9 @@ export declare const SERVICE_OPERATIONS: readonly [{
270
469
  frontmatter_required_keys: "frontmatter_required_keys";
271
470
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
272
471
  source_refs_required: "source_refs_required";
472
+ summary_backlinks_present: "summary_backlinks_present";
473
+ knowledge_web_connectivity: "knowledge_web_connectivity";
474
+ graph_notes_connected: "graph_notes_connected";
273
475
  wikilinks_valid: "wikilinks_valid";
274
476
  must_not_contain: "must_not_contain";
275
477
  must_contain: "must_contain";
@@ -285,6 +487,7 @@ export declare const SERVICE_OPERATIONS: readonly [{
285
487
  hint: z.ZodOptional<z.ZodString>;
286
488
  base_build_plan_id: z.ZodOptional<z.ZodString>;
287
489
  reference_build_plan_id: z.ZodOptional<z.ZodString>;
490
+ intent: z.ZodOptional<z.ZodString>;
288
491
  }, z.core.$strict>;
289
492
  readonly response_schema: z.ZodObject<{
290
493
  kind: z.ZodLiteral<"interf-local-job-run">;
@@ -378,8 +581,8 @@ export declare const SERVICE_OPERATIONS: readonly [{
378
581
  readonly workflow_step: 3;
379
582
  readonly parameters: [ServiceOperationParameter];
380
583
  readonly request_schema: z.ZodDefault<z.ZodObject<{
381
- max_attempts: z.ZodOptional<z.ZodNumber>;
382
584
  max_loops: z.ZodOptional<z.ZodNumber>;
585
+ max_attempts: z.ZodOptional<z.ZodNumber>;
383
586
  preserve_stage_shells: z.ZodOptional<z.ZodEnum<{
384
587
  "on-failure": "on-failure";
385
588
  always: "always";
@@ -647,14 +850,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
647
850
  generated_at: z.ZodString;
648
851
  project: z.ZodString;
649
852
  status: z.ZodEnum<{
650
- failed: "failed";
651
853
  ready: "ready";
854
+ "not-ready": "not-ready";
855
+ failed: "failed";
652
856
  "not-configured": "not-configured";
653
857
  "not-built": "not-built";
654
858
  building: "building";
655
859
  built: "built";
656
860
  checking: "checking";
657
- "not-ready": "not-ready";
658
861
  stale: "stale";
659
862
  }>;
660
863
  ready: z.ZodBoolean;
@@ -674,14 +877,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
674
877
  }>;
675
878
  ok: z.ZodBoolean;
676
879
  status: z.ZodOptional<z.ZodEnum<{
677
- failed: "failed";
678
880
  ready: "ready";
881
+ "not-ready": "not-ready";
882
+ failed: "failed";
679
883
  "not-configured": "not-configured";
680
884
  "not-built": "not-built";
681
885
  building: "building";
682
886
  built: "built";
683
887
  checking: "checking";
684
- "not-ready": "not-ready";
685
888
  stale: "stale";
686
889
  }>>;
687
890
  summary: z.ZodString;
@@ -723,14 +926,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
723
926
  }>;
724
927
  ok: z.ZodBoolean;
725
928
  status: z.ZodOptional<z.ZodEnum<{
726
- failed: "failed";
727
929
  ready: "ready";
930
+ "not-ready": "not-ready";
931
+ failed: "failed";
728
932
  "not-configured": "not-configured";
729
933
  "not-built": "not-built";
730
934
  building: "building";
731
935
  built: "built";
732
936
  checking: "checking";
733
- "not-ready": "not-ready";
734
937
  stale: "stale";
735
938
  }>>;
736
939
  summary: z.ZodString;
@@ -773,14 +976,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
773
976
  generated_at: z.ZodString;
774
977
  project: z.ZodString;
775
978
  status: z.ZodEnum<{
776
- failed: "failed";
777
979
  ready: "ready";
980
+ "not-ready": "not-ready";
981
+ failed: "failed";
778
982
  "not-configured": "not-configured";
779
983
  "not-built": "not-built";
780
984
  building: "building";
781
985
  built: "built";
782
986
  checking: "checking";
783
- "not-ready": "not-ready";
784
987
  stale: "stale";
785
988
  }>;
786
989
  ready: z.ZodBoolean;
@@ -800,14 +1003,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
800
1003
  }>;
801
1004
  ok: z.ZodBoolean;
802
1005
  status: z.ZodOptional<z.ZodEnum<{
803
- failed: "failed";
804
1006
  ready: "ready";
1007
+ "not-ready": "not-ready";
1008
+ failed: "failed";
805
1009
  "not-configured": "not-configured";
806
1010
  "not-built": "not-built";
807
1011
  building: "building";
808
1012
  built: "built";
809
1013
  checking: "checking";
810
- "not-ready": "not-ready";
811
1014
  stale: "stale";
812
1015
  }>>;
813
1016
  summary: z.ZodString;
@@ -849,14 +1052,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
849
1052
  }>;
850
1053
  ok: z.ZodBoolean;
851
1054
  status: z.ZodOptional<z.ZodEnum<{
852
- failed: "failed";
853
1055
  ready: "ready";
1056
+ "not-ready": "not-ready";
1057
+ failed: "failed";
854
1058
  "not-configured": "not-configured";
855
1059
  "not-built": "not-built";
856
1060
  building: "building";
857
1061
  built: "built";
858
1062
  checking: "checking";
859
- "not-ready": "not-ready";
860
1063
  stale: "stale";
861
1064
  }>>;
862
1065
  summary: z.ZodString;
@@ -885,9 +1088,9 @@ export declare const SERVICE_OPERATIONS: readonly [{
885
1088
  artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
886
1089
  artifact_id: z.ZodString;
887
1090
  status: z.ZodEnum<{
1091
+ ready: "ready";
888
1092
  failed: "failed";
889
1093
  skipped: "skipped";
890
- ready: "ready";
891
1094
  not_ready: "not_ready";
892
1095
  }>;
893
1096
  built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -904,6 +1107,9 @@ export declare const SERVICE_OPERATIONS: readonly [{
904
1107
  frontmatter_required_keys: "frontmatter_required_keys";
905
1108
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
906
1109
  source_refs_required: "source_refs_required";
1110
+ summary_backlinks_present: "summary_backlinks_present";
1111
+ knowledge_web_connectivity: "knowledge_web_connectivity";
1112
+ graph_notes_connected: "graph_notes_connected";
907
1113
  wikilinks_valid: "wikilinks_valid";
908
1114
  must_not_contain: "must_not_contain";
909
1115
  must_contain: "must_contain";
@@ -968,14 +1174,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
968
1174
  generated_at: z.ZodString;
969
1175
  project: z.ZodString;
970
1176
  status: z.ZodEnum<{
971
- failed: "failed";
972
1177
  ready: "ready";
1178
+ "not-ready": "not-ready";
1179
+ failed: "failed";
973
1180
  "not-configured": "not-configured";
974
1181
  "not-built": "not-built";
975
1182
  building: "building";
976
1183
  built: "built";
977
1184
  checking: "checking";
978
- "not-ready": "not-ready";
979
1185
  stale: "stale";
980
1186
  }>;
981
1187
  ready: z.ZodBoolean;
@@ -995,14 +1201,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
995
1201
  }>;
996
1202
  ok: z.ZodBoolean;
997
1203
  status: z.ZodOptional<z.ZodEnum<{
998
- failed: "failed";
999
1204
  ready: "ready";
1205
+ "not-ready": "not-ready";
1206
+ failed: "failed";
1000
1207
  "not-configured": "not-configured";
1001
1208
  "not-built": "not-built";
1002
1209
  building: "building";
1003
1210
  built: "built";
1004
1211
  checking: "checking";
1005
- "not-ready": "not-ready";
1006
1212
  stale: "stale";
1007
1213
  }>>;
1008
1214
  summary: z.ZodString;
@@ -1044,14 +1250,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
1044
1250
  }>;
1045
1251
  ok: z.ZodBoolean;
1046
1252
  status: z.ZodOptional<z.ZodEnum<{
1047
- failed: "failed";
1048
1253
  ready: "ready";
1254
+ "not-ready": "not-ready";
1255
+ failed: "failed";
1049
1256
  "not-configured": "not-configured";
1050
1257
  "not-built": "not-built";
1051
1258
  building: "building";
1052
1259
  built: "built";
1053
1260
  checking: "checking";
1054
- "not-ready": "not-ready";
1055
1261
  stale: "stale";
1056
1262
  }>>;
1057
1263
  summary: z.ZodString;
@@ -1091,59 +1297,321 @@ export declare const SERVICE_OPERATIONS: readonly [{
1091
1297
  }, z.core.$strict>;
1092
1298
  readonly success_status: 200;
1093
1299
  }, {
1094
- readonly id: "readRunFile";
1300
+ readonly id: "getRunEvents";
1095
1301
  readonly method: "GET";
1096
- readonly path: "/v1/runs/{run_id}/files";
1302
+ readonly path: "/v1/runs/{run_id}/events";
1097
1303
  readonly tags: ["Runs"];
1098
- readonly summary: "Read Run file";
1099
- readonly description: "Read a prompt log, status log, event stream, stage contract, or evidence file from the exact Build run output. Use this instead of latest Context Graph file reads when debugging historical runs.";
1100
- readonly visibility: "app";
1101
- readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
1102
- readonly response_schema: z.ZodString;
1103
- readonly response_content_type: "text/plain";
1104
- readonly success_status: 200;
1105
- }, {
1106
- readonly id: "getLatestContextGraph";
1107
- readonly method: "GET";
1108
- readonly path: "/v1/projects/{project_id}/context-graph";
1109
- readonly tags: ["Context Graphs"];
1110
- readonly summary: "Get latest Context Graph";
1111
- readonly description: "Return the latest successful Context Graph locator and readiness state for a Project. This is a compact locator/status read; read artifacts/ handoff files before answering.";
1304
+ readonly summary: "Get Run events";
1305
+ readonly description: "Read the durable event log for a Build run: stage start/pass/fail, files processed, artifacts written, evidence, checks, and readiness. Use compact status for polling; read events to inspect or replay what happened.";
1112
1306
  readonly visibility: "app";
1113
1307
  readonly parameters: [ServiceOperationParameter];
1114
1308
  readonly response_schema: z.ZodObject<{
1115
- kind: z.ZodOptional<z.ZodLiteral<"interf-context-graph">>;
1116
- version: z.ZodOptional<z.ZodLiteral<1>>;
1117
- graph_id: z.ZodOptional<z.ZodString>;
1118
- project_id: z.ZodOptional<z.ZodString>;
1119
- build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1120
- created_at: z.ZodOptional<z.ZodString>;
1121
- is_latest: z.ZodOptional<z.ZodBoolean>;
1122
- project: z.ZodString;
1123
- path: z.ZodString;
1124
- exists: z.ZodBoolean;
1125
- readiness: z.ZodObject<{
1126
- kind: z.ZodLiteral<"interf-readiness-state">;
1127
- version: z.ZodLiteral<1>;
1128
- generated_at: z.ZodString;
1309
+ events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1310
+ event_id: z.ZodString;
1311
+ run_id: z.ZodString;
1312
+ timestamp: z.ZodString;
1313
+ type: z.ZodLiteral<"run.started">;
1129
1314
  project: z.ZodString;
1130
- status: z.ZodEnum<{
1131
- failed: "failed";
1132
- ready: "ready";
1133
- "not-configured": "not-configured";
1134
- "not-built": "not-built";
1135
- building: "building";
1136
- built: "built";
1137
- checking: "checking";
1138
- "not-ready": "not-ready";
1139
- stale: "stale";
1315
+ build_plan: z.ZodOptional<z.ZodString>;
1316
+ context_graph_path: z.ZodOptional<z.ZodString>;
1317
+ backend: z.ZodEnum<{
1318
+ native: "native";
1140
1319
  }>;
1141
- ready: z.ZodBoolean;
1142
- summary: z.ZodString;
1143
- context_graph_path: z.ZodNullable<z.ZodString>;
1144
- latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1145
- latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
- build: z.ZodNullable<z.ZodObject<{
1320
+ }, z.core.$strict>, z.ZodObject<{
1321
+ event_id: z.ZodString;
1322
+ run_id: z.ZodString;
1323
+ timestamp: z.ZodString;
1324
+ type: z.ZodLiteral<"stage.started">;
1325
+ stage_id: z.ZodString;
1326
+ stage_index: z.ZodOptional<z.ZodNumber>;
1327
+ stage_total: z.ZodOptional<z.ZodNumber>;
1328
+ logs: z.ZodOptional<z.ZodObject<{
1329
+ prompt_path: z.ZodOptional<z.ZodString>;
1330
+ event_stream_path: z.ZodOptional<z.ZodString>;
1331
+ status_path: z.ZodOptional<z.ZodString>;
1332
+ contract_path: z.ZodOptional<z.ZodString>;
1333
+ evidence_path: z.ZodOptional<z.ZodString>;
1334
+ }, z.core.$strict>>;
1335
+ }, z.core.$strict>, z.ZodObject<{
1336
+ event_id: z.ZodString;
1337
+ run_id: z.ZodString;
1338
+ timestamp: z.ZodString;
1339
+ type: z.ZodLiteral<"file.processed">;
1340
+ stage_id: z.ZodString;
1341
+ path: z.ZodString;
1342
+ }, z.core.$strict>, z.ZodObject<{
1343
+ event_id: z.ZodString;
1344
+ run_id: z.ZodString;
1345
+ timestamp: z.ZodString;
1346
+ type: z.ZodLiteral<"artifact.written">;
1347
+ stage_id: z.ZodString;
1348
+ artifact: z.ZodObject<{
1349
+ path: z.ZodString;
1350
+ role: z.ZodEnum<{
1351
+ runtime: "runtime";
1352
+ output: "output";
1353
+ source: "source";
1354
+ evidence: "evidence";
1355
+ benchmark: "benchmark";
1356
+ }>;
1357
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
+ label: z.ZodOptional<z.ZodString>;
1359
+ sha256: z.ZodOptional<z.ZodString>;
1360
+ }, z.core.$strict>;
1361
+ }, z.core.$strict>, z.ZodObject<{
1362
+ event_id: z.ZodString;
1363
+ run_id: z.ZodString;
1364
+ timestamp: z.ZodString;
1365
+ type: z.ZodLiteral<"evidence.updated">;
1366
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1367
+ evidence: z.ZodObject<{
1368
+ id: z.ZodString;
1369
+ run_id: z.ZodString;
1370
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1371
+ generated_at: z.ZodString;
1372
+ summary: z.ZodString;
1373
+ files_processed: z.ZodOptional<z.ZodNumber>;
1374
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1375
+ path: z.ZodString;
1376
+ role: z.ZodEnum<{
1377
+ runtime: "runtime";
1378
+ output: "output";
1379
+ source: "source";
1380
+ evidence: "evidence";
1381
+ benchmark: "benchmark";
1382
+ }>;
1383
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1384
+ label: z.ZodOptional<z.ZodString>;
1385
+ sha256: z.ZodOptional<z.ZodString>;
1386
+ }, z.core.$strict>>>;
1387
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1388
+ id: z.ZodString;
1389
+ label: z.ZodString;
1390
+ ok: z.ZodBoolean;
1391
+ detail: z.ZodOptional<z.ZodString>;
1392
+ }, z.core.$strict>>>;
1393
+ }, z.core.$strict>;
1394
+ }, z.core.$strict>, z.ZodObject<{
1395
+ event_id: z.ZodString;
1396
+ run_id: z.ZodString;
1397
+ timestamp: z.ZodString;
1398
+ type: z.ZodLiteral<"log.appended">;
1399
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1400
+ stream: z.ZodEnum<{
1401
+ status: "status";
1402
+ trace: "trace";
1403
+ system: "system";
1404
+ }>;
1405
+ message: z.ZodString;
1406
+ }, z.core.$strict>, z.ZodObject<{
1407
+ event_id: z.ZodString;
1408
+ run_id: z.ZodString;
1409
+ timestamp: z.ZodString;
1410
+ type: z.ZodLiteral<"stage.passed">;
1411
+ stage_id: z.ZodString;
1412
+ summary: z.ZodOptional<z.ZodString>;
1413
+ }, z.core.$strict>, z.ZodObject<{
1414
+ event_id: z.ZodString;
1415
+ run_id: z.ZodString;
1416
+ timestamp: z.ZodString;
1417
+ type: z.ZodLiteral<"stage.failed">;
1418
+ stage_id: z.ZodString;
1419
+ error: z.ZodString;
1420
+ }, z.core.$strict>, z.ZodObject<{
1421
+ event_id: z.ZodString;
1422
+ run_id: z.ZodString;
1423
+ timestamp: z.ZodString;
1424
+ type: z.ZodLiteral<"run.completed">;
1425
+ summary: z.ZodOptional<z.ZodString>;
1426
+ }, z.core.$strict>, z.ZodObject<{
1427
+ event_id: z.ZodString;
1428
+ run_id: z.ZodString;
1429
+ timestamp: z.ZodString;
1430
+ type: z.ZodLiteral<"run.failed">;
1431
+ error: z.ZodString;
1432
+ }, z.core.$strict>, z.ZodObject<{
1433
+ event_id: z.ZodString;
1434
+ run_id: z.ZodString;
1435
+ timestamp: z.ZodString;
1436
+ type: z.ZodLiteral<"run.cancelled">;
1437
+ reason: z.ZodOptional<z.ZodString>;
1438
+ }, z.core.$strict>, z.ZodObject<{
1439
+ event_id: z.ZodString;
1440
+ run_id: z.ZodString;
1441
+ timestamp: z.ZodString;
1442
+ type: z.ZodLiteral<"checks.evaluated">;
1443
+ passed: z.ZodNumber;
1444
+ total: z.ZodNumber;
1445
+ target: z.ZodOptional<z.ZodEnum<{
1446
+ "source-files": "source-files";
1447
+ "context-graph": "context-graph";
1448
+ }>>;
1449
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
1450
+ stale: z.ZodOptional<z.ZodBoolean>;
1451
+ test_run_id: z.ZodOptional<z.ZodString>;
1452
+ }, z.core.$strict>, z.ZodObject<{
1453
+ event_id: z.ZodString;
1454
+ run_id: z.ZodString;
1455
+ timestamp: z.ZodString;
1456
+ type: z.ZodLiteral<"readiness.updated">;
1457
+ project: z.ZodString;
1458
+ readiness: z.ZodObject<{
1459
+ kind: z.ZodLiteral<"interf-readiness-state">;
1460
+ version: z.ZodLiteral<1>;
1461
+ generated_at: z.ZodString;
1462
+ project: z.ZodString;
1463
+ status: z.ZodEnum<{
1464
+ ready: "ready";
1465
+ "not-ready": "not-ready";
1466
+ failed: "failed";
1467
+ "not-configured": "not-configured";
1468
+ "not-built": "not-built";
1469
+ building: "building";
1470
+ built: "built";
1471
+ checking: "checking";
1472
+ stale: "stale";
1473
+ }>;
1474
+ ready: z.ZodBoolean;
1475
+ summary: z.ZodString;
1476
+ context_graph_path: z.ZodNullable<z.ZodString>;
1477
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1479
+ build: z.ZodNullable<z.ZodObject<{
1480
+ gate: z.ZodEnum<{
1481
+ "context-graph": "context-graph";
1482
+ "project-config": "project-config";
1483
+ "build-run": "build-run";
1484
+ "artifact-diagnostics": "artifact-diagnostics";
1485
+ "context-checks": "context-checks";
1486
+ benchmarks: "benchmarks";
1487
+ "benchmarks-current": "benchmarks-current";
1488
+ }>;
1489
+ ok: z.ZodBoolean;
1490
+ status: z.ZodOptional<z.ZodEnum<{
1491
+ ready: "ready";
1492
+ "not-ready": "not-ready";
1493
+ failed: "failed";
1494
+ "not-configured": "not-configured";
1495
+ "not-built": "not-built";
1496
+ building: "building";
1497
+ built: "built";
1498
+ checking: "checking";
1499
+ stale: "stale";
1500
+ }>>;
1501
+ summary: z.ZodString;
1502
+ detail: z.ZodOptional<z.ZodString>;
1503
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
+ }, z.core.$strict>>;
1506
+ check_results: z.ZodObject<{
1507
+ configured: z.ZodNumber;
1508
+ fingerprint: z.ZodNullable<z.ZodString>;
1509
+ source_files: z.ZodNullable<z.ZodObject<{
1510
+ passed: z.ZodNumber;
1511
+ total: z.ZodNumber;
1512
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1513
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
+ stale: z.ZodDefault<z.ZodBoolean>;
1515
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1516
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1517
+ }, z.core.$strict>>;
1518
+ context_graph: z.ZodNullable<z.ZodObject<{
1519
+ passed: z.ZodNumber;
1520
+ total: z.ZodNumber;
1521
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1522
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1523
+ stale: z.ZodDefault<z.ZodBoolean>;
1524
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1525
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1526
+ }, z.core.$strict>>;
1527
+ }, z.core.$strict>;
1528
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1529
+ gate: z.ZodEnum<{
1530
+ "context-graph": "context-graph";
1531
+ "project-config": "project-config";
1532
+ "build-run": "build-run";
1533
+ "artifact-diagnostics": "artifact-diagnostics";
1534
+ "context-checks": "context-checks";
1535
+ benchmarks: "benchmarks";
1536
+ "benchmarks-current": "benchmarks-current";
1537
+ }>;
1538
+ ok: z.ZodBoolean;
1539
+ status: z.ZodOptional<z.ZodEnum<{
1540
+ ready: "ready";
1541
+ "not-ready": "not-ready";
1542
+ failed: "failed";
1543
+ "not-configured": "not-configured";
1544
+ "not-built": "not-built";
1545
+ building: "building";
1546
+ built: "built";
1547
+ checking: "checking";
1548
+ stale: "stale";
1549
+ }>>;
1550
+ summary: z.ZodString;
1551
+ detail: z.ZodOptional<z.ZodString>;
1552
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1553
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
+ }, z.core.$strict>>>;
1555
+ }, z.core.$strict>;
1556
+ }, z.core.$strict>], "type">>;
1557
+ }, z.core.$strict>;
1558
+ readonly success_status: 200;
1559
+ }, {
1560
+ readonly id: "readRunFile";
1561
+ readonly method: "GET";
1562
+ readonly path: "/v1/runs/{run_id}/files";
1563
+ readonly tags: ["Runs"];
1564
+ readonly summary: "Read Run file";
1565
+ readonly description: "Read a prompt log, status log, event stream, stage contract, or evidence file from the exact Build run output. Use this instead of latest Context Graph file reads when debugging historical runs.";
1566
+ readonly visibility: "app";
1567
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
1568
+ readonly response_schema: z.ZodString;
1569
+ readonly response_content_type: "text/plain";
1570
+ readonly success_status: 200;
1571
+ }, {
1572
+ readonly id: "getLatestContextGraph";
1573
+ readonly method: "GET";
1574
+ readonly path: "/v1/projects/{project_id}/context-graph";
1575
+ readonly tags: ["Context Graphs"];
1576
+ readonly summary: "Get latest Context Graph";
1577
+ readonly description: "Return the latest successful Context Graph locator, GraphManifest, primary metrics, StageManifest summaries, entrypoints, and ready/not ready rollup for a Project.";
1578
+ readonly visibility: "app";
1579
+ readonly parameters: [ServiceOperationParameter];
1580
+ readonly response_schema: z.ZodObject<{
1581
+ kind: z.ZodLiteral<"interf-context-graph">;
1582
+ version: z.ZodLiteral<1>;
1583
+ graph_id: z.ZodOptional<z.ZodString>;
1584
+ project_id: z.ZodOptional<z.ZodString>;
1585
+ intent: z.ZodString;
1586
+ build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1587
+ source_manifest_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1588
+ created_at: z.ZodOptional<z.ZodString>;
1589
+ is_latest: z.ZodOptional<z.ZodBoolean>;
1590
+ project: z.ZodString;
1591
+ path: z.ZodString;
1592
+ exists: z.ZodBoolean;
1593
+ readiness: z.ZodObject<{
1594
+ kind: z.ZodLiteral<"interf-readiness-state">;
1595
+ version: z.ZodLiteral<1>;
1596
+ generated_at: z.ZodString;
1597
+ project: z.ZodString;
1598
+ status: z.ZodEnum<{
1599
+ ready: "ready";
1600
+ "not-ready": "not-ready";
1601
+ failed: "failed";
1602
+ "not-configured": "not-configured";
1603
+ "not-built": "not-built";
1604
+ building: "building";
1605
+ built: "built";
1606
+ checking: "checking";
1607
+ stale: "stale";
1608
+ }>;
1609
+ ready: z.ZodBoolean;
1610
+ summary: z.ZodString;
1611
+ context_graph_path: z.ZodNullable<z.ZodString>;
1612
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1613
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1614
+ build: z.ZodNullable<z.ZodObject<{
1147
1615
  gate: z.ZodEnum<{
1148
1616
  "context-graph": "context-graph";
1149
1617
  "project-config": "project-config";
@@ -1155,14 +1623,14 @@ export declare const SERVICE_OPERATIONS: readonly [{
1155
1623
  }>;
1156
1624
  ok: z.ZodBoolean;
1157
1625
  status: z.ZodOptional<z.ZodEnum<{
1158
- failed: "failed";
1159
1626
  ready: "ready";
1627
+ "not-ready": "not-ready";
1628
+ failed: "failed";
1160
1629
  "not-configured": "not-configured";
1161
1630
  "not-built": "not-built";
1162
1631
  building: "building";
1163
1632
  built: "built";
1164
1633
  checking: "checking";
1165
- "not-ready": "not-ready";
1166
1634
  stale: "stale";
1167
1635
  }>>;
1168
1636
  summary: z.ZodString;
@@ -1202,81 +1670,1060 @@ export declare const SERVICE_OPERATIONS: readonly [{
1202
1670
  benchmarks: "benchmarks";
1203
1671
  "benchmarks-current": "benchmarks-current";
1204
1672
  }>;
1205
- ok: z.ZodBoolean;
1206
- status: z.ZodOptional<z.ZodEnum<{
1673
+ ok: z.ZodBoolean;
1674
+ status: z.ZodOptional<z.ZodEnum<{
1675
+ ready: "ready";
1676
+ "not-ready": "not-ready";
1677
+ failed: "failed";
1678
+ "not-configured": "not-configured";
1679
+ "not-built": "not-built";
1680
+ building: "building";
1681
+ built: "built";
1682
+ checking: "checking";
1683
+ stale: "stale";
1684
+ }>>;
1685
+ summary: z.ZodString;
1686
+ detail: z.ZodOptional<z.ZodString>;
1687
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
+ }, z.core.$strict>>>;
1690
+ }, z.core.$strict>;
1691
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1692
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1693
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1694
+ entrypoint_artifact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1695
+ artifact_id: z.ZodOptional<z.ZodString>;
1696
+ label: z.ZodString;
1697
+ locator: z.ZodObject<{
1698
+ kind: z.ZodEnum<{
1699
+ "local-path": "local-path";
1700
+ "remote-url": "remote-url";
1701
+ "api-served": "api-served";
1702
+ }>;
1703
+ value: z.ZodString;
1704
+ }, z.core.$strict>;
1705
+ path: z.ZodOptional<z.ZodString>;
1706
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
1707
+ file: "file";
1708
+ directory: "directory";
1709
+ }>>;
1710
+ role: z.ZodDefault<z.ZodEnum<{
1711
+ entrypoint: "entrypoint";
1712
+ artifact: "artifact";
1713
+ guidance: "guidance";
1714
+ "source-index": "source-index";
1715
+ }>>;
1716
+ summary: z.ZodOptional<z.ZodString>;
1717
+ }, z.core.$strict>>>;
1718
+ artifact_handoffs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1719
+ artifact_id: z.ZodOptional<z.ZodString>;
1720
+ label: z.ZodString;
1721
+ locator: z.ZodObject<{
1722
+ kind: z.ZodEnum<{
1723
+ "local-path": "local-path";
1724
+ "remote-url": "remote-url";
1725
+ "api-served": "api-served";
1726
+ }>;
1727
+ value: z.ZodString;
1728
+ }, z.core.$strict>;
1729
+ path: z.ZodOptional<z.ZodString>;
1730
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
1731
+ file: "file";
1732
+ directory: "directory";
1733
+ }>>;
1734
+ role: z.ZodDefault<z.ZodEnum<{
1735
+ entrypoint: "entrypoint";
1736
+ artifact: "artifact";
1737
+ guidance: "guidance";
1738
+ "source-index": "source-index";
1739
+ }>>;
1740
+ summary: z.ZodOptional<z.ZodString>;
1741
+ }, z.core.$strict>>>;
1742
+ portable_handoff: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1743
+ locator: z.ZodObject<{
1744
+ kind: z.ZodEnum<{
1745
+ "local-path": "local-path";
1746
+ "remote-url": "remote-url";
1747
+ "api-served": "api-served";
1748
+ }>;
1749
+ value: z.ZodString;
1750
+ }, z.core.$strict>;
1751
+ instructions: z.ZodOptional<z.ZodString>;
1752
+ }, z.core.$strict>>>;
1753
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1754
+ path: z.ZodString;
1755
+ role: z.ZodEnum<{
1756
+ runtime: "runtime";
1757
+ output: "output";
1758
+ source: "source";
1759
+ evidence: "evidence";
1760
+ benchmark: "benchmark";
1761
+ }>;
1762
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1763
+ label: z.ZodOptional<z.ZodString>;
1764
+ sha256: z.ZodOptional<z.ZodString>;
1765
+ }, z.core.$strict>>>;
1766
+ build_evidence: z.ZodOptional<z.ZodObject<{
1767
+ kind: z.ZodLiteral<"interf-build-evidence">;
1768
+ version: z.ZodLiteral<1>;
1769
+ generated_at: z.ZodString;
1770
+ project_id: z.ZodString;
1771
+ build_run_id: z.ZodNullable<z.ZodString>;
1772
+ ready: z.ZodBoolean;
1773
+ summary: z.ZodString;
1774
+ rows: z.ZodDefault<z.ZodArray<z.ZodObject<{
1775
+ id: z.ZodString;
1776
+ assertion: z.ZodString;
1777
+ metric: z.ZodObject<{
1778
+ observed: z.ZodNumber;
1779
+ total: z.ZodOptional<z.ZodNumber>;
1780
+ unit: z.ZodOptional<z.ZodString>;
1781
+ }, z.core.$strict>;
1782
+ evidence: z.ZodObject<{
1783
+ kind: z.ZodEnum<{
1784
+ output: "output";
1785
+ "source-inventory": "source-inventory";
1786
+ "stage-record": "stage-record";
1787
+ validator: "validator";
1788
+ trace: "trace";
1789
+ "stage-evidence": "stage-evidence";
1790
+ }>;
1791
+ label: z.ZodString;
1792
+ ref: z.ZodOptional<z.ZodString>;
1793
+ path: z.ZodOptional<z.ZodString>;
1794
+ run_id: z.ZodOptional<z.ZodString>;
1795
+ stage_id: z.ZodOptional<z.ZodString>;
1796
+ artifact_id: z.ZodOptional<z.ZodString>;
1797
+ }, z.core.$strict>;
1798
+ issue_state: z.ZodOptional<z.ZodEnum<{
1799
+ pass: "pass";
1800
+ fail: "fail";
1801
+ missing: "missing";
1802
+ review: "review";
1803
+ }>>;
1804
+ issue: z.ZodOptional<z.ZodString>;
1805
+ }, z.core.$strict>>>;
1806
+ }, z.core.$strict>>;
1807
+ semantic_graph: z.ZodOptional<z.ZodObject<{
1808
+ kind: z.ZodLiteral<"interf-context-graph-semantic-graph">;
1809
+ version: z.ZodLiteral<1>;
1810
+ generated_at: z.ZodString;
1811
+ nodes: z.ZodArray<z.ZodObject<{
1812
+ id: z.ZodString;
1813
+ kind: z.ZodEnum<{
1814
+ source: "source";
1815
+ index: "index";
1816
+ summary: "summary";
1817
+ project: "project";
1818
+ knowledge: "knowledge";
1819
+ artifact: "artifact";
1820
+ note: "note";
1821
+ home: "home";
1822
+ claim: "claim";
1823
+ entity: "entity";
1824
+ }>;
1825
+ label: z.ZodString;
1826
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1827
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1828
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1829
+ link_count: z.ZodDefault<z.ZodNumber>;
1830
+ backlink_count: z.ZodDefault<z.ZodNumber>;
1831
+ }, z.core.$strict>>;
1832
+ edges: z.ZodArray<z.ZodObject<{
1833
+ id: z.ZodString;
1834
+ kind: z.ZodEnum<{
1835
+ "links-to": "links-to";
1836
+ "source-ref": "source-ref";
1837
+ contains: "contains";
1838
+ handoff: "handoff";
1839
+ }>;
1840
+ source: z.ZodString;
1841
+ target: z.ZodString;
1842
+ label: z.ZodString;
1843
+ detail: z.ZodString;
1844
+ }, z.core.$strict>>;
1845
+ stats: z.ZodObject<{
1846
+ notes: z.ZodNumber;
1847
+ links: z.ZodNumber;
1848
+ source_refs: z.ZodNumber;
1849
+ unresolved_links: z.ZodNumber;
1850
+ }, z.core.$strict>;
1851
+ }, z.core.$strict>>;
1852
+ graph_manifest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1853
+ kind: z.ZodLiteral<"interf-graph-manifest">;
1854
+ version: z.ZodLiteral<1>;
1855
+ generated_at: z.ZodString;
1856
+ project: z.ZodString;
1857
+ graph_id: z.ZodString;
1858
+ run_id: z.ZodNullable<z.ZodString>;
1859
+ build_plan: z.ZodString;
1860
+ intent: z.ZodNullable<z.ZodString>;
1861
+ graph_path: z.ZodString;
1862
+ primary_metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
1863
+ key: z.ZodString;
1864
+ label: z.ZodString;
1865
+ value: z.ZodNumber;
1866
+ total: z.ZodOptional<z.ZodNumber>;
1867
+ unit: z.ZodOptional<z.ZodString>;
1868
+ primary: z.ZodDefault<z.ZodBoolean>;
1869
+ issue_state: z.ZodOptional<z.ZodEnum<{
1870
+ pass: "pass";
1871
+ fail: "fail";
1872
+ missing: "missing";
1873
+ review: "review";
1874
+ }>>;
1875
+ detail: z.ZodOptional<z.ZodString>;
1876
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1877
+ }, z.core.$strict>>>;
1878
+ stages: z.ZodDefault<z.ZodArray<z.ZodObject<{
1879
+ stage_id: z.ZodString;
1880
+ stage_label: z.ZodString;
1881
+ role: z.ZodEnum<{
1882
+ source: "source";
1883
+ summary: "summary";
1884
+ other: "other";
1885
+ knowledge: "knowledge";
1886
+ entrypoint: "entrypoint";
1887
+ diagnostic: "diagnostic";
1888
+ }>;
1889
+ manifest_path: z.ZodString;
1890
+ summary: z.ZodString;
1891
+ produced_total: z.ZodNumber;
1892
+ missing_required_total: z.ZodNumber;
1893
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
1894
+ key: z.ZodString;
1895
+ label: z.ZodString;
1896
+ value: z.ZodNumber;
1897
+ total: z.ZodOptional<z.ZodNumber>;
1898
+ unit: z.ZodOptional<z.ZodString>;
1899
+ primary: z.ZodDefault<z.ZodBoolean>;
1900
+ issue_state: z.ZodOptional<z.ZodEnum<{
1901
+ pass: "pass";
1902
+ fail: "fail";
1903
+ missing: "missing";
1904
+ review: "review";
1905
+ }>>;
1906
+ detail: z.ZodOptional<z.ZodString>;
1907
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1908
+ }, z.core.$strict>>>;
1909
+ }, z.core.$strict>>>;
1910
+ entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
1911
+ id: z.ZodString;
1912
+ role: z.ZodEnum<{
1913
+ source: "source";
1914
+ summary: "summary";
1915
+ other: "other";
1916
+ knowledge: "knowledge";
1917
+ entrypoint: "entrypoint";
1918
+ diagnostic: "diagnostic";
1919
+ }>;
1920
+ kind: z.ZodString;
1921
+ label: z.ZodString;
1922
+ path: z.ZodOptional<z.ZodString>;
1923
+ locator: z.ZodOptional<z.ZodString>;
1924
+ stage_id: z.ZodOptional<z.ZodString>;
1925
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1926
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
1927
+ required: z.ZodDefault<z.ZodBoolean>;
1928
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1929
+ }, z.core.$strict>>>;
1930
+ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
1931
+ id: z.ZodString;
1932
+ role: z.ZodEnum<{
1933
+ source: "source";
1934
+ summary: "summary";
1935
+ other: "other";
1936
+ knowledge: "knowledge";
1937
+ entrypoint: "entrypoint";
1938
+ diagnostic: "diagnostic";
1939
+ }>;
1940
+ kind: z.ZodString;
1941
+ label: z.ZodString;
1942
+ path: z.ZodOptional<z.ZodString>;
1943
+ locator: z.ZodOptional<z.ZodString>;
1944
+ stage_id: z.ZodOptional<z.ZodString>;
1945
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1946
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
1947
+ required: z.ZodDefault<z.ZodBoolean>;
1948
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1949
+ }, z.core.$strict>>>;
1950
+ graph_outputs: z.ZodObject<{
1951
+ nodes: z.ZodNumber;
1952
+ edges: z.ZodNumber;
1953
+ notes: z.ZodNumber;
1954
+ links: z.ZodNumber;
1955
+ source_refs: z.ZodNumber;
1956
+ claims: z.ZodOptional<z.ZodNumber>;
1957
+ entities: z.ZodOptional<z.ZodNumber>;
1958
+ }, z.core.$strict>;
1959
+ readiness: z.ZodObject<{
1960
+ status: z.ZodEnum<{
1961
+ ready: "ready";
1962
+ "not-ready": "not-ready";
1963
+ }>;
1964
+ ready: z.ZodBoolean;
1965
+ summary: z.ZodString;
1966
+ context_graph_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1967
+ missing_required_total: z.ZodNumber;
1968
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
1969
+ resource_id: z.ZodString;
1970
+ status: z.ZodEnum<{
1971
+ missing: "missing";
1972
+ blocked: "blocked";
1973
+ "not-relevant": "not-relevant";
1974
+ }>;
1975
+ reason: z.ZodString;
1976
+ }, z.core.$strict>>>;
1977
+ }, z.core.$strict>;
1978
+ }, z.core.$strict>>>;
1979
+ primary_metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
1980
+ key: z.ZodString;
1981
+ label: z.ZodString;
1982
+ value: z.ZodNumber;
1983
+ total: z.ZodOptional<z.ZodNumber>;
1984
+ unit: z.ZodOptional<z.ZodString>;
1985
+ primary: z.ZodDefault<z.ZodBoolean>;
1986
+ issue_state: z.ZodOptional<z.ZodEnum<{
1987
+ pass: "pass";
1988
+ fail: "fail";
1989
+ missing: "missing";
1990
+ review: "review";
1991
+ }>>;
1992
+ detail: z.ZodOptional<z.ZodString>;
1993
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1994
+ }, z.core.$strict>>>;
1995
+ stage_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1996
+ stage_id: z.ZodString;
1997
+ stage_label: z.ZodString;
1998
+ role: z.ZodEnum<{
1999
+ source: "source";
2000
+ summary: "summary";
2001
+ other: "other";
2002
+ knowledge: "knowledge";
2003
+ entrypoint: "entrypoint";
2004
+ diagnostic: "diagnostic";
2005
+ }>;
2006
+ manifest_path: z.ZodString;
2007
+ summary: z.ZodString;
2008
+ produced_total: z.ZodNumber;
2009
+ missing_required_total: z.ZodNumber;
2010
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2011
+ key: z.ZodString;
2012
+ label: z.ZodString;
2013
+ value: z.ZodNumber;
2014
+ total: z.ZodOptional<z.ZodNumber>;
2015
+ unit: z.ZodOptional<z.ZodString>;
2016
+ primary: z.ZodDefault<z.ZodBoolean>;
2017
+ issue_state: z.ZodOptional<z.ZodEnum<{
2018
+ pass: "pass";
2019
+ fail: "fail";
2020
+ missing: "missing";
2021
+ review: "review";
2022
+ }>>;
2023
+ detail: z.ZodOptional<z.ZodString>;
2024
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2025
+ }, z.core.$strict>>>;
2026
+ }, z.core.$strict>>>;
2027
+ entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
2028
+ id: z.ZodString;
2029
+ role: z.ZodEnum<{
2030
+ source: "source";
2031
+ summary: "summary";
2032
+ other: "other";
2033
+ knowledge: "knowledge";
2034
+ entrypoint: "entrypoint";
2035
+ diagnostic: "diagnostic";
2036
+ }>;
2037
+ kind: z.ZodString;
2038
+ label: z.ZodString;
2039
+ path: z.ZodOptional<z.ZodString>;
2040
+ locator: z.ZodOptional<z.ZodString>;
2041
+ stage_id: z.ZodOptional<z.ZodString>;
2042
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2043
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2044
+ required: z.ZodDefault<z.ZodBoolean>;
2045
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2046
+ }, z.core.$strict>>>;
2047
+ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
2048
+ id: z.ZodString;
2049
+ role: z.ZodEnum<{
2050
+ source: "source";
2051
+ summary: "summary";
2052
+ other: "other";
2053
+ knowledge: "knowledge";
2054
+ entrypoint: "entrypoint";
2055
+ diagnostic: "diagnostic";
2056
+ }>;
2057
+ kind: z.ZodString;
2058
+ label: z.ZodString;
2059
+ path: z.ZodOptional<z.ZodString>;
2060
+ locator: z.ZodOptional<z.ZodString>;
2061
+ stage_id: z.ZodOptional<z.ZodString>;
2062
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2063
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2064
+ required: z.ZodDefault<z.ZodBoolean>;
2065
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2066
+ }, z.core.$strict>>>;
2067
+ readiness_rollup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2068
+ status: z.ZodEnum<{
2069
+ ready: "ready";
2070
+ "not-ready": "not-ready";
2071
+ }>;
2072
+ ready: z.ZodBoolean;
2073
+ summary: z.ZodString;
2074
+ context_graph_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2075
+ missing_required_total: z.ZodNumber;
2076
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
2077
+ resource_id: z.ZodString;
2078
+ status: z.ZodEnum<{
2079
+ missing: "missing";
2080
+ blocked: "blocked";
2081
+ "not-relevant": "not-relevant";
2082
+ }>;
2083
+ reason: z.ZodString;
2084
+ }, z.core.$strict>>>;
2085
+ }, z.core.$strict>>>;
2086
+ stage_sessions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2087
+ kind: z.ZodLiteral<"interf-stage-execution-session">;
2088
+ version: z.ZodLiteral<1>;
2089
+ job_type: z.ZodDefault<z.ZodEnum<{
2090
+ stage: "stage";
2091
+ "source-inventory": "source-inventory";
2092
+ }>>;
2093
+ generated_at: z.ZodString;
2094
+ updated_at: z.ZodString;
2095
+ project: z.ZodString;
2096
+ project_intent: z.ZodNullable<z.ZodString>;
2097
+ context_graph_path: z.ZodString;
2098
+ build_plan: z.ZodString;
2099
+ build_run_id: z.ZodNullable<z.ZodString>;
2100
+ stage_id: z.ZodNullable<z.ZodString>;
2101
+ stage_label: z.ZodNullable<z.ZodString>;
2102
+ contract_type: z.ZodNullable<z.ZodString>;
2103
+ stage_run_id: z.ZodString;
2104
+ attempt: z.ZodNumber;
2105
+ status: z.ZodEnum<{
2106
+ running: "running";
2107
+ failed: "failed";
2108
+ succeeded: "succeeded";
2109
+ }>;
2110
+ executor: z.ZodObject<{
2111
+ kind: z.ZodEnum<{
2112
+ "local-agent": "local-agent";
2113
+ "connected-provider": "connected-provider";
2114
+ managed: "managed";
2115
+ }>;
2116
+ name: z.ZodString;
2117
+ display_name: z.ZodString;
2118
+ command: z.ZodNullable<z.ZodString>;
2119
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2120
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2121
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2122
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2123
+ }, z.core.$strip>;
2124
+ shell: z.ZodObject<{
2125
+ root_path: z.ZodString;
2126
+ workspace_manifest_path: z.ZodNullable<z.ZodString>;
2127
+ preserved_shell_manifest_path: z.ZodNullable<z.ZodString>;
2128
+ replay_ready: z.ZodBoolean;
2129
+ retention_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2130
+ }, z.core.$strict>;
2131
+ logs: z.ZodObject<{
2132
+ prompt_path: z.ZodNullable<z.ZodString>;
2133
+ event_stream_path: z.ZodNullable<z.ZodString>;
2134
+ status_path: z.ZodNullable<z.ZodString>;
2135
+ }, z.core.$strict>;
2136
+ runtime_files: z.ZodObject<{
2137
+ project_path: z.ZodNullable<z.ZodString>;
2138
+ contract_path: z.ZodNullable<z.ZodString>;
2139
+ paths_path: z.ZodNullable<z.ZodString>;
2140
+ source_locator_path: z.ZodNullable<z.ZodString>;
2141
+ source_manifest_path: z.ZodNullable<z.ZodString>;
2142
+ source_state_path: z.ZodNullable<z.ZodString>;
2143
+ stage_inputs_path: z.ZodNullable<z.ZodString>;
2144
+ expected_inputs_path: z.ZodNullable<z.ZodString>;
2145
+ reviewed_inputs_path: z.ZodNullable<z.ZodString>;
2146
+ previous_attempts_path: z.ZodNullable<z.ZodString>;
2147
+ retry_feedback_path: z.ZodNullable<z.ZodString>;
2148
+ last_validation_failure_path: z.ZodNullable<z.ZodString>;
2149
+ verifier_path: z.ZodNullable<z.ZodString>;
2150
+ stage_evidence_path: z.ZodNullable<z.ZodString>;
2151
+ reasoning_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2152
+ }, z.core.$strict>;
2153
+ artifacts: z.ZodObject<{
2154
+ reads: z.ZodDefault<z.ZodArray<z.ZodObject<{
2155
+ artifact_id: z.ZodString;
2156
+ artifact_path: z.ZodString;
2157
+ shell_root_path: z.ZodString;
2158
+ input_mount_path: z.ZodNullable<z.ZodString>;
2159
+ output_mount_path: z.ZodNullable<z.ZodString>;
2160
+ }, z.core.$strip>>>;
2161
+ writes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2162
+ artifact_id: z.ZodString;
2163
+ artifact_path: z.ZodString;
2164
+ shell_root_path: z.ZodString;
2165
+ input_mount_path: z.ZodNullable<z.ZodString>;
2166
+ output_mount_path: z.ZodNullable<z.ZodString>;
2167
+ }, z.core.$strip>>>;
2168
+ }, z.core.$strict>;
2169
+ validation_attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2170
+ attempt: z.ZodNumber;
2171
+ recorded_at: z.ZodString;
2172
+ status: z.ZodEnum<{
2173
+ failed: "failed";
2174
+ succeeded: "succeeded";
2175
+ }>;
2176
+ summary: z.ZodString;
2177
+ }, z.core.$strict>>>;
2178
+ summary: z.ZodNullable<z.ZodString>;
2179
+ error: z.ZodNullable<z.ZodString>;
2180
+ }, z.core.$strict>>>;
2181
+ }, z.core.$strict>;
2182
+ readonly success_status: 200;
2183
+ }, {
2184
+ readonly id: "listContextGraphStages";
2185
+ readonly method: "GET";
2186
+ readonly path: "/v1/projects/{project_id}/context-graph/stages";
2187
+ readonly tags: ["Context Graphs"];
2188
+ readonly summary: "List Context Graph StageManifests";
2189
+ readonly description: "Return StageManifest summaries for the latest Context Graph.";
2190
+ readonly visibility: "app";
2191
+ readonly parameters: [ServiceOperationParameter];
2192
+ readonly response_schema: z.ZodObject<{
2193
+ stages: z.ZodArray<z.ZodObject<{
2194
+ stage_id: z.ZodString;
2195
+ stage_label: z.ZodString;
2196
+ role: z.ZodEnum<{
2197
+ source: "source";
2198
+ summary: "summary";
2199
+ other: "other";
2200
+ knowledge: "knowledge";
2201
+ entrypoint: "entrypoint";
2202
+ diagnostic: "diagnostic";
2203
+ }>;
2204
+ manifest_path: z.ZodString;
2205
+ summary: z.ZodString;
2206
+ produced_total: z.ZodNumber;
2207
+ missing_required_total: z.ZodNumber;
2208
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2209
+ key: z.ZodString;
2210
+ label: z.ZodString;
2211
+ value: z.ZodNumber;
2212
+ total: z.ZodOptional<z.ZodNumber>;
2213
+ unit: z.ZodOptional<z.ZodString>;
2214
+ primary: z.ZodDefault<z.ZodBoolean>;
2215
+ issue_state: z.ZodOptional<z.ZodEnum<{
2216
+ pass: "pass";
2217
+ fail: "fail";
2218
+ missing: "missing";
2219
+ review: "review";
2220
+ }>>;
2221
+ detail: z.ZodOptional<z.ZodString>;
2222
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2223
+ }, z.core.$strict>>>;
2224
+ }, z.core.$strict>>;
2225
+ readiness: z.ZodNullable<z.ZodObject<{
2226
+ status: z.ZodEnum<{
2227
+ ready: "ready";
2228
+ "not-ready": "not-ready";
2229
+ }>;
2230
+ ready: z.ZodBoolean;
2231
+ summary: z.ZodString;
2232
+ context_graph_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2233
+ missing_required_total: z.ZodNumber;
2234
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
2235
+ resource_id: z.ZodString;
2236
+ status: z.ZodEnum<{
2237
+ missing: "missing";
2238
+ blocked: "blocked";
2239
+ "not-relevant": "not-relevant";
2240
+ }>;
2241
+ reason: z.ZodString;
2242
+ }, z.core.$strict>>>;
2243
+ }, z.core.$strict>>;
2244
+ primary_metrics: z.ZodArray<z.ZodObject<{
2245
+ key: z.ZodString;
2246
+ label: z.ZodString;
2247
+ value: z.ZodNumber;
2248
+ total: z.ZodOptional<z.ZodNumber>;
2249
+ unit: z.ZodOptional<z.ZodString>;
2250
+ primary: z.ZodDefault<z.ZodBoolean>;
2251
+ issue_state: z.ZodOptional<z.ZodEnum<{
2252
+ pass: "pass";
2253
+ fail: "fail";
2254
+ missing: "missing";
2255
+ review: "review";
2256
+ }>>;
2257
+ detail: z.ZodOptional<z.ZodString>;
2258
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2259
+ }, z.core.$strict>>;
2260
+ }, z.core.$strict>;
2261
+ readonly success_status: 200;
2262
+ }, {
2263
+ readonly id: "listContextGraphResources";
2264
+ readonly method: "GET";
2265
+ readonly path: "/v1/projects/{project_id}/context-graph/resources";
2266
+ readonly tags: ["Context Graphs"];
2267
+ readonly summary: "List Context Graph resources";
2268
+ readonly description: "Return the ResourceRef index from the latest GraphManifest.";
2269
+ readonly visibility: "app";
2270
+ readonly parameters: [ServiceOperationParameter];
2271
+ readonly response_schema: z.ZodObject<{
2272
+ resources: z.ZodArray<z.ZodObject<{
2273
+ id: z.ZodString;
2274
+ role: z.ZodEnum<{
2275
+ source: "source";
2276
+ summary: "summary";
2277
+ other: "other";
2278
+ knowledge: "knowledge";
2279
+ entrypoint: "entrypoint";
2280
+ diagnostic: "diagnostic";
2281
+ }>;
2282
+ kind: z.ZodString;
2283
+ label: z.ZodString;
2284
+ path: z.ZodOptional<z.ZodString>;
2285
+ locator: z.ZodOptional<z.ZodString>;
2286
+ stage_id: z.ZodOptional<z.ZodString>;
2287
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2288
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2289
+ required: z.ZodDefault<z.ZodBoolean>;
2290
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2291
+ }, z.core.$strict>>;
2292
+ entrypoints: z.ZodArray<z.ZodObject<{
2293
+ id: z.ZodString;
2294
+ role: z.ZodEnum<{
2295
+ source: "source";
2296
+ summary: "summary";
2297
+ other: "other";
2298
+ knowledge: "knowledge";
2299
+ entrypoint: "entrypoint";
2300
+ diagnostic: "diagnostic";
2301
+ }>;
2302
+ kind: z.ZodString;
2303
+ label: z.ZodString;
2304
+ path: z.ZodOptional<z.ZodString>;
2305
+ locator: z.ZodOptional<z.ZodString>;
2306
+ stage_id: z.ZodOptional<z.ZodString>;
2307
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2308
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2309
+ required: z.ZodDefault<z.ZodBoolean>;
2310
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2311
+ }, z.core.$strict>>;
2312
+ graph_outputs: z.ZodNullable<z.ZodObject<{
2313
+ nodes: z.ZodNumber;
2314
+ edges: z.ZodNumber;
2315
+ notes: z.ZodNumber;
2316
+ links: z.ZodNumber;
2317
+ source_refs: z.ZodNumber;
2318
+ claims: z.ZodOptional<z.ZodNumber>;
2319
+ entities: z.ZodOptional<z.ZodNumber>;
2320
+ }, z.core.$strict>>;
2321
+ }, z.core.$strict>;
2322
+ readonly success_status: 200;
2323
+ }, {
2324
+ readonly id: "listContextGraphSessions";
2325
+ readonly method: "GET";
2326
+ readonly path: "/v1/projects/{project_id}/context-graph/sessions";
2327
+ readonly tags: ["Context Graphs"];
2328
+ readonly summary: "List Context Graph execution sessions";
2329
+ readonly description: "Return replayable per-stage execution shell sessions for the latest Build run, including workspace, prompt, logs, validation attempts, and stage contract paths.";
2330
+ readonly visibility: "app";
2331
+ readonly parameters: [ServiceOperationParameter];
2332
+ readonly response_schema: z.ZodObject<{
2333
+ sessions: z.ZodArray<z.ZodObject<{
2334
+ kind: z.ZodLiteral<"interf-stage-execution-session">;
2335
+ version: z.ZodLiteral<1>;
2336
+ job_type: z.ZodDefault<z.ZodEnum<{
2337
+ stage: "stage";
2338
+ "source-inventory": "source-inventory";
2339
+ }>>;
2340
+ generated_at: z.ZodString;
2341
+ updated_at: z.ZodString;
2342
+ project: z.ZodString;
2343
+ project_intent: z.ZodNullable<z.ZodString>;
2344
+ context_graph_path: z.ZodString;
2345
+ build_plan: z.ZodString;
2346
+ build_run_id: z.ZodNullable<z.ZodString>;
2347
+ stage_id: z.ZodNullable<z.ZodString>;
2348
+ stage_label: z.ZodNullable<z.ZodString>;
2349
+ contract_type: z.ZodNullable<z.ZodString>;
2350
+ stage_run_id: z.ZodString;
2351
+ attempt: z.ZodNumber;
2352
+ status: z.ZodEnum<{
2353
+ running: "running";
2354
+ failed: "failed";
2355
+ succeeded: "succeeded";
2356
+ }>;
2357
+ executor: z.ZodObject<{
2358
+ kind: z.ZodEnum<{
2359
+ "local-agent": "local-agent";
2360
+ "connected-provider": "connected-provider";
2361
+ managed: "managed";
2362
+ }>;
2363
+ name: z.ZodString;
2364
+ display_name: z.ZodString;
2365
+ command: z.ZodNullable<z.ZodString>;
2366
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2367
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2368
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2369
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2370
+ }, z.core.$strip>;
2371
+ shell: z.ZodObject<{
2372
+ root_path: z.ZodString;
2373
+ workspace_manifest_path: z.ZodNullable<z.ZodString>;
2374
+ preserved_shell_manifest_path: z.ZodNullable<z.ZodString>;
2375
+ replay_ready: z.ZodBoolean;
2376
+ retention_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2377
+ }, z.core.$strict>;
2378
+ logs: z.ZodObject<{
2379
+ prompt_path: z.ZodNullable<z.ZodString>;
2380
+ event_stream_path: z.ZodNullable<z.ZodString>;
2381
+ status_path: z.ZodNullable<z.ZodString>;
2382
+ }, z.core.$strict>;
2383
+ runtime_files: z.ZodObject<{
2384
+ project_path: z.ZodNullable<z.ZodString>;
2385
+ contract_path: z.ZodNullable<z.ZodString>;
2386
+ paths_path: z.ZodNullable<z.ZodString>;
2387
+ source_locator_path: z.ZodNullable<z.ZodString>;
2388
+ source_manifest_path: z.ZodNullable<z.ZodString>;
2389
+ source_state_path: z.ZodNullable<z.ZodString>;
2390
+ stage_inputs_path: z.ZodNullable<z.ZodString>;
2391
+ expected_inputs_path: z.ZodNullable<z.ZodString>;
2392
+ reviewed_inputs_path: z.ZodNullable<z.ZodString>;
2393
+ previous_attempts_path: z.ZodNullable<z.ZodString>;
2394
+ retry_feedback_path: z.ZodNullable<z.ZodString>;
2395
+ last_validation_failure_path: z.ZodNullable<z.ZodString>;
2396
+ verifier_path: z.ZodNullable<z.ZodString>;
2397
+ stage_evidence_path: z.ZodNullable<z.ZodString>;
2398
+ reasoning_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2399
+ }, z.core.$strict>;
2400
+ artifacts: z.ZodObject<{
2401
+ reads: z.ZodDefault<z.ZodArray<z.ZodObject<{
2402
+ artifact_id: z.ZodString;
2403
+ artifact_path: z.ZodString;
2404
+ shell_root_path: z.ZodString;
2405
+ input_mount_path: z.ZodNullable<z.ZodString>;
2406
+ output_mount_path: z.ZodNullable<z.ZodString>;
2407
+ }, z.core.$strip>>>;
2408
+ writes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2409
+ artifact_id: z.ZodString;
2410
+ artifact_path: z.ZodString;
2411
+ shell_root_path: z.ZodString;
2412
+ input_mount_path: z.ZodNullable<z.ZodString>;
2413
+ output_mount_path: z.ZodNullable<z.ZodString>;
2414
+ }, z.core.$strip>>>;
2415
+ }, z.core.$strict>;
2416
+ validation_attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2417
+ attempt: z.ZodNumber;
2418
+ recorded_at: z.ZodString;
2419
+ status: z.ZodEnum<{
1207
2420
  failed: "failed";
1208
- ready: "ready";
1209
- "not-configured": "not-configured";
1210
- "not-built": "not-built";
1211
- building: "building";
1212
- built: "built";
1213
- checking: "checking";
1214
- "not-ready": "not-ready";
1215
- stale: "stale";
1216
- }>>;
2421
+ succeeded: "succeeded";
2422
+ }>;
1217
2423
  summary: z.ZodString;
1218
- detail: z.ZodOptional<z.ZodString>;
1219
- run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
- artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1221
2424
  }, z.core.$strict>>>;
2425
+ summary: z.ZodNullable<z.ZodString>;
2426
+ error: z.ZodNullable<z.ZodString>;
2427
+ }, z.core.$strict>>;
2428
+ }, z.core.$strict>;
2429
+ readonly success_status: 200;
2430
+ }, {
2431
+ readonly id: "getContextGraphResource";
2432
+ readonly method: "GET";
2433
+ readonly path: "/v1/projects/{project_id}/context-graph/resources/{resource_id}";
2434
+ readonly tags: ["Context Graphs"];
2435
+ readonly summary: "Get Context Graph resource";
2436
+ readonly description: "Return one ResourceRef from the latest GraphManifest for inspector drilldown.";
2437
+ readonly visibility: "app";
2438
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
2439
+ readonly response_schema: z.ZodObject<{
2440
+ resource: z.ZodObject<{
2441
+ id: z.ZodString;
2442
+ role: z.ZodEnum<{
2443
+ source: "source";
2444
+ summary: "summary";
2445
+ other: "other";
2446
+ knowledge: "knowledge";
2447
+ entrypoint: "entrypoint";
2448
+ diagnostic: "diagnostic";
2449
+ }>;
2450
+ kind: z.ZodString;
2451
+ label: z.ZodString;
2452
+ path: z.ZodOptional<z.ZodString>;
2453
+ locator: z.ZodOptional<z.ZodString>;
2454
+ stage_id: z.ZodOptional<z.ZodString>;
2455
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2456
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2457
+ required: z.ZodDefault<z.ZodBoolean>;
2458
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1222
2459
  }, z.core.$strict>;
1223
- build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1224
- latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1225
- latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1226
- artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1227
- path: z.ZodString;
2460
+ stage: z.ZodNullable<z.ZodObject<{
2461
+ stage_id: z.ZodString;
2462
+ stage_label: z.ZodString;
1228
2463
  role: z.ZodEnum<{
1229
- runtime: "runtime";
1230
- output: "output";
1231
2464
  source: "source";
1232
- evidence: "evidence";
1233
- benchmark: "benchmark";
2465
+ summary: "summary";
2466
+ other: "other";
2467
+ knowledge: "knowledge";
2468
+ entrypoint: "entrypoint";
2469
+ diagnostic: "diagnostic";
1234
2470
  }>;
1235
- stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1236
- label: z.ZodOptional<z.ZodString>;
1237
- sha256: z.ZodOptional<z.ZodString>;
1238
- }, z.core.$strict>>>;
1239
- build_evidence: z.ZodOptional<z.ZodObject<{
1240
- kind: z.ZodLiteral<"interf-build-evidence">;
1241
- version: z.ZodLiteral<1>;
1242
- generated_at: z.ZodString;
1243
- project_id: z.ZodString;
1244
- build_run_id: z.ZodNullable<z.ZodString>;
1245
- ready: z.ZodBoolean;
2471
+ manifest_path: z.ZodString;
1246
2472
  summary: z.ZodString;
1247
- rows: z.ZodDefault<z.ZodArray<z.ZodObject<{
1248
- id: z.ZodString;
1249
- assertion: z.ZodString;
1250
- metric: z.ZodObject<{
1251
- observed: z.ZodNumber;
1252
- total: z.ZodOptional<z.ZodNumber>;
1253
- unit: z.ZodOptional<z.ZodString>;
1254
- }, z.core.$strict>;
1255
- evidence: z.ZodObject<{
1256
- kind: z.ZodEnum<{
1257
- output: "output";
1258
- "source-inventory": "source-inventory";
1259
- "stage-record": "stage-record";
1260
- validator: "validator";
1261
- trace: "trace";
1262
- "stage-evidence": "stage-evidence";
1263
- }>;
1264
- label: z.ZodString;
1265
- ref: z.ZodOptional<z.ZodString>;
1266
- path: z.ZodOptional<z.ZodString>;
1267
- run_id: z.ZodOptional<z.ZodString>;
1268
- stage_id: z.ZodOptional<z.ZodString>;
1269
- artifact_id: z.ZodOptional<z.ZodString>;
1270
- }, z.core.$strict>;
2473
+ produced_total: z.ZodNumber;
2474
+ missing_required_total: z.ZodNumber;
2475
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2476
+ key: z.ZodString;
2477
+ label: z.ZodString;
2478
+ value: z.ZodNumber;
2479
+ total: z.ZodOptional<z.ZodNumber>;
2480
+ unit: z.ZodOptional<z.ZodString>;
2481
+ primary: z.ZodDefault<z.ZodBoolean>;
1271
2482
  issue_state: z.ZodOptional<z.ZodEnum<{
1272
2483
  pass: "pass";
1273
2484
  fail: "fail";
1274
2485
  missing: "missing";
1275
2486
  review: "review";
1276
2487
  }>>;
1277
- issue: z.ZodOptional<z.ZodString>;
2488
+ detail: z.ZodOptional<z.ZodString>;
2489
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2490
+ }, z.core.$strict>>>;
2491
+ }, z.core.$strict>>;
2492
+ linked_resources: z.ZodArray<z.ZodObject<{
2493
+ id: z.ZodString;
2494
+ role: z.ZodEnum<{
2495
+ source: "source";
2496
+ summary: "summary";
2497
+ other: "other";
2498
+ knowledge: "knowledge";
2499
+ entrypoint: "entrypoint";
2500
+ diagnostic: "diagnostic";
2501
+ }>;
2502
+ kind: z.ZodString;
2503
+ label: z.ZodString;
2504
+ path: z.ZodOptional<z.ZodString>;
2505
+ locator: z.ZodOptional<z.ZodString>;
2506
+ stage_id: z.ZodOptional<z.ZodString>;
2507
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2508
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2509
+ required: z.ZodDefault<z.ZodBoolean>;
2510
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2511
+ }, z.core.$strict>>;
2512
+ }, z.core.$strict>;
2513
+ readonly success_status: 200;
2514
+ }, {
2515
+ readonly id: "getContextGraphSession";
2516
+ readonly method: "GET";
2517
+ readonly path: "/v1/projects/{project_id}/context-graph/sessions/{stage_run_id}";
2518
+ readonly tags: ["Context Graphs"];
2519
+ readonly summary: "Get Context Graph execution session";
2520
+ readonly description: "Return one replayable stage execution shell session for inspector drilldown.";
2521
+ readonly visibility: "app";
2522
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
2523
+ readonly response_schema: z.ZodObject<{
2524
+ session: z.ZodObject<{
2525
+ kind: z.ZodLiteral<"interf-stage-execution-session">;
2526
+ version: z.ZodLiteral<1>;
2527
+ job_type: z.ZodDefault<z.ZodEnum<{
2528
+ stage: "stage";
2529
+ "source-inventory": "source-inventory";
2530
+ }>>;
2531
+ generated_at: z.ZodString;
2532
+ updated_at: z.ZodString;
2533
+ project: z.ZodString;
2534
+ project_intent: z.ZodNullable<z.ZodString>;
2535
+ context_graph_path: z.ZodString;
2536
+ build_plan: z.ZodString;
2537
+ build_run_id: z.ZodNullable<z.ZodString>;
2538
+ stage_id: z.ZodNullable<z.ZodString>;
2539
+ stage_label: z.ZodNullable<z.ZodString>;
2540
+ contract_type: z.ZodNullable<z.ZodString>;
2541
+ stage_run_id: z.ZodString;
2542
+ attempt: z.ZodNumber;
2543
+ status: z.ZodEnum<{
2544
+ running: "running";
2545
+ failed: "failed";
2546
+ succeeded: "succeeded";
2547
+ }>;
2548
+ executor: z.ZodObject<{
2549
+ kind: z.ZodEnum<{
2550
+ "local-agent": "local-agent";
2551
+ "connected-provider": "connected-provider";
2552
+ managed: "managed";
2553
+ }>;
2554
+ name: z.ZodString;
2555
+ display_name: z.ZodString;
2556
+ command: z.ZodNullable<z.ZodString>;
2557
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2558
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2559
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2560
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2561
+ }, z.core.$strip>;
2562
+ shell: z.ZodObject<{
2563
+ root_path: z.ZodString;
2564
+ workspace_manifest_path: z.ZodNullable<z.ZodString>;
2565
+ preserved_shell_manifest_path: z.ZodNullable<z.ZodString>;
2566
+ replay_ready: z.ZodBoolean;
2567
+ retention_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2568
+ }, z.core.$strict>;
2569
+ logs: z.ZodObject<{
2570
+ prompt_path: z.ZodNullable<z.ZodString>;
2571
+ event_stream_path: z.ZodNullable<z.ZodString>;
2572
+ status_path: z.ZodNullable<z.ZodString>;
2573
+ }, z.core.$strict>;
2574
+ runtime_files: z.ZodObject<{
2575
+ project_path: z.ZodNullable<z.ZodString>;
2576
+ contract_path: z.ZodNullable<z.ZodString>;
2577
+ paths_path: z.ZodNullable<z.ZodString>;
2578
+ source_locator_path: z.ZodNullable<z.ZodString>;
2579
+ source_manifest_path: z.ZodNullable<z.ZodString>;
2580
+ source_state_path: z.ZodNullable<z.ZodString>;
2581
+ stage_inputs_path: z.ZodNullable<z.ZodString>;
2582
+ expected_inputs_path: z.ZodNullable<z.ZodString>;
2583
+ reviewed_inputs_path: z.ZodNullable<z.ZodString>;
2584
+ previous_attempts_path: z.ZodNullable<z.ZodString>;
2585
+ retry_feedback_path: z.ZodNullable<z.ZodString>;
2586
+ last_validation_failure_path: z.ZodNullable<z.ZodString>;
2587
+ verifier_path: z.ZodNullable<z.ZodString>;
2588
+ stage_evidence_path: z.ZodNullable<z.ZodString>;
2589
+ reasoning_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2590
+ }, z.core.$strict>;
2591
+ artifacts: z.ZodObject<{
2592
+ reads: z.ZodDefault<z.ZodArray<z.ZodObject<{
2593
+ artifact_id: z.ZodString;
2594
+ artifact_path: z.ZodString;
2595
+ shell_root_path: z.ZodString;
2596
+ input_mount_path: z.ZodNullable<z.ZodString>;
2597
+ output_mount_path: z.ZodNullable<z.ZodString>;
2598
+ }, z.core.$strip>>>;
2599
+ writes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2600
+ artifact_id: z.ZodString;
2601
+ artifact_path: z.ZodString;
2602
+ shell_root_path: z.ZodString;
2603
+ input_mount_path: z.ZodNullable<z.ZodString>;
2604
+ output_mount_path: z.ZodNullable<z.ZodString>;
2605
+ }, z.core.$strip>>>;
2606
+ }, z.core.$strict>;
2607
+ validation_attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2608
+ attempt: z.ZodNumber;
2609
+ recorded_at: z.ZodString;
2610
+ status: z.ZodEnum<{
2611
+ failed: "failed";
2612
+ succeeded: "succeeded";
2613
+ }>;
2614
+ summary: z.ZodString;
1278
2615
  }, z.core.$strict>>>;
2616
+ summary: z.ZodNullable<z.ZodString>;
2617
+ error: z.ZodNullable<z.ZodString>;
2618
+ }, z.core.$strict>;
2619
+ }, z.core.$strict>;
2620
+ readonly success_status: 200;
2621
+ }, {
2622
+ readonly id: "getProjectReadiness";
2623
+ readonly method: "GET";
2624
+ readonly path: "/v1/projects/{project_id}/readiness";
2625
+ readonly tags: ["Context Graphs"];
2626
+ readonly summary: "Get Project readiness";
2627
+ readonly description: "Read the ready/not ready verdict for the latest Context Graph against the Project intent.";
2628
+ readonly visibility: "app";
2629
+ readonly parameters: [ServiceOperationParameter];
2630
+ readonly response_schema: z.ZodObject<{
2631
+ kind: z.ZodLiteral<"interf-readiness-state">;
2632
+ version: z.ZodLiteral<1>;
2633
+ generated_at: z.ZodString;
2634
+ project: z.ZodString;
2635
+ status: z.ZodEnum<{
2636
+ ready: "ready";
2637
+ "not-ready": "not-ready";
2638
+ failed: "failed";
2639
+ "not-configured": "not-configured";
2640
+ "not-built": "not-built";
2641
+ building: "building";
2642
+ built: "built";
2643
+ checking: "checking";
2644
+ stale: "stale";
2645
+ }>;
2646
+ ready: z.ZodBoolean;
2647
+ summary: z.ZodString;
2648
+ context_graph_path: z.ZodNullable<z.ZodString>;
2649
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2650
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2651
+ build: z.ZodNullable<z.ZodObject<{
2652
+ gate: z.ZodEnum<{
2653
+ "context-graph": "context-graph";
2654
+ "project-config": "project-config";
2655
+ "build-run": "build-run";
2656
+ "artifact-diagnostics": "artifact-diagnostics";
2657
+ "context-checks": "context-checks";
2658
+ benchmarks: "benchmarks";
2659
+ "benchmarks-current": "benchmarks-current";
2660
+ }>;
2661
+ ok: z.ZodBoolean;
2662
+ status: z.ZodOptional<z.ZodEnum<{
2663
+ ready: "ready";
2664
+ "not-ready": "not-ready";
2665
+ failed: "failed";
2666
+ "not-configured": "not-configured";
2667
+ "not-built": "not-built";
2668
+ building: "building";
2669
+ built: "built";
2670
+ checking: "checking";
2671
+ stale: "stale";
2672
+ }>>;
2673
+ summary: z.ZodString;
2674
+ detail: z.ZodOptional<z.ZodString>;
2675
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2676
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1279
2677
  }, z.core.$strict>>;
2678
+ check_results: z.ZodObject<{
2679
+ configured: z.ZodNumber;
2680
+ fingerprint: z.ZodNullable<z.ZodString>;
2681
+ source_files: z.ZodNullable<z.ZodObject<{
2682
+ passed: z.ZodNumber;
2683
+ total: z.ZodNumber;
2684
+ pass_rate: z.ZodNullable<z.ZodNumber>;
2685
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2686
+ stale: z.ZodDefault<z.ZodBoolean>;
2687
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2688
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2689
+ }, z.core.$strict>>;
2690
+ context_graph: z.ZodNullable<z.ZodObject<{
2691
+ passed: z.ZodNumber;
2692
+ total: z.ZodNumber;
2693
+ pass_rate: z.ZodNullable<z.ZodNumber>;
2694
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2695
+ stale: z.ZodDefault<z.ZodBoolean>;
2696
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2697
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2698
+ }, z.core.$strict>>;
2699
+ }, z.core.$strict>;
2700
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2701
+ gate: z.ZodEnum<{
2702
+ "context-graph": "context-graph";
2703
+ "project-config": "project-config";
2704
+ "build-run": "build-run";
2705
+ "artifact-diagnostics": "artifact-diagnostics";
2706
+ "context-checks": "context-checks";
2707
+ benchmarks: "benchmarks";
2708
+ "benchmarks-current": "benchmarks-current";
2709
+ }>;
2710
+ ok: z.ZodBoolean;
2711
+ status: z.ZodOptional<z.ZodEnum<{
2712
+ ready: "ready";
2713
+ "not-ready": "not-ready";
2714
+ failed: "failed";
2715
+ "not-configured": "not-configured";
2716
+ "not-built": "not-built";
2717
+ building: "building";
2718
+ built: "built";
2719
+ checking: "checking";
2720
+ stale: "stale";
2721
+ }>>;
2722
+ summary: z.ZodString;
2723
+ detail: z.ZodOptional<z.ZodString>;
2724
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2725
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2726
+ }, z.core.$strict>>>;
1280
2727
  }, z.core.$strict>;
1281
2728
  readonly success_status: 200;
1282
2729
  }, {
@@ -1359,6 +2806,7 @@ export declare const SERVICE_OPERATIONS: readonly [{
1359
2806
  page_count: z.ZodOptional<z.ZodNumber>;
1360
2807
  inspectable_units: z.ZodDefault<z.ZodArray<z.ZodObject<{
1361
2808
  kind: z.ZodEnum<{
2809
+ file: "file";
1362
2810
  page: "page";
1363
2811
  slide: "slide";
1364
2812
  sheet: "sheet";
@@ -1387,13 +2835,86 @@ export declare const SERVICE_OPERATIONS: readonly [{
1387
2835
  }, z.core.$strict>;
1388
2836
  }, z.core.$strict>;
1389
2837
  readonly success_status: 200;
2838
+ }, {
2839
+ readonly id: "getContextGraphEntrypoint";
2840
+ readonly method: "GET";
2841
+ readonly path: "/v1/projects/{project_id}/context-graph/entrypoint";
2842
+ readonly tags: ["Context Graphs"];
2843
+ readonly summary: "Get Context Graph entrypoint";
2844
+ readonly description: "Return the primary downstream entrypoint for the latest Context Graph. Agents should start from home.md.";
2845
+ readonly visibility: "app";
2846
+ readonly parameters: [ServiceOperationParameter];
2847
+ readonly response_schema: z.ZodObject<{
2848
+ kind: z.ZodLiteral<"interf-context-graph-handoff">;
2849
+ version: z.ZodLiteral<1>;
2850
+ entrypoint: z.ZodObject<{
2851
+ artifact_id: z.ZodOptional<z.ZodString>;
2852
+ label: z.ZodString;
2853
+ locator: z.ZodObject<{
2854
+ kind: z.ZodEnum<{
2855
+ "local-path": "local-path";
2856
+ "remote-url": "remote-url";
2857
+ "api-served": "api-served";
2858
+ }>;
2859
+ value: z.ZodString;
2860
+ }, z.core.$strict>;
2861
+ path: z.ZodOptional<z.ZodString>;
2862
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
2863
+ file: "file";
2864
+ directory: "directory";
2865
+ }>>;
2866
+ role: z.ZodDefault<z.ZodEnum<{
2867
+ entrypoint: "entrypoint";
2868
+ artifact: "artifact";
2869
+ guidance: "guidance";
2870
+ "source-index": "source-index";
2871
+ }>>;
2872
+ summary: z.ZodOptional<z.ZodString>;
2873
+ }, z.core.$strict>;
2874
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2875
+ artifact_id: z.ZodOptional<z.ZodString>;
2876
+ label: z.ZodString;
2877
+ locator: z.ZodObject<{
2878
+ kind: z.ZodEnum<{
2879
+ "local-path": "local-path";
2880
+ "remote-url": "remote-url";
2881
+ "api-served": "api-served";
2882
+ }>;
2883
+ value: z.ZodString;
2884
+ }, z.core.$strict>;
2885
+ path: z.ZodOptional<z.ZodString>;
2886
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
2887
+ file: "file";
2888
+ directory: "directory";
2889
+ }>>;
2890
+ role: z.ZodDefault<z.ZodEnum<{
2891
+ entrypoint: "entrypoint";
2892
+ artifact: "artifact";
2893
+ guidance: "guidance";
2894
+ "source-index": "source-index";
2895
+ }>>;
2896
+ summary: z.ZodOptional<z.ZodString>;
2897
+ }, z.core.$strict>>>;
2898
+ portable: z.ZodOptional<z.ZodObject<{
2899
+ locator: z.ZodObject<{
2900
+ kind: z.ZodEnum<{
2901
+ "local-path": "local-path";
2902
+ "remote-url": "remote-url";
2903
+ "api-served": "api-served";
2904
+ }>;
2905
+ value: z.ZodString;
2906
+ }, z.core.$strict>;
2907
+ instructions: z.ZodOptional<z.ZodString>;
2908
+ }, z.core.$strict>>;
2909
+ }, z.core.$strict>;
2910
+ readonly success_status: 200;
1390
2911
  }, {
1391
2912
  readonly id: "readContextGraphFile";
1392
2913
  readonly method: "GET";
1393
2914
  readonly path: "/v1/projects/{project_id}/context-graph/file";
1394
2915
  readonly tags: ["Context Graphs"];
1395
2916
  readonly summary: "Read Context Graph file";
1396
- readonly description: "Read one file from the latest Context Graph by relative path. Start with artifacts/ task handoffs; use summaries/ for coverage proof and knowledge/ for drilldown.";
2917
+ readonly description: "Read one file from the latest Context Graph by relative path. Start with home.md; use knowledge/ for task-specific notes and summaries/ for source-backed coverage.";
1397
2918
  readonly visibility: "app";
1398
2919
  readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
1399
2920
  readonly response_schema: z.ZodString;
@@ -1437,8 +2958,8 @@ export declare const SERVICE_OPERATIONS: readonly [{
1437
2958
  readonly method: "GET";
1438
2959
  readonly path: "/v1/projects/{project_id}/context-graph/evidence";
1439
2960
  readonly tags: ["Context Graphs"];
1440
- readonly summary: "Get Build evidence";
1441
- readonly description: "Read checks, Artifact diagnostics, and readiness evidence for the latest Context Graph.";
2961
+ readonly summary: "Get graph diagnostics";
2962
+ readonly description: "Read supplemental diagnostic rows for the latest Context Graph. GraphManifest primary metrics are the authoritative coverage summary.";
1442
2963
  readonly visibility: "app";
1443
2964
  readonly parameters: [ServiceOperationParameter];
1444
2965
  readonly response_schema: z.ZodObject<{
@@ -1485,6 +3006,6 @@ export declare const SERVICE_OPERATIONS: readonly [{
1485
3006
  readonly success_status: 200;
1486
3007
  }];
1487
3008
  export type ServiceOperationId = typeof SERVICE_OPERATIONS[number]["id"];
1488
- export declare const APP_PROFILE_OPERATION_IDS: ("createProject" | "getProject" | "prepareBuildPlan" | "runBuild" | "getRunStatus" | "getRunArtifacts" | "readRunFile" | "getLatestContextGraph" | "listSourceFiles" | "getSourceManifest" | "readContextGraphFile" | "getContextGraphTraces" | "getBuildEvidence")[];
3009
+ export declare const APP_PROFILE_OPERATION_IDS: ("createProject" | "listProjects" | "getProject" | "prepareBuildPlan" | "runBuild" | "getRunStatus" | "getRunArtifacts" | "getRunEvents" | "readRunFile" | "getLatestContextGraph" | "listContextGraphStages" | "listContextGraphResources" | "listContextGraphSessions" | "getContextGraphResource" | "getContextGraphSession" | "getProjectReadiness" | "listSourceFiles" | "getSourceManifest" | "getContextGraphEntrypoint" | "readContextGraphFile" | "getContextGraphTraces" | "getBuildEvidence")[];
1489
3010
  export declare function serviceOperationById(id: string): ServiceOperation | undefined;
1490
3011
  export { EmptyObjectSchema };