@turri-dev/cli 0.4.3-next.7ada234 → 0.4.3-next.8c1b0fa

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 (538) hide show
  1. package/README.md +22 -2
  2. package/dist/banner.js +248 -0
  3. package/dist/capture-cli.js +1 -1
  4. package/dist/capture-view.js +99 -0
  5. package/dist/chat-commands.js +6 -6
  6. package/dist/chat-models.js +17 -15
  7. package/dist/chat-tab-header.js +0 -1
  8. package/dist/chat-tabs.js +1 -1
  9. package/dist/chat-terminal.js +115 -73
  10. package/dist/chat-waiting.js +0 -20
  11. package/dist/cli-options.js +11 -7
  12. package/dist/cli-root.js +101 -0
  13. package/dist/cli.js +20 -26
  14. package/dist/conform-cli.js +4 -6
  15. package/dist/cultivate-cli.js +65 -97
  16. package/dist/doctor-cli.js +99 -0
  17. package/dist/drift-cli.js +2 -7
  18. package/dist/entry-renderers.js +107 -0
  19. package/dist/extension.js +14 -3379
  20. package/dist/init-config-cli.js +209 -0
  21. package/dist/launch-cli.js +55 -91
  22. package/dist/lineage-cli.js +2 -4
  23. package/dist/loop-cli.js +118 -237
  24. package/dist/panel-view.js +409 -0
  25. package/dist/parse-cli.js +5 -2
  26. package/dist/pi-launch.js +41 -13
  27. package/dist/pi-themes.js +2 -2
  28. package/dist/plain-code-blocks.js +1 -1
  29. package/dist/print-mode.js +20 -0
  30. package/dist/quiet.js +7 -106
  31. package/dist/regenerate/diff-view.js +6 -87
  32. package/dist/regenerate/jobs-tree.js +2 -17
  33. package/dist/regenerate/spec-map-view.js +3 -68
  34. package/dist/regenerate-cli.js +7 -11
  35. package/dist/reopen.js +40 -7
  36. package/dist/skill-progress.js +25 -0
  37. package/dist/skill-report.js +52 -0
  38. package/dist/terminal-marks.js +21 -0
  39. package/dist/terminal-notifications.js +74 -19
  40. package/dist/terminal-view.js +275 -0
  41. package/dist/turri-versions.js +64 -6
  42. package/docs/README.md +2 -2
  43. package/docs/chats.md +4 -4
  44. package/docs/claude-subscription.md +1 -1
  45. package/docs/config.md +5 -4
  46. package/docs/development.md +30 -64
  47. package/docs/headless.md +3 -1
  48. package/docs/hosting.md +3 -251
  49. package/docs/installation.md +4 -2
  50. package/docs/launch.md +1 -1
  51. package/docs/sentinel.md +3 -3
  52. package/docs/using.md +3 -3
  53. package/package.json +10 -28
  54. package/dist/ask.d.ts +0 -90
  55. package/dist/ask.js +0 -170
  56. package/dist/background-skills.d.ts +0 -56
  57. package/dist/background-skills.js +0 -129
  58. package/dist/bedrock-region.d.ts +0 -66
  59. package/dist/bedrock-region.js +0 -144
  60. package/dist/brand.d.ts +0 -13
  61. package/dist/btw.d.ts +0 -69
  62. package/dist/btw.js +0 -174
  63. package/dist/capture/agents.d.ts +0 -406
  64. package/dist/capture/agents.js +0 -379
  65. package/dist/capture/area.d.ts +0 -58
  66. package/dist/capture/area.js +0 -197
  67. package/dist/capture/assemble.d.ts +0 -112
  68. package/dist/capture/assemble.js +0 -453
  69. package/dist/capture/capture.d.ts +0 -116
  70. package/dist/capture/capture.js +0 -1315
  71. package/dist/capture/chat.d.ts +0 -29
  72. package/dist/capture/chat.js +0 -94
  73. package/dist/capture/checks.d.ts +0 -142
  74. package/dist/capture/checks.js +0 -649
  75. package/dist/capture/config.d.ts +0 -13
  76. package/dist/capture/config.js +0 -66
  77. package/dist/capture/interface.d.ts +0 -71
  78. package/dist/capture/interface.js +0 -199
  79. package/dist/capture/map.d.ts +0 -56
  80. package/dist/capture/map.js +0 -530
  81. package/dist/capture/models.d.ts +0 -4
  82. package/dist/capture/models.js +0 -16
  83. package/dist/capture/plan.d.ts +0 -7
  84. package/dist/capture/plan.js +0 -13
  85. package/dist/capture/progress.d.ts +0 -111
  86. package/dist/capture/progress.js +0 -266
  87. package/dist/capture/python-interface.d.ts +0 -3
  88. package/dist/capture/python-interface.js +0 -17
  89. package/dist/capture/report.d.ts +0 -75
  90. package/dist/capture/report.js +0 -268
  91. package/dist/capture/runners.d.ts +0 -6
  92. package/dist/capture/runners.js +0 -59
  93. package/dist/capture/scripts.d.ts +0 -26
  94. package/dist/capture/scripts.js +0 -38
  95. package/dist/capture/state.d.ts +0 -310
  96. package/dist/capture/state.js +0 -43
  97. package/dist/capture/trial.d.ts +0 -34
  98. package/dist/capture/trial.js +0 -89
  99. package/dist/capture-cli.d.ts +0 -1
  100. package/dist/chat-commands.d.ts +0 -17
  101. package/dist/chat-idle.d.ts +0 -7
  102. package/dist/chat-idle.js +0 -20
  103. package/dist/chat-models.d.ts +0 -22
  104. package/dist/chat-records.d.ts +0 -50
  105. package/dist/chat-records.js +0 -107
  106. package/dist/chat-scope.d.ts +0 -14
  107. package/dist/chat-scope.js +0 -15
  108. package/dist/chat-skills.d.ts +0 -17
  109. package/dist/chat-skills.js +0 -18
  110. package/dist/chat-tab-header.d.ts +0 -16
  111. package/dist/chat-tabs.d.ts +0 -26
  112. package/dist/chat-terminal.d.ts +0 -24
  113. package/dist/chat-ui.d.ts +0 -33
  114. package/dist/chat-waiting.d.ts +0 -67
  115. package/dist/chats.d.ts +0 -346
  116. package/dist/chats.js +0 -1022
  117. package/dist/cli-options.d.ts +0 -24
  118. package/dist/cli.d.ts +0 -9
  119. package/dist/config-edit.d.ts +0 -83
  120. package/dist/config-edit.js +0 -393
  121. package/dist/config.d.ts +0 -428
  122. package/dist/config.js +0 -816
  123. package/dist/conform-cli.d.ts +0 -1
  124. package/dist/conformance-switch.d.ts +0 -25
  125. package/dist/conformance-switch.js +0 -86
  126. package/dist/cultivate-cli.d.ts +0 -1
  127. package/dist/doctor-tool.d.ts +0 -11
  128. package/dist/doctor-tool.js +0 -33
  129. package/dist/drift-cli.d.ts +0 -1
  130. package/dist/environment.d.ts +0 -37
  131. package/dist/environment.js +0 -109
  132. package/dist/extension.d.ts +0 -209
  133. package/dist/genome.d.ts +0 -77
  134. package/dist/genome.js +0 -288
  135. package/dist/graph.d.ts +0 -52
  136. package/dist/graph.js +0 -247
  137. package/dist/host-session.d.ts +0 -112
  138. package/dist/host-session.js +0 -103
  139. package/dist/host.d.ts +0 -40
  140. package/dist/host.js +0 -54
  141. package/dist/identity.d.ts +0 -7
  142. package/dist/identity.js +0 -75
  143. package/dist/init-config.d.ts +0 -172
  144. package/dist/init-config.js +0 -867
  145. package/dist/installed-providers.d.ts +0 -40
  146. package/dist/installed-providers.js +0 -98
  147. package/dist/jellyfish.d.ts +0 -40
  148. package/dist/judge.d.ts +0 -25
  149. package/dist/judge.js +0 -62
  150. package/dist/launch-agent.d.ts +0 -62
  151. package/dist/launch-agent.js +0 -339
  152. package/dist/launch-cli.d.ts +0 -1
  153. package/dist/launch-session.d.ts +0 -68
  154. package/dist/launch-session.js +0 -225
  155. package/dist/launch-tools.d.ts +0 -28
  156. package/dist/launch-tools.js +0 -72
  157. package/dist/launch-track.d.ts +0 -175
  158. package/dist/launch-track.js +0 -497
  159. package/dist/lineage-cli.d.ts +0 -1
  160. package/dist/loop-cli.d.ts +0 -35
  161. package/dist/loop-tools.d.ts +0 -103
  162. package/dist/loop-tools.js +0 -361
  163. package/dist/model-check.d.ts +0 -72
  164. package/dist/model-check.js +0 -162
  165. package/dist/module-report.d.ts +0 -9
  166. package/dist/new-project.d.ts +0 -10
  167. package/dist/new-project.js +0 -42
  168. package/dist/notice.d.ts +0 -115
  169. package/dist/notice.js +0 -61
  170. package/dist/parse-cli.d.ts +0 -1
  171. package/dist/parse-tool.d.ts +0 -9
  172. package/dist/parse-tool.js +0 -33
  173. package/dist/pi-launch.d.ts +0 -1
  174. package/dist/pi-settings.d.ts +0 -4
  175. package/dist/pi-themes.d.ts +0 -3
  176. package/dist/pi.d.ts +0 -248
  177. package/dist/pi.js +0 -889
  178. package/dist/picture-row.d.ts +0 -10
  179. package/dist/plain/check.d.ts +0 -63
  180. package/dist/plain/check.js +0 -236
  181. package/dist/plain/concepts.d.ts +0 -37
  182. package/dist/plain/concepts.js +0 -283
  183. package/dist/plain/cycles.d.ts +0 -21
  184. package/dist/plain/cycles.js +0 -190
  185. package/dist/plain/errors.d.ts +0 -26
  186. package/dist/plain/errors.js +0 -50
  187. package/dist/plain/files.d.ts +0 -47
  188. package/dist/plain/files.js +0 -161
  189. package/dist/plain/graph.d.ts +0 -107
  190. package/dist/plain/graph.js +0 -194
  191. package/dist/plain/highlight.d.ts +0 -43
  192. package/dist/plain/highlight.js +0 -196
  193. package/dist/plain/index.d.ts +0 -18
  194. package/dist/plain/index.js +0 -18
  195. package/dist/plain/liquid.d.ts +0 -22
  196. package/dist/plain/liquid.js +0 -124
  197. package/dist/plain/markdown.d.ts +0 -103
  198. package/dist/plain/markdown.js +0 -330
  199. package/dist/plain/module-concepts.d.ts +0 -32
  200. package/dist/plain/module-concepts.js +0 -80
  201. package/dist/plain/parser.d.ts +0 -163
  202. package/dist/plain/parser.js +0 -930
  203. package/dist/plain/plain.tmLanguage.json +0 -150
  204. package/dist/plain/project.d.ts +0 -48
  205. package/dist/plain/project.js +0 -155
  206. package/dist/plain/spec.d.ts +0 -152
  207. package/dist/plain/spec.js +0 -265
  208. package/dist/plain/stdlib.d.ts +0 -16
  209. package/dist/plain/stdlib.js +0 -48
  210. package/dist/plain/test-plain-file.d.ts +0 -59
  211. package/dist/plain/test-plain-file.js +0 -232
  212. package/dist/plain-code-blocks.d.ts +0 -14
  213. package/dist/plain-files.d.ts +0 -21
  214. package/dist/plain-files.js +0 -156
  215. package/dist/pointer-hover.d.ts +0 -12
  216. package/dist/question-dialog.d.ts +0 -60
  217. package/dist/questioning.d.ts +0 -55
  218. package/dist/questioning.js +0 -109
  219. package/dist/quiet.d.ts +0 -34
  220. package/dist/regenerate/activity.d.ts +0 -227
  221. package/dist/regenerate/activity.js +0 -250
  222. package/dist/regenerate/agent-env.d.ts +0 -51
  223. package/dist/regenerate/agent-env.js +0 -315
  224. package/dist/regenerate/agent-shell.d.ts +0 -54
  225. package/dist/regenerate/agent-shell.js +0 -121
  226. package/dist/regenerate/arbiter.d.ts +0 -68
  227. package/dist/regenerate/arbiter.js +0 -133
  228. package/dist/regenerate/audit.d.ts +0 -69
  229. package/dist/regenerate/audit.js +0 -212
  230. package/dist/regenerate/base-folder.d.ts +0 -70
  231. package/dist/regenerate/base-folder.js +0 -186
  232. package/dist/regenerate/cases.d.ts +0 -12
  233. package/dist/regenerate/cases.js +0 -149
  234. package/dist/regenerate/change-view.d.ts +0 -23
  235. package/dist/regenerate/change-view.js +0 -153
  236. package/dist/regenerate/chunk-plan.d.ts +0 -217
  237. package/dist/regenerate/chunk-plan.js +0 -937
  238. package/dist/regenerate/codebase.d.ts +0 -21
  239. package/dist/regenerate/codebase.js +0 -75
  240. package/dist/regenerate/command-check.d.ts +0 -66
  241. package/dist/regenerate/command-check.js +0 -577
  242. package/dist/regenerate/compaction.d.ts +0 -13
  243. package/dist/regenerate/compaction.js +0 -20
  244. package/dist/regenerate/confine.d.ts +0 -69
  245. package/dist/regenerate/confine.js +0 -311
  246. package/dist/regenerate/conform.d.ts +0 -66
  247. package/dist/regenerate/conform.js +0 -132
  248. package/dist/regenerate/conformance-agents.d.ts +0 -388
  249. package/dist/regenerate/conformance-agents.js +0 -1162
  250. package/dist/regenerate/conformance.d.ts +0 -191
  251. package/dist/regenerate/conformance.js +0 -1035
  252. package/dist/regenerate/conversation-writes.d.ts +0 -10
  253. package/dist/regenerate/conversation-writes.js +0 -100
  254. package/dist/regenerate/credentials.d.ts +0 -18
  255. package/dist/regenerate/credentials.js +0 -88
  256. package/dist/regenerate/debug-log.d.ts +0 -56
  257. package/dist/regenerate/debug-log.js +0 -236
  258. package/dist/regenerate/debugger.d.ts +0 -36
  259. package/dist/regenerate/debugger.js +0 -133
  260. package/dist/regenerate/delivery.d.ts +0 -2
  261. package/dist/regenerate/diagnose-job.d.ts +0 -2
  262. package/dist/regenerate/diagnose-job.js +0 -40
  263. package/dist/regenerate/diagnose.d.ts +0 -46
  264. package/dist/regenerate/diagnose.js +0 -92
  265. package/dist/regenerate/diff-view.d.ts +0 -64
  266. package/dist/regenerate/drift.d.ts +0 -120
  267. package/dist/regenerate/drift.js +0 -285
  268. package/dist/regenerate/environment-error.d.ts +0 -167
  269. package/dist/regenerate/environment-error.js +0 -342
  270. package/dist/regenerate/failure-reports.d.ts +0 -28
  271. package/dist/regenerate/failure-reports.js +0 -79
  272. package/dist/regenerate/job-log.d.ts +0 -30
  273. package/dist/regenerate/job-log.js +0 -105
  274. package/dist/regenerate/job-panel.d.ts +0 -20
  275. package/dist/regenerate/job-panel.js +0 -54
  276. package/dist/regenerate/jobs-tree.d.ts +0 -76
  277. package/dist/regenerate/jobs.d.ts +0 -231
  278. package/dist/regenerate/jobs.js +0 -522
  279. package/dist/regenerate/lanes.d.ts +0 -16
  280. package/dist/regenerate/lanes.js +0 -32
  281. package/dist/regenerate/launch.d.ts +0 -256
  282. package/dist/regenerate/launch.js +0 -689
  283. package/dist/regenerate/ledger-view.d.ts +0 -87
  284. package/dist/regenerate/ledger-view.js +0 -325
  285. package/dist/regenerate/ledger.d.ts +0 -368
  286. package/dist/regenerate/ledger.js +0 -357
  287. package/dist/regenerate/lineage.d.ts +0 -105
  288. package/dist/regenerate/lineage.js +0 -485
  289. package/dist/regenerate/list-arguments.d.ts +0 -21
  290. package/dist/regenerate/list-arguments.js +0 -121
  291. package/dist/regenerate/loop.d.ts +0 -423
  292. package/dist/regenerate/loop.js +0 -2087
  293. package/dist/regenerate/masking.d.ts +0 -19
  294. package/dist/regenerate/masking.js +0 -95
  295. package/dist/regenerate/model-names.d.ts +0 -33
  296. package/dist/regenerate/model-names.js +0 -92
  297. package/dist/regenerate/notes.d.ts +0 -159
  298. package/dist/regenerate/notes.js +0 -446
  299. package/dist/regenerate/os-sandbox.d.ts +0 -93
  300. package/dist/regenerate/os-sandbox.js +0 -283
  301. package/dist/regenerate/panel-dock.d.ts +0 -23
  302. package/dist/regenerate/paths.d.ts +0 -110
  303. package/dist/regenerate/paths.js +0 -190
  304. package/dist/regenerate/plain-palette.d.ts +0 -34
  305. package/dist/regenerate/prompt.d.ts +0 -230
  306. package/dist/regenerate/prompt.js +0 -741
  307. package/dist/regenerate/pulse-files.d.ts +0 -14
  308. package/dist/regenerate/pulse-files.js +0 -63
  309. package/dist/regenerate/records.d.ts +0 -132
  310. package/dist/regenerate/records.js +0 -327
  311. package/dist/regenerate/regenerate.d.ts +0 -106
  312. package/dist/regenerate/regenerate.js +0 -660
  313. package/dist/regenerate/regression.d.ts +0 -58
  314. package/dist/regenerate/regression.js +0 -188
  315. package/dist/regenerate/renames.d.ts +0 -42
  316. package/dist/regenerate/renames.js +0 -185
  317. package/dist/regenerate/requires.d.ts +0 -117
  318. package/dist/regenerate/requires.js +0 -377
  319. package/dist/regenerate/resources.d.ts +0 -57
  320. package/dist/regenerate/resources.js +0 -162
  321. package/dist/regenerate/scripts-being-written.d.ts +0 -19
  322. package/dist/regenerate/scripts-being-written.js +0 -30
  323. package/dist/regenerate/self-check.d.ts +0 -29
  324. package/dist/regenerate/self-check.js +0 -119
  325. package/dist/regenerate/services.d.ts +0 -28
  326. package/dist/regenerate/services.js +0 -158
  327. package/dist/regenerate/shell.d.ts +0 -91
  328. package/dist/regenerate/shell.js +0 -320
  329. package/dist/regenerate/side-panel.d.ts +0 -64
  330. package/dist/regenerate/spec-map-view.d.ts +0 -147
  331. package/dist/regenerate/spec-map.d.ts +0 -160
  332. package/dist/regenerate/spec-map.js +0 -596
  333. package/dist/regenerate/spec-steps.d.ts +0 -180
  334. package/dist/regenerate/spec-steps.js +0 -729
  335. package/dist/regenerate/standing.d.ts +0 -28
  336. package/dist/regenerate/standing.js +0 -30
  337. package/dist/regenerate/state.d.ts +0 -21
  338. package/dist/regenerate/state.js +0 -10
  339. package/dist/regenerate/steering.d.ts +0 -56
  340. package/dist/regenerate/steering.js +0 -119
  341. package/dist/regenerate/stop-report.d.ts +0 -43
  342. package/dist/regenerate/stop-report.js +0 -160
  343. package/dist/regenerate/submit-work.d.ts +0 -44
  344. package/dist/regenerate/submit-work.js +0 -76
  345. package/dist/regenerate/test-kinds.d.ts +0 -85
  346. package/dist/regenerate/test-kinds.js +0 -171
  347. package/dist/regenerate/test-scripts.d.ts +0 -240
  348. package/dist/regenerate/test-scripts.js +0 -847
  349. package/dist/regenerate/testing-steps.d.ts +0 -52
  350. package/dist/regenerate/testing-steps.js +0 -129
  351. package/dist/regenerate/testing.d.ts +0 -150
  352. package/dist/regenerate/testing.js +0 -438
  353. package/dist/regenerate/transcript-view.d.ts +0 -21
  354. package/dist/regenerate/unit-gate.d.ts +0 -27
  355. package/dist/regenerate/unit-gate.js +0 -20
  356. package/dist/regenerate/unit-review.d.ts +0 -152
  357. package/dist/regenerate/unit-review.js +0 -361
  358. package/dist/regenerate/web.d.ts +0 -61
  359. package/dist/regenerate/web.js +0 -256
  360. package/dist/regenerate/workspace.d.ts +0 -12
  361. package/dist/regenerate/workspace.js +0 -99
  362. package/dist/regenerate-cli.d.ts +0 -1
  363. package/dist/reopen.d.ts +0 -29
  364. package/dist/resume-line.d.ts +0 -5
  365. package/dist/review/live.d.ts +0 -72
  366. package/dist/review/live.js +0 -166
  367. package/dist/rules.d.ts +0 -20
  368. package/dist/rules.js +0 -47
  369. package/dist/run-report.d.ts +0 -88
  370. package/dist/run-report.js +0 -338
  371. package/dist/screen-padding.d.ts +0 -28
  372. package/dist/self-invocation.d.ts +0 -36
  373. package/dist/self-invocation.js +0 -137
  374. package/dist/sentinel-chat.d.ts +0 -19
  375. package/dist/sentinel-chat.js +0 -226
  376. package/dist/sentinel-check.d.ts +0 -36
  377. package/dist/sentinel-check.js +0 -78
  378. package/dist/sentinel.d.ts +0 -107
  379. package/dist/sentinel.js +0 -601
  380. package/dist/settings.d.ts +0 -45
  381. package/dist/settings.js +0 -378
  382. package/dist/setup.d.ts +0 -97
  383. package/dist/setup.js +0 -436
  384. package/dist/skill-progress.d.ts +0 -46
  385. package/dist/skill.d.ts +0 -102
  386. package/dist/skill.js +0 -147
  387. package/dist/skills.d.ts +0 -54
  388. package/dist/skills.js +0 -111
  389. package/dist/spawn-async.d.ts +0 -18
  390. package/dist/spawn-async.js +0 -35
  391. package/dist/stack.d.ts +0 -80
  392. package/dist/stack.js +0 -206
  393. package/dist/stdlib.d.ts +0 -43
  394. package/dist/stdlib.js +0 -118
  395. package/dist/surface.d.ts +0 -5
  396. package/dist/surface.js +0 -18
  397. package/dist/terminal-images.d.ts +0 -2
  398. package/dist/terminal-notifications.d.ts +0 -37
  399. package/dist/test-plain-files.d.ts +0 -41
  400. package/dist/test-plain-files.js +0 -172
  401. package/dist/tools.d.ts +0 -101
  402. package/dist/tools.js +0 -242
  403. package/dist/turri-versions.d.ts +0 -71
  404. package/genome/capture/capture.md +0 -26
  405. package/genome/capture/check-conventions.md +0 -5
  406. package/genome/capture/check-reference.md +0 -12
  407. package/genome/capture/compact.md +0 -7
  408. package/genome/capture/concepts.md +0 -3
  409. package/genome/capture/divide.md +0 -9
  410. package/genome/capture/feature.md +0 -45
  411. package/genome/capture/interface.md +0 -9
  412. package/genome/capture/modules.md +0 -25
  413. package/genome/capture/outline.md +0 -11
  414. package/genome/capture/python-interface.py +0 -111
  415. package/genome/capture/readability.md +0 -12
  416. package/genome/capture/reference.md +0 -10
  417. package/genome/capture/runners/python-requirements.sh +0 -67
  418. package/genome/capture/split.md +0 -9
  419. package/genome/capture/survey.md +0 -39
  420. package/genome/capture/trial.md +0 -18
  421. package/genome/capture/verify.md +0 -7
  422. package/genome/rules/bullet-continuation.md +0 -61
  423. package/genome/rules/concise-specs-examples.md +0 -460
  424. package/genome/rules/concise-specs-integration-examples.md +0 -281
  425. package/genome/rules/concise-specs.md +0 -80
  426. package/genome/rules/definitions.md +0 -107
  427. package/genome/rules/examples/integration-embedded-testing/run_conformance_tests_java.sh +0 -161
  428. package/genome/rules/examples/integration-embedded-testing/run_unittests_java.sh +0 -50
  429. package/genome/rules/exported-concepts.md +0 -39
  430. package/genome/rules/func-specs.md +0 -164
  431. package/genome/rules/impl-reqs.md +0 -68
  432. package/genome/rules/import-modules.md +0 -49
  433. package/genome/rules/integration-embedded-testing.md +0 -273
  434. package/genome/rules/integration-embedded.md +0 -171
  435. package/genome/rules/integration-standalone.md +0 -135
  436. package/genome/rules/integrations.md +0 -136
  437. package/genome/rules/linked-resources.md +0 -76
  438. package/genome/rules/module-structure.md +0 -112
  439. package/genome/rules/project-model.md +0 -69
  440. package/genome/rules/required-concepts.md +0 -44
  441. package/genome/rules/requires-modules.md +0 -81
  442. package/genome/rules/semantic-ids.md +0 -49
  443. package/genome/rules/stdlib.md +0 -37
  444. package/genome/rules/test-plain-files.md +0 -138
  445. package/genome/rules/test-reqs.md +0 -57
  446. package/genome/rules/turri-regeneration.md +0 -66
  447. package/genome/skills/analyze-2-func-specs/SKILL.md +0 -116
  448. package/genome/skills/analyze-func-specs/SKILL.md +0 -137
  449. package/genome/skills/break-down-func-spec/SKILL.md +0 -229
  450. package/genome/skills/consolidate-concepts/SKILL.md +0 -192
  451. package/genome/skills/convert-old-syntax/SKILL.md +0 -68
  452. package/genome/skills/convert-old-syntax/references/rubric.md +0 -11
  453. package/genome/skills/debug-specs/SKILL.md +0 -194
  454. package/genome/skills/implement-conformance-testing-script/SKILL.md +0 -247
  455. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_cypress.ps1 +0 -337
  456. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_golang.ps1 +0 -111
  457. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_java.sh +0 -151
  458. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_python.ps1 +0 -103
  459. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_python.sh +0 -146
  460. package/genome/skills/implement-unit-testing-script/SKILL.md +0 -171
  461. package/genome/skills/implement-unit-testing-script/assets/run_unittests_flutter.ps1 +0 -87
  462. package/genome/skills/implement-unit-testing-script/assets/run_unittests_golang.ps1 +0 -73
  463. package/genome/skills/implement-unit-testing-script/assets/run_unittests_java.sh +0 -82
  464. package/genome/skills/implement-unit-testing-script/assets/run_unittests_python.ps1 +0 -81
  465. package/genome/skills/implement-unit-testing-script/assets/run_unittests_python.sh +0 -102
  466. package/genome/skills/implement-unit-testing-script/assets/run_unittests_react.ps1 +0 -87
  467. package/genome/skills/refactor-module/SKILL.md +0 -218
  468. package/genome/skills/resolve-section-ownership/SKILL.md +0 -64
  469. package/genome/skills/resolve-spec-conflict/SKILL.md +0 -102
  470. package/stdlib/backend/common.plain +0 -25
  471. package/stdlib/backend/conformance/common.plain +0 -12
  472. package/stdlib/backend/conformance/go-gin.plain +0 -9
  473. package/stdlib/backend/conformance/go-nethttp.plain +0 -9
  474. package/stdlib/backend/conformance/java-springboot.plain +0 -9
  475. package/stdlib/backend/conformance/python-django.plain +0 -9
  476. package/stdlib/backend/conformance/python-fastapi.plain +0 -9
  477. package/stdlib/backend/conformance/python-flask.plain +0 -9
  478. package/stdlib/backend/conformance/rust-axum.plain +0 -9
  479. package/stdlib/backend/conformance/typescript-express.plain +0 -9
  480. package/stdlib/backend/conformance/typescript-fastify.plain +0 -9
  481. package/stdlib/backend/conformance/typescript-nestjs.plain +0 -9
  482. package/stdlib/backend/go-gin.plain +0 -18
  483. package/stdlib/backend/go-nethttp.plain +0 -18
  484. package/stdlib/backend/java-springboot.plain +0 -19
  485. package/stdlib/backend/python-django.plain +0 -19
  486. package/stdlib/backend/python-fastapi.plain +0 -23
  487. package/stdlib/backend/python-flask.plain +0 -23
  488. package/stdlib/backend/rust-axum.plain +0 -17
  489. package/stdlib/backend/typescript-express.plain +0 -19
  490. package/stdlib/backend/typescript-fastify.plain +0 -19
  491. package/stdlib/backend/typescript-nestjs.plain +0 -19
  492. package/stdlib/cli/common.plain +0 -17
  493. package/stdlib/cli/conformance/common.plain +0 -11
  494. package/stdlib/cli/conformance/go-cobra.plain +0 -9
  495. package/stdlib/cli/conformance/go-flag.plain +0 -9
  496. package/stdlib/cli/conformance/java-picocli.plain +0 -9
  497. package/stdlib/cli/conformance/python-argparse.plain +0 -9
  498. package/stdlib/cli/conformance/python-click.plain +0 -9
  499. package/stdlib/cli/conformance/python-typer.plain +0 -9
  500. package/stdlib/cli/conformance/rust-clap.plain +0 -9
  501. package/stdlib/cli/conformance/typescript-commander.plain +0 -9
  502. package/stdlib/cli/go-cobra.plain +0 -14
  503. package/stdlib/cli/go-flag.plain +0 -14
  504. package/stdlib/cli/java-picocli.plain +0 -15
  505. package/stdlib/cli/python-argparse.plain +0 -18
  506. package/stdlib/cli/python-click.plain +0 -16
  507. package/stdlib/cli/python-typer.plain +0 -16
  508. package/stdlib/cli/rust-clap.plain +0 -14
  509. package/stdlib/cli/typescript-commander.plain +0 -17
  510. package/stdlib/frontend/angular.plain +0 -17
  511. package/stdlib/frontend/common.plain +0 -17
  512. package/stdlib/frontend/conformance/angular.plain +0 -5
  513. package/stdlib/frontend/conformance/common.plain +0 -11
  514. package/stdlib/frontend/conformance/react-vite.plain +0 -5
  515. package/stdlib/frontend/conformance/sveltekit-spa.plain +0 -5
  516. package/stdlib/frontend/conformance/vue-vite.plain +0 -5
  517. package/stdlib/frontend/react-vite.plain +0 -16
  518. package/stdlib/frontend/sveltekit-spa.plain +0 -16
  519. package/stdlib/frontend/vue-vite.plain +0 -16
  520. package/stdlib/lang/go.plain +0 -13
  521. package/stdlib/lang/java.plain +0 -12
  522. package/stdlib/lang/python.plain +0 -18
  523. package/stdlib/lang/rust.plain +0 -12
  524. package/stdlib/lang/typescript.plain +0 -13
  525. package/stdlib/library/common.plain +0 -15
  526. package/stdlib/library/conformance/common.plain +0 -9
  527. package/stdlib/library/conformance/go.plain +0 -9
  528. package/stdlib/library/conformance/java-gradle.plain +0 -9
  529. package/stdlib/library/conformance/java-maven.plain +0 -9
  530. package/stdlib/library/conformance/python.plain +0 -9
  531. package/stdlib/library/conformance/rust.plain +0 -9
  532. package/stdlib/library/conformance/typescript.plain +0 -9
  533. package/stdlib/library/go.plain +0 -12
  534. package/stdlib/library/java-gradle.plain +0 -13
  535. package/stdlib/library/java-maven.plain +0 -13
  536. package/stdlib/library/python.plain +0 -13
  537. package/stdlib/library/rust.plain +0 -12
  538. package/stdlib/library/typescript.plain +0 -15
@@ -1,138 +0,0 @@
1
- ---
2
- description: Test plain files - where they live, their two sections, their scenarios, keeping them in step with the functional specs, and writing scenarios when the person asks for tests
3
- ---
4
-
5
- # Rules for test plain files
6
-
7
- A test plain file holds the test scenarios of one functional spec. Conformance scenarios test its expected use; acceptance scenarios, the use that is not expected. The conformance agent writes the conformance and acceptance tests from these scenarios and from nothing else: each scenario becomes at least one test that does what it says, and it invents none. A functional spec whose test plain file is empty is not tested. Always follow these rules when creating or editing one.
8
-
9
- ## Where it lives
10
- - Every test plain file of a module lives in `tests/<module>/`, with `tests/` beside the module (`test-dir:` in `config.turri.yaml` can name another folder). This is a rule, not a convention: a file's folder matches its `module:`, and a `.plain` file in `tests/` outside a module's folder is an error `turri parse` reports
11
- - Name the file after its functional spec, `tests/<module>/<func-id>.plain`; the name is convention, the frontmatter is what binds it
12
- - A functional spec with no scenarios has no test plain file: it is not tested. Write one only to give a functional spec scenarios, and never an empty one - an empty file is a syntax error, as an empty section is
13
- - With conformance tests on, a functional spec that needs scenarios by the criteria under *When a functional spec needs scenarios* gets its test plain file without the person asking, with the test reqs and conformance testing script it needs - as below
14
- - More than one test plain file may bind to one functional spec: their scenarios are merged, and the scenario-ids must be unique across them. Write one file per functional spec, and keep a person's extra files as they are
15
- - A test plain file is never a module: never import or require one, and never name one where a module is asked for
16
-
17
- ## File skeleton
18
- - YAML frontmatter, then `***conformance tests***`, then `***acceptance tests***`, each section heading at the start of a line
19
- - A section is there only with at least one scenario under it: a section with none is a syntax error - leave it out. A file with no section at all is one too: a functional spec with no scenarios has no test plain file
20
- - The frontmatter has exactly two keys, both required:
21
- - `module:` - the module the functional spec is in: its file name without `.plain`
22
- - `func_id:` - the functional spec's func-id (see `semantic-ids.md`)
23
- - The two must name a functional spec that exists
24
- - No other section: no `***definitions***`, `***implementation reqs***`, `***test reqs***` or `***functional specs***`
25
- - Comment lines starting with `>` are allowed, as in a module
26
-
27
- The minimum - one scenario, its section alone:
28
-
29
- ```plain
30
- ---
31
- module: todo
32
- func_id: add-task
33
- ---
34
-
35
- ***conformance tests***
36
-
37
- # add-valid-task
38
- Adding a :Task: named "Buy milk" to an empty :TaskList: shows one :Task: named "Buy milk".
39
- ```
40
-
41
- ## Scenarios
42
- - A scenario is a `# <scenario-id>` heading (see `semantic-ids.md`) followed by free text that says what is done and what result is expected
43
- - No line of its body starts with `# ` (that starts the next scenario) or with `***`
44
- - A scenario may use every concept its module sees: its own definitions, its `import` modules' and the `exported_concepts` of its `requires` modules. It defines none
45
- - Scenarios are language-agnostic and black box: they act through the interface the functional spec names - a command line, HTTP, files, a UI - and never name a function, class or file of the code
46
- - A scenario is a direct consequence of its functional spec: it does not contradict, narrow or extend it
47
- - Each scenario states one concrete, checkable outcome; "works correctly" is not an outcome
48
- - Values that matter to the check are concrete (`named "Buy milk"`, `exits with status 0`), never descriptive (`a valid name`)
49
- - Scenario text follows `concise-specs.md`: no narration, no rationale, no step a reader would assume
50
- - `***conformance tests***` holds the expected use: the main path, with valid input, the expected caller and the data present
51
- - `***acceptance tests***` holds the use that is not expected: invalid input, wrong or missing authentication, missing data, a dependency that fails
52
- - The kind of use decides the section, not how many functional specs a scenario touches
53
-
54
- ## Scenarios across functional specs
55
- - A scenario may use functional specs written before the one it is bound to, for its setup or as steps of a longer path
56
- - It is bound to the last functional spec it exercises, since the earlier ones exist when it runs
57
- - It goes under `***conformance tests***` when every step is expected use, and under `***acceptance tests***` when any step is not; write one only when the person asks for it
58
-
59
- ## Keeping test plain files in step
60
- Scenarios that exist are kept in step; a change calls for new ones only as *When a functional spec needs scenarios* says. In the same ***plain diff as the change:
61
- - A new functional spec gets no test plain file, unless the person asks for its tests or - conformance tests on - it needs scenarios by the criteria below
62
- - A functional spec whose body changes has its scenarios, if it has any, reviewed: one that no longer follows from it is changed or taken out, and your reply says so
63
- - The last scenario of a section taken out: the section is taken out with it. The last scenario of the file: the file is deleted
64
- - A functional spec split into several: each part gets its own test plain file, and each scenario moves to the part it tests
65
- - A functional spec taken out: its test plain file, if it has one, is deleted
66
- - A functional spec moved to another module: its test plain file moves to that module's folder, with `module:` changed
67
- - A func-id renamed: `func_id:` is renamed in every test plain file bound to it, and the file with it
68
-
69
- ## When a functional spec needs scenarios
70
- With conformance tests on, judge each functional spec as you write or change it - and one the person asks about. It needs scenarios when you can show, concretely, any of these:
71
- - **It can fail silently:** an incorrect implementation could give output that looks plausible but is wrong - name the input and the wrong output
72
- - **It can be read two ways:** two reasonable readings of its text give different outputs for some input - name the input and the output under each
73
- - **A bug in it is costly:** financial loss, security exposure, data loss, or harm to users' trust - name the consequence
74
-
75
- Without that evidence it does not: a functional spec with nothing at stake is left to its unit tests, and you do not write scenarios to be safe. Being likely to change, or to be built on later, is no reason alone - the unit tests guard against regressions. A functional spec that has scenarios already is judged no further: its scenarios are kept in step as above. Say in a line, for each you write scenarios for, which of these it is.
76
-
77
- ## Writing scenarios
78
- Nothing about testing exists until the person asks for it, or - with conformance tests on - a functional spec needs scenarios by the criteria below: a module imports no conformance template, and its functional specs have no test plain files. With conformance tests off, the person turns them on first, with `/conform` (see `turri-regeneration.md`). The first time the person asks for tests in a module, or one of its functional specs needs scenarios, do three things, in this order, each a visible change - only what is missing:
79
- 1. **Test reqs:** import the stack's conformance template, `stdlib/<kind>/conformance/<stack>` (see `stdlib.md`), or write the module's own `***test reqs***` when it has no stack from the standard library (see `test-reqs.md`)
80
- 2. **The conformance testing script:** write it with `implement-conformance-testing-script`, if the project has none for the module's stack
81
- 3. **The scenarios**, as below
82
-
83
- Then, and for every later request:
84
- - Decide in prose which scenarios each functional spec named needs, then write them with the file tools, conformance and acceptance in one change where both were asked for, and call `regenerate` for the module. Ask for no further confirmation: the change is visible, and turri starts the conformance pulses itself
85
- - Write scenarios for the functional specs the person named, and for those that need them by the criteria below. Scenarios in one functional spec imply nothing about another, in the same module or not: the person may test one thoroughly and leave the rest untested
86
- - Write acceptance scenarios only when the person asks for them
87
- - For a functional spec that needs scenarios by the criteria, cover what made it need them: the input an incorrect implementation would get wrong, the input two readings answer differently - settled by the reading most consistent with the functional spec and its module, and say which you took - and its boundary inputs. Leave out an input it does not settle rather than guess at it
88
- - One conformance scenario per expected use the functional spec states: its main path first, then each valid variant it names - another input shape, an optional parameter. Stop when each has one, and never write the same outcome twice in different words
89
- - Write no outcome the functional spec does not state. When a needed one is missing, ask the person, and put the answer in the functional spec first
90
- - A scenario that needs a dependency to fail - a backend that does not answer, a database that is down - is written only when the test reqs let a test cause that failure, with a local mock of it, say; otherwise ask the person whether to add such a test req or leave the scenario out
91
- - The body is one statement line naming the action and its expected result, with concrete values; when that is not enough, `- ` bullets under it, in order: the state before, the one action under test, then each observable result, one fact a bullet
92
- - A framework, a run command or a network policy belongs in `***test reqs***`, never in a scenario
93
-
94
- ```plain
95
- Functional spec:
96
- # list-resources
97
- :Resource: items are returned sorted by creation date in descending order.
98
-
99
- Good - follows from the functional spec:
100
- # newest-first
101
- After three :Resource: items are created one after another, listing them returns the last one created first.
102
-
103
- Bad - contradicts it (the functional spec says descending):
104
- # oldest-first
105
- The first :Resource: listed is the oldest.
106
-
107
- Bad - extends it (the functional spec says nothing about a limit):
108
- # at-most-fifty
109
- At most 50 :Resource: items are listed.
110
- ```
111
-
112
- The conformance agent writes exactly the scenarios: each one becomes at least one test, labelled with its scenario-id, and no test is written from the functional spec itself or invented beside them.
113
-
114
- ## Relation to `***test reqs***`
115
- - The module's `***test reqs***` - its own, or a conformance template's - say how `:ConformanceTests:` and `:AcceptanceTests:` are written and run: framework, command, network policy. The scenarios say what they check
116
- - Test reqs and scenarios reach the conformance agent only, never the coding agent
117
- - A fact about the framework or the run command never goes into a scenario, and a scenario never goes into `***test reqs***`
118
-
119
- ## Format
120
-
121
- ```plain
122
- ---
123
- module: todo
124
- func_id: add-task
125
- ---
126
-
127
- ***conformance tests***
128
-
129
- # add-valid-task
130
- Adding a :Task: named "Buy milk" to an empty :TaskList: shows one :Task: named "Buy milk".
131
-
132
- ***acceptance tests***
133
-
134
- # reject-short-name
135
- Adding a :Task: named "Go" to an empty :TaskList: is rejected.
136
- - :App: shows the error "Name must be at least 3 characters".
137
- - :TaskList: stays empty.
138
- ```
@@ -1,57 +0,0 @@
1
- ---
2
- description: Rules for writing ***test reqs*** sections in .plain files
3
- ---
4
-
5
- # Rules for writing `***test reqs***`
6
-
7
- When writing or editing a `***test reqs***` section in a `.plain` file, always follow these rules:
8
-
9
- ## Conformance tests only
10
- - Test reqs specify how **conformance tests** should be written and run
11
- - Unit test guidance goes in `***implementation reqs***`, not here
12
- - Test scenarios, conformance and acceptance, live in test plain files, not here - see `test-plain-files.md`
13
- - Behavioral requirements go in `***functional specs***`, not here
14
-
15
- ## `:ConformanceTests:` lives here (hard rule)
16
- - **Everything** about `:ConformanceTests:` goes in `***test reqs***` — paths, approach, packages, framework, execution command, mocking / network policy, fixtures, pass criteria, environment prerequisites
17
- - `:ConformanceTests:` live outside the generated codebase, in one folder, `plain_modules/<module>/tests/` - the module's whole conformance suite, so requirements that shape them belong in test reqs by definition
18
- - The conformance agent reads how to write and run the tests **only** from `***test reqs***` — anything about `:ConformanceTests:` placed elsewhere (e.g. `***implementation reqs***`) is silently ignored
19
- - Phrase each `:ConformanceTests:` requirement in terms of `:ConformanceTests:` so the partition stays visible at a glance
20
- - Do not link the conformance testing script here (or anywhere in the ***plain; a link to it is ignored). turri finds it in the project root - `conformance-tests-script:` in `config.turri.yaml`, else the one `run_conformance_tests*.sh` in the root, else the one in `test_scripts/` - and shows it to the agents that write the conformance tests itself. Describe the framework and execution command here in words
21
-
22
- ## What belongs here
23
- - Test framework: which framework to use (e.g., pytest, Unittest, xUnit)
24
- - Execution method: the command to run the tests
25
- - Testing constraints: what must or must not be done in tests (e.g., no skipping, mock requirements)
26
- - Test data: how test fixtures or mock data should be structured
27
- - Environment setup: any prerequisites for running conformance tests
28
-
29
- ## Test type reference
30
-
31
- | Test type | Where to specify | Written from | Purpose |
32
- |-----------|-----------------|--------------|---------|
33
- | Unit tests | `***implementation reqs***` | the functional specs, by the coding agent with the code | Test each functional spec's code in isolation |
34
- | Conformance tests | how: `***test reqs***`; what: `***conformance tests***` of the functional spec's test plain file | exactly its conformance scenarios, by the conformance agent - at least one test each, none invented | Verify the expected use of one functional spec, its main path |
35
- | Acceptance tests | how: `***test reqs***`; what: `***acceptance tests***` of the functional spec's test plain file | exactly its acceptance scenarios, the same way | Verify one functional spec under use that is not expected: invalid input, wrong or missing authentication, missing data |
36
-
37
- ## No duplication
38
- - Do not duplicate guidance already present in the file or its imports
39
- - Check imported modules before adding a new test req
40
-
41
- ## Concept references
42
- - Reference predefined concepts like `:ConformanceTests:` where appropriate
43
- - All other referenced `:Concepts:` must be defined in `***definitions***`
44
-
45
- ## Conciseness
46
- - State each req in the fewest plain words that stay exact — see `concise-specs.md`
47
- - Do not restate the default behavior of the test framework this section already names
48
-
49
- ## Format
50
-
51
- ```plain
52
- ***test reqs***
53
- - :ConformanceTests: should be implemented using pytest framework.
54
- - :ConformanceTests: will be run using "pytest" command.
55
- - :ConformanceTests: must be implemented and executed - do not skip tests.
56
- - :ConformanceTests: should mock all external HTTP calls.
57
- ```
@@ -1,66 +0,0 @@
1
- ---
2
- description: How turri regenerates the code from a spec change - by spec diff, in the chain's tip - what each kind of change sets off, what a coding agent sees, how bad code is fixed and where the cost really is, so a spec is placed and written by what it means, never by a guess at what regenerating it costs
3
- ---
4
-
5
- # How turri regenerates the code
6
-
7
- The other rules say what a spec means. This one says what turri does with a change to it, so that where a change goes, and how it is made, is never decided by a wrong idea of how turri works. Each section ends in the same place: decide by what the spec means.
8
-
9
- ## A change is regenerated as a spec diff
10
-
11
- - turri regenerates the code from spec diffs: what changed between the spec the code was built from and the spec now
12
- - A functional spec added, changed or taken out is that change alone, wherever it sits - first, in the middle or last of its module
13
- - A functional spec is known by its module and its func-id, `<module>:<func-id>`: the specs around it are not regenerated because their position moved, and nothing after it is built again. A spec inserted in the middle is one addition; one moved to another place with its text as it was is no change at all
14
- - A func-id renamed, and nothing else with it, regenerates nothing: turri renames it in its records and relabels its tests itself. Renamed together with any other change - its text, a scenario - it is a functional spec taken out and another added: its code is removed and built anew. Keep a func-id once it is built, and change the text under it
15
- - Code built before functional specs had func-ids is never built on: its whole chain is regenerated from scratch, never done without the person agreeing
16
- - "Specs render top to bottom, each knowing only the ones before it" is about what a spec may assume (`func-specs.md`), not about what a change costs
17
-
18
- ## A change is regenerated in the chain's tip
19
-
20
- - A chain's code lives in its tip - the furthest module built on it. The modules below it keep the code they were built with
21
- - A change to any module of the chain, the base's included, is regenerated in the tip's code - not in the module the change was made in
22
- - A functional spec of a module below is added, patched or taken out in the tip just as the tip's own are, named `<module>:<func-id>`. Its conformance tests are in the tip's suite too, and are kept up to date there
23
- - Putting a change in a lower module costs no more than putting it in the tip, and saves nothing either
24
- - Moving specs between modules of the chain regenerates nothing. Moving specs into a module the code was never built on is the exception: no change to the code brings that module in, so the chain has to be regenerated from scratch - never done without the person agreeing
25
-
26
- ## What each kind of change sets off
27
-
28
- - A functional spec added is built, with its unit tests; one changed is patched in place; one taken out has its code, and the tests only it had, removed
29
- - A definition changed patches every functional spec of the chain that uses its concept, directly or through other definitions - a module below's as well as the tip's own. So does a change to a linked resource: the spec or definition linking it is changed though its text is not. A widely used definition is the costly edit - not a spec's position
30
- - Implementation reqs alone, or definitions no functional spec of the chain uses, are a mechanical change: the code adapts, and no test is written or changes what it asserts
31
- - Test reqs and scenarios - a functional spec's conformance and acceptance scenarios, in its test plain file - reach the conformance tests only, never the code. A scenario changed alone regenerates no code
32
- - A functional spec regenerated again by name has its code taken out and built anew - never left as it was, even where it already does what the spec says; a pulse that changes nothing does not land. Its conformance tests, when it has them, are run on its new code once it lands: those that pass are kept as they are; one that fails is judged against the spec - what it checks that the spec leaves open, a path, a field, a message the old code chose, goes by the new code
33
- - What is conformance tested is the scenarios: each conformance and acceptance scenario of a functional spec gets at least one test, and nothing else is tested - a functional spec with no test plain file, or an empty one, has no conformance tests. Its tests are written or changed once its code lands, whenever a scenario is added, changed or taken out, its text changes, it is regenerated again or taken out; one whose scenarios are all taken out loses its tests. It goes scenario by scenario, by scenario-id: a scenario added gets its tests, one changed has them rewritten, one taken out loses them, and an unchanged one keeps them - run on the new code when the functional spec's code changed. A scenario-id renamed with its text as it was has its tests relabelled, nothing rewritten; renamed with any other change, or moved between conformance and acceptance, it is one taken out and one added. To have something checked end to end, write it as a scenario
34
- - Scenarios are tested only once the module has test reqs - its own, or the stack's conformance template imported - and the project has a conformance testing script for it. For a module another requires, that is the tip of the chain: its conformance tests are written there, from the tip's test reqs, so the template goes into the tip. Without either, turri starts no conformance pulse there, by itself or from `conform`: it refuses, naming the step missing, the module waits on it until the `.plain` files or the scripts change, and `turri parse` warns. Take the steps in order - test reqs, the script, then the scenarios - and a module with no scenarios needs neither
35
- - A module is built with `config.turri.yaml` and, laid over it, its own `config.turri.<module>.yaml` - else the one of a module it requires, all the way down: a module is built on their code, with their testing scripts. Nobody chooses it. Two modules it requires with a file of their own, and none of its own, is an error `turri parse` reports and `regenerate` refuses: give the module its own file, or keep one of theirs. Only `requires` counts, not `import`
36
- - Definitions moved to a common module and reqs reordered are recorded, not regenerated
37
- - A functional spec written on its happy path and hardened later - its validation, edge cases and errors added to it - is patched in place each time: growing a spec a step at a time costs no more than writing it whole up front
38
- - A module's first pulse, when it builds one functional spec - the project set up and the smallest thing that runs - lands on its unit tests with no review
39
-
40
- ## Conformance tests
41
-
42
- - Conformance tests are the person's choice: `conformance-tests:` in config.turri.yaml, off when unset, as they make each change take about twice as long. Off, no scenarios are tested and `conform` is refused - write no test plain file, test reqs or conformance testing script. When you think a module needs conformance tests, or the person asks for them, tell them in a line or two why; they decide, and turn them on with `/conform`
43
- - On, you decide which functional specs need scenarios: as you write or change one, judge it by the criteria in the rules on test plain files, and when it needs them, write them - with the test reqs and the conformance testing script first, when missing, without asking: conformance tests on is the person's yes to all three - as a visible ***plain change the person reviews like any other, then call `regenerate`. The work loop writes and runs their conformance tests once the code is built
44
-
45
- ## What a coding agent sees
46
-
47
- - A coding agent sees its prompt and its module's code - nothing else. It cannot read `.plain` files, this conversation, AGENTS.md or the person. It never sees a functional spec's scenarios: those are the conformance tests'
48
- - What the code needs to know has to be in the spec. A fact said only in the conversation, AGENTS.md or notes never reaches the code, and is lost at the next regeneration
49
- - How the work is cut into pulses, and in what order, is the planner's alone: nothing the person or the conversation says reaches it. What the code does is changed in the spec
50
- - A codebase that requires no module may start from a base folder (`base-folder:` in config.turri.yaml): an existing codebase, files to use - images, animations - or both, copied in once before its first pulse and up the chain with the code. The agents that change and review its code are told what came from it, and keep it unless a functional spec asks otherwise. Refer to what is in it in the spec - in words, or by a link into the folder, relative to the module's file as every link is - for the code to use it: a file it holds that no functional spec names is kept, never used. A change to the folder later reaches the code only when the module is regenerated from scratch
51
-
52
- ## How bad code is fixed
53
-
54
- - Never edit the code under `plain_modules/`: the next regeneration does not keep it, and the code record no longer says what the code is
55
- - In order of cost: change the spec where it is wrong or silent; regenerate the functional specs whose code went bad again, by name; regenerate the module from scratch, or its whole chain - only when the person asks for it or agrees to it
56
- - Bad conformance tests are fixed the same way, their code untouched: `conform` naming a functional spec whose tests are written writes them again, anew from its scenarios; `conform` from scratch takes out the tests folder at the tip of the module's chain and writes them again - from the tests of the module the tip requires, or, its whole chain, from nothing - only when the person asks for it
57
- - Pulses regenerate in the background: the spec can be changed while they run, and need not wait for them. A change inside what a running pulse regenerates steers it; the rest is planned again around it
58
- - A pulse that does not land is rolled back whole - code, tests and record together - and its module waits until the spec changes or the module is asked for again. Running it again unchanged usually ends the same way: look at why it did not land first
59
- - A finished pulse goes to the sentinel, a chat of turri's own - unless `sentinel: false`; under `sentinel: ask`, the default, only once the person said to start it. It checks every pulse in order and tests it in a launch whose commit holds the pulse's. It can fix a testing script or its configuration and resume the module. Anything else that is wrong goes to the person as a notice with evidence and actions. The sentinel never changes ***plain. turri installs nothing on the machine and changes none of its settings: a missing toolchain is the person's to install, told the exact command. Where the surface shows notifications, finished pulses, findings and conclusions are for the person to read there. The chat does not repeat them; it answers when asked and carries out a notice's task once the person accepts it
60
-
61
- ## Where the cost is
62
-
63
- - The cost is the work regenerated: how many functional specs a change touches, directly or through the definitions they use, cut into pulses of at most `max-specs-per-pulse`
64
- - Regenerating functional specs again, or a module or chain from scratch, costs most, and is only ever asked for outright
65
- - Placement never adds cost. Put a functional spec in the module that owns the concern, at the point in its order where what it relies on has been said; never at the end of a module, or in the tip, only to spare regeneration - it spares none
66
- - Never write placement for cost into AGENTS.md, a skill or notes: what is written there is read back later as how the project works
@@ -1,116 +0,0 @@
1
- ---
2
- name: analyze-2-func-specs
3
- description: >-
4
- Analyze two functional specs from a .plain file to determine if they
5
- conflict. Use when the user wants to check whether two specific functional
6
- requirements are compatible, or when debugging a suspected conflict between
7
- two specs.
8
- allowed-tools: [read, ls, grep, find]
9
- ---
10
-
11
- # Analyze Two Functional Specs
12
-
13
- ## Input
14
-
15
- Two functional specs from a `.plain` file (or across `requires` modules). The user provides them directly or names them by func-id - `<module>:<func-id>` across modules. Name each by its func-id while you work; a draft that has none yet is Spec A or Spec B.
16
-
17
- ## Workflow
18
-
19
- 1. **Read both functional specs** and the `***definitions***` section so all referenced `:Concepts:` are understood.
20
- 2. **Determine chronological order** — which functional spec comes first? The earlier one was regenerated first and the later one was regenerated with the earlier one in context.
21
- 3. **Run the conflict analysis** using the checklist below.
22
- 4. **Output the verdict and nothing else** — either `COMPATIBLE` or `CONFLICTING`. No reasoning, no category labels, no resolution suggestions.
23
-
24
- ## Conflict Analysis Checklist
25
-
26
- Work through each question. If any answer is "yes", the functional specs likely conflict.
27
-
28
- ### 1. Direct Contradiction
29
-
30
- Do the two functional specs make mutually exclusive assertions about the same behavior?
31
-
32
- ```
33
- # sort-by-name
34
- :Resource: items are returned sorted by name in ascending order.
35
-
36
- # sort-by-date
37
- :Resource: items are returned sorted by creation date in descending order.
38
-
39
- Verdict: CONFLICTING — both define the sort order for the same response,
40
- but specify different fields and directions. A single implementation cannot
41
- satisfy both unless scoped to different contexts.
42
- ```
43
-
44
- ### 2. State or Data Conflict
45
-
46
- Does one functional spec set a state or value that the other assumes is different?
47
-
48
- ```
49
- # empty-task-list
50
- :TaskList: is initially empty.
51
-
52
- # welcome-task
53
- :TaskList: contains a default "Welcome" :Task: on first load.
54
-
55
- Verdict: CONFLICTING — both define the initial state of :TaskList: differently.
56
- ```
57
-
58
- ### 3. Behavioral Override
59
-
60
- Does the later functional spec silently replace behavior established by the earlier one without acknowledging it?
61
-
62
- ```
63
- # api-key-auth
64
- :User: credentials are validated using an API key.
65
-
66
- # oauth-auth
67
- :User: credentials are validated using OAuth 2.0.
68
-
69
- Verdict: CONFLICTING — both define the authentication mechanism but pick
70
- different approaches. The later one overrides the earlier one.
71
- ```
72
-
73
- ### 4. Scope Ambiguity
74
-
75
- Are the two functional specs ambiguous enough that a coding agent could interpret them as conflicting, even if the user intends them to be complementary?
76
-
77
- ```
78
- # list-resources
79
- All :Resource: items are returned.
80
-
81
- # list-active-resources
82
- Only active :Resource: items are returned.
83
-
84
- Verdict: CONFLICTING (ambiguous) — "all" vs "only active" appear contradictory.
85
- Could be resolved by scoping each to different conditions (e.g., filtered vs unfiltered).
86
- ```
87
-
88
- ### 5. Shared Concept, Different Constraints
89
-
90
- Do both functional specs impose constraints on the same `:Concept:` that cannot coexist?
91
-
92
- ```
93
- # default-batch-size
94
- :BatchSize: is 100 items.
95
-
96
- # attachment-batch-size
97
- :BatchSize: is 50 items for :Resource: types with attachments.
98
-
99
- Verdict: COMPATIBLE — attachment-batch-size adds a conditional refinement, not a contradiction.
100
- ```
101
-
102
- ## Output Format
103
-
104
- The skill emits exactly one of these two strings, with no surrounding text, explanation, category label, or resolution suggestion:
105
-
106
- ```
107
- COMPATIBLE
108
- ```
109
-
110
- or
111
-
112
- ```
113
- CONFLICTING
114
- ```
115
-
116
- The internal analysis (checklist, chronological reasoning) informs the verdict but must not appear in the output. The caller decides what to do with the result — typically: act on `COMPATIBLE` by proceeding, or invoke `resolve-spec-conflict` on `CONFLICTING` to produce the actual fix.
@@ -1,137 +0,0 @@
1
- ---
2
- name: analyze-func-specs
3
- description: >-
4
- Analyze a batch of functional specs from a .plain file to determine
5
- which pairs conflict. Replaces the pair-by-pair `analyze-2-func-specs` flow
6
- when a caller wants to check many functional specs at once (e.g. a new one against
7
- every existing one, or a freshly inserted batch against itself).
8
- allowed-tools: [read, ls, grep, find]
9
- ---
10
-
11
- # Analyze Functional Specs
12
-
13
- ## Input
14
-
15
- A **set of two or more functional specs** to check against each other. Callers typically supply one of:
16
-
17
- - A whole `***functional specs***` section to self-check.
18
- - A new functional spec (or batch of them) **plus** the existing functional specs from the same file and any `requires` modules.
19
- - An explicit list of functional spec snippets the user wants compared.
20
-
21
- Each functional spec must be identifiable. Use its func-id (`<module>:<func-id>` when the batch spans modules). A draft that has no func-id yet gets a **stable identifier** in order of appearance: `S1`, `S2`, `S3`, …. Use those identifiers in the output. If the caller provided its own labels or quoted snippets, use those instead and keep them verbatim.
22
-
23
- The skill also needs the `***definitions***` section (and any imported definitions) so referenced `:Concepts:` can be resolved.
24
-
25
- ## Workflow
26
-
27
- 1. **Read all input functional specs and the relevant `***definitions***`** so every `:Concept:` is understood.
28
- 2. **Establish chronological order** across the batch. Earlier functional specs are considered to have been regenerated first; later ones are evaluated with the earlier ones in context. If the caller already provided an order, preserve it.
29
- 3. **Generate the pair list.** Enumerate every unordered pair of functional specs, the earlier first. Skip pairs where the two share no `:Concept:` and no overlapping subject — they are trivially compatible and listing them adds noise.
30
- 4. **Run the conflict analysis below on each remaining pair.** Use the same checklist that the legacy `analyze-2-func-specs` skill used, but apply it pair by pair across the batch in a single pass — do not require the caller to invoke the analyzer once per pair.
31
- 5. **Record every CONFLICTING pair.** Compatible pairs are not listed individually; only the conflicts are emitted.
32
- 6. **Output the verdict** in the format below. No reasoning, no category labels, no resolution suggestions.
33
-
34
- ## Conflict Analysis Checklist (applied per pair)
35
-
36
- Work through each question for the pair under inspection. If any answer is "yes", that pair is CONFLICTING.
37
-
38
- ### 1. Direct Contradiction
39
-
40
- Do the two functional specs make mutually exclusive assertions about the same behavior?
41
-
42
- ```
43
- # sort-by-name
44
- :Resource: items are returned sorted by name in ascending order.
45
-
46
- # sort-by-date
47
- :Resource: items are returned sorted by creation date in descending order.
48
-
49
- Verdict: CONFLICTING — both define the sort order for the same response,
50
- but specify different fields and directions. A single implementation cannot
51
- satisfy both unless scoped to different contexts.
52
- ```
53
-
54
- ### 2. State or Data Conflict
55
-
56
- Does one functional spec set a state or value that the other assumes is different?
57
-
58
- ```
59
- # empty-task-list
60
- :TaskList: is initially empty.
61
-
62
- # welcome-task
63
- :TaskList: contains a default "Welcome" :Task: on first load.
64
-
65
- Verdict: CONFLICTING — both define the initial state of :TaskList: differently.
66
- ```
67
-
68
- ### 3. Behavioral Override
69
-
70
- Does the later functional spec silently replace behavior established by the earlier one without acknowledging it?
71
-
72
- ```
73
- # api-key-auth
74
- :User: credentials are validated using an API key.
75
-
76
- # oauth-auth
77
- :User: credentials are validated using OAuth 2.0.
78
-
79
- Verdict: CONFLICTING — both define the authentication mechanism but pick
80
- different approaches. The later one overrides the earlier one.
81
- ```
82
-
83
- ### 4. Scope Ambiguity
84
-
85
- Are the two functional specs ambiguous enough that a coding agent could interpret them as conflicting, even if the user intends them to be complementary?
86
-
87
- ```
88
- # list-resources
89
- All :Resource: items are returned.
90
-
91
- # list-active-resources
92
- Only active :Resource: items are returned.
93
-
94
- Verdict: CONFLICTING (ambiguous) — "all" vs "only active" appear contradictory.
95
- Could be resolved by scoping each to different conditions (e.g., filtered vs unfiltered).
96
- ```
97
-
98
- ### 5. Shared Concept, Different Constraints
99
-
100
- Do both functional specs impose constraints on the same `:Concept:` that cannot coexist?
101
-
102
- ```
103
- # default-batch-size
104
- :BatchSize: is 100 items.
105
-
106
- # attachment-batch-size
107
- :BatchSize: is 50 items for :Resource: types with attachments.
108
-
109
- Verdict: COMPATIBLE — attachment-batch-size adds a conditional refinement, not a contradiction.
110
- ```
111
-
112
- ## Output Format
113
-
114
- Emit exactly one of the two shapes below, with no surrounding text, explanation, category label, or resolution suggestion.
115
-
116
- If **no pair** is conflicting:
117
-
118
- ```
119
- COMPATIBLE
120
- ```
121
-
122
- If **one or more pairs** are conflicting, emit `CONFLICTING` followed by one line per conflicting pair, in `<a> x <b>` form (the identifiers from step 1, the one that comes first in the input on the left), sorted lexicographically:
123
-
124
- ```
125
- CONFLICTING
126
- add-task x import-tasks
127
- list-tasks x S2
128
- ```
129
-
130
- Rules for the output:
131
-
132
- - Do **not** list compatible pairs.
133
- - Do **not** include reasoning, checklist categories, or fixes — the caller decides what to do with each conflict (typically: invoke `resolve-spec-conflict` on each pair).
134
- - If the input contained fewer than two functional specs, emit `COMPATIBLE` (nothing to compare).
135
- - Identifiers must match exactly what *Input* settled: the func-ids, the caller's own labels, or the `S1`, `S2`, … fallback for a draft.
136
-
137
- The internal pairwise analysis informs the verdict but must not appear in the output.