@almadar/std 16.254.0 → 16.255.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/behaviors/lolo/agent/atoms/std-agent-pool.lolo +10 -10
  2. package/behaviors/lolo/agent/evals/eval-agent-builder.lolo +15 -8
  3. package/behaviors/lolo/agent/organisms/std-agent-builder.lolo +6 -5
  4. package/behaviors/registry/agent/atoms/std-agent-context.orb +1 -1
  5. package/behaviors/registry/agent/atoms/std-agent-fix-loop.orb +1 -1
  6. package/behaviors/registry/agent/atoms/std-agent-planner.orb +1 -1
  7. package/behaviors/registry/agent/atoms/std-agent-pool.orb +1 -1
  8. package/behaviors/registry/agent/atoms/std-agent-proposal.orb +1 -1
  9. package/behaviors/registry/agent/atoms/std-agent-session.orb +1 -1
  10. package/behaviors/registry/agent/atoms/std-agent-suggestions.orb +1 -1
  11. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +1 -1
  12. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +1 -1
  13. package/behaviors/registry/agent/atoms/std-agent-trace.orb +1 -1
  14. package/behaviors/registry/agent/evals/eval-agent-builder.orb +1 -1
  15. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1 -1
  16. package/behaviors/registry/agent/organisms/std-agent-builder.orb +1 -1
  17. package/behaviors/registry/infra/atoms/std-analytics.orb +1 -1
  18. package/behaviors/registry/infra/atoms/std-approval-gate.orb +1 -1
  19. package/behaviors/registry/infra/atoms/std-audit-capture.orb +1 -1
  20. package/behaviors/registry/infra/atoms/std-cache-aside.orb +1 -1
  21. package/behaviors/registry/infra/atoms/std-calendar-sync.orb +1 -1
  22. package/behaviors/registry/infra/atoms/std-cascade-on-delete.orb +1 -1
  23. package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +1 -1
  24. package/behaviors/registry/infra/atoms/std-cross-reference.orb +1 -1
  25. package/behaviors/registry/infra/atoms/std-data-erasure.orb +1 -1
  26. package/behaviors/registry/infra/atoms/std-data-import.orb +1 -1
  27. package/behaviors/registry/infra/atoms/std-global-search.orb +1 -1
  28. package/behaviors/registry/infra/atoms/std-knowledge-loop.orb +1 -1
  29. package/behaviors/registry/infra/atoms/std-lifecycle.orb +1 -1
  30. package/behaviors/registry/infra/atoms/std-migration-job.orb +1 -1
  31. package/behaviors/registry/infra/atoms/std-mod-queue.orb +1 -1
  32. package/behaviors/registry/infra/atoms/std-notification-center.orb +1 -1
  33. package/behaviors/registry/infra/atoms/std-notification-preferences.orb +1 -1
  34. package/behaviors/registry/infra/atoms/std-notify-on-event.orb +1 -1
  35. package/behaviors/registry/infra/atoms/std-page-search.orb +1 -1
  36. package/behaviors/registry/infra/atoms/std-page-watch.orb +1 -1
  37. package/behaviors/registry/infra/atoms/std-permission-matrix.orb +1 -1
  38. package/behaviors/registry/infra/atoms/std-rate-limiter.orb +1 -1
  39. package/behaviors/registry/infra/atoms/std-reminder-scheduler.orb +1 -1
  40. package/behaviors/registry/infra/atoms/std-review-cycle.orb +1 -1
  41. package/behaviors/registry/infra/atoms/std-row-access-control.orb +1 -1
  42. package/behaviors/registry/infra/atoms/std-status-lifecycle.orb +1 -1
  43. package/behaviors/registry/infra/organisms/std-status-lifecycle-control.orb +1 -1
  44. package/behaviors/registry/ml/atoms/std-data-collector.orb +1 -1
  45. package/behaviors/registry/ml/atoms/std-graph-builder.orb +1 -1
  46. package/behaviors/registry/ml/atoms/std-ml-classify.orb +1 -1
  47. package/behaviors/registry/ml/atoms/std-ml-exact-check.orb +1 -1
  48. package/behaviors/registry/ml/atoms/std-ml-infer.orb +1 -1
  49. package/behaviors/registry/ml/atoms/std-ml-posterior.orb +1 -1
  50. package/behaviors/registry/ml/atoms/std-ml-similarity.orb +1 -1
  51. package/behaviors/registry/ml/atoms/std-tokenizer.orb +1 -1
  52. package/behaviors/registry/ml/atoms/std-weight-validator.orb +1 -1
  53. package/behaviors/registry/ml/organisms/std-escalating-decision.orb +1 -1
  54. package/behaviors/registry/ml/organisms/std-knowledge-tracing.orb +1 -1
  55. package/behaviors/registry/ui/avl/atoms/std-avl-cosmic-zoom.orb +1 -1
  56. package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +1 -1
  57. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +1 -1
  58. package/behaviors/registry/ui/avl/atoms/ui-avl-transition-detail.orb +1 -1
  59. package/behaviors/registry/ui/avl/atoms/ui-avl-transition-explainer.orb +1 -1
  60. package/behaviors/registry/ui/avl/atoms/ui-behavior-view.orb +1 -1
  61. package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +1 -1
  62. package/behaviors/registry/ui/avl/organisms/ui-flow-canvas.orb +1 -1
  63. package/behaviors/registry/ui/avl/organisms/ui-layers-panel.orb +1 -1
  64. package/behaviors/registry/ui/avl/organisms/ui-orb-inspector.orb +1 -1
  65. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +1 -1
  66. package/behaviors/registry/ui/core/atoms/std-app-search.orb +1 -1
  67. package/behaviors/registry/ui/core/atoms/std-behavior-catalog.orb +1 -1
  68. package/behaviors/registry/ui/core/atoms/std-behavior-tour.orb +1 -1
  69. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +1 -1
  70. package/behaviors/registry/ui/core/atoms/std-board.orb +1 -1
  71. package/behaviors/registry/ui/core/atoms/std-book-reader.orb +1 -1
  72. package/behaviors/registry/ui/core/atoms/std-browse.orb +1 -1
  73. package/behaviors/registry/ui/core/atoms/std-calendar.orb +1 -1
  74. package/behaviors/registry/ui/core/atoms/std-card-grid.orb +1 -1
  75. package/behaviors/registry/ui/core/atoms/std-confirmation.orb +1 -1
  76. package/behaviors/registry/ui/core/atoms/std-dashboard-grid-embedded.orb +1 -1
  77. package/behaviors/registry/ui/core/atoms/std-date-range.orb +1 -1
  78. package/behaviors/registry/ui/core/atoms/std-detail-layout.orb +1 -1
  79. package/behaviors/registry/ui/core/atoms/std-doc-page.orb +1 -1
  80. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +1 -1
  81. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +1 -1
  82. package/behaviors/registry/ui/core/atoms/std-event-log.orb +1 -1
  83. package/behaviors/registry/ui/core/atoms/std-export.orb +1 -1
  84. package/behaviors/registry/ui/core/atoms/std-file-store.orb +1 -1
  85. package/behaviors/registry/ui/core/atoms/std-filter.orb +1 -1
  86. package/behaviors/registry/ui/core/atoms/std-form-advanced.orb +1 -1
  87. package/behaviors/registry/ui/core/atoms/std-gallery.orb +1 -1
  88. package/behaviors/registry/ui/core/atoms/std-gantt-schedule.orb +1 -1
  89. package/behaviors/registry/ui/core/atoms/std-geosearch.orb +1 -1
  90. package/behaviors/registry/ui/core/atoms/std-graphs.orb +1 -1
  91. package/behaviors/registry/ui/core/atoms/std-hero.orb +1 -1
  92. package/behaviors/registry/ui/core/atoms/std-home.orb +1 -1
  93. package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +1 -1
  94. package/behaviors/registry/ui/core/atoms/std-import.orb +1 -1
  95. package/behaviors/registry/ui/core/atoms/std-language-picker.orb +1 -1
  96. package/behaviors/registry/ui/core/atoms/std-media-section.orb +1 -1
  97. package/behaviors/registry/ui/core/atoms/std-modal-editor.orb +1 -1
  98. package/behaviors/registry/ui/core/atoms/std-modal.orb +1 -1
  99. package/behaviors/registry/ui/core/atoms/std-multi-party-flow.orb +1 -1
  100. package/behaviors/registry/ui/core/atoms/std-notification-panel.orb +1 -1
  101. package/behaviors/registry/ui/core/atoms/std-panel-launcher.orb +1 -1
  102. package/behaviors/registry/ui/core/atoms/std-pricing.orb +1 -1
  103. package/behaviors/registry/ui/core/atoms/std-proof.orb +1 -1
  104. package/behaviors/registry/ui/core/atoms/std-prose.orb +1 -1
  105. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +1 -1
  106. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +1 -1
  107. package/behaviors/registry/ui/core/atoms/std-recurrence.orb +1 -1
  108. package/behaviors/registry/ui/core/atoms/std-related.orb +1 -1
  109. package/behaviors/registry/ui/core/atoms/std-role-gate.orb +1 -1
  110. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +1 -1
  111. package/behaviors/registry/ui/core/atoms/std-scatter.orb +1 -1
  112. package/behaviors/registry/ui/core/atoms/std-scoped-list.orb +1 -1
  113. package/behaviors/registry/ui/core/atoms/std-search.orb +1 -1
  114. package/behaviors/registry/ui/core/atoms/std-selection.orb +1 -1
  115. package/behaviors/registry/ui/core/atoms/std-site-footer.orb +1 -1
  116. package/behaviors/registry/ui/core/atoms/std-site-header.orb +1 -1
  117. package/behaviors/registry/ui/core/atoms/std-slide-deck.orb +1 -1
  118. package/behaviors/registry/ui/core/atoms/std-stat-band.orb +1 -1
  119. package/behaviors/registry/ui/core/atoms/std-stats.orb +1 -1
  120. package/behaviors/registry/ui/core/atoms/std-step-flow.orb +1 -1
  121. package/behaviors/registry/ui/core/atoms/std-steps.orb +1 -1
  122. package/behaviors/registry/ui/core/atoms/std-tabs.orb +1 -1
  123. package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +1 -1
  124. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +1 -1
  125. package/behaviors/registry/ui/core/atoms/std-thread.orb +1 -1
  126. package/behaviors/registry/ui/core/atoms/std-tree.orb +1 -1
  127. package/behaviors/registry/ui/core/atoms/std-version-history.orb +1 -1
  128. package/behaviors/registry/ui/core/atoms/std-wizard.orb +1 -1
  129. package/behaviors/registry/ui/core/atoms/std-workspace-layout.orb +1 -1
  130. package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +1 -1
  131. package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +1 -1
  132. package/behaviors/registry/ui/core/atoms/ui-aside.orb +1 -1
  133. package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +1 -1
  134. package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +1 -1
  135. package/behaviors/registry/ui/core/atoms/ui-avatar.orb +1 -1
  136. package/behaviors/registry/ui/core/atoms/ui-badge.orb +1 -1
  137. package/behaviors/registry/ui/core/atoms/ui-box.orb +1 -1
  138. package/behaviors/registry/ui/core/atoms/ui-button.orb +1 -1
  139. package/behaviors/registry/ui/core/atoms/ui-card.orb +1 -1
  140. package/behaviors/registry/ui/core/atoms/ui-center.orb +1 -1
  141. package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +1 -1
  142. package/behaviors/registry/ui/core/atoms/ui-conditional-wrapper.orb +1 -1
  143. package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +1 -1
  144. package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +1 -1
  145. package/behaviors/registry/ui/core/atoms/ui-dialog.orb +1 -1
  146. package/behaviors/registry/ui/core/atoms/ui-divider.orb +1 -1
  147. package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +1 -1
  148. package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +1 -1
  149. package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +1 -1
  150. package/behaviors/registry/ui/core/atoms/ui-hstack.orb +1 -1
  151. package/behaviors/registry/ui/core/atoms/ui-icon.orb +1 -1
  152. package/behaviors/registry/ui/core/atoms/ui-image.orb +1 -1
  153. package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +1 -1
  154. package/behaviors/registry/ui/core/atoms/ui-input.orb +1 -1
  155. package/behaviors/registry/ui/core/atoms/ui-label.orb +1 -1
  156. package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +1 -1
  157. package/behaviors/registry/ui/core/atoms/ui-overlay.orb +1 -1
  158. package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +1 -1
  159. package/behaviors/registry/ui/core/atoms/ui-presence.orb +1 -1
  160. package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +1 -1
  161. package/behaviors/registry/ui/core/atoms/ui-radio.orb +1 -1
  162. package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +1 -1
  163. package/behaviors/registry/ui/core/atoms/ui-section-header.orb +1 -1
  164. package/behaviors/registry/ui/core/atoms/ui-select.orb +1 -1
  165. package/behaviors/registry/ui/core/atoms/ui-spacer.orb +1 -1
  166. package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +1 -1
  167. package/behaviors/registry/ui/core/atoms/ui-spinner.orb +1 -1
  168. package/behaviors/registry/ui/core/atoms/ui-stack.orb +1 -1
  169. package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +1 -1
  170. package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +1 -1
  171. package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +1 -1
  172. package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +1 -1
  173. package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +1 -1
  174. package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +1 -1
  175. package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +1 -1
  176. package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +1 -1
  177. package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +1 -1
  178. package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +1 -1
  179. package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +1 -1
  180. package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +1 -1
  181. package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +1 -1
  182. package/behaviors/registry/ui/core/atoms/ui-switch.orb +1 -1
  183. package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +1 -1
  184. package/behaviors/registry/ui/core/atoms/ui-textarea.orb +1 -1
  185. package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +1 -1
  186. package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +1 -1
  187. package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +1 -1
  188. package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +1 -1
  189. package/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
  190. package/behaviors/registry/ui/core/atoms/ui-video-embed.orb +1 -1
  191. package/behaviors/registry/ui/core/atoms/ui-vstack.orb +1 -1
  192. package/behaviors/registry/ui/core/molecules/std-stat-rows.orb +1 -1
  193. package/behaviors/registry/ui/core/molecules/ui-accordion.orb +1 -1
  194. package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +1 -1
  195. package/behaviors/registry/ui/core/molecules/ui-activity-rail.orb +1 -1
  196. package/behaviors/registry/ui/core/molecules/ui-agent-activity-feed.orb +1 -1
  197. package/behaviors/registry/ui/core/molecules/ui-agent-activity-row.orb +1 -1
  198. package/behaviors/registry/ui/core/molecules/ui-agent-chat-feed.orb +1 -1
  199. package/behaviors/registry/ui/core/molecules/ui-alert.orb +1 -1
  200. package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +1 -1
  201. package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +1 -1
  202. package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +1 -1
  203. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +1 -1
  204. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +1 -1
  205. package/behaviors/registry/ui/core/molecules/ui-carousel.orb +1 -1
  206. package/behaviors/registry/ui/core/molecules/ui-change-list.orb +1 -1
  207. package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +1 -1
  208. package/behaviors/registry/ui/core/molecules/ui-chart.orb +1 -1
  209. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +1 -1
  210. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +1 -1
  211. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +1 -1
  212. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +1 -1
  213. package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +1 -1
  214. package/behaviors/registry/ui/core/molecules/ui-container.orb +1 -1
  215. package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +1 -1
  216. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +1 -1
  217. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +1 -1
  218. package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +1 -1
  219. package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +1 -1
  220. package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +1 -1
  221. package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +1 -1
  222. package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +1 -1
  223. package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +1 -1
  224. package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +1 -1
  225. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +1 -1
  226. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +1 -1
  227. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +1 -1
  228. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +1 -1
  229. package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +1 -1
  230. package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +1 -1
  231. package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +1 -1
  232. package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +1 -1
  233. package/behaviors/registry/ui/core/molecules/ui-error-state.orb +1 -1
  234. package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +1 -1
  235. package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +1 -1
  236. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +1 -1
  237. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +1 -1
  238. package/behaviors/registry/ui/core/molecules/ui-flex.orb +1 -1
  239. package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +1 -1
  240. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +1 -1
  241. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +1 -1
  242. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +1 -1
  243. package/behaviors/registry/ui/core/molecules/ui-form-field.orb +1 -1
  244. package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +1 -1
  245. package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +1 -1
  246. package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +1 -1
  247. package/behaviors/registry/ui/core/molecules/ui-gantt.orb +1 -1
  248. package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +1 -1
  249. package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +1 -1
  250. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +1 -1
  251. package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +1 -1
  252. package/behaviors/registry/ui/core/molecules/ui-grid.orb +1 -1
  253. package/behaviors/registry/ui/core/molecules/ui-header.orb +1 -1
  254. package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +1 -1
  255. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +1 -1
  256. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +1 -1
  257. package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +1 -1
  258. package/behaviors/registry/ui/core/molecules/ui-input-group.orb +1 -1
  259. package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +1 -1
  260. package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +1 -1
  261. package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +1 -1
  262. package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +1 -1
  263. package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +1 -1
  264. package/behaviors/registry/ui/core/molecules/ui-map-view.orb +1 -1
  265. package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +1 -1
  266. package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +1 -1
  267. package/behaviors/registry/ui/core/molecules/ui-menu.orb +1 -1
  268. package/behaviors/registry/ui/core/molecules/ui-meter.orb +1 -1
  269. package/behaviors/registry/ui/core/molecules/ui-modal.orb +1 -1
  270. package/behaviors/registry/ui/core/molecules/ui-navigation.orb +1 -1
  271. package/behaviors/registry/ui/core/molecules/ui-notification.orb +1 -1
  272. package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +1 -1
  273. package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +1 -1
  274. package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +1 -1
  275. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +1 -1
  276. package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +1 -1
  277. package/behaviors/registry/ui/core/molecules/ui-pagination.orb +1 -1
  278. package/behaviors/registry/ui/core/molecules/ui-popover.orb +1 -1
  279. package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +1 -1
  280. package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +1 -1
  281. package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +1 -1
  282. package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +1 -1
  283. package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +1 -1
  284. package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +1 -1
  285. package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +1 -1
  286. package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +1 -1
  287. package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +1 -1
  288. package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +1 -1
  289. package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +1 -1
  290. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +1 -1
  291. package/behaviors/registry/ui/core/molecules/ui-section.orb +1 -1
  292. package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +1 -1
  293. package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +1 -1
  294. package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +1 -1
  295. package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +1 -1
  296. package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +1 -1
  297. package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +1 -1
  298. package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +1 -1
  299. package/behaviors/registry/ui/core/molecules/ui-split.orb +1 -1
  300. package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +1 -1
  301. package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +1 -1
  302. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +1 -1
  303. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +1 -1
  304. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +1 -1
  305. package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +1 -1
  306. package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +1 -1
  307. package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +1 -1
  308. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +1 -1
  309. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +1 -1
  310. package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +1 -1
  311. package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +1 -1
  312. package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +1 -1
  313. package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +1 -1
  314. package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +1 -1
  315. package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +1 -1
  316. package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +1 -1
  317. package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +1 -1
  318. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +1 -1
  319. package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +1 -1
  320. package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +1 -1
  321. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +1 -1
  322. package/behaviors/registry/ui/core/organisms/ui-form.orb +1 -1
  323. package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +1 -1
  324. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +1 -1
  325. package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +1 -1
  326. package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +1 -1
  327. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +1 -1
  328. package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +1 -1
  329. package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +1 -1
  330. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +1 -1
  331. package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +1 -1
  332. package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +1 -1
  333. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +1 -1
  334. package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +1 -1
  335. package/behaviors/registry/ui/core/templates/ui-auth-layout.orb +1 -1
  336. package/behaviors/registry/ui/core/templates/ui-counter-template.orb +1 -1
  337. package/behaviors/registry/ui/core/templates/ui-dashboard-layout.orb +1 -1
  338. package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +1 -1
  339. package/behaviors/registry/ui/game/atoms/std-arcade-play.orb +1 -1
  340. package/behaviors/registry/ui/game/atoms/std-area-fill.orb +1 -1
  341. package/behaviors/registry/ui/game/atoms/std-audio-cue.orb +1 -1
  342. package/behaviors/registry/ui/game/atoms/std-camera-rig.orb +1 -1
  343. package/behaviors/registry/ui/game/atoms/std-chase-ai.orb +1 -1
  344. package/behaviors/registry/ui/game/atoms/std-choice-gate.orb +1 -1
  345. package/behaviors/registry/ui/game/atoms/std-coef-pad.orb +1 -1
  346. package/behaviors/registry/ui/game/atoms/std-curve-fog.orb +1 -1
  347. package/behaviors/registry/ui/game/atoms/std-dungeon-combat.orb +1 -1
  348. package/behaviors/registry/ui/game/atoms/std-fx-narrative.orb +1 -1
  349. package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -1
  350. package/behaviors/registry/ui/game/atoms/std-fx-trail.orb +1 -1
  351. package/behaviors/registry/ui/game/atoms/std-gate-lock.orb +1 -1
  352. package/behaviors/registry/ui/game/atoms/std-gather.orb +1 -1
  353. package/behaviors/registry/ui/game/atoms/std-gold.orb +1 -1
  354. package/behaviors/registry/ui/game/atoms/std-grid-tactics.orb +1 -1
  355. package/behaviors/registry/ui/game/atoms/std-hero-nav.orb +1 -1
  356. package/behaviors/registry/ui/game/atoms/std-lives.orb +1 -1
  357. package/behaviors/registry/ui/game/atoms/std-loop-lock.orb +1 -1
  358. package/behaviors/registry/ui/game/atoms/std-market-flow.orb +1 -1
  359. package/behaviors/registry/ui/game/atoms/std-motion-body.orb +1 -1
  360. package/behaviors/registry/ui/game/atoms/std-objective-reach.orb +1 -1
  361. package/behaviors/registry/ui/game/atoms/std-pad-lock.orb +1 -1
  362. package/behaviors/registry/ui/game/atoms/std-patience.orb +1 -1
  363. package/behaviors/registry/ui/game/atoms/std-patrol-hazard.orb +1 -1
  364. package/behaviors/registry/ui/game/atoms/std-pickup.orb +1 -1
  365. package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +1 -1
  366. package/behaviors/registry/ui/game/atoms/std-production.orb +1 -1
  367. package/behaviors/registry/ui/game/atoms/std-score.orb +1 -1
  368. package/behaviors/registry/ui/game/atoms/std-tutorial-autodemo.orb +1 -1
  369. package/behaviors/registry/ui/game/atoms/std-tutorial-overlay.orb +1 -1
  370. package/behaviors/registry/ui/game/atoms/std-velocity-gate.orb +1 -1
  371. package/behaviors/registry/ui/game/atoms/std-xp.orb +1 -1
  372. package/behaviors/registry/ui/game/atoms/std-zone-card.orb +1 -1
  373. package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +1 -1
  374. package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +1 -1
  375. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +1 -1
  376. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +1 -1
  377. package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +1 -1
  378. package/behaviors/registry/ui/game/atoms/ui-control-button.orb +1 -1
  379. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +1 -1
  380. package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +1 -1
  381. package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +1 -1
  382. package/behaviors/registry/ui/game/atoms/ui-draw-group.orb +1 -1
  383. package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +1 -1
  384. package/behaviors/registry/ui/game/atoms/ui-draw-shape-layer.orb +1 -1
  385. package/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +1 -1
  386. package/behaviors/registry/ui/game/atoms/ui-draw-skinned-mesh.orb +1 -1
  387. package/behaviors/registry/ui/game/atoms/ui-draw-sprite-layer.orb +1 -1
  388. package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +1 -1
  389. package/behaviors/registry/ui/game/atoms/ui-draw-text-layer.orb +1 -1
  390. package/behaviors/registry/ui/game/atoms/ui-draw-text.orb +1 -1
  391. package/behaviors/registry/ui/game/atoms/ui-game-audio-cue.orb +1 -1
  392. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +1 -1
  393. package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +1 -1
  394. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +1 -1
  395. package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +1 -1
  396. package/behaviors/registry/ui/game/atoms/ui-score-display.orb +1 -1
  397. package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +1 -1
  398. package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +1 -1
  399. package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +1 -1
  400. package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +1 -1
  401. package/behaviors/registry/ui/game/atoms/ui-timer-display.orb +1 -1
  402. package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +1 -1
  403. package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +1 -1
  404. package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +1 -1
  405. package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +1 -1
  406. package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +1 -1
  407. package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +1 -1
  408. package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +1 -1
  409. package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +1 -1
  410. package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +1 -1
  411. package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +1 -1
  412. package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +1 -1
  413. package/behaviors/registry/ui/game/organisms/std-worldmap-board-2d.orb +1 -1
  414. package/behaviors/registry/ui/game/templates/ui-game-shell.orb +1 -1
  415. package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +1 -1
  416. package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1 -1
  417. package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +1 -1
  418. package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +1 -1
  419. package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +1 -1
  420. package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +1 -1
  421. package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1 -1
  422. package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +1 -1
  423. package/behaviors/registry/ui/learning/atoms/std-learn-fx-cues.orb +1 -1
  424. package/behaviors/registry/ui/learning/atoms/std-learn-generate.orb +1 -1
  425. package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1 -1
  426. package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +1 -1
  427. package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +1 -1
  428. package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1 -1
  429. package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +1 -1
  430. package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +1 -1
  431. package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +1 -1
  432. package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +1 -1
  433. package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +1 -1
  434. package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +1 -1
  435. package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1 -1
  436. package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +1 -1
  437. package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +1 -1
  438. package/behaviors/registry/ui/learning/atoms/std-learn-slope-probe.orb +1 -1
  439. package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +1 -1
  440. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +1 -1
  441. package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +1 -1
  442. package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +1 -1
  443. package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1 -1
  444. package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +1 -1
  445. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +1 -1
  446. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +1 -1
  447. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +1 -1
  448. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +1 -1
  449. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +1 -1
  450. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +1 -1
  451. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +1 -1
  452. package/dist/behaviors-embeddings.hash.json +1 -1
  453. package/dist/behaviors-embeddings.json +1 -1
  454. package/dist/knob-embeddings.hash.json +1 -1
  455. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  app std-agent-pool [
2
2
  version: "1.0.0",
3
- description: "std-agent-pool — a shared pool of generated behaviors that every user of the app draws from. WRITE { value, name, kind, topic, hint, description } takes a behavior already built and validated (a `program/eval` result), keeps its source durably (`behavior/source` → `program/print` → the `storage` service; the provider is the deployment's), embeds its description (`llm embed`) and records a PoolEntry; any failure on the way leaves no entry (WRITE_FAILED). SEARCH { vector, kinds, exclude, take } ranks the live entries of this pool by cosine similarity to the vector, nudged by their quality, and answers POOL_FOUND with the best ones, no model call. SIGNAL { id, signal } counts a play, like, hide, right or wrong answer on an entry and retires it once it has been played enough and most of its outcomes are hides or wrong answers. The pool name, kinds, bucket and key prefix and the quality knobs are config, so the same mechanism serves any app that pools generated behaviors."
3
+ description: "std-agent-pool — a shared pool of generated behaviors that every user of the app draws from. WRITE { value, name, kind, topic, fields, description } takes a behavior already built and validated (a `program/eval` result), keeps its source durably (`behavior/source` → `program/print` → the `storage` service; the provider is the deployment's), embeds its description (`llm embed`) and records a PoolEntry; any failure on the way leaves no entry (WRITE_FAILED). SEARCH { vector, kinds, exclude, take } ranks the live entries of this pool by cosine similarity to the vector, nudged by their quality, and answers POOL_FOUND with the best ones, no model call. SIGNAL { id, signal } counts a play, like, hide, right or wrong answer on an entry and retires it once it has been played enough and most of its outcomes are hides or wrong answers. The pool name, kinds, bucket and key prefix and the quality knobs are config, so the same mechanism serves any app that pools generated behaviors."
4
4
  ]
5
5
  ;; @capabilities "behavior pool, shared generated content, retrieve by meaning, reuse generated behaviors, quality signals, retire bad content"
6
6
 
@@ -11,7 +11,7 @@ type PoolHit = {
11
11
  name : string
12
12
  kind : string
13
13
  topic : string
14
- hint : string
14
+ fields : Map string string
15
15
  description : string
16
16
  score : number!
17
17
  }
@@ -22,7 +22,7 @@ type PoolWrite = {
22
22
  name : string
23
23
  kind : string
24
24
  topic : string
25
- hint : string
25
+ fields : Map string string
26
26
  description : string
27
27
  key : string
28
28
  value : behavior
@@ -60,7 +60,7 @@ orbital AgentPoolOrbital {
60
60
 
61
61
  entity AgentPoolHost [runtime] {
62
62
  id : string!
63
- pending : PoolWrite = { name: "", kind: "", topic: "", hint: "", description: "", key: "", value: none }
63
+ pending : PoolWrite = { name: "", kind: "", topic: "", fields: {}, description: "", key: "", value: none }
64
64
  signalOf : string = ""
65
65
  queryVector : [number] = []
66
66
  queryKinds : [string] = []
@@ -78,7 +78,7 @@ orbital AgentPoolOrbital {
78
78
  storageKey : string @description "Where its source is kept in the storage bucket." = ""
79
79
  kind : string @description "The app's own kind of content (a game, a simulation…)." @synonyms "type, category" = ""
80
80
  topic : string @description "What it is about." @synonyms "subject" = ""
81
- hint : string @description "One line telling a user how to use it." @synonyms "how to play, instructions" = ""
81
+ fields : Map string string @description "The extra fields its build wrote (e.g. a one-line hint), served with it." = {}
82
82
  description : string @description "The text its vector embeds." = ""
83
83
  vector : [number] @description "The description's embedding." = []
84
84
  plays : number = 0
@@ -98,7 +98,7 @@ orbital AgentPoolOrbital {
98
98
  WRITE -> ready when (and (> (array/len @config.allowedKinds) 0) (not (array/includes @config.allowedKinds ?kind)))
99
99
  (emit WRITE_FAILED { name: ?name, error: (str/concat "Unknown kind \"" ?kind "\". Allowed kinds: " (str/join @config.allowedKinds ", ")) })
100
100
  WRITE -> sourcing when (or (= (array/len @config.allowedKinds) 0) (array/includes @config.allowedKinds ?kind))
101
- (set @entity.pending { name: ?name, kind: ?kind, topic: (str/default ?topic ""), hint: (str/default ?hint ""), description: ?description, key: (str/concat @config.prefix @config.poolName "/" ?name ".lolo"), value: ?value })
101
+ (set @entity.pending { name: ?name, kind: ?kind, topic: (str/default ?topic ""), fields: (if (== ?fields null) {} ?fields), description: ?description, key: (str/concat @config.prefix @config.poolName "/" ?name ".lolo"), value: ?value })
102
102
  (behavior/source ?value {
103
103
  emit: { failure: STEP_FAILED, success: SOURCED }
104
104
  })
@@ -141,7 +141,7 @@ orbital AgentPoolOrbital {
141
141
  storageKey: @entity.pending.key
142
142
  kind: @entity.pending.kind
143
143
  topic: @entity.pending.topic
144
- hint: @entity.pending.hint
144
+ fields: @entity.pending.fields
145
145
  description: @entity.pending.description
146
146
  vector: (array/first ?embeddings)
147
147
  createdAt: @now
@@ -210,10 +210,10 @@ orbital AgentPoolOrbital {
210
210
  name : string!
211
211
  kind : string!
212
212
  topic : string
213
- hint : string
213
+ fields : Map string string
214
214
  description : string!
215
215
  }
216
- @description "Pool a behavior that was just built and validated: its value, its name, its kind, what it is about, a one-line hint on how to use it and the description its vector embeds."
216
+ @description "Pool a behavior that was just built and validated: its value, its name, its kind, what it is about, the extra fields its build wrote and the description its vector embeds."
217
217
  @synonyms "pool, save generated, keep behavior"
218
218
  }
219
219
  }
@@ -237,7 +237,7 @@ orbital AgentPoolOrbital {
237
237
  state searching {
238
238
  INIT -> ready
239
239
  ENTRIES_LOADED -> ready
240
- (emit POOL_FOUND { hits: (array/take (array/sort (array/map (array/filter ?data (fn e (and (or (= (array/len @entity.queryKinds) 0) (array/includes @entity.queryKinds (object/get @e kind ""))) (not (array/includes @entity.queryExclude (object/get @e behavior "")))))) (fn e { id: (object/get @e id), behavior: (object/get @e behavior ""), value: (object/get @e value), name: (object/get @e name ""), kind: (object/get @e kind ""), topic: (object/get @e topic ""), hint: (object/get @e hint ""), description: (object/get @e description ""), score: (+ (array/cosine (object/get @e vector []) @entity.queryVector) (* @config.weight (/ (- (+ (object/get @e likes 0) (object/get @e right 0)) (+ (object/get @e hides 0) (object/get @e wrong 0))) (+ 1 (object/get @e plays 0))))) })) score desc) @entity.queryTake) })
240
+ (emit POOL_FOUND { hits: (array/take (array/sort (array/map (array/filter ?data (fn e (and (or (= (array/len @entity.queryKinds) 0) (array/includes @entity.queryKinds (object/get @e kind ""))) (not (array/includes @entity.queryExclude (object/get @e behavior "")))))) (fn e { id: (object/get @e id), behavior: (object/get @e behavior ""), value: (object/get @e value), name: (object/get @e name ""), kind: (object/get @e kind ""), topic: (object/get @e topic ""), fields: (object/get @e fields {}), description: (object/get @e description ""), score: (+ (array/cosine (object/get @e vector []) @entity.queryVector) (* @config.weight (/ (- (+ (object/get @e likes 0) (object/get @e right 0)) (+ (object/get @e hides 0) (object/get @e wrong 0))) (+ 1 (object/get @e plays 0))))) })) score desc) @entity.queryTake) })
241
241
  SEARCH_FAILED -> ready
242
242
  (emit POOL_FOUND { hits: [] })
243
243
  (render-ui toast { message: ?error, type: alert, variant: warning })
@@ -1,6 +1,6 @@
1
1
  app eval-agent-builder [
2
2
  version: "1.0.0",
3
- description: "Eval of std-agent-builder's ladder over std-agent-pool. RUN_CASE { index } builds the case's request through the ladder (the pool first, adopted at or above its threshold; otherwise a std learning instrument filled by the model with its knobs and a one-line hint), pools what was built, and records an EvalCase: the tier that served it, the behavior, the hint, the latency and the verdict against the tier the case expects. Driven from outside, one case at a time."
3
+ description: "Eval of std-agent-builder's ladder over std-agent-pool. RUN_CASE { index } builds the case's request through the ladder (the pool first, adopted at or above its threshold; otherwise a std learning instrument filled by the model with its knobs and a one-line hint), pools what was built, and records an EvalCase: the tier that served it, the behavior, the hint, the latency and the verdict: the tier the case expects, with a hint. Driven from outside, one case at a time."
4
4
  ]
5
5
  ;; @exposure internal
6
6
 
@@ -24,10 +24,10 @@ orbital EvalBuilder = Builder.orbitals.AgentBuilderOrbital {
24
24
  BuilderPipeline {
25
25
  config {
26
26
  ladder: [
27
- { name: "pool", source: "pool", scope: [], threshold: 0.85, action: "adopt", take: 5 },
27
+ { name: "pool", source: "pool", scope: [], threshold: 0.8, action: "adopt", take: 5 },
28
28
  { name: "instrument", source: "catalog", scope: ["almadar-std/ui/learning/atoms"], threshold: 0, action: "fill", take: 1 }
29
29
  ]
30
- fillFields: [{ name: "hint", type: "string", required: true, description: "One short line telling the learner how to play it." }]
30
+ fillFields: [{ name: "hint", type: "string", required: true, description: "One short sentence, at most 12 words, telling the learner what to do with it." }]
31
31
  fillEvent: EvalBuilder.EvalBuilderBuilderPipeline.FILL
32
32
  }
33
33
  }
@@ -81,10 +81,10 @@ orbital EvalRun {
81
81
  state running {
82
82
  INIT -> idle
83
83
  BUILD_DONE -> idle when (= ?tier "pool")
84
- (persist create EvalCase { caseId: (object/get (array/nth @config.cases @entity.index) id), request: (object/get (array/nth @config.cases @entity.index) request), expectTier: (object/get (array/nth @config.cases @entity.index) expectTier), tier: ?tier, behavior: ?behavior, hint: (object/get ?fields hint ""), latencyMs: (- @now @entity.startedAt), verdict: (if (= ?tier (object/get (array/nth @config.cases @entity.index) expectTier)) pass fail) })
84
+ (persist create EvalCase { caseId: (object/get (array/nth @config.cases @entity.index) id), request: (object/get (array/nth @config.cases @entity.index) request), expectTier: (object/get (array/nth @config.cases @entity.index) expectTier), tier: ?tier, behavior: ?behavior, hint: (object/get ?fields hint ""), latencyMs: (- @now @entity.startedAt), verdict: (if (and (= ?tier (object/get (array/nth @config.cases @entity.index) expectTier)) (!= (object/get ?fields hint "") "")) pass fail) })
85
85
  BUILD_DONE -> idle when (!= ?tier "pool")
86
- (persist create EvalCase { caseId: (object/get (array/nth @config.cases @entity.index) id), request: (object/get (array/nth @config.cases @entity.index) request), expectTier: (object/get (array/nth @config.cases @entity.index) expectTier), tier: ?tier, behavior: ?behavior, hint: (object/get ?fields hint ""), latencyMs: (- @now @entity.startedAt), verdict: (if (= ?tier (object/get (array/nth @config.cases @entity.index) expectTier)) pass fail) })
87
- (emit POOL_WRITE { value: ?value, name: ?orbitalName, kind: "instrument", topic: "", hint: (object/get ?fields hint ""), description: (str/concat (object/get (array/nth @config.cases @entity.index) request) " — " (object/get ?fields hint "")) })
86
+ (persist create EvalCase { caseId: (object/get (array/nth @config.cases @entity.index) id), request: (object/get (array/nth @config.cases @entity.index) request), expectTier: (object/get (array/nth @config.cases @entity.index) expectTier), tier: ?tier, behavior: ?behavior, hint: (object/get ?fields hint ""), latencyMs: (- @now @entity.startedAt), verdict: (if (and (= ?tier (object/get (array/nth @config.cases @entity.index) expectTier)) (!= (object/get ?fields hint "") "")) pass fail) })
87
+ (emit POOL_WRITE { value: ?value, name: ?orbitalName, kind: "instrument", topic: "", fields: ?fields, description: (object/get (array/nth @config.cases @entity.index) request) })
88
88
  BUILD_FAILED_CASE -> idle
89
89
  (persist create EvalCase { caseId: (object/get (array/nth @config.cases @entity.index) id), request: (object/get (array/nth @config.cases @entity.index) request), expectTier: (object/get (array/nth @config.cases @entity.index) expectTier), latencyMs: (- @now @entity.startedAt), verdict: fail, error: ?error })
90
90
  }
@@ -93,7 +93,14 @@ orbital EvalRun {
93
93
  cases : [EvalCaseSpec] = [
94
94
  { id: "sort-animals", request: "A quick game sorting animals into mammals, birds and reptiles", expectTier: "instrument" },
95
95
  { id: "sort-animals-again", request: "Sort some animals into mammals, birds and reptiles", expectTier: "pool" },
96
- { id: "water-cycle", request: "Put the stages of the water cycle in order", expectTier: "instrument" }
96
+ { id: "water-cycle", request: "Put the stages of the water cycle in order", expectTier: "instrument" },
97
+ { id: "planets-order", request: "Line up the planets from the closest to the Sun to the farthest", expectTier: "instrument" },
98
+ { id: "planets-again", request: "Order the planets by their distance from the Sun", expectTier: "pool" },
99
+ { id: "fractions-compare", request: "Which fraction is bigger? Compare pairs of fractions", expectTier: "instrument" },
100
+ { id: "plant-light", request: "Explore how light and water change how fast a plant grows", expectTier: "instrument" },
101
+ { id: "times-tables", request: "Quick-fire times tables practice against the clock", expectTier: "instrument" },
102
+ { id: "moon-distance", request: "Guess how far away the Moon is from Earth", expectTier: "instrument" },
103
+ { id: "sort-foods", request: "Sort foods into fruits and vegetables", expectTier: "instrument" }
97
104
  ]
98
105
  @label "Cases"
99
106
  @tier "domain"
@@ -119,7 +126,7 @@ orbital EvalRun {
119
126
  name : string!
120
127
  kind : string!
121
128
  topic : string
122
- hint : string
129
+ fields : Map string string
123
130
  description : string!
124
131
  }
125
132
  @tier "internal"
@@ -18,7 +18,7 @@ type PoolHit = {
18
18
  name : string
19
19
  kind : string
20
20
  topic : string
21
- hint : string
21
+ fields : Map string string
22
22
  description : string
23
23
  score : number!
24
24
  }
@@ -27,6 +27,7 @@ type Ranked = {
27
27
  value : behavior!
28
28
  trait : trait
29
29
  description : string
30
+ fields : Map string string
30
31
  score : number!
31
32
  }
32
33
  type BuilderStep = {
@@ -187,10 +188,10 @@ orbital AgentBuilderOrbital {
187
188
  (render-ui @config.statusSlot <typography content="No tier could serve the request." variant="caption" />)
188
189
  (emit BUILD_REJECTED { error: "No tier of the ladder could serve the request", errors: [] })
189
190
  CATALOG_LISTED -> searching
190
- (set @entity.ranked (array/sort (array/map (array/filter ?result (fn e (> (array/len (object/get @e.vectors description [])) 0))) (fn e { behavior: @e.behavior, value: @e.value, trait: (array/first @e.traits), description: (object/get @e description ""), score: (array/cosine (object/get @e.vectors description) @entity.queryVector) })) score desc))
191
+ (set @entity.ranked (array/sort (array/map (array/filter ?result (fn e (> (array/len (object/get @e.vectors description [])) 0))) (fn e { behavior: @e.behavior, value: @e.value, trait: (array/first @e.traits), description: (object/get @e description ""), fields: {}, score: (array/cosine (object/get @e.vectors description) @entity.queryVector) })) score desc))
191
192
  (emit RANKED {})
192
193
  POOL_FOUND -> searching
193
- (set @entity.ranked (array/map ?hits (fn h { behavior: @h.behavior, value: @h.value, description: (object/get @h description ""), score: @h.score })))
194
+ (set @entity.ranked (array/map ?hits (fn h { behavior: @h.behavior, value: @h.value, description: (object/get @h description ""), fields: (object/get @h fields {}), score: @h.score })))
194
195
  (emit RANKED {})
195
196
  RANKED -> searching when (or (= (array/len @entity.ranked) 0) (< (object/get (array/first @entity.ranked) score) (object/get (array/nth @config.ladder @entity.step) threshold)))
196
197
  (set @entity.step (+ @entity.step 1))
@@ -223,7 +224,7 @@ orbital AgentBuilderOrbital {
223
224
  (set @entity.behavior (object/get (array/first @entity.ranked) behavior))
224
225
  (set @entity.status done)
225
226
  (render-ui @config.statusSlot <typography content={(str/concat "Adopted " @entity.behavior)} variant="caption" />)
226
- (emit BUILD_COMPLETE { orbitalName: @entity.orbitalName, behavior: @entity.behavior, value: (object/get (array/first @entity.ranked) value), tier: (object/get (array/nth @config.ladder @entity.step) name), fields: (object/fromEntries []) })
227
+ (emit BUILD_COMPLETE { orbitalName: @entity.orbitalName, behavior: @entity.behavior, value: (object/get (array/first @entity.ranked) value), tier: (object/get (array/nth @config.ladder @entity.step) name), fields: (object/get (array/first @entity.ranked) fields {}) })
227
228
  RANKED -> describing when (and (> (array/len @entity.ranked) 0) (and (>= (object/get (array/first @entity.ranked) score) (object/get (array/nth @config.ladder @entity.step) threshold)) (= (object/get (array/nth @config.ladder @entity.step) action) "fill")))
228
229
  (set @entity.status describing)
229
230
  (emit BUILD_PROGRESS { status: "describing", tier: (object/get (array/nth @config.ladder @entity.step) name) })
@@ -362,7 +363,7 @@ orbital AgentBuilderOrbital {
362
363
  tier : string!
363
364
  fields : Map string string
364
365
  }
365
- @description "A tier served the request: the behavior (its specifier and its value), the ladder step that served it, and the extra fields the fill turn wrote."
366
+ @description "A tier served the request: the behavior (its specifier and its value), the ladder step that served it, and the extra fields the fill turn wrote (or that the adopted pool entry carries)."
366
367
  @tier "domain"
367
368
  BUILD_REJECTED -> external {
368
369
  error : string!
@@ -1 +1 @@
1
- {"name":"std-agent-context","version":"2.0.0","description":"std-agent-context — keeps what an in-app assistant sends the model bounded. COMPACT { messages } passes a conversation of at most `keepMessages` turns straight through as COMPACTED; a longer one has its older turns summarized with `call-service llm summarize` into one leading note and keeps the last `keepMessages` turns verbatim. If summarizing fails, the older turns are dropped and the recent ones still go through, with a visible warning — a summarizer outage never blocks the assistant. Headless. Nothing is persisted: the conversation itself lives in std-agent-session.","orbitals":[{"name":"AgentContextOrbital","id":"orb_Q70CNW0PFYB7Z964MN7ZK1CY8J","entity":{"name":"AgentContextWindow","id":"ent_2ENDEQEYV3FDHPRVR0BE09V9SF","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"pendingMessages","type":"array","default":[],"items":{"type":"object","properties":{"content":{"name":"content","type":"string","required":true},"role":{"name":"role","type":"string","required":false,"values":["user","assistant"]}}},"description":"The conversation being compacted."},{"name":"lastSize","type":"number","default":0,"description":"Turns in the last conversation compacted.","synonyms":"size, length"},{"name":"pendingInstructions","type":"string","default":"","description":"The ephemeral conversation's own instructions, carried through a summarizing."},{"name":"pendingTools","type":"array","default":[],"items":{"type":"union","values":["AgentToolScope","AgentToolInputData","AgentToolRead"],"properties":{"AgentToolInputData":{"name":"AgentToolInputData","type":"object","properties":{"event":{"name":"event","type":"string","required":true}}},"AgentToolRead":{"name":"AgentToolRead","type":"object","properties":{"read":{"name":"read","type":"string","required":true}}},"AgentToolScope":{"name":"AgentToolScope","type":"object","properties":{"scope":{"name":"scope","type":"string","required":true,"values":["declared"]}}}}},"description":"The ephemeral conversation's own tools, carried through a summarizing."},{"name":"pendingEphemeral","type":"boolean","default":false,"description":"The conversation being compacted is ephemeral."}]},"traits":[{"name":"AgentContextCompactor","id":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY","effectRow":[{"kind":"call-service","resource":"llm.summarize"},{"kind":"emit","resource":"COMPACTED"},{"kind":"render-ui","resource":"toast"},{"kind":"set","resource":"@entity.lastSize"},{"kind":"set","resource":"@entity.pendingEphemeral"},{"kind":"set","resource":"@entity.pendingInstructions"},{"kind":"set","resource":"@entity.pendingMessages"},{"kind":"set","resource":"@entity.pendingTools"}],"category":"interaction","linkedEntity":"AgentContextWindow","linkedEntityId":"ent_2ENDEQEYV3FDHPRVR0BE09V9SF","entityRefIds":{"AgentContextWindow":"ent_2ENDEQEYV3FDHPRVR0BE09V9SF"},"emits":[{"event":"COMPACTED","eventId":"evt_6P6W8788A4452B9K2G883JSTN9","description":"The conversation, bounded: recent turns verbatim, older turns as one summary note. An ephemeral conversation's own `instructions`, `tools` and `ephemeral` flag pass through untouched.","synonyms":"compacted, trimmed, bounded","tier":"domain","scope":"external","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"entity":"AgentChatMessage"},{"name":"instructions","type":"string"},{"name":"tools","type":"[AgentTool]"},{"name":"ephemeral","type":"boolean"}]},{"event":"ContextSummarized","eventId":"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF","tier":"internal","scope":"internal","payloadSchema":[{"name":"summary","type":"string"},{"name":"keyPoints","type":"[string]"}]},{"event":"ContextSummarizeFailed","eventId":"evt_4FN2R67J9QS4VNYJNCCERVRA81","tier":"internal","scope":"internal","payloadSchema":[{"name":"error","type":"string"}]}],"stateMachine":{"states":[{"name":"ready","isInitial":true},{"name":"summarizing"}],"events":[{"key":"INIT","id":"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8","name":"Initialize"},{"key":"COMPACT","id":"evt_X3KMQQCHMG8T88EQPQE79TJSMT","name":"Compact","description":"Bound this conversation for the model. An ephemeral conversation's own `instructions`, `tools` and `ephemeral` flag ride along.","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}]},{"name":"instructions","type":"string"},{"name":"tools","type":"[AgentTool]"},{"name":"ephemeral","type":"boolean"}],"listened":true},{"key":"ContextSummarized","id":"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF","name":"Context summarized","tier":"internal","payloadSchema":[{"name":"summary","type":"string"},{"name":"keyPoints","type":"[string]"}]},{"key":"ContextSummarizeFailed","id":"evt_4FN2R67J9QS4VNYJNCCERVRA81","name":"Context summarize failed","tier":"internal","payloadSchema":[{"name":"error","type":"string"}]},{"key":"COMPACTED","id":"evt_6P6W8788A4452B9K2G883JSTN9","name":"Compacted","description":"The conversation, bounded: recent turns verbatim, older turns as one summary note. An ephemeral conversation's own `instructions`, `tools` and `ephemeral` flag pass through untouched.","synonyms":"compacted, trimmed, bounded","tier":"domain","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"entity":"AgentChatMessage"},{"name":"instructions","type":"string"},{"name":"tools","type":"[AgentTool]"},{"name":"ephemeral","type":"boolean"}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8","effects":[["set","@entity.lastSize",0]]},{"from":"ready","to":"ready","event":"COMPACT","eventId":"evt_X3KMQQCHMG8T88EQPQE79TJSMT","guard":["<=",["array/len","@payload.messages"],"@config.keepMessages"],"effects":[["set","@entity.lastSize",["array/len","@payload.messages"]],["emit","COMPACTED",{"messages":"@payload.messages","instructions":["str/default","@payload.instructions",""],"tools":["object/get","@payload","tools",[]],"ephemeral":["if","@payload.ephemeral",true,false]}]]},{"from":"ready","to":"summarizing","event":"COMPACT","eventId":"evt_X3KMQQCHMG8T88EQPQE79TJSMT","guard":[">",["array/len","@payload.messages"],"@config.keepMessages"],"effects":[["set","@entity.lastSize",["array/len","@payload.messages"]],["set","@entity.pendingMessages","@payload.messages"],["set","@entity.pendingInstructions",["str/default","@payload.instructions",""]],["set","@entity.pendingTools",["object/get","@payload","tools",[]]],["set","@entity.pendingEphemeral",["if","@payload.ephemeral",true,false]],["call-service","llm","summarize",{"text":["str/join",["array/map",["array/dropLast","@payload.messages","@config.keepMessages"],["fn","item",["str/concat","@item.role",": ","@item.content"]]],"\n"]},{"emit":{"failure":"ContextSummarizeFailed","success":"ContextSummarized"}}]]},{"from":"summarizing","to":"ready","event":"INIT","eventId":"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8","effects":[["set","@entity.lastSize",0]]},{"from":"summarizing","to":"ready","event":"ContextSummarized","eventId":"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF","effects":[["emit","COMPACTED",{"messages":["array/prepend",["array/takeLast","@entity.pendingMessages","@config.keepMessages"],{"role":"assistant","content":["str/concat","Earlier in this conversation: ","@payload.summary"]}],"instructions":"@entity.pendingInstructions","tools":"@entity.pendingTools","ephemeral":"@entity.pendingEphemeral"}]]},{"from":"summarizing","to":"ready","event":"ContextSummarizeFailed","eventId":"evt_4FN2R67J9QS4VNYJNCCERVRA81","effects":[["emit","COMPACTED",{"messages":["array/takeLast","@entity.pendingMessages","@config.keepMessages"],"instructions":"@entity.pendingInstructions","tools":"@entity.pendingTools","ephemeral":"@entity.pendingEphemeral"}],["render-ui","toast",{"message":"@payload.error","type":"alert","variant":"warning"}]]}]},"config":{"keepMessages":{"type":"number","default":12,"label":"Turns kept verbatim","description":"The most recent turns sent to the model word for word; older turns are summarized.","synonyms":"window, history length, context size","tier":"policy"}},"scope":"instance"}],"pages":[{"name":"AgentContextPage","id":"pag_SDK57MDZ2AZH51V6P7Z1Q3JQ61","path":"/agent-context","traits":[{"ref":"AgentContextCompactor","refId":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"}]}],"types":{"AgentChatMessage":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"AgentTool":[{"name":"","type":"union","properties":[{"name":"AgentToolScope","type":"object","properties":[{"name":"scope","type":"string","values":["declared"],"required":true}]},{"name":"AgentToolInput","type":"object","properties":[{"name":"event","type":"EventAddress","required":true}]},{"name":"AgentToolRead","type":"object","properties":[{"name":"read","type":"string","required":true}]}]}],"AgentToolData":[{"name":"","type":"union","properties":[{"name":"AgentToolScope","type":"object","properties":[{"name":"scope","type":"string","values":["declared"],"required":true}]},{"name":"AgentToolInputData","type":"object","properties":[{"name":"event","type":"string","required":true}]},{"name":"AgentToolRead","type":"object","properties":[{"name":"read","type":"string","required":true}]}]}],"AgentToolInput":[{"name":"event","type":"EventAddress","required":true}],"AgentToolInputData":[{"name":"event","type":"string","required":true}],"AgentToolRead":[{"name":"read","type":"string","required":true}],"AgentToolScope":[{"name":"scope","type":"string","values":["declared"],"required":true}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_2ENDEQEYV3FDHPRVR0BE09V9SF":{"id":"ent_2ENDEQEYV3FDHPRVR0BE09V9SF","kind":"entity","bakedName":"AgentContextWindow","curName":"AgentContextWindow","renames":[],"owner":"workspace"},"evt_4FN2R67J9QS4VNYJNCCERVRA81":{"id":"evt_4FN2R67J9QS4VNYJNCCERVRA81","kind":"event","bakedName":"ContextSummarizeFailed","curName":"ContextSummarizeFailed","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8":{"id":"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"evt_6P6W8788A4452B9K2G883JSTN9":{"id":"evt_6P6W8788A4452B9K2G883JSTN9","kind":"event","bakedName":"COMPACTED","curName":"COMPACTED","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF":{"id":"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF","kind":"event","bakedName":"ContextSummarized","curName":"ContextSummarized","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"evt_X3KMQQCHMG8T88EQPQE79TJSMT":{"id":"evt_X3KMQQCHMG8T88EQPQE79TJSMT","kind":"event","bakedName":"COMPACT","curName":"COMPACT","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"orb_Q70CNW0PFYB7Z964MN7ZK1CY8J":{"id":"orb_Q70CNW0PFYB7Z964MN7ZK1CY8J","kind":"orbital","bakedName":"AgentContextOrbital","curName":"AgentContextOrbital","renames":[],"owner":"workspace"},"pag_SDK57MDZ2AZH51V6P7Z1Q3JQ61":{"id":"pag_SDK57MDZ2AZH51V6P7Z1Q3JQ61","kind":"page","bakedName":"AgentContextPage","curName":"AgentContextPage","renames":[],"owner":"workspace"},"trt_XAZGJ95QJRVSC9QKW8QVBP66VY":{"id":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY","kind":"trait","bakedName":"AgentContextCompactor","curName":"AgentContextCompactor","renames":[],"owner":"workspace"}}}}
1
+ {"name":"std-agent-context","version":"2.0.0","description":"std-agent-context — keeps what an in-app assistant sends the model bounded. COMPACT { messages } passes a conversation of at most `keepMessages` turns straight through as COMPACTED; a longer one has its older turns summarized with `call-service llm summarize` into one leading note and keeps the last `keepMessages` turns verbatim. If summarizing fails, the older turns are dropped and the recent ones still go through, with a visible warning — a summarizer outage never blocks the assistant. Headless. Nothing is persisted: the conversation itself lives in std-agent-session.","orbitals":[{"name":"AgentContextOrbital","id":"orb_Q70CNW0PFYB7Z964MN7ZK1CY8J","entity":{"name":"AgentContextWindow","id":"ent_2ENDEQEYV3FDHPRVR0BE09V9SF","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"pendingMessages","type":"array","default":[],"items":{"type":"object","properties":{"content":{"name":"content","type":"string","required":true},"role":{"name":"role","type":"string","required":false,"values":["user","assistant"]}}},"description":"The conversation being compacted."},{"name":"lastSize","type":"number","default":0,"description":"Turns in the last conversation compacted.","synonyms":"size, length"},{"name":"pendingInstructions","type":"string","default":"","description":"The ephemeral conversation's own instructions, carried through a summarizing."},{"name":"pendingTools","type":"array","default":[],"items":{"type":"union","values":["AgentToolScope","AgentToolInputData","AgentToolRead"],"properties":{"AgentToolRead":{"name":"AgentToolRead","type":"object","properties":{"read":{"name":"read","type":"string","required":true}}},"AgentToolInputData":{"name":"AgentToolInputData","type":"object","properties":{"event":{"name":"event","type":"string","required":true}}},"AgentToolScope":{"name":"AgentToolScope","type":"object","properties":{"scope":{"name":"scope","type":"string","required":true,"values":["declared"]}}}}},"description":"The ephemeral conversation's own tools, carried through a summarizing."},{"name":"pendingEphemeral","type":"boolean","default":false,"description":"The conversation being compacted is ephemeral."}]},"traits":[{"name":"AgentContextCompactor","id":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY","effectRow":[{"kind":"call-service","resource":"llm.summarize"},{"kind":"emit","resource":"COMPACTED"},{"kind":"render-ui","resource":"toast"},{"kind":"set","resource":"@entity.lastSize"},{"kind":"set","resource":"@entity.pendingEphemeral"},{"kind":"set","resource":"@entity.pendingInstructions"},{"kind":"set","resource":"@entity.pendingMessages"},{"kind":"set","resource":"@entity.pendingTools"}],"category":"interaction","linkedEntity":"AgentContextWindow","linkedEntityId":"ent_2ENDEQEYV3FDHPRVR0BE09V9SF","entityRefIds":{"AgentContextWindow":"ent_2ENDEQEYV3FDHPRVR0BE09V9SF"},"emits":[{"event":"COMPACTED","eventId":"evt_6P6W8788A4452B9K2G883JSTN9","description":"The conversation, bounded: recent turns verbatim, older turns as one summary note. An ephemeral conversation's own `instructions`, `tools` and `ephemeral` flag pass through untouched.","synonyms":"compacted, trimmed, bounded","tier":"domain","scope":"external","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"entity":"AgentChatMessage"},{"name":"instructions","type":"string"},{"name":"tools","type":"[AgentTool]"},{"name":"ephemeral","type":"boolean"}]},{"event":"ContextSummarized","eventId":"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF","tier":"internal","scope":"internal","payloadSchema":[{"name":"summary","type":"string"},{"name":"keyPoints","type":"[string]"}]},{"event":"ContextSummarizeFailed","eventId":"evt_4FN2R67J9QS4VNYJNCCERVRA81","tier":"internal","scope":"internal","payloadSchema":[{"name":"error","type":"string"}]}],"stateMachine":{"states":[{"name":"ready","isInitial":true},{"name":"summarizing"}],"events":[{"key":"INIT","id":"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8","name":"Initialize"},{"key":"COMPACT","id":"evt_X3KMQQCHMG8T88EQPQE79TJSMT","name":"Compact","description":"Bound this conversation for the model. An ephemeral conversation's own `instructions`, `tools` and `ephemeral` flag ride along.","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}]},{"name":"instructions","type":"string"},{"name":"tools","type":"[AgentTool]"},{"name":"ephemeral","type":"boolean"}],"listened":true},{"key":"ContextSummarized","id":"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF","name":"Context summarized","tier":"internal","payloadSchema":[{"name":"summary","type":"string"},{"name":"keyPoints","type":"[string]"}]},{"key":"ContextSummarizeFailed","id":"evt_4FN2R67J9QS4VNYJNCCERVRA81","name":"Context summarize failed","tier":"internal","payloadSchema":[{"name":"error","type":"string"}]},{"key":"COMPACTED","id":"evt_6P6W8788A4452B9K2G883JSTN9","name":"Compacted","description":"The conversation, bounded: recent turns verbatim, older turns as one summary note. An ephemeral conversation's own `instructions`, `tools` and `ephemeral` flag pass through untouched.","synonyms":"compacted, trimmed, bounded","tier":"domain","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"entity":"AgentChatMessage"},{"name":"instructions","type":"string"},{"name":"tools","type":"[AgentTool]"},{"name":"ephemeral","type":"boolean"}]}],"transitions":[{"from":"ready","to":"ready","event":"INIT","eventId":"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8","effects":[["set","@entity.lastSize",0]]},{"from":"ready","to":"ready","event":"COMPACT","eventId":"evt_X3KMQQCHMG8T88EQPQE79TJSMT","guard":["<=",["array/len","@payload.messages"],"@config.keepMessages"],"effects":[["set","@entity.lastSize",["array/len","@payload.messages"]],["emit","COMPACTED",{"messages":"@payload.messages","instructions":["str/default","@payload.instructions",""],"tools":["object/get","@payload","tools",[]],"ephemeral":["if","@payload.ephemeral",true,false]}]]},{"from":"ready","to":"summarizing","event":"COMPACT","eventId":"evt_X3KMQQCHMG8T88EQPQE79TJSMT","guard":[">",["array/len","@payload.messages"],"@config.keepMessages"],"effects":[["set","@entity.lastSize",["array/len","@payload.messages"]],["set","@entity.pendingMessages","@payload.messages"],["set","@entity.pendingInstructions",["str/default","@payload.instructions",""]],["set","@entity.pendingTools",["object/get","@payload","tools",[]]],["set","@entity.pendingEphemeral",["if","@payload.ephemeral",true,false]],["call-service","llm","summarize",{"text":["str/join",["array/map",["array/dropLast","@payload.messages","@config.keepMessages"],["fn","item",["str/concat","@item.role",": ","@item.content"]]],"\n"]},{"emit":{"failure":"ContextSummarizeFailed","success":"ContextSummarized"}}]]},{"from":"summarizing","to":"ready","event":"INIT","eventId":"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8","effects":[["set","@entity.lastSize",0]]},{"from":"summarizing","to":"ready","event":"ContextSummarized","eventId":"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF","effects":[["emit","COMPACTED",{"messages":["array/prepend",["array/takeLast","@entity.pendingMessages","@config.keepMessages"],{"role":"assistant","content":["str/concat","Earlier in this conversation: ","@payload.summary"]}],"instructions":"@entity.pendingInstructions","tools":"@entity.pendingTools","ephemeral":"@entity.pendingEphemeral"}]]},{"from":"summarizing","to":"ready","event":"ContextSummarizeFailed","eventId":"evt_4FN2R67J9QS4VNYJNCCERVRA81","effects":[["emit","COMPACTED",{"messages":["array/takeLast","@entity.pendingMessages","@config.keepMessages"],"instructions":"@entity.pendingInstructions","tools":"@entity.pendingTools","ephemeral":"@entity.pendingEphemeral"}],["render-ui","toast",{"message":"@payload.error","type":"alert","variant":"warning"}]]}]},"config":{"keepMessages":{"type":"number","default":12,"label":"Turns kept verbatim","description":"The most recent turns sent to the model word for word; older turns are summarized.","synonyms":"window, history length, context size","tier":"policy"}},"scope":"instance"}],"pages":[{"name":"AgentContextPage","id":"pag_SDK57MDZ2AZH51V6P7Z1Q3JQ61","path":"/agent-context","traits":[{"ref":"AgentContextCompactor","refId":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"}]}],"types":{"AgentChatMessage":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"AgentTool":[{"name":"","type":"union","properties":[{"name":"AgentToolScope","type":"object","properties":[{"name":"scope","type":"string","values":["declared"],"required":true}]},{"name":"AgentToolInput","type":"object","properties":[{"name":"event","type":"EventAddress","required":true}]},{"name":"AgentToolRead","type":"object","properties":[{"name":"read","type":"string","required":true}]}]}],"AgentToolData":[{"name":"","type":"union","properties":[{"name":"AgentToolScope","type":"object","properties":[{"name":"scope","type":"string","values":["declared"],"required":true}]},{"name":"AgentToolInputData","type":"object","properties":[{"name":"event","type":"string","required":true}]},{"name":"AgentToolRead","type":"object","properties":[{"name":"read","type":"string","required":true}]}]}],"AgentToolInput":[{"name":"event","type":"EventAddress","required":true}],"AgentToolInputData":[{"name":"event","type":"string","required":true}],"AgentToolRead":[{"name":"read","type":"string","required":true}],"AgentToolScope":[{"name":"scope","type":"string","values":["declared"],"required":true}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_2ENDEQEYV3FDHPRVR0BE09V9SF":{"id":"ent_2ENDEQEYV3FDHPRVR0BE09V9SF","kind":"entity","bakedName":"AgentContextWindow","curName":"AgentContextWindow","renames":[],"owner":"workspace"},"evt_4FN2R67J9QS4VNYJNCCERVRA81":{"id":"evt_4FN2R67J9QS4VNYJNCCERVRA81","kind":"event","bakedName":"ContextSummarizeFailed","curName":"ContextSummarizeFailed","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8":{"id":"evt_5VTHZ9BN8FTM7VJPKNHB9V5QF8","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"evt_6P6W8788A4452B9K2G883JSTN9":{"id":"evt_6P6W8788A4452B9K2G883JSTN9","kind":"event","bakedName":"COMPACTED","curName":"COMPACTED","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF":{"id":"evt_7BQ0Q9G2DR16WB1DM6VWFSHWTF","kind":"event","bakedName":"ContextSummarized","curName":"ContextSummarized","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"evt_X3KMQQCHMG8T88EQPQE79TJSMT":{"id":"evt_X3KMQQCHMG8T88EQPQE79TJSMT","kind":"event","bakedName":"COMPACT","curName":"COMPACT","renames":[],"owner":"workspace","parent":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY"},"orb_Q70CNW0PFYB7Z964MN7ZK1CY8J":{"id":"orb_Q70CNW0PFYB7Z964MN7ZK1CY8J","kind":"orbital","bakedName":"AgentContextOrbital","curName":"AgentContextOrbital","renames":[],"owner":"workspace"},"pag_SDK57MDZ2AZH51V6P7Z1Q3JQ61":{"id":"pag_SDK57MDZ2AZH51V6P7Z1Q3JQ61","kind":"page","bakedName":"AgentContextPage","curName":"AgentContextPage","renames":[],"owner":"workspace"},"trt_XAZGJ95QJRVSC9QKW8QVBP66VY":{"id":"trt_XAZGJ95QJRVSC9QKW8QVBP66VY","kind":"trait","bakedName":"AgentContextCompactor","curName":"AgentContextCompactor","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"name":"std-agent-fix-loop","version":"2.0.0","description":"Agent fix loop — evaluate a program and, when it does not validate, ask the model for a repair. VALIDATE_PROGRAM { program } runs `program/eval` (the 0-error / 0-warning gate, written to the workspace's orbitals/ on success): a valid program emits PROGRAM_VALID { behavior }; an invalid one hands the validator's issues to `call-service llm generate` and emits FIX_PROPOSED { issues, fix } with the model's repair instructions. Headless apart from a status line.","orbitals":[{"name":"AgentFixLoopOrbital","id":"orb_WY247WCT8KD49J91NRSBY6RM9W","entity":{"name":"FixLoop","id":"ent_KS83N1382WM1EBAHD7FNV63E46","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"issues","type":"array","default":[],"items":{"type":"object","properties":{"message":{"name":"message","type":"string","required":true},"code":{"name":"code","type":"string","required":true}}}},{"name":"fix","type":"string","default":""},{"name":"status","type":"string","default":"idle","values":["idle","validating","fixing","fixed","valid","failed"]}]},"traits":[{"name":"FixLoopExecution","id":"trt_9N482BHXRAYW55Y08QXZD6108C","effectRow":[{"kind":"call-service","resource":"llm.generate"},{"kind":"emit","resource":"FIX_PROPOSED"},{"kind":"emit","resource":"PROGRAM_VALID"},{"kind":"program/eval"},{"kind":"render-ui","resource":"main"},{"kind":"set","resource":"@entity.fix"},{"kind":"set","resource":"@entity.issues"},{"kind":"set","resource":"@entity.status"}],"category":"lifecycle","linkedEntity":"FixLoop","linkedEntityId":"ent_KS83N1382WM1EBAHD7FNV63E46","entityRefIds":{"FixLoop":"ent_KS83N1382WM1EBAHD7FNV63E46"},"emits":[{"event":"PROGRAM_VALID","eventId":"evt_04X1G3KKEFSQ7RHYZZ54PS0D4A","scope":"external","payloadSchema":[{"name":"behavior","type":"string","required":true}]},{"event":"FIX_PROPOSED","eventId":"evt_3TA6K9HSEEWQ7FK4MFCZ089HRZ","scope":"external","payloadSchema":[{"name":"issues","type":"[object]","required":true,"properties":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}],"entity":"FixIssue"},{"name":"fix","type":"string","required":true}]},{"event":"PROGRAM_EVALUATED","eventId":"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"behavior","type":"string","required":true}]}]},{"event":"PROGRAM_INVALID","eventId":"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE","payloadSchema":[{"name":"error","type":"string","required":true},{"name":"errors","type":"[object]","required":true,"properties":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}],"entity":"FixIssue"}]},{"event":"FIX_GENERATED","eventId":"evt_8304Z4ETGVD8DN2RVP0H5BC9BY","payloadSchema":[{"name":"content","type":"string","required":true}]},{"event":"FIX_FAILED","eventId":"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8","payloadSchema":[{"name":"error","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"validating"},{"name":"fixing"},{"name":"valid"},{"name":"fixed"},{"name":"failed"}],"events":[{"key":"INIT","id":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","name":"Initialize"},{"key":"VALIDATE_PROGRAM","id":"evt_D5GM9G5V2JXH9BBRCD9M82CX6T","name":"Validate Program","payloadSchema":[{"name":"program","type":"SExpr","required":true}],"external":true,"listened":true},{"key":"PROGRAM_EVALUATED","id":"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ","name":"Program Evaluated","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"behavior","type":"string","required":true}]}]},{"key":"PROGRAM_INVALID","id":"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE","name":"Program Invalid","payloadSchema":[{"name":"error","type":"string","required":true},{"name":"errors","type":"[object]","required":true,"properties":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}],"entity":"FixIssue"}]},{"key":"FIX_GENERATED","id":"evt_8304Z4ETGVD8DN2RVP0H5BC9BY","name":"Fix Generated","payloadSchema":[{"name":"content","type":"string","required":true}]},{"key":"FIX_FAILED","id":"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8","name":"Fix Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"RESET","id":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","name":"Reset","listened":true},{"key":"PROGRAM_VALID","id":"evt_04X1G3KKEFSQ7RHYZZ54PS0D4A","name":"Program Valid","payloadSchema":[{"name":"behavior","type":"string","required":true}]},{"key":"FIX_PROPOSED","id":"evt_3TA6K9HSEEWQ7FK4MFCZ089HRZ","name":"Fix Proposed","payloadSchema":[{"name":"issues","type":"[object]","required":true,"properties":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}],"entity":"FixIssue"},{"name":"fix","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"idle","to":"validating","event":"VALIDATE_PROGRAM","eventId":"evt_D5GM9G5V2JXH9BBRCD9M82CX6T","effects":[["set","@entity.status","validating"],["program/eval","@payload.program",{"emit":{"failure":"PROGRAM_INVALID","success":"PROGRAM_EVALUATED"}}]]},{"from":"validating","to":"idle","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"validating","to":"valid","event":"PROGRAM_EVALUATED","eventId":"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ","effects":[["set","@entity.status","valid"],["render-ui","main",{"type":"typography","content":["str/concat","Valid: ",["object/get","@payload.result","behavior"]],"variant":"caption"}],["emit","PROGRAM_VALID",{"behavior":["object/get","@payload.result","behavior"]}]]},{"from":"validating","to":"fixing","event":"PROGRAM_INVALID","eventId":"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE","effects":[["set","@entity.issues","@payload.errors"],["set","@entity.status","fixing"],["render-ui","main",{"type":"typography","content":["str/concat","Does not validate: ","@payload.error"],"variant":"caption"}],["call-service","llm","generate",{"userPrompt":["str/concat","This program does not validate. Explain, step by step, how to fix it. Issues:\n",["str/join",["array/map","@payload.errors",["fn","issue",["str/concat",["object/get","@issue","code"],": ",["object/get","@issue","message"]]]],"\n"]]},{"emit":{"failure":"FIX_FAILED","success":"FIX_GENERATED"}}]]},{"from":"fixing","to":"idle","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"fixing","to":"fixed","event":"FIX_GENERATED","eventId":"evt_8304Z4ETGVD8DN2RVP0H5BC9BY","effects":[["set","@entity.fix","@payload.content"],["set","@entity.status","fixed"],["render-ui","main",{"type":"typography","content":"Repair proposed.","variant":"caption"}],["emit","FIX_PROPOSED",{"issues":"@entity.issues","fix":"@payload.content"}]]},{"from":"fixing","to":"failed","event":"FIX_FAILED","eventId":"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8","effects":[["set","@entity.status","failed"],["render-ui","main",{"type":"typography","content":["str/concat","No repair: ","@payload.error"],"variant":"caption"}]]},{"from":"valid","to":"valid","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","valid"]]},{"from":"valid","to":"idle","event":"RESET","eventId":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"fixed","to":"fixed","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","fixed"]]},{"from":"fixed","to":"idle","event":"RESET","eventId":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"failed","to":"failed","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","failed"]]},{"from":"failed","to":"idle","event":"RESET","eventId":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]}]},"scope":"instance"}],"pages":[{"name":"AgentFixLoopPage","id":"pag_Q0C7MK3J4MS2AFNMJVHF89V0N0","path":"/agent-fix-loop","traits":[{"ref":"FixLoopExecution","refId":"trt_9N482BHXRAYW55Y08QXZD6108C"}]}],"types":{"Evaluated":[{"name":"behavior","type":"string","required":true}],"FixIssue":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_KS83N1382WM1EBAHD7FNV63E46":{"id":"ent_KS83N1382WM1EBAHD7FNV63E46","kind":"entity","bakedName":"FixLoop","curName":"FixLoop","renames":[],"owner":"workspace"},"evt_04X1G3KKEFSQ7RHYZZ54PS0D4A":{"id":"evt_04X1G3KKEFSQ7RHYZZ54PS0D4A","kind":"event","bakedName":"PROGRAM_VALID","curName":"PROGRAM_VALID","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE":{"id":"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE","kind":"event","bakedName":"PROGRAM_INVALID","curName":"PROGRAM_INVALID","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_3TA6K9HSEEWQ7FK4MFCZ089HRZ":{"id":"evt_3TA6K9HSEEWQ7FK4MFCZ089HRZ","kind":"event","bakedName":"FIX_PROPOSED","curName":"FIX_PROPOSED","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ":{"id":"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ","kind":"event","bakedName":"PROGRAM_EVALUATED","curName":"PROGRAM_EVALUATED","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_8304Z4ETGVD8DN2RVP0H5BC9BY":{"id":"evt_8304Z4ETGVD8DN2RVP0H5BC9BY","kind":"event","bakedName":"FIX_GENERATED","curName":"FIX_GENERATED","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_D5GM9G5V2JXH9BBRCD9M82CX6T":{"id":"evt_D5GM9G5V2JXH9BBRCD9M82CX6T","kind":"event","bakedName":"VALIDATE_PROGRAM","curName":"VALIDATE_PROGRAM","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8":{"id":"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8","kind":"event","bakedName":"FIX_FAILED","curName":"FIX_FAILED","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST":{"id":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","kind":"event","bakedName":"RESET","curName":"RESET","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA":{"id":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"orb_WY247WCT8KD49J91NRSBY6RM9W":{"id":"orb_WY247WCT8KD49J91NRSBY6RM9W","kind":"orbital","bakedName":"AgentFixLoopOrbital","curName":"AgentFixLoopOrbital","renames":[],"owner":"workspace"},"pag_Q0C7MK3J4MS2AFNMJVHF89V0N0":{"id":"pag_Q0C7MK3J4MS2AFNMJVHF89V0N0","kind":"page","bakedName":"AgentFixLoopPage","curName":"AgentFixLoopPage","renames":[],"owner":"workspace"},"trt_9N482BHXRAYW55Y08QXZD6108C":{"id":"trt_9N482BHXRAYW55Y08QXZD6108C","kind":"trait","bakedName":"FixLoopExecution","curName":"FixLoopExecution","renames":[],"owner":"workspace"}}}}
1
+ {"name":"std-agent-fix-loop","version":"2.0.0","description":"Agent fix loop — evaluate a program and, when it does not validate, ask the model for a repair. VALIDATE_PROGRAM { program } runs `program/eval` (the 0-error / 0-warning gate, written to the workspace's orbitals/ on success): a valid program emits PROGRAM_VALID { behavior }; an invalid one hands the validator's issues to `call-service llm generate` and emits FIX_PROPOSED { issues, fix } with the model's repair instructions. Headless apart from a status line.","orbitals":[{"name":"AgentFixLoopOrbital","id":"orb_WY247WCT8KD49J91NRSBY6RM9W","entity":{"name":"FixLoop","id":"ent_KS83N1382WM1EBAHD7FNV63E46","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"issues","type":"array","default":[],"items":{"type":"object","properties":{"code":{"name":"code","type":"string","required":true},"message":{"name":"message","type":"string","required":true}}}},{"name":"fix","type":"string","default":""},{"name":"status","type":"string","default":"idle","values":["idle","validating","fixing","fixed","valid","failed"]}]},"traits":[{"name":"FixLoopExecution","id":"trt_9N482BHXRAYW55Y08QXZD6108C","effectRow":[{"kind":"call-service","resource":"llm.generate"},{"kind":"emit","resource":"FIX_PROPOSED"},{"kind":"emit","resource":"PROGRAM_VALID"},{"kind":"program/eval"},{"kind":"render-ui","resource":"main"},{"kind":"set","resource":"@entity.fix"},{"kind":"set","resource":"@entity.issues"},{"kind":"set","resource":"@entity.status"}],"category":"lifecycle","linkedEntity":"FixLoop","linkedEntityId":"ent_KS83N1382WM1EBAHD7FNV63E46","entityRefIds":{"FixLoop":"ent_KS83N1382WM1EBAHD7FNV63E46"},"emits":[{"event":"PROGRAM_VALID","eventId":"evt_04X1G3KKEFSQ7RHYZZ54PS0D4A","scope":"external","payloadSchema":[{"name":"behavior","type":"string","required":true}]},{"event":"FIX_PROPOSED","eventId":"evt_3TA6K9HSEEWQ7FK4MFCZ089HRZ","scope":"external","payloadSchema":[{"name":"issues","type":"[object]","required":true,"properties":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}],"entity":"FixIssue"},{"name":"fix","type":"string","required":true}]},{"event":"PROGRAM_EVALUATED","eventId":"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"behavior","type":"string","required":true}]}]},{"event":"PROGRAM_INVALID","eventId":"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE","payloadSchema":[{"name":"error","type":"string","required":true},{"name":"errors","type":"[object]","required":true,"properties":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}],"entity":"FixIssue"}]},{"event":"FIX_GENERATED","eventId":"evt_8304Z4ETGVD8DN2RVP0H5BC9BY","payloadSchema":[{"name":"content","type":"string","required":true}]},{"event":"FIX_FAILED","eventId":"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8","payloadSchema":[{"name":"error","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"validating"},{"name":"fixing"},{"name":"valid"},{"name":"fixed"},{"name":"failed"}],"events":[{"key":"INIT","id":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","name":"Initialize"},{"key":"VALIDATE_PROGRAM","id":"evt_D5GM9G5V2JXH9BBRCD9M82CX6T","name":"Validate Program","payloadSchema":[{"name":"program","type":"SExpr","required":true}],"external":true,"listened":true},{"key":"PROGRAM_EVALUATED","id":"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ","name":"Program Evaluated","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"behavior","type":"string","required":true}]}]},{"key":"PROGRAM_INVALID","id":"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE","name":"Program Invalid","payloadSchema":[{"name":"error","type":"string","required":true},{"name":"errors","type":"[object]","required":true,"properties":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}],"entity":"FixIssue"}]},{"key":"FIX_GENERATED","id":"evt_8304Z4ETGVD8DN2RVP0H5BC9BY","name":"Fix Generated","payloadSchema":[{"name":"content","type":"string","required":true}]},{"key":"FIX_FAILED","id":"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8","name":"Fix Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"RESET","id":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","name":"Reset","listened":true},{"key":"PROGRAM_VALID","id":"evt_04X1G3KKEFSQ7RHYZZ54PS0D4A","name":"Program Valid","payloadSchema":[{"name":"behavior","type":"string","required":true}]},{"key":"FIX_PROPOSED","id":"evt_3TA6K9HSEEWQ7FK4MFCZ089HRZ","name":"Fix Proposed","payloadSchema":[{"name":"issues","type":"[object]","required":true,"properties":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}],"entity":"FixIssue"},{"name":"fix","type":"string","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"idle","to":"validating","event":"VALIDATE_PROGRAM","eventId":"evt_D5GM9G5V2JXH9BBRCD9M82CX6T","effects":[["set","@entity.status","validating"],["program/eval","@payload.program",{"emit":{"failure":"PROGRAM_INVALID","success":"PROGRAM_EVALUATED"}}]]},{"from":"validating","to":"idle","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"validating","to":"valid","event":"PROGRAM_EVALUATED","eventId":"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ","effects":[["set","@entity.status","valid"],["render-ui","main",{"type":"typography","content":["str/concat","Valid: ",["object/get","@payload.result","behavior"]],"variant":"caption"}],["emit","PROGRAM_VALID",{"behavior":["object/get","@payload.result","behavior"]}]]},{"from":"validating","to":"fixing","event":"PROGRAM_INVALID","eventId":"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE","effects":[["set","@entity.issues","@payload.errors"],["set","@entity.status","fixing"],["render-ui","main",{"type":"typography","content":["str/concat","Does not validate: ","@payload.error"],"variant":"caption"}],["call-service","llm","generate",{"userPrompt":["str/concat","This program does not validate. Explain, step by step, how to fix it. Issues:\n",["str/join",["array/map","@payload.errors",["fn","issue",["str/concat",["object/get","@issue","code"],": ",["object/get","@issue","message"]]]],"\n"]]},{"emit":{"failure":"FIX_FAILED","success":"FIX_GENERATED"}}]]},{"from":"fixing","to":"idle","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"fixing","to":"fixed","event":"FIX_GENERATED","eventId":"evt_8304Z4ETGVD8DN2RVP0H5BC9BY","effects":[["set","@entity.fix","@payload.content"],["set","@entity.status","fixed"],["render-ui","main",{"type":"typography","content":"Repair proposed.","variant":"caption"}],["emit","FIX_PROPOSED",{"issues":"@entity.issues","fix":"@payload.content"}]]},{"from":"fixing","to":"failed","event":"FIX_FAILED","eventId":"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8","effects":[["set","@entity.status","failed"],["render-ui","main",{"type":"typography","content":["str/concat","No repair: ","@payload.error"],"variant":"caption"}]]},{"from":"valid","to":"valid","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","valid"]]},{"from":"valid","to":"idle","event":"RESET","eventId":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"fixed","to":"fixed","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","fixed"]]},{"from":"fixed","to":"idle","event":"RESET","eventId":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]},{"from":"failed","to":"failed","event":"INIT","eventId":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","effects":[["set","@entity.status","failed"]]},{"from":"failed","to":"idle","event":"RESET","eventId":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","effects":[["set","@entity.status","idle"],["render-ui","main",{"type":"typography","content":"Waiting for a program.","variant":"caption"}]]}]},"scope":"instance"}],"pages":[{"name":"AgentFixLoopPage","id":"pag_Q0C7MK3J4MS2AFNMJVHF89V0N0","path":"/agent-fix-loop","traits":[{"ref":"FixLoopExecution","refId":"trt_9N482BHXRAYW55Y08QXZD6108C"}]}],"types":{"Evaluated":[{"name":"behavior","type":"string","required":true}],"FixIssue":[{"name":"code","type":"string","required":true},{"name":"message","type":"string","required":true}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_KS83N1382WM1EBAHD7FNV63E46":{"id":"ent_KS83N1382WM1EBAHD7FNV63E46","kind":"entity","bakedName":"FixLoop","curName":"FixLoop","renames":[],"owner":"workspace"},"evt_04X1G3KKEFSQ7RHYZZ54PS0D4A":{"id":"evt_04X1G3KKEFSQ7RHYZZ54PS0D4A","kind":"event","bakedName":"PROGRAM_VALID","curName":"PROGRAM_VALID","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE":{"id":"evt_1Q0F1CPBYX5ZENKYPHQ6X6KZQE","kind":"event","bakedName":"PROGRAM_INVALID","curName":"PROGRAM_INVALID","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_3TA6K9HSEEWQ7FK4MFCZ089HRZ":{"id":"evt_3TA6K9HSEEWQ7FK4MFCZ089HRZ","kind":"event","bakedName":"FIX_PROPOSED","curName":"FIX_PROPOSED","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ":{"id":"evt_7Q2WGG7A0PN0BC3FMQEXJ1R0YQ","kind":"event","bakedName":"PROGRAM_EVALUATED","curName":"PROGRAM_EVALUATED","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_8304Z4ETGVD8DN2RVP0H5BC9BY":{"id":"evt_8304Z4ETGVD8DN2RVP0H5BC9BY","kind":"event","bakedName":"FIX_GENERATED","curName":"FIX_GENERATED","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_D5GM9G5V2JXH9BBRCD9M82CX6T":{"id":"evt_D5GM9G5V2JXH9BBRCD9M82CX6T","kind":"event","bakedName":"VALIDATE_PROGRAM","curName":"VALIDATE_PROGRAM","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8":{"id":"evt_H4ZF3SWVH8DRMF7FNYDMBV4YB8","kind":"event","bakedName":"FIX_FAILED","curName":"FIX_FAILED","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST":{"id":"evt_PS2A61KRHWW8Y9GPJCWRG6G8ST","kind":"event","bakedName":"RESET","curName":"RESET","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA":{"id":"evt_X19J6SQEV8QDMEWQNQ3CWHXFPA","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_9N482BHXRAYW55Y08QXZD6108C"},"orb_WY247WCT8KD49J91NRSBY6RM9W":{"id":"orb_WY247WCT8KD49J91NRSBY6RM9W","kind":"orbital","bakedName":"AgentFixLoopOrbital","curName":"AgentFixLoopOrbital","renames":[],"owner":"workspace"},"pag_Q0C7MK3J4MS2AFNMJVHF89V0N0":{"id":"pag_Q0C7MK3J4MS2AFNMJVHF89V0N0","kind":"page","bakedName":"AgentFixLoopPage","curName":"AgentFixLoopPage","renames":[],"owner":"workspace"},"trt_9N482BHXRAYW55Y08QXZD6108C":{"id":"trt_9N482BHXRAYW55Y08QXZD6108C","kind":"trait","bakedName":"FixLoopExecution","curName":"FixLoopExecution","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"name":"std-agent-planner","version":"1.0.0","description":"Agent planner molecule — recall memories, then generate a plan from the prompt + recalled context.","orbitals":[{"name":"AgentPlannerOrbital","id":"orb_TKDTCB8YH1F8GT76WZGF3D1E7Z","entity":{"name":"PlannerPlan","id":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY","persistence":"runtime","fields":[{"name":"prompt","type":"string","default":""},{"name":"memories","type":"array","default":[],"items":{"type":"object","properties":{"id":{"name":"id","type":"string","required":true},"strength":{"name":"strength","type":"number","required":false},"content":{"name":"content","type":"string","required":true},"category":{"name":"category","type":"string","required":true}}}},{"name":"plan","type":"string","default":""},{"name":"status","type":"string","default":"idle","values":["idle","planning","planned"]}]},"traits":[{"name":"PlannerExecution","id":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1","effectRow":[{"kind":"emit","resource":"PLANNED"},{"kind":"llm/generate"},{"kind":"memory/recall"},{"kind":"set","resource":"@entity.memories"},{"kind":"set","resource":"@entity.plan"},{"kind":"set","resource":"@entity.prompt"},{"kind":"set","resource":"@entity.status"}],"category":"lifecycle","linkedEntity":"PlannerPlan","linkedEntityId":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY","entityRefIds":{"PlannerPlan":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY"},"emits":[{"event":"PLANNED","eventId":"evt_BM42WSAX8VEMDQMWD7VVPH68YC","payloadSchema":[{"name":"plan","type":"string","required":true},{"name":"memoryCount","type":"number","required":true}]},{"event":"MEMORIES_RECALLED","eventId":"evt_247HN9SY3RZ1WE8A4H1FYWM2FW","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"id","type":"string","required":true},{"name":"content","type":"string","required":true},{"name":"category","type":"string","required":true},{"name":"strength","type":"number"}],"entity":"MemoryRecord"}]},{"event":"PLAN_GENERATED","eventId":"evt_SR25M7F12AGH58CH2X295Q0HY5","payloadSchema":[{"name":"result","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"recalling"},{"name":"planning"},{"name":"planned"}],"events":[{"key":"INIT","id":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","name":"Initialize"},{"key":"PLAN","id":"evt_9RGYBN7C1PP0VB190B5QW9W1Y6","name":"Plan","payloadSchema":[{"name":"prompt","type":"string","required":true}],"listened":true},{"key":"MEMORIES_RECALLED","id":"evt_247HN9SY3RZ1WE8A4H1FYWM2FW","name":"Memories Recalled","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"id","type":"string","required":true},{"name":"content","type":"string","required":true},{"name":"category","type":"string","required":true},{"name":"strength","type":"number"}],"entity":"MemoryRecord"}]},{"key":"RECALL_FAILED","id":"evt_KBC4R8CXP4EV289SR2KHS5A2CC","name":"Recall Failed"},{"key":"PLAN_GENERATED","id":"evt_SR25M7F12AGH58CH2X295Q0HY5","name":"Plan Generated","payloadSchema":[{"name":"result","type":"string","required":true}]},{"key":"PLAN_GENERATION_FAILED","id":"evt_ZRDHQE6SFACQN43G512JT9CEZ8","name":"Plan Generation Failed"},{"key":"RESET","id":"evt_9V1Z5CHK1XSGYXMJ9TA7MPSFPB","name":"Reset"},{"key":"PLANNED","id":"evt_BM42WSAX8VEMDQMWD7VVPH68YC","name":"Planned","payloadSchema":[{"name":"plan","type":"string","required":true},{"name":"memoryCount","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","effects":[["set","@entity.prompt",""],["set","@entity.memories",[]],["set","@entity.plan",""],["set","@entity.status","idle"]]},{"from":"idle","to":"recalling","event":"PLAN","eventId":"evt_9RGYBN7C1PP0VB190B5QW9W1Y6","effects":[["set","@entity.prompt","@payload.prompt"],["memory/recall","@entity.prompt",{"emit":{"success":"MEMORIES_RECALLED","failure":"RECALL_FAILED"}}]]},{"from":"recalling","to":"idle","event":"INIT","eventId":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","effects":[["set","@entity.prompt",""],["set","@entity.memories",[]],["set","@entity.plan",""],["set","@entity.status","idle"]]},{"from":"recalling","to":"planning","event":"MEMORIES_RECALLED","eventId":"evt_247HN9SY3RZ1WE8A4H1FYWM2FW","effects":[["set","@entity.memories","@payload.result"],["llm/generate","@entity.prompt",{"emit":{"success":"PLAN_GENERATED","failure":"PLAN_GENERATION_FAILED"}}]]},{"from":"recalling","to":"planning","event":"RECALL_FAILED","eventId":"evt_KBC4R8CXP4EV289SR2KHS5A2CC","effects":[["set","@entity.memories",[]],["llm/generate","@entity.prompt",{"emit":{"success":"PLAN_GENERATED","failure":"PLAN_GENERATION_FAILED"}}]]},{"from":"planning","to":"idle","event":"INIT","eventId":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","effects":[["set","@entity.prompt",""],["set","@entity.memories",[]],["set","@entity.plan",""],["set","@entity.status","idle"]]},{"from":"planning","to":"planned","event":"PLAN_GENERATED","eventId":"evt_SR25M7F12AGH58CH2X295Q0HY5","effects":[["set","@entity.plan","@payload.result"],["set","@entity.status","planned"],["emit","PLANNED",{"plan":"@entity.plan","memoryCount":"@entity.memories"}]]},{"from":"planning","to":"planned","event":"PLAN_GENERATION_FAILED","eventId":"evt_ZRDHQE6SFACQN43G512JT9CEZ8","effects":[["set","@entity.plan",""],["set","@entity.status","planned"],["emit","PLANNED",{"plan":"@entity.plan","memoryCount":"@entity.memories"}]]},{"from":"planned","to":"planned","event":"INIT","eventId":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","effects":[["set","@entity.status","planned"]]},{"from":"planned","to":"idle","event":"RESET","eventId":"evt_9V1Z5CHK1XSGYXMJ9TA7MPSFPB","effects":[["set","@entity.plan",""],["set","@entity.memories",[]],["set","@entity.prompt",""],["set","@entity.status","idle"]]}]},"scope":"instance"},{"name":"PlannerListener","id":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ","effectRow":[{"kind":"set","resource":"@entity.status"}],"category":"lifecycle","linkedEntity":"PlannerPlan","linkedEntityId":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY","entityRefIds":{"PlannerPlan":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY"},"listens":[{"event":"PLANNED","eventId":"evt_BM42WSAX8VEMDQMWD7VVPH68YC","triggers":"PLANNED","triggersId":"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS","source":{"kind":"trait","trait":"PlannerExecution","traitId":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"}}],"stateMachine":{"states":[{"name":"waiting","isInitial":true},{"name":"ready"}],"events":[{"key":"INIT","id":"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X","name":"Initialize"},{"key":"PLANNED","id":"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS","name":"Planned"},{"key":"RESET","id":"evt_0ZM74B65912MGZ2SMMBTR7CXPG","name":"Reset","listened":true}],"transitions":[{"from":"waiting","to":"waiting","event":"INIT","eventId":"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X","effects":[["set","@entity.status","idle"]]},{"from":"waiting","to":"ready","event":"PLANNED","eventId":"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS","effects":[["set","@entity.status","planned"]]},{"from":"ready","to":"ready","event":"INIT","eventId":"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X","effects":[["set","@entity.status","planned"]]},{"from":"ready","to":"waiting","event":"RESET","eventId":"evt_0ZM74B65912MGZ2SMMBTR7CXPG","effects":[["set","@entity.status","idle"]]}]},"scope":"instance"}],"pages":[{"name":"AgentPlannerPage","id":"pag_J3RGNR8FQT7VXE9DKKNYW20M4D","path":"/agent-planner","traits":[{"ref":"PlannerExecution","refId":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},{"ref":"PlannerListener","refId":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ"}]}],"types":{"MemoryRecord":[{"name":"id","type":"string","required":true},{"name":"content","type":"string","required":true},{"name":"category","type":"string","required":true},{"name":"strength","type":"number"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY":{"id":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY","kind":"entity","bakedName":"PlannerPlan","curName":"PlannerPlan","renames":[],"owner":"workspace"},"evt_0ZM74B65912MGZ2SMMBTR7CXPG":{"id":"evt_0ZM74B65912MGZ2SMMBTR7CXPG","kind":"event","bakedName":"RESET","curName":"RESET","renames":[],"owner":"workspace","parent":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ"},"evt_247HN9SY3RZ1WE8A4H1FYWM2FW":{"id":"evt_247HN9SY3RZ1WE8A4H1FYWM2FW","kind":"event","bakedName":"MEMORIES_RECALLED","curName":"MEMORIES_RECALLED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_9RGYBN7C1PP0VB190B5QW9W1Y6":{"id":"evt_9RGYBN7C1PP0VB190B5QW9W1Y6","kind":"event","bakedName":"PLAN","curName":"PLAN","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_9V1Z5CHK1XSGYXMJ9TA7MPSFPB":{"id":"evt_9V1Z5CHK1XSGYXMJ9TA7MPSFPB","kind":"event","bakedName":"RESET","curName":"RESET","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_BM42WSAX8VEMDQMWD7VVPH68YC":{"id":"evt_BM42WSAX8VEMDQMWD7VVPH68YC","kind":"event","bakedName":"PLANNED","curName":"PLANNED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X":{"id":"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ"},"evt_FPAWK77XZEYZQB96JFTPCPFHSD":{"id":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_KBC4R8CXP4EV289SR2KHS5A2CC":{"id":"evt_KBC4R8CXP4EV289SR2KHS5A2CC","kind":"event","bakedName":"RECALL_FAILED","curName":"RECALL_FAILED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS":{"id":"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS","kind":"event","bakedName":"PLANNED","curName":"PLANNED","renames":[],"owner":"workspace","parent":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ"},"evt_SR25M7F12AGH58CH2X295Q0HY5":{"id":"evt_SR25M7F12AGH58CH2X295Q0HY5","kind":"event","bakedName":"PLAN_GENERATED","curName":"PLAN_GENERATED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_ZRDHQE6SFACQN43G512JT9CEZ8":{"id":"evt_ZRDHQE6SFACQN43G512JT9CEZ8","kind":"event","bakedName":"PLAN_GENERATION_FAILED","curName":"PLAN_GENERATION_FAILED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"orb_TKDTCB8YH1F8GT76WZGF3D1E7Z":{"id":"orb_TKDTCB8YH1F8GT76WZGF3D1E7Z","kind":"orbital","bakedName":"AgentPlannerOrbital","curName":"AgentPlannerOrbital","renames":[],"owner":"workspace"},"pag_J3RGNR8FQT7VXE9DKKNYW20M4D":{"id":"pag_J3RGNR8FQT7VXE9DKKNYW20M4D","kind":"page","bakedName":"AgentPlannerPage","curName":"AgentPlannerPage","renames":[],"owner":"workspace"},"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1":{"id":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1","kind":"trait","bakedName":"PlannerExecution","curName":"PlannerExecution","renames":[],"owner":"workspace"},"trt_YB4RQP0EF377HGB7AVGDKCFRMJ":{"id":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ","kind":"trait","bakedName":"PlannerListener","curName":"PlannerListener","renames":[],"owner":"workspace"}}}}
1
+ {"name":"std-agent-planner","version":"1.0.0","description":"Agent planner molecule — recall memories, then generate a plan from the prompt + recalled context.","orbitals":[{"name":"AgentPlannerOrbital","id":"orb_TKDTCB8YH1F8GT76WZGF3D1E7Z","entity":{"name":"PlannerPlan","id":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY","persistence":"runtime","fields":[{"name":"prompt","type":"string","default":""},{"name":"memories","type":"array","default":[],"items":{"type":"object","properties":{"strength":{"name":"strength","type":"number","required":false},"content":{"name":"content","type":"string","required":true},"category":{"name":"category","type":"string","required":true},"id":{"name":"id","type":"string","required":true}}}},{"name":"plan","type":"string","default":""},{"name":"status","type":"string","default":"idle","values":["idle","planning","planned"]}]},"traits":[{"name":"PlannerExecution","id":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1","effectRow":[{"kind":"emit","resource":"PLANNED"},{"kind":"llm/generate"},{"kind":"memory/recall"},{"kind":"set","resource":"@entity.memories"},{"kind":"set","resource":"@entity.plan"},{"kind":"set","resource":"@entity.prompt"},{"kind":"set","resource":"@entity.status"}],"category":"lifecycle","linkedEntity":"PlannerPlan","linkedEntityId":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY","entityRefIds":{"PlannerPlan":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY"},"emits":[{"event":"PLANNED","eventId":"evt_BM42WSAX8VEMDQMWD7VVPH68YC","payloadSchema":[{"name":"plan","type":"string","required":true},{"name":"memoryCount","type":"number","required":true}]},{"event":"MEMORIES_RECALLED","eventId":"evt_247HN9SY3RZ1WE8A4H1FYWM2FW","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"id","type":"string","required":true},{"name":"content","type":"string","required":true},{"name":"category","type":"string","required":true},{"name":"strength","type":"number"}],"entity":"MemoryRecord"}]},{"event":"PLAN_GENERATED","eventId":"evt_SR25M7F12AGH58CH2X295Q0HY5","payloadSchema":[{"name":"result","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"recalling"},{"name":"planning"},{"name":"planned"}],"events":[{"key":"INIT","id":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","name":"Initialize"},{"key":"PLAN","id":"evt_9RGYBN7C1PP0VB190B5QW9W1Y6","name":"Plan","payloadSchema":[{"name":"prompt","type":"string","required":true}],"listened":true},{"key":"MEMORIES_RECALLED","id":"evt_247HN9SY3RZ1WE8A4H1FYWM2FW","name":"Memories Recalled","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"id","type":"string","required":true},{"name":"content","type":"string","required":true},{"name":"category","type":"string","required":true},{"name":"strength","type":"number"}],"entity":"MemoryRecord"}]},{"key":"RECALL_FAILED","id":"evt_KBC4R8CXP4EV289SR2KHS5A2CC","name":"Recall Failed"},{"key":"PLAN_GENERATED","id":"evt_SR25M7F12AGH58CH2X295Q0HY5","name":"Plan Generated","payloadSchema":[{"name":"result","type":"string","required":true}]},{"key":"PLAN_GENERATION_FAILED","id":"evt_ZRDHQE6SFACQN43G512JT9CEZ8","name":"Plan Generation Failed"},{"key":"RESET","id":"evt_9V1Z5CHK1XSGYXMJ9TA7MPSFPB","name":"Reset"},{"key":"PLANNED","id":"evt_BM42WSAX8VEMDQMWD7VVPH68YC","name":"Planned","payloadSchema":[{"name":"plan","type":"string","required":true},{"name":"memoryCount","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","effects":[["set","@entity.prompt",""],["set","@entity.memories",[]],["set","@entity.plan",""],["set","@entity.status","idle"]]},{"from":"idle","to":"recalling","event":"PLAN","eventId":"evt_9RGYBN7C1PP0VB190B5QW9W1Y6","effects":[["set","@entity.prompt","@payload.prompt"],["memory/recall","@entity.prompt",{"emit":{"success":"MEMORIES_RECALLED","failure":"RECALL_FAILED"}}]]},{"from":"recalling","to":"idle","event":"INIT","eventId":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","effects":[["set","@entity.prompt",""],["set","@entity.memories",[]],["set","@entity.plan",""],["set","@entity.status","idle"]]},{"from":"recalling","to":"planning","event":"MEMORIES_RECALLED","eventId":"evt_247HN9SY3RZ1WE8A4H1FYWM2FW","effects":[["set","@entity.memories","@payload.result"],["llm/generate","@entity.prompt",{"emit":{"success":"PLAN_GENERATED","failure":"PLAN_GENERATION_FAILED"}}]]},{"from":"recalling","to":"planning","event":"RECALL_FAILED","eventId":"evt_KBC4R8CXP4EV289SR2KHS5A2CC","effects":[["set","@entity.memories",[]],["llm/generate","@entity.prompt",{"emit":{"success":"PLAN_GENERATED","failure":"PLAN_GENERATION_FAILED"}}]]},{"from":"planning","to":"idle","event":"INIT","eventId":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","effects":[["set","@entity.prompt",""],["set","@entity.memories",[]],["set","@entity.plan",""],["set","@entity.status","idle"]]},{"from":"planning","to":"planned","event":"PLAN_GENERATED","eventId":"evt_SR25M7F12AGH58CH2X295Q0HY5","effects":[["set","@entity.plan","@payload.result"],["set","@entity.status","planned"],["emit","PLANNED",{"plan":"@entity.plan","memoryCount":"@entity.memories"}]]},{"from":"planning","to":"planned","event":"PLAN_GENERATION_FAILED","eventId":"evt_ZRDHQE6SFACQN43G512JT9CEZ8","effects":[["set","@entity.plan",""],["set","@entity.status","planned"],["emit","PLANNED",{"plan":"@entity.plan","memoryCount":"@entity.memories"}]]},{"from":"planned","to":"planned","event":"INIT","eventId":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","effects":[["set","@entity.status","planned"]]},{"from":"planned","to":"idle","event":"RESET","eventId":"evt_9V1Z5CHK1XSGYXMJ9TA7MPSFPB","effects":[["set","@entity.plan",""],["set","@entity.memories",[]],["set","@entity.prompt",""],["set","@entity.status","idle"]]}]},"scope":"instance"},{"name":"PlannerListener","id":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ","effectRow":[{"kind":"set","resource":"@entity.status"}],"category":"lifecycle","linkedEntity":"PlannerPlan","linkedEntityId":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY","entityRefIds":{"PlannerPlan":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY"},"listens":[{"event":"PLANNED","eventId":"evt_BM42WSAX8VEMDQMWD7VVPH68YC","triggers":"PLANNED","triggersId":"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS","source":{"kind":"trait","trait":"PlannerExecution","traitId":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"}}],"stateMachine":{"states":[{"name":"waiting","isInitial":true},{"name":"ready"}],"events":[{"key":"INIT","id":"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X","name":"Initialize"},{"key":"PLANNED","id":"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS","name":"Planned"},{"key":"RESET","id":"evt_0ZM74B65912MGZ2SMMBTR7CXPG","name":"Reset","listened":true}],"transitions":[{"from":"waiting","to":"waiting","event":"INIT","eventId":"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X","effects":[["set","@entity.status","idle"]]},{"from":"waiting","to":"ready","event":"PLANNED","eventId":"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS","effects":[["set","@entity.status","planned"]]},{"from":"ready","to":"ready","event":"INIT","eventId":"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X","effects":[["set","@entity.status","planned"]]},{"from":"ready","to":"waiting","event":"RESET","eventId":"evt_0ZM74B65912MGZ2SMMBTR7CXPG","effects":[["set","@entity.status","idle"]]}]},"scope":"instance"}],"pages":[{"name":"AgentPlannerPage","id":"pag_J3RGNR8FQT7VXE9DKKNYW20M4D","path":"/agent-planner","traits":[{"ref":"PlannerExecution","refId":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},{"ref":"PlannerListener","refId":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ"}]}],"types":{"MemoryRecord":[{"name":"id","type":"string","required":true},{"name":"content","type":"string","required":true},{"name":"category","type":"string","required":true},{"name":"strength","type":"number"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY":{"id":"ent_AHEKHP1QRVVWDPN2H5MC7A2YBY","kind":"entity","bakedName":"PlannerPlan","curName":"PlannerPlan","renames":[],"owner":"workspace"},"evt_0ZM74B65912MGZ2SMMBTR7CXPG":{"id":"evt_0ZM74B65912MGZ2SMMBTR7CXPG","kind":"event","bakedName":"RESET","curName":"RESET","renames":[],"owner":"workspace","parent":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ"},"evt_247HN9SY3RZ1WE8A4H1FYWM2FW":{"id":"evt_247HN9SY3RZ1WE8A4H1FYWM2FW","kind":"event","bakedName":"MEMORIES_RECALLED","curName":"MEMORIES_RECALLED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_9RGYBN7C1PP0VB190B5QW9W1Y6":{"id":"evt_9RGYBN7C1PP0VB190B5QW9W1Y6","kind":"event","bakedName":"PLAN","curName":"PLAN","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_9V1Z5CHK1XSGYXMJ9TA7MPSFPB":{"id":"evt_9V1Z5CHK1XSGYXMJ9TA7MPSFPB","kind":"event","bakedName":"RESET","curName":"RESET","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_BM42WSAX8VEMDQMWD7VVPH68YC":{"id":"evt_BM42WSAX8VEMDQMWD7VVPH68YC","kind":"event","bakedName":"PLANNED","curName":"PLANNED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X":{"id":"evt_FHC0MK1QKVVSXRYSZJQ03G6Z8X","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ"},"evt_FPAWK77XZEYZQB96JFTPCPFHSD":{"id":"evt_FPAWK77XZEYZQB96JFTPCPFHSD","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_KBC4R8CXP4EV289SR2KHS5A2CC":{"id":"evt_KBC4R8CXP4EV289SR2KHS5A2CC","kind":"event","bakedName":"RECALL_FAILED","curName":"RECALL_FAILED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS":{"id":"evt_Q8KWH7Y9PA4V5C2A4V7R5FTADS","kind":"event","bakedName":"PLANNED","curName":"PLANNED","renames":[],"owner":"workspace","parent":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ"},"evt_SR25M7F12AGH58CH2X295Q0HY5":{"id":"evt_SR25M7F12AGH58CH2X295Q0HY5","kind":"event","bakedName":"PLAN_GENERATED","curName":"PLAN_GENERATED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"evt_ZRDHQE6SFACQN43G512JT9CEZ8":{"id":"evt_ZRDHQE6SFACQN43G512JT9CEZ8","kind":"event","bakedName":"PLAN_GENERATION_FAILED","curName":"PLAN_GENERATION_FAILED","renames":[],"owner":"workspace","parent":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1"},"orb_TKDTCB8YH1F8GT76WZGF3D1E7Z":{"id":"orb_TKDTCB8YH1F8GT76WZGF3D1E7Z","kind":"orbital","bakedName":"AgentPlannerOrbital","curName":"AgentPlannerOrbital","renames":[],"owner":"workspace"},"pag_J3RGNR8FQT7VXE9DKKNYW20M4D":{"id":"pag_J3RGNR8FQT7VXE9DKKNYW20M4D","kind":"page","bakedName":"AgentPlannerPage","curName":"AgentPlannerPage","renames":[],"owner":"workspace"},"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1":{"id":"trt_1Y7NN9EFDG7PR8FJTQKHXT1SR1","kind":"trait","bakedName":"PlannerExecution","curName":"PlannerExecution","renames":[],"owner":"workspace"},"trt_YB4RQP0EF377HGB7AVGDKCFRMJ":{"id":"trt_YB4RQP0EF377HGB7AVGDKCFRMJ","kind":"trait","bakedName":"PlannerListener","curName":"PlannerListener","renames":[],"owner":"workspace"}}}}