@interf/compiler 0.21.0 → 0.22.2

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 (367) hide show
  1. package/README.md +65 -63
  2. package/dist/cli/commands/build-plan.d.ts +2 -0
  3. package/dist/cli/commands/{method.js → build-plan.js} +89 -72
  4. package/dist/cli/commands/{compile.d.ts → build.d.ts} +2 -2
  5. package/dist/cli/commands/{compile.js → build.js} +18 -18
  6. package/dist/cli/commands/doctor.js +2 -2
  7. package/dist/cli/commands/mcp.js +48 -48
  8. package/dist/cli/commands/prep.js +16 -29
  9. package/dist/cli/commands/reset.d.ts +1 -1
  10. package/dist/cli/commands/reset.js +6 -6
  11. package/dist/cli/commands/runs.js +6 -28
  12. package/dist/cli/commands/status.js +1 -1
  13. package/dist/cli/commands/test.d.ts +1 -1
  14. package/dist/cli/commands/test.js +8 -8
  15. package/dist/cli/commands/web.js +3 -3
  16. package/dist/cli/commands/wizard.js +38 -38
  17. package/dist/cli/index.d.ts +3 -3
  18. package/dist/cli/index.js +5 -5
  19. package/dist/interf-ui/404.html +1 -0
  20. package/dist/interf-ui/__next.__PAGE__.txt +10 -0
  21. package/dist/interf-ui/__next._full.txt +20 -0
  22. package/dist/interf-ui/__next._head.txt +5 -0
  23. package/dist/interf-ui/__next._index.txt +5 -0
  24. package/dist/{compiler-ui → interf-ui}/__next._tree.txt +3 -4
  25. package/dist/interf-ui/_next/static/chunks/0.tjb6f4golw..css +3 -0
  26. package/dist/interf-ui/_next/static/chunks/085-n_jv2ng_q.css +1 -0
  27. package/dist/interf-ui/_next/static/chunks/0dn41fa_zvgsl.js +1 -0
  28. package/dist/interf-ui/_next/static/chunks/0g-ea0zj5d-0k.js +1 -0
  29. package/dist/interf-ui/_next/static/chunks/0gwqglc4iz583.js +1 -0
  30. package/dist/interf-ui/_next/static/chunks/0haldgm65ve6l.js +1 -0
  31. package/dist/interf-ui/_next/static/chunks/0nv3am99vjzn4.js +1 -0
  32. package/dist/{compiler-ui/_next/static/chunks/02f_.8.ebn556.js → interf-ui/_next/static/chunks/0s77gt_o4jwtx.js} +1 -1
  33. package/dist/interf-ui/_next/static/chunks/0~a36ujuzpaz..js +116 -0
  34. package/dist/interf-ui/_next/static/chunks/10jeodxe4nkgj.js +31 -0
  35. package/dist/interf-ui/_next/static/chunks/119h2rouych2t.js +1 -0
  36. package/dist/interf-ui/_next/static/chunks/13c8b~m8knjsf.js +1 -0
  37. package/dist/interf-ui/_next/static/chunks/14dznb2qpt-ho.js +91 -0
  38. package/dist/interf-ui/_next/static/chunks/15z_en80lrq-3.js +5 -0
  39. package/dist/{compiler-ui/_next/static/chunks/turbopack-0apv8vb-nczuy.js → interf-ui/_next/static/chunks/turbopack-0p.pvcjrtq-jh.js} +1 -1
  40. package/dist/interf-ui/_next/static/chunks/turbopack-0usj_75.8frlw.js +1 -0
  41. package/dist/interf-ui/_not-found/__next._full.txt +15 -0
  42. package/dist/interf-ui/_not-found/__next._head.txt +5 -0
  43. package/dist/interf-ui/_not-found/__next._index.txt +5 -0
  44. package/dist/{compiler-ui → interf-ui}/_not-found/__next._not-found.__PAGE__.txt +2 -2
  45. package/dist/interf-ui/_not-found/__next._not-found.txt +5 -0
  46. package/dist/{compiler-ui → interf-ui}/_not-found/__next._tree.txt +2 -3
  47. package/dist/interf-ui/_not-found.html +1 -0
  48. package/dist/interf-ui/_not-found.txt +15 -0
  49. package/dist/interf-ui/index.html +1 -0
  50. package/dist/interf-ui/index.txt +20 -0
  51. package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +36 -0
  52. package/dist/packages/{methods/authoring/method-authoring.js → build-plans/authoring/build-plan-authoring.js} +52 -52
  53. package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +18 -0
  54. package/dist/packages/{methods/authoring/method-edit-session.js → build-plans/authoring/build-plan-edit-session.js} +34 -34
  55. package/dist/packages/build-plans/authoring/build-plan-improvement.d.ts +23 -0
  56. package/dist/packages/build-plans/authoring/build-plan-improvement.js +216 -0
  57. package/dist/packages/build-plans/authoring/index.d.ts +4 -0
  58. package/dist/packages/build-plans/authoring/index.js +4 -0
  59. package/dist/packages/{methods/authoring/lib/method-edit-utils.d.ts → build-plans/authoring/lib/build-plan-edit-utils.d.ts} +3 -3
  60. package/dist/packages/build-plans/build-plan-resolution.d.ts +6 -0
  61. package/dist/packages/build-plans/build-plan-resolution.js +7 -0
  62. package/dist/packages/build-plans/index.d.ts +2 -0
  63. package/dist/packages/build-plans/index.js +2 -0
  64. package/dist/packages/build-plans/package/build-plan-definitions.d.ts +61 -0
  65. package/dist/packages/build-plans/package/build-plan-definitions.js +214 -0
  66. package/dist/packages/{methods/package/method-helpers.d.ts → build-plans/package/build-plan-helpers.d.ts} +7 -7
  67. package/dist/packages/{methods/package/method-helpers.js → build-plans/package/build-plan-helpers.js} +20 -20
  68. package/dist/packages/build-plans/package/build-plan-review-paths.d.ts +10 -0
  69. package/dist/packages/build-plans/package/build-plan-review-paths.js +31 -0
  70. package/dist/packages/{methods/package/method-stage-runner.d.ts → build-plans/package/build-plan-stage-runner.d.ts} +12 -12
  71. package/dist/packages/{methods/package/method-stage-runner.js → build-plans/package/build-plan-stage-runner.js} +10 -10
  72. package/dist/packages/build-plans/package/builtin-build-plan.d.ts +37 -0
  73. package/dist/packages/build-plans/package/builtin-build-plan.js +91 -0
  74. package/dist/packages/{methods → build-plans}/package/context-interface.d.ts +11 -11
  75. package/dist/packages/{methods → build-plans}/package/context-interface.js +23 -23
  76. package/dist/packages/build-plans/package/interf-build-plan-package.d.ts +31 -0
  77. package/dist/packages/build-plans/package/interf-build-plan-package.js +466 -0
  78. package/dist/packages/{methods → build-plans}/package/lib/package-root.js +1 -1
  79. package/dist/packages/build-plans/package/local-build-plans.d.ts +74 -0
  80. package/dist/packages/{methods/package/local-methods.js → build-plans/package/local-build-plans.js} +152 -152
  81. package/dist/packages/build-plans/package/user-build-plans.d.ts +17 -0
  82. package/dist/packages/build-plans/package/user-build-plans.js +77 -0
  83. package/dist/packages/contracts/index.d.ts +1 -1
  84. package/dist/packages/contracts/lib/preparation-paths.d.ts +37 -37
  85. package/dist/packages/contracts/lib/preparation-paths.js +43 -43
  86. package/dist/packages/contracts/lib/schema.d.ts +34 -41
  87. package/dist/packages/contracts/lib/schema.js +42 -34
  88. package/dist/packages/engine/action-definitions.d.ts +60 -60
  89. package/dist/packages/engine/action-definitions.js +198 -197
  90. package/dist/packages/engine/action-planner.d.ts +2 -2
  91. package/dist/packages/engine/action-planner.js +5 -5
  92. package/dist/packages/engine/action-values.d.ts +1 -1
  93. package/dist/packages/engine/action-values.js +1 -1
  94. package/dist/packages/engine/agents/index.d.ts +2 -2
  95. package/dist/packages/engine/agents/index.js +1 -1
  96. package/dist/packages/engine/agents/lib/args.d.ts +2 -2
  97. package/dist/packages/engine/agents/lib/args.js +1 -1
  98. package/dist/packages/engine/agents/lib/constants.js +1 -1
  99. package/dist/packages/engine/agents/lib/execution-profile.d.ts +5 -5
  100. package/dist/packages/engine/agents/lib/execution-profile.js +3 -3
  101. package/dist/packages/engine/agents/lib/executors.d.ts +11 -11
  102. package/dist/packages/engine/agents/lib/render.js +4 -4
  103. package/dist/packages/engine/agents/lib/shells.d.ts +30 -30
  104. package/dist/packages/engine/agents/lib/shells.js +248 -248
  105. package/dist/packages/engine/agents/lib/types.d.ts +2 -2
  106. package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.d.ts +3 -0
  107. package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.js +19 -0
  108. package/dist/packages/engine/agents/role-executors.d.ts +7 -7
  109. package/dist/packages/engine/agents/role-executors.js +2 -2
  110. package/dist/packages/engine/agents/role-router.d.ts +2 -2
  111. package/dist/packages/engine/agents/role-router.js +1 -1
  112. package/dist/packages/engine/build/artifact-counts.d.ts +1 -0
  113. package/dist/packages/engine/{compile → build}/artifact-counts.js +7 -7
  114. package/dist/packages/engine/{compile → build}/artifact-status.d.ts +8 -8
  115. package/dist/packages/engine/{compile → build}/artifact-status.js +19 -19
  116. package/dist/packages/engine/{compile → build}/billing-events.d.ts +4 -4
  117. package/dist/packages/engine/{compile → build}/billing-events.js +4 -4
  118. package/dist/packages/engine/build/build-execution.d.ts +4 -0
  119. package/dist/packages/engine/build/build-execution.js +4 -0
  120. package/dist/packages/engine/build/build-pipeline.d.ts +56 -0
  121. package/dist/packages/engine/{compile/compiled-pipeline.js → build/build-pipeline.js} +55 -55
  122. package/dist/packages/engine/build/build-plan-primitives.d.ts +2 -0
  123. package/dist/packages/engine/{compile/method-primitives.js → build/build-plan-primitives.js} +1 -1
  124. package/dist/packages/engine/build/build-plan-runs.d.ts +14 -0
  125. package/dist/packages/engine/build/build-plan-runs.js +31 -0
  126. package/dist/packages/engine/build/build-stage-plan.d.ts +16 -0
  127. package/dist/packages/engine/build/build-stage-plan.js +100 -0
  128. package/dist/packages/engine/build/build-stage-runner.d.ts +15 -0
  129. package/dist/packages/engine/{compile/compiled-stage-runner.js → build/build-stage-runner.js} +21 -21
  130. package/dist/packages/engine/build/build-target.d.ts +11 -0
  131. package/dist/packages/engine/build/build-target.js +16 -0
  132. package/dist/packages/engine/{compile → build}/check-evaluator.d.ts +4 -4
  133. package/dist/packages/engine/{compile → build}/check-evaluator.js +1 -1
  134. package/dist/packages/engine/{compile → build}/discovery.d.ts +2 -2
  135. package/dist/packages/engine/{compile → build}/discovery.js +4 -4
  136. package/dist/packages/engine/{compile → build}/index.d.ts +6 -6
  137. package/dist/packages/engine/{compile → build}/index.js +5 -5
  138. package/dist/packages/engine/{compile → build}/lib/schema.d.ts +79 -79
  139. package/dist/packages/engine/{compile → build}/lib/schema.js +71 -71
  140. package/dist/packages/engine/build/reset.d.ts +2 -0
  141. package/dist/packages/engine/build/reset.js +74 -0
  142. package/dist/packages/engine/{compile → build}/runtime-contracts.js +8 -8
  143. package/dist/packages/engine/build/runtime-inventory.d.ts +7 -0
  144. package/dist/packages/engine/{compile → build}/runtime-inventory.js +8 -8
  145. package/dist/packages/engine/{compile → build}/runtime-paths.js +6 -6
  146. package/dist/packages/engine/{compile → build}/runtime-prompt.js +11 -11
  147. package/dist/packages/engine/build/runtime-reconcile.d.ts +2 -0
  148. package/dist/packages/engine/{compile → build}/runtime-reconcile.js +18 -18
  149. package/dist/packages/engine/{compile → build}/runtime-runs.js +27 -27
  150. package/dist/packages/engine/{compile → build}/runtime-types.d.ts +10 -10
  151. package/dist/packages/engine/build/source-files.d.ts +46 -0
  152. package/dist/packages/engine/{compile → build}/source-files.js +32 -32
  153. package/dist/packages/engine/build/state-artifacts.d.ts +9 -0
  154. package/dist/packages/engine/build/state-artifacts.js +14 -0
  155. package/dist/packages/engine/build/state-health.d.ts +4 -0
  156. package/dist/packages/engine/{compile → build}/state-health.js +40 -40
  157. package/dist/packages/engine/build/state-io.d.ts +11 -0
  158. package/dist/packages/engine/{compile → build}/state-io.js +22 -22
  159. package/dist/packages/engine/build/state-paths.js +16 -0
  160. package/dist/packages/engine/build/state-view.d.ts +5 -0
  161. package/dist/packages/engine/{compile → build}/state-view.js +29 -29
  162. package/dist/packages/engine/build/state.d.ts +7 -0
  163. package/dist/packages/engine/build/state.js +12 -0
  164. package/dist/packages/engine/build/validate-verifiable-context.d.ts +27 -0
  165. package/dist/packages/engine/{compile/validate-compiled.js → build/validate-verifiable-context.js} +73 -73
  166. package/dist/packages/engine/{compile → build}/validate.d.ts +4 -4
  167. package/dist/packages/engine/{compile → build}/validate.js +27 -27
  168. package/dist/packages/engine/build/verifiable-context-paths.d.ts +47 -0
  169. package/dist/packages/engine/build/verifiable-context-paths.js +121 -0
  170. package/dist/packages/engine/build/verifiable-context-schema.d.ts +21 -0
  171. package/dist/packages/engine/build/verifiable-context-schema.js +126 -0
  172. package/dist/packages/engine/client.d.ts +16 -16
  173. package/dist/packages/engine/client.js +21 -21
  174. package/dist/packages/engine/cloud-seams.d.ts +3 -3
  175. package/dist/packages/engine/execution/index.d.ts +2 -2
  176. package/dist/packages/engine/execution/index.js +1 -1
  177. package/dist/packages/engine/execution/lib/schema.d.ts +90 -95
  178. package/dist/packages/engine/execution/lib/schema.js +31 -31
  179. package/dist/packages/engine/index.d.ts +7 -7
  180. package/dist/packages/engine/index.js +3 -3
  181. package/dist/packages/engine/instance-paths.d.ts +39 -39
  182. package/dist/packages/engine/instance-paths.js +48 -48
  183. package/dist/packages/engine/lib/schema.d.ts +900 -472
  184. package/dist/packages/engine/lib/schema.js +137 -153
  185. package/dist/packages/engine/native-run-handlers.d.ts +12 -12
  186. package/dist/packages/engine/native-run-handlers.js +135 -135
  187. package/dist/packages/engine/preparation-store.d.ts +22 -23
  188. package/dist/packages/engine/preparation-store.js +30 -31
  189. package/dist/packages/engine/readiness-check-draft.d.ts +2 -2
  190. package/dist/packages/engine/readiness-check-draft.js +1 -1
  191. package/dist/packages/engine/requested-artifacts.d.ts +2 -2
  192. package/dist/packages/engine/routes.d.ts +18 -17
  193. package/dist/packages/engine/routes.js +20 -19
  194. package/dist/packages/engine/run-observability.d.ts +5 -3
  195. package/dist/packages/engine/run-observability.js +101 -89
  196. package/dist/packages/engine/runtime-caches.d.ts +16 -16
  197. package/dist/packages/engine/runtime-caches.js +26 -26
  198. package/dist/packages/engine/runtime-event-applier.d.ts +2 -2
  199. package/dist/packages/engine/runtime-event-applier.js +1 -1
  200. package/dist/packages/engine/runtime-persistence.d.ts +9 -9
  201. package/dist/packages/engine/runtime-persistence.js +16 -16
  202. package/dist/packages/engine/runtime-proposal-helpers.d.ts +14 -14
  203. package/dist/packages/engine/runtime-proposal-helpers.js +78 -80
  204. package/dist/packages/engine/runtime-resource-builders.d.ts +12 -12
  205. package/dist/packages/engine/runtime-resource-builders.js +19 -19
  206. package/dist/packages/engine/runtime.d.ts +52 -61
  207. package/dist/packages/engine/runtime.js +440 -463
  208. package/dist/packages/engine/server.d.ts +2 -2
  209. package/dist/packages/engine/server.js +147 -116
  210. package/dist/packages/engine/service-registry.d.ts +5 -17
  211. package/dist/packages/engine/service-registry.js +5 -20
  212. package/dist/packages/engine/verify/lib/schema.d.ts +19 -19
  213. package/dist/packages/engine/verify/lib/schema.js +36 -8
  214. package/dist/packages/engine/verify/readiness-check-run.d.ts +15 -16
  215. package/dist/packages/engine/verify/readiness-check-run.js +46 -46
  216. package/dist/packages/engine/verify/verify-execution.d.ts +3 -3
  217. package/dist/packages/engine/verify/verify-execution.js +10 -10
  218. package/dist/packages/engine/verify/verify-paths.d.ts +4 -4
  219. package/dist/packages/engine/verify/verify-paths.js +17 -17
  220. package/dist/packages/engine/verify/verify-sandbox.d.ts +1 -1
  221. package/dist/packages/engine/verify/verify-sandbox.js +26 -26
  222. package/dist/packages/engine/verify/verify-targets.d.ts +2 -2
  223. package/dist/packages/engine/verify/verify-targets.js +17 -17
  224. package/dist/packages/engine/verify/verify-types.d.ts +2 -2
  225. package/dist/packages/engine/verify/verify.d.ts +1 -1
  226. package/dist/packages/engine/verify/verify.js +1 -1
  227. package/dist/packages/engine/wire-schemas.d.ts +38 -40
  228. package/dist/packages/engine/wire-schemas.js +13 -13
  229. package/dist/packages/project/index.d.ts +1 -1
  230. package/dist/packages/project/interf-bootstrap.d.ts +1 -1
  231. package/dist/packages/project/interf-bootstrap.js +1 -1
  232. package/dist/packages/project/interf-detect.d.ts +11 -11
  233. package/dist/packages/project/interf-detect.js +30 -30
  234. package/dist/packages/project/interf-scaffold.d.ts +3 -3
  235. package/dist/packages/project/interf-scaffold.js +72 -72
  236. package/dist/packages/project/interf.d.ts +4 -4
  237. package/dist/packages/project/interf.js +3 -3
  238. package/dist/packages/project/lib/schema.d.ts +12 -12
  239. package/dist/packages/project/lib/schema.js +14 -14
  240. package/dist/packages/project/preparation-entries.d.ts +3 -3
  241. package/dist/packages/project/preparation-entries.js +19 -19
  242. package/dist/packages/project/source-config.d.ts +10 -10
  243. package/dist/packages/project/source-config.js +58 -58
  244. package/package.json +15 -15
  245. package/public-repo/CONTRIBUTING.md +12 -12
  246. package/public-repo/README.md +65 -63
  247. package/public-repo/SECURITY.md +3 -3
  248. package/public-repo/build-plans/interf-default/README.md +33 -0
  249. package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/shape/SKILL.md +10 -10
  250. package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/structure/SKILL.md +2 -2
  251. package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/summarize/SKILL.md +1 -1
  252. package/public-repo/{methods/interf-default/method.json → build-plans/interf-default/build-plan.json} +15 -15
  253. package/public-repo/{methods/interf-default/method.schema.json → build-plans/interf-default/build-plan.schema.json} +4 -4
  254. package/public-repo/build-plans/interf-default/improve/SKILL.md +18 -0
  255. package/public-repo/{methods → build-plans}/interf-default/use/query/SKILL.md +6 -6
  256. package/public-repo/plugins/README.md +1 -1
  257. package/public-repo/plugins/interf/.claude-plugin/plugin.json +3 -3
  258. package/public-repo/plugins/interf/README.md +4 -1
  259. package/public-repo/plugins/interf/skills/interf/SKILL.md +189 -290
  260. package/public-repo/skills/interf/SKILL.md +189 -290
  261. package/LICENSE.md +0 -1
  262. package/TRADEMARKS.md +0 -8
  263. package/dist/cli/commands/method.d.ts +0 -2
  264. package/dist/compiler-ui/404.html +0 -1
  265. package/dist/compiler-ui/__next.__PAGE__.txt +0 -10
  266. package/dist/compiler-ui/__next._full.txt +0 -21
  267. package/dist/compiler-ui/__next._head.txt +0 -5
  268. package/dist/compiler-ui/__next._index.txt +0 -6
  269. package/dist/compiler-ui/_next/static/chunks/01646j7yi.w5a.css +0 -1
  270. package/dist/compiler-ui/_next/static/chunks/02r7siaw-_p5w.js +0 -1
  271. package/dist/compiler-ui/_next/static/chunks/04d0ly-7xb~-j.js +0 -91
  272. package/dist/compiler-ui/_next/static/chunks/0fhs9psnxqd8s.js +0 -1
  273. package/dist/compiler-ui/_next/static/chunks/0mssmhpbifj15.css +0 -2
  274. package/dist/compiler-ui/_next/static/chunks/0nypu~ddwxari.js +0 -116
  275. package/dist/compiler-ui/_next/static/chunks/0p3s8iyhgcww2.js +0 -31
  276. package/dist/compiler-ui/_next/static/chunks/0tjf-vu_rz8s0.css +0 -1
  277. package/dist/compiler-ui/_next/static/chunks/0u6p3fpbbfgtl.js +0 -1
  278. package/dist/compiler-ui/_next/static/chunks/0wpx5..8dnh0w.js +0 -1
  279. package/dist/compiler-ui/_next/static/chunks/0y0uj160p0ts~.js +0 -1
  280. package/dist/compiler-ui/_next/static/chunks/10t8l~_oenf.c.js +0 -1
  281. package/dist/compiler-ui/_next/static/chunks/13gz9e7z~imx1.js +0 -5
  282. package/dist/compiler-ui/_next/static/chunks/156xed-b6czaw.js +0 -1
  283. package/dist/compiler-ui/_next/static/chunks/turbopack-02-3e_c-yz~5g.js +0 -1
  284. package/dist/compiler-ui/_not-found/__next._full.txt +0 -16
  285. package/dist/compiler-ui/_not-found/__next._head.txt +0 -5
  286. package/dist/compiler-ui/_not-found/__next._index.txt +0 -6
  287. package/dist/compiler-ui/_not-found/__next._not-found.txt +0 -5
  288. package/dist/compiler-ui/_not-found.html +0 -1
  289. package/dist/compiler-ui/_not-found.txt +0 -16
  290. package/dist/compiler-ui/index.html +0 -1
  291. package/dist/compiler-ui/index.txt +0 -21
  292. package/dist/packages/engine/agents/lib/compiled-bootstrap.d.ts +0 -3
  293. package/dist/packages/engine/agents/lib/compiled-bootstrap.js +0 -19
  294. package/dist/packages/engine/compile/artifact-counts.d.ts +0 -1
  295. package/dist/packages/engine/compile/compiled-compile.d.ts +0 -4
  296. package/dist/packages/engine/compile/compiled-compile.js +0 -4
  297. package/dist/packages/engine/compile/compiled-paths.d.ts +0 -47
  298. package/dist/packages/engine/compile/compiled-paths.js +0 -121
  299. package/dist/packages/engine/compile/compiled-pipeline.d.ts +0 -56
  300. package/dist/packages/engine/compile/compiled-schema.d.ts +0 -21
  301. package/dist/packages/engine/compile/compiled-schema.js +0 -126
  302. package/dist/packages/engine/compile/compiled-stage-plan.d.ts +0 -16
  303. package/dist/packages/engine/compile/compiled-stage-plan.js +0 -100
  304. package/dist/packages/engine/compile/compiled-stage-runner.d.ts +0 -15
  305. package/dist/packages/engine/compile/compiled-target.d.ts +0 -11
  306. package/dist/packages/engine/compile/compiled-target.js +0 -16
  307. package/dist/packages/engine/compile/method-primitives.d.ts +0 -2
  308. package/dist/packages/engine/compile/method-runs.d.ts +0 -14
  309. package/dist/packages/engine/compile/method-runs.js +0 -31
  310. package/dist/packages/engine/compile/reset.d.ts +0 -2
  311. package/dist/packages/engine/compile/reset.js +0 -74
  312. package/dist/packages/engine/compile/runtime-inventory.d.ts +0 -7
  313. package/dist/packages/engine/compile/runtime-reconcile.d.ts +0 -2
  314. package/dist/packages/engine/compile/source-files.d.ts +0 -46
  315. package/dist/packages/engine/compile/state-artifacts.d.ts +0 -9
  316. package/dist/packages/engine/compile/state-artifacts.js +0 -14
  317. package/dist/packages/engine/compile/state-health.d.ts +0 -4
  318. package/dist/packages/engine/compile/state-io.d.ts +0 -11
  319. package/dist/packages/engine/compile/state-paths.js +0 -16
  320. package/dist/packages/engine/compile/state-view.d.ts +0 -5
  321. package/dist/packages/engine/compile/state.d.ts +0 -7
  322. package/dist/packages/engine/compile/state.js +0 -12
  323. package/dist/packages/engine/compile/validate-compiled.d.ts +0 -27
  324. package/dist/packages/methods/authoring/index.d.ts +0 -4
  325. package/dist/packages/methods/authoring/index.js +0 -4
  326. package/dist/packages/methods/authoring/method-authoring.d.ts +0 -36
  327. package/dist/packages/methods/authoring/method-edit-session.d.ts +0 -18
  328. package/dist/packages/methods/authoring/method-improvement.d.ts +0 -23
  329. package/dist/packages/methods/authoring/method-improvement.js +0 -217
  330. package/dist/packages/methods/index.d.ts +0 -2
  331. package/dist/packages/methods/index.js +0 -2
  332. package/dist/packages/methods/method-resolution.d.ts +0 -6
  333. package/dist/packages/methods/method-resolution.js +0 -7
  334. package/dist/packages/methods/package/builtin-compiled-method.d.ts +0 -37
  335. package/dist/packages/methods/package/builtin-compiled-method.js +0 -91
  336. package/dist/packages/methods/package/interf-method-package.d.ts +0 -31
  337. package/dist/packages/methods/package/interf-method-package.js +0 -466
  338. package/dist/packages/methods/package/local-methods.d.ts +0 -74
  339. package/dist/packages/methods/package/method-definitions.d.ts +0 -61
  340. package/dist/packages/methods/package/method-definitions.js +0 -214
  341. package/dist/packages/methods/package/method-review-paths.d.ts +0 -10
  342. package/dist/packages/methods/package/method-review-paths.js +0 -31
  343. package/dist/packages/methods/package/user-methods.d.ts +0 -17
  344. package/dist/packages/methods/package/user-methods.js +0 -77
  345. package/public-repo/methods/interf-default/README.md +0 -33
  346. package/public-repo/methods/interf-default/improve/SKILL.md +0 -18
  347. /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_buildManifest.js +0 -0
  348. /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_clientMiddlewareManifest.js +0 -0
  349. /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_ssgManifest.js +0 -0
  350. /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/03~yq9q893hmn.js +0 -0
  351. /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/0y5z3t-z1c8ks.js.map +0 -0
  352. /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +0 -0
  353. /package/dist/{compiler-ui → interf-ui}/_next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
  354. /package/dist/{compiler-ui → interf-ui}/_next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
  355. /package/dist/{compiler-ui → interf-ui}/_next/static/media/worker.102zas1s52_pf.js +0 -0
  356. /package/dist/packages/{methods/authoring/lib/method-edit-utils.js → build-plans/authoring/lib/build-plan-edit-utils.js} +0 -0
  357. /package/dist/packages/{methods → build-plans}/package/lib/package-root.d.ts +0 -0
  358. /package/dist/packages/engine/{compile → build}/runtime-contracts.d.ts +0 -0
  359. /package/dist/packages/engine/{compile → build}/runtime-paths.d.ts +0 -0
  360. /package/dist/packages/engine/{compile → build}/runtime-prompt.d.ts +0 -0
  361. /package/dist/packages/engine/{compile → build}/runtime-runs.d.ts +0 -0
  362. /package/dist/packages/engine/{compile → build}/runtime-types.js +0 -0
  363. /package/dist/packages/engine/{compile → build}/runtime.d.ts +0 -0
  364. /package/dist/packages/engine/{compile → build}/runtime.js +0 -0
  365. /package/dist/packages/engine/{compile → build}/state-paths.d.ts +0 -0
  366. /package/dist/packages/engine/{compile → build}/validate-helpers.d.ts +0 -0
  367. /package/dist/packages/engine/{compile → build}/validate-helpers.js +0 -0
@@ -1,16 +1,13 @@
1
1
  /**
2
2
  * Central service registry at `~/.interf/services.json`.
3
3
  *
4
- * One running `interf web` instance can serve N workspaces. Every running
5
- * instance writes an entry here on start and removes it on close. CLI/UX
6
- * code consults this registry to decide whether a fresh `interf web` should
7
- * register a workspace with an existing instance instead of starting a
8
- * second engine.
4
+ * Every running `interf web` instance writes an entry here on start and
5
+ * removes it on close. CLI/UX code consults this registry for explicit
6
+ * `interf web stop` lookup.
9
7
  *
10
8
  * Entry shape:
11
9
  * {
12
10
  * pid, host, port, url, started_at,
13
- * workspaces: [{ control_path, registered_at, last_activity }],
14
11
  * }
15
12
  *
16
13
  * Atomic write: write to a sibling tmp file, then rename. Concurrent
@@ -18,7 +15,7 @@
18
15
  * stale entries makes that self-healing.
19
16
  */
20
17
  import { interfHomeRoot, serviceRegistryPath } from "../contracts/lib/preparation-paths.js";
21
- import { type ServiceRegistryEntry, type ServiceRegistryWorkspace } from "./lib/schema.js";
18
+ import { type ServiceRegistryEntry } from "./lib/schema.js";
22
19
  /**
23
20
  * Read the service registry. Removes entries whose pid is no longer alive
24
21
  * before returning. Does not health-check the HTTP endpoint — that is too
@@ -30,18 +27,9 @@ export declare function readServiceRegistry(): ServiceRegistryEntry[];
30
27
  export declare function writeServiceRegistry(services: ServiceRegistryEntry[]): void;
31
28
  /**
32
29
  * Insert or update the entry for this process's pid. If the pid was
33
- * already registered, replaces it (so callers can use this to update the
34
- * workspace list).
30
+ * already registered, replaces it.
35
31
  */
36
32
  export declare function registerServiceLocally(entry: ServiceRegistryEntry): ServiceRegistryEntry;
37
33
  /** Remove the registry entry for the given pid. */
38
34
  export declare function unregisterService(pid: number): void;
39
- /** Update the workspaces array on the entry for this process's pid. */
40
- export declare function updateLocalServiceWorkspaces(pid: number, options: {
41
- host: string;
42
- port: number;
43
- url: string;
44
- started_at: string;
45
- workspaces: ServiceRegistryWorkspace[];
46
- }): ServiceRegistryEntry;
47
35
  export { interfHomeRoot, serviceRegistryPath };
@@ -1,16 +1,13 @@
1
1
  /**
2
2
  * Central service registry at `~/.interf/services.json`.
3
3
  *
4
- * One running `interf web` instance can serve N workspaces. Every running
5
- * instance writes an entry here on start and removes it on close. CLI/UX
6
- * code consults this registry to decide whether a fresh `interf web` should
7
- * register a workspace with an existing instance instead of starting a
8
- * second engine.
4
+ * Every running `interf web` instance writes an entry here on start and
5
+ * removes it on close. CLI/UX code consults this registry for explicit
6
+ * `interf web stop` lookup.
9
7
  *
10
8
  * Entry shape:
11
9
  * {
12
10
  * pid, host, port, url, started_at,
13
- * workspaces: [{ control_path, registered_at, last_activity }],
14
11
  * }
15
12
  *
16
13
  * Atomic write: write to a sibling tmp file, then rename. Concurrent
@@ -20,7 +17,7 @@
20
17
  import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync, } from "node:fs";
21
18
  import { dirname } from "node:path";
22
19
  import { interfHomeRoot, serviceRegistryPath, } from "../contracts/lib/preparation-paths.js";
23
- import { ServiceRegistrySchema, ServiceRegistryEntrySchema, ServiceRegistryWorkspaceSchema, } from "./lib/schema.js";
20
+ import { ServiceRegistrySchema, ServiceRegistryEntrySchema, } from "./lib/schema.js";
24
21
  /** Returns true when the OS still has a process with this pid. */
25
22
  function isProcessAlive(pid) {
26
23
  if (!Number.isInteger(pid) || pid <= 0)
@@ -108,8 +105,7 @@ export function writeServiceRegistry(services) {
108
105
  }
109
106
  /**
110
107
  * Insert or update the entry for this process's pid. If the pid was
111
- * already registered, replaces it (so callers can use this to update the
112
- * workspace list).
108
+ * already registered, replaces it.
113
109
  */
114
110
  export function registerServiceLocally(entry) {
115
111
  const parsed = ServiceRegistryEntrySchema.parse(entry);
@@ -123,15 +119,4 @@ export function unregisterService(pid) {
123
119
  const remaining = readServiceRegistry().filter((service) => service.pid !== pid);
124
120
  writeServiceRegistry(remaining);
125
121
  }
126
- /** Update the workspaces array on the entry for this process's pid. */
127
- export function updateLocalServiceWorkspaces(pid, options) {
128
- return registerServiceLocally(ServiceRegistryEntrySchema.parse({
129
- pid,
130
- host: options.host,
131
- port: options.port,
132
- url: options.url,
133
- started_at: options.started_at,
134
- workspaces: options.workspaces.map((workspace) => ServiceRegistryWorkspaceSchema.parse(workspace)),
135
- }));
136
- }
137
122
  export { interfHomeRoot, serviceRegistryPath };
@@ -16,8 +16,8 @@ export declare const TestCaseSchema: z.ZodObject<{
16
16
  }, z.core.$strip>;
17
17
  export declare const TestSpecSchema: z.ZodObject<{
18
18
  type: z.ZodEnum<{
19
+ "verifiable-context": "verifiable-context";
19
20
  "source-files": "source-files";
20
- compiled: "compiled";
21
21
  }>;
22
22
  name: z.ZodString;
23
23
  description: z.ZodOptional<z.ZodString>;
@@ -60,12 +60,12 @@ export declare const TestCaseResultSchema: z.ZodObject<{
60
60
  export declare const TestTargetResultSchema: z.ZodObject<{
61
61
  target: z.ZodObject<{
62
62
  type: z.ZodEnum<{
63
+ "verifiable-context": "verifiable-context";
63
64
  "source-files": "source-files";
64
- compiled: "compiled";
65
65
  }>;
66
66
  name: z.ZodString;
67
67
  path: z.ZodString;
68
- method: z.ZodString;
68
+ build_plan: z.ZodString;
69
69
  }, z.core.$strip>;
70
70
  sandbox_path: z.ZodOptional<z.ZodString>;
71
71
  ok: z.ZodBoolean;
@@ -98,8 +98,8 @@ export declare const TestTargetRunSchema: z.ZodObject<{
98
98
  id: z.ZodString;
99
99
  name: z.ZodString;
100
100
  type: z.ZodEnum<{
101
+ "verifiable-context": "verifiable-context";
101
102
  "source-files": "source-files";
102
- compiled: "compiled";
103
103
  }>;
104
104
  file: z.ZodString;
105
105
  description: z.ZodOptional<z.ZodString>;
@@ -138,12 +138,12 @@ export declare const TestTargetRunSchema: z.ZodObject<{
138
138
  results: z.ZodArray<z.ZodObject<{
139
139
  target: z.ZodObject<{
140
140
  type: z.ZodEnum<{
141
+ "verifiable-context": "verifiable-context";
141
142
  "source-files": "source-files";
142
- compiled: "compiled";
143
143
  }>;
144
144
  name: z.ZodString;
145
145
  path: z.ZodString;
146
- method: z.ZodString;
146
+ build_plan: z.ZodString;
147
147
  }, z.core.$strip>;
148
148
  sandbox_path: z.ZodOptional<z.ZodString>;
149
149
  ok: z.ZodBoolean;
@@ -170,8 +170,8 @@ export declare const TestTargetRunSchema: z.ZodObject<{
170
170
  }, z.core.$strip>>;
171
171
  }, z.core.$strip>;
172
172
  export declare const TestRunModeSchema: z.ZodEnum<{
173
+ "verifiable-context": "verifiable-context";
173
174
  "source-files": "source-files";
174
- compiled: "compiled";
175
175
  both: "both";
176
176
  }>;
177
177
  export declare const TestRunTargetSummarySchema: z.ZodObject<{
@@ -184,28 +184,28 @@ export declare const TestRunTargetSummarySchema: z.ZodObject<{
184
184
  total_checks: z.ZodNumber;
185
185
  target: z.ZodObject<{
186
186
  type: z.ZodEnum<{
187
+ "verifiable-context": "verifiable-context";
187
188
  "source-files": "source-files";
188
- compiled: "compiled";
189
189
  }>;
190
190
  name: z.ZodString;
191
191
  path: z.ZodString;
192
- method: z.ZodString;
192
+ build_plan: z.ZodString;
193
193
  }, z.core.$strip>;
194
194
  }, z.core.$strip>;
195
- export declare const ReadinessCheckRunSchema: z.ZodObject<{
195
+ export declare const ReadinessCheckRunSchema: z.ZodPreprocess<z.ZodObject<{
196
196
  kind: z.ZodLiteral<"interf-readiness-check-run">;
197
197
  version: z.ZodLiteral<1>;
198
198
  generated_at: z.ZodString;
199
199
  mode: z.ZodEnum<{
200
+ "verifiable-context": "verifiable-context";
200
201
  "source-files": "source-files";
201
- compiled: "compiled";
202
202
  both: "both";
203
203
  }>;
204
204
  source_path: z.ZodString;
205
205
  checks_fingerprint: z.ZodOptional<z.ZodString>;
206
206
  preparation: z.ZodObject<{
207
207
  name: z.ZodString;
208
- portable_context_path: z.ZodNullable<z.ZodString>;
208
+ verifiable_context_path: z.ZodNullable<z.ZodString>;
209
209
  }, z.core.$strip>;
210
210
  source_files: z.ZodNullable<z.ZodObject<{
211
211
  label: z.ZodString;
@@ -217,15 +217,15 @@ export declare const ReadinessCheckRunSchema: z.ZodObject<{
217
217
  total_checks: z.ZodNumber;
218
218
  target: z.ZodObject<{
219
219
  type: z.ZodEnum<{
220
+ "verifiable-context": "verifiable-context";
220
221
  "source-files": "source-files";
221
- compiled: "compiled";
222
222
  }>;
223
223
  name: z.ZodString;
224
224
  path: z.ZodString;
225
- method: z.ZodString;
225
+ build_plan: z.ZodString;
226
226
  }, z.core.$strip>;
227
227
  }, z.core.$strip>>;
228
- compiled: z.ZodNullable<z.ZodObject<{
228
+ verifiable_context: z.ZodNullable<z.ZodObject<{
229
229
  label: z.ZodString;
230
230
  run_path: z.ZodString;
231
231
  ok: z.ZodBoolean;
@@ -235,19 +235,19 @@ export declare const ReadinessCheckRunSchema: z.ZodObject<{
235
235
  total_checks: z.ZodNumber;
236
236
  target: z.ZodObject<{
237
237
  type: z.ZodEnum<{
238
+ "verifiable-context": "verifiable-context";
238
239
  "source-files": "source-files";
239
- compiled: "compiled";
240
240
  }>;
241
241
  name: z.ZodString;
242
242
  path: z.ZodString;
243
- method: z.ZodString;
243
+ build_plan: z.ZodString;
244
244
  }, z.core.$strip>;
245
245
  }, z.core.$strip>>;
246
246
  summary: z.ZodObject<{
247
247
  source_files_pass_rate: z.ZodNullable<z.ZodNumber>;
248
- portable_context_pass_rate: z.ZodNullable<z.ZodNumber>;
248
+ verifiable_context_pass_rate: z.ZodNullable<z.ZodNumber>;
249
249
  }, z.core.$strip>;
250
- }, z.core.$strip>;
250
+ }, z.core.$strip>>;
251
251
  export type { TestCaseExpect, TestTargetType };
252
252
  export type TestCase = z.infer<typeof TestCaseSchema>;
253
253
  export type TestSpec = z.infer<typeof TestSpecSchema>;
@@ -46,7 +46,7 @@ export const TestTargetResultSchema = z.object({
46
46
  type: TestTargetTypeSchema,
47
47
  name: z.string(),
48
48
  path: z.string(),
49
- method: z.string(),
49
+ build_plan: z.string(),
50
50
  }),
51
51
  sandbox_path: z.string().optional(),
52
52
  ok: z.boolean(),
@@ -81,7 +81,7 @@ export const TestTargetRunSchema = z.object({
81
81
  target_count: z.number(),
82
82
  results: z.array(TestTargetResultSchema),
83
83
  });
84
- export const TestRunModeSchema = z.enum(["source-files", "compiled", "both"]);
84
+ export const TestRunModeSchema = z.enum(["source-files", "verifiable-context", "both"]);
85
85
  export const TestRunTargetSummarySchema = z.object({
86
86
  label: z.string(),
87
87
  run_path: z.string(),
@@ -94,10 +94,38 @@ export const TestRunTargetSummarySchema = z.object({
94
94
  type: TestTargetTypeSchema,
95
95
  name: z.string(),
96
96
  path: z.string(),
97
- method: z.string(),
97
+ build_plan: z.string(),
98
98
  }),
99
99
  });
100
- export const ReadinessCheckRunSchema = z.object({
100
+ function mapReadinessCheckRun(value) {
101
+ if (!value || typeof value !== "object" || Array.isArray(value))
102
+ return value;
103
+ const record = value;
104
+ const preparation = record.preparation && typeof record.preparation === "object" && !Array.isArray(record.preparation)
105
+ ? record.preparation
106
+ : null;
107
+ const summary = record.summary && typeof record.summary === "object" && !Array.isArray(record.summary)
108
+ ? record.summary
109
+ : null;
110
+ return {
111
+ ...record,
112
+ mode: record.mode,
113
+ preparation: preparation
114
+ ? {
115
+ ...preparation,
116
+ verifiable_context_path: preparation.verifiable_context_path,
117
+ }
118
+ : record.preparation,
119
+ verifiable_context: record.verifiable_context,
120
+ summary: summary
121
+ ? {
122
+ ...summary,
123
+ verifiable_context_pass_rate: summary.verifiable_context_pass_rate,
124
+ }
125
+ : record.summary,
126
+ };
127
+ }
128
+ export const ReadinessCheckRunSchema = z.preprocess(mapReadinessCheckRun, z.object({
101
129
  kind: z.literal("interf-readiness-check-run"),
102
130
  version: z.literal(1),
103
131
  generated_at: z.string(),
@@ -106,12 +134,12 @@ export const ReadinessCheckRunSchema = z.object({
106
134
  checks_fingerprint: z.string().min(1).optional(),
107
135
  preparation: z.object({
108
136
  name: PreparationNameSchema,
109
- portable_context_path: z.string().nullable(),
137
+ verifiable_context_path: z.string().nullable(),
110
138
  }),
111
139
  source_files: TestRunTargetSummarySchema.nullable(),
112
- compiled: TestRunTargetSummarySchema.nullable(),
140
+ verifiable_context: TestRunTargetSummarySchema.nullable(),
113
141
  summary: z.object({
114
142
  source_files_pass_rate: z.number().nullable(),
115
- portable_context_pass_rate: z.number().nullable(),
143
+ verifiable_context_pass_rate: z.number().nullable(),
116
144
  }),
117
- });
145
+ }));
@@ -1,4 +1,4 @@
1
- import type { MethodExecutor } from "../agents/lib/executors.js";
1
+ import type { AgentExecutor } from "../agents/lib/executors.js";
2
2
  import type { SourcePreparationConfig } from "../../project/lib/schema.js";
3
3
  import type { TestTargetType } from "../../contracts/lib/schema.js";
4
4
  import { type TestTargetCandidate, type TestTargetResult } from "./verify.js";
@@ -13,14 +13,14 @@ export interface SavedReadinessCheckOutcome {
13
13
  export interface ReadinessCheckRunResult {
14
14
  sourcePath: string;
15
15
  preparationConfig: SourcePreparationConfig;
16
- portableContextPath: string | null;
16
+ verifiableContextPath: string | null;
17
17
  /**
18
18
  * 0.17 — restored. Populated when the verify run targets
19
- * `source-files`; null when targeting `compiled`. Aggregates back
19
+ * `source-files`; null when targeting verifiable context. Aggregates back
20
20
  * onto the saved `ReadinessCheckRun` payload's `source_files` field.
21
21
  */
22
22
  sourceFilesOutcome: SavedReadinessCheckOutcome | null;
23
- compiledOutcome: SavedReadinessCheckOutcome | null;
23
+ verifiableContextOutcome: SavedReadinessCheckOutcome | null;
24
24
  readinessRunPath: string | null;
25
25
  readinessRun: ReadinessCheckRun | null;
26
26
  }
@@ -38,46 +38,45 @@ export declare function readCurrentSavedReadinessCheckRun(options: {
38
38
  };
39
39
  export declare function saveReadinessCheckRun(options: {
40
40
  sourcePath: string;
41
- portableContextPath: string | null;
41
+ verifiableContextPath: string | null;
42
42
  preparationName: string;
43
43
  checksFingerprint: string;
44
44
  sourceFilesOutcome?: SavedReadinessCheckOutcome | null;
45
- compiledOutcome: SavedReadinessCheckOutcome | null;
45
+ verifiableContextOutcome: SavedReadinessCheckOutcome | null;
46
46
  }): string;
47
- export declare function runSavedPortableContextCheck(options: {
47
+ export declare function runSavedVerifiableContextCheck(options: {
48
48
  sourcePath: string;
49
49
  preparationConfig: SourcePreparationConfig;
50
- executor?: MethodExecutor | null;
51
- portableContextPath?: string | null;
50
+ executor?: AgentExecutor | null;
51
+ verifiableContextPath?: string | null;
52
52
  preserveSandboxes?: TestSandboxRetentionMode;
53
53
  runSuffix?: string | null;
54
54
  }): Promise<SavedReadinessCheckOutcome | null>;
55
55
  /**
56
56
  * 0.17 — restored. Runs the saved readiness checks against the source
57
- * folder baseline (no portable-context indirection) so users can see how
58
- * much value the Method actually adds. The lower-level `verify-execution`
57
+ * folder baseline (no verifiable-context indirection) so users can see how
58
+ * much value the Build Plan actually adds. The lower-level `verify-execution`
59
59
  * + `verify-sandbox` source-files paths have stayed in tree since 0.13;
60
60
  * this is the orchestrator hook that was missing.
61
61
  */
62
62
  export declare function runSavedSourceFilesCheck(options: {
63
63
  sourcePath: string;
64
64
  preparationConfig: SourcePreparationConfig;
65
- executor?: MethodExecutor | null;
65
+ executor?: AgentExecutor | null;
66
66
  preserveSandboxes?: TestSandboxRetentionMode;
67
67
  runSuffix?: string | null;
68
68
  }): Promise<SavedReadinessCheckOutcome | null>;
69
69
  export declare function runReadinessChecksForExecutor(options: {
70
70
  sourcePath: string;
71
71
  preparationConfig: SourcePreparationConfig;
72
- portableContextPath: string | null;
73
- executor?: MethodExecutor | null;
72
+ verifiableContextPath: string | null;
73
+ executor?: AgentExecutor | null;
74
74
  preserveSandboxes?: TestSandboxRetentionMode;
75
75
  runSuffix?: string | null;
76
76
  saveLatest?: boolean;
77
77
  /**
78
78
  * 0.17 — selects which target the readiness checks judge against.
79
- * Defaults to `compiled` for backward compatibility with existing
80
- * callers.
79
+ * Defaults to verifiable context.
81
80
  */
82
81
  target?: TestTargetType;
83
82
  }): Promise<ReadinessCheckRunResult>;
@@ -1,11 +1,11 @@
1
1
  import { existsSync, mkdirSync, writeFileSync } from "node:fs";
2
2
  import { dirname, join } from "node:path";
3
- import { buildTestSpecFromCompiledPreparationConfig, buildTestSpecFromSourceFolderConfig, fingerprintReadinessChecks, resolveConfiguredSourceFolderPath, resolveSourcePreparationPath, } from "../../project/source-config.js";
4
- import { asPreparationDataDir, preparationLatestReadinessRunPath, preparationLatestReadinessSummaryPath, preparationTestRunPath, preparationTestRunsRoot, preparationTestsRoot, normalizePreparationTestRunId, preparationPortableContextPath, } from "../../contracts/lib/preparation-paths.js";
5
- import { testRootForCompiled } from "../compile/compiled-paths.js";
3
+ import { buildTestSpecFromPreparationConfig, buildTestSpecFromSourceFolderConfig, fingerprintReadinessChecks, resolveConfiguredSourceFolderPath, resolveSourcePreparationPath, } from "../../project/source-config.js";
4
+ import { asPreparationDataDir, preparationLatestReadinessRunPath, preparationLatestReadinessSummaryPath, preparationTestRunPath, preparationTestRunsRoot, preparationTestsRoot, normalizePreparationTestRunId, preparationVerifiableContextPath, } from "../../contracts/lib/preparation-paths.js";
5
+ import { testRootForVerifiableContext } from "../build/verifiable-context-paths.js";
6
6
  import { readJsonFileWithSchema } from "../../contracts/utils/parse.js";
7
- import { resolveMethodId } from "../../methods/method-resolution.js";
8
- import { createCompiledTestTarget, createSourceFilesTestTarget, runTargetTestsAuto, saveTargetTestRun, } from "./verify.js";
7
+ import { resolveBuildPlanId } from "../../build-plans/build-plan-resolution.js";
8
+ import { createVerifiableContextTestTarget, createSourceFilesTestTarget, runTargetTestsAuto, saveTargetTestRun, } from "./verify.js";
9
9
  import { ReadinessCheckRunSchema, } from "./lib/schema.js";
10
10
  export function readinessPassRate(outcome) {
11
11
  return outcome.result.totalCases > 0
@@ -44,15 +44,15 @@ function renderLatestSummaryMarkdown(payload) {
44
44
  if (payload.source_files) {
45
45
  lines.push(`| Source files | \`${payload.source_files.passed_cases}/${payload.source_files.total_cases}\` |`);
46
46
  }
47
- if (payload.compiled) {
48
- lines.push(`| Portable Context | \`${payload.compiled.passed_cases}/${payload.compiled.total_cases}\` |`);
47
+ if (payload.verifiable_context) {
48
+ lines.push(`| Verifiable Context | \`${payload.verifiable_context.passed_cases}/${payload.verifiable_context.total_cases}\` |`);
49
49
  }
50
50
  lines.push("");
51
51
  if (payload.source_files) {
52
52
  lines.push(`- Latest source-files run: ${payload.source_files.run_path}`);
53
53
  }
54
- if (payload.compiled) {
55
- lines.push(`- Latest portable-context run: ${payload.compiled.run_path}`);
54
+ if (payload.verifiable_context) {
55
+ lines.push(`- Latest verifiable-context run: ${payload.verifiable_context.run_path}`);
56
56
  }
57
57
  return `${lines.join("\n")}\n`;
58
58
  }
@@ -80,12 +80,12 @@ export function readCurrentSavedReadinessCheckRun(options) {
80
80
  }
81
81
  return { readinessRun: latestRun, stale: false };
82
82
  }
83
- function modeForOutcomes(sourceFilesOutcome, compiledOutcome) {
84
- if (sourceFilesOutcome && compiledOutcome)
83
+ function modeForOutcomes(sourceFilesOutcome, verifiableContextOutcome) {
84
+ if (sourceFilesOutcome && verifiableContextOutcome)
85
85
  return "both";
86
86
  if (sourceFilesOutcome)
87
87
  return "source-files";
88
- return "compiled";
88
+ return "verifiable-context";
89
89
  }
90
90
  function passRateOf(summary) {
91
91
  if (!summary)
@@ -100,8 +100,8 @@ export function saveReadinessCheckRun(options) {
100
100
  const sourceFilesSummary = sourceFilesOutcome
101
101
  ? summarizeSavedTestOutcome("Source Files", sourceFilesOutcome)
102
102
  : null;
103
- const compiledSummary = options.compiledOutcome
104
- ? summarizeSavedTestOutcome("Portable Context", options.compiledOutcome)
103
+ const verifiableContextSummary = options.verifiableContextOutcome
104
+ ? summarizeSavedTestOutcome("Verifiable Context", options.verifiableContextOutcome)
105
105
  : null;
106
106
  const payload = {
107
107
  kind: "interf-readiness-check-run",
@@ -109,63 +109,63 @@ export function saveReadinessCheckRun(options) {
109
109
  generated_at: generatedAt,
110
110
  // 0.17 — verify carries the target it ran against on the wire so
111
111
  // dashboards and the UI can show source-files baselines alongside
112
- // compiled judgments. `both` is reserved for future combined runs.
113
- mode: modeForOutcomes(sourceFilesOutcome, options.compiledOutcome),
112
+ // verifiable-context judgments. `both` is reserved for future combined runs.
113
+ mode: modeForOutcomes(sourceFilesOutcome, options.verifiableContextOutcome),
114
114
  source_path: options.sourcePath,
115
115
  checks_fingerprint: options.checksFingerprint,
116
116
  preparation: {
117
117
  name: options.preparationName,
118
- portable_context_path: options.portableContextPath,
118
+ verifiable_context_path: options.verifiableContextPath,
119
119
  },
120
120
  source_files: sourceFilesSummary,
121
- compiled: compiledSummary,
121
+ verifiable_context: verifiableContextSummary,
122
122
  summary: {
123
123
  source_files_pass_rate: passRateOf(sourceFilesSummary),
124
- portable_context_pass_rate: passRateOf(compiledSummary),
124
+ verifiable_context_pass_rate: passRateOf(verifiableContextSummary),
125
125
  },
126
126
  };
127
127
  const latestStatePath = preparationLatestReadinessRunPath(asPreparationDataDir(options.sourcePath), options.preparationName);
128
128
  mkdirSync(dirname(latestStatePath), { recursive: true });
129
129
  writeFileSync(latestStatePath, `${JSON.stringify(payload, null, 2)}\n`);
130
130
  writeFileSync(preparationLatestReadinessSummaryPath(asPreparationDataDir(options.sourcePath), options.preparationName), renderLatestSummaryMarkdown(payload));
131
- if (options.portableContextPath) {
132
- mkdirSync(testRootForCompiled(options.portableContextPath), { recursive: true });
133
- writeFileSync(join(testRootForCompiled(options.portableContextPath), "latest.json"), `${JSON.stringify(payload, null, 2)}\n`);
131
+ if (options.verifiableContextPath) {
132
+ mkdirSync(testRootForVerifiableContext(options.verifiableContextPath), { recursive: true });
133
+ writeFileSync(join(testRootForVerifiableContext(options.verifiableContextPath), "latest.json"), `${JSON.stringify(payload, null, 2)}\n`);
134
134
  }
135
135
  return latestStatePath;
136
136
  }
137
- export async function runSavedPortableContextCheck(options) {
138
- const portableContextPath = options.portableContextPath
139
- ?? portableContextPathForPreparation(options.sourcePath, options.preparationConfig.name);
140
- const spec = buildTestSpecFromCompiledPreparationConfig({
141
- compiledPath: portableContextPath,
142
- targetType: "compiled",
137
+ export async function runSavedVerifiableContextCheck(options) {
138
+ const verifiableContextPath = options.verifiableContextPath
139
+ ?? verifiableContextPathForPreparation(options.sourcePath, options.preparationConfig.name);
140
+ const spec = buildTestSpecFromPreparationConfig({
141
+ verifiableContextPath: verifiableContextPath,
142
+ targetType: "verifiable-context",
143
143
  });
144
144
  if (!spec)
145
145
  return null;
146
- const target = createCompiledTestTarget(portableContextPath, options.preparationConfig.name, resolveMethodId(options.preparationConfig));
146
+ const target = createVerifiableContextTestTarget(verifiableContextPath, options.preparationConfig.name, resolveBuildPlanId(options.preparationConfig));
147
147
  if (!target.eligible)
148
148
  return null;
149
149
  const run = await runTargetTestsAuto(options.sourcePath, spec, [target], {
150
150
  executor: options.executor,
151
151
  preserveSandboxes: options.preserveSandboxes ?? "on-failure",
152
- artifactRootPath: portableContextPath,
152
+ artifactRootPath: verifiableContextPath,
153
153
  });
154
154
  const result = run.results[0];
155
155
  if (!result)
156
156
  return null;
157
- const compiledRunPath = saveTargetTestRun(portableContextPath, run);
157
+ const verifiableContextRunPath = saveTargetTestRun(verifiableContextPath, run);
158
158
  const preparationRunPath = writePreparationTargetRun({
159
159
  prepDataDir: options.sourcePath,
160
160
  preparationName: options.preparationConfig.name,
161
- target: "compiled",
161
+ target: "verifiable-context",
162
162
  generatedAt: run.generated_at,
163
163
  runId: normalizePreparationTestRunId(spec.id),
164
164
  runSuffix: options.runSuffix,
165
165
  payload: run,
166
166
  });
167
167
  return {
168
- runPath: compiledRunPath,
168
+ runPath: verifiableContextRunPath,
169
169
  displayRunPath: preparationRunPath,
170
170
  target,
171
171
  result,
@@ -173,8 +173,8 @@ export async function runSavedPortableContextCheck(options) {
173
173
  }
174
174
  /**
175
175
  * 0.17 — restored. Runs the saved readiness checks against the source
176
- * folder baseline (no portable-context indirection) so users can see how
177
- * much value the Method actually adds. The lower-level `verify-execution`
176
+ * folder baseline (no verifiable-context indirection) so users can see how
177
+ * much value the Build Plan actually adds. The lower-level `verify-execution`
178
178
  * + `verify-sandbox` source-files paths have stayed in tree since 0.13;
179
179
  * this is the orchestrator hook that was missing.
180
180
  */
@@ -215,13 +215,13 @@ export async function runSavedSourceFilesCheck(options) {
215
215
  };
216
216
  }
217
217
  export async function runReadinessChecksForExecutor(options) {
218
- const target = options.target ?? "compiled";
219
- const compiledOutcome = target === "compiled"
220
- ? await runSavedPortableContextCheck({
218
+ const target = options.target ?? "verifiable-context";
219
+ const verifiableContextOutcome = target === "verifiable-context"
220
+ ? await runSavedVerifiableContextCheck({
221
221
  sourcePath: options.sourcePath,
222
222
  preparationConfig: options.preparationConfig,
223
223
  executor: options.executor,
224
- portableContextPath: options.portableContextPath,
224
+ verifiableContextPath: options.verifiableContextPath,
225
225
  preserveSandboxes: options.preserveSandboxes,
226
226
  runSuffix: options.runSuffix,
227
227
  })
@@ -235,16 +235,16 @@ export async function runReadinessChecksForExecutor(options) {
235
235
  runSuffix: options.runSuffix,
236
236
  })
237
237
  : null;
238
- const modeSatisfied = Boolean(compiledOutcome) || Boolean(sourceFilesOutcome);
238
+ const modeSatisfied = Boolean(verifiableContextOutcome) || Boolean(sourceFilesOutcome);
239
239
  const shouldSave = options.saveLatest !== false;
240
240
  const readinessRunPath = shouldSave && modeSatisfied
241
241
  ? saveReadinessCheckRun({
242
242
  sourcePath: options.sourcePath,
243
- portableContextPath: options.portableContextPath,
243
+ verifiableContextPath: options.verifiableContextPath,
244
244
  preparationName: options.preparationConfig.name,
245
245
  checksFingerprint: fingerprintReadinessChecks(options.preparationConfig.checks),
246
246
  sourceFilesOutcome,
247
- compiledOutcome,
247
+ verifiableContextOutcome,
248
248
  })
249
249
  : null;
250
250
  const readinessRun = shouldSave && modeSatisfied
@@ -253,13 +253,13 @@ export async function runReadinessChecksForExecutor(options) {
253
253
  return {
254
254
  sourcePath: options.sourcePath,
255
255
  preparationConfig: options.preparationConfig,
256
- portableContextPath: options.portableContextPath,
256
+ verifiableContextPath: options.verifiableContextPath,
257
257
  sourceFilesOutcome,
258
- compiledOutcome,
258
+ verifiableContextOutcome,
259
259
  readinessRunPath,
260
260
  readinessRun,
261
261
  };
262
262
  }
263
- function portableContextPathForPreparation(sourcePath, preparationName) {
264
- return preparationPortableContextPath(asPreparationDataDir(sourcePath), preparationName);
263
+ function verifiableContextPathForPreparation(sourcePath, preparationName) {
264
+ return preparationVerifiableContextPath(asPreparationDataDir(sourcePath), preparationName);
265
265
  }
@@ -1,13 +1,13 @@
1
- import { type MethodExecutor } from "../agents/lib/executors.js";
1
+ import { type AgentExecutor } from "../agents/lib/executors.js";
2
2
  import type { TestTargetRun, TestTargetCandidate, LoadedTestSpec } from "./verify-types.js";
3
3
  import { type TestSandboxRetentionMode } from "./verify-sandbox.js";
4
4
  export declare function runTargetTests(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[]): TestTargetRun;
5
- export declare function runTargetTestsWithJudge(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[], executor: MethodExecutor, options?: {
5
+ export declare function runTargetTestsWithJudge(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[], executor: AgentExecutor, options?: {
6
6
  preserveSandboxes?: TestSandboxRetentionMode;
7
7
  artifactRootPath?: string;
8
8
  }): Promise<TestTargetRun>;
9
9
  export declare function runTargetTestsAuto(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[], options?: {
10
- executor?: MethodExecutor | null;
10
+ executor?: AgentExecutor | null;
11
11
  preserveSandboxes?: TestSandboxRetentionMode;
12
12
  artifactRootPath?: string;
13
13
  }): Promise<TestTargetRun>;