@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
@@ -4,9 +4,19 @@ export declare const ProjectIdPattern: RegExp;
4
4
  export declare const ProjectIdSchema: z.ZodString;
5
5
  export declare const BuildPlanIdSchema: z.ZodString;
6
6
  /**
7
- * Build Plan-declared artifact identifier. Same shape as `BuildPlanIdSchema`
8
- * but conceptually distinct — it identifies a produced thing inside
9
- * one Build Plan, while `BuildPlanIdSchema` identifies the Build Plan itself.
7
+ * The user's agent task for a Project.
8
+ *
9
+ * Project intent is the compact, durable instruction that explains what
10
+ * the Context Graph must prepare the Source for. Build Plans operationalize
11
+ * this field, but Project owns it.
12
+ */
13
+ export declare const ProjectIntentSchema: z.ZodString;
14
+ /**
15
+ * Legacy internal output identifier. Same shape as `BuildPlanIdSchema` but
16
+ * conceptually distinct: it identifies a requested output inside one Build
17
+ * Plan, while `BuildPlanIdSchema` identifies the Build Plan itself.
18
+ *
19
+ * The exported name remains `ArtifactIdSchema` until the ABI rename lands.
10
20
  */
11
21
  export declare const ArtifactIdSchema: z.ZodString;
12
22
  export declare const RuntimeStageSchema: z.ZodString;
@@ -45,6 +55,12 @@ export type Locator = z.infer<typeof LocatorSchema>;
45
55
  export declare const SourceKindSchema: z.ZodEnum<{
46
56
  "local-folder": "local-folder";
47
57
  }>;
58
+ export declare const SourceBindingSchema: z.ZodObject<{
59
+ kind: z.ZodEnum<{
60
+ "local-folder": "local-folder";
61
+ }>;
62
+ locator: z.ZodString;
63
+ }, z.core.$strict>;
48
64
  export declare const SourceSchema: z.ZodObject<{
49
65
  id: z.ZodString;
50
66
  kind: z.ZodEnum<{
@@ -100,6 +116,7 @@ export declare const SourceStateSchema: z.ZodObject<{
100
116
  }, z.core.$strict>;
101
117
  export declare const SourceInspectableUnitSchema: z.ZodObject<{
102
118
  kind: z.ZodEnum<{
119
+ file: "file";
103
120
  page: "page";
104
121
  slide: "slide";
105
122
  sheet: "sheet";
@@ -145,6 +162,7 @@ export declare const SourceManifestFileSchema: z.ZodObject<{
145
162
  page_count: z.ZodOptional<z.ZodNumber>;
146
163
  inspectable_units: z.ZodDefault<z.ZodArray<z.ZodObject<{
147
164
  kind: z.ZodEnum<{
165
+ file: "file";
148
166
  page: "page";
149
167
  slide: "slide";
150
168
  sheet: "sheet";
@@ -212,6 +230,7 @@ export declare const SourceManifestSchema: z.ZodObject<{
212
230
  page_count: z.ZodOptional<z.ZodNumber>;
213
231
  inspectable_units: z.ZodDefault<z.ZodArray<z.ZodObject<{
214
232
  kind: z.ZodEnum<{
233
+ file: "file";
215
234
  page: "page";
216
235
  slide: "slide";
217
236
  sheet: "sheet";
@@ -273,6 +292,7 @@ export declare const StageInputSchema: z.ZodObject<{
273
292
  page_count: z.ZodOptional<z.ZodNumber>;
274
293
  inspectable_units: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
275
294
  kind: z.ZodEnum<{
295
+ file: "file";
276
296
  page: "page";
277
297
  slide: "slide";
278
298
  sheet: "sheet";
@@ -312,6 +332,7 @@ export declare const StageInputsSchema: z.ZodObject<{
312
332
  page_count: z.ZodOptional<z.ZodNumber>;
313
333
  inspectable_units: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
314
334
  kind: z.ZodEnum<{
335
+ file: "file";
315
336
  page: "page";
316
337
  slide: "slide";
317
338
  sheet: "sheet";
@@ -327,6 +348,461 @@ export declare const StageInputsSchema: z.ZodObject<{
327
348
  }, z.core.$strict>;
328
349
  export declare const SourceBuildMaxAttemptsSchema: z.ZodNumber;
329
350
  export declare const SourceBuildMaxLoopsSchema: z.ZodNumber;
351
+ export declare const ResourceRoleSchema: z.ZodEnum<{
352
+ source: "source";
353
+ summary: "summary";
354
+ other: "other";
355
+ knowledge: "knowledge";
356
+ entrypoint: "entrypoint";
357
+ diagnostic: "diagnostic";
358
+ }>;
359
+ export declare const MetricKeySchema: z.ZodString;
360
+ export declare const ResourceRefSchema: z.ZodObject<{
361
+ id: z.ZodString;
362
+ role: z.ZodEnum<{
363
+ source: "source";
364
+ summary: "summary";
365
+ other: "other";
366
+ knowledge: "knowledge";
367
+ entrypoint: "entrypoint";
368
+ diagnostic: "diagnostic";
369
+ }>;
370
+ kind: z.ZodString;
371
+ label: z.ZodString;
372
+ path: z.ZodOptional<z.ZodString>;
373
+ locator: z.ZodOptional<z.ZodString>;
374
+ stage_id: z.ZodOptional<z.ZodString>;
375
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
376
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
377
+ required: z.ZodDefault<z.ZodBoolean>;
378
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
+ }, z.core.$strict>;
380
+ export declare const MetricCountSchema: z.ZodObject<{
381
+ key: z.ZodString;
382
+ label: z.ZodString;
383
+ value: z.ZodNumber;
384
+ total: z.ZodOptional<z.ZodNumber>;
385
+ unit: z.ZodOptional<z.ZodString>;
386
+ primary: z.ZodDefault<z.ZodBoolean>;
387
+ issue_state: z.ZodOptional<z.ZodEnum<{
388
+ pass: "pass";
389
+ fail: "fail";
390
+ missing: "missing";
391
+ review: "review";
392
+ }>>;
393
+ detail: z.ZodOptional<z.ZodString>;
394
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
395
+ }, z.core.$strict>;
396
+ export declare const ReviewedInputDecisionSchema: z.ZodEnum<{
397
+ missing: "missing";
398
+ used: "used";
399
+ reviewed: "reviewed";
400
+ blocked: "blocked";
401
+ "not-relevant": "not-relevant";
402
+ }>;
403
+ export declare const ReviewedInputSchema: z.ZodObject<{
404
+ resource_id: z.ZodString;
405
+ decision: z.ZodEnum<{
406
+ missing: "missing";
407
+ used: "used";
408
+ reviewed: "reviewed";
409
+ blocked: "blocked";
410
+ "not-relevant": "not-relevant";
411
+ }>;
412
+ reason: z.ZodOptional<z.ZodString>;
413
+ output_resource_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
414
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
415
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
416
+ }, z.core.$strict>;
417
+ export declare const MissingInputSchema: z.ZodObject<{
418
+ resource_id: z.ZodString;
419
+ status: z.ZodEnum<{
420
+ missing: "missing";
421
+ blocked: "blocked";
422
+ "not-relevant": "not-relevant";
423
+ }>;
424
+ reason: z.ZodString;
425
+ }, z.core.$strict>;
426
+ /**
427
+ * Stage runtime-file contracts: the `expected-inputs.json` and
428
+ * `reviewed-inputs.json` files a stage shell reads and writes. Defined once
429
+ * here so the build engine (stage-manifest writer, native entrypoint reader)
430
+ * and any future client validate against one shape instead of a hand-rolled
431
+ * parallel `interface`.
432
+ */
433
+ export declare const ExpectedInputsFileSchema: z.ZodObject<{
434
+ kind: z.ZodLiteral<"interf-stage-expected-inputs">;
435
+ version: z.ZodLiteral<1>;
436
+ generated_at: z.ZodString;
437
+ stage_id: z.ZodString;
438
+ expected: z.ZodArray<z.ZodObject<{
439
+ id: z.ZodString;
440
+ role: z.ZodEnum<{
441
+ source: "source";
442
+ summary: "summary";
443
+ other: "other";
444
+ knowledge: "knowledge";
445
+ entrypoint: "entrypoint";
446
+ diagnostic: "diagnostic";
447
+ }>;
448
+ kind: z.ZodString;
449
+ label: z.ZodString;
450
+ path: z.ZodOptional<z.ZodString>;
451
+ locator: z.ZodOptional<z.ZodString>;
452
+ stage_id: z.ZodOptional<z.ZodString>;
453
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
454
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
455
+ required: z.ZodDefault<z.ZodBoolean>;
456
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
457
+ }, z.core.$strict>>;
458
+ }, z.core.$strict>;
459
+ export type ExpectedInputsFile = z.infer<typeof ExpectedInputsFileSchema>;
460
+ export declare const ReviewedInputsFileSchema: z.ZodObject<{
461
+ kind: z.ZodLiteral<"interf-stage-reviewed-inputs">;
462
+ version: z.ZodLiteral<1>;
463
+ generated_at: z.ZodString;
464
+ stage_id: z.ZodString;
465
+ reviewed: z.ZodArray<z.ZodObject<{
466
+ resource_id: z.ZodString;
467
+ decision: z.ZodEnum<{
468
+ missing: "missing";
469
+ used: "used";
470
+ reviewed: "reviewed";
471
+ blocked: "blocked";
472
+ "not-relevant": "not-relevant";
473
+ }>;
474
+ reason: z.ZodOptional<z.ZodString>;
475
+ output_resource_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
476
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
477
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
478
+ }, z.core.$strict>>;
479
+ }, z.core.$strict>;
480
+ export type ReviewedInputsFile = z.infer<typeof ReviewedInputsFileSchema>;
481
+ export declare const StageManifestSchema: z.ZodObject<{
482
+ kind: z.ZodLiteral<"interf-stage-manifest">;
483
+ version: z.ZodLiteral<1>;
484
+ generated_at: z.ZodString;
485
+ project: z.ZodString;
486
+ run_id: z.ZodNullable<z.ZodString>;
487
+ build_plan: z.ZodString;
488
+ stage_id: z.ZodString;
489
+ stage_label: z.ZodString;
490
+ role: z.ZodEnum<{
491
+ source: "source";
492
+ summary: "summary";
493
+ other: "other";
494
+ knowledge: "knowledge";
495
+ entrypoint: "entrypoint";
496
+ diagnostic: "diagnostic";
497
+ }>;
498
+ summary: z.ZodString;
499
+ input_manifests: z.ZodDefault<z.ZodArray<z.ZodObject<{
500
+ id: z.ZodString;
501
+ role: z.ZodEnum<{
502
+ source: "source";
503
+ summary: "summary";
504
+ other: "other";
505
+ knowledge: "knowledge";
506
+ entrypoint: "entrypoint";
507
+ diagnostic: "diagnostic";
508
+ }>;
509
+ kind: z.ZodString;
510
+ label: z.ZodString;
511
+ path: z.ZodOptional<z.ZodString>;
512
+ locator: z.ZodOptional<z.ZodString>;
513
+ stage_id: z.ZodOptional<z.ZodString>;
514
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
515
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
516
+ required: z.ZodDefault<z.ZodBoolean>;
517
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
518
+ }, z.core.$strict>>>;
519
+ expected: z.ZodDefault<z.ZodArray<z.ZodObject<{
520
+ id: z.ZodString;
521
+ role: z.ZodEnum<{
522
+ source: "source";
523
+ summary: "summary";
524
+ other: "other";
525
+ knowledge: "knowledge";
526
+ entrypoint: "entrypoint";
527
+ diagnostic: "diagnostic";
528
+ }>;
529
+ kind: z.ZodString;
530
+ label: z.ZodString;
531
+ path: z.ZodOptional<z.ZodString>;
532
+ locator: z.ZodOptional<z.ZodString>;
533
+ stage_id: z.ZodOptional<z.ZodString>;
534
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
535
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
536
+ required: z.ZodDefault<z.ZodBoolean>;
537
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
538
+ }, z.core.$strict>>>;
539
+ reviewed: z.ZodDefault<z.ZodArray<z.ZodObject<{
540
+ resource_id: z.ZodString;
541
+ decision: z.ZodEnum<{
542
+ missing: "missing";
543
+ used: "used";
544
+ reviewed: "reviewed";
545
+ blocked: "blocked";
546
+ "not-relevant": "not-relevant";
547
+ }>;
548
+ reason: z.ZodOptional<z.ZodString>;
549
+ output_resource_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
550
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
551
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
552
+ }, z.core.$strict>>>;
553
+ referenced: z.ZodDefault<z.ZodArray<z.ZodObject<{
554
+ id: z.ZodString;
555
+ role: z.ZodEnum<{
556
+ source: "source";
557
+ summary: "summary";
558
+ other: "other";
559
+ knowledge: "knowledge";
560
+ entrypoint: "entrypoint";
561
+ diagnostic: "diagnostic";
562
+ }>;
563
+ kind: z.ZodString;
564
+ label: z.ZodString;
565
+ path: z.ZodOptional<z.ZodString>;
566
+ locator: z.ZodOptional<z.ZodString>;
567
+ stage_id: z.ZodOptional<z.ZodString>;
568
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
569
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
570
+ required: z.ZodDefault<z.ZodBoolean>;
571
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
572
+ }, z.core.$strict>>>;
573
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
574
+ resource_id: z.ZodString;
575
+ status: z.ZodEnum<{
576
+ missing: "missing";
577
+ blocked: "blocked";
578
+ "not-relevant": "not-relevant";
579
+ }>;
580
+ reason: z.ZodString;
581
+ }, z.core.$strict>>>;
582
+ produced: z.ZodDefault<z.ZodArray<z.ZodObject<{
583
+ id: z.ZodString;
584
+ role: z.ZodEnum<{
585
+ source: "source";
586
+ summary: "summary";
587
+ other: "other";
588
+ knowledge: "knowledge";
589
+ entrypoint: "entrypoint";
590
+ diagnostic: "diagnostic";
591
+ }>;
592
+ kind: z.ZodString;
593
+ label: z.ZodString;
594
+ path: z.ZodOptional<z.ZodString>;
595
+ locator: z.ZodOptional<z.ZodString>;
596
+ stage_id: z.ZodOptional<z.ZodString>;
597
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
598
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
599
+ required: z.ZodDefault<z.ZodBoolean>;
600
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
601
+ }, z.core.$strict>>>;
602
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
603
+ key: z.ZodString;
604
+ label: z.ZodString;
605
+ value: z.ZodNumber;
606
+ total: z.ZodOptional<z.ZodNumber>;
607
+ unit: z.ZodOptional<z.ZodString>;
608
+ primary: z.ZodDefault<z.ZodBoolean>;
609
+ issue_state: z.ZodOptional<z.ZodEnum<{
610
+ pass: "pass";
611
+ fail: "fail";
612
+ missing: "missing";
613
+ review: "review";
614
+ }>>;
615
+ detail: z.ZodOptional<z.ZodString>;
616
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
617
+ }, z.core.$strict>>>;
618
+ }, z.core.$strict>;
619
+ export declare const GraphManifestStageSummarySchema: z.ZodObject<{
620
+ stage_id: z.ZodString;
621
+ stage_label: z.ZodString;
622
+ role: z.ZodEnum<{
623
+ source: "source";
624
+ summary: "summary";
625
+ other: "other";
626
+ knowledge: "knowledge";
627
+ entrypoint: "entrypoint";
628
+ diagnostic: "diagnostic";
629
+ }>;
630
+ manifest_path: z.ZodString;
631
+ summary: z.ZodString;
632
+ produced_total: z.ZodNumber;
633
+ missing_required_total: z.ZodNumber;
634
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
635
+ key: z.ZodString;
636
+ label: z.ZodString;
637
+ value: z.ZodNumber;
638
+ total: z.ZodOptional<z.ZodNumber>;
639
+ unit: z.ZodOptional<z.ZodString>;
640
+ primary: z.ZodDefault<z.ZodBoolean>;
641
+ issue_state: z.ZodOptional<z.ZodEnum<{
642
+ pass: "pass";
643
+ fail: "fail";
644
+ missing: "missing";
645
+ review: "review";
646
+ }>>;
647
+ detail: z.ZodOptional<z.ZodString>;
648
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
649
+ }, z.core.$strict>>>;
650
+ }, z.core.$strict>;
651
+ export declare const GraphReadinessRollupSchema: z.ZodObject<{
652
+ status: z.ZodEnum<{
653
+ ready: "ready";
654
+ "not-ready": "not-ready";
655
+ }>;
656
+ ready: z.ZodBoolean;
657
+ summary: z.ZodString;
658
+ context_graph_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
+ missing_required_total: z.ZodNumber;
660
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
661
+ resource_id: z.ZodString;
662
+ status: z.ZodEnum<{
663
+ missing: "missing";
664
+ blocked: "blocked";
665
+ "not-relevant": "not-relevant";
666
+ }>;
667
+ reason: z.ZodString;
668
+ }, z.core.$strict>>>;
669
+ }, z.core.$strict>;
670
+ export declare const GraphOutputCountsSchema: z.ZodObject<{
671
+ nodes: z.ZodNumber;
672
+ edges: z.ZodNumber;
673
+ notes: z.ZodNumber;
674
+ links: z.ZodNumber;
675
+ source_refs: z.ZodNumber;
676
+ claims: z.ZodOptional<z.ZodNumber>;
677
+ entities: z.ZodOptional<z.ZodNumber>;
678
+ }, z.core.$strict>;
679
+ export declare const GraphManifestSchema: z.ZodObject<{
680
+ kind: z.ZodLiteral<"interf-graph-manifest">;
681
+ version: z.ZodLiteral<1>;
682
+ generated_at: z.ZodString;
683
+ project: z.ZodString;
684
+ graph_id: z.ZodString;
685
+ run_id: z.ZodNullable<z.ZodString>;
686
+ build_plan: z.ZodString;
687
+ intent: z.ZodNullable<z.ZodString>;
688
+ graph_path: z.ZodString;
689
+ primary_metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
690
+ key: z.ZodString;
691
+ label: z.ZodString;
692
+ value: z.ZodNumber;
693
+ total: z.ZodOptional<z.ZodNumber>;
694
+ unit: z.ZodOptional<z.ZodString>;
695
+ primary: z.ZodDefault<z.ZodBoolean>;
696
+ issue_state: z.ZodOptional<z.ZodEnum<{
697
+ pass: "pass";
698
+ fail: "fail";
699
+ missing: "missing";
700
+ review: "review";
701
+ }>>;
702
+ detail: z.ZodOptional<z.ZodString>;
703
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
704
+ }, z.core.$strict>>>;
705
+ stages: z.ZodDefault<z.ZodArray<z.ZodObject<{
706
+ stage_id: z.ZodString;
707
+ stage_label: z.ZodString;
708
+ role: z.ZodEnum<{
709
+ source: "source";
710
+ summary: "summary";
711
+ other: "other";
712
+ knowledge: "knowledge";
713
+ entrypoint: "entrypoint";
714
+ diagnostic: "diagnostic";
715
+ }>;
716
+ manifest_path: z.ZodString;
717
+ summary: z.ZodString;
718
+ produced_total: z.ZodNumber;
719
+ missing_required_total: z.ZodNumber;
720
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
721
+ key: z.ZodString;
722
+ label: z.ZodString;
723
+ value: z.ZodNumber;
724
+ total: z.ZodOptional<z.ZodNumber>;
725
+ unit: z.ZodOptional<z.ZodString>;
726
+ primary: z.ZodDefault<z.ZodBoolean>;
727
+ issue_state: z.ZodOptional<z.ZodEnum<{
728
+ pass: "pass";
729
+ fail: "fail";
730
+ missing: "missing";
731
+ review: "review";
732
+ }>>;
733
+ detail: z.ZodOptional<z.ZodString>;
734
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
735
+ }, z.core.$strict>>>;
736
+ }, z.core.$strict>>>;
737
+ entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
738
+ id: z.ZodString;
739
+ role: z.ZodEnum<{
740
+ source: "source";
741
+ summary: "summary";
742
+ other: "other";
743
+ knowledge: "knowledge";
744
+ entrypoint: "entrypoint";
745
+ diagnostic: "diagnostic";
746
+ }>;
747
+ kind: z.ZodString;
748
+ label: z.ZodString;
749
+ path: z.ZodOptional<z.ZodString>;
750
+ locator: z.ZodOptional<z.ZodString>;
751
+ stage_id: z.ZodOptional<z.ZodString>;
752
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
753
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
754
+ required: z.ZodDefault<z.ZodBoolean>;
755
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
756
+ }, z.core.$strict>>>;
757
+ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
758
+ id: z.ZodString;
759
+ role: z.ZodEnum<{
760
+ source: "source";
761
+ summary: "summary";
762
+ other: "other";
763
+ knowledge: "knowledge";
764
+ entrypoint: "entrypoint";
765
+ diagnostic: "diagnostic";
766
+ }>;
767
+ kind: z.ZodString;
768
+ label: z.ZodString;
769
+ path: z.ZodOptional<z.ZodString>;
770
+ locator: z.ZodOptional<z.ZodString>;
771
+ stage_id: z.ZodOptional<z.ZodString>;
772
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
773
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
774
+ required: z.ZodDefault<z.ZodBoolean>;
775
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
776
+ }, z.core.$strict>>>;
777
+ graph_outputs: z.ZodObject<{
778
+ nodes: z.ZodNumber;
779
+ edges: z.ZodNumber;
780
+ notes: z.ZodNumber;
781
+ links: z.ZodNumber;
782
+ source_refs: z.ZodNumber;
783
+ claims: z.ZodOptional<z.ZodNumber>;
784
+ entities: z.ZodOptional<z.ZodNumber>;
785
+ }, z.core.$strict>;
786
+ readiness: z.ZodObject<{
787
+ status: z.ZodEnum<{
788
+ ready: "ready";
789
+ "not-ready": "not-ready";
790
+ }>;
791
+ ready: z.ZodBoolean;
792
+ summary: z.ZodString;
793
+ context_graph_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
794
+ missing_required_total: z.ZodNumber;
795
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
796
+ resource_id: z.ZodString;
797
+ status: z.ZodEnum<{
798
+ missing: "missing";
799
+ blocked: "blocked";
800
+ "not-relevant": "not-relevant";
801
+ }>;
802
+ reason: z.ZodString;
803
+ }, z.core.$strict>>>;
804
+ }, z.core.$strict>;
805
+ }, z.core.$strict>;
330
806
  /**
331
807
  * Canonical check kinds the engine knows how to evaluate.
332
808
  *
@@ -344,12 +820,15 @@ export declare const SourceBuildMaxLoopsSchema: z.ZodNumber;
344
820
  * frontmatter_required_keys — every markdown file has these frontmatter keys (params: { keys: string[] })
345
821
  * frontmatter_nonempty_keys — every markdown file has non-empty values for these frontmatter keys
346
822
  * source_refs_required — every markdown file has non-empty source_refs/source_ref/source_path frontmatter
823
+ * summary_backlinks_present — every summary cited by a note's source_refs is also wikilinked from that layer (no orphaned summaries)
824
+ * knowledge_web_connectivity — every knowledge note links at least one OTHER knowledge note (no disconnected islands in the knowledge web)
825
+ * graph_notes_connected — every markdown note across the WHOLE Context Graph (summaries, knowledge, artifacts, home) is link-connected to at least one other note (no free-floating island anywhere, including uncited summaries)
347
826
  * wikilinks_valid — every wikilink resolves
348
827
  * must_not_contain — file/directory does not contain forbidden phrases (params: { phrases: string[] } or { text: string })
349
828
  * must_contain — file/directory contains required phrases (params: { phrases: string[] } or { text: string })
350
829
  * qa_match — user-defined Q/A: agent answer matches expected (params: { expected: string, strictness?: "loose" | "strict" })
351
830
  */
352
- export declare const CHECK_KINDS: readonly ["file_exists", "source_manifest_valid", "min_file_count", "min_file_count_matches_source", "source_summary_folders", "source_page_coverage", "frontmatter_valid", "frontmatter_required_keys", "frontmatter_nonempty_keys", "source_refs_required", "wikilinks_valid", "must_not_contain", "must_contain", "qa_match"];
831
+ export declare const CHECK_KINDS: readonly ["file_exists", "source_manifest_valid", "min_file_count", "min_file_count_matches_source", "source_summary_folders", "source_page_coverage", "frontmatter_valid", "frontmatter_required_keys", "frontmatter_nonempty_keys", "source_refs_required", "summary_backlinks_present", "knowledge_web_connectivity", "graph_notes_connected", "wikilinks_valid", "must_not_contain", "must_contain", "qa_match"];
353
832
  export declare const CheckKindSchema: z.ZodEnum<{
354
833
  file_exists: "file_exists";
355
834
  source_manifest_valid: "source_manifest_valid";
@@ -361,6 +840,9 @@ export declare const CheckKindSchema: z.ZodEnum<{
361
840
  frontmatter_required_keys: "frontmatter_required_keys";
362
841
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
363
842
  source_refs_required: "source_refs_required";
843
+ summary_backlinks_present: "summary_backlinks_present";
844
+ knowledge_web_connectivity: "knowledge_web_connectivity";
845
+ graph_notes_connected: "graph_notes_connected";
364
846
  wikilinks_valid: "wikilinks_valid";
365
847
  must_not_contain: "must_not_contain";
366
848
  must_contain: "must_contain";
@@ -441,6 +923,32 @@ export declare const CHECK_PARAM_CONTRACTS: {
441
923
  readonly keys: readonly ["source_refs"];
442
924
  }];
443
925
  };
926
+ readonly summary_backlinks_present: {
927
+ readonly params: {
928
+ readonly summaries_dir: "optional summaries directory name; defaults to summaries";
929
+ readonly summary_file: "optional summary filename; defaults to summary.md";
930
+ readonly manifest_file: "optional manifest filename; defaults to manifest.md";
931
+ };
932
+ readonly examples: readonly [{}, {
933
+ readonly summaries_dir: "summaries";
934
+ }];
935
+ };
936
+ readonly knowledge_web_connectivity: {
937
+ readonly params: {
938
+ readonly knowledge_dir: "optional knowledge directory; defaults to the artifact's own target path. May only narrow the scan to a path inside that target layer.";
939
+ };
940
+ readonly examples: readonly [{}, {
941
+ readonly knowledge_dir: "knowledge";
942
+ }];
943
+ };
944
+ readonly graph_notes_connected: {
945
+ readonly params: {
946
+ readonly graph_root: "optional graph-root-relative directory to scan; defaults to the Context Graph root (every note in every layer). Use to narrow the floor to one layer (e.g. summaries) when a Build Plan splits the connectivity floor across outputs.";
947
+ };
948
+ readonly examples: readonly [{}, {
949
+ readonly graph_root: "summaries";
950
+ }];
951
+ };
444
952
  readonly wikilinks_valid: {
445
953
  readonly params: {};
446
954
  readonly examples: readonly [{}];
@@ -503,6 +1011,9 @@ export declare const CheckSchema: z.ZodObject<{
503
1011
  frontmatter_required_keys: "frontmatter_required_keys";
504
1012
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
505
1013
  source_refs_required: "source_refs_required";
1014
+ summary_backlinks_present: "summary_backlinks_present";
1015
+ knowledge_web_connectivity: "knowledge_web_connectivity";
1016
+ graph_notes_connected: "graph_notes_connected";
506
1017
  wikilinks_valid: "wikilinks_valid";
507
1018
  must_not_contain: "must_not_contain";
508
1019
  must_contain: "must_contain";
@@ -531,6 +1042,9 @@ export declare const CheckResultSchema: z.ZodObject<{
531
1042
  frontmatter_required_keys: "frontmatter_required_keys";
532
1043
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
533
1044
  source_refs_required: "source_refs_required";
1045
+ summary_backlinks_present: "summary_backlinks_present";
1046
+ knowledge_web_connectivity: "knowledge_web_connectivity";
1047
+ graph_notes_connected: "graph_notes_connected";
534
1048
  wikilinks_valid: "wikilinks_valid";
535
1049
  must_not_contain: "must_not_contain";
536
1050
  must_contain: "must_contain";
@@ -552,10 +1066,10 @@ export declare const ContextCheckStatusSchema: z.ZodEnum<{
552
1066
  }>;
553
1067
  export type ContextCheckStatus = z.infer<typeof ContextCheckStatusSchema>;
554
1068
  /**
555
- * User-facing Build Plan check: the plain-English assertion the user
556
- * reviews as a Context Check. Requested Artifacts back these checks.
557
- * Deterministic Artifact diagnostics remain nested under Artifacts
558
- * and use `CheckSchema`.
1069
+ * Legacy Build Plan check declaration. Current product surfaces should prefer
1070
+ * concrete coverage metrics, Stage Manifests, and Graph Manifest readiness.
1071
+ * Deterministic output diagnostics remain nested under requested outputs and
1072
+ * use `CheckSchema`.
559
1073
  */
560
1074
  export declare const ContextCheckDeclarationSchema: z.ZodObject<{
561
1075
  id: z.ZodString;
@@ -607,9 +1121,9 @@ export type ContextCheck = z.infer<typeof ContextCheckSchema>;
607
1121
  * Project. Aggregate verdict over its required checks.
608
1122
  */
609
1123
  export declare const ReadyVerdictSchema: z.ZodEnum<{
1124
+ ready: "ready";
610
1125
  failed: "failed";
611
1126
  skipped: "skipped";
612
- ready: "ready";
613
1127
  not_ready: "not_ready";
614
1128
  }>;
615
1129
  export type ReadyVerdict = z.infer<typeof ReadyVerdictSchema>;
@@ -647,7 +1161,7 @@ export declare const ArtifactShapeSchema: z.ZodObject<{
647
1161
  export type ArtifactPathShape = z.infer<typeof ArtifactPathShapeSchema>;
648
1162
  export type ArtifactShape = ArtifactPathShape;
649
1163
  /**
650
- * Build Plan-declared Artifact — a produced thing.
1164
+ * Legacy internal requested-output schema.
651
1165
  *
652
1166
  * `checks[]` is the locked vocabulary: an array of `Check` (with
653
1167
  * `kind` from `CHECK_KINDS`). The runtime evaluates them via the
@@ -677,6 +1191,9 @@ export declare const ArtifactSchema: z.ZodObject<{
677
1191
  frontmatter_required_keys: "frontmatter_required_keys";
678
1192
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
679
1193
  source_refs_required: "source_refs_required";
1194
+ summary_backlinks_present: "summary_backlinks_present";
1195
+ knowledge_web_connectivity: "knowledge_web_connectivity";
1196
+ graph_notes_connected: "graph_notes_connected";
680
1197
  wikilinks_valid: "wikilinks_valid";
681
1198
  must_not_contain: "must_not_contain";
682
1199
  must_contain: "must_contain";
@@ -695,18 +1212,18 @@ export type Artifact = z.infer<typeof ArtifactSchema>;
695
1212
  * emitted by the shared check evaluator.
696
1213
  */
697
1214
  export declare const ArtifactStatusValueSchema: z.ZodEnum<{
1215
+ ready: "ready";
698
1216
  failed: "failed";
699
1217
  skipped: "skipped";
700
- ready: "ready";
701
1218
  not_ready: "not_ready";
702
1219
  }>;
703
1220
  export type ArtifactStatusValue = ReadyVerdict;
704
1221
  export declare const ArtifactStatusSchema: z.ZodObject<{
705
1222
  artifact_id: z.ZodString;
706
1223
  status: z.ZodEnum<{
1224
+ ready: "ready";
707
1225
  failed: "failed";
708
1226
  skipped: "skipped";
709
- ready: "ready";
710
1227
  not_ready: "not_ready";
711
1228
  }>;
712
1229
  built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -723,6 +1240,9 @@ export declare const ArtifactStatusSchema: z.ZodObject<{
723
1240
  frontmatter_required_keys: "frontmatter_required_keys";
724
1241
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
725
1242
  source_refs_required: "source_refs_required";
1243
+ summary_backlinks_present: "summary_backlinks_present";
1244
+ knowledge_web_connectivity: "knowledge_web_connectivity";
1245
+ graph_notes_connected: "graph_notes_connected";
726
1246
  wikilinks_valid: "wikilinks_valid";
727
1247
  must_not_contain: "must_not_contain";
728
1248
  must_contain: "must_contain";
@@ -944,14 +1464,14 @@ export declare const StageEvidenceSchema: z.ZodObject<{
944
1464
  }, z.core.$strict>;
945
1465
  export type StageEvidence = z.infer<typeof StageEvidenceSchema>;
946
1466
  export declare const ReadinessStatusSchema: z.ZodEnum<{
947
- failed: "failed";
948
1467
  ready: "ready";
1468
+ "not-ready": "not-ready";
1469
+ failed: "failed";
949
1470
  "not-configured": "not-configured";
950
1471
  "not-built": "not-built";
951
1472
  building: "building";
952
1473
  built: "built";
953
1474
  checking: "checking";
954
- "not-ready": "not-ready";
955
1475
  stale: "stale";
956
1476
  }>;
957
1477
  export declare const ReadinessGateSchema: z.ZodEnum<{
@@ -967,7 +1487,7 @@ export declare const ReadinessGateSchema: z.ZodEnum<{
967
1487
  * Per-gate status — one row in the readiness summary. A gate is a
968
1488
  * high-level layer (is config valid? is the Context Graph built? did
969
1489
  * the latest Build succeed?). Gate failures are aggregated alongside
970
- * Artifact diagnostic failures into the overall `Readiness` verdict.
1490
+ * output diagnostic failures into the overall `Readiness` verdict.
971
1491
  */
972
1492
  export declare const GateStatusSchema: z.ZodObject<{
973
1493
  gate: z.ZodEnum<{
@@ -981,14 +1501,14 @@ export declare const GateStatusSchema: z.ZodObject<{
981
1501
  }>;
982
1502
  ok: z.ZodBoolean;
983
1503
  status: z.ZodOptional<z.ZodEnum<{
984
- failed: "failed";
985
1504
  ready: "ready";
1505
+ "not-ready": "not-ready";
1506
+ failed: "failed";
986
1507
  "not-configured": "not-configured";
987
1508
  "not-built": "not-built";
988
1509
  building: "building";
989
1510
  built: "built";
990
1511
  checking: "checking";
991
- "not-ready": "not-ready";
992
1512
  stale: "stale";
993
1513
  }>>;
994
1514
  summary: z.ZodString;
@@ -1014,14 +1534,14 @@ export declare const ReadinessSchema: z.ZodObject<{
1014
1534
  generated_at: z.ZodString;
1015
1535
  project: z.ZodString;
1016
1536
  status: z.ZodEnum<{
1017
- failed: "failed";
1018
1537
  ready: "ready";
1538
+ "not-ready": "not-ready";
1539
+ failed: "failed";
1019
1540
  "not-configured": "not-configured";
1020
1541
  "not-built": "not-built";
1021
1542
  building: "building";
1022
1543
  built: "built";
1023
1544
  checking: "checking";
1024
- "not-ready": "not-ready";
1025
1545
  stale: "stale";
1026
1546
  }>;
1027
1547
  ready: z.ZodBoolean;
@@ -1041,14 +1561,14 @@ export declare const ReadinessSchema: z.ZodObject<{
1041
1561
  }>;
1042
1562
  ok: z.ZodBoolean;
1043
1563
  status: z.ZodOptional<z.ZodEnum<{
1044
- failed: "failed";
1045
1564
  ready: "ready";
1565
+ "not-ready": "not-ready";
1566
+ failed: "failed";
1046
1567
  "not-configured": "not-configured";
1047
1568
  "not-built": "not-built";
1048
1569
  building: "building";
1049
1570
  built: "built";
1050
1571
  checking: "checking";
1051
- "not-ready": "not-ready";
1052
1572
  stale: "stale";
1053
1573
  }>>;
1054
1574
  summary: z.ZodString;
@@ -1090,14 +1610,14 @@ export declare const ReadinessSchema: z.ZodObject<{
1090
1610
  }>;
1091
1611
  ok: z.ZodBoolean;
1092
1612
  status: z.ZodOptional<z.ZodEnum<{
1093
- failed: "failed";
1094
1613
  ready: "ready";
1614
+ "not-ready": "not-ready";
1615
+ failed: "failed";
1095
1616
  "not-configured": "not-configured";
1096
1617
  "not-built": "not-built";
1097
1618
  building: "building";
1098
1619
  built: "built";
1099
1620
  checking: "checking";
1100
- "not-ready": "not-ready";
1101
1621
  stale: "stale";
1102
1622
  }>>;
1103
1623
  summary: z.ZodString;
@@ -1205,12 +1725,14 @@ export declare const AgentsRegistrySchema: z.ZodObject<{
1205
1725
  export type AgentsRegistry = z.infer<typeof AgentsRegistrySchema>;
1206
1726
  export type ProjectId = z.infer<typeof ProjectIdSchema>;
1207
1727
  export type BuildPlanId = z.infer<typeof BuildPlanIdSchema>;
1728
+ export type ProjectIntent = z.infer<typeof ProjectIntentSchema>;
1208
1729
  export type ArtifactId = z.infer<typeof ArtifactIdSchema>;
1209
1730
  export type RuntimeStage = z.infer<typeof RuntimeStageSchema>;
1210
1731
  export type RuntimeContractType = z.infer<typeof RuntimeContractTypeSchema>;
1211
1732
  export type RuntimeTargetType = z.infer<typeof RuntimeTargetTypeSchema>;
1212
1733
  export type TestTargetType = z.infer<typeof TestTargetTypeSchema>;
1213
1734
  export type SourceKind = z.infer<typeof SourceKindSchema>;
1735
+ export type SourceBinding = z.infer<typeof SourceBindingSchema>;
1214
1736
  export type Source = z.infer<typeof SourceSchema>;
1215
1737
  export type SourceFile = z.infer<typeof SourceFileSchema>;
1216
1738
  export type SourceFiles = z.infer<typeof SourceFilesSchema>;
@@ -1224,6 +1746,17 @@ export type SourceManifest = z.infer<typeof SourceManifestSchema>;
1224
1746
  export type SourceManifestAudit = z.infer<typeof SourceManifestAuditSchema>;
1225
1747
  export type StageInput = z.infer<typeof StageInputSchema>;
1226
1748
  export type StageInputs = z.infer<typeof StageInputsSchema>;
1749
+ export type ResourceRole = z.infer<typeof ResourceRoleSchema>;
1750
+ export type ResourceRef = z.infer<typeof ResourceRefSchema>;
1751
+ export type MetricCount = z.infer<typeof MetricCountSchema>;
1752
+ export type ReviewedInputDecision = z.infer<typeof ReviewedInputDecisionSchema>;
1753
+ export type ReviewedInput = z.infer<typeof ReviewedInputSchema>;
1754
+ export type MissingInput = z.infer<typeof MissingInputSchema>;
1755
+ export type StageManifest = z.infer<typeof StageManifestSchema>;
1756
+ export type GraphManifestStageSummary = z.infer<typeof GraphManifestStageSummarySchema>;
1757
+ export type GraphReadinessRollup = z.infer<typeof GraphReadinessRollupSchema>;
1758
+ export type GraphOutputCounts = z.infer<typeof GraphOutputCountsSchema>;
1759
+ export type GraphManifest = z.infer<typeof GraphManifestSchema>;
1227
1760
  export type ReadinessStatus = z.infer<typeof ReadinessStatusSchema>;
1228
1761
  export type ReadinessGate = z.infer<typeof ReadinessGateSchema>;
1229
1762
  export type GateStatus = z.infer<typeof GateStatusSchema>;