ace-core 0.1.0__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 (1003) hide show
  1. ace/__init__.py +3 -0
  2. ace_core-0.1.0.data/data/share/doc/ace/CHANGELOG.md +26 -0
  3. ace_core-0.1.0.data/data/share/doc/ace/CONTRIBUTING.md +156 -0
  4. ace_core-0.1.0.data/data/share/doc/ace/README.md +513 -0
  5. ace_core-0.1.0.data/data/share/doc/ace/ROADMAP.md +43 -0
  6. ace_core-0.1.0.data/data/share/doc/ace/SECURITY.md +60 -0
  7. ace_core-0.1.0.data/data/share/doc/ace/docs/README.md +19 -0
  8. ace_core-0.1.0.data/data/share/doc/ace/docs/architecture.md +406 -0
  9. ace_core-0.1.0.data/data/share/doc/ace/docs/build-your-first-extension.md +206 -0
  10. ace_core-0.1.0.data/data/share/doc/ace/docs/capability-maturity.md +62 -0
  11. ace_core-0.1.0.data/data/share/doc/ace/docs/extension-api.md +46 -0
  12. ace_core-0.1.0.data/data/share/doc/ace/docs/governance.md +21 -0
  13. ace_core-0.1.0.data/data/share/doc/ace/docs/providers.md +375 -0
  14. ace_core-0.1.0.data/data/share/doc/ace/docs/roadmap-status.md +7 -0
  15. ace_core-0.1.0.dist-info/METADATA +591 -0
  16. ace_core-0.1.0.dist-info/RECORD +1003 -0
  17. ace_core-0.1.0.dist-info/WHEEL +5 -0
  18. ace_core-0.1.0.dist-info/entry_points.txt +7 -0
  19. ace_core-0.1.0.dist-info/licenses/LICENSE +201 -0
  20. ace_core-0.1.0.dist-info/licenses/NOTICE +9 -0
  21. ace_core-0.1.0.dist-info/top_level.txt +6 -0
  22. ace_mcp_client/__init__.py +4 -0
  23. ace_mcp_client/client.py +158 -0
  24. ace_mcp_client/server.py +130 -0
  25. ace_mcp_client/tools.py +386 -0
  26. core/engine/__init__.py +0 -0
  27. core/engine/ai_briefing/__init__.py +33 -0
  28. core/engine/ai_briefing/builder.py +292 -0
  29. core/engine/api/__init__.py +1 -0
  30. core/engine/api/_portal_security.py +73 -0
  31. core/engine/api/agents.py +112 -0
  32. core/engine/api/atc.py +162 -0
  33. core/engine/api/auth_routes.py +62 -0
  34. core/engine/api/briefings.py +192 -0
  35. core/engine/api/canvas.py +930 -0
  36. core/engine/api/canvas_host.py +262 -0
  37. core/engine/api/canvas_yjs.py +189 -0
  38. core/engine/api/capture.py +206 -0
  39. core/engine/api/chat.py +165 -0
  40. core/engine/api/codebase_qa.py +44 -0
  41. core/engine/api/conductor.py +301 -0
  42. core/engine/api/conflicts.py +192 -0
  43. core/engine/api/contributions.py +16 -0
  44. core/engine/api/decisions.py +102 -0
  45. core/engine/api/diagnostics.py +27 -0
  46. core/engine/api/documents.py +169 -0
  47. core/engine/api/ecosystem.py +157 -0
  48. core/engine/api/efficiency.py +115 -0
  49. core/engine/api/experiments.py +87 -0
  50. core/engine/api/foresight.py +128 -0
  51. core/engine/api/gates.py +81 -0
  52. core/engine/api/graph.py +154 -0
  53. core/engine/api/graph_clusters.py +105 -0
  54. core/engine/api/graph_edge_summary.py +80 -0
  55. core/engine/api/graph_events.py +342 -0
  56. core/engine/api/graph_explore.py +539 -0
  57. core/engine/api/graph_health.py +194 -0
  58. core/engine/api/graph_search.py +103 -0
  59. core/engine/api/graph_traverse.py +660 -0
  60. core/engine/api/handoff.py +105 -0
  61. core/engine/api/ideas.py +488 -0
  62. core/engine/api/initiatives.py +466 -0
  63. core/engine/api/intel.py +187 -0
  64. core/engine/api/journey.py +127 -0
  65. core/engine/api/layers.py +158 -0
  66. core/engine/api/live_canvas.py +191 -0
  67. core/engine/api/live_stream.py +16 -0
  68. core/engine/api/loop.py +138 -0
  69. core/engine/api/main.py +926 -0
  70. core/engine/api/memory.py +180 -0
  71. core/engine/api/middleware.py +223 -0
  72. core/engine/api/notifications.py +140 -0
  73. core/engine/api/onboarding.py +168 -0
  74. core/engine/api/onboarding_conversation.py +123 -0
  75. core/engine/api/orchestration.py +64 -0
  76. core/engine/api/orchestration_ws.py +261 -0
  77. core/engine/api/portal_views.py +386 -0
  78. core/engine/api/pr_review.py +721 -0
  79. core/engine/api/proactive.py +146 -0
  80. core/engine/api/product.py +277 -0
  81. core/engine/api/products.py +210 -0
  82. core/engine/api/reasoning.py +72 -0
  83. core/engine/api/recognition.py +127 -0
  84. core/engine/api/recommendations.py +116 -0
  85. core/engine/api/reports.py +168 -0
  86. core/engine/api/roi.py +117 -0
  87. core/engine/api/runner.py +167 -0
  88. core/engine/api/scanner.py +148 -0
  89. core/engine/api/search.py +22 -0
  90. core/engine/api/self_optimizer.py +233 -0
  91. core/engine/api/sentinel.py +354 -0
  92. core/engine/api/sentinels.py +221 -0
  93. core/engine/api/skills.py +179 -0
  94. core/engine/api/tasks.py +620 -0
  95. core/engine/api/templates.py +103 -0
  96. core/engine/api/themes.py +55 -0
  97. core/engine/api/token_intelligence.py +47 -0
  98. core/engine/api/velocity.py +25 -0
  99. core/engine/api/voice_audit.py +61 -0
  100. core/engine/api/voice_threads.py +206 -0
  101. core/engine/api/webhooks.py +77 -0
  102. core/engine/arms/__init__.py +0 -0
  103. core/engine/arms/base.py +150 -0
  104. core/engine/arms/brain_hand_arm.py +318 -0
  105. core/engine/arms/builder.py +75 -0
  106. core/engine/arms/code_arm.py +95 -0
  107. core/engine/arms/code_planner.py +236 -0
  108. core/engine/arms/critic.py +136 -0
  109. core/engine/arms/data_arm.py +94 -0
  110. core/engine/arms/data_planner.py +177 -0
  111. core/engine/arms/design_arm.py +89 -0
  112. core/engine/arms/design_enforce.py +88 -0
  113. core/engine/arms/design_planner.py +155 -0
  114. core/engine/arms/dispatch.py +281 -0
  115. core/engine/arms/execution/__init__.py +1 -0
  116. core/engine/arms/execution/executors.py +78 -0
  117. core/engine/arms/execution/runtime.py +48 -0
  118. core/engine/arms/execution/workspace.py +137 -0
  119. core/engine/arms/failure.py +49 -0
  120. core/engine/arms/migration_safety.py +129 -0
  121. core/engine/arms/outcome.py +143 -0
  122. core/engine/arms/preflight.py +141 -0
  123. core/engine/arms/promotion.py +244 -0
  124. core/engine/arms/provider_probe.py +202 -0
  125. core/engine/arms/registry.py +97 -0
  126. core/engine/arms/router.py +166 -0
  127. core/engine/arms/run_ledger.py +308 -0
  128. core/engine/arms/scaffold_arm.py +67 -0
  129. core/engine/arms/session.py +394 -0
  130. core/engine/arms/ship_arm.py +82 -0
  131. core/engine/arms/ship_planner.py +63 -0
  132. core/engine/arms/spec_reality.py +275 -0
  133. core/engine/arms/strategy/__init__.py +1 -0
  134. core/engine/arms/strategy/assemble.py +23 -0
  135. core/engine/arms/strategy/classify.py +58 -0
  136. core/engine/arms/strategy/deep_phases.py +78 -0
  137. core/engine/arms/strategy/depth_scorer.py +100 -0
  138. core/engine/arms/strategy/graph_classifier.py +223 -0
  139. core/engine/arms/strategy/profile.py +14 -0
  140. core/engine/atc/__init__.py +1 -0
  141. core/engine/atc/events.py +30 -0
  142. core/engine/atc/freshness.py +96 -0
  143. core/engine/atc/human_scanner.py +175 -0
  144. core/engine/atc/landing.py +188 -0
  145. core/engine/atc/registry.py +347 -0
  146. core/engine/atc/scheduler.py +204 -0
  147. core/engine/canvas/__init__.py +1 -0
  148. core/engine/canvas/canvas_engagement.py +210 -0
  149. core/engine/canvas/canvas_ui_events.py +156 -0
  150. core/engine/canvas/code_renderer.py +120 -0
  151. core/engine/canvas/cogeneration.py +63 -0
  152. core/engine/canvas/conversation.py +95 -0
  153. core/engine/canvas/design_renderer.py +112 -0
  154. core/engine/canvas/event_protocol.py +278 -0
  155. core/engine/canvas/framework_renderer.py +194 -0
  156. core/engine/canvas/intent_router.py +39 -0
  157. core/engine/canvas/ledger_bridge.py +126 -0
  158. core/engine/canvas/models.py +77 -0
  159. core/engine/canvas/orchestrated_renderer.py +375 -0
  160. core/engine/canvas/participant.py +129 -0
  161. core/engine/canvas/persistence.py +208 -0
  162. core/engine/canvas/surface_adapter.py +62 -0
  163. core/engine/canvas_bridge/__init__.py +38 -0
  164. core/engine/canvas_bridge/api.py +49 -0
  165. core/engine/canvas_bridge/bridge.py +306 -0
  166. core/engine/canvas_bridge/demo.py +271 -0
  167. core/engine/canvas_bridge/messages.py +232 -0
  168. core/engine/canvas_bridge/participant.py +75 -0
  169. core/engine/capture/__init__.py +1 -0
  170. core/engine/capture/agent_sdk_watcher.py +69 -0
  171. core/engine/capture/atomic_write.py +244 -0
  172. core/engine/capture/chunker.py +128 -0
  173. core/engine/capture/cognify.py +149 -0
  174. core/engine/capture/consolidator.py +172 -0
  175. core/engine/capture/contextualize.py +51 -0
  176. core/engine/capture/document_chunker.py +80 -0
  177. core/engine/capture/episodes.py +205 -0
  178. core/engine/capture/forget.py +158 -0
  179. core/engine/capture/freshness.py +177 -0
  180. core/engine/capture/observer.py +147 -0
  181. core/engine/capture/pattern_detector.py +159 -0
  182. core/engine/capture/pipeline.py +195 -0
  183. core/engine/capture/provenance.py +79 -0
  184. core/engine/capture/schemas.py +73 -0
  185. core/engine/capture/service.py +309 -0
  186. core/engine/capture/synthesizer.py +735 -0
  187. core/engine/capture/watchers.py +57 -0
  188. core/engine/chat/__init__.py +1 -0
  189. core/engine/chat/handler.py +385 -0
  190. core/engine/chat/session_capture.py +126 -0
  191. core/engine/chat/streaming.py +436 -0
  192. core/engine/cli/__init__.py +0 -0
  193. core/engine/cli/auth.py +81 -0
  194. core/engine/cli/commands/__init__.py +0 -0
  195. core/engine/cli/commands/assertions.py +23 -0
  196. core/engine/cli/commands/briefing.py +83 -0
  197. core/engine/cli/commands/conflicts.py +101 -0
  198. core/engine/cli/commands/doctor.py +176 -0
  199. core/engine/cli/commands/evolve.py +34 -0
  200. core/engine/cli/commands/flow.py +127 -0
  201. core/engine/cli/commands/graph.py +65 -0
  202. core/engine/cli/commands/ideas.py +174 -0
  203. core/engine/cli/commands/initiatives.py +196 -0
  204. core/engine/cli/commands/intel.py +84 -0
  205. core/engine/cli/commands/login.py +76 -0
  206. core/engine/cli/commands/model_policy.py +51 -0
  207. core/engine/cli/commands/proposals.py +91 -0
  208. core/engine/cli/commands/reasoning.py +83 -0
  209. core/engine/cli/commands/run.py +145 -0
  210. core/engine/cli/commands/sentinel.py +175 -0
  211. core/engine/cli/commands/skills.py +92 -0
  212. core/engine/cli/commands/status.py +22 -0
  213. core/engine/cli/commands/templates.py +123 -0
  214. core/engine/cli/display.py +49 -0
  215. core/engine/cli/main.py +61 -0
  216. core/engine/cognition/__init__.py +11 -0
  217. core/engine/cognition/active_discipline.py +104 -0
  218. core/engine/cognition/best_of_n.py +56 -0
  219. core/engine/cognition/classifier.py +129 -0
  220. core/engine/cognition/composer.py +809 -0
  221. core/engine/cognition/composition_headline.py +81 -0
  222. core/engine/cognition/composition_trace.py +64 -0
  223. core/engine/cognition/conductor_phrases.py +227 -0
  224. core/engine/cognition/confidence_gate.py +40 -0
  225. core/engine/cognition/crm_calibrator.py +89 -0
  226. core/engine/cognition/edge_inference.py +131 -0
  227. core/engine/cognition/fusion.py +142 -0
  228. core/engine/cognition/handoff.py +86 -0
  229. core/engine/cognition/instrument_registry.py +70 -0
  230. core/engine/cognition/journey_voice.py +136 -0
  231. core/engine/cognition/loop_iterations.py +139 -0
  232. core/engine/cognition/moa.py +129 -0
  233. core/engine/cognition/models.py +230 -0
  234. core/engine/cognition/multiphase.py +615 -0
  235. core/engine/cognition/phase_evaluator.py +160 -0
  236. core/engine/cognition/phase_output.py +27 -0
  237. core/engine/cognition/plan_evaluator.py +90 -0
  238. core/engine/cognition/reasoning_run.py +143 -0
  239. core/engine/cognition/recipes/__init__.py +47 -0
  240. core/engine/cognition/recipes/coding.py +208 -0
  241. core/engine/cognition/recipes/communication.py +102 -0
  242. core/engine/cognition/recipes/communication_agentic.py +95 -0
  243. core/engine/cognition/recipes/coordination.py +98 -0
  244. core/engine/cognition/recipes/creative.py +154 -0
  245. core/engine/cognition/recipes/data.py +115 -0
  246. core/engine/cognition/recipes/delegation.py +96 -0
  247. core/engine/cognition/recipes/domain_specific.py +98 -0
  248. core/engine/cognition/recipes/evaluation.py +102 -0
  249. core/engine/cognition/recipes/feedback.py +98 -0
  250. core/engine/cognition/recipes/gap.py +97 -0
  251. core/engine/cognition/recipes/loader.py +119 -0
  252. core/engine/cognition/recipes/memory.py +99 -0
  253. core/engine/cognition/recipes/operational.py +102 -0
  254. core/engine/cognition/recipes/planning.py +105 -0
  255. core/engine/cognition/recipes/prioritization.yaml +85 -0
  256. core/engine/cognition/recipes/research.py +100 -0
  257. core/engine/cognition/recipes/retrieval.py +99 -0
  258. core/engine/cognition/recipes/risk.py +102 -0
  259. core/engine/cognition/recipes/schema.py +136 -0
  260. core/engine/cognition/recipes/strategic.py +116 -0
  261. core/engine/cognition/recipes/systems.py +125 -0
  262. core/engine/cognition/recipes/tool.py +96 -0
  263. core/engine/cognition/recipes/verification.py +99 -0
  264. core/engine/cognition/run_ledger.py +238 -0
  265. core/engine/cognition/seed.py +5583 -0
  266. core/engine/cognition/self_consistency.py +87 -0
  267. core/engine/cognition/star_trace.py +73 -0
  268. core/engine/cognition/tool_catalog.py +41 -0
  269. core/engine/cognition/tool_classifier.py +107 -0
  270. core/engine/conductor/__init__.py +0 -0
  271. core/engine/conductor/bootstrap.py +378 -0
  272. core/engine/conductor/conductor.py +359 -0
  273. core/engine/conductor/grooming.py +47 -0
  274. core/engine/conductor/rule_actions.py +498 -0
  275. core/engine/conductor/rule_conditions.py +88 -0
  276. core/engine/conductor/rule_engine.py +90 -0
  277. core/engine/conductor/stall_detector.py +203 -0
  278. core/engine/conductor/state_machine.py +71 -0
  279. core/engine/conductor/template_resolver.py +165 -0
  280. core/engine/conductor/vision_filter.py +61 -0
  281. core/engine/contributions/__init__.py +0 -0
  282. core/engine/contributions/aggregator.py +310 -0
  283. core/engine/core/__init__.py +1 -0
  284. core/engine/core/access.py +172 -0
  285. core/engine/core/auth.py +63 -0
  286. core/engine/core/config.py +327 -0
  287. core/engine/core/db.py +395 -0
  288. core/engine/core/error_buffer.py +73 -0
  289. core/engine/core/exceptions.py +99 -0
  290. core/engine/core/llm.py +2193 -0
  291. core/engine/core/llm_anyllm.py +259 -0
  292. core/engine/core/llm_litellm.py +244 -0
  293. core/engine/core/llm_prompt_fragments.py +38 -0
  294. core/engine/core/log_context.py +88 -0
  295. core/engine/core/metrics.py +157 -0
  296. core/engine/core/model_costs.py +51 -0
  297. core/engine/core/model_policy.py +197 -0
  298. core/engine/core/otel.py +163 -0
  299. core/engine/core/schema.py +183 -0
  300. core/engine/core/search.py +117 -0
  301. core/engine/core/tasks.py +58 -0
  302. core/engine/core/tokens.py +127 -0
  303. core/engine/diagram/__init__.py +1 -0
  304. core/engine/diagram/abstractor.py +107 -0
  305. core/engine/diagram/graph_reader.py +82 -0
  306. core/engine/diagram/ir.py +62 -0
  307. core/engine/diagram/renderers/__init__.py +0 -0
  308. core/engine/diagram/renderers/base.py +11 -0
  309. core/engine/diagram/renderers/mermaid.py +52 -0
  310. core/engine/diagram/service.py +26 -0
  311. core/engine/embedding/__init__.py +1 -0
  312. core/engine/embedding/base.py +50 -0
  313. core/engine/embedding/codesage_embedder.py +71 -0
  314. core/engine/embedding/noop_embedder.py +12 -0
  315. core/engine/embedding/onnx_embedder.py +130 -0
  316. core/engine/eval/__init__.py +7 -0
  317. core/engine/eval/baseline.py +53 -0
  318. core/engine/eval/grader.py +119 -0
  319. core/engine/evaluation/__init__.py +5 -0
  320. core/engine/evaluation/cli.py +31 -0
  321. core/engine/evaluation/decision_delta.py +430 -0
  322. core/engine/evaluation/harness.py +157 -0
  323. core/engine/evaluation/live_runner.py +207 -0
  324. core/engine/events/__init__.py +5 -0
  325. core/engine/events/audit_logger.py +115 -0
  326. core/engine/events/automations.py +336 -0
  327. core/engine/events/bus.py +113 -0
  328. core/engine/events/canvas.py +416 -0
  329. core/engine/events/gate_handlers.py +80 -0
  330. core/engine/events/live_handlers.py +63 -0
  331. core/engine/events/product_handlers.py +202 -0
  332. core/engine/extensions/__init__.py +17 -0
  333. core/engine/extensions/base.py +43 -0
  334. core/engine/extensions/loader.py +108 -0
  335. core/engine/extensions/registry.py +198 -0
  336. core/engine/flow/__init__.py +0 -0
  337. core/engine/flow/clearance.py +72 -0
  338. core/engine/flow/config.py +77 -0
  339. core/engine/foresight/__init__.py +1 -0
  340. core/engine/foresight/forecaster.py +327 -0
  341. core/engine/foresight/fork_models.py +62 -0
  342. core/engine/foresight/fork_planner.py +577 -0
  343. core/engine/foresight/models.py +114 -0
  344. core/engine/foresight/planner.py +384 -0
  345. core/engine/foresight/reconciler.py +448 -0
  346. core/engine/foresight/scenario_builder.py +167 -0
  347. core/engine/foresight/signal_engine.py +243 -0
  348. core/engine/foresight/value_model.py +79 -0
  349. core/engine/generation/__init__.py +0 -0
  350. core/engine/generation/changelog.py +140 -0
  351. core/engine/generation/ci_generator.py +231 -0
  352. core/engine/generation/docs_generator.py +263 -0
  353. core/engine/generation/iac_generator.py +221 -0
  354. core/engine/generation/otel_generator.py +208 -0
  355. core/engine/generation/templates/circleci.yml.j2 +57 -0
  356. core/engine/generation/templates/docker_compose.yml.j2 +37 -0
  357. core/engine/generation/templates/github_actions.yml.j2 +71 -0
  358. core/engine/generation/templates/gitlab_ci.yml.j2 +53 -0
  359. core/engine/github/__init__.py +1 -0
  360. core/engine/github/client.py +154 -0
  361. core/engine/github/diff_parser.py +111 -0
  362. core/engine/github/models.py +106 -0
  363. core/engine/graph/__init__.py +0 -0
  364. core/engine/graph/assertions.py +514 -0
  365. core/engine/graph/classifier.py +160 -0
  366. core/engine/graph/cluster.py +109 -0
  367. core/engine/graph/context.py +387 -0
  368. core/engine/graph/cooccurrence.py +162 -0
  369. core/engine/graph/edge_writer.py +112 -0
  370. core/engine/graph/grounding.py +262 -0
  371. core/engine/graph/insight_neighbors.py +179 -0
  372. core/engine/graph/insight_writer.py +108 -0
  373. core/engine/graph/legacy_migration.py +79 -0
  374. core/engine/graph/metabolism.py +316 -0
  375. core/engine/graph/ontology.py +186 -0
  376. core/engine/graph/proposals.py +79 -0
  377. core/engine/graph/recommendations.py +627 -0
  378. core/engine/graph/synaptic_loader.py +108 -0
  379. core/engine/graph/tension_telemetry.py +60 -0
  380. core/engine/graph/writer.py +159 -0
  381. core/engine/handoff/__init__.py +0 -0
  382. core/engine/handoff/dispatcher.py +298 -0
  383. core/engine/handoff/models.py +39 -0
  384. core/engine/handoff/summarizer.py +89 -0
  385. core/engine/handoff/translators.py +82 -0
  386. core/engine/ideas/__init__.py +1 -0
  387. core/engine/ideas/activate.py +168 -0
  388. core/engine/ideas/capture.py +87 -0
  389. core/engine/ideas/incubate.py +369 -0
  390. core/engine/ideas/promote.py +105 -0
  391. core/engine/ideas/qualify.py +118 -0
  392. core/engine/ideas/related.py +121 -0
  393. core/engine/ideas/schemas.py +58 -0
  394. core/engine/ideas/state_machine.py +71 -0
  395. core/engine/intelligence/__init__.py +1 -0
  396. core/engine/intelligence/ab_judge.py +94 -0
  397. core/engine/intelligence/adjacency.py +106 -0
  398. core/engine/intelligence/affinities.py +153 -0
  399. core/engine/intelligence/attribution.py +217 -0
  400. core/engine/intelligence/calibration.py +196 -0
  401. core/engine/intelligence/cascade_router.py +421 -0
  402. core/engine/intelligence/classification_cache.py +208 -0
  403. core/engine/intelligence/complexity_router.py +92 -0
  404. core/engine/intelligence/compounding.py +91 -0
  405. core/engine/intelligence/compressor.py +105 -0
  406. core/engine/intelligence/cost_predictor.py +58 -0
  407. core/engine/intelligence/coverage_binder.py +192 -0
  408. core/engine/intelligence/coverage_priority.py +63 -0
  409. core/engine/intelligence/decision_capability_inference.py +204 -0
  410. core/engine/intelligence/dep_updater.py +154 -0
  411. core/engine/intelligence/depth_budget.py +24 -0
  412. core/engine/intelligence/detector.py +91 -0
  413. core/engine/intelligence/distillation_export.py +77 -0
  414. core/engine/intelligence/emergence.py +168 -0
  415. core/engine/intelligence/error_explainer.py +244 -0
  416. core/engine/intelligence/export_pack.py +190 -0
  417. core/engine/intelligence/failure_classifier.py +164 -0
  418. core/engine/intelligence/failure_replay.py +104 -0
  419. core/engine/intelligence/graph_builder.py +1056 -0
  420. core/engine/intelligence/lsp_client.py +140 -0
  421. core/engine/intelligence/lsp_manager.py +310 -0
  422. core/engine/intelligence/maturation.py +383 -0
  423. core/engine/intelligence/model_affinity.py +156 -0
  424. core/engine/intelligence/model_router.py +12 -0
  425. core/engine/intelligence/provisioner.py +179 -0
  426. core/engine/intelligence/queries.py +344 -0
  427. core/engine/intelligence/ranker.py +141 -0
  428. core/engine/intelligence/ref_indexer.py +95 -0
  429. core/engine/intelligence/roi_detector.py +238 -0
  430. core/engine/intelligence/schema.py +26 -0
  431. core/engine/intelligence/servers.py +60 -0
  432. core/engine/intelligence/specialty_broadcast.py +114 -0
  433. core/engine/intelligence/statistics.py +373 -0
  434. core/engine/intelligence/synthetic_runner.py +108 -0
  435. core/engine/intelligence/token_baseline.py +112 -0
  436. core/engine/intelligence/token_ledger.py +230 -0
  437. core/engine/intelligence/utilization.py +156 -0
  438. core/engine/keyword_classifier.py +107 -0
  439. core/engine/learning/__init__.py +0 -0
  440. core/engine/learning/detection_rules.py +127 -0
  441. core/engine/learning/detector.py +190 -0
  442. core/engine/learning/effectiveness.py +151 -0
  443. core/engine/learning/feature_flag.py +31 -0
  444. core/engine/live/__init__.py +1 -0
  445. core/engine/live/coordinator.py +168 -0
  446. core/engine/live/edit_tracker.py +255 -0
  447. core/engine/live/file_watcher.py +154 -0
  448. core/engine/live/session_runner.py +247 -0
  449. core/engine/live/state_machines.py +104 -0
  450. core/engine/live/stream.py +100 -0
  451. core/engine/mcp/__init__.py +0 -0
  452. core/engine/mcp/schemas.py +155 -0
  453. core/engine/mcp/server.py +2221 -0
  454. core/engine/mcp/tools.py +5195 -0
  455. core/engine/notifications/__init__.py +1 -0
  456. core/engine/notifications/audit_buffer.py +52 -0
  457. core/engine/notifications/channels/__init__.py +65 -0
  458. core/engine/notifications/channels/discord.py +488 -0
  459. core/engine/notifications/channels/in_app.py +41 -0
  460. core/engine/notifications/channels/webhook.py +82 -0
  461. core/engine/notifications/dispatcher.py +266 -0
  462. core/engine/notifications/triggers.py +196 -0
  463. core/engine/onboarding/__init__.py +1 -0
  464. core/engine/onboarding/conversation.py +308 -0
  465. core/engine/onboarding/conversation_copy.json +30 -0
  466. core/engine/onboarding/scaffolder.py +275 -0
  467. core/engine/orchestration/__init__.py +69 -0
  468. core/engine/orchestration/agent.py +63 -0
  469. core/engine/orchestration/airspace.py +397 -0
  470. core/engine/orchestration/atc_monitor.py +111 -0
  471. core/engine/orchestration/bus.py +126 -0
  472. core/engine/orchestration/capture_bridge.py +91 -0
  473. core/engine/orchestration/composition.py +142 -0
  474. core/engine/orchestration/composition_scorer.py +610 -0
  475. core/engine/orchestration/context.py +24 -0
  476. core/engine/orchestration/deep_committee.py +181 -0
  477. core/engine/orchestration/dispatch_planner.py +229 -0
  478. core/engine/orchestration/dispatcher.py +100 -0
  479. core/engine/orchestration/events.py +542 -0
  480. core/engine/orchestration/executor.py +1925 -0
  481. core/engine/orchestration/factory.py +51 -0
  482. core/engine/orchestration/hooks.py +430 -0
  483. core/engine/orchestration/loop_context.py +97 -0
  484. core/engine/orchestration/patterns/__init__.py +20 -0
  485. core/engine/orchestration/patterns/adversarial.py +289 -0
  486. core/engine/orchestration/patterns/base.py +100 -0
  487. core/engine/orchestration/patterns/committee.py +65 -0
  488. core/engine/orchestration/patterns/fanout.py +125 -0
  489. core/engine/orchestration/patterns/independent.py +142 -0
  490. core/engine/orchestration/patterns/pipeline.py +150 -0
  491. core/engine/orchestration/patterns/team.py +234 -0
  492. core/engine/orchestration/planner.py +206 -0
  493. core/engine/orchestration/python_dispatcher.py +76 -0
  494. core/engine/orchestration/request.py +134 -0
  495. core/engine/orchestration/shell.py +319 -0
  496. core/engine/orchestration/shells/__init__.py +2 -0
  497. core/engine/orchestration/shells/agent_sdk_shell.py +101 -0
  498. core/engine/orchestration/shells/llm_shell.py +108 -0
  499. core/engine/orchestration/shells/reasoning_shell.py +172 -0
  500. core/engine/orchestration/testing.py +162 -0
  501. core/engine/orchestration/worktree_manager.py +162 -0
  502. core/engine/orchestrator/__init__.py +1 -0
  503. core/engine/orchestrator/archetypes.py +74 -0
  504. core/engine/orchestrator/budgets.py +45 -0
  505. core/engine/orchestrator/classifier.py +552 -0
  506. core/engine/orchestrator/context.py +670 -0
  507. core/engine/orchestrator/context_assembler.py +590 -0
  508. core/engine/orchestrator/context_blocks.py +197 -0
  509. core/engine/orchestrator/dual_loader.py +445 -0
  510. core/engine/orchestrator/engagement.py +745 -0
  511. core/engine/orchestrator/engagement_models.py +36 -0
  512. core/engine/orchestrator/executor.py +960 -0
  513. core/engine/orchestrator/history.py +85 -0
  514. core/engine/orchestrator/injection.py +176 -0
  515. core/engine/orchestrator/loader.py +430 -0
  516. core/engine/orchestrator/specialty_resolver.py +218 -0
  517. core/engine/orchestrator/streaming.py +302 -0
  518. core/engine/orchestrator/synthesizer.py +401 -0
  519. core/engine/orchestrator/systems_map.py +283 -0
  520. core/engine/orchestrator/trust_ranking.py +32 -0
  521. core/engine/orchestrator/verification_gate.py +65 -0
  522. core/engine/playbooks/__init__.py +0 -0
  523. core/engine/playbooks/inline_suggest.py +134 -0
  524. core/engine/pm/__init__.py +1 -0
  525. core/engine/pm/approvals.py +215 -0
  526. core/engine/pm/decompose.py +188 -0
  527. core/engine/pm/gate_engine.py +300 -0
  528. core/engine/pm/git.py +322 -0
  529. core/engine/pm/initiative_states.py +63 -0
  530. core/engine/pm/locks.py +345 -0
  531. core/engine/pm/parallel.py +261 -0
  532. core/engine/pm/review.py +181 -0
  533. core/engine/pm/risk_assessor.py +69 -0
  534. core/engine/pm/tracker.py +336 -0
  535. core/engine/proactive/__init__.py +0 -0
  536. core/engine/proactive/aggregator.py +359 -0
  537. core/engine/proactive/models.py +47 -0
  538. core/engine/proactive/voice.py +80 -0
  539. core/engine/product/__init__.py +0 -0
  540. core/engine/product/acceptance.py +380 -0
  541. core/engine/product/agent_orchestrator.py +353 -0
  542. core/engine/product/ambition.py +177 -0
  543. core/engine/product/ambition_loader.py +129 -0
  544. core/engine/product/ambition_relevance.py +51 -0
  545. core/engine/product/briefing_diff.py +147 -0
  546. core/engine/product/briefing_payload.py +60 -0
  547. core/engine/product/capability_mapper.py +650 -0
  548. core/engine/product/conversation.py +230 -0
  549. core/engine/product/cost_intelligence.py +735 -0
  550. core/engine/product/decision_linker.py +423 -0
  551. core/engine/product/decisions.py +427 -0
  552. core/engine/product/discover.py +108 -0
  553. core/engine/product/discovery_sprint.py +247 -0
  554. core/engine/product/ecosystem.py +332 -0
  555. core/engine/product/enforcer.py +565 -0
  556. core/engine/product/feature_flags.py +33 -0
  557. core/engine/product/feedback_handler.py +233 -0
  558. core/engine/product/generation_engine.py +567 -0
  559. core/engine/product/innovate.py +193 -0
  560. core/engine/product/isolation.py +154 -0
  561. core/engine/product/living_graph.py +686 -0
  562. core/engine/product/living_graph_store.py +166 -0
  563. core/engine/product/map.py +524 -0
  564. core/engine/product/models.py +163 -0
  565. core/engine/product/phase_floors.py +145 -0
  566. core/engine/product/phase_inference.py +81 -0
  567. core/engine/product/pillar_aggregator.py +101 -0
  568. core/engine/product/pillars.py +77 -0
  569. core/engine/product/portfolio.py +161 -0
  570. core/engine/product/prioritizer.py +115 -0
  571. core/engine/product/question_engine.py +154 -0
  572. core/engine/product/rationale_quality.py +50 -0
  573. core/engine/product/recommendation_decay.py +89 -0
  574. core/engine/product/report_generator.py +110 -0
  575. core/engine/product/report_models.py +134 -0
  576. core/engine/product/retainer.py +207 -0
  577. core/engine/product/roadmap.py +225 -0
  578. core/engine/product/roadmap_doc.py +171 -0
  579. core/engine/product/roadmap_models.py +39 -0
  580. core/engine/product/roadmap_staleness.py +72 -0
  581. core/engine/product/runtime_bridge.py +730 -0
  582. core/engine/product/seed_generator.py +164 -0
  583. core/engine/product/seed_packs.py +439 -0
  584. core/engine/product/shadow_ranker.py +40 -0
  585. core/engine/product/smart_decompose.py +385 -0
  586. core/engine/product/spec_generator.py +981 -0
  587. core/engine/product/spec_models.py +98 -0
  588. core/engine/product/strategic_prioritizer.py +357 -0
  589. core/engine/product/strategy_ingest.py +249 -0
  590. core/engine/product/strategy_seed_data.py +189 -0
  591. core/engine/product/sub_pillar_escalation.py +30 -0
  592. core/engine/product/uncertainty.py +130 -0
  593. core/engine/reasoning/__init__.py +0 -0
  594. core/engine/reasoning/executor.py +195 -0
  595. core/engine/reasoning/models.py +35 -0
  596. core/engine/reasoning/selector.py +199 -0
  597. core/engine/reasoning/synthesis.py +61 -0
  598. core/engine/recognition/__init__.py +0 -0
  599. core/engine/recognition/decision_classifier.py +100 -0
  600. core/engine/recognition/draft_builder.py +71 -0
  601. core/engine/recognition/models.py +39 -0
  602. core/engine/reports/__init__.py +0 -0
  603. core/engine/reports/assembler.py +159 -0
  604. core/engine/reports/diagrams.py +195 -0
  605. core/engine/reports/generator.py +77 -0
  606. core/engine/reports/narrative.py +87 -0
  607. core/engine/reports/renderer.py +33 -0
  608. core/engine/reports/static/mermaid.min.js +2029 -0
  609. core/engine/reports/templates/audit.html +233 -0
  610. core/engine/reports/templates/base_styles.css +391 -0
  611. core/engine/reports/templates/snapshot.html +160 -0
  612. core/engine/research/__init__.py +1 -0
  613. core/engine/research/agent.py +574 -0
  614. core/engine/research/confidence.py +53 -0
  615. core/engine/research/fetcher.py +204 -0
  616. core/engine/research/source_registry.py +180 -0
  617. core/engine/review/__init__.py +0 -0
  618. core/engine/review/autofix.py +365 -0
  619. core/engine/review/capture.py +136 -0
  620. core/engine/review/config.py +43 -0
  621. core/engine/review/engine.py +310 -0
  622. core/engine/review/impact.py +147 -0
  623. core/engine/review/judge.py +194 -0
  624. core/engine/review/learning.py +144 -0
  625. core/engine/review/models.py +54 -0
  626. core/engine/review/providers.py +343 -0
  627. core/engine/review/taint.py +248 -0
  628. core/engine/review/testgen.py +202 -0
  629. core/engine/review/velocity.py +131 -0
  630. core/engine/review/watcher.py +153 -0
  631. core/engine/runner/__init__.py +0 -0
  632. core/engine/runner/daemon.py +306 -0
  633. core/engine/runner/models.py +36 -0
  634. core/engine/runtime/__init__.py +23 -0
  635. core/engine/runtime/adapters/__init__.py +18 -0
  636. core/engine/runtime/adapters/gemini_adapter.py +85 -0
  637. core/engine/runtime/adapters/openai_adapter.py +117 -0
  638. core/engine/runtime/auto_extract.py +82 -0
  639. core/engine/runtime/away_summary.py +71 -0
  640. core/engine/runtime/background.py +69 -0
  641. core/engine/runtime/conductor_bridge.py +103 -0
  642. core/engine/runtime/context_manager.py +230 -0
  643. core/engine/runtime/default_models.yml +43 -0
  644. core/engine/runtime/error_recovery.py +53 -0
  645. core/engine/runtime/events.py +20 -0
  646. core/engine/runtime/init_project.py +257 -0
  647. core/engine/runtime/intelligence.py +140 -0
  648. core/engine/runtime/mid_session_observer.py +183 -0
  649. core/engine/runtime/model_adapter.py +391 -0
  650. core/engine/runtime/model_config.py +362 -0
  651. core/engine/runtime/models.py +126 -0
  652. core/engine/runtime/product_detector.py +63 -0
  653. core/engine/runtime/progress.py +37 -0
  654. core/engine/runtime/prompt_cache.py +52 -0
  655. core/engine/runtime/query_loop.py +224 -0
  656. core/engine/runtime/reflection.py +126 -0
  657. core/engine/runtime/repo_map.py +254 -0
  658. core/engine/runtime/retry.py +58 -0
  659. core/engine/runtime/runtime.py +736 -0
  660. core/engine/runtime/safety.py +25 -0
  661. core/engine/runtime/session_memory.py +100 -0
  662. core/engine/runtime/session_resume.py +128 -0
  663. core/engine/runtime/token_budget.py +49 -0
  664. core/engine/runtime/token_tracker.py +82 -0
  665. core/engine/runtime/tool_executor.py +84 -0
  666. core/engine/runtime/tools/__init__.py +58 -0
  667. core/engine/runtime/tools/ace_tools.py +787 -0
  668. core/engine/runtime/tools/bash.py +65 -0
  669. core/engine/runtime/tools/browser_tool.py +416 -0
  670. core/engine/runtime/tools/file_edit.py +168 -0
  671. core/engine/runtime/tools/file_read.py +67 -0
  672. core/engine/runtime/tools/file_write.py +52 -0
  673. core/engine/runtime/tools/git_safety.py +69 -0
  674. core/engine/runtime/tools/glob_tool.py +71 -0
  675. core/engine/runtime/tools/grep.py +90 -0
  676. core/engine/runtime/tools/web_tools.py +427 -0
  677. core/engine/runtime/transcript.py +52 -0
  678. core/engine/runtime/verification_nudge.py +35 -0
  679. core/engine/scanner/__init__.py +1 -0
  680. core/engine/scanner/ast_parser.py +661 -0
  681. core/engine/scanner/bandit_runner.py +85 -0
  682. core/engine/scanner/commit_watcher.py +250 -0
  683. core/engine/scanner/coverage_extractor.py +189 -0
  684. core/engine/scanner/embed_hook.py +225 -0
  685. core/engine/scanner/external.py +368 -0
  686. core/engine/scanner/frontend_scanner.py +309 -0
  687. core/engine/scanner/hardening.py +396 -0
  688. core/engine/scanner/import_parser.py +147 -0
  689. core/engine/scanner/pattern_search.py +131 -0
  690. core/engine/scanner/pip_audit_runner.py +71 -0
  691. core/engine/scanner/ruff_runner.py +95 -0
  692. core/engine/scanner/scanner.py +1191 -0
  693. core/engine/scanner/security_scanner.py +106 -0
  694. core/engine/scanner/trufflehog_runner.py +73 -0
  695. core/engine/seam/__init__.py +0 -0
  696. core/engine/seam/backend_extractor.py +174 -0
  697. core/engine/seam/frontend_extractor.py +214 -0
  698. core/engine/seam/matcher.py +107 -0
  699. core/engine/seam/types.py +49 -0
  700. core/engine/search/__init__.py +1 -0
  701. core/engine/search/hybrid.py +139 -0
  702. core/engine/search/rerank.py +68 -0
  703. core/engine/search/semantic.py +97 -0
  704. core/engine/search/vector_store.py +112 -0
  705. core/engine/sentinel/__init__.py +0 -0
  706. core/engine/sentinel/conflict_detector.py +275 -0
  707. core/engine/sentinel/decay_manager.py +245 -0
  708. core/engine/sentinel/engines/__init__.py +202 -0
  709. core/engine/sentinel/engines/adversarial_synthesis.py +239 -0
  710. core/engine/sentinel/engines/bootstrap.py +128 -0
  711. core/engine/sentinel/engines/briefing.py +1155 -0
  712. core/engine/sentinel/engines/calibration_engine.py +119 -0
  713. core/engine/sentinel/engines/community_scanner.py +194 -0
  714. core/engine/sentinel/engines/community_summarizer.py +126 -0
  715. core/engine/sentinel/engines/competitive_observer.py +353 -0
  716. core/engine/sentinel/engines/correlation_engine.py +234 -0
  717. core/engine/sentinel/engines/decision_capability_backfill.py +59 -0
  718. core/engine/sentinel/engines/domain_research.py +743 -0
  719. core/engine/sentinel/engines/ecosystem_scanner.py +537 -0
  720. core/engine/sentinel/engines/edge_inference_sweeper.py +34 -0
  721. core/engine/sentinel/engines/effectiveness_recomputer.py +37 -0
  722. core/engine/sentinel/engines/embedding_reconciler.py +106 -0
  723. core/engine/sentinel/engines/evaluator_honesty.py +182 -0
  724. core/engine/sentinel/engines/failure_analysis.py +203 -0
  725. core/engine/sentinel/engines/gap_analyzer.py +845 -0
  726. core/engine/sentinel/engines/gap_researcher.py +306 -0
  727. core/engine/sentinel/engines/github_release_watcher.py +182 -0
  728. core/engine/sentinel/engines/idea_incubator.py +67 -0
  729. core/engine/sentinel/engines/intelligence_optimizer.py +90 -0
  730. core/engine/sentinel/engines/knowledge_verifier.py +259 -0
  731. core/engine/sentinel/engines/metabolism_drainer.py +38 -0
  732. core/engine/sentinel/engines/outcome_sweeper.py +86 -0
  733. core/engine/sentinel/engines/overthinking_observer.py +97 -0
  734. core/engine/sentinel/engines/perspective_gaps.py +193 -0
  735. core/engine/sentinel/engines/pm_optimizer.py +125 -0
  736. core/engine/sentinel/engines/provenance_reconciler.py +56 -0
  737. core/engine/sentinel/engines/question_generator.py +64 -0
  738. core/engine/sentinel/engines/roadmap_reconciler.py +65 -0
  739. core/engine/sentinel/engines/seam_analyzer.py +106 -0
  740. core/engine/sentinel/engines/self_optimizer.py +389 -0
  741. core/engine/sentinel/engines/session_compressor.py +321 -0
  742. core/engine/sentinel/engines/simplicity_audit.py +341 -0
  743. core/engine/sentinel/engines/skill_emergence.py +44 -0
  744. core/engine/sentinel/engines/specialty_deepener.py +228 -0
  745. core/engine/sentinel/engines/task_grading_engine.py +116 -0
  746. core/engine/sentinel/engines/template_detector.py +41 -0
  747. core/engine/sentinel/engines/voice_audit_sweeper.py +28 -0
  748. core/engine/sentinel/engines/voice_thread_sweeper.py +92 -0
  749. core/engine/sentinel/engines/whitespace_engine.py +290 -0
  750. core/engine/sentinel/engines/wiring_auditor.py +135 -0
  751. core/engine/sentinel/findings.py +122 -0
  752. core/engine/sentinel/registry.py +73 -0
  753. core/engine/sentinel/scheduler.py +350 -0
  754. core/engine/sentinel/triggers.py +131 -0
  755. core/engine/session/__init__.py +4 -0
  756. core/engine/session/adapter.py +32 -0
  757. core/engine/session/adapters/__init__.py +0 -0
  758. core/engine/session/adapters/claude_code.py +51 -0
  759. core/engine/session/adapters/generic.py +47 -0
  760. core/engine/session/models.py +112 -0
  761. core/engine/session/registry.py +25 -0
  762. core/engine/skills/__init__.py +0 -0
  763. core/engine/skills/executor.py +605 -0
  764. core/engine/skills/models.py +166 -0
  765. core/engine/skills/selector.py +160 -0
  766. core/engine/solution.py +29 -0
  767. core/engine/synthesis/__init__.py +0 -0
  768. core/engine/synthesis/signal_store.py +155 -0
  769. core/engine/synthesis/trigger.py +213 -0
  770. core/engine/templates/__init__.py +1 -0
  771. core/engine/templates/emergence.py +107 -0
  772. core/engine/templates/instantiate.py +148 -0
  773. core/engine/templates/models.py +41 -0
  774. core/engine/templates/suggest.py +195 -0
  775. core/engine/verification/__init__.py +26 -0
  776. core/engine/verification/behavioral.py +81 -0
  777. core/engine/verification/benchmark.py +233 -0
  778. core/engine/verification/checks/__init__.py +2 -0
  779. core/engine/verification/checks/code_inspection.py +117 -0
  780. core/engine/verification/checks/execution_check.py +176 -0
  781. core/engine/verification/checks/integration.py +143 -0
  782. core/engine/verification/grader.py +237 -0
  783. core/engine/verification/honesty.py +128 -0
  784. core/engine/verification/models.py +109 -0
  785. core/engine/verification/quality_gate.py +167 -0
  786. core/engine/version.py +3 -0
  787. core/engine/voice/__init__.py +1 -0
  788. core/engine/voice/anti_patterns.py +53 -0
  789. core/engine/voice/audit.py +51 -0
  790. core/engine/voice/audit_runner.py +102 -0
  791. core/engine/voice/briefing.py +147 -0
  792. core/engine/voice/composition.py +47 -0
  793. core/engine/voice/detectors/__init__.py +0 -0
  794. core/engine/voice/detectors/drift_detector.py +77 -0
  795. core/engine/voice/detectors/recommendation_shift_detector.py +125 -0
  796. core/engine/voice/dispatch.py +20 -0
  797. core/engine/voice/feature_flag.py +59 -0
  798. core/engine/voice/hashing.py +35 -0
  799. core/engine/voice/render_context.py +19 -0
  800. core/engine/voice/renderers.py +173 -0
  801. core/engine/voice/rules.py +66 -0
  802. core/engine/voice/salience.py +26 -0
  803. core/engine/voice/static_copy_extractor.py +132 -0
  804. core/engine/voice/stream.py +388 -0
  805. core/engine/voice/surfaces.py +124 -0
  806. core/engine/voice/thread.py +150 -0
  807. core/engine/voice/thread_event.py +23 -0
  808. core/engine/voice/transitions.py +108 -0
  809. core/engine/worker/__init__.py +0 -0
  810. core/engine/worker/app.py +790 -0
  811. core/engine/worker/bus_bridge.py +71 -0
  812. core/engine/worker/classifier.py +211 -0
  813. core/engine/worker/feature_flag.py +31 -0
  814. core/engine/worker/fs_watcher.py +289 -0
  815. core/engine/worker/gate.py +204 -0
  816. core/engine/worker/harness.py +156 -0
  817. core/engine/worker/health.py +68 -0
  818. core/engine/worker/intelligence.py +126 -0
  819. core/engine/worker/knowledge.py +175 -0
  820. core/engine/worker/models.py +90 -0
  821. core/engine/worker/processor.py +228 -0
  822. core/engine/worker/session.py +188 -0
  823. core/engine/worker/signals.py +91 -0
  824. core/engine/worker/start.py +34 -0
  825. core/schema/__init__.py +1 -0
  826. core/schema/v001_structural.surql +117 -0
  827. core/schema/v002_intelligence.surql +134 -0
  828. core/schema/v003_maturation.surql +35 -0
  829. core/schema/v004_documents.surql +23 -0
  830. core/schema/v005_synapses.surql +29 -0
  831. core/schema/v006_flow_config.surql +17 -0
  832. core/schema/v007_scheduler_signals.surql +67 -0
  833. core/schema/v008_briefings.surql +27 -0
  834. core/schema/v009_execution.surql +10 -0
  835. core/schema/v010_skills.surql +45 -0
  836. core/schema/v011_reasoning.surql +47 -0
  837. core/schema/v012_pm.surql +130 -0
  838. core/schema/v013_ideas_playbooks.surql +59 -0
  839. core/schema/v014_portal.surql +77 -0
  840. core/schema/v015_advanced_intelligence.surql +57 -0
  841. core/schema/v016_portal.surql +5 -0
  842. core/schema/v017_runner.surql +43 -0
  843. core/schema/v018_chat_linked.surql +4 -0
  844. core/schema/v019_jobs_templates.surql +53 -0
  845. core/schema/v020_measurement.surql +59 -0
  846. core/schema/v021_evolution.surql +47 -0
  847. core/schema/v022_idea_conversations.surql +8 -0
  848. core/schema/v023_orchestration_events.surql +32 -0
  849. core/schema/v024_experiment_narratives.surql +13 -0
  850. core/schema/v025_dual_graphs.surql +40 -0
  851. core/schema/v026_engagement.surql +12 -0
  852. core/schema/v027_self_optimizer.surql +43 -0
  853. core/schema/v028_onboarding.surql +6 -0
  854. core/schema/v029_domain_path_optional.surql +11 -0
  855. core/schema/v030_competitive_observer.surql +37 -0
  856. core/schema/v031_graph.surql +343 -0
  857. core/schema/v032_product_awareness.surql +195 -0
  858. core/schema/v033_ecosystem.surql +39 -0
  859. core/schema/v034_product_direction_flex.surql +149 -0
  860. core/schema/v035_flexible_object_fields.surql +33 -0
  861. core/schema/v036_vision_themes.surql +30 -0
  862. core/schema/v037_four_layer_live.surql +113 -0
  863. core/schema/v038_drop_graph_shadows.surql +15 -0
  864. core/schema/v039_embeddings.surql +10 -0
  865. core/schema/v040_connected_graph.surql +77 -0
  866. core/schema/v041_initiative_lifecycle.surql +23 -0
  867. core/schema/v042_agent_config.surql +23 -0
  868. core/schema/v043_composition_memory.surql +51 -0
  869. core/schema/v044_schemaless_nested_objects.surql +61 -0
  870. core/schema/v045_atc_flight.surql +23 -0
  871. core/schema/v046_verification_v2.surql +79 -0
  872. core/schema/v047_pr_review.surql +21 -0
  873. core/schema/v048_review_reactions.surql +14 -0
  874. core/schema/v049_project_scoping.surql +32 -0
  875. core/schema/v050_engine_schedule_override.surql +14 -0
  876. core/schema/v051_session_digest.surql +20 -0
  877. core/schema/v052_capability_lifecycle.surql +78 -0
  878. core/schema/v053_code_intelligence.surql +53 -0
  879. core/schema/v054_hierarchy_rename.surql +373 -0
  880. core/schema/v055_resource_lock_product.surql +19 -0
  881. core/schema/v056_product_repo_detection.surql +7 -0
  882. core/schema/v057_cognition.surql +37 -0
  883. core/schema/v058_org_to_product_rename.surql +56 -0
  884. core/schema/v059_org_to_product_remaining.surql +192 -0
  885. core/schema/v060_capability_quality_importance.surql +9 -0
  886. core/schema/v061_drop_org_workspace.surql +177 -0
  887. core/schema/v062_intelligence_indexes.surql +28 -0
  888. core/schema/v063_drop_org_table.surql +30 -0
  889. core/schema/v064_competitor_org_to_product.surql +30 -0
  890. core/schema/v065_backfill_product.surql +16 -0
  891. core/schema/v066_benchmark.surql +50 -0
  892. core/schema/v067_failure_memory.surql +21 -0
  893. core/schema/v068_self_improvement.surql +25 -0
  894. core/schema/v069_routing_feedback.surql +15 -0
  895. core/schema/v070_graph_decision_scanner_fields.surql +5 -0
  896. core/schema/v071_reports.surql +6 -0
  897. core/schema/v072_decision_discipline_hint.surql +8 -0
  898. core/schema/v073_capability_finding.surql +24 -0
  899. core/schema/v074_quality_confidence.surql +5 -0
  900. core/schema/v075_quality_snapshot.surql +15 -0
  901. core/schema/v076_correlation_signal.surql +15 -0
  902. core/schema/v077_competitor_capability.surql +25 -0
  903. core/schema/v078_competitor_seeds.surql +163 -0
  904. core/schema/v079_whitespace_opportunity.surql +33 -0
  905. core/schema/v080_strategic_score.surql +12 -0
  906. core/schema/v081_ace_session.surql +10 -0
  907. core/schema/v082_event_log.surql +15 -0
  908. core/schema/v083_staleness_and_file_gate.surql +34 -0
  909. core/schema/v084_extended_search.surql +57 -0
  910. core/schema/v085_events.surql +25 -0
  911. core/schema/v086_insight_utilization.surql +12 -0
  912. core/schema/v087_classification_cache.surql +9 -0
  913. core/schema/v088_ab_result.surql +20 -0
  914. core/schema/v089_ambition_substrate.surql +89 -0
  915. core/schema/v090_product_feature_flag.surql +12 -0
  916. core/schema/v091_partnership_entities.surql +38 -0
  917. core/schema/v092_voice_rendering.surql +34 -0
  918. core/schema/v093_voice_continuity.surql +34 -0
  919. core/schema/v094_worker_canvas_bridge.surql +12 -0
  920. core/schema/v095_closed_loop.surql +34 -0
  921. core/schema/v096_voice_thread_actions.surql +22 -0
  922. core/schema/v097_seed_history_indexes.surql +22 -0
  923. core/schema/v098_capability_seed_origin.surql +14 -0
  924. core/schema/v099_briefing_seed_origin.surql +15 -0
  925. core/schema/v100_onboarding_conversation.surql +17 -0
  926. core/schema/v101_reasoning_journey.surql +41 -0
  927. core/schema/v102_voice_audit_run.surql +14 -0
  928. core/schema/v103_canvas.surql +62 -0
  929. core/schema/v104_foresight_phase1.surql +44 -0
  930. core/schema/v105_rollout_cache.surql +3 -0
  931. core/schema/v106_orchestration_channel.surql +31 -0
  932. core/schema/v107_world_model.surql +26 -0
  933. core/schema/v108_decision_capability_inference.surql +24 -0
  934. core/schema/v109_decision_recency_index.surql +17 -0
  935. core/schema/v110_cost_aware_reasoning.surql +18 -0
  936. core/schema/v111_team_build_signal_fields.surql +17 -0
  937. core/schema/v112_insight_needs_embedding.surql +11 -0
  938. core/schema/v113_insight_legacy_field_widen.surql +30 -0
  939. core/schema/v114_forget_log.surql +20 -0
  940. core/schema/v115_forget_log_tamper_detect.surql +22 -0
  941. core/schema/v116_insight_provenance.surql +13 -0
  942. core/schema/v117_reasoning_run.surql +31 -0
  943. core/schema/v118_tool_perf.surql +19 -0
  944. core/schema/v119_instrument_perf_product_index.surql +12 -0
  945. core/schema/v120_routing_perf.surql +22 -0
  946. core/schema/v121_reasoning_run_trace_id.surql +10 -0
  947. core/schema/v122_run_event_seq.surql +15 -0
  948. core/schema/v123_graph_tension_event.surql +11 -0
  949. core/schema/v124_roadmap_phase.surql +19 -0
  950. core/schema/v125_agent_spec_strategy_status.surql +15 -0
  951. core/schema/v126_action_outcome.surql +24 -0
  952. core/schema/v127_action_outcome_profile.surql +12 -0
  953. core/schema/v129_afferent_edges.surql +21 -0
  954. core/schema/v130_reasoning_event.surql +12 -0
  955. core/schema/v131_task_grader_score.surql +9 -0
  956. core/schema/v132_calibrated_assessment_float.surql +12 -0
  957. core/schema/v133_community_summary.surql +14 -0
  958. core/schema/v134_reasoning_fork.surql +7 -0
  959. core/schema/v135_arm_run.surql +49 -0
  960. core/schema/v136_grounds_edge.surql +85 -0
  961. core/schema/v137_reeval_request.surql +32 -0
  962. core/schema/v138_reeval_rederivation.surql +18 -0
  963. core/schema/v139_reeval_freshness_marked.surql +24 -0
  964. core/schema/v140_observation_workspace_remove.surql +22 -0
  965. core/schema/v141_agent_feedback_org_remove.surql +18 -0
  966. core/schema/v142_relational_assertions.surql +104 -0
  967. evaluations/README.md +61 -0
  968. evaluations/__init__.py +1 -0
  969. evaluations/fixtures/decision_delta_contract_v1.json +189 -0
  970. evaluations/fixtures/m5_ic_01_live_protocol_v1.json +104 -0
  971. evaluations/fixtures/offline_contract.json +41 -0
  972. evaluations/results/decision_delta_contract_v1.json +1744 -0
  973. evaluations/results/decision_delta_contract_v1.md +127 -0
  974. evaluations/results/m2_signature_evaluation.json +401 -0
  975. evaluations/results/m2_signature_evaluation.md +24 -0
  976. evaluations/results/m5_ic_01_live_inputs_v1.json +455 -0
  977. evaluations/results/m5_ic_01_live_receipts_v1.json +600 -0
  978. evaluations/results/m5_ic_01_live_receipts_v1.md +52 -0
  979. evaluations/results/offline_contract.json +184 -0
  980. evaluations/results/offline_contract.md +30 -0
  981. extensions/README.md +107 -0
  982. extensions/__init__.py +14 -0
  983. extensions/reference/__init__.py +9 -0
  984. extensions/reference/extension.py +109 -0
  985. extensions/reference/instruments/__init__.py +0 -0
  986. extensions/reference/instruments/framing.py +57 -0
  987. extensions/reference/instruments/multi_voice_engage.py +47 -0
  988. extensions/reference/recipe.py +87 -0
  989. extensions/reference/sentinels.py +22 -0
  990. extensions/reference/tools/__init__.py +0 -0
  991. extensions/reference/tools/product_pulse.py +103 -0
  992. scripts/__init__.py +1 -0
  993. scripts/demo_relational_assertions.py +64 -0
  994. scripts/health_check.py +80 -0
  995. scripts/migrate_relational_assertions.py +25 -0
  996. scripts/release_inventory.py +109 -0
  997. scripts/scaffold_extension.py +143 -0
  998. scripts/schema_apply.py +200 -0
  999. scripts/secret_scan.py +213 -0
  1000. scripts/verify_f0_persistence.py +414 -0
  1001. scripts/verify_golden_path.py +86 -0
  1002. scripts/verify_m3_rehearsal.py +127 -0
  1003. scripts/verify_signature_scenario.py +150 -0
ace/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """Public Python package identity for ACE."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ Notable user- and contributor-visible changes are recorded here.
4
+
5
+ ## 0.1.0
6
+
7
+ - Initial developer preview of the `ace-core` Python distribution, preserving the `ace` import
8
+ package, `ace` CLI command, and version `0.1.0`.
9
+ - The supported public interaction boundary is the thin 11-tool MCP package and CLI.
10
+ - Atrium remains a separate experimental visual-product/research track and releases as public
11
+ repository beta source while staying outside the Python wheel/sdist, golden path,
12
+ supported-runtime claims, and supported release contract.
13
+ - The frozen `ace-preview-surface-v1` M2 scenario proved one durable preference survived restart
14
+ and materially affected a later decision. Its matched-model evidence is n=1 and does not support
15
+ a general superiority claim.
16
+ - Python packaging includes the kernel, CLI, thin MCP client, schema migrations, reference
17
+ extension, evaluation material, public documentation, license, and notice while excluding
18
+ Atrium beta source and local state.
19
+ - `ace doctor` validates a protected authenticated request and reports the effective provider-neutral
20
+ model policy; `ace model-policy` exposes fast/capable/frontier mapping and degraded state.
21
+ - Supported Python is 3.12; the SurrealDB Python client is constrained to the compatible 1.x line.
22
+ - The heavyweight CodeSage/PyTorch embedding backend is now an explicit `codesage` extra; the
23
+ default ONNX-backed install no longer pulls GPU/CUDA packages into the release container.
24
+
25
+ Release entries separate supported, experimental, fixed, security, migration, and known-
26
+ limitation notes.
@@ -0,0 +1,156 @@
1
+ # Contributing to ACE
2
+
3
+ ACE is an open-source reasoning kernel — the engine that powers partner-team reasoning across any
4
+ domain. The 0.1.0 contribution path covers the kernel, CLI/thin MCP contract, evaluation, docs, and
5
+ extension ecosystem. Atrium is a separately gated experimental visual-product/research track.
6
+
7
+ **Before you start, please read:**
8
+ - [`ROADMAP.md`](ROADMAP.md) — the public priorities and longer-term direction
9
+ - [`docs/capability-maturity.md`](docs/capability-maturity.md) — which surfaces are supported, experimental, conditional, dormant, or planned
10
+ - [`docs/architecture.md`](docs/architecture.md) — how the system works today
11
+ - [`docs/build-your-first-extension.md`](docs/build-your-first-extension.md) — the contributor entry point if you're building an extension
12
+
13
+ ---
14
+
15
+ ## Setup
16
+
17
+ Prerequisites are Git, Python 3.12, `uv`, and Docker Engine with Compose v2. SurrealDB listens on
18
+ **8001**, not its upstream default port. Atrium's experimental visual-product/research track has a
19
+ separate Node.js toolchain and is not part of preview setup. The ACE kernel is Apache-2.0; the
20
+ separately run SurrealDB server is
21
+ source-available under BSL 1.1 rather than OSI open source.
22
+
23
+ ```bash
24
+ # Backend (Python 3.12)
25
+ git clone <your-clone-url> # e.g. your fork of this repository
26
+ cd ace # the cloned directory
27
+ cp .env.example .env # set JWT_SECRET, API_KEY, and one real provider
28
+ docker compose -f infra/docker-compose.yml up -d surrealdb
29
+ uv sync # installs Python deps
30
+ uv run python scripts/schema_apply.py
31
+ uv run uvicorn core.engine.api.main:app --host 127.0.0.1 --port 3000
32
+
33
+ # In another terminal
34
+ uv run ace login --api-key '<API_KEY from .env>'
35
+ uv run ace doctor
36
+ uv run ace model-policy
37
+ uv run python scripts/verify_golden_path.py
38
+
39
+ ```
40
+
41
+ See the [README](README.md) quickstart for the authoritative end-to-end setup.
42
+
43
+ MCP and CLI are the developer-preview interaction paths. Atrium—the experimental
44
+ visual-product/research track—is present as a repository beta, not a supported Python artifact or
45
+ prerequisite for contributing to the engine.
46
+
47
+ ---
48
+
49
+ ## How to contribute
50
+
51
+ ### 1. Find or open an issue
52
+
53
+ - Bugs: include reproduction steps, expected vs actual behavior, and the relevant subsystem (classifier / composer / deep committee / canvas / sentinel / foresight).
54
+ - Features: open a discussion first if the change touches an architectural contract from [`docs/architecture.md`](docs/architecture.md).
55
+
56
+ ### 2. Pick the right surface
57
+
58
+ | You want to... | Touch this |
59
+ |---|---|
60
+ | Add a domain-specific recipe, persona, framework, or tool | An extension — see [`docs/build-your-first-extension.md`](docs/build-your-first-extension.md). Don't add it to the kernel. |
61
+ | Fix a kernel bug or improve a layer's behavior | `core/engine/{orchestrator,orchestration,cognition,capture,sentinel,foresight}/` |
62
+ | Add or evaluate an orchestration pattern | `core/engine/orchestration/` and `tests/orchestration/` |
63
+ | Add a MAKE or SHIP capability | `core/engine/arms/` with focused tests under `tests/` |
64
+ | Propose an Atrium HCI research change | Begin with the isolated research packet; do not expand the preview artifact |
65
+ | Improve evaluation and conformance | `tests/`, especially orchestration, intelligence, extension, and naked-kernel boundaries |
66
+
67
+ ### 3. Run the tests
68
+
69
+ ```bash
70
+ uv run pytest path/to/test_file.py -q # focused check while iterating
71
+ make test-fast # pytest excluding e2e
72
+ ACE_DISABLE_EXTENSIONS=1 uv run pytest -m "not e2e and not requires_extensions" -q --tb=short
73
+ uv run ruff check <changed-python-files>
74
+ ```
75
+
76
+ For extension changes, also run the extension's own test suite if it ships one (e.g. `uv run pytest extensions/<your-extension>/tests/ -m "not e2e"`); the reference extension (`extensions/reference/`) is covered by `tests/extensions/`.
77
+
78
+ Markers distinguish `e2e` and `requires_extensions` work from the default deterministic suite.
79
+ Do not make provider-quality claims from credential-free fixtures; follow
80
+ [`evaluations/README.md`](evaluations/README.md) for matched-model evidence and paid-live guards.
81
+
82
+ ### 4. Conventions
83
+
84
+ **Commits:**
85
+ - Conventional commits format: `feat(area): summary` / `fix(area):` / `docs(area):` / `chore(area):` / `refactor(area):` / `test(area):`
86
+ - Body explains the *why*, not the *what* (the diff shows what)
87
+ - No AI co-author attribution — write what you wrote
88
+ - Never use `--no-verify` to skip hooks; fix the underlying issue
89
+
90
+ **Code:**
91
+ - Python: snake_case everything (modules, functions, files). Use `get_llm()` rather than raw provider imports.
92
+ - SurrealDB access uses `from core.engine.core.db import pool`, `async with pool.connection() as db`,
93
+ `parse_rows(result)` for results, and `serialize_record(obj)` before JSON output. Add migrations
94
+ under `core/schema/`, apply them with `uv run python scripts/schema_apply.py`, and test
95
+ against namespace `ace_test`.
96
+ - TypeScript: no inline `color:` / `font-size:` / `padding:` — compose from `core/ui/canvas/src/design/components/`. New patterns extend the design system *first*, get used *second*.
97
+ - Tests live next to the code they cover. Extension tests in `<extension>/tests/`, kernel tests in `tests/`.
98
+
99
+ **Pull requests:**
100
+ - One concept per PR. Split big changes into atomic commits with tests green between them.
101
+ - Reference the issue (`Fixes #N`) if applicable
102
+ - Describe the *blast radius* — which subsystems, which tests, what could break
103
+ - Wait for CI green before requesting review
104
+ - Include focused and required conformance commands with exact results, documentation changes for
105
+ public behavior, and evidence for maturity or performance claims. Link roadmap work to a public
106
+ issue or Project item when one exists.
107
+ - Never include credentials, private graph exports, proprietary fixtures, or private-extension code.
108
+
109
+ The thin 11-tool MCP package and CLI are the preview contracts. The broad HTTP API, internal MCP
110
+ host, Atrium UI seams, and experimental extension hooks may change. Propose stable-contract changes
111
+ before implementation using [`docs/governance.md`](docs/governance.md).
112
+
113
+ ### 5. Architectural contracts (don't break these)
114
+
115
+ These are described in [`docs/architecture.md`](docs/architecture.md). They are stable; changes to them require an explicit decision:
116
+
117
+ - **Provider Agnosticism** — no specific LLM provider in engine imports. Always `get_llm()`.
118
+ - **Surface Agnosticism** — engine emits events; surfaces subscribe. No UI imports in engine modules.
119
+ - **Modularity** — capabilities are recipe + instrument combinations addressable by slug.
120
+ - **Decision Lineage** — every meaningful choice gets a `graph_decision` row.
121
+ - **Forward Momentum** — every synthesis emits a forward-looking next move.
122
+ - **Nested Partnership** — `Human ↔ ACE ↔ LLM`. The LLM is computation, not loop controller.
123
+ - **Adaptive Framework Orchestration** — recipes select frameworks dynamically.
124
+ - **Mandatory Design System Use** — every UI component composes from `core/ui/canvas/src/design/components/`.
125
+
126
+ ### 6. Extensions: the recommended contribution path
127
+
128
+ Don't copy `extensions/reference/` by hand — scaffold it:
129
+
130
+ ```bash
131
+ python -m scripts.scaffold_extension <your_domain>
132
+ ```
133
+
134
+ This copies the shipped reference extension and renames every identifier for
135
+ you (class, discipline, recipe, tool), so your starting point is a fully
136
+ wired, fully working extension, not a stub. From there:
137
+
138
+ 1. Wire your recipes, instruments, personas, frameworks through the `Registry` facade.
139
+ 2. Register via `ace.extensions` Python entry point (the scaffold wires this too).
140
+ 3. Your extension package carries its own `tests/` — run them with `pytest` from your package. (Extensions living in-tree under `extensions/` are still picked up by the kernel's test discovery.)
141
+
142
+ The tutorial is canonical: [`docs/build-your-first-extension.md`](docs/build-your-first-extension.md) walks the full flow, file by file. Exact `Registry` contract: [`docs/extension-api.md`](docs/extension-api.md).
143
+
144
+ ---
145
+
146
+ ## Discussion
147
+
148
+ - **GitHub Issues** — bugs, feature requests
149
+ - **GitHub Discussions** — architecture questions, design discussions, "is this an extension or a kernel change?"
150
+ - **Security** — see [`SECURITY.md`](SECURITY.md). Do not file security issues in public GitHub Issues.
151
+
152
+ ---
153
+
154
+ ## License
155
+
156
+ By contributing, you agree that your contributions will be licensed under the Apache License 2.0 (see [`LICENSE`](LICENSE)). You retain copyright to your contributions; you grant the project a perpetual license to use them under Apache-2.0.