@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
@@ -2,43 +2,43 @@ import { cpSync, existsSync, mkdirSync, mkdtempSync, rmSync } from "node:fs";
2
2
  import { tmpdir } from "node:os";
3
3
  import { dirname, join } from "node:path";
4
4
  import chalk from "chalk";
5
- import { compileCompiled, } from "./compile/method-runs.js";
5
+ import { buildVerifiableContext, } from "./build/build-plan-runs.js";
6
6
  import { readInterfConfig } from "../project/interf.js";
7
7
  import { resolveLocalExecutor, } from "./agents/lib/executors.js";
8
- import { formatMethodExecutionProfile } from "./agents/lib/execution-profile.js";
8
+ import { formatAgentExecutionProfile } from "./agents/lib/execution-profile.js";
9
9
  import { loadAgentsRegistry } from "./agents/registry.js";
10
10
  import { buildRoleExecutorBundle } from "./agents/role-executors.js";
11
- import { clearCompiledRuntimeDerivedArtifacts, } from "./compile/reset.js";
12
- import { formatActiveCompiledMethodStageStep, resolveRequiredCompiledMethodFromConfig, } from "../methods/package/method-definitions.js";
11
+ import { clearBuildRuntimeDerivedArtifacts, } from "./build/reset.js";
12
+ import { formatActiveBuildPlanStageLabel, resolveRequiredBuildPlanFromConfig, } from "../build-plans/package/build-plan-definitions.js";
13
13
  import { createRunEventId, createRunEventTimestamp, } from "./execution/events.js";
14
- import { loadCompiledPreparationConfig, resolvePreparationCompileMaxAttempts, resolvePreparationCompileMaxLoops, } from "../project/source-config.js";
15
- import { runMethodImprovementLoop } from "../methods/authoring/method-improvement.js";
16
- import { stageExecutionShellsRoot, methodPackagePathForCompiled, } from "./compile/compiled-paths.js";
17
- import { listCompiledSchemaArtifacts, readCompiledSchemaFile } from "./compile/compiled-schema.js";
18
- import { initializeCompiledRuntimeState } from "./compile/state.js";
19
- import { readinessPassRate, runReadinessChecksForExecutor, runSavedPortableContextCheck, } from "./verify/readiness-check-run.js";
20
- import { runMethodAuthoringDraft, } from "../methods/authoring/method-authoring.js";
14
+ import { loadVerifiableContextPreparationConfig, resolvePreparationBuildMaxAttempts, resolvePreparationBuildMaxLoops, } from "../project/source-config.js";
15
+ import { runBuildPlanImprovementLoop } from "../build-plans/authoring/build-plan-improvement.js";
16
+ import { stageExecutionShellsRoot, buildPlanPackagePathForVerifiableContext, } from "./build/verifiable-context-paths.js";
17
+ import { listBuildPlanContextArtifacts, readBuildPlanContextFile } from "./build/verifiable-context-schema.js";
18
+ import { initializeBuildRuntimeState } from "./build/state.js";
19
+ import { readinessPassRate, runReadinessChecksForExecutor, runSavedVerifiableContextCheck, } from "./verify/readiness-check-run.js";
20
+ import { runBuildPlanAuthoringDraft, } from "../build-plans/authoring/build-plan-authoring.js";
21
21
  import { draftReadinessChecks, } from "./readiness-check-draft.js";
22
22
  import { planActionProposalWithExecutor, } from "./action-planner.js";
23
23
  import { ActionProposalPlanSchema, } from "./lib/schema.js";
24
- function printCompileFailure(compiledPath, failedStage) {
25
- resolveRequiredCompiledMethodFromConfig(readInterfConfig(compiledPath), `.interf/interf.json for ${compiledPath}`);
26
- let failedStageLabel = failedStage ? `Stage "${failedStage}"` : "Compile";
24
+ function printBuildFailure(verifiableContextPath, failedStage) {
25
+ resolveRequiredBuildPlanFromConfig(readInterfConfig(verifiableContextPath), `.interf/interf.json for ${verifiableContextPath}`);
26
+ let failedStageLabel = failedStage ? `Stage "${failedStage}"` : "Build";
27
27
  try {
28
- failedStageLabel = formatActiveCompiledMethodStageStep(compiledPath, failedStage ?? "compile");
28
+ failedStageLabel = formatActiveBuildPlanStageLabel(verifiableContextPath, failedStage ?? "build");
29
29
  }
30
30
  catch {
31
- // Keep the original failure visible even when the failure is outside a declared Method stage.
31
+ // Keep the original failure visible even when the failure is outside a declared Build Plan stage.
32
32
  }
33
33
  console.log(chalk.red(` ${failedStageLabel} failed.`));
34
34
  }
35
35
  function testScore(outcome) {
36
36
  return (outcome.result.passedCases * 1000) + outcome.result.passedChecks;
37
37
  }
38
- async function compileCompiledWithReporter(executor, compiledPath, options = {}) {
38
+ async function buildVerifiableContextWithReporter(executor, verifiableContextPath, options = {}) {
39
39
  console.log();
40
- console.log(chalk.bold(` ${options.heading ?? "Building Portable Context..."}`));
41
- const profileLabel = formatMethodExecutionProfile(executor.executionProfile);
40
+ console.log(chalk.bold(` ${options.heading ?? "Building Verifiable Context..."}`));
41
+ const profileLabel = formatAgentExecutionProfile(executor.executionProfile);
42
42
  if (profileLabel) {
43
43
  console.log(chalk.dim(` Execution profile: ${profileLabel}`));
44
44
  }
@@ -47,10 +47,10 @@ async function compileCompiledWithReporter(executor, compiledPath, options = {})
47
47
  line: (message) => console.log(chalk.dim(` ${message}`)),
48
48
  blankLine: () => console.log(),
49
49
  };
50
- const result = await compileCompiled({
50
+ const result = await buildVerifiableContext({
51
51
  executor,
52
52
  resolveStageExecutor: options.resolveStageExecutor,
53
- compiledPath,
53
+ verifiableContextPath,
54
54
  reporter,
55
55
  preserveStageShells: options.preserveStageShells,
56
56
  runId: options.runId,
@@ -59,7 +59,7 @@ async function compileCompiledWithReporter(executor, compiledPath, options = {})
59
59
  if (!result.ok)
60
60
  return result;
61
61
  console.log();
62
- console.log(chalk.green(` ${options.successMessage ?? "Portable Context ready."}`));
62
+ console.log(chalk.green(` ${options.successMessage ?? "Verifiable context ready."}`));
63
63
  return result;
64
64
  }
65
65
  function printSavedReadinessOutcome(prefix, outcome) {
@@ -85,9 +85,9 @@ function printSavedReadinessOutcome(prefix, outcome) {
85
85
  }
86
86
  console.log(chalk.dim(` Saved run: ${outcome.displayRunPath ?? outcome.runPath}`));
87
87
  }
88
- function bestVariationRestorePaths(compiledPath) {
89
- const schema = readCompiledSchemaFile(methodPackagePathForCompiled(compiledPath));
90
- const artifactPaths = (schema ? listCompiledSchemaArtifacts(schema) : [])
88
+ function bestVariationRestorePaths(verifiableContextPath) {
89
+ const schema = readBuildPlanContextFile(buildPlanPackagePathForVerifiableContext(verifiableContextPath));
90
+ const artifactPaths = (schema ? listBuildPlanContextArtifacts(schema) : [])
91
91
  .filter((artifact) => artifact.kind !== "runtime")
92
92
  .map((artifact) => artifact.path);
93
93
  return [
@@ -98,7 +98,7 @@ function bestVariationRestorePaths(compiledPath) {
98
98
  ".agents",
99
99
  ".cursor",
100
100
  ".interf/interf.json",
101
- ".interf/method",
101
+ ".interf/build-plan",
102
102
  ...artifactPaths,
103
103
  ];
104
104
  }
@@ -114,23 +114,23 @@ function copyRelativePathIfPresent(sourceRoot, targetRoot, relativePath) {
114
114
  errorOnExist: false,
115
115
  });
116
116
  }
117
- function snapshotCompiledBestState(compiledPath) {
118
- const snapshotRoot = mkdtempSync(join(tmpdir(), "interf-compile-attempt-"));
119
- const snapshotPath = join(snapshotRoot, "compiled");
120
- for (const relativePath of bestVariationRestorePaths(compiledPath)) {
121
- copyRelativePathIfPresent(compiledPath, snapshotPath, relativePath);
117
+ function snapshotBestBuildState(verifiableContextPath) {
118
+ const snapshotRoot = mkdtempSync(join(tmpdir(), "interf-build-attempt-"));
119
+ const snapshotPath = join(snapshotRoot, "verifiable-context");
120
+ for (const relativePath of bestVariationRestorePaths(verifiableContextPath)) {
121
+ copyRelativePathIfPresent(verifiableContextPath, snapshotPath, relativePath);
122
122
  }
123
123
  return snapshotPath;
124
124
  }
125
- function restoreCompiledBestState(snapshotPath, compiledPath) {
126
- for (const relativePath of bestVariationRestorePaths(compiledPath)) {
127
- rmSync(join(compiledPath, relativePath), { recursive: true, force: true });
128
- copyRelativePathIfPresent(snapshotPath, compiledPath, relativePath);
125
+ function restoreBestBuildState(snapshotPath, verifiableContextPath) {
126
+ for (const relativePath of bestVariationRestorePaths(verifiableContextPath)) {
127
+ rmSync(join(verifiableContextPath, relativePath), { recursive: true, force: true });
128
+ copyRelativePathIfPresent(snapshotPath, verifiableContextPath, relativePath);
129
129
  }
130
- clearCompiledRuntimeDerivedArtifacts(compiledPath);
131
- initializeCompiledRuntimeState(compiledPath);
130
+ clearBuildRuntimeDerivedArtifacts(verifiableContextPath);
131
+ initializeBuildRuntimeState(verifiableContextPath);
132
132
  }
133
- async function runMethodVariation(options) {
133
+ async function runBuildPlanVariation(options) {
134
134
  let bestOutcome = null;
135
135
  let bestSnapshotPath = null;
136
136
  let bestAttempt = 0;
@@ -138,23 +138,23 @@ async function runMethodVariation(options) {
138
138
  try {
139
139
  for (let attempt = 1; attempt <= options.maxAttempts; attempt += 1) {
140
140
  attemptsRun = attempt;
141
- const result = await compileCompiledWithReporter(options.executor, options.compiledPath, {
141
+ const result = await buildVerifiableContextWithReporter(options.executor, options.verifiableContextPath, {
142
142
  heading: options.maxAttempts > 1
143
- ? `Building Portable Context (${options.variationLabel}, attempt ${attempt}/${options.maxAttempts})...`
144
- : `Building Portable Context (${options.variationLabel})...`,
143
+ ? `Building Verifiable Context (${options.variationLabel}, attempt ${attempt}/${options.maxAttempts})...`
144
+ : `Building Verifiable Context (${options.variationLabel})...`,
145
145
  successMessage: options.maxAttempts > 1
146
- ? `Portable Context ready for ${options.variationLabel}, attempt ${attempt}.`
147
- : `Portable Context ready for ${options.variationLabel}.`,
146
+ ? `Verifiable context ready for ${options.variationLabel}, attempt ${attempt}.`
147
+ : `Verifiable context ready for ${options.variationLabel}.`,
148
148
  preserveStageShells: options.preserveStageShells,
149
149
  runId: options.runId,
150
150
  events: options.events,
151
151
  resolveStageExecutor: options.resolveStageExecutor,
152
152
  });
153
153
  if (!result.ok) {
154
- printCompileFailure(options.compiledPath, result.failedStage);
155
- printStageShellReviewHint(options.compiledPath, options.preserveStageShells, "failure");
154
+ printBuildFailure(options.verifiableContextPath, result.failedStage);
155
+ printStageShellReviewHint(options.verifiableContextPath, options.preserveStageShells, "failure");
156
156
  if (attempt < options.maxAttempts) {
157
- console.log(chalk.yellow(` ${options.variationLabel} attempt ${attempt}/${options.maxAttempts} failed. Retrying with a fresh compile.`));
157
+ console.log(chalk.yellow(` ${options.variationLabel} attempt ${attempt}/${options.maxAttempts} failed. Retrying with a fresh build.`));
158
158
  continue;
159
159
  }
160
160
  return {
@@ -167,11 +167,11 @@ async function runMethodVariation(options) {
167
167
  fatalError: null,
168
168
  };
169
169
  }
170
- const outcome = await runSavedPortableContextCheck({
170
+ const outcome = await runSavedVerifiableContextCheck({
171
171
  sourcePath: options.sourcePath,
172
- preparationConfig: options.compiledConfig,
172
+ preparationConfig: options.verifiableContextConfig,
173
173
  executor: options.testExecutor,
174
- portableContextPath: options.compiledPath,
174
+ verifiableContextPath: options.verifiableContextPath,
175
175
  preserveSandboxes: options.preserveStageShells === "always" ? "always" : "on-failure",
176
176
  });
177
177
  if (!outcome) {
@@ -182,7 +182,7 @@ async function runMethodVariation(options) {
182
182
  bestOutcome,
183
183
  bestSnapshotPath,
184
184
  bestAttempt,
185
- fatalError: "Could not run saved readiness checks against the Portable Context after compile.",
185
+ fatalError: "Could not run saved readiness checks against verifiable context after build.",
186
186
  };
187
187
  }
188
188
  console.log();
@@ -192,13 +192,13 @@ async function runMethodVariation(options) {
192
192
  rmSync(bestSnapshotPath, { recursive: true, force: true });
193
193
  }
194
194
  bestOutcome = outcome;
195
- bestSnapshotPath = snapshotCompiledBestState(options.compiledPath);
195
+ bestSnapshotPath = snapshotBestBuildState(options.verifiableContextPath);
196
196
  bestAttempt = attempt;
197
197
  }
198
198
  if (outcome.result.ok) {
199
199
  console.log();
200
- console.log(chalk.green(` Portable Context passed on ${options.variationLabel}, attempt ${attempt}/${options.maxAttempts}.`));
201
- printStageShellReviewHint(options.compiledPath, options.preserveStageShells, "success");
200
+ console.log(chalk.green(` Verifiable context passed on ${options.variationLabel}, attempt ${attempt}/${options.maxAttempts}.`));
201
+ printStageShellReviewHint(options.verifiableContextPath, options.preserveStageShells, "success");
202
202
  return {
203
203
  passed: true,
204
204
  attemptsRun,
@@ -211,7 +211,7 @@ async function runMethodVariation(options) {
211
211
  }
212
212
  if (attempt < options.maxAttempts) {
213
213
  console.log();
214
- console.log(chalk.yellow(` ${options.variationLabel} attempt ${attempt}/${options.maxAttempts} did not pass. Retrying with the same Method.`));
214
+ console.log(chalk.yellow(` ${options.variationLabel} attempt ${attempt}/${options.maxAttempts} did not pass. Retrying with the same Build Plan.`));
215
215
  }
216
216
  }
217
217
  return {
@@ -236,7 +236,7 @@ async function runMethodVariation(options) {
236
236
  };
237
237
  }
238
238
  }
239
- function summarizeMethodVariation(options) {
239
+ function summarizeBuildPlanVariation(options) {
240
240
  const passedChecks = options.result.bestOutcome?.result.passedCases ?? 0;
241
241
  const totalChecks = options.result.bestOutcome?.result.totalCases ?? options.defaultTotalChecks;
242
242
  const summary = options.result.passed
@@ -244,8 +244,8 @@ function summarizeMethodVariation(options) {
244
244
  : options.result.bestOutcome
245
245
  ? `Best result: ${passedChecks}/${totalChecks} readiness checks passed.`
246
246
  : options.result.failedStage
247
- ? `Compile failed at stage ${options.result.failedStage} before any saved readiness result.`
248
- : "Method variation did not produce a passing result.";
247
+ ? `Build failed at stage ${options.result.failedStage} before any saved readiness result.`
248
+ : "Build Plan variation did not produce a passing result.";
249
249
  return {
250
250
  variation: options.variation,
251
251
  kind: options.kind,
@@ -261,8 +261,8 @@ function summarizeMethodVariation(options) {
261
261
  summary,
262
262
  };
263
263
  }
264
- function printStageShellReviewHint(compiledPath, preserveStageShells, result) {
265
- const reviewRoot = stageExecutionShellsRoot(compiledPath);
264
+ function printStageShellReviewHint(verifiableContextPath, preserveStageShells, result) {
265
+ const reviewRoot = stageExecutionShellsRoot(verifiableContextPath);
266
266
  if (preserveStageShells === "always") {
267
267
  console.log(chalk.dim(` Stage shells are saved under: ${reviewRoot}`));
268
268
  return;
@@ -271,26 +271,26 @@ function printStageShellReviewHint(compiledPath, preserveStageShells, result) {
271
271
  console.log(chalk.dim(` Review failed stage shells under: ${reviewRoot}`));
272
272
  }
273
273
  }
274
- function printPostCompileNextStep(options) {
275
- console.log(chalk.dim(` Portable Context: ${options.compiledPath}`));
274
+ function printPostBuildNextStep(options) {
275
+ console.log(chalk.dim(` Verifiable context: ${options.verifiableContextPath}`));
276
276
  if (options.checks === 0) {
277
277
  console.log(chalk.dim(" Next: run `interf` to add readiness checks, then `interf test`."));
278
278
  return;
279
279
  }
280
- if (options.testedDuringCompile) {
281
- console.log(chalk.dim(" Next: inspect the Portable Context agents will use, or run `interf test` if you also want readiness evidence for source files and Portable Context."));
280
+ if (options.testedDuringBuild) {
281
+ console.log(chalk.dim(" Next: inspect the verifiable context agents will use, or run `interf test` if you also want readiness evidence for source files and verifiable context."));
282
282
  return;
283
283
  }
284
- console.log(chalk.dim(" Next: run `interf test` to collect readiness evidence for source files and Portable Context."));
284
+ console.log(chalk.dim(" Next: run `interf test` to collect readiness evidence for source files and verifiable context."));
285
285
  }
286
286
  function formatVariationReadinessSummary(summary) {
287
287
  return `${summary.passed_questions}/${summary.total_questions}`;
288
288
  }
289
- function printMethodVariationSummary(summaries) {
289
+ function printBuildPlanVariationSummary(summaries) {
290
290
  if (summaries.length === 0)
291
291
  return;
292
292
  console.log();
293
- console.log(chalk.bold(" Method variation summary"));
293
+ console.log(chalk.bold(" Build Plan variation summary"));
294
294
  console.log();
295
295
  console.log(" | Variation | Kind | Readiness checks | Result |");
296
296
  console.log(" | --- | --- | --- | --- |");
@@ -298,39 +298,39 @@ function printMethodVariationSummary(summaries) {
298
298
  console.log(` | ${summary.variation} | ${summary.kind} | \`${formatVariationReadinessSummary(summary)}\` | ${summary.passed ? "pass" : "fail"} |`);
299
299
  }
300
300
  }
301
- function printCompiledLocalMethodOwnership(compiledPath, bestVariation) {
301
+ function printSelectedBuildPlanOwnership(verifiableContextPath, bestVariation) {
302
302
  if (bestVariation <= 1)
303
303
  return;
304
304
  console.log();
305
- console.log(chalk.dim(` Best Method variation now lives in: ${methodPackagePathForCompiled(compiledPath)}`));
306
- console.log(chalk.dim(" The project-level Method selection was not changed automatically."));
307
- console.log(chalk.dim(" Recompiling this existing Portable Context reuses that local Method draft."));
305
+ console.log(chalk.dim(` Best Build Plan variation now lives in: ${buildPlanPackagePathForVerifiableContext(verifiableContextPath)}`));
306
+ console.log(chalk.dim(" The project-level Build Plan selection was not changed automatically."));
307
+ console.log(chalk.dim(" Rebuilding this existing verifiable context reuses that local Build Plan draft."));
308
308
  }
309
- export async function runConfiguredCompiledCompile(options) {
309
+ export async function runConfiguredBuild(options) {
310
310
  const preserveStageShells = options.preserveStageShells ?? "on-failure";
311
- const configuredMaxAttempts = resolvePreparationCompileMaxAttempts(options.compiledConfig ?? { max_attempts: undefined }, options.maxAttemptsOverride);
312
- const maxLoops = resolvePreparationCompileMaxLoops(options.compiledConfig ?? { max_loops: undefined }, options.maxLoopsOverride);
311
+ const configuredMaxAttempts = resolvePreparationBuildMaxAttempts(options.verifiableContextConfig ?? { max_attempts: undefined }, options.maxAttemptsOverride);
312
+ const maxLoops = resolvePreparationBuildMaxLoops(options.verifiableContextConfig ?? { max_loops: undefined }, options.maxLoopsOverride);
313
313
  const maxAttempts = configuredMaxAttempts ?? (maxLoops != null ? 1 : null);
314
314
  const loopEnabled = maxAttempts != null;
315
- const checks = options.compiledConfig?.checks ?? [];
315
+ const checks = options.verifiableContextConfig?.checks ?? [];
316
316
  if (loopEnabled && checks.length === 0) {
317
317
  console.log(chalk.yellow(" Retry and self-improving modes need saved readiness checks. Building once without those loops."));
318
318
  }
319
319
  else if (loopEnabled) {
320
320
  if (maxAttempts > 1) {
321
- console.log(chalk.dim(` Retry mode: up to ${maxAttempts} compile attempts.`));
322
- console.log(chalk.dim(" Interf will rerun the same Method variation, check the Portable Context agents can use, and stop early if it passes."));
321
+ console.log(chalk.dim(` Retry mode: up to ${maxAttempts} build attempts.`));
322
+ console.log(chalk.dim(" Interf will rerun the same Build Plan variation, check the verifiable context agents can use, and stop early if it passes."));
323
323
  }
324
324
  else {
325
- console.log(chalk.dim(" Compile mode: 1 attempt per Method variation."));
325
+ console.log(chalk.dim(" Build mode: 1 attempt per Build Plan variation."));
326
326
  }
327
327
  if (maxLoops != null) {
328
- console.log(chalk.dim(` Method improvement: up to ${maxLoops} Method edits after retries fail.`));
329
- console.log(chalk.dim(" Interf will review failed runs, edit the Build Plan, and test new Method variations."));
328
+ console.log(chalk.dim(` Build Plan improvement: up to ${maxLoops} Build Plan edits after retries fail.`));
329
+ console.log(chalk.dim(" Interf will review failed runs, edit the Build Plan, and test new Build Plan variations."));
330
330
  }
331
331
  }
332
332
  if (!loopEnabled || checks.length === 0) {
333
- const result = await compileCompiledWithReporter(options.executor, options.compiledPath, {
333
+ const result = await buildVerifiableContextWithReporter(options.executor, options.verifiableContextPath, {
334
334
  preserveStageShells,
335
335
  runId: options.runId,
336
336
  events: options.events,
@@ -338,15 +338,15 @@ export async function runConfiguredCompiledCompile(options) {
338
338
  });
339
339
  if (!result.ok) {
340
340
  process.exitCode = 1;
341
- printCompileFailure(options.compiledPath, result.failedStage);
342
- printStageShellReviewHint(options.compiledPath, preserveStageShells, "failure");
341
+ printBuildFailure(options.verifiableContextPath, result.failedStage);
342
+ printStageShellReviewHint(options.verifiableContextPath, preserveStageShells, "failure");
343
343
  return false;
344
344
  }
345
- printStageShellReviewHint(options.compiledPath, preserveStageShells, "success");
346
- printPostCompileNextStep({
347
- compiledPath: options.compiledPath,
345
+ printStageShellReviewHint(options.verifiableContextPath, preserveStageShells, "success");
346
+ printPostBuildNextStep({
347
+ verifiableContextPath: options.verifiableContextPath,
348
348
  checks: checks.length,
349
- testedDuringCompile: false,
349
+ testedDuringBuild: false,
350
350
  });
351
351
  return true;
352
352
  }
@@ -357,10 +357,10 @@ export async function runConfiguredCompiledCompile(options) {
357
357
  const previousVariations = [];
358
358
  const improvementRunId = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
359
359
  try {
360
- const compiledConfig = options.compiledConfig
361
- ?? loadCompiledPreparationConfig(options.compiledPath)
360
+ const verifiableContextConfig = options.verifiableContextConfig
361
+ ?? loadVerifiableContextPreparationConfig(options.verifiableContextPath)
362
362
  ?? {
363
- name: readInterfConfig(options.compiledPath)?.name ?? "preparation",
363
+ name: readInterfConfig(options.verifiableContextPath)?.name ?? "preparation",
364
364
  path: "./source-folder",
365
365
  checks: [],
366
366
  };
@@ -380,17 +380,17 @@ export async function runConfiguredCompiledCompile(options) {
380
380
  result.bestSnapshotPath = null;
381
381
  }
382
382
  };
383
- const baseline = await runMethodVariation({
383
+ const baseline = await runBuildPlanVariation({
384
384
  executor: options.executor,
385
385
  testExecutor: options.testExecutor,
386
386
  resolveStageExecutor: options.resolveStageExecutor,
387
- compiledPath: options.compiledPath,
387
+ verifiableContextPath: options.verifiableContextPath,
388
388
  sourcePath: options.sourcePath,
389
- compiledConfig,
389
+ verifiableContextConfig,
390
390
  executionProfile: options.executionProfile,
391
391
  preserveStageShells,
392
392
  maxAttempts,
393
- variationLabel: "baseline Method",
393
+ variationLabel: "baseline Build Plan",
394
394
  runId: options.runId,
395
395
  events: options.events,
396
396
  });
@@ -400,37 +400,37 @@ export async function runConfiguredCompiledCompile(options) {
400
400
  return false;
401
401
  }
402
402
  adoptVariationBest(1, baseline);
403
- previousVariations.push(summarizeMethodVariation({
403
+ previousVariations.push(summarizeBuildPlanVariation({
404
404
  variation: 1,
405
405
  kind: "baseline",
406
406
  result: baseline,
407
407
  defaultTotalChecks: checks.length,
408
408
  }));
409
409
  if (baseline.passed) {
410
- printMethodVariationSummary(previousVariations);
411
- printPostCompileNextStep({
412
- compiledPath: options.compiledPath,
410
+ printBuildPlanVariationSummary(previousVariations);
411
+ printPostBuildNextStep({
412
+ verifiableContextPath: options.verifiableContextPath,
413
413
  checks: checks.length,
414
- testedDuringCompile: true,
414
+ testedDuringBuild: true,
415
415
  });
416
416
  return true;
417
417
  }
418
418
  if (maxLoops != null) {
419
419
  for (let loopIndex = 1; loopIndex <= maxLoops; loopIndex += 1) {
420
420
  console.log();
421
- console.log(chalk.dim(` Self-improving loop ${loopIndex}/${maxLoops}: reviewing failed runs and editing the Method.`));
422
- const improvement = await runMethodImprovementLoop({
421
+ console.log(chalk.dim(` Self-improving loop ${loopIndex}/${maxLoops}: reviewing failed runs and editing the Build Plan.`));
422
+ const improvement = await runBuildPlanImprovementLoop({
423
423
  executor: options.executor,
424
- compiledPath: options.compiledPath,
425
- methodId: resolveRequiredCompiledMethodFromConfig(readInterfConfig(options.compiledPath), `.interf/interf.json for ${options.compiledPath}`),
426
- compiledConfig,
424
+ verifiableContextPath: options.verifiableContextPath,
425
+ buildPlanId: resolveRequiredBuildPlanFromConfig(readInterfConfig(options.verifiableContextPath), `.interf/interf.json for ${options.verifiableContextPath}`),
426
+ verifiableContextConfig,
427
427
  runId: improvementRunId,
428
428
  loopIndex,
429
429
  maxLoops,
430
430
  maxAttempts,
431
431
  previousVariations,
432
432
  });
433
- console.log(chalk.dim(` Method improvement shell: ${improvement.shellPath}`));
433
+ console.log(chalk.dim(` Build Plan improvement shell: ${improvement.shellPath}`));
434
434
  if (improvement.status === "executor-failed") {
435
435
  process.exitCode = 1;
436
436
  console.log(chalk.red(` ${improvement.summary}`));
@@ -440,17 +440,17 @@ export async function runConfiguredCompiledCompile(options) {
440
440
  console.log(chalk.yellow(` ${improvement.summary}`));
441
441
  continue;
442
442
  }
443
- const variation = await runMethodVariation({
443
+ const variation = await runBuildPlanVariation({
444
444
  executor: options.executor,
445
445
  testExecutor: options.testExecutor,
446
446
  resolveStageExecutor: options.resolveStageExecutor,
447
- compiledPath: options.compiledPath,
447
+ verifiableContextPath: options.verifiableContextPath,
448
448
  sourcePath: options.sourcePath,
449
- compiledConfig,
449
+ verifiableContextConfig,
450
450
  executionProfile: options.executionProfile,
451
451
  preserveStageShells,
452
452
  maxAttempts,
453
- variationLabel: `Method variation ${loopIndex + 1}`,
453
+ variationLabel: `Build Plan variation ${loopIndex + 1}`,
454
454
  runId: options.runId,
455
455
  events: options.events,
456
456
  });
@@ -460,43 +460,43 @@ export async function runConfiguredCompiledCompile(options) {
460
460
  return false;
461
461
  }
462
462
  adoptVariationBest(loopIndex + 1, variation);
463
- previousVariations.push(summarizeMethodVariation({
463
+ previousVariations.push(summarizeBuildPlanVariation({
464
464
  variation: loopIndex + 1,
465
465
  kind: "edited",
466
466
  result: variation,
467
467
  defaultTotalChecks: checks.length,
468
468
  }));
469
469
  if (variation.passed) {
470
- printMethodVariationSummary(previousVariations);
471
- printCompiledLocalMethodOwnership(options.compiledPath, bestVariation);
472
- printPostCompileNextStep({
473
- compiledPath: options.compiledPath,
470
+ printBuildPlanVariationSummary(previousVariations);
471
+ printSelectedBuildPlanOwnership(options.verifiableContextPath, bestVariation);
472
+ printPostBuildNextStep({
473
+ verifiableContextPath: options.verifiableContextPath,
474
474
  checks: checks.length,
475
- testedDuringCompile: true,
475
+ testedDuringBuild: true,
476
476
  });
477
477
  return true;
478
478
  }
479
479
  }
480
480
  }
481
481
  if (bestSnapshotPath && bestVariation > 0) {
482
- restoreCompiledBestState(bestSnapshotPath, options.compiledPath);
482
+ restoreBestBuildState(bestSnapshotPath, options.verifiableContextPath);
483
483
  console.log();
484
- console.log(chalk.dim(` Restored the best-performing Portable Context from variation ${bestVariation}, attempt ${bestAttempt}.`));
484
+ console.log(chalk.dim(` Restored the best-performing verifiable context from variation ${bestVariation}, attempt ${bestAttempt}.`));
485
485
  }
486
486
  process.exitCode = 1;
487
487
  console.log();
488
- printMethodVariationSummary(previousVariations);
489
- printCompiledLocalMethodOwnership(options.compiledPath, bestVariation);
488
+ printBuildPlanVariationSummary(previousVariations);
489
+ printSelectedBuildPlanOwnership(options.verifiableContextPath, bestVariation);
490
490
  if (maxLoops != null) {
491
- console.log(chalk.red(` Portable Context did not pass after ${maxAttempts} attempt${maxAttempts === 1 ? "" : "s"} per variation and ${maxLoops} Method-improvement loop${maxLoops === 1 ? "" : "s"}.`));
491
+ console.log(chalk.red(` Verifiable context did not pass after ${maxAttempts} attempt${maxAttempts === 1 ? "" : "s"} per variation and ${maxLoops} Build Plan improvement loop${maxLoops === 1 ? "" : "s"}.`));
492
492
  }
493
493
  else {
494
- console.log(chalk.red(` Portable Context did not pass within ${maxAttempts} attempt${maxAttempts === 1 ? "" : "s"}.`));
494
+ console.log(chalk.red(` Verifiable context did not pass within ${maxAttempts} attempt${maxAttempts === 1 ? "" : "s"}.`));
495
495
  }
496
496
  if (bestOutcome) {
497
497
  console.log(chalk.dim(` Best attempt readiness-check pass rate: ${readinessPassRate(bestOutcome)}%.`));
498
498
  }
499
- printStageShellReviewHint(options.compiledPath, preserveStageShells, "failure");
499
+ printStageShellReviewHint(options.verifiableContextPath, preserveStageShells, "failure");
500
500
  return false;
501
501
  }
502
502
  finally {
@@ -533,7 +533,7 @@ export function createNativeLocalServiceRunHandlers(options = {}) {
533
533
  executor: resolved.executor,
534
534
  });
535
535
  },
536
- async createCompileRun(request, context) {
536
+ async createBuildRun(request, context) {
537
537
  const executor = resolveHandlerExecutor(options.executor);
538
538
  const testExecutor = resolveHandlerExecutor(options.testExecutor ?? options.executor);
539
539
  const registry = loadAgentsRegistry();
@@ -543,7 +543,7 @@ export function createNativeLocalServiceRunHandlers(options = {}) {
543
543
  activeAgent: registry.activeAgent,
544
544
  defaultExecutor: executor,
545
545
  });
546
- const ok = await runConfiguredCompiledCompile({
546
+ const ok = await runConfiguredBuild({
547
547
  executor,
548
548
  testExecutor,
549
549
  resolveStageExecutor(stage) {
@@ -568,9 +568,9 @@ export function createNativeLocalServiceRunHandlers(options = {}) {
568
568
  }
569
569
  return stageExecutor;
570
570
  },
571
- compiledPath: context.compiledPath,
571
+ verifiableContextPath: context.verifiableContextPath,
572
572
  sourcePath: context.sourcePath,
573
- compiledConfig: context.preparationConfig,
573
+ verifiableContextConfig: context.preparationConfig,
574
574
  maxAttemptsOverride: request.max_attempts ?? null,
575
575
  maxLoopsOverride: request.max_loops ?? null,
576
576
  preserveStageShells: request.preserve_stage_shells,
@@ -589,24 +589,24 @@ export function createNativeLocalServiceRunHandlers(options = {}) {
589
589
  defaultExecutor: fallbackExecutor,
590
590
  });
591
591
  // Verify runs always use the `verifier` role. We resolve here
592
- // for symmetry with compile runs — verify-run events are not
592
+ // for symmetry with Build runs — verify-run events are not
593
593
  // streamed in 0.15, so the resolution shows up only in the
594
594
  // executor field on the saved test run record.
595
595
  const { executor } = bundle.resolveExecutorForRole("verifier");
596
596
  const result = await runReadinessChecksForExecutor({
597
597
  sourcePath: context.sourcePath,
598
598
  preparationConfig: context.preparationConfig,
599
- portableContextPath: context.compiledPath,
599
+ verifiableContextPath: context.verifiableContextPath,
600
600
  executor,
601
601
  target: request.target,
602
602
  });
603
603
  const outcome = request.target === "source-files"
604
604
  ? result.sourceFilesOutcome
605
- : result.compiledOutcome;
605
+ : result.verifiableContextOutcome;
606
606
  if (!outcome) {
607
607
  const targetLabel = request.target === "source-files"
608
608
  ? "Source files"
609
- : "Portable Context";
609
+ : "Verifiable context";
610
610
  return {
611
611
  ok: false,
612
612
  readiness_run: result.readinessRun,
@@ -644,18 +644,18 @@ export function createNativeLocalServiceRunHandlers(options = {}) {
644
644
  checks: drafted.checks,
645
645
  };
646
646
  },
647
- async createMethodAuthoringRun(request, context) {
647
+ async createBuildPlanAuthoringRun(request, context) {
648
648
  const executor = resolveHandlerExecutor(options.executor);
649
649
  context.emit({
650
650
  type: "log.appended",
651
651
  step_id: "draft-package",
652
- message: `Using ${executor.displayName} for Method authoring.`,
652
+ message: `Using ${executor.displayName} for Build Plan authoring.`,
653
653
  });
654
- const result = await runMethodAuthoringDraft({
654
+ const result = await runBuildPlanAuthoringDraft({
655
655
  prepDataDir: context.sourcePath,
656
656
  sourceFolderPath: request.source_folder_path,
657
- baseMethodId: request.reference_method_id ?? request.base_method_id,
658
- methodId: request.method_id,
657
+ baseBuildPlanId: request.reference_build_plan_id ?? request.base_build_plan_id,
658
+ buildPlanId: request.build_plan_id,
659
659
  label: request.label,
660
660
  hint: request.hint,
661
661
  taskPrompt: request.task_prompt,
@@ -675,7 +675,7 @@ export function createNativeLocalServiceRunHandlers(options = {}) {
675
675
  changed: result.changed,
676
676
  summary: result.summary,
677
677
  validation: result.validation,
678
- method_path: result.methodPath,
678
+ build_plan_path: result.buildPlanPath,
679
679
  shell_path: result.shellPath,
680
680
  };
681
681
  },