@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
@@ -1,9 +1,10 @@
1
1
  import { type ArtifactRef, type BuildRun, type InterfRunEvent, type EvidenceRecord } from "./execution/lib/schema.js";
2
2
  import { type RunEventSink } from "./execution/events.js";
3
- import { RunListingCache, ReadinessCache, MtimeListingCache, BuildPlanListingCache } from "./runtime-caches.js";
3
+ import { RunListingCache, ReadinessCache, MtimeListingCache, BuildPlanListingCache, ContextGraphResourceCache } from "./runtime-caches.js";
4
4
  import { type Readiness } from "../contracts/lib/schema.js";
5
+ import type { ContextGraphHandoff } from "../contracts/lib/project-schema.js";
5
6
  import type { ProjectConfig } from "../projects/lib/schema.js";
6
- import type { ActionProposalCreateRequest, ActionProposalPlan, ActionProposalResource, BuildPlanAuthoringRuntimeRequest, BuildPlanAuthoringResult, BuildPlanChangeResult, BuildPlanResource, BuildRunCreateRequest, BuildRunResource, LocalExecutorStatus, LocalJobEvent, LocalJobEventAppendRequest, LocalJobRunResource, LocalRunHandlerResult, LocalServiceHealth, ProjectResource, BenchmarkQuestionDraftRuntimeRequest, BenchmarkQuestionDraftResult, ResetResult, RunObservabilityResource, SourceFileResource, ContextGraphResource, VerifyRunCreateRequest, VerifyRunResource } from "./schemas/index.js";
7
+ import type { ActionProposalCreateRequest, ActionProposalPlan, ActionProposalResource, BuildPlanAuthoringRuntimeRequest, BuildPlanAuthoringResult, BuildPlanChangeResult, BuildPlanResource, BuildRunCreateRequest, BuildRunResource, LocalExecutorStatus, LocalJobEvent, LocalJobEventAppendRequest, LocalJobRunResource, LocalRunHandlerResult, LocalServiceHealth, ProjectResource, BenchmarkQuestionDraftRuntimeRequest, BenchmarkQuestionDraftResult, ResetResult, RunObservabilityResource, SourceFileResource, ContextGraphResource, StageExecutionSession, VerifyRunCreateRequest, VerifyRunResource } from "./schemas/index.js";
7
8
  import { type AgentsRegistryRoleState, type AgentsRegistryState } from "./runtime-executor.js";
8
9
  import type { AgentPrefs, AgentRecord, RoleMap } from "../contracts/lib/schema.js";
9
10
  export interface LocalServiceBuildRunContext {
@@ -388,7 +389,7 @@ export declare class LocalServiceRuntime {
388
389
  version: 1;
389
390
  generated_at: string;
390
391
  project: string;
391
- status: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale";
392
+ status: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale";
392
393
  ready: boolean;
393
394
  summary: string;
394
395
  context_graph_path: string | null;
@@ -396,7 +397,7 @@ export declare class LocalServiceRuntime {
396
397
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
397
398
  ok: boolean;
398
399
  summary: string;
399
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
400
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
400
401
  detail?: string | undefined;
401
402
  run_id?: string | null | undefined;
402
403
  artifact_path?: string | null | undefined;
@@ -427,7 +428,7 @@ export declare class LocalServiceRuntime {
427
428
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
428
429
  ok: boolean;
429
430
  summary: string;
430
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
431
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
431
432
  detail?: string | undefined;
432
433
  run_id?: string | null | undefined;
433
434
  artifact_path?: string | null | undefined;
@@ -449,11 +450,11 @@ export declare class LocalServiceRuntime {
449
450
  }[];
450
451
  artifacts: {
451
452
  artifact_id: string;
452
- status: "failed" | "skipped" | "ready" | "not_ready";
453
+ status: "ready" | "failed" | "skipped" | "not_ready";
453
454
  built_by_stages: string[];
454
455
  check_results: {
455
456
  check_id: string;
456
- kind: "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";
457
+ kind: "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";
457
458
  passed: boolean;
458
459
  required: boolean;
459
460
  summary: string;
@@ -490,7 +491,7 @@ export declare class LocalServiceRuntime {
490
491
  version: 1;
491
492
  generated_at: string;
492
493
  project: string;
493
- status: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale";
494
+ status: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale";
494
495
  ready: boolean;
495
496
  summary: string;
496
497
  context_graph_path: string | null;
@@ -498,7 +499,7 @@ export declare class LocalServiceRuntime {
498
499
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
499
500
  ok: boolean;
500
501
  summary: string;
501
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
502
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
502
503
  detail?: string | undefined;
503
504
  run_id?: string | null | undefined;
504
505
  artifact_path?: string | null | undefined;
@@ -529,7 +530,7 @@ export declare class LocalServiceRuntime {
529
530
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
530
531
  ok: boolean;
531
532
  summary: string;
532
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
533
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
533
534
  detail?: string | undefined;
534
535
  run_id?: string | null | undefined;
535
536
  artifact_path?: string | null | undefined;
@@ -745,7 +746,7 @@ export declare class LocalServiceRuntime {
745
746
  version: 1;
746
747
  generated_at: string;
747
748
  project: string;
748
- status: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale";
749
+ status: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale";
749
750
  ready: boolean;
750
751
  summary: string;
751
752
  context_graph_path: string | null;
@@ -753,7 +754,7 @@ export declare class LocalServiceRuntime {
753
754
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
754
755
  ok: boolean;
755
756
  summary: string;
756
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
757
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
757
758
  detail?: string | undefined;
758
759
  run_id?: string | null | undefined;
759
760
  artifact_path?: string | null | undefined;
@@ -784,7 +785,7 @@ export declare class LocalServiceRuntime {
784
785
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
785
786
  ok: boolean;
786
787
  summary: string;
787
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
788
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
788
789
  detail?: string | undefined;
789
790
  run_id?: string | null | undefined;
790
791
  artifact_path?: string | null | undefined;
@@ -820,7 +821,7 @@ export declare class LocalServiceRuntime {
820
821
  version: 1;
821
822
  generated_at: string;
822
823
  project: string;
823
- status: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale";
824
+ status: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale";
824
825
  ready: boolean;
825
826
  summary: string;
826
827
  context_graph_path: string | null;
@@ -828,7 +829,7 @@ export declare class LocalServiceRuntime {
828
829
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
829
830
  ok: boolean;
830
831
  summary: string;
831
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
832
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
832
833
  detail?: string | undefined;
833
834
  run_id?: string | null | undefined;
834
835
  artifact_path?: string | null | undefined;
@@ -859,7 +860,7 @@ export declare class LocalServiceRuntime {
859
860
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
860
861
  ok: boolean;
861
862
  summary: string;
862
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
863
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
863
864
  detail?: string | undefined;
864
865
  run_id?: string | null | undefined;
865
866
  artifact_path?: string | null | undefined;
@@ -874,7 +875,7 @@ export declare class LocalServiceRuntime {
874
875
  version: 1;
875
876
  generated_at: string;
876
877
  project: string;
877
- status: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale";
878
+ status: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale";
878
879
  ready: boolean;
879
880
  summary: string;
880
881
  context_graph_path: string | null;
@@ -882,7 +883,7 @@ export declare class LocalServiceRuntime {
882
883
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
883
884
  ok: boolean;
884
885
  summary: string;
885
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
886
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
886
887
  detail?: string | undefined;
887
888
  run_id?: string | null | undefined;
888
889
  artifact_path?: string | null | undefined;
@@ -913,7 +914,7 @@ export declare class LocalServiceRuntime {
913
914
  gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
914
915
  ok: boolean;
915
916
  summary: string;
916
- status?: "failed" | "ready" | "not-configured" | "not-built" | "building" | "built" | "checking" | "not-ready" | "stale" | undefined;
917
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
917
918
  detail?: string | undefined;
918
919
  run_id?: string | null | undefined;
919
920
  artifact_path?: string | null | undefined;
@@ -946,6 +947,7 @@ export declare class LocalServiceRuntime {
946
947
  }[];
947
948
  source_kind: "builtin" | "local";
948
949
  built_in: boolean;
950
+ scope: "builtin" | "user" | "local";
949
951
  active_for_projects: string[];
950
952
  context_checks: {
951
953
  id: string;
@@ -965,7 +967,7 @@ export declare class LocalServiceRuntime {
965
967
  };
966
968
  checks: {
967
969
  id: string;
968
- kind: "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";
970
+ kind: "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";
969
971
  required: boolean;
970
972
  description?: string | undefined;
971
973
  params?: Record<string, unknown> | undefined;
@@ -1000,7 +1002,7 @@ export declare class LocalServiceRuntime {
1000
1002
  output?: {
1001
1003
  checks: {
1002
1004
  id: string;
1003
- kind: "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";
1005
+ kind: "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";
1004
1006
  required: boolean;
1005
1007
  description?: string | undefined;
1006
1008
  params?: Record<string, unknown> | undefined;
@@ -1032,7 +1034,7 @@ export declare class LocalServiceRuntime {
1032
1034
  };
1033
1035
  checks: {
1034
1036
  id: string;
1035
- kind: "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";
1037
+ kind: "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";
1036
1038
  required: boolean;
1037
1039
  description?: string | undefined;
1038
1040
  params?: Record<string, unknown> | undefined;
@@ -1055,7 +1057,420 @@ export declare class LocalServiceRuntime {
1055
1057
  summary?: string | undefined;
1056
1058
  } | null | undefined;
1057
1059
  } | undefined;
1060
+ created_at?: string | null | undefined;
1061
+ updated_at?: string | null | undefined;
1058
1062
  }[]>;
1063
+ /**
1064
+ * Per-Build-run Context Graph resource cache. A succeeded Build's graph is
1065
+ * immutable, so the full `ContextGraphResource` (readiness join, semantic
1066
+ * graph, evidence, validation) is memoized keyed by run id + graph-manifest
1067
+ * mtime. Busted on Build completion and Build Plan change via
1068
+ * `invalidateProject` on the matching write paths.
1069
+ */
1070
+ readonly contextGraphResourceCache: ContextGraphResourceCache<{
1071
+ kind: "interf-context-graph";
1072
+ version: 1;
1073
+ intent: string;
1074
+ project: string;
1075
+ path: string;
1076
+ exists: boolean;
1077
+ readiness: {
1078
+ kind: "interf-readiness-state";
1079
+ version: 1;
1080
+ generated_at: string;
1081
+ project: string;
1082
+ status: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale";
1083
+ ready: boolean;
1084
+ summary: string;
1085
+ context_graph_path: string | null;
1086
+ build: {
1087
+ gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
1088
+ ok: boolean;
1089
+ summary: string;
1090
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
1091
+ detail?: string | undefined;
1092
+ run_id?: string | null | undefined;
1093
+ artifact_path?: string | null | undefined;
1094
+ } | null;
1095
+ check_results: {
1096
+ configured: number;
1097
+ fingerprint: string | null;
1098
+ source_files: {
1099
+ passed: number;
1100
+ total: number;
1101
+ pass_rate: number | null;
1102
+ stale: boolean;
1103
+ checks_fingerprint?: string | null | undefined;
1104
+ run_id?: string | null | undefined;
1105
+ run_path?: string | null | undefined;
1106
+ } | null;
1107
+ context_graph: {
1108
+ passed: number;
1109
+ total: number;
1110
+ pass_rate: number | null;
1111
+ stale: boolean;
1112
+ checks_fingerprint?: string | null | undefined;
1113
+ run_id?: string | null | undefined;
1114
+ run_path?: string | null | undefined;
1115
+ } | null;
1116
+ };
1117
+ checks: {
1118
+ gate: "context-graph" | "project-config" | "build-run" | "artifact-diagnostics" | "context-checks" | "benchmarks" | "benchmarks-current";
1119
+ ok: boolean;
1120
+ summary: string;
1121
+ status?: "ready" | "not-ready" | "failed" | "not-configured" | "not-built" | "building" | "built" | "checking" | "stale" | undefined;
1122
+ detail?: string | undefined;
1123
+ run_id?: string | null | undefined;
1124
+ artifact_path?: string | null | undefined;
1125
+ }[];
1126
+ latest_build_run_id?: string | null | undefined;
1127
+ latest_benchmark_run_id?: string | null | undefined;
1128
+ };
1129
+ artifact_handoffs: {
1130
+ label: string;
1131
+ locator: {
1132
+ kind: "local-path" | "remote-url" | "api-served";
1133
+ value: string;
1134
+ };
1135
+ role: "entrypoint" | "artifact" | "guidance" | "source-index";
1136
+ artifact_id?: string | undefined;
1137
+ path?: string | undefined;
1138
+ artifact_kind?: "file" | "directory" | undefined;
1139
+ summary?: string | undefined;
1140
+ }[];
1141
+ artifacts: {
1142
+ path: string;
1143
+ role: "runtime" | "output" | "source" | "evidence" | "benchmark";
1144
+ stage_id?: string | null | undefined;
1145
+ label?: string | undefined;
1146
+ sha256?: string | undefined;
1147
+ }[];
1148
+ primary_metrics: {
1149
+ key: string;
1150
+ label: string;
1151
+ value: number;
1152
+ primary: boolean;
1153
+ total?: number | undefined;
1154
+ unit?: string | undefined;
1155
+ issue_state?: "pass" | "fail" | "missing" | "review" | undefined;
1156
+ detail?: string | undefined;
1157
+ metadata?: Record<string, unknown> | undefined;
1158
+ }[];
1159
+ stage_summaries: {
1160
+ stage_id: string;
1161
+ stage_label: string;
1162
+ role: "source" | "summary" | "other" | "knowledge" | "entrypoint" | "diagnostic";
1163
+ manifest_path: string;
1164
+ summary: string;
1165
+ produced_total: number;
1166
+ missing_required_total: number;
1167
+ metrics: {
1168
+ key: string;
1169
+ label: string;
1170
+ value: number;
1171
+ primary: boolean;
1172
+ total?: number | undefined;
1173
+ unit?: string | undefined;
1174
+ issue_state?: "pass" | "fail" | "missing" | "review" | undefined;
1175
+ detail?: string | undefined;
1176
+ metadata?: Record<string, unknown> | undefined;
1177
+ }[];
1178
+ }[];
1179
+ entrypoints: {
1180
+ id: string;
1181
+ role: "source" | "summary" | "other" | "knowledge" | "entrypoint" | "diagnostic";
1182
+ kind: string;
1183
+ label: string;
1184
+ source_refs: string[];
1185
+ links: string[];
1186
+ required: boolean;
1187
+ path?: string | undefined;
1188
+ locator?: string | undefined;
1189
+ stage_id?: string | undefined;
1190
+ metadata?: Record<string, unknown> | undefined;
1191
+ }[];
1192
+ resources: {
1193
+ id: string;
1194
+ role: "source" | "summary" | "other" | "knowledge" | "entrypoint" | "diagnostic";
1195
+ kind: string;
1196
+ label: string;
1197
+ source_refs: string[];
1198
+ links: string[];
1199
+ required: boolean;
1200
+ path?: string | undefined;
1201
+ locator?: string | undefined;
1202
+ stage_id?: string | undefined;
1203
+ metadata?: Record<string, unknown> | undefined;
1204
+ }[];
1205
+ stage_sessions: {
1206
+ kind: "interf-stage-execution-session";
1207
+ version: 1;
1208
+ job_type: "stage" | "source-inventory";
1209
+ generated_at: string;
1210
+ updated_at: string;
1211
+ project: string;
1212
+ project_intent: string | null;
1213
+ context_graph_path: string;
1214
+ build_plan: string;
1215
+ build_run_id: string | null;
1216
+ stage_id: string | null;
1217
+ stage_label: string | null;
1218
+ contract_type: string | null;
1219
+ stage_run_id: string;
1220
+ attempt: number;
1221
+ status: "running" | "failed" | "succeeded";
1222
+ executor: {
1223
+ kind: "local-agent" | "connected-provider" | "managed";
1224
+ name: string;
1225
+ display_name: string;
1226
+ command: string | null;
1227
+ model?: string | null | undefined;
1228
+ effort?: string | null | undefined;
1229
+ profile?: string | null | undefined;
1230
+ timeout_ms?: number | null | undefined;
1231
+ };
1232
+ shell: {
1233
+ root_path: string;
1234
+ workspace_manifest_path: string | null;
1235
+ preserved_shell_manifest_path: string | null;
1236
+ replay_ready: boolean;
1237
+ retention_reason: string | null;
1238
+ };
1239
+ logs: {
1240
+ prompt_path: string | null;
1241
+ event_stream_path: string | null;
1242
+ status_path: string | null;
1243
+ };
1244
+ runtime_files: {
1245
+ project_path: string | null;
1246
+ contract_path: string | null;
1247
+ paths_path: string | null;
1248
+ source_locator_path: string | null;
1249
+ source_manifest_path: string | null;
1250
+ source_state_path: string | null;
1251
+ stage_inputs_path: string | null;
1252
+ expected_inputs_path: string | null;
1253
+ reviewed_inputs_path: string | null;
1254
+ previous_attempts_path: string | null;
1255
+ retry_feedback_path: string | null;
1256
+ last_validation_failure_path: string | null;
1257
+ verifier_path: string | null;
1258
+ stage_evidence_path: string | null;
1259
+ reasoning_path: string | null;
1260
+ };
1261
+ artifacts: {
1262
+ reads: {
1263
+ artifact_id: string;
1264
+ artifact_path: string;
1265
+ shell_root_path: string;
1266
+ input_mount_path: string | null;
1267
+ output_mount_path: string | null;
1268
+ }[];
1269
+ writes: {
1270
+ artifact_id: string;
1271
+ artifact_path: string;
1272
+ shell_root_path: string;
1273
+ input_mount_path: string | null;
1274
+ output_mount_path: string | null;
1275
+ }[];
1276
+ };
1277
+ validation_attempts: {
1278
+ attempt: number;
1279
+ recorded_at: string;
1280
+ status: "failed" | "succeeded";
1281
+ summary: string;
1282
+ }[];
1283
+ summary: string | null;
1284
+ error: string | null;
1285
+ }[];
1286
+ graph_id?: string | undefined;
1287
+ project_id?: string | undefined;
1288
+ build_run_id?: string | null | undefined;
1289
+ source_manifest_id?: string | null | undefined;
1290
+ created_at?: string | undefined;
1291
+ is_latest?: boolean | undefined;
1292
+ build_plan?: string | null | undefined;
1293
+ latest_build_run_id?: string | null | undefined;
1294
+ latest_benchmark_run_id?: string | null | undefined;
1295
+ entrypoint_artifact?: {
1296
+ label: string;
1297
+ locator: {
1298
+ kind: "local-path" | "remote-url" | "api-served";
1299
+ value: string;
1300
+ };
1301
+ role: "entrypoint" | "artifact" | "guidance" | "source-index";
1302
+ artifact_id?: string | undefined;
1303
+ path?: string | undefined;
1304
+ artifact_kind?: "file" | "directory" | undefined;
1305
+ summary?: string | undefined;
1306
+ } | null | undefined;
1307
+ portable_handoff?: {
1308
+ locator: {
1309
+ kind: "local-path" | "remote-url" | "api-served";
1310
+ value: string;
1311
+ };
1312
+ instructions?: string | undefined;
1313
+ } | null | undefined;
1314
+ build_evidence?: {
1315
+ kind: "interf-build-evidence";
1316
+ version: 1;
1317
+ generated_at: string;
1318
+ project_id: string;
1319
+ build_run_id: string | null;
1320
+ ready: boolean;
1321
+ summary: string;
1322
+ rows: {
1323
+ id: string;
1324
+ assertion: string;
1325
+ metric: {
1326
+ observed: number;
1327
+ total?: number | undefined;
1328
+ unit?: string | undefined;
1329
+ };
1330
+ evidence: {
1331
+ kind: "output" | "source-inventory" | "stage-record" | "validator" | "trace" | "stage-evidence";
1332
+ label: string;
1333
+ ref?: string | undefined;
1334
+ path?: string | undefined;
1335
+ run_id?: string | undefined;
1336
+ stage_id?: string | undefined;
1337
+ artifact_id?: string | undefined;
1338
+ };
1339
+ issue_state?: "pass" | "fail" | "missing" | "review" | undefined;
1340
+ issue?: string | undefined;
1341
+ }[];
1342
+ } | undefined;
1343
+ semantic_graph?: {
1344
+ kind: "interf-context-graph-semantic-graph";
1345
+ version: 1;
1346
+ generated_at: string;
1347
+ nodes: {
1348
+ id: string;
1349
+ kind: "source" | "index" | "summary" | "project" | "knowledge" | "artifact" | "note" | "home" | "claim" | "entity";
1350
+ label: string;
1351
+ source_refs: string[];
1352
+ link_count: number;
1353
+ backlink_count: number;
1354
+ path?: string | null | undefined;
1355
+ summary?: string | null | undefined;
1356
+ }[];
1357
+ edges: {
1358
+ id: string;
1359
+ kind: "links-to" | "source-ref" | "contains" | "handoff";
1360
+ source: string;
1361
+ target: string;
1362
+ label: string;
1363
+ detail: string;
1364
+ }[];
1365
+ stats: {
1366
+ notes: number;
1367
+ links: number;
1368
+ source_refs: number;
1369
+ unresolved_links: number;
1370
+ };
1371
+ } | undefined;
1372
+ graph_manifest?: {
1373
+ kind: "interf-graph-manifest";
1374
+ version: 1;
1375
+ generated_at: string;
1376
+ project: string;
1377
+ graph_id: string;
1378
+ run_id: string | null;
1379
+ build_plan: string;
1380
+ intent: string | null;
1381
+ graph_path: string;
1382
+ primary_metrics: {
1383
+ key: string;
1384
+ label: string;
1385
+ value: number;
1386
+ primary: boolean;
1387
+ total?: number | undefined;
1388
+ unit?: string | undefined;
1389
+ issue_state?: "pass" | "fail" | "missing" | "review" | undefined;
1390
+ detail?: string | undefined;
1391
+ metadata?: Record<string, unknown> | undefined;
1392
+ }[];
1393
+ stages: {
1394
+ stage_id: string;
1395
+ stage_label: string;
1396
+ role: "source" | "summary" | "other" | "knowledge" | "entrypoint" | "diagnostic";
1397
+ manifest_path: string;
1398
+ summary: string;
1399
+ produced_total: number;
1400
+ missing_required_total: number;
1401
+ metrics: {
1402
+ key: string;
1403
+ label: string;
1404
+ value: number;
1405
+ primary: boolean;
1406
+ total?: number | undefined;
1407
+ unit?: string | undefined;
1408
+ issue_state?: "pass" | "fail" | "missing" | "review" | undefined;
1409
+ detail?: string | undefined;
1410
+ metadata?: Record<string, unknown> | undefined;
1411
+ }[];
1412
+ }[];
1413
+ entrypoints: {
1414
+ id: string;
1415
+ role: "source" | "summary" | "other" | "knowledge" | "entrypoint" | "diagnostic";
1416
+ kind: string;
1417
+ label: string;
1418
+ source_refs: string[];
1419
+ links: string[];
1420
+ required: boolean;
1421
+ path?: string | undefined;
1422
+ locator?: string | undefined;
1423
+ stage_id?: string | undefined;
1424
+ metadata?: Record<string, unknown> | undefined;
1425
+ }[];
1426
+ resources: {
1427
+ id: string;
1428
+ role: "source" | "summary" | "other" | "knowledge" | "entrypoint" | "diagnostic";
1429
+ kind: string;
1430
+ label: string;
1431
+ source_refs: string[];
1432
+ links: string[];
1433
+ required: boolean;
1434
+ path?: string | undefined;
1435
+ locator?: string | undefined;
1436
+ stage_id?: string | undefined;
1437
+ metadata?: Record<string, unknown> | undefined;
1438
+ }[];
1439
+ graph_outputs: {
1440
+ nodes: number;
1441
+ edges: number;
1442
+ notes: number;
1443
+ links: number;
1444
+ source_refs: number;
1445
+ claims?: number | undefined;
1446
+ entities?: number | undefined;
1447
+ };
1448
+ readiness: {
1449
+ status: "ready" | "not-ready";
1450
+ ready: boolean;
1451
+ summary: string;
1452
+ missing_required_total: number;
1453
+ missing: {
1454
+ resource_id: string;
1455
+ status: "missing" | "blocked" | "not-relevant";
1456
+ reason: string;
1457
+ }[];
1458
+ context_graph_path?: string | null | undefined;
1459
+ };
1460
+ } | null | undefined;
1461
+ readiness_rollup?: {
1462
+ status: "ready" | "not-ready";
1463
+ ready: boolean;
1464
+ summary: string;
1465
+ missing_required_total: number;
1466
+ missing: {
1467
+ resource_id: string;
1468
+ status: "missing" | "blocked" | "not-relevant";
1469
+ reason: string;
1470
+ }[];
1471
+ context_graph_path?: string | null | undefined;
1472
+ } | null | undefined;
1473
+ } | null>;
1059
1474
  constructor(options: LocalServiceRuntimeOptions);
1060
1475
  setBoundPort(port: number): void;
1061
1476
  /** Set a hook that fires whenever the registered Projects change. */
@@ -1112,6 +1527,8 @@ export declare class LocalServiceRuntime {
1112
1527
  listContextGraphs(projectDataDir: string, projectName?: string | null): ContextGraphResource[];
1113
1528
  getContextGraph(projectDataDir: string, graphId: string): ContextGraphResource | null;
1114
1529
  getLatestContextGraph(projectDataDir: string, projectName: string): ContextGraphResource | null;
1530
+ listLatestContextGraphStageSessions(projectDataDir: string, projectName: string): StageExecutionSession[];
1531
+ getContextGraphHandoff(projectDataDir: string, projectName: string): ContextGraphHandoff | null;
1115
1532
  listBuildPlans(projectDataDir: string): BuildPlanResource[];
1116
1533
  getBuildPlanResource(projectDataDir: string, buildPlanId: string): BuildPlanResource | null;
1117
1534
  applyBuildPlanChange(projectDataDir: string, requestValue: unknown): BuildPlanChangeResult;