stele-core 18.16.1__py3-none-any.whl

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 (381) hide show
  1. stele_core/__init__.py +423 -0
  2. stele_core/abba.py +107 -0
  3. stele_core/abszero.py +134 -0
  4. stele_core/acm.py +119 -0
  5. stele_core/activation.py +138 -0
  6. stele_core/activeprompt.py +103 -0
  7. stele_core/adalora.py +110 -0
  8. stele_core/adapterdrop.py +107 -0
  9. stele_core/adapterfusion.py +103 -0
  10. stele_core/adapters.py +277 -0
  11. stele_core/adaptiverag.py +92 -0
  12. stele_core/adazeta.py +107 -0
  13. stele_core/agemem.py +103 -0
  14. stele_core/agent0.py +143 -0
  15. stele_core/agentcoder.py +104 -0
  16. stele_core/agentdog.py +343 -0
  17. stele_core/agentevolver.py +129 -0
  18. stele_core/agentfold.py +127 -0
  19. stele_core/agenther.py +185 -0
  20. stele_core/agentir.py +131 -0
  21. stele_core/algorithmofthoughts.py +87 -0
  22. stele_core/alora.py +108 -0
  23. stele_core/amemguard.py +117 -0
  24. stele_core/amsentry.py +155 -0
  25. stele_core/analogical.py +95 -0
  26. stele_core/architect.py +75 -0
  27. stele_core/archive.py +146 -0
  28. stele_core/ariadne.py +222 -0
  29. stele_core/asymmetrylora.py +104 -0
  30. stele_core/attemptprompt.py +104 -0
  31. stele_core/autocot.py +95 -0
  32. stele_core/automaticpromptengineer.py +98 -0
  33. stele_core/autoprompt.py +103 -0
  34. stele_core/awm.py +151 -0
  35. stele_core/beam.py +262 -0
  36. stele_core/bitfit.py +100 -0
  37. stele_core/boft.py +103 -0
  38. stele_core/boha.py +107 -0
  39. stele_core/bora.py +103 -0
  40. stele_core/budgetmem.py +181 -0
  41. stele_core/bufferofthoughts.py +99 -0
  42. stele_core/c3a.py +103 -0
  43. stele_core/camel.py +97 -0
  44. stele_core/capseal.py +207 -0
  45. stele_core/cara.py +105 -0
  46. stele_core/carelora.py +109 -0
  47. stele_core/chainofdensity.py +97 -0
  48. stele_core/chainoflora.py +109 -0
  49. stele_core/chainofverification.py +98 -0
  50. stele_core/chameleon.py +98 -0
  51. stele_core/cheatsheet.py +169 -0
  52. stele_core/cli.py +25538 -0
  53. stele_core/clora.py +104 -0
  54. stele_core/cma.py +148 -0
  55. stele_core/cmgl.py +144 -0
  56. stele_core/compacter.py +106 -0
  57. stele_core/complexityprompt.py +88 -0
  58. stele_core/compressthenserve.py +107 -0
  59. stele_core/concurrentlora.py +108 -0
  60. stele_core/consistencygate.py +159 -0
  61. stele_core/contrastivecot.py +101 -0
  62. stele_core/corda.py +108 -0
  63. stele_core/cordon.py +199 -0
  64. stele_core/crag.py +92 -0
  65. stele_core/credguard.py +117 -0
  66. stele_core/critic.py +96 -0
  67. stele_core/cumulativereasoning.py +91 -0
  68. stele_core/cupmem.py +202 -0
  69. stele_core/dcpm.py +136 -0
  70. stele_core/decision.py +123 -0
  71. stele_core/decomposedprompting.py +100 -0
  72. stele_core/deductive.py +95 -0
  73. stele_core/delora.py +111 -0
  74. stele_core/deltalora.py +106 -0
  75. stele_core/deprepair.py +254 -0
  76. stele_core/derived_index.py +157 -0
  77. stele_core/diffpruning.py +106 -0
  78. stele_core/distill.py +75 -0
  79. stele_core/dora.py +106 -0
  80. stele_core/droplora.py +110 -0
  81. stele_core/dsp.py +91 -0
  82. stele_core/dylora.py +110 -0
  83. stele_core/echomem.py +145 -0
  84. stele_core/emg.py +132 -0
  85. stele_core/emotionprompt.py +93 -0
  86. stele_core/erskill.py +123 -0
  87. stele_core/ether.py +107 -0
  88. stele_core/evermemos.py +305 -0
  89. stele_core/everythingofthoughts.py +92 -0
  90. stele_core/evolver.py +165 -0
  91. stele_core/evomemory.py +158 -0
  92. stele_core/evoprompt.py +103 -0
  93. stele_core/execution.py +326 -0
  94. stele_core/expel.py +200 -0
  95. stele_core/export.py +533 -0
  96. stele_core/fact.py +104 -0
  97. stele_core/fademem.py +212 -0
  98. stele_core/faithfulcot.py +88 -0
  99. stele_core/flare.py +96 -0
  100. stele_core/fleetprop.py +142 -0
  101. stele_core/flora.py +106 -0
  102. stele_core/fluxmem.py +118 -0
  103. stele_core/flylora.py +109 -0
  104. stele_core/fourierft.py +107 -0
  105. stele_core/freshness.py +207 -0
  106. stele_core/fuse.py +302 -0
  107. stele_core/galore.py +107 -0
  108. stele_core/gam.py +135 -0
  109. stele_core/gelora.py +111 -0
  110. stele_core/gem.py +39 -0
  111. stele_core/genread.py +90 -0
  112. stele_core/geolora.py +108 -0
  113. stele_core/glora.py +105 -0
  114. stele_core/gmemory.py +244 -0
  115. stele_core/governance.py +150 -0
  116. stele_core/govmem.py +376 -0
  117. stele_core/graph.py +336 -0
  118. stele_core/graphofthoughts.py +98 -0
  119. stele_core/graphreader.py +97 -0
  120. stele_core/gretriever.py +96 -0
  121. stele_core/grips.py +108 -0
  122. stele_core/harness.py +17407 -0
  123. stele_core/himem.py +135 -0
  124. stele_core/hindsight.py +264 -0
  125. stele_core/hintbeforesolving.py +98 -0
  126. stele_core/hipporag.py +130 -0
  127. stele_core/hira.py +110 -0
  128. stele_core/hmem.py +136 -0
  129. stele_core/hmeml.py +143 -0
  130. stele_core/houlsby.py +107 -0
  131. stele_core/hra.py +107 -0
  132. stele_core/hugginggpt.py +100 -0
  133. stele_core/hybridpeft.py +105 -0
  134. stele_core/hyde.py +101 -0
  135. stele_core/hydralora.py +108 -0
  136. stele_core/hymem.py +183 -0
  137. stele_core/hyperskill.py +146 -0
  138. stele_core/ia3.py +104 -0
  139. stele_core/index/__init__.py +15 -0
  140. stele_core/index/lexical.py +64 -0
  141. stele_core/index/semantic.py +40 -0
  142. stele_core/index/temporal.py +34 -0
  143. stele_core/integrity.py +344 -0
  144. stele_core/ircot.py +94 -0
  145. stele_core/iterretgen.py +96 -0
  146. stele_core/knowledgelayer.py +209 -0
  147. stele_core/kronlora.py +110 -0
  148. stele_core/lats.py +104 -0
  149. stele_core/lattice.py +201 -0
  150. stele_core/leasttomost.py +98 -0
  151. stele_core/lifecycle.py +98 -0
  152. stele_core/lightmem.py +250 -0
  153. stele_core/lightrag.py +105 -0
  154. stele_core/lisa.py +108 -0
  155. stele_core/liveevo.py +132 -0
  156. stele_core/lntuning.py +104 -0
  157. stele_core/loftq.py +110 -0
  158. stele_core/loha.py +107 -0
  159. stele_core/lokr.py +108 -0
  160. stele_core/longlora.py +111 -0
  161. stele_core/lora.py +101 -0
  162. stele_core/loracomposer.py +108 -0
  163. stele_core/loradash.py +107 -0
  164. stele_core/loradrop.py +107 -0
  165. stele_core/lorafa.py +106 -0
  166. stele_core/loraflow.py +107 -0
  167. stele_core/lorafusion.py +107 -0
  168. stele_core/loraga.py +107 -0
  169. stele_core/lorahub.py +111 -0
  170. stele_core/lorainit.py +108 -0
  171. stele_core/loralego.py +110 -0
  172. stele_core/loramini.py +108 -0
  173. stele_core/loramoe.py +108 -0
  174. stele_core/loranull.py +108 -0
  175. stele_core/loraone.py +107 -0
  176. stele_core/loraplus.py +107 -0
  177. stele_core/lorapro.py +104 -0
  178. stele_core/lorarar.py +108 -0
  179. stele_core/lorashear.py +108 -0
  180. stele_core/lorasp.py +106 -0
  181. stele_core/loratsd.py +108 -0
  182. stele_core/loraxs.py +106 -0
  183. stele_core/loretta.py +104 -0
  184. stele_core/lorta.py +110 -0
  185. stele_core/lotr.py +107 -0
  186. stele_core/mae.py +124 -0
  187. stele_core/maieutic.py +92 -0
  188. stele_core/malora.py +108 -0
  189. stele_core/mandol.py +120 -0
  190. stele_core/mapgate.py +174 -0
  191. stele_core/meft.py +104 -0
  192. stele_core/melora_ensemble.py +111 -0
  193. stele_core/memalpha.py +173 -0
  194. stele_core/memanto.py +143 -0
  195. stele_core/memcon.py +111 -0
  196. stele_core/memdata.py +151 -0
  197. stele_core/memengine.py +143 -0
  198. stele_core/memevolve.py +279 -0
  199. stele_core/memforest.py +200 -0
  200. stele_core/memgas.py +113 -0
  201. stele_core/memgate.py +130 -0
  202. stele_core/memgen.py +131 -0
  203. stele_core/memgpt.py +113 -0
  204. stele_core/memgraphrag.py +105 -0
  205. stele_core/memma.py +225 -0
  206. stele_core/memobrain.py +98 -0
  207. stele_core/memorag.py +101 -0
  208. stele_core/memorybank.py +109 -0
  209. stele_core/memoryos.py +278 -0
  210. stele_core/memoryr1.py +167 -0
  211. stele_core/memos.py +157 -0
  212. stele_core/mempoison.py +349 -0
  213. stele_core/memr3.py +160 -0
  214. stele_core/memrefine.py +162 -0
  215. stele_core/memrl.py +157 -0
  216. stele_core/memsec.py +187 -0
  217. stele_core/memskill.py +255 -0
  218. stele_core/memtx.py +283 -0
  219. stele_core/memwalker.py +107 -0
  220. stele_core/memweaver.py +309 -0
  221. stele_core/metacognitive.py +96 -0
  222. stele_core/metaprompting.py +101 -0
  223. stele_core/metis.py +153 -0
  224. stele_core/milora.py +107 -0
  225. stele_core/mindmemos.py +363 -0
  226. stele_core/miss.py +107 -0
  227. stele_core/mixlora.py +110 -0
  228. stele_core/mlora.py +106 -0
  229. stele_core/mnemonic.py +135 -0
  230. stele_core/moelora.py +108 -0
  231. stele_core/momentumaidedprompt.py +103 -0
  232. stele_core/mora.py +107 -0
  233. stele_core/moslora.py +107 -0
  234. stele_core/mpbench.py +158 -0
  235. stele_core/msce.py +203 -0
  236. stele_core/mtllora.py +108 -0
  237. stele_core/multiagentdebate.py +97 -0
  238. stele_core/multilora.py +108 -0
  239. stele_core/multimodalcot.py +93 -0
  240. stele_core/multitaskprompttuning.py +104 -0
  241. stele_core/mysql_store.py +511 -0
  242. stele_core/nemori.py +177 -0
  243. stele_core/nlora.py +110 -0
  244. stele_core/nola.py +107 -0
  245. stele_core/oblivion_gate.py +120 -0
  246. stele_core/oft.py +110 -0
  247. stele_core/olora.py +106 -0
  248. stele_core/omem.py +107 -0
  249. stele_core/oplora.py +107 -0
  250. stele_core/oplora_alt.py +109 -0
  251. stele_core/ops.py +17455 -0
  252. stele_core/optimizationbyprompting.py +103 -0
  253. stele_core/pageindex.py +112 -0
  254. stele_core/pam.py +334 -0
  255. stele_core/pamu.py +289 -0
  256. stele_core/patchtxn.py +149 -0
  257. stele_core/periodiclora.py +108 -0
  258. stele_core/pissa.py +107 -0
  259. stele_core/planandsolve.py +94 -0
  260. stele_core/planrag.py +94 -0
  261. stele_core/prefixtuning.py +104 -0
  262. stele_core/preflect.py +163 -0
  263. stele_core/procmem.py +171 -0
  264. stele_core/programaided.py +95 -0
  265. stele_core/programofthoughts.py +98 -0
  266. stele_core/prograph.py +227 -0
  267. stele_core/progressivehint.py +89 -0
  268. stele_core/promptagent.py +103 -0
  269. stele_core/promptbreeder.py +97 -0
  270. stele_core/prompttuning.py +104 -0
  271. stele_core/protegi.py +104 -0
  272. stele_core/ptuningv2.py +104 -0
  273. stele_core/punica.py +108 -0
  274. stele_core/py.typed +0 -0
  275. stele_core/qalora.py +110 -0
  276. stele_core/qdylora.py +112 -0
  277. stele_core/qgalore.py +107 -0
  278. stele_core/qlora.py +106 -0
  279. stele_core/qpissa.py +110 -0
  280. stele_core/quietstar.py +91 -0
  281. stele_core/qumem.py +122 -0
  282. stele_core/randlora.py +107 -0
  283. stele_core/randsub.py +108 -0
  284. stele_core/raptor.py +98 -0
  285. stele_core/react.py +100 -0
  286. stele_core/reasoningbank.py +183 -0
  287. stele_core/reasoningviaplanning.py +97 -0
  288. stele_core/recmem.py +104 -0
  289. stele_core/recursionofthought.py +100 -0
  290. stele_core/reflective_mm.py +201 -0
  291. stele_core/reflexion.py +105 -0
  292. stele_core/reft.py +107 -0
  293. stele_core/relora.py +108 -0
  294. stele_core/reme.py +246 -0
  295. stele_core/remem.py +284 -0
  296. stele_core/repair.py +375 -0
  297. stele_core/replug.py +96 -0
  298. stele_core/retrieval.py +471 -0
  299. stele_core/rewoo.py +102 -0
  300. stele_core/rfmem.py +103 -0
  301. stele_core/ripplemem.py +114 -0
  302. stele_core/risk.py +45 -0
  303. stele_core/rlprompt.py +103 -0
  304. stele_core/roles.py +163 -0
  305. stele_core/rosa.py +107 -0
  306. stele_core/rqrag.py +102 -0
  307. stele_core/rrm.py +244 -0
  308. stele_core/rrr.py +92 -0
  309. stele_core/rslora.py +106 -0
  310. stele_core/rzero.py +143 -0
  311. stele_core/sagema.py +139 -0
  312. stele_core/samule.py +144 -0
  313. stele_core/schema.py +319 -0
  314. stele_core/schema_json.py +169 -0
  315. stele_core/scm.py +297 -0
  316. stele_core/sdt.py +104 -0
  317. stele_core/selfask.py +94 -0
  318. stele_core/selfcons.py +101 -0
  319. stele_core/selfdiscover.py +106 -0
  320. stele_core/selfrag.py +84 -0
  321. stele_core/selfrefine.py +95 -0
  322. stele_core/selftaughtreasoner.py +96 -0
  323. stele_core/selfverification.py +96 -0
  324. stele_core/sfams.py +109 -0
  325. stele_core/shira.py +107 -0
  326. stele_core/simplemem.py +120 -0
  327. stele_core/skeletonofthought.py +93 -0
  328. stele_core/skillcraft.py +128 -0
  329. stele_core/skillflow.py +162 -0
  330. stele_core/skillrank.py +137 -0
  331. stele_core/skillroute.py +158 -0
  332. stele_core/skillweaver.py +143 -0
  333. stele_core/sleepgate.py +194 -0
  334. stele_core/slora.py +109 -0
  335. stele_core/smith.py +138 -0
  336. stele_core/smoa.py +108 -0
  337. stele_core/socratic.py +128 -0
  338. stele_core/sodamem.py +190 -0
  339. stele_core/softpromptmixtures.py +104 -0
  340. stele_core/softprompttransfer.py +105 -0
  341. stele_core/spiral.py +120 -0
  342. stele_core/stale.py +252 -0
  343. stele_core/stepback.py +93 -0
  344. stele_core/store.py +253 -0
  345. stele_core/strata.py +144 -0
  346. stele_core/superlora.py +108 -0
  347. stele_core/svft.py +107 -0
  348. stele_core/switchlora.py +111 -0
  349. stele_core/system2attention.py +94 -0
  350. stele_core/tabcot.py +99 -0
  351. stele_core/tarl.py +179 -0
  352. stele_core/tempera.py +109 -0
  353. stele_core/tenslora.py +108 -0
  354. stele_core/tera.py +108 -0
  355. stele_core/tgms.py +342 -0
  356. stele_core/thinkongraph.py +100 -0
  357. stele_core/thoughtpropagation.py +100 -0
  358. stele_core/threadofthought.py +101 -0
  359. stele_core/tiedlora.py +204 -0
  360. stele_core/tiermem.py +281 -0
  361. stele_core/tmanm.py +239 -0
  362. stele_core/toki_ops.py +217 -0
  363. stele_core/toolformer.py +101 -0
  364. stele_core/trace2skill.py +227 -0
  365. stele_core/treeofthoughts.py +99 -0
  366. stele_core/unilora.py +107 -0
  367. stele_core/vblora.py +110 -0
  368. stele_core/vera.py +106 -0
  369. stele_core/verifyandedit.py +98 -0
  370. stele_core/versioning.py +339 -0
  371. stele_core/vikingmem.py +111 -0
  372. stele_core/voyager.py +103 -0
  373. stele_core/waveft.py +107 -0
  374. stele_core/worth.py +105 -0
  375. stele_core/xmemory.py +279 -0
  376. stele_core/zep.py +119 -0
  377. stele_core-18.16.1.dist-info/METADATA +69 -0
  378. stele_core-18.16.1.dist-info/RECORD +381 -0
  379. stele_core-18.16.1.dist-info/WHEEL +4 -0
  380. stele_core-18.16.1.dist-info/entry_points.txt +2 -0
  381. stele_core-18.16.1.dist-info/licenses/LICENSE +21 -0
stele_core/__init__.py ADDED
@@ -0,0 +1,423 @@
1
+ """Stele — governed experiential-memory ledger for AI agents."""
2
+
3
+ from stele_core.adapters import (
4
+ Embedder,
5
+ OracleAdapter,
6
+ SearchBackend,
7
+ from_memorywire_recall_hits,
8
+ judgment_entry,
9
+ migration_entry,
10
+ project_receipt,
11
+ to_memorywire_remember,
12
+ )
13
+ from stele_core.harness import (
14
+ LessonTask,
15
+ compare_with_without,
16
+ foreign_pack_transfer_eval,
17
+ gatemem_shaped_report,
18
+ governance_shaped_report,
19
+ gpm_release_shaped_report,
20
+ insight_needs,
21
+ maple_shaped_report,
22
+ measure_search_overhead,
23
+ membench_shaped_report,
24
+ meld_map_shaped_report,
25
+ memmark_shaped_report,
26
+ memory_arena_smoke,
27
+ memoryagent_shaped_report,
28
+ pam_cava_shaped_report,
29
+ poem_ppmf_shaped_report,
30
+ memorepair_shaped_report,
31
+ memir_dmem_shaped_report,
32
+ gitofthoughts_shaped_report,
33
+ chronomem_strata_shaped_report,
34
+ tarl_mw_shaped_report,
35
+ memtx_aoep_shaped_report,
36
+ lattice_cordon_shaped_report,
37
+ stale_gem_shaped_report,
38
+ statefuse_toki_shaped_report,
39
+ memorepair_cupmem_cmgl_shaped_report,
40
+ tiermem_msce_shaped_report,
41
+ fademem_memr3_shaped_report,
42
+ archive_sfams_memcon_shaped_report,
43
+ scm_gam_acm_shaped_report,
44
+ lightmem_hippo_quipu_shaped_report,
45
+ prograph_emg_agentir_shaped_report,
46
+ govmem_hymem_shaped_report,
47
+ freshness_memtxn_fleet_shaped_report,
48
+ budgetmem_erskill_shaped_report,
49
+ consistency_memgate_sovereignty_shaped_report,
50
+ run_task,
51
+ soda_synapse_shaped_report,
52
+ sodamem_memrefine_ariadne_shaped_report,
53
+ tepa_amvl_shaped_report,
54
+ tgms_memdata_shaped_report,
55
+ tmanm_amsentry_shaped_report,
56
+ memforest_xmemory_shaped_report,
57
+ memsec_sleepgate_amemguard_shaped_report,
58
+ deprepair_mpbench_shaped_report,
59
+ mempoison_salami_shaped_report,
60
+ knowledgelayer_cred_uncertainty_shaped_report,
61
+ pam_capseal_shaped_report,
62
+ agentdog_memweaver_shaped_report,
63
+ memevolve_mindmemos_shaped_report,
64
+ pamu_beam_shaped_report,
65
+ remem_evermemos_shaped_report,
66
+ memoryos_nemori_shaped_report,
67
+ hindsight_reasoningbank_shaped_report,
68
+ memskill_memoryr1_shaped_report,
69
+ gmemory_memma_shaped_report,
70
+ awm_rrm_shaped_report,
71
+ reme_cheatsheet_shaped_report,
72
+ expel_rmm_shaped_report,
73
+ trace2skill_evomemory_shaped_report,
74
+ memalpha_agenther_shaped_report,
75
+ preflect_skillflow_shaped_report,
76
+ procmem_memrl_shaped_report,
77
+ evolver_agentevolver_shaped_report,
78
+ skillweaver_skillroute_shaped_report,
79
+ abszero_rzero_shaped_report,
80
+ echomem_agent0_shaped_report,
81
+ mae_sagema_shaped_report,
82
+ memgen_metis_shaped_report,
83
+ samule_liveevo_shaped_report,
84
+ socratic_spiral_shaped_report,
85
+ smith_hmem_shaped_report,
86
+ himem_hmeml_shaped_report,
87
+ hyperskill_dcpm_shaped_report,
88
+ memos_skillcraft_shaped_report,
89
+ cma_agentfold_shaped_report,
90
+ memengine_simplemem_shaped_report,
91
+ omem_mandol_shaped_report,
92
+ memanto_zep_shaped_report,
93
+ memgpt_ripple_shaped_report,
94
+ fluxmem_qumem_shaped_report,
95
+ vikingmem_recmem_shaped_report,
96
+ memorybank_rfmem_shaped_report,
97
+ agemem_memgas_shaped_report,
98
+ memwalker_memgraphrag_shaped_report,
99
+ raptor_lightrag_shaped_report,
100
+ memorag_pageindex_shaped_report,
101
+ selfrag_memobrain_shaped_report,
102
+ crag_hyde_shaped_report,
103
+ adaptiverag_flare_shaped_report,
104
+ graphreader_gretriever_shaped_report,
105
+ rqrag_ircot_shaped_report,
106
+ replug_iterretgen_shaped_report,
107
+ planrag_rrr_shaped_report,
108
+ dsp_genread_shaped_report,
109
+ selfask_react_shaped_report,
110
+ tog_toolformer_shaped_report,
111
+ reflexion_selfcons_shaped_report,
112
+ tot_ltm_shaped_report,
113
+ got_pot_shaped_report,
114
+ aot_rap_shaped_report,
115
+ sot_bot_shaped_report,
116
+ sd_mp_shaped_report,
117
+ qs_dep_shaped_report,
118
+ star_cr_shaped_report,
119
+ ps_php_shaped_report,
120
+ ac_pal_shaped_report,
121
+ fcot_lats_shaped_report,
122
+ voy_rewoo_shaped_report,
123
+ critic_dv_shaped_report,
124
+ hgpt_mad_shaped_report,
125
+ autocot_camel_shaped_report,
126
+ cham_rot_shaped_report,
127
+ ap_ana_shaped_report,
128
+ cbp_sb_shaped_report,
129
+ mmcot_mai_shaped_report,
130
+ sr_mcp_shaped_report,
131
+ thot_tprop_shaped_report,
132
+ s2a_ccot_shaped_report,
133
+ tabcot_xot_shaped_report,
134
+ cove_ved_shaped_report,
135
+ sve_cod_shaped_report,
136
+ hsp_emo_shaped_report,
137
+ ape_pbr_shaped_report,
138
+ opro_evp_shaped_report,
139
+ ptg_pag_shaped_report,
140
+ mapo_grips_shaped_report,
141
+ tmpa_rlp_shaped_report,
142
+ aup_pfx_shaped_report,
143
+ ptv_ptl_shaped_report,
144
+ msp_spot_shaped_report,
145
+ atm_mptp_shaped_report,
146
+ lora_adf_shaped_report,
147
+ cmp_ia3_shaped_report,
148
+ bft_dora_shaped_report,
149
+ qlo_adl_shaped_report,
150
+ vra_adp_shaped_report,
151
+ psa_dpr_shaped_report,
152
+ tlo_lrp_shaped_report,
153
+ lfa_dyl_shaped_report,
154
+ lxs_asy_shaped_report,
155
+ lga_mor_shaped_report,
156
+ rsl_lkr_shaped_report,
157
+ lha_fft_shaped_report,
158
+ had_rft_shaped_report,
159
+ oft_mss_shaped_report,
160
+ drl_gal_shaped_report,
161
+ shr_wft_shaped_report,
162
+ lpr_krl_shaped_report,
163
+ mil_cda_shaped_report,
164
+ lfq_lds_shaped_report,
165
+ dlo_lon_shaped_report,
166
+ olr_lsp_shaped_report,
167
+ qps_msl_shaped_report,
168
+ ldr_vbl_shaped_report,
169
+ opl_gel_shaped_report,
170
+ geo_rlo_shaped_report,
171
+ lsh_aop_shaped_report,
172
+ lin_lnu_shaped_report,
173
+ hyd_llg_shaped_report,
174
+ lme_mel_shaped_report,
175
+ lhb_mlr_shaped_report,
176
+ mtl_mal_shaped_report,
177
+ lmi_qdy_shaped_report,
178
+ lts_slr_shaped_report,
179
+ cts_flo_shaped_report,
180
+ pun_mla_shaped_report,
181
+ swl_col_shaped_report,
182
+ dlr_meo_shaped_report,
183
+ rlr_eth_shaped_report,
184
+ lco_car_shaped_report,
185
+ lrr_svf_shaped_report,
186
+ fly_nla_shaped_report,
187
+ mxl_spr_shaped_report,
188
+ tld_qal_shaped_report,
189
+ ulo_bor_shaped_report,
190
+ qga_lfw_shaped_report,
191
+ ros_abb_shaped_report,
192
+ bha_smo_shaped_report,
193
+ glo_plr_shaped_report,
194
+ hir_cnl_shaped_report,
195
+ llr_lis_shaped_report,
196
+ nlr_rsa_shaped_report,
197
+ hra_hyb_shaped_report,
198
+ lrt_clo_shaped_report,
199
+ alo_lnt_shaped_report,
200
+ lfu_ter_shaped_report,
201
+ tnl_azt_shaped_report,
202
+ fct_ltr_shaped_report,
203
+ cra_ltt_shaped_report,
204
+ c3a_bof_shaped_report,
205
+ sdt_mef_shaped_report,
206
+ workflow_env_gate_suite,
207
+ )
208
+ from stele_core.ops import Stele
209
+ from stele_core.schema import SCHEMA_VERSION, SchemaError
210
+ from stele_core.schema_json import entry_json_schema
211
+ from stele_core.store import SteleStore, StoreError
212
+
213
+ __all__ = [
214
+ "SCHEMA_VERSION",
215
+ "Embedder",
216
+ "LessonTask",
217
+ "OracleAdapter",
218
+ "SchemaError",
219
+ "SearchBackend",
220
+ "Stele",
221
+ "SteleStore",
222
+ "StoreError",
223
+ "compare_with_without",
224
+ "entry_json_schema",
225
+ "foreign_pack_transfer_eval",
226
+ "from_memorywire_recall_hits",
227
+ "gatemem_shaped_report",
228
+ "governance_shaped_report",
229
+ "gpm_release_shaped_report",
230
+ "insight_needs",
231
+ "judgment_entry",
232
+ "maple_shaped_report",
233
+ "measure_search_overhead",
234
+ "membench_shaped_report",
235
+ "meld_map_shaped_report",
236
+ "memmark_shaped_report",
237
+ "memory_arena_smoke",
238
+ "memoryagent_shaped_report",
239
+ "migration_entry",
240
+ "pam_cava_shaped_report",
241
+ "poem_ppmf_shaped_report",
242
+ "memorepair_shaped_report",
243
+ "memir_dmem_shaped_report",
244
+ "gitofthoughts_shaped_report",
245
+ "chronomem_strata_shaped_report",
246
+ "tarl_mw_shaped_report",
247
+ "memtx_aoep_shaped_report",
248
+ "lattice_cordon_shaped_report",
249
+ "stale_gem_shaped_report",
250
+ "statefuse_toki_shaped_report",
251
+ "memorepair_cupmem_cmgl_shaped_report",
252
+ "tiermem_msce_shaped_report",
253
+ "fademem_memr3_shaped_report",
254
+ "archive_sfams_memcon_shaped_report",
255
+ "scm_gam_acm_shaped_report",
256
+ "lightmem_hippo_quipu_shaped_report",
257
+ "prograph_emg_agentir_shaped_report",
258
+ "govmem_hymem_shaped_report",
259
+ "freshness_memtxn_fleet_shaped_report",
260
+ "budgetmem_erskill_shaped_report",
261
+ "consistency_memgate_sovereignty_shaped_report",
262
+ "project_receipt",
263
+ "run_task",
264
+ "soda_synapse_shaped_report",
265
+ "sodamem_memrefine_ariadne_shaped_report",
266
+ "tepa_amvl_shaped_report",
267
+ "tgms_memdata_shaped_report",
268
+ "tmanm_amsentry_shaped_report",
269
+ "memforest_xmemory_shaped_report",
270
+ "memsec_sleepgate_amemguard_shaped_report",
271
+ "deprepair_mpbench_shaped_report",
272
+ "mempoison_salami_shaped_report",
273
+ "knowledgelayer_cred_uncertainty_shaped_report",
274
+ "pam_capseal_shaped_report",
275
+ "agentdog_memweaver_shaped_report",
276
+ "memevolve_mindmemos_shaped_report",
277
+ "pamu_beam_shaped_report",
278
+ "remem_evermemos_shaped_report",
279
+ "memoryos_nemori_shaped_report",
280
+ "hindsight_reasoningbank_shaped_report",
281
+ "memskill_memoryr1_shaped_report",
282
+ "gmemory_memma_shaped_report",
283
+ "awm_rrm_shaped_report",
284
+ "reme_cheatsheet_shaped_report",
285
+ "expel_rmm_shaped_report",
286
+ "trace2skill_evomemory_shaped_report",
287
+ "memalpha_agenther_shaped_report",
288
+ "preflect_skillflow_shaped_report",
289
+ "procmem_memrl_shaped_report",
290
+ "evolver_agentevolver_shaped_report",
291
+ "skillweaver_skillroute_shaped_report",
292
+ "abszero_rzero_shaped_report",
293
+ "echomem_agent0_shaped_report",
294
+ "mae_sagema_shaped_report",
295
+ "memgen_metis_shaped_report",
296
+ "samule_liveevo_shaped_report",
297
+ "socratic_spiral_shaped_report",
298
+ "smith_hmem_shaped_report",
299
+ "himem_hmeml_shaped_report",
300
+ "hyperskill_dcpm_shaped_report",
301
+ "memos_skillcraft_shaped_report",
302
+ "cma_agentfold_shaped_report",
303
+ "memengine_simplemem_shaped_report",
304
+ "omem_mandol_shaped_report",
305
+ "memanto_zep_shaped_report",
306
+ "memgpt_ripple_shaped_report",
307
+ "fluxmem_qumem_shaped_report",
308
+ "vikingmem_recmem_shaped_report",
309
+ "memorybank_rfmem_shaped_report",
310
+ "agemem_memgas_shaped_report",
311
+ "memwalker_memgraphrag_shaped_report",
312
+ "raptor_lightrag_shaped_report",
313
+ "memorag_pageindex_shaped_report",
314
+ "selfrag_memobrain_shaped_report",
315
+ "crag_hyde_shaped_report",
316
+ "adaptiverag_flare_shaped_report",
317
+ "graphreader_gretriever_shaped_report",
318
+ "rqrag_ircot_shaped_report",
319
+ "replug_iterretgen_shaped_report",
320
+ "planrag_rrr_shaped_report",
321
+ "dsp_genread_shaped_report",
322
+ "selfask_react_shaped_report",
323
+ "tog_toolformer_shaped_report",
324
+ "reflexion_selfcons_shaped_report",
325
+ "tot_ltm_shaped_report",
326
+ "got_pot_shaped_report",
327
+ "aot_rap_shaped_report",
328
+ "sot_bot_shaped_report",
329
+ "sd_mp_shaped_report",
330
+ "qs_dep_shaped_report",
331
+ "star_cr_shaped_report",
332
+ "ps_php_shaped_report",
333
+ "ac_pal_shaped_report",
334
+ "fcot_lats_shaped_report",
335
+ "voy_rewoo_shaped_report",
336
+ "critic_dv_shaped_report",
337
+ "hgpt_mad_shaped_report",
338
+ "autocot_camel_shaped_report",
339
+ "cham_rot_shaped_report",
340
+ "ap_ana_shaped_report",
341
+ "cbp_sb_shaped_report",
342
+ "mmcot_mai_shaped_report",
343
+ "sr_mcp_shaped_report",
344
+ "thot_tprop_shaped_report",
345
+ "s2a_ccot_shaped_report",
346
+ "tabcot_xot_shaped_report",
347
+ "cove_ved_shaped_report",
348
+ "sve_cod_shaped_report",
349
+ "hsp_emo_shaped_report",
350
+ "ape_pbr_shaped_report",
351
+ "opro_evp_shaped_report",
352
+ "ptg_pag_shaped_report",
353
+ "mapo_grips_shaped_report",
354
+ "tmpa_rlp_shaped_report",
355
+ "aup_pfx_shaped_report",
356
+ "ptv_ptl_shaped_report",
357
+ "msp_spot_shaped_report",
358
+ "atm_mptp_shaped_report",
359
+ "lora_adf_shaped_report",
360
+ "cmp_ia3_shaped_report",
361
+ "bft_dora_shaped_report",
362
+ "qlo_adl_shaped_report",
363
+ "vra_adp_shaped_report",
364
+ "psa_dpr_shaped_report",
365
+ "tlo_lrp_shaped_report",
366
+ "lfa_dyl_shaped_report",
367
+ "lxs_asy_shaped_report",
368
+ "lga_mor_shaped_report",
369
+ "rsl_lkr_shaped_report",
370
+ "lha_fft_shaped_report",
371
+ "had_rft_shaped_report",
372
+ "oft_mss_shaped_report",
373
+ "drl_gal_shaped_report",
374
+ "shr_wft_shaped_report",
375
+ "lpr_krl_shaped_report",
376
+ "mil_cda_shaped_report",
377
+ "lfq_lds_shaped_report",
378
+ "dlo_lon_shaped_report",
379
+ "olr_lsp_shaped_report",
380
+ "qps_msl_shaped_report",
381
+ "ldr_vbl_shaped_report",
382
+ "opl_gel_shaped_report",
383
+ "geo_rlo_shaped_report",
384
+ "lsh_aop_shaped_report",
385
+ "lin_lnu_shaped_report",
386
+ "hyd_llg_shaped_report",
387
+ "lme_mel_shaped_report",
388
+ "lhb_mlr_shaped_report",
389
+ "mtl_mal_shaped_report",
390
+ "lmi_qdy_shaped_report",
391
+ "lts_slr_shaped_report",
392
+ "cts_flo_shaped_report",
393
+ "pun_mla_shaped_report",
394
+ "swl_col_shaped_report",
395
+ "dlr_meo_shaped_report",
396
+ "rlr_eth_shaped_report",
397
+ "lco_car_shaped_report",
398
+ "lrr_svf_shaped_report",
399
+ "fly_nla_shaped_report",
400
+ "mxl_spr_shaped_report",
401
+ "tld_qal_shaped_report",
402
+ "ulo_bor_shaped_report",
403
+ "qga_lfw_shaped_report",
404
+ "ros_abb_shaped_report",
405
+ "bha_smo_shaped_report",
406
+ "glo_plr_shaped_report",
407
+ "hir_cnl_shaped_report",
408
+ "llr_lis_shaped_report",
409
+ "nlr_rsa_shaped_report",
410
+ "hra_hyb_shaped_report",
411
+ "lrt_clo_shaped_report",
412
+ "alo_lnt_shaped_report",
413
+ "lfu_ter_shaped_report",
414
+ "tnl_azt_shaped_report",
415
+ "fct_ltr_shaped_report",
416
+ "cra_ltt_shaped_report",
417
+ "c3a_bof_shaped_report",
418
+ "sdt_mef_shaped_report",
419
+ "to_memorywire_remember",
420
+ "workflow_env_gate_suite",
421
+ ]
422
+
423
+ __version__ = "18.16.1"
stele_core/abba.py ADDED
@@ -0,0 +1,107 @@
1
+ """ABBA proxies (stdlib; no LLM).
2
+
3
+ Shaped by ABBA-Adapters (arXiv:2505.14238): Hadamard of two learned
4
+ low-rank factors — high effective rank without tying to W0. Proxies
5
+ only.
6
+
7
+ Prefix ``abb_*`` — not LoHA (``lha_*``) / HiRA / RoSA (``ros_*``).
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ import hashlib
13
+ from typing import Any
14
+
15
+ from stele_core.schema import SchemaError, canonical_dumps
16
+
17
+
18
+ def abb_left(*, task: str, rank: int) -> dict[str, Any]:
19
+ """Allocate the first low-rank factor (rank >= 1)."""
20
+ t = task.strip()
21
+ if not t:
22
+ raise SchemaError("task required")
23
+ if rank < 1:
24
+ raise SchemaError("rank must be >= 1")
25
+ lid = hashlib.sha256(
26
+ canonical_dumps({"t": t, "r": rank}).encode("utf-8")
27
+ ).hexdigest()[:12]
28
+ return {
29
+ "left_id": lid,
30
+ "rank": rank,
31
+ "ok": True,
32
+ "note": "abb abb_left",
33
+ }
34
+
35
+
36
+ def abb_right(*, left_id: str) -> dict[str, Any]:
37
+ """Allocate the second low-rank factor."""
38
+ lid = left_id.strip()
39
+ if not lid:
40
+ raise SchemaError("left_id required")
41
+ rid = hashlib.sha256(
42
+ canonical_dumps({"l": lid}).encode("utf-8")
43
+ ).hexdigest()[:12]
44
+ return {
45
+ "right_id": rid,
46
+ "ok": True,
47
+ "note": "abb abb_right",
48
+ }
49
+
50
+
51
+ def abb_hadamard(*, right_id: str) -> dict[str, Any]:
52
+ """Form ΔW = (B1 A1) ⊙ (B2 A2)."""
53
+ rid = right_id.strip()
54
+ if not rid:
55
+ raise SchemaError("right_id required")
56
+ hid = hashlib.sha256(
57
+ canonical_dumps({"r": rid}).encode("utf-8")
58
+ ).hexdigest()[:12]
59
+ return {
60
+ "hadamard_id": hid,
61
+ "ok": True,
62
+ "note": "abb abb_hadamard",
63
+ }
64
+
65
+
66
+ def abb_score(*, hadamard_id: str, score: int) -> dict[str, Any]:
67
+ """Score ABBA run (0–100)."""
68
+ hid = hadamard_id.strip()
69
+ if not hid:
70
+ raise SchemaError("hadamard_id required")
71
+ if score < 0 or score > 100:
72
+ raise SchemaError("score must be 0..100")
73
+ sid = hashlib.sha256(
74
+ canonical_dumps({"h": hid, "s": score}).encode("utf-8")
75
+ ).hexdigest()[:12]
76
+ return {
77
+ "score_id": sid,
78
+ "score": score,
79
+ "ok": True,
80
+ "note": "abb abb_score",
81
+ }
82
+
83
+
84
+ def abb_expr(*, expressive: bool) -> dict[str, Any]:
85
+ """Flag W0-free Hadamard expressivity (report-only)."""
86
+ return {
87
+ "expressive": expressive,
88
+ "apply": False,
89
+ "ok": True,
90
+ "note": "abb abb_expr",
91
+ }
92
+
93
+
94
+ def abb_loop_plan(*, phase: str) -> dict[str, Any]:
95
+ """Left → right → hadamard → score."""
96
+ order = ("left", "right", "hadamard", "score")
97
+ if phase not in order:
98
+ raise SchemaError(f"phase must be one of {list(order)}")
99
+ idx = order.index(phase)
100
+ nxt = order[idx + 1] if idx + 1 < len(order) else "left"
101
+ return {
102
+ "phase": phase,
103
+ "next": nxt,
104
+ "apply": False,
105
+ "ok": True,
106
+ "note": "abb abb_loop_plan",
107
+ }
stele_core/abszero.py ADDED
@@ -0,0 +1,134 @@
1
+ """Absolute Zero Reasoner-shaped self-play (stdlib; no LLM / no executor).
2
+
3
+ Shaped by Absolute Zero / AZR (arXiv:2505.03335): propose+solve loop,
4
+ induction/abduction/deduction modes, learnability reward, executor verify.
5
+ Proxies only — not AZR paper scores.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ import hashlib
11
+ from typing import Any
12
+
13
+ from stele_core.schema import SchemaError, canonical_dumps
14
+
15
+ TASK_MODES = frozenset({"induction", "abduction", "deduction"})
16
+
17
+
18
+ def propose_reasoning_task(
19
+ *,
20
+ mode: str,
21
+ seed_hint: str = "",
22
+ ) -> dict[str, Any]:
23
+ """Proposer samples a task of a given reasoning mode."""
24
+ if mode not in TASK_MODES:
25
+ raise SchemaError(f"mode must be one of {sorted(TASK_MODES)}")
26
+ hint = seed_hint.strip()[:80]
27
+ body = f"{mode} task"
28
+ if hint:
29
+ body = f"{body}: {hint}"
30
+ tid = hashlib.sha256(
31
+ canonical_dumps({"m": mode, "b": body}).encode("utf-8")
32
+ ).hexdigest()[:12]
33
+ return {
34
+ "task_id": tid,
35
+ "mode": mode,
36
+ "query": body[:160],
37
+ "ok": True,
38
+ "note": "abszero propose_reasoning_task",
39
+ }
40
+
41
+
42
+ def validate_task_structure(
43
+ *,
44
+ has_program: bool,
45
+ has_input: bool,
46
+ has_output: bool,
47
+ mode: str,
48
+ ) -> dict[str, Any]:
49
+ """
50
+ Validate (program, input, output) triplet completeness by mode.
51
+ induction: program+input → output; deduction: program+output → input;
52
+ abduction: input+output → program (proxy flags).
53
+ """
54
+ if mode not in TASK_MODES:
55
+ raise SchemaError(f"mode must be one of {sorted(TASK_MODES)}")
56
+ if mode == "induction":
57
+ valid = has_program and has_input
58
+ elif mode == "deduction":
59
+ valid = has_program and has_output
60
+ else: # abduction
61
+ valid = has_input and has_output
62
+ return {
63
+ "valid": valid,
64
+ "mode": mode,
65
+ "ok": True,
66
+ "note": "abszero validate_task_structure",
67
+ }
68
+
69
+
70
+ def learnability_reward(
71
+ *,
72
+ mean_solve_rate: float,
73
+ ) -> dict[str, Any]:
74
+ """r_propose = 0 if mean_solve=0 else 1 − mean_solve (neither trivial nor impossible)."""
75
+ if not (0.0 <= mean_solve_rate <= 1.0):
76
+ raise SchemaError("mean_solve_rate must be in [0, 1]")
77
+ if mean_solve_rate == 0.0:
78
+ r = 0.0
79
+ else:
80
+ r = 1.0 - mean_solve_rate
81
+ return {
82
+ "r_propose": round(r, 4),
83
+ "mean_solve_rate": mean_solve_rate,
84
+ "sweet_spot": 0.3 <= mean_solve_rate <= 0.7,
85
+ "ok": True,
86
+ "note": "abszero learnability_reward",
87
+ }
88
+
89
+
90
+ def solve_reward(
91
+ *,
92
+ answer_match: bool,
93
+ ) -> dict[str, Any]:
94
+ """r_solve binary from executor match."""
95
+ return {
96
+ "r_solve": 1.0 if answer_match else 0.0,
97
+ "ok": True,
98
+ "note": "abszero solve_reward",
99
+ }
100
+
101
+
102
+ def abszero_joint_objective(
103
+ *,
104
+ r_propose: float,
105
+ r_solve: float,
106
+ lambda_propose: float = 0.5,
107
+ ) -> dict[str, Any]:
108
+ """λ r_propose + r_solve joint objective proxy."""
109
+ if not (0.0 <= lambda_propose <= 1.0):
110
+ raise SchemaError("lambda_propose must be in [0, 1]")
111
+ total = lambda_propose * r_propose + r_solve
112
+ return {
113
+ "total": round(total, 4),
114
+ "r_propose": r_propose,
115
+ "r_solve": r_solve,
116
+ "ok": True,
117
+ "note": "abszero abszero_joint_objective",
118
+ }
119
+
120
+
121
+ def executor_verify_gate(
122
+ *,
123
+ task_valid: bool,
124
+ answer_match: bool,
125
+ ) -> dict[str, Any]:
126
+ """Environment as unified verifier for propose+solve."""
127
+ return {
128
+ "accept_pair": task_valid and answer_match,
129
+ "task_valid": task_valid,
130
+ "answer_match": answer_match,
131
+ "apply": False,
132
+ "ok": True,
133
+ "note": "abszero executor_verify_gate",
134
+ }