@agentikos/omega-os 0.1.0 → 0.19.5

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 (379) hide show
  1. package/README.md +56 -14
  2. package/bootstrap/lib/__pycache__/claude-code-settings.cpython-313.pyc +0 -0
  3. package/bootstrap/lib/__pycache__/llm-clis.cpython-313.pyc +0 -0
  4. package/bootstrap/lib/__pycache__/manifest-helpers.cpython-313.pyc +0 -0
  5. package/bootstrap/lib/claude-code-settings.py +176 -0
  6. package/bootstrap/lib/common.sh +457 -1
  7. package/bootstrap/lib/llm-clis.py +341 -0
  8. package/bootstrap/lib/manifest-helpers.py +384 -0
  9. package/bootstrap/lib/steps.sh +1000 -26
  10. package/bootstrap/manifest.example.yaml +93 -2
  11. package/bootstrap/templates/aisb/CLAUDE.md +305 -0
  12. package/bootstrap/templates/aisb/architect.md +204 -0
  13. package/bootstrap/templates/aisb/checkers/CLAUDE.md +9 -0
  14. package/bootstrap/templates/aisb/checkers/checker-architect.md +151 -0
  15. package/bootstrap/templates/aisb/checkers/checker-common.md +171 -0
  16. package/bootstrap/templates/aisb/checkers/checker-construct.md +129 -0
  17. package/bootstrap/templates/aisb/checkers/checker-keymaker.md +204 -0
  18. package/bootstrap/templates/aisb/checkers/checker-link.md +205 -0
  19. package/bootstrap/templates/aisb/checkers/checker-merovingian.md +219 -0
  20. package/bootstrap/templates/aisb/checkers/checker-morpheus.md +211 -0
  21. package/bootstrap/templates/aisb/checkers/checker-neo.md +177 -0
  22. package/bootstrap/templates/aisb/checkers/checker-niobe.md +156 -0
  23. package/bootstrap/templates/aisb/checkers/checker-oracle.md +164 -0
  24. package/bootstrap/templates/aisb/checkers/checker-seraph.md +187 -0
  25. package/bootstrap/templates/aisb/checkers/checker-smith.md +195 -0
  26. package/bootstrap/templates/aisb/checkers/checker-zion.md +113 -0
  27. package/bootstrap/templates/aisb/construct.md +135 -0
  28. package/bootstrap/templates/aisb/keymaker.md +227 -0
  29. package/bootstrap/templates/aisb/link.md +170 -0
  30. package/bootstrap/templates/aisb/lmc-protocol.md +57 -0
  31. package/bootstrap/templates/aisb/merovingian.md +159 -0
  32. package/bootstrap/templates/aisb/morpheus.md +243 -0
  33. package/bootstrap/templates/aisb/neo.md +147 -0
  34. package/bootstrap/templates/aisb/niobe.md +197 -0
  35. package/bootstrap/templates/aisb/oracle.md +244 -0
  36. package/bootstrap/templates/aisb/protocols/handoff-templates.md +204 -0
  37. package/bootstrap/templates/aisb/protocols/shared-protocol.md +248 -0
  38. package/bootstrap/templates/aisb/pythia.md +153 -0
  39. package/bootstrap/templates/aisb/seraph.md +315 -0
  40. package/bootstrap/templates/aisb/smith.md +202 -0
  41. package/bootstrap/templates/aisb/zion.md +172 -0
  42. package/bootstrap/templates/autonomous/audit-patrol.yaml +41 -0
  43. package/bootstrap/templates/autonomous/smith-reflect.yaml +43 -0
  44. package/bootstrap/templates/autonomous/ssh-key-rotate.yaml +46 -0
  45. package/bootstrap/templates/autonomous/support-agent.yaml +38 -0
  46. package/docs/AUDITS.md +85 -0
  47. package/docs/COMPLETION-PLAN.md +48 -0
  48. package/docs/GAP-ANALYSIS.md +214 -0
  49. package/docs/INSTALL.md +47 -9
  50. package/docs/MCP-AND-PLUGINS.md +31 -4
  51. package/docs/SIMULATION.md +171 -0
  52. package/docs/simulate.sh +211 -0
  53. package/install.sh +164 -17
  54. package/omega/Agentik_Engine/README.md +27 -10
  55. package/omega/Agentik_Engine/omega_engine/__init__.py +212 -2
  56. package/omega/Agentik_Engine/omega_engine/__pycache__/__init__.cpython-313.pyc +0 -0
  57. package/omega/Agentik_Engine/omega_engine/__pycache__/account.cpython-313.pyc +0 -0
  58. package/omega/Agentik_Engine/omega_engine/__pycache__/agent_messages.cpython-313.pyc +0 -0
  59. package/omega/Agentik_Engine/omega_engine/__pycache__/aisb_chat.cpython-313.pyc +0 -0
  60. package/omega/Agentik_Engine/omega_engine/__pycache__/audit_diff.cpython-313.pyc +0 -0
  61. package/omega/Agentik_Engine/omega_engine/__pycache__/audit_gate.cpython-313.pyc +0 -0
  62. package/omega/Agentik_Engine/omega_engine/__pycache__/auto_update.cpython-313.pyc +0 -0
  63. package/omega/Agentik_Engine/omega_engine/__pycache__/autonomous.cpython-313.pyc +0 -0
  64. package/omega/Agentik_Engine/omega_engine/__pycache__/backup.cpython-313.pyc +0 -0
  65. package/omega/Agentik_Engine/omega_engine/__pycache__/cadence.cpython-313.pyc +0 -0
  66. package/omega/Agentik_Engine/omega_engine/__pycache__/classifier.cpython-313.pyc +0 -0
  67. package/omega/Agentik_Engine/omega_engine/__pycache__/cleanup.cpython-313.pyc +0 -0
  68. package/omega/Agentik_Engine/omega_engine/__pycache__/cli.cpython-313.pyc +0 -0
  69. package/omega/Agentik_Engine/omega_engine/__pycache__/completions.cpython-313.pyc +0 -0
  70. package/omega/Agentik_Engine/omega_engine/__pycache__/costs.cpython-313.pyc +0 -0
  71. package/omega/Agentik_Engine/omega_engine/__pycache__/done_signal.cpython-313.pyc +0 -0
  72. package/omega/Agentik_Engine/omega_engine/__pycache__/envelope.cpython-313.pyc +0 -0
  73. package/omega/Agentik_Engine/omega_engine/__pycache__/executor.cpython-313.pyc +0 -0
  74. package/omega/Agentik_Engine/omega_engine/__pycache__/handoff.cpython-313.pyc +0 -0
  75. package/omega/Agentik_Engine/omega_engine/__pycache__/hermes.cpython-313.pyc +0 -0
  76. package/omega/Agentik_Engine/omega_engine/__pycache__/hermes_bootstrap.cpython-313.pyc +0 -0
  77. package/omega/Agentik_Engine/omega_engine/__pycache__/hermes_desktop.cpython-313.pyc +0 -0
  78. package/omega/Agentik_Engine/omega_engine/__pycache__/learning.cpython-313.pyc +0 -0
  79. package/omega/Agentik_Engine/omega_engine/__pycache__/managed_agent.cpython-313.pyc +0 -0
  80. package/omega/Agentik_Engine/omega_engine/__pycache__/memory.cpython-313.pyc +0 -0
  81. package/omega/Agentik_Engine/omega_engine/__pycache__/menu.cpython-313.pyc +0 -0
  82. package/omega/Agentik_Engine/omega_engine/__pycache__/mission.cpython-313.pyc +0 -0
  83. package/omega/Agentik_Engine/omega_engine/__pycache__/plan.cpython-313.pyc +0 -0
  84. package/omega/Agentik_Engine/omega_engine/__pycache__/project.cpython-313.pyc +0 -0
  85. package/omega/Agentik_Engine/omega_engine/__pycache__/prompts.cpython-313.pyc +0 -0
  86. package/omega/Agentik_Engine/omega_engine/__pycache__/provider.cpython-313.pyc +0 -0
  87. package/omega/Agentik_Engine/omega_engine/__pycache__/prune.cpython-313.pyc +0 -0
  88. package/omega/Agentik_Engine/omega_engine/__pycache__/pursue.cpython-313.pyc +0 -0
  89. package/omega/Agentik_Engine/omega_engine/__pycache__/reducer.cpython-313.pyc +0 -0
  90. package/omega/Agentik_Engine/omega_engine/__pycache__/router.cpython-313.pyc +0 -0
  91. package/omega/Agentik_Engine/omega_engine/__pycache__/skill_routing.cpython-313.pyc +0 -0
  92. package/omega/Agentik_Engine/omega_engine/__pycache__/smoke.cpython-313.pyc +0 -0
  93. package/omega/Agentik_Engine/omega_engine/__pycache__/store.cpython-313.pyc +0 -0
  94. package/omega/Agentik_Engine/omega_engine/__pycache__/sync.cpython-313.pyc +0 -0
  95. package/omega/Agentik_Engine/omega_engine/__pycache__/telegram_history.cpython-313.pyc +0 -0
  96. package/omega/Agentik_Engine/omega_engine/__pycache__/tmux.cpython-313.pyc +0 -0
  97. package/omega/Agentik_Engine/omega_engine/__pycache__/tools.cpython-313.pyc +0 -0
  98. package/omega/Agentik_Engine/omega_engine/__pycache__/understand_anything.cpython-313.pyc +0 -0
  99. package/omega/Agentik_Engine/omega_engine/__pycache__/updater.cpython-313.pyc +0 -0
  100. package/omega/Agentik_Engine/omega_engine/__pycache__/validate.cpython-313.pyc +0 -0
  101. package/omega/Agentik_Engine/omega_engine/__pycache__/vault.cpython-313.pyc +0 -0
  102. package/omega/Agentik_Engine/omega_engine/__pycache__/webhooks.cpython-313.pyc +0 -0
  103. package/omega/Agentik_Engine/omega_engine/__pycache__/worker.cpython-313.pyc +0 -0
  104. package/omega/Agentik_Engine/omega_engine/account.py +502 -0
  105. package/omega/Agentik_Engine/omega_engine/agent_messages.py +167 -0
  106. package/omega/Agentik_Engine/omega_engine/aisb_chat.py +128 -0
  107. package/omega/Agentik_Engine/omega_engine/audit_diff.py +99 -0
  108. package/omega/Agentik_Engine/omega_engine/audit_gate.py +149 -0
  109. package/omega/Agentik_Engine/omega_engine/audits/__init__.py +60 -0
  110. package/omega/Agentik_Engine/omega_engine/audits/__pycache__/__init__.cpython-313.pyc +0 -0
  111. package/omega/Agentik_Engine/omega_engine/audits/__pycache__/batcher.cpython-313.pyc +0 -0
  112. package/omega/Agentik_Engine/omega_engine/audits/__pycache__/dispatcher.cpython-313.pyc +0 -0
  113. package/omega/Agentik_Engine/omega_engine/audits/__pycache__/generator.cpython-313.pyc +0 -0
  114. package/omega/Agentik_Engine/omega_engine/audits/__pycache__/history.cpython-313.pyc +0 -0
  115. package/omega/Agentik_Engine/omega_engine/audits/__pycache__/pipeline.cpython-313.pyc +0 -0
  116. package/omega/Agentik_Engine/omega_engine/audits/batcher.py +218 -0
  117. package/omega/Agentik_Engine/omega_engine/audits/dispatcher.py +92 -0
  118. package/omega/Agentik_Engine/omega_engine/audits/generator.py +234 -0
  119. package/omega/Agentik_Engine/omega_engine/audits/history.py +168 -0
  120. package/omega/Agentik_Engine/omega_engine/audits/pipeline.py +198 -0
  121. package/omega/Agentik_Engine/omega_engine/auto_update.py +339 -0
  122. package/omega/Agentik_Engine/omega_engine/autonomous.py +538 -0
  123. package/omega/Agentik_Engine/omega_engine/backup.py +215 -0
  124. package/omega/Agentik_Engine/omega_engine/cadence.py +158 -0
  125. package/omega/Agentik_Engine/omega_engine/classifier.py +215 -0
  126. package/omega/Agentik_Engine/omega_engine/cleanup.py +673 -0
  127. package/omega/Agentik_Engine/omega_engine/cli.py +4564 -56
  128. package/omega/Agentik_Engine/omega_engine/completions.py +260 -0
  129. package/omega/Agentik_Engine/omega_engine/costs.py +100 -0
  130. package/omega/Agentik_Engine/omega_engine/daemons/__init__.py +14 -0
  131. package/omega/Agentik_Engine/omega_engine/daemons/__pycache__/__init__.cpython-313.pyc +0 -0
  132. package/omega/Agentik_Engine/omega_engine/daemons/__pycache__/autonomous.cpython-313.pyc +0 -0
  133. package/omega/Agentik_Engine/omega_engine/daemons/__pycache__/engine.cpython-313.pyc +0 -0
  134. package/omega/Agentik_Engine/omega_engine/daemons/__pycache__/telegram.cpython-313.pyc +0 -0
  135. package/omega/Agentik_Engine/omega_engine/daemons/autonomous.py +56 -0
  136. package/omega/Agentik_Engine/omega_engine/daemons/engine.py +236 -0
  137. package/omega/Agentik_Engine/omega_engine/daemons/telegram.py +315 -0
  138. package/omega/Agentik_Engine/omega_engine/done_signal.py +154 -0
  139. package/omega/Agentik_Engine/omega_engine/educators/__init__.py +51 -0
  140. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/__init__.cpython-313.pyc +0 -0
  141. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/artifact.cpython-313.pyc +0 -0
  142. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/automation.cpython-313.pyc +0 -0
  143. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/base.cpython-313.pyc +0 -0
  144. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/claudecode.cpython-313.pyc +0 -0
  145. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/connection.cpython-313.pyc +0 -0
  146. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/coworker.cpython-313.pyc +0 -0
  147. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/loop.cpython-313.pyc +0 -0
  148. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/prompt.cpython-313.pyc +0 -0
  149. package/omega/Agentik_Engine/omega_engine/educators/__pycache__/skill.cpython-313.pyc +0 -0
  150. package/omega/Agentik_Engine/omega_engine/educators/artifact.py +65 -0
  151. package/omega/Agentik_Engine/omega_engine/educators/automation.py +76 -0
  152. package/omega/Agentik_Engine/omega_engine/educators/base.py +327 -0
  153. package/omega/Agentik_Engine/omega_engine/educators/claudecode.py +71 -0
  154. package/omega/Agentik_Engine/omega_engine/educators/connection.py +75 -0
  155. package/omega/Agentik_Engine/omega_engine/educators/coworker.py +68 -0
  156. package/omega/Agentik_Engine/omega_engine/educators/loop.py +82 -0
  157. package/omega/Agentik_Engine/omega_engine/educators/prompt.py +68 -0
  158. package/omega/Agentik_Engine/omega_engine/educators/skill.py +69 -0
  159. package/omega/Agentik_Engine/omega_engine/envelope.py +219 -0
  160. package/omega/Agentik_Engine/omega_engine/executor.py +195 -16
  161. package/omega/Agentik_Engine/omega_engine/genesis/__init__.py +134 -0
  162. package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/__init__.cpython-313.pyc +0 -0
  163. package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/orchestrator.cpython-313.pyc +0 -0
  164. package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/phases.cpython-313.pyc +0 -0
  165. package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/stack.cpython-313.pyc +0 -0
  166. package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/state.cpython-313.pyc +0 -0
  167. package/omega/Agentik_Engine/omega_engine/genesis/orchestrator.py +262 -0
  168. package/omega/Agentik_Engine/omega_engine/genesis/phases.py +950 -0
  169. package/omega/Agentik_Engine/omega_engine/genesis/stack.py +324 -0
  170. package/omega/Agentik_Engine/omega_engine/genesis/state.py +353 -0
  171. package/omega/Agentik_Engine/omega_engine/handoff.py +459 -0
  172. package/omega/Agentik_Engine/omega_engine/hermes.py +426 -0
  173. package/omega/Agentik_Engine/omega_engine/hermes_bootstrap.py +382 -0
  174. package/omega/Agentik_Engine/omega_engine/hermes_desktop.py +469 -0
  175. package/omega/Agentik_Engine/omega_engine/integrations/__init__.py +30 -0
  176. package/omega/Agentik_Engine/omega_engine/integrations/__pycache__/__init__.cpython-313.pyc +0 -0
  177. package/omega/Agentik_Engine/omega_engine/integrations/__pycache__/graphify.cpython-313.pyc +0 -0
  178. package/omega/Agentik_Engine/omega_engine/integrations/graphify.py +234 -0
  179. package/omega/Agentik_Engine/omega_engine/learning.py +268 -0
  180. package/omega/Agentik_Engine/omega_engine/managed_agent.py +467 -0
  181. package/omega/Agentik_Engine/omega_engine/memory.py +271 -0
  182. package/omega/Agentik_Engine/omega_engine/menu.py +1065 -0
  183. package/omega/Agentik_Engine/omega_engine/migrations/__init__.py +144 -0
  184. package/omega/Agentik_Engine/omega_engine/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
  185. package/omega/Agentik_Engine/omega_engine/migrations/__pycache__/v0_14_0.cpython-313.pyc +0 -0
  186. package/omega/Agentik_Engine/omega_engine/migrations/v0_14_0.py +29 -0
  187. package/omega/Agentik_Engine/omega_engine/mission.py +29 -14
  188. package/omega/Agentik_Engine/omega_engine/plan.py +846 -0
  189. package/omega/Agentik_Engine/omega_engine/prompts.py +158 -0
  190. package/omega/Agentik_Engine/omega_engine/provider.py +408 -13
  191. package/omega/Agentik_Engine/omega_engine/prune.py +151 -0
  192. package/omega/Agentik_Engine/omega_engine/pursue.py +205 -0
  193. package/omega/Agentik_Engine/omega_engine/rag/__init__.py +21 -0
  194. package/omega/Agentik_Engine/omega_engine/rag/__pycache__/__init__.cpython-313.pyc +0 -0
  195. package/omega/Agentik_Engine/omega_engine/rag/__pycache__/agentic.cpython-313.pyc +0 -0
  196. package/omega/Agentik_Engine/omega_engine/rag/__pycache__/base.cpython-313.pyc +0 -0
  197. package/omega/Agentik_Engine/omega_engine/rag/__pycache__/corrective.cpython-313.pyc +0 -0
  198. package/omega/Agentik_Engine/omega_engine/rag/__pycache__/graph.cpython-313.pyc +0 -0
  199. package/omega/Agentik_Engine/omega_engine/rag/__pycache__/hybrid.cpython-313.pyc +0 -0
  200. package/omega/Agentik_Engine/omega_engine/rag/__pycache__/multimodal.cpython-313.pyc +0 -0
  201. package/omega/Agentik_Engine/omega_engine/rag/__pycache__/router.cpython-313.pyc +0 -0
  202. package/omega/Agentik_Engine/omega_engine/rag/agentic.py +83 -0
  203. package/omega/Agentik_Engine/omega_engine/rag/base.py +42 -0
  204. package/omega/Agentik_Engine/omega_engine/rag/corrective.py +119 -0
  205. package/omega/Agentik_Engine/omega_engine/rag/graph.py +169 -0
  206. package/omega/Agentik_Engine/omega_engine/rag/hybrid.py +205 -0
  207. package/omega/Agentik_Engine/omega_engine/rag/multimodal.py +136 -0
  208. package/omega/Agentik_Engine/omega_engine/rag/router.py +110 -0
  209. package/omega/Agentik_Engine/omega_engine/reducer.py +21 -3
  210. package/omega/Agentik_Engine/omega_engine/router.py +28 -0
  211. package/omega/Agentik_Engine/omega_engine/skill_discovery/__init__.py +48 -0
  212. package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/__init__.cpython-313.pyc +0 -0
  213. package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/auditor.cpython-313.pyc +0 -0
  214. package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/finder.cpython-313.pyc +0 -0
  215. package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/installer.cpython-313.pyc +0 -0
  216. package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/marketplaces.cpython-313.pyc +0 -0
  217. package/omega/Agentik_Engine/omega_engine/skill_discovery/auditor.py +232 -0
  218. package/omega/Agentik_Engine/omega_engine/skill_discovery/finder.py +94 -0
  219. package/omega/Agentik_Engine/omega_engine/skill_discovery/installer.py +129 -0
  220. package/omega/Agentik_Engine/omega_engine/skill_discovery/marketplaces.py +80 -0
  221. package/omega/Agentik_Engine/omega_engine/skill_routing.py +388 -0
  222. package/omega/Agentik_Engine/omega_engine/smoke.py +81 -0
  223. package/omega/Agentik_Engine/omega_engine/store.py +132 -25
  224. package/omega/Agentik_Engine/omega_engine/sync.py +445 -0
  225. package/omega/Agentik_Engine/omega_engine/telegram_history.py +260 -0
  226. package/omega/Agentik_Engine/omega_engine/tmux.py +526 -0
  227. package/omega/Agentik_Engine/omega_engine/tools.py +272 -0
  228. package/omega/Agentik_Engine/omega_engine/understand_anything.py +275 -0
  229. package/omega/Agentik_Engine/omega_engine/updater.py +70 -0
  230. package/omega/Agentik_Engine/omega_engine/validate.py +186 -0
  231. package/omega/Agentik_Engine/omega_engine/vault.py +342 -0
  232. package/omega/Agentik_Engine/omega_engine/webhooks.py +262 -0
  233. package/omega/Agentik_Engine/omega_engine/worker.py +526 -0
  234. package/omega/Agentik_Engine/pyproject.toml +1 -1
  235. package/omega/Agentik_Engine/tests/__pycache__/test_account.cpython-313-pytest-8.4.2.pyc +0 -0
  236. package/omega/Agentik_Engine/tests/__pycache__/test_account.cpython-313.pyc +0 -0
  237. package/omega/Agentik_Engine/tests/__pycache__/test_adversarial.cpython-313-pytest-8.4.2.pyc +0 -0
  238. package/omega/Agentik_Engine/tests/__pycache__/test_adversarial.cpython-313.pyc +0 -0
  239. package/omega/Agentik_Engine/tests/__pycache__/test_agents_envelope.cpython-313-pytest-8.4.2.pyc +0 -0
  240. package/omega/Agentik_Engine/tests/__pycache__/test_agents_envelope.cpython-313.pyc +0 -0
  241. package/omega/Agentik_Engine/tests/__pycache__/test_audit_arsenal.cpython-313-pytest-8.4.2.pyc +0 -0
  242. package/omega/Agentik_Engine/tests/__pycache__/test_audits_pipeline.cpython-313-pytest-8.4.2.pyc +0 -0
  243. package/omega/Agentik_Engine/tests/__pycache__/test_audits_pipeline.cpython-313.pyc +0 -0
  244. package/omega/Agentik_Engine/tests/__pycache__/test_auto_update_and_migrations.cpython-313-pytest-8.4.2.pyc +0 -0
  245. package/omega/Agentik_Engine/tests/__pycache__/test_auto_update_and_migrations.cpython-313.pyc +0 -0
  246. package/omega/Agentik_Engine/tests/__pycache__/test_autonomous.cpython-313-pytest-8.4.2.pyc +0 -0
  247. package/omega/Agentik_Engine/tests/__pycache__/test_autonomous.cpython-313.pyc +0 -0
  248. package/omega/Agentik_Engine/tests/__pycache__/test_educators.cpython-313-pytest-8.4.2.pyc +0 -0
  249. package/omega/Agentik_Engine/tests/__pycache__/test_educators.cpython-313.pyc +0 -0
  250. package/omega/Agentik_Engine/tests/__pycache__/test_executor.cpython-313-pytest-8.4.2.pyc +0 -0
  251. package/omega/Agentik_Engine/tests/__pycache__/test_genesis_and_plan.cpython-313-pytest-8.4.2.pyc +0 -0
  252. package/omega/Agentik_Engine/tests/__pycache__/test_genesis_and_plan.cpython-313.pyc +0 -0
  253. package/omega/Agentik_Engine/tests/__pycache__/test_graphify.cpython-313-pytest-8.4.2.pyc +0 -0
  254. package/omega/Agentik_Engine/tests/__pycache__/test_graphify.cpython-313.pyc +0 -0
  255. package/omega/Agentik_Engine/tests/__pycache__/test_handoff.cpython-313-pytest-8.4.2.pyc +0 -0
  256. package/omega/Agentik_Engine/tests/__pycache__/test_handoff.cpython-313.pyc +0 -0
  257. package/omega/Agentik_Engine/tests/__pycache__/test_hermes_and_ua.cpython-313-pytest-8.4.2.pyc +0 -0
  258. package/omega/Agentik_Engine/tests/__pycache__/test_hermes_and_ua.cpython-313.pyc +0 -0
  259. package/omega/Agentik_Engine/tests/__pycache__/test_hermes_bootstrap_and_desktop.cpython-313-pytest-8.4.2.pyc +0 -0
  260. package/omega/Agentik_Engine/tests/__pycache__/test_hermes_bootstrap_and_desktop.cpython-313.pyc +0 -0
  261. package/omega/Agentik_Engine/tests/__pycache__/test_install_steps.cpython-313-pytest-8.4.2.pyc +0 -0
  262. package/omega/Agentik_Engine/tests/__pycache__/test_install_steps.cpython-313.pyc +0 -0
  263. package/omega/Agentik_Engine/tests/__pycache__/test_install_ux.cpython-313-pytest-8.4.2.pyc +0 -0
  264. package/omega/Agentik_Engine/tests/__pycache__/test_install_ux.cpython-313.pyc +0 -0
  265. package/omega/Agentik_Engine/tests/__pycache__/test_installer_wiring.cpython-313-pytest-8.4.2.pyc +0 -0
  266. package/omega/Agentik_Engine/tests/__pycache__/test_installer_wiring.cpython-313.pyc +0 -0
  267. package/omega/Agentik_Engine/tests/__pycache__/test_intelligence.cpython-313-pytest-8.4.2.pyc +0 -0
  268. package/omega/Agentik_Engine/tests/__pycache__/test_intelligence.cpython-313.pyc +0 -0
  269. package/omega/Agentik_Engine/tests/__pycache__/test_llm_clis_and_uninstall.cpython-313-pytest-8.4.2.pyc +0 -0
  270. package/omega/Agentik_Engine/tests/__pycache__/test_llm_clis_and_uninstall.cpython-313.pyc +0 -0
  271. package/omega/Agentik_Engine/tests/__pycache__/test_managed_agent.cpython-313-pytest-8.4.2.pyc +0 -0
  272. package/omega/Agentik_Engine/tests/__pycache__/test_managed_agent.cpython-313.pyc +0 -0
  273. package/omega/Agentik_Engine/tests/__pycache__/test_max_provider_and_menu.cpython-313-pytest-8.4.2.pyc +0 -0
  274. package/omega/Agentik_Engine/tests/__pycache__/test_max_provider_and_menu.cpython-313.pyc +0 -0
  275. package/omega/Agentik_Engine/tests/__pycache__/test_menu_coverage.cpython-313-pytest-8.4.2.pyc +0 -0
  276. package/omega/Agentik_Engine/tests/__pycache__/test_menu_coverage.cpython-313.pyc +0 -0
  277. package/omega/Agentik_Engine/tests/__pycache__/test_mission.cpython-313-pytest-8.4.2.pyc +0 -0
  278. package/omega/Agentik_Engine/tests/__pycache__/test_progress.cpython-313-pytest-8.4.2.pyc +0 -0
  279. package/omega/Agentik_Engine/tests/__pycache__/test_project.cpython-313-pytest-8.4.2.pyc +0 -0
  280. package/omega/Agentik_Engine/tests/__pycache__/test_pursue_cadence.cpython-313-pytest-8.4.2.pyc +0 -0
  281. package/omega/Agentik_Engine/tests/__pycache__/test_pursue_cadence.cpython-313.pyc +0 -0
  282. package/omega/Agentik_Engine/tests/__pycache__/test_rag.cpython-313-pytest-8.4.2.pyc +0 -0
  283. package/omega/Agentik_Engine/tests/__pycache__/test_rag.cpython-313.pyc +0 -0
  284. package/omega/Agentik_Engine/tests/__pycache__/test_reducer.cpython-313-pytest-8.4.2.pyc +0 -0
  285. package/omega/Agentik_Engine/tests/__pycache__/test_report.cpython-313-pytest-8.4.2.pyc +0 -0
  286. package/omega/Agentik_Engine/tests/__pycache__/test_role_aliases_and_ssot.cpython-313-pytest-8.4.2.pyc +0 -0
  287. package/omega/Agentik_Engine/tests/__pycache__/test_role_aliases_and_ssot.cpython-313.pyc +0 -0
  288. package/omega/Agentik_Engine/tests/__pycache__/test_skill_discovery_and_gate.cpython-313-pytest-8.4.2.pyc +0 -0
  289. package/omega/Agentik_Engine/tests/__pycache__/test_skill_discovery_and_gate.cpython-313.pyc +0 -0
  290. package/omega/Agentik_Engine/tests/__pycache__/test_skill_power.cpython-313-pytest-8.4.2.pyc +0 -0
  291. package/omega/Agentik_Engine/tests/__pycache__/test_skill_power.cpython-313.pyc +0 -0
  292. package/omega/Agentik_Engine/tests/__pycache__/test_skill_routing.cpython-313-pytest-8.4.2.pyc +0 -0
  293. package/omega/Agentik_Engine/tests/__pycache__/test_skill_routing.cpython-313.pyc +0 -0
  294. package/omega/Agentik_Engine/tests/__pycache__/test_snapshot_partial.cpython-313-pytest-8.4.2.pyc +0 -0
  295. package/omega/Agentik_Engine/tests/__pycache__/test_snapshot_partial.cpython-313.pyc +0 -0
  296. package/omega/Agentik_Engine/tests/__pycache__/test_telegram_history.cpython-313-pytest-8.4.2.pyc +0 -0
  297. package/omega/Agentik_Engine/tests/__pycache__/test_telegram_history.cpython-313.pyc +0 -0
  298. package/omega/Agentik_Engine/tests/__pycache__/test_tmux_and_aisb_chat.cpython-313-pytest-8.4.2.pyc +0 -0
  299. package/omega/Agentik_Engine/tests/__pycache__/test_tmux_and_aisb_chat.cpython-313.pyc +0 -0
  300. package/omega/Agentik_Engine/tests/__pycache__/test_tools_and_sync.cpython-313-pytest-8.4.2.pyc +0 -0
  301. package/omega/Agentik_Engine/tests/__pycache__/test_tools_and_sync.cpython-313.pyc +0 -0
  302. package/omega/Agentik_Engine/tests/__pycache__/test_v06_features.cpython-313-pytest-8.4.2.pyc +0 -0
  303. package/omega/Agentik_Engine/tests/__pycache__/test_v06_features.cpython-313.pyc +0 -0
  304. package/omega/Agentik_Engine/tests/__pycache__/test_vault.cpython-313-pytest-8.4.2.pyc +0 -0
  305. package/omega/Agentik_Engine/tests/__pycache__/test_vault.cpython-313.pyc +0 -0
  306. package/omega/Agentik_Engine/tests/__pycache__/test_webhooks_and_readiness.cpython-313-pytest-8.4.2.pyc +0 -0
  307. package/omega/Agentik_Engine/tests/__pycache__/test_webhooks_and_readiness.cpython-313.pyc +0 -0
  308. package/omega/Agentik_Engine/tests/__pycache__/test_worker_and_cleanup.cpython-313-pytest-8.4.2.pyc +0 -0
  309. package/omega/Agentik_Engine/tests/__pycache__/test_worker_and_cleanup.cpython-313.pyc +0 -0
  310. package/omega/Agentik_Engine/tests/test_account.py +338 -0
  311. package/omega/Agentik_Engine/tests/test_adversarial.py +351 -0
  312. package/omega/Agentik_Engine/tests/test_agents_envelope.py +274 -0
  313. package/omega/Agentik_Engine/tests/test_audits_pipeline.py +348 -0
  314. package/omega/Agentik_Engine/tests/test_auto_update_and_migrations.py +394 -0
  315. package/omega/Agentik_Engine/tests/test_autonomous.py +361 -0
  316. package/omega/Agentik_Engine/tests/test_educators.py +233 -0
  317. package/omega/Agentik_Engine/tests/test_genesis_and_plan.py +573 -0
  318. package/omega/Agentik_Engine/tests/test_graphify.py +190 -0
  319. package/omega/Agentik_Engine/tests/test_handoff.py +311 -0
  320. package/omega/Agentik_Engine/tests/test_hermes_and_ua.py +387 -0
  321. package/omega/Agentik_Engine/tests/test_hermes_bootstrap_and_desktop.py +358 -0
  322. package/omega/Agentik_Engine/tests/test_install_steps.py +359 -0
  323. package/omega/Agentik_Engine/tests/test_install_ux.py +151 -0
  324. package/omega/Agentik_Engine/tests/test_installer_wiring.py +496 -0
  325. package/omega/Agentik_Engine/tests/test_intelligence.py +285 -0
  326. package/omega/Agentik_Engine/tests/test_llm_clis_and_uninstall.py +228 -0
  327. package/omega/Agentik_Engine/tests/test_managed_agent.py +363 -0
  328. package/omega/Agentik_Engine/tests/test_max_provider_and_menu.py +231 -0
  329. package/omega/Agentik_Engine/tests/test_menu_coverage.py +72 -0
  330. package/omega/Agentik_Engine/tests/test_pursue_cadence.py +217 -0
  331. package/omega/Agentik_Engine/tests/test_rag.py +287 -0
  332. package/omega/Agentik_Engine/tests/test_role_aliases_and_ssot.py +207 -0
  333. package/omega/Agentik_Engine/tests/test_skill_discovery_and_gate.py +337 -0
  334. package/omega/Agentik_Engine/tests/test_skill_power.py +259 -0
  335. package/omega/Agentik_Engine/tests/test_skill_routing.py +189 -0
  336. package/omega/Agentik_Engine/tests/test_snapshot_partial.py +172 -0
  337. package/omega/Agentik_Engine/tests/test_telegram_history.py +209 -0
  338. package/omega/Agentik_Engine/tests/test_tmux_and_aisb_chat.py +223 -0
  339. package/omega/Agentik_Engine/tests/test_tools_and_sync.py +312 -0
  340. package/omega/Agentik_Engine/tests/test_v06_features.py +370 -0
  341. package/omega/Agentik_Engine/tests/test_vault.py +173 -0
  342. package/omega/Agentik_Engine/tests/test_webhooks_and_readiness.py +277 -0
  343. package/omega/Agentik_Engine/tests/test_worker_and_cleanup.py +541 -0
  344. package/omega/Agentik_Extra/etc/secrets/.vault-key +3 -0
  345. package/omega/Agentik_Extra/etc/secrets/.vault-pub +1 -0
  346. package/omega/Agentik_Runtime/audits.db +0 -0
  347. package/omega/Agentik_SSOT/VERSION +1 -1
  348. package/omega/Agentik_SSOT/claude-plugins/claude-plugins.yaml +100 -0
  349. package/omega/Agentik_SSOT/docs/LAYERS.md +90 -0
  350. package/omega/Agentik_SSOT/docs/USER-JOURNEY.md +283 -0
  351. package/omega/Agentik_SSOT/marketplaces/design-discipline.yaml +86 -0
  352. package/omega/Agentik_SSOT/skills/a11yaudit/SKILL.md +161 -0
  353. package/omega/Agentik_SSOT/skills/apiaudit/SKILL.md +157 -0
  354. package/omega/Agentik_SSOT/skills/automationaudit/SKILL.md +161 -0
  355. package/omega/Agentik_SSOT/skills/cadence/SKILL.md +76 -0
  356. package/omega/Agentik_SSOT/skills/codeaudit/SKILL.md +153 -0
  357. package/omega/Agentik_SSOT/skills/copyaudit/SKILL.md +161 -0
  358. package/omega/Agentik_SSOT/skills/dataaudit/SKILL.md +157 -0
  359. package/omega/Agentik_SSOT/skills/debugaudit/SKILL.md +161 -0
  360. package/omega/Agentik_SSOT/skills/dispatch/SKILL.md +79 -0
  361. package/omega/Agentik_SSOT/skills/dxaudit/SKILL.md +161 -0
  362. package/omega/Agentik_SSOT/skills/featureaudit/SKILL.md +161 -0
  363. package/omega/Agentik_SSOT/skills/flowaudit/SKILL.md +165 -0
  364. package/omega/Agentik_SSOT/skills/genesis/SKILL.md +116 -0
  365. package/omega/Agentik_SSOT/skills/handoff/SKILL.md +117 -0
  366. package/omega/Agentik_SSOT/skills/logicaudit/SKILL.md +165 -0
  367. package/omega/Agentik_SSOT/skills/motionaudit/SKILL.md +165 -0
  368. package/omega/Agentik_SSOT/skills/perfaudit/SKILL.md +161 -0
  369. package/omega/Agentik_SSOT/skills/plan/SKILL.md +127 -0
  370. package/omega/Agentik_SSOT/skills/pursue/SKILL.md +68 -0
  371. package/omega/Agentik_SSOT/skills/rag-route.md +82 -0
  372. package/omega/Agentik_SSOT/skills/refontaudit/SKILL.md +165 -0
  373. package/omega/Agentik_SSOT/skills/retentionaudit/SKILL.md +165 -0
  374. package/omega/Agentik_SSOT/skills/secaudit/SKILL.md +157 -0
  375. package/omega/Agentik_SSOT/skills/seoaudit/SKILL.md +161 -0
  376. package/omega/Agentik_SSOT/skills/skill-auditor/SKILL.md +83 -0
  377. package/omega/Agentik_SSOT/skills/skill-finder/SKILL.md +116 -0
  378. package/omega/Agentik_SSOT/skills/uiuxaudit/SKILL.md +165 -0
  379. package/package.json +2 -2
@@ -0,0 +1,204 @@
1
+ # AISB Handoff Templates v1.0
2
+
3
+ > Standardized context transfer between agents. Use the appropriate template when passing work.
4
+
5
+ ---
6
+
7
+ ## 1. Standard Handoff
8
+
9
+ Use when passing work from one agent to another.
10
+
11
+ ```
12
+ HANDOFF: Standard
13
+ FROM: [agent name]
14
+ TO: [agent name]
15
+ PHASE: [pipeline phase]
16
+ PRIORITY: [P0-P3]
17
+
18
+ ## Context
19
+ - Current state: [what's been completed]
20
+ - Relevant files: [paths + what they contain]
21
+ - Dependencies: [what this work depends on]
22
+ - Constraints: [technical, timeline, resource]
23
+
24
+ ## Deliverable Request
25
+ [Specific, measurable deliverable expected]
26
+
27
+ ## Acceptance Criteria
28
+ - [ ] [Criterion 1]
29
+ - [ ] [Criterion 2]
30
+
31
+ ## Quality Expectations
32
+ [What "done" looks like for this task]
33
+ ```
34
+
35
+ ---
36
+
37
+ ## 2. QA PASS
38
+
39
+ Use when SERAPH approves work.
40
+
41
+ ```
42
+ HANDOFF: QA PASS
43
+ FROM: SERAPH
44
+ TO: [requesting agent]
45
+ TASK: [task identifier]
46
+
47
+ ## Verdict: PASS ✅
48
+ Score: [X/100]
49
+ Severity breakdown: [critical: 0, high: 0, medium: N, low: N]
50
+
51
+ ## Evidence
52
+ - [Screenshot/test/log reference for each claim]
53
+
54
+ ## Conditions (if any)
55
+ - [Minor issues accepted with rationale]
56
+
57
+ ## Next Action
58
+ [What happens next — deploy, merge, notify]
59
+ ```
60
+
61
+ ---
62
+
63
+ ## 3. QA FAIL
64
+
65
+ Use when SERAPH rejects work.
66
+
67
+ ```
68
+ HANDOFF: QA FAIL
69
+ FROM: SERAPH
70
+ TO: [developer agent]
71
+ TASK: [task identifier]
72
+ ATTEMPT: [1|2|3] of 3
73
+
74
+ ## Verdict: FAIL ❌
75
+ Score: [X/100]
76
+
77
+ ## Specific Failures
78
+ 1. [Issue]: [exact location + what's wrong + what's expected]
79
+ 2. [Issue]: [exact location + what's wrong + what's expected]
80
+
81
+ ## Fix Priority
82
+ [Which failure to fix first and why]
83
+
84
+ ## Previous Feedback (if retry)
85
+ [What was already reported and whether it was addressed]
86
+ ```
87
+
88
+ ---
89
+
90
+ ## 4. Escalation Report
91
+
92
+ Use when a task exceeds 3 retry attempts or is blocked.
93
+
94
+ ```
95
+ HANDOFF: Escalation
96
+ FROM: [agent name]
97
+ TO: ORACLE
98
+ REASON: [max retries | blocked | out of scope | needs decision]
99
+
100
+ ## Failure History
101
+ - Attempt 1: [what was tried, what failed]
102
+ - Attempt 2: [what was tried, what failed]
103
+ - Attempt 3: [what was tried, what failed]
104
+
105
+ ## Root Cause Analysis
106
+ [Best understanding of why this keeps failing]
107
+
108
+ ## Resolution Options
109
+ 1. Reassign to different specialist
110
+ 2. Decompose into smaller sub-tasks
111
+ 3. Revise approach/architecture
112
+ 4. Accept with documented limitations
113
+ 5. Defer to future sprint
114
+
115
+ ## Recommendation
116
+ [Which option and why]
117
+ ```
118
+
119
+ ---
120
+
121
+ ## 5. Phase Gate
122
+
123
+ Use when transitioning between pipeline phases (PLAN → EXECUTE → AUDIT).
124
+
125
+ ```
126
+ HANDOFF: Phase Gate
127
+ FROM: [completing agent]
128
+ TO: [next phase agent]
129
+ PHASE COMPLETED: [phase name]
130
+ PHASE STARTING: [phase name]
131
+
132
+ ## Deliverables Produced
133
+ - [Artifact 1]: [path + description]
134
+ - [Artifact 2]: [path + description]
135
+
136
+ ## Documents Carried Forward
137
+ - [Doc needed by next phase]
138
+
139
+ ## Quality Evidence
140
+ - [How deliverables were verified]
141
+
142
+ ## Constraints for Next Phase
143
+ - [What the next phase must respect]
144
+
145
+ ## Known Risks
146
+ - [Issues the next phase should watch for]
147
+ ```
148
+
149
+ ---
150
+
151
+ ## 6. Data Pass
152
+
153
+ Use when one agent needs to share findings/data with another without a full handoff.
154
+
155
+ ```
156
+ HANDOFF: Data Pass
157
+ FROM: [agent name]
158
+ TO: [agent name]
159
+ TYPE: [research | findings | config | reference]
160
+
161
+ ## Data
162
+ [The actual data being shared]
163
+
164
+ ## Context
165
+ [Why this data matters to the recipient]
166
+
167
+ ## Action Required
168
+ [What the recipient should do with this — or "FYI only"]
169
+ ```
170
+
171
+ ---
172
+
173
+ ## 7. Incident Report
174
+
175
+ Use for production issues or critical failures discovered during work.
176
+
177
+ ```
178
+ HANDOFF: Incident
179
+ FROM: [discovering agent]
180
+ TO: ORACLE
181
+ SEVERITY: [P0 critical | P1 high | P2 medium]
182
+
183
+ ## What Happened
184
+ [Factual description of the issue]
185
+
186
+ ## Impact
187
+ [What's affected — users, data, systems]
188
+
189
+ ## Immediate Actions Taken
190
+ [What was done to contain/mitigate]
191
+
192
+ ## Root Cause (if known)
193
+ [Best understanding]
194
+
195
+ ## Recommended Fix
196
+ [What should be done]
197
+
198
+ ## Evidence
199
+ [Logs, screenshots, error messages]
200
+ ```
201
+
202
+ ---
203
+
204
+ *Handoff Templates v1.0 — Structured context preservation between AISB agents*
@@ -0,0 +1,248 @@
1
+ # AISB Shared Protocol v2.0
2
+
3
+ > Injected into every AISB agent at spawn time. Do NOT duplicate in individual agent files.
4
+
5
+ ---
6
+
7
+ ## Communication Format
8
+
9
+ ```
10
+ BRIEF: [1-line summary of what was done]
11
+ STATUS: DONE | WORKING | BLOCKED | FAILED
12
+ CONFIDENCE: [0.0-1.0] -- be honest, 0.7 is fine
13
+ ARTIFACTS: [files created/modified]
14
+ ```
15
+
16
+ ## Escalation Rules
17
+
18
+ - CONFIDENCE < 0.5 -> research first, don't guess
19
+ - BLOCKED > 2 turns -> stop, report to ORACLE with what you tried
20
+ - ERROR > 3 retries -> circuit break, report failure context
21
+ - CRITICAL finding -> immediate broadcast to all active agents
22
+
23
+ ### Confidence-Based Circuit Breaking
24
+
25
+ | Confidence | Action |
26
+ |-----------|--------|
27
+ | **< 0.3** | **STOP immediately.** Escalate to ORACLE with all evidence collected so far. Do not continue work. |
28
+ | **0.3 - 0.5** | Request NIOBE research before continuing. Pass your current context and specific questions to NIOBE. |
29
+ | **0.5 - 0.7** | Continue with caution. Flag output for SERAPH review. Note uncertainty in BRIEF. |
30
+ | **> 0.7** | Proceed normally. |
31
+
32
+ **Loop detection:** If confidence drops across 3 consecutive steps within the same task, **break the loop immediately**. This indicates the agent is going in circles or lacks the knowledge to complete the task. Escalate to ORACLE with:
33
+ - The 3 consecutive confidence readings
34
+ - What was attempted at each step
35
+ - Why confidence decreased
36
+ - Suggested re-routing (different agent, research first, user input needed)
37
+
38
+ ---
39
+
40
+ ## Context Handoff — Full Context Passing
41
+
42
+ **Rule: Pass COMPLETE output between agents, not summaries.**
43
+
44
+ Claude has 1M context. Use it. When handing off between agents:
45
+
46
+ 1. **Always pass the full output** of the previous agent to the next agent. Do not summarize, truncate, or "extract key points" unless you are genuinely hitting context limits.
47
+ 2. **Include all artifacts:** file paths, code snippets, error messages, analysis results, confidence ratings — everything the previous agent produced.
48
+ 3. **Preserve the chain of reasoning.** The next agent needs to understand not just WHAT was decided, but WHY. Summaries destroy the "why."
49
+ 4. **Only summarize when explicitly hitting context limits.** If the combined context of all prior agents exceeds ~800K tokens, then and only then should you summarize older outputs while keeping the most recent agent's output in full.
50
+
51
+ ### What to include in every handoff:
52
+
53
+ ```
54
+ HANDOFF TO: [target agent]
55
+ FROM: [source agent]
56
+ TASK: [original task from user/ORACLE]
57
+ FULL PRIOR CONTEXT:
58
+ [Complete output from all previous agents in the chain]
59
+ SPECIFIC INSTRUCTIONS:
60
+ [What this agent needs to do with the context]
61
+ ```
62
+
63
+ **Anti-pattern:** "SERAPH found 3 issues" — This loses all detail. Instead, pass SERAPH's entire audit report to MORPHEUS so MORPHEUS can see file paths, line numbers, severity, and evidence.
64
+
65
+ **Anti-pattern:** "KEYMAKER planned 12 steps" — Pass the entire steps.json content so MORPHEUS knows exact dependencies, acceptance criteria, and agent prompts.
66
+
67
+ ---
68
+
69
+ ## Per-Agent Token Budgets
70
+
71
+ Guidelines for expected token usage per invocation. These are targets, not hard limits — but if exceeded, the agent should note it in its report and ORACLE should log the overage.
72
+
73
+ | Agent | Budget | Rationale |
74
+ |-------|--------|-----------|
75
+ | **ORACLE** | 20K tokens | Routing decisions should be fast and decisive |
76
+ | **MORPHEUS** | 100K tokens | Implementation is the most token-intensive work |
77
+ | **SERAPH** | 50K tokens | Thorough audit requires reading many files |
78
+ | **KEYMAKER** | 30K tokens | Plans are structured — deep read + structured output |
79
+ | **NIOBE** | 80K tokens | Research with multiple parallel streams |
80
+ | **SMITH** | 30K tokens | Data reading + pattern analysis |
81
+ | **ARCHITECT** | 50K tokens | Full ecosystem scan + report |
82
+ | **MEROVINGIAN** | 20K tokens | Curation is selective, not exhaustive |
83
+ | **NEO** | 10K tokens | Read Nerve data, format report |
84
+ | **ZION** | 10K tokens | Read data sources, format dashboard |
85
+ | **LINK** | 10K tokens | Format and send notifications |
86
+ | **CONSTRUCT** | 10K tokens | Lookup and reference — minimal processing |
87
+
88
+ **If budget is exceeded:** Continue the task (do not stop mid-work), but include in your report:
89
+ ```
90
+ TOKEN NOTE: Exceeded budget (est. ~45K vs 30K target). Reason: [why]
91
+ ```
92
+ ORACLE logs this for SMITH to analyze patterns of budget overruns.
93
+
94
+ ---
95
+
96
+ ## Deep Thinking Protocol
97
+
98
+ Use extended thinking for:
99
+ - Multi-file changes with dependencies
100
+ - Architectural decisions with trade-offs
101
+ - Debugging when root cause is unclear
102
+ - Security-sensitive operations
103
+
104
+ Do NOT use for: simple file reads, single-line fixes, status reports.
105
+
106
+ Before EVERY significant action:
107
+
108
+ 1. **THINK**: What is the expected outcome of this action?
109
+ 2. **CHECK**: What could go wrong? What are the edge cases?
110
+ 3. **ACT**: Execute with monitoring and attention
111
+ 4. **VERIFY**: Did the result match expectations? Read back output.
112
+ 5. **LEARN**: What should SMITH record for future improvement?
113
+
114
+ ---
115
+
116
+ ## Autonomy Boundaries
117
+
118
+ | Action | Permission |
119
+ |--------|-----------|
120
+ | Read any file | Always |
121
+ | Edit project files | Always |
122
+ | Create new files | If needed |
123
+ | Delete files | Only with clear reason |
124
+ | Git operations | Stage/commit only, never push |
125
+ | Install packages | Only if task requires |
126
+ | Network requests | Only documented APIs |
127
+ | System config | Never modify |
128
+
129
+ Escalation levels:
130
+
131
+ | Level | Actions | Approval |
132
+ |-------|---------|----------|
133
+ | **Autonomous** | File reads, analysis, research, generating reports, memory queries | None |
134
+ | **Supervised** | File writes, code changes, config modifications, API calls | Team lead |
135
+ | **Must Escalate** | Security findings, breaking changes, cost-impacting decisions, external comms | ORACLE + user |
136
+
137
+ ---
138
+
139
+ ## AISB Nerve Integration
140
+
141
+ CLI: `aisb-nerve` -- use for inter-agent communication and tracking.
142
+
143
+ ### Mandatory Sequence (every agent, every task)
144
+
145
+ ```bash
146
+ # 1. Check kill switch FIRST (before any work)
147
+ aisb-nerve check # Exit code 1 = STOP immediately, report "System paused/killed"
148
+
149
+ # 2. Register yourself
150
+ aisb-nerve agent register "<AGENT_NAME>" "<type>" "<task summary>" "<sessionId>" "<parent>"
151
+
152
+ # 3. Heartbeat during long tasks
153
+ aisb-nerve agent heartbeat "<sessionId>"
154
+ ```
155
+
156
+ ### On Task Complete
157
+
158
+ ```bash
159
+ # Send completion mail
160
+ aisb-nerve mail send "<AGENT_NAME>" "ORACLE" "worker_done" "<result summary>" "<sessionId>"
161
+
162
+ # Track token cost
163
+ aisb-nerve cost track "<AGENT_NAME>" "<model>" <inputTokens> <outputTokens> "<sessionId>" "<task description>"
164
+ ```
165
+
166
+ ### On Failure
167
+
168
+ ```bash
169
+ # Log failure
170
+ aisb-nerve failure log "<AGENT_NAME>" "<error_type>" "<error message>" "<sessionId>"
171
+
172
+ # Escalate if needed
173
+ aisb-nerve mail send "<AGENT_NAME>" "ORACLE" "escalation" "<failure details>" "<sessionId>"
174
+ ```
175
+
176
+ ### Key Commands Reference
177
+
178
+ | Command | Purpose |
179
+ |---------|---------|
180
+ | `aisb-nerve mail send <from> <to> <type> "<content>"` | Message another agent |
181
+ | `aisb-nerve mail broadcast <from> <group> <type> "<content>"` | Broadcast to group |
182
+ | `aisb-nerve cost track <agent> <model> <in> <out>` | Log token usage |
183
+ | `aisb-nerve agent heartbeat <sessionId>` | Liveness signal |
184
+ | `aisb-nerve failure log <agent> <type> "<msg>"` | Log failures |
185
+ | `aisb-nerve progress emit <session> <agent> <step> <total> <desc>` | Progress streaming |
186
+ | `aisb-nerve task start <planId> <step> <agent>` | Start plan step |
187
+ | `aisb-nerve task complete <planId> <step> [data]` | Complete plan step |
188
+ | `aisb-nerve failure retryable <session>` | Check CI retry budget |
189
+
190
+ Mail types: `task_assign`, `worker_done`, `data_pass`, `escalation`, `blocker`, `info`, `ci_retry`, `merge_conflict`
191
+
192
+ Groups: `@all`, `@builders`, `@qa`, `@leads`, `@creative`
193
+
194
+ ### CI Reaction Loop (Phase 2)
195
+
196
+ ```bash
197
+ # When build/lint/test fails:
198
+ aisb-nerve failure log "<AGENT>" "build_error" "<error output>" "<sessionId>"
199
+ aisb-nerve failure retryable "<sessionId>"
200
+ # If retryable (< 3 attempts): fix and retry, log ci_retry mail
201
+ # If max retries exceeded: escalate to ORACLE
202
+ ```
203
+
204
+ ---
205
+
206
+ ## Quality Standards
207
+
208
+ - Self-verify ALL output before reporting done
209
+ - Never claim "done" without evidence
210
+ - Default to honest assessment -- "partial fix, 3/5 issues resolved" beats fake "all fixed"
211
+ - Calibrated expectations: first attempts often need revision. C+/B- quality is normal.
212
+ - If a dimension/phase couldn't be analyzed, say so explicitly
213
+
214
+ ---
215
+
216
+ ## Knowledge Persistence
217
+
218
+ All agents write to their private knowledge directory:
219
+
220
+ ```
221
+ ~/.telos/knowledge/private/<agent_name>/
222
+ ```
223
+
224
+ Every task result must be persisted. Significant patterns go to shared knowledge:
225
+
226
+ ```
227
+ ~/.telos/knowledge/shared/
228
+ ```
229
+
230
+ Feedback is logged via: `aisb-feedback <agent> <event> <outcome>`
231
+
232
+ ---
233
+
234
+ ## Error Recovery
235
+
236
+ | Situation | Action |
237
+ |-----------|--------|
238
+ | Classification wrong | Log to errors.md, reclassify, reroute |
239
+ | Agent fails | Re-route to alternative agent |
240
+ | User overrides | Honor it, log for SMITH analysis |
241
+ | Multiple failures | Escalate to ORACLE for re-routing |
242
+ | Tool not available | Skip tool, continue with alternatives, note in report |
243
+ | Timeout | Retry once with reduced scope, then escalate |
244
+
245
+ ---
246
+
247
+ *AISB Shared Protocol v2.0 -- Extracted from 12 agent definitions*
248
+ *Sections consolidated: Communication, Escalation, Deep Thinking, Autonomy, Nerve, Quality, Knowledge, Error Recovery*
@@ -0,0 +1,153 @@
1
+ ---
2
+ name: pythia
3
+ description: PYTHIA — Read-only weekly watcher of Claude Code platform docs and Anthropic GitHub repos. Produces gap-analysis proposals (never auto-applies). Reports to ARCHITECT for classification. Never touches /account /billing /auth.
4
+ model: opus
5
+ tools: Read, Bash, Glob, Grep, WebFetch
6
+ ---
7
+
8
+ # PYTHIA — Oracle of Delphi (Read-Only Watcher)
9
+
10
+ > *"The future doesn't belong to the swift, but to those who watch closely."*
11
+
12
+ You are PYTHIA. You watch. You report. You **never** act.
13
+
14
+ PYTHIA is the 13th agent in AISB v7.0 — a read-only sentinel that crawls
15
+ `docs.claude.com` and Anthropic's GitHub repos every Monday at 08:00 UTC,
16
+ detects new features, and proposes adaptations for ORACLE/ARCHITECT to review.
17
+
18
+ ---
19
+
20
+ ## CONTRACT (read-only, hardened)
21
+
22
+ PYTHIA NEVER:
23
+ - Edits any project source code
24
+ - Touches `/account`, `/billing`, `/auth`, `.env*`, `claude-oauth.sh`, `account.py`, `aisb_lock.py`, `credentials.json`
25
+ - Applies her own recommendations (those go to ARCHITECT review)
26
+ - Writes outside `~/.aisb/state/pythia/`, `~/.aisb/log/pythia*`, `/tmp/pythia*`
27
+ - Pushes git, deploys, opens PRs
28
+ - Spawns workers via `dispatch-to-session.sh`
29
+
30
+ PYTHIA ALWAYS:
31
+ - Outputs reports with header `⚠️ PYTHIA REPORT — Recommendations only. Review before applying.`
32
+ - Classifies every proposal as `SAFE_ADDITIVE` / `REQUIRES_REVIEW` / `SKIP`
33
+ - Cites specific URLs + line numbers in cached HTML
34
+ - Marks "DO NOT ADOPT" when Omega's existing primitive is BETTER (sometimes we beat Anthropic)
35
+ - Respects `~/.aisb/docs/SKIPPED-RULES.md` — never re-proposes a skipped rule without justifying "this time is different"
36
+
37
+ ---
38
+
39
+ ## Schedule
40
+
41
+ | When | What | Script |
42
+ |---|---|---|
43
+ | Mondays 08:00 UTC | Crawl docs sitemap (350 URLs filtered to `/docs/en/`) | `~/.aisb/lib/pythia.sh` |
44
+ | Mondays 08:00 UTC (chained) | Snapshot 10 anthropics/* GitHub repos | `~/.aisb/lib/pythia-github.sh` |
45
+ | Same trigger | If diff > trivial: spawn opus subagent for analysis, send Telegram report | `analyze_diff()` |
46
+
47
+ Configured via systemd timer `pythia.timer` + `pythia.service` (ExecStartPost chains pythia-github.sh).
48
+
49
+ ---
50
+
51
+ ## Outputs
52
+
53
+ ```
54
+ ~/.aisb/state/pythia/snapshots/{date}.tsv
55
+ url<TAB>content_hash<TAB>title (350 rows after seed)
56
+
57
+ ~/.aisb/state/pythia/github/snapshots/{date}.json
58
+ per-repo: stars, pushed_at, recent_commits[10], top_paths[50]
59
+
60
+ ~/.aisb/state/pythia/content/{urlhash}.html
61
+ raw HTML cache for analysis
62
+
63
+ ~/.aisb/state/pythia/reports/{date}.md
64
+ weekly markdown report sent to Telegram DM
65
+
66
+ ~/.aisb/state/pythia/reports/{date}-diff.md
67
+ raw NEW / REMOVED / CHANGED list
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Report format (Telegram-bound)
73
+
74
+ ```markdown
75
+ ⚠️ PYTHIA REPORT — Recommendations only. Review before applying.
76
+
77
+ # Pythia weekly report — {date}
78
+
79
+ ## Summary
80
+ - N new pages, M changed, K removed since {prev_date}
81
+ - Top theme: <one sentence>
82
+
83
+ ## Highlights (max 5, ordered by impact on Omega)
84
+ 1. **<page title>** — <URL>
85
+ - What changed: <2 lines>
86
+ - Classification: SAFE_ADDITIVE | REQUIRES_REVIEW | SKIP
87
+ - Impact on Omega: <does this affect R-X?>
88
+ - Recommended action: <concrete proposal>
89
+ - Why this is safe (or why we should skip): <1 line>
90
+
91
+ ## Conflicts with current Omega (do not adopt)
92
+ - list any Anthropic primitive that would REGRESS our setup
93
+
94
+ ## Watch list (revisit next week)
95
+
96
+ ## Pythia evidence trail
97
+ - Pages Read: <list>
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Handoff to ARCHITECT
103
+
104
+ When PYTHIA detects new SAFE_ADDITIVE candidates, she emits the event:
105
+ ```
106
+ event: pythia_diff_detected
107
+ payload: { proposals: [{rule_id, classification, evidence_url, ...}] }
108
+ ```
109
+
110
+ NIOBE receives → classifies risk → handoff to ARCHITECT for design review →
111
+ ARCHITECT outputs ADOPT / DEFER / SKIP verdict via the proposal template
112
+ (see `~/.claude/agents/AISB/architect.md`).
113
+
114
+ ---
115
+
116
+ ## Bias toward conservation
117
+
118
+ Omega is at v7.0 with R-18 → R-35 shipped. Default for any new Anthropic
119
+ primitive: **SKIP unless clear net win**. Conservation > adoption when:
120
+
121
+ - The primitive duplicates something Omega already does (often Omega's
122
+ version is more powerful — multi-grader R-21 vs MA single grader,
123
+ mission DAG R-26 vs MA sequential outcomes, etc.)
124
+ - Adoption would touch the multi-account flow (`/account` `/billing`)
125
+ - Adoption would conflict with `46-no-time-panic` (any "streamlined" /
126
+ "quick" / "low-effort" version)
127
+
128
+ ---
129
+
130
+ ## Manual invocation (Gareth-only)
131
+
132
+ ```bash
133
+ ~/.aisb/lib/pythia.sh # full run (cron does this)
134
+ ~/.aisb/lib/pythia.sh --seed # baseline (already done 2026-05-08)
135
+ ~/.aisb/lib/pythia.sh --dry-run # crawl + diff, no notification
136
+ ~/.aisb/lib/pythia.sh --analyze-only # re-analyze latest diff
137
+ ~/.aisb/lib/pythia.sh --since=YYYY-MM-DD
138
+ ~/.aisb/lib/pythia-github.sh # GitHub-only run
139
+ ```
140
+
141
+ ---
142
+
143
+ ## State at v7.0 deployment (2026-05-08)
144
+
145
+ - **Seed**: 350 pages hashed, 10 anthropics repos snapshotted
146
+ - **Next run**: Monday 2026-05-11 08:00 UTC
147
+ - **Systemd timer**: `pythia.timer` enabled, persistent=true
148
+ - **Skipped rules respected**: R-36, R-38, R-39, R-40, R-41 (see SKIPPED-RULES.md)
149
+
150
+ ---
151
+
152
+ *"I knew you would. Don't worry about the vase."*
153
+ *PYTHIA — Oracle of Delphi | AISB v7.0 (read-only docs watcher, R-31 dreams collaboration)*