behive 0.6.0__tar.gz → 0.7.0__tar.gz

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 (399) hide show
  1. behive-0.7.0/PKG-INFO +519 -0
  2. behive-0.7.0/README.md +451 -0
  3. {behive-0.6.0 → behive-0.7.0}/pyproject.toml +6 -2
  4. {behive-0.6.0 → behive-0.7.0}/src/behive/__init__.py +1 -1
  5. {behive-0.6.0 → behive-0.7.0}/src/behive/brand_check.py +4 -4
  6. {behive-0.6.0 → behive-0.7.0}/src/behive/cli.py +33 -2
  7. {behive-0.6.0 → behive-0.7.0}/src/behive/client.py +12 -2
  8. {behive-0.6.0 → behive-0.7.0}/src/behive/compat/shims.py +0 -1
  9. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/__main__.py +2 -2
  10. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/api_scout.py +202 -41
  11. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/bionic_quorum.py +0 -1
  12. behive-0.7.0/src/behive/engine/byok.py +221 -0
  13. behive-0.7.0/src/behive/engine/cellar.py +659 -0
  14. behive-0.7.0/src/behive/engine/claim_ids.py +26 -0
  15. behive-0.7.0/src/behive/engine/claim_synthesis.py +482 -0
  16. behive-0.7.0/src/behive/engine/claims_fallback.py +186 -0
  17. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/db.py +21 -27
  18. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/db_helpers.py +32 -0
  19. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/drones.py +44 -13
  20. behive-0.7.0/src/behive/engine/entity_remap.py +102 -0
  21. behive-0.7.0/src/behive/engine/entity_resolver.py +290 -0
  22. behive-0.7.0/src/behive/engine/fact_synth.py +296 -0
  23. behive-0.7.0/src/behive/engine/facts_to_claims.py +118 -0
  24. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/falsifier.py +4 -4
  25. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/graph_engine.py +8 -4
  26. behive-0.7.0/src/behive/engine/graph_rebuild.py +120 -0
  27. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/harvest.py +79 -5
  28. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/hive_api_sources.json +184 -2
  29. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/llm.py +367 -15
  30. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/master_intelligence.py +13 -5
  31. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/orchestrator.py +1071 -738
  32. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/prescout.py +51 -19
  33. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/process.py +624 -263
  34. behive-0.7.0/src/behive/engine/qdrant_claims.py +128 -0
  35. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_calibrator.py +0 -2
  36. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_feedback.py +8 -5
  37. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_primer.py +22 -10
  38. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/scout.py +326 -195
  39. behive-0.7.0/src/behive/engine/search_backends.py +895 -0
  40. behive-0.7.0/src/behive/engine/source_extraction.py +315 -0
  41. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/synth.py +5 -5
  42. behive-0.7.0/src/behive/engine/triples.py +146 -0
  43. behive-0.7.0/src/behive/engine/wto.py +84 -0
  44. {behive-0.6.0 → behive-0.7.0}/src/behive/federation.py +104 -189
  45. behive-0.7.0/src/behive/hygiene.py +159 -0
  46. {behive-0.6.0 → behive-0.7.0}/src/behive/mcp_server.py +55 -24
  47. {behive-0.6.0 → behive-0.7.0}/src/behive/server.py +442 -62
  48. behive-0.7.0/src/behive/sr_bridge.py +372 -0
  49. behive-0.7.0/src/behive.egg-info/PKG-INFO +519 -0
  50. {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/SOURCES.txt +104 -0
  51. {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/requires.txt +6 -1
  52. {behive-0.6.0 → behive-0.7.0}/tests/test_80_async_deep.py +15 -4
  53. {behive-0.6.0 → behive-0.7.0}/tests/test_80_async_omega.py +2 -2
  54. {behive-0.6.0 → behive-0.7.0}/tests/test_80_async_process.py +3 -2
  55. {behive-0.6.0 → behive-0.7.0}/tests/test_80_coverage_buster.py +1 -0
  56. {behive-0.6.0 → behive-0.7.0}/tests/test_80_deep_dive.py +1 -0
  57. {behive-0.6.0 → behive-0.7.0}/tests/test_80_integration.py +3 -0
  58. {behive-0.6.0 → behive-0.7.0}/tests/test_80_integration_h.py +1 -0
  59. {behive-0.6.0 → behive-0.7.0}/tests/test_80_omega.py +17 -1
  60. {behive-0.6.0 → behive-0.7.0}/tests/test_80_orch_plan_deep.py +3 -1
  61. {behive-0.6.0 → behive-0.7.0}/tests/test_80_orchestrator_deep_v2.py +30 -32
  62. {behive-0.6.0 → behive-0.7.0}/tests/test_80_planner_entities.py +5 -4
  63. {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_v3.py +4 -2
  64. {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_killer.py +12 -5
  65. {behive-0.6.0 → behive-0.7.0}/tests/test_80_pure_functions.py +1 -0
  66. behive-0.7.0/tests/test_a3_busy_wait.py +171 -0
  67. behive-0.7.0/tests/test_a3_continuation_pg.py +230 -0
  68. behive-0.7.0/tests/test_a3_incremental_pg.py +334 -0
  69. behive-0.7.0/tests/test_a3_parallel_pg.py +301 -0
  70. behive-0.7.0/tests/test_a3_phase_deadline.py +49 -0
  71. behive-0.7.0/tests/test_a3_round_progress_pg.py +125 -0
  72. behive-0.7.0/tests/test_api_gap_evidence_boundary.py +46 -0
  73. {behive-0.6.0 → behive-0.7.0}/tests/test_branch_coverage.py +7 -3
  74. behive-0.7.0/tests/test_byok_gap.py +27 -0
  75. behive-0.7.0/tests/test_cellar_phrase.py +33 -0
  76. behive-0.7.0/tests/test_claim_persistence_pg.py +204 -0
  77. behive-0.7.0/tests/test_claim_synthesis.py +184 -0
  78. behive-0.7.0/tests/test_claim_synthesis_names.py +356 -0
  79. behive-0.7.0/tests/test_claim_synthesis_pg.py +320 -0
  80. behive-0.7.0/tests/test_claims_fallback.py +23 -0
  81. behive-0.7.0/tests/test_content_relevance.py +414 -0
  82. behive-0.7.0/tests/test_content_relevance_pg.py +87 -0
  83. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_40pct_push.py +3 -1
  84. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_ceiling_breaker.py +2 -1
  85. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_deep2.py +9 -3
  86. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_massive.py +6 -2
  87. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_server_endpoints.py +3 -2
  88. {behive-0.6.0 → behive-0.7.0}/tests/test_coverage_phase7.py +7 -3
  89. behive-0.7.0/tests/test_credential_isolation.py +76 -0
  90. behive-0.7.0/tests/test_curia_phrase.py +26 -0
  91. behive-0.7.0/tests/test_db_url_contract.py +37 -0
  92. behive-0.7.0/tests/test_diag1112_content_ids_pg.py +98 -0
  93. behive-0.7.0/tests/test_diag1112_ddl_guard_pg.py +189 -0
  94. behive-0.7.0/tests/test_diag1112_mission_status.py +255 -0
  95. behive-0.7.0/tests/test_diag1112_mission_status_pg.py +241 -0
  96. behive-0.7.0/tests/test_diag1112_phase_deadline.py +259 -0
  97. behive-0.7.0/tests/test_diag1112_scout_sequence_pg.py +180 -0
  98. behive-0.7.0/tests/test_diag1112_static_fixes.py +98 -0
  99. behive-0.7.0/tests/test_diag1112_test_infra.py +136 -0
  100. behive-0.7.0/tests/test_diag1112_wikipedia_ua.py +116 -0
  101. behive-0.7.0/tests/test_diag1117_concurrency.py +98 -0
  102. behive-0.7.0/tests/test_diag1117_mission_tag.py +146 -0
  103. behive-0.7.0/tests/test_diag1117_sr_bridge_pg.py +189 -0
  104. behive-0.7.0/tests/test_discovery_anaphora.py +34 -0
  105. behive-0.7.0/tests/test_discovery_backends.py +394 -0
  106. behive-0.7.0/tests/test_discovery_backends_health.py +167 -0
  107. behive-0.7.0/tests/test_discovery_planner.py +73 -0
  108. behive-0.7.0/tests/test_discovery_planner_artifact.py +90 -0
  109. behive-0.7.0/tests/test_discovery_planner_fallback.py +52 -0
  110. behive-0.7.0/tests/test_discovery_planner_geo.py +52 -0
  111. behive-0.7.0/tests/test_discovery_planner_kinds.py +68 -0
  112. behive-0.7.0/tests/test_discovery_planner_primer.py +64 -0
  113. behive-0.7.0/tests/test_discovery_planner_validation.py +157 -0
  114. behive-0.7.0/tests/test_discovery_ranking.py +102 -0
  115. behive-0.7.0/tests/test_discovery_scout_execution.py +202 -0
  116. behive-0.7.0/tests/test_discovery_scout_scoring.py +187 -0
  117. {behive-0.6.0 → behive-0.7.0}/tests/test_e2e_pipeline.py +2 -1
  118. behive-0.7.0/tests/test_entity_remap.py +9 -0
  119. behive-0.7.0/tests/test_entity_resolver_domain_match.py +146 -0
  120. behive-0.7.0/tests/test_eval_claims_pg.py +45 -0
  121. behive-0.7.0/tests/test_eval_export.py +23 -0
  122. behive-0.7.0/tests/test_eval_fetch.py +55 -0
  123. behive-0.7.0/tests/test_eval_judge.py +116 -0
  124. behive-0.7.0/tests/test_eval_metrics.py +62 -0
  125. behive-0.7.0/tests/test_fact_synth.py +40 -0
  126. behive-0.7.0/tests/test_fact_synth_correctness.py +211 -0
  127. behive-0.7.0/tests/test_federation_off_product.py +9 -0
  128. behive-0.7.0/tests/test_gate_concurrency.py +113 -0
  129. behive-0.7.0/tests/test_graph_dependency_contract.py +11 -0
  130. behive-0.7.0/tests/test_hudoc_search.py +96 -0
  131. behive-0.7.0/tests/test_hygiene_empty_done_blob.py +46 -0
  132. behive-0.7.0/tests/test_hygiene_salvage.py +16 -0
  133. behive-0.7.0/tests/test_llm_strict_compat.py +398 -0
  134. behive-0.7.0/tests/test_mission_completion_lifecycle.py +264 -0
  135. behive-0.7.0/tests/test_mission_completion_orchestrator.py +123 -0
  136. behive-0.7.0/tests/test_mission_completion_pg.py +126 -0
  137. behive-0.7.0/tests/test_mission_completion_postgres.py +101 -0
  138. behive-0.7.0/tests/test_qdrant_claims.py +22 -0
  139. behive-0.7.0/tests/test_qdrant_transport_failure.py +15 -0
  140. {behive-0.6.0 → behive-0.7.0}/tests/test_rag_orch_30pct.py +1 -1
  141. {behive-0.6.0 → behive-0.7.0}/tests/test_real_heavy.py +1 -1
  142. {behive-0.6.0 → behive-0.7.0}/tests/test_real_integration.py +5 -3
  143. behive-0.7.0/tests/test_relevance_gate_salvage.py +106 -0
  144. behive-0.7.0/tests/test_repair1022_api_scout.py +68 -0
  145. behive-0.7.0/tests/test_repair1022_cli_json.py +68 -0
  146. behive-0.7.0/tests/test_repair1022_client.py +55 -0
  147. behive-0.7.0/tests/test_repair1022_extraction_diagnostics.py +155 -0
  148. behive-0.7.0/tests/test_repair1022_extraction_pg.py +143 -0
  149. behive-0.7.0/tests/test_repair1022_html_text.py +107 -0
  150. behive-0.7.0/tests/test_repair1022_non_numeric_claims.py +63 -0
  151. behive-0.7.0/tests/test_repair1022_phase_logs.py +77 -0
  152. behive-0.7.0/tests/test_repair1022_primer.py +64 -0
  153. behive-0.7.0/tests/test_repair1022_relevance.py +483 -0
  154. behive-0.7.0/tests/test_repair1022_relevance_pg.py +84 -0
  155. behive-0.7.0/tests/test_repair1022_seed_fallback.py +66 -0
  156. behive-0.7.0/tests/test_repair1022_seeds.py +152 -0
  157. behive-0.7.0/tests/test_repair1022_support.py +207 -0
  158. behive-0.7.0/tests/test_repair1022_transient_provider.py +118 -0
  159. behive-0.7.0/tests/test_report_eval.py +154 -0
  160. behive-0.7.0/tests/test_resolve_cmd.py +17 -0
  161. behive-0.7.0/tests/test_schema_writer_census.py +426 -0
  162. behive-0.7.0/tests/test_search_web_mix.py +15 -0
  163. {behive-0.6.0 → behive-0.7.0}/tests/test_smoke.py +18 -3
  164. behive-0.7.0/tests/test_sr_bridge.py +233 -0
  165. behive-0.7.0/tests/test_sr_manual_review_gate.py +119 -0
  166. behive-0.6.0/PKG-INFO +0 -846
  167. behive-0.6.0/README.md +0 -782
  168. behive-0.6.0/src/behive/engine/search_backends.py +0 -615
  169. behive-0.6.0/src/behive.egg-info/PKG-INFO +0 -846
  170. {behive-0.6.0 → behive-0.7.0}/LICENSE +0 -0
  171. {behive-0.6.0 → behive-0.7.0}/setup.cfg +0 -0
  172. {behive-0.6.0 → behive-0.7.0}/src/behive/compat/__init__.py +0 -0
  173. {behive-0.6.0 → behive-0.7.0}/src/behive/config.py +0 -0
  174. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/__init__.py +0 -0
  175. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/constants.py +0 -0
  176. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/content_quality.py +0 -0
  177. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/context_providers/__init__.py +0 -0
  178. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/context_providers/base.py +0 -0
  179. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/context_providers/dispatcher.py +0 -0
  180. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/context_providers/providers.py +0 -0
  181. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/db_duckdb.py +0 -0
  182. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/domain_reputation.py +0 -0
  183. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/events.py +0 -0
  184. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/guardrail.py +0 -0
  185. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/intel_summary.py +0 -0
  186. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/preprocessor.py +0 -0
  187. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_fact_mem.py +0 -0
  188. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_memory.py +0 -0
  189. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_tools.py +0 -0
  190. {behive-0.6.0 → behive-0.7.0}/src/behive/engine/rag.py +0 -0
  191. {behive-0.6.0 → behive-0.7.0}/src/behive/init-db.sql +0 -0
  192. {behive-0.6.0 → behive-0.7.0}/src/behive/knowledge_graph.py +0 -0
  193. {behive-0.6.0 → behive-0.7.0}/src/behive/models.py +0 -0
  194. {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/dependency_links.txt +0 -0
  195. {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/entry_points.txt +0 -0
  196. {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/top_level.txt +0 -0
  197. {behive-0.6.0 → behive-0.7.0}/tests/test_80_async_subprocess.py +0 -0
  198. {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_a_harvest_process.py +0 -0
  199. {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_a_synth_rag.py +0 -0
  200. {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_bc_orch_intel.py +0 -0
  201. {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_def_remaining.py +0 -0
  202. {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_g_deep.py +0 -0
  203. {behive-0.6.0 → behive-0.7.0}/tests/test_80_breadth.py +0 -0
  204. {behive-0.6.0 → behive-0.7.0}/tests/test_80_brute_force.py +0 -0
  205. {behive-0.6.0 → behive-0.7.0}/tests/test_80_brute_v3.py +0 -0
  206. {behive-0.6.0 → behive-0.7.0}/tests/test_80_clean_execution.py +0 -0
  207. {behive-0.6.0 → behive-0.7.0}/tests/test_80_config_client.py +0 -0
  208. {behive-0.6.0 → behive-0.7.0}/tests/test_80_conflict_detector.py +0 -0
  209. {behive-0.6.0 → behive-0.7.0}/tests/test_80_continuation.py +0 -0
  210. {behive-0.6.0 → behive-0.7.0}/tests/test_80_coverage_push.py +0 -0
  211. {behive-0.6.0 → behive-0.7.0}/tests/test_80_deep_push_v2.py +0 -0
  212. {behive-0.6.0 → behive-0.7.0}/tests/test_80_deep_targets_v2.py +0 -0
  213. {behive-0.6.0 → behive-0.7.0}/tests/test_80_domrep_intel_primer.py +0 -0
  214. {behive-0.6.0 → behive-0.7.0}/tests/test_80_drones_guard_api.py +0 -0
  215. {behive-0.6.0 → behive-0.7.0}/tests/test_80_drones_scout_mi.py +0 -0
  216. {behive-0.6.0 → behive-0.7.0}/tests/test_80_events_deep.py +0 -0
  217. {behive-0.6.0 → behive-0.7.0}/tests/test_80_events_domrep_intel.py +0 -0
  218. {behive-0.6.0 → behive-0.7.0}/tests/test_80_falsifier_deep.py +0 -0
  219. {behive-0.6.0 → behive-0.7.0}/tests/test_80_falsifier_synth_extra.py +0 -0
  220. {behive-0.6.0 → behive-0.7.0}/tests/test_80_falsifier_v3.py +0 -0
  221. {behive-0.6.0 → behive-0.7.0}/tests/test_80_feedback_deep.py +0 -0
  222. {behive-0.6.0 → behive-0.7.0}/tests/test_80_feedback_deep_v3.py +0 -0
  223. {behive-0.6.0 → behive-0.7.0}/tests/test_80_feedback_v2.py +0 -0
  224. {behive-0.6.0 → behive-0.7.0}/tests/test_80_final_mega.py +0 -0
  225. {behive-0.6.0 → behive-0.7.0}/tests/test_80_final_push.py +0 -0
  226. {behive-0.6.0 → behive-0.7.0}/tests/test_80_final_wave.py +0 -0
  227. {behive-0.6.0 → behive-0.7.0}/tests/test_80_golden_process.py +0 -0
  228. {behive-0.6.0 → behive-0.7.0}/tests/test_80_graph_deep.py +0 -0
  229. {behive-0.6.0 → behive-0.7.0}/tests/test_80_graph_deep_v2.py +0 -0
  230. {behive-0.6.0 → behive-0.7.0}/tests/test_80_graph_engine.py +0 -0
  231. {behive-0.6.0 → behive-0.7.0}/tests/test_80_graph_massive.py +0 -0
  232. {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_deep.py +0 -0
  233. {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_deep_v2.py +0 -0
  234. {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_intel_dom.py +0 -0
  235. {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_orch.py +0 -0
  236. {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_v3.py +0 -0
  237. {behive-0.6.0 → behive-0.7.0}/tests/test_80_heavy_modules.py +0 -0
  238. {behive-0.6.0 → behive-0.7.0}/tests/test_80_import_sweep.py +0 -0
  239. {behive-0.6.0 → behive-0.7.0}/tests/test_80_init_modules.py +0 -0
  240. {behive-0.6.0 → behive-0.7.0}/tests/test_80_intel_calib_domain.py +0 -0
  241. {behive-0.6.0 → behive-0.7.0}/tests/test_80_llm_db_preproc.py +0 -0
  242. {behive-0.6.0 → behive-0.7.0}/tests/test_80_llm_deep.py +0 -0
  243. {behive-0.6.0 → behive-0.7.0}/tests/test_80_low_modules.py +0 -0
  244. {behive-0.6.0 → behive-0.7.0}/tests/test_80_lowhanging.py +0 -0
  245. {behive-0.6.0 → behive-0.7.0}/tests/test_80_massive_clean.py +0 -0
  246. {behive-0.6.0 → behive-0.7.0}/tests/test_80_mega_push.py +0 -0
  247. {behive-0.6.0 → behive-0.7.0}/tests/test_80_mega_push2.py +0 -0
  248. {behive-0.6.0 → behive-0.7.0}/tests/test_80_mi_deep.py +0 -0
  249. {behive-0.6.0 → behive-0.7.0}/tests/test_80_mi_deep_v2.py +0 -0
  250. {behive-0.6.0 → behive-0.7.0}/tests/test_80_mi_synth_deep.py +0 -0
  251. {behive-0.6.0 → behive-0.7.0}/tests/test_80_mi_v3.py +0 -0
  252. {behive-0.6.0 → behive-0.7.0}/tests/test_80_orch_deep.py +0 -0
  253. {behive-0.6.0 → behive-0.7.0}/tests/test_80_orch_prescout_mega.py +0 -0
  254. {behive-0.6.0 → behive-0.7.0}/tests/test_80_orchestrator_helpers.py +0 -0
  255. {behive-0.6.0 → behive-0.7.0}/tests/test_80_orchestrator_v3.py +0 -0
  256. {behive-0.6.0 → behive-0.7.0}/tests/test_80_pipeline_mega.py +0 -0
  257. {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_dance.py +0 -0
  258. {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_deep_v2.py +0 -0
  259. {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_feedback.py +0 -0
  260. {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_pure.py +0 -0
  261. {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_classes.py +0 -0
  262. {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_deep.py +0 -0
  263. {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_orch_harvest.py +0 -0
  264. {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_pure.py +0 -0
  265. {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_regex.py +0 -0
  266. {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_v3.py +0 -0
  267. {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_v4.py +0 -0
  268. {behive-0.6.0 → behive-0.7.0}/tests/test_80_quality_events.py +0 -0
  269. {behive-0.6.0 → behive-0.7.0}/tests/test_80_queen_mega.py +0 -0
  270. {behive-0.6.0 → behive-0.7.0}/tests/test_80_queen_memory_calibrator.py +0 -0
  271. {behive-0.6.0 → behive-0.7.0}/tests/test_80_queen_tools_deep.py +0 -0
  272. {behive-0.6.0 → behive-0.7.0}/tests/test_80_quorum_quality.py +0 -0
  273. {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_deep.py +0 -0
  274. {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_deep_v2.py +0 -0
  275. {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_deep_v3.py +0 -0
  276. {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_massive.py +0 -0
  277. {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_mega.py +0 -0
  278. {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_mi_deep.py +0 -0
  279. {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_mi_final.py +0 -0
  280. {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_v4.py +0 -0
  281. {behive-0.6.0 → behive-0.7.0}/tests/test_80_remaining.py +0 -0
  282. {behive-0.6.0 → behive-0.7.0}/tests/test_80_routing_validation.py +0 -0
  283. {behive-0.6.0 → behive-0.7.0}/tests/test_80_schema_deep.py +0 -0
  284. {behive-0.6.0 → behive-0.7.0}/tests/test_80_scout_deep.py +0 -0
  285. {behive-0.6.0 → behive-0.7.0}/tests/test_80_scout_feedback.py +0 -0
  286. {behive-0.6.0 → behive-0.7.0}/tests/test_80_scout_synth_v2.py +0 -0
  287. {behive-0.6.0 → behive-0.7.0}/tests/test_80_search_backends_v3.py +0 -0
  288. {behive-0.6.0 → behive-0.7.0}/tests/test_80_search_deep_v2.py +0 -0
  289. {behive-0.6.0 → behive-0.7.0}/tests/test_80_search_falsifier.py +0 -0
  290. {behive-0.6.0 → behive-0.7.0}/tests/test_80_search_llm.py +0 -0
  291. {behive-0.6.0 → behive-0.7.0}/tests/test_80_server_mcp.py +0 -0
  292. {behive-0.6.0 → behive-0.7.0}/tests/test_80_small_push.py +0 -0
  293. {behive-0.6.0 → behive-0.7.0}/tests/test_80_smaller_modules.py +0 -0
  294. {behive-0.6.0 → behive-0.7.0}/tests/test_80_surgical.py +0 -0
  295. {behive-0.6.0 → behive-0.7.0}/tests/test_80_surgical_targets.py +0 -0
  296. {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_deep_v2.py +0 -0
  297. {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_graph_extra.py +0 -0
  298. {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_killer.py +0 -0
  299. {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_mega.py +0 -0
  300. {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_mi_deep.py +0 -0
  301. {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_queen.py +0 -0
  302. {behive-0.6.0 → behive-0.7.0}/tests/test_80_targeted_lines.py +0 -0
  303. {behive-0.6.0 → behive-0.7.0}/tests/test_api_scout.py +0 -0
  304. {behive-0.6.0 → behive-0.7.0}/tests/test_beeworker_deep.py +0 -0
  305. {behive-0.6.0 → behive-0.7.0}/tests/test_bionic_quorum.py +0 -0
  306. {behive-0.6.0 → behive-0.7.0}/tests/test_blast_coverage.py +0 -0
  307. {behive-0.6.0 → behive-0.7.0}/tests/test_cli.py +0 -0
  308. {behive-0.6.0 → behive-0.7.0}/tests/test_client.py +0 -0
  309. {behive-0.6.0 → behive-0.7.0}/tests/test_config.py +0 -0
  310. {behive-0.6.0 → behive-0.7.0}/tests/test_constants.py +0 -0
  311. {behive-0.6.0 → behive-0.7.0}/tests/test_content_quality.py +0 -0
  312. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_async_deep.py +0 -0
  313. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_async_push.py +0 -0
  314. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_breakthrough.py +0 -0
  315. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_breakthrough2.py +0 -0
  316. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_deep.py +0 -0
  317. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_deep3.py +0 -0
  318. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_drones.py +0 -0
  319. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_drones_direct.py +0 -0
  320. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_falsifier.py +0 -0
  321. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_final50.py +0 -0
  322. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_final_push.py +0 -0
  323. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_graph.py +0 -0
  324. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_graph_rag.py +0 -0
  325. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_harvest.py +0 -0
  326. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_harvest_llm_api.py +0 -0
  327. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_import_push.py +0 -0
  328. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_master.py +0 -0
  329. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_mock_pool.py +0 -0
  330. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_orchestrator_deep.py +0 -0
  331. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_orchestrator_full.py +0 -0
  332. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_prescout.py +0 -0
  333. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_prescout_harvest_pure.py +0 -0
  334. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_process.py +0 -0
  335. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_process_deep.py +0 -0
  336. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_process_deep2.py +0 -0
  337. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_processing_drones.py +0 -0
  338. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_pure_functions.py +0 -0
  339. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_push50.py +0 -0
  340. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_queen_scout_full.py +0 -0
  341. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_queen_tools.py +0 -0
  342. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_rag_master.py +0 -0
  343. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_real_execution.py +0 -0
  344. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_server_client.py +0 -0
  345. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_strategic.py +0 -0
  346. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_synth.py +0 -0
  347. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_synth_deep.py +0 -0
  348. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_synth_graph_rag.py +0 -0
  349. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_targeted_modules.py +0 -0
  350. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_utilities_deep.py +0 -0
  351. {behive-0.6.0 → behive-0.7.0}/tests/test_cov_zero_modules.py +0 -0
  352. {behive-0.6.0 → behive-0.7.0}/tests/test_cross_35.py +0 -0
  353. {behive-0.6.0 → behive-0.7.0}/tests/test_db.py +0 -0
  354. {behive-0.6.0 → behive-0.7.0}/tests/test_db_integration.py +0 -0
  355. {behive-0.6.0 → behive-0.7.0}/tests/test_deep_execution.py +0 -0
  356. {behive-0.6.0 → behive-0.7.0}/tests/test_deep_functions.py +0 -0
  357. {behive-0.6.0 → behive-0.7.0}/tests/test_domain_reputation.py +0 -0
  358. {behive-0.6.0 → behive-0.7.0}/tests/test_drones.py +0 -0
  359. {behive-0.6.0 → behive-0.7.0}/tests/test_events.py +0 -0
  360. {behive-0.6.0 → behive-0.7.0}/tests/test_falsifier.py +0 -0
  361. {behive-0.6.0 → behive-0.7.0}/tests/test_final_30pct.py +0 -0
  362. {behive-0.6.0 → behive-0.7.0}/tests/test_functional.py +0 -0
  363. {behive-0.6.0 → behive-0.7.0}/tests/test_gap_fill_35.py +0 -0
  364. {behive-0.6.0 → behive-0.7.0}/tests/test_graph_engine.py +0 -0
  365. {behive-0.6.0 → behive-0.7.0}/tests/test_guardrail.py +0 -0
  366. {behive-0.6.0 → behive-0.7.0}/tests/test_harvest.py +0 -0
  367. {behive-0.6.0 → behive-0.7.0}/tests/test_heavy_coverage.py +0 -0
  368. {behive-0.6.0 → behive-0.7.0}/tests/test_integration_mocked.py +0 -0
  369. {behive-0.6.0 → behive-0.7.0}/tests/test_knowledge_graph.py +0 -0
  370. {behive-0.6.0 → behive-0.7.0}/tests/test_llm.py +0 -0
  371. {behive-0.6.0 → behive-0.7.0}/tests/test_lowest_coverage.py +0 -0
  372. {behive-0.6.0 → behive-0.7.0}/tests/test_mass_coverage_35.py +0 -0
  373. {behive-0.6.0 → behive-0.7.0}/tests/test_mcp.py +0 -0
  374. {behive-0.6.0 → behive-0.7.0}/tests/test_mega_coverage.py +0 -0
  375. {behive-0.6.0 → behive-0.7.0}/tests/test_micro_35.py +0 -0
  376. {behive-0.6.0 → behive-0.7.0}/tests/test_orch_harvest_35.py +0 -0
  377. {behive-0.6.0 → behive-0.7.0}/tests/test_orchestrator.py +0 -0
  378. {behive-0.6.0 → behive-0.7.0}/tests/test_preprocessor.py +0 -0
  379. {behive-0.6.0 → behive-0.7.0}/tests/test_prescout.py +0 -0
  380. {behive-0.6.0 → behive-0.7.0}/tests/test_prescout_deep_35.py +0 -0
  381. {behive-0.6.0 → behive-0.7.0}/tests/test_process.py +0 -0
  382. {behive-0.6.0 → behive-0.7.0}/tests/test_process_deep.py +0 -0
  383. {behive-0.6.0 → behive-0.7.0}/tests/test_process_orch_deep.py +0 -0
  384. {behive-0.6.0 → behive-0.7.0}/tests/test_push_30pct.py +0 -0
  385. {behive-0.6.0 → behive-0.7.0}/tests/test_push_35_final.py +0 -0
  386. {behive-0.6.0 → behive-0.7.0}/tests/test_queen_deep.py +0 -0
  387. {behive-0.6.0 → behive-0.7.0}/tests/test_queen_honey.py +0 -0
  388. {behive-0.6.0 → behive-0.7.0}/tests/test_queen_load_persist.py +0 -0
  389. {behive-0.6.0 → behive-0.7.0}/tests/test_rag.py +0 -0
  390. {behive-0.6.0 → behive-0.7.0}/tests/test_regression.py +0 -0
  391. {behive-0.6.0 → behive-0.7.0}/tests/test_runpy_main.py +0 -0
  392. {behive-0.6.0 → behive-0.7.0}/tests/test_scout.py +0 -0
  393. {behive-0.6.0 → behive-0.7.0}/tests/test_search_backends.py +0 -0
  394. {behive-0.6.0 → behive-0.7.0}/tests/test_server.py +0 -0
  395. {behive-0.6.0 → behive-0.7.0}/tests/test_server_and_more.py +0 -0
  396. {behive-0.6.0 → behive-0.7.0}/tests/test_server_cli_35.py +0 -0
  397. {behive-0.6.0 → behive-0.7.0}/tests/test_server_integration.py +0 -0
  398. {behive-0.6.0 → behive-0.7.0}/tests/test_synth.py +0 -0
  399. {behive-0.6.0 → behive-0.7.0}/tests/test_uncovered_functions.py +0 -0
behive-0.7.0/PKG-INFO ADDED
@@ -0,0 +1,519 @@
1
+ Metadata-Version: 2.4
2
+ Name: behive
3
+ Version: 0.7.0
4
+ Summary: Research engine that builds structured knowledge graphs from any topic
5
+ Author-email: QA10 <hello@qa10.io>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/qa10devteam/behive
8
+ Project-URL: Documentation, https://github.com/qa10devteam/behive/tree/main/docs
9
+ Project-URL: Repository, https://github.com/qa10devteam/behive
10
+ Keywords: research,knowledge-graph,ai,mcp,deep-research
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: aiohttp>=3.9
22
+ Requires-Dist: httpx>=0.25
23
+ Requires-Dist: psycopg2-binary>=2.9
24
+ Requires-Dist: duckdb>=1.0
25
+ Requires-Dist: pydantic>=2.0
26
+ Requires-Dist: litellm>=1.40
27
+ Requires-Dist: feedparser>=6.0
28
+ Requires-Dist: fastapi>=0.100
29
+ Requires-Dist: uvicorn>=0.20
30
+ Provides-Extra: stealth
31
+ Requires-Dist: curl-cffi>=0.7; extra == "stealth"
32
+ Requires-Dist: primp>=0.13; extra == "stealth"
33
+ Requires-Dist: nodriver>=0.38; extra == "stealth"
34
+ Requires-Dist: patchright>=0.5; extra == "stealth"
35
+ Provides-Extra: harvest
36
+ Requires-Dist: trafilatura>=1.6; extra == "harvest"
37
+ Requires-Dist: newspaper4k>=0.9; extra == "harvest"
38
+ Requires-Dist: langdetect>=1.0; extra == "harvest"
39
+ Requires-Dist: markitdown>=0.1; extra == "harvest"
40
+ Requires-Dist: PyMuPDF>=1.23; extra == "harvest"
41
+ Requires-Dist: crawl4ai>=0.3; extra == "harvest"
42
+ Provides-Extra: process
43
+ Requires-Dist: rapidfuzz>=3.5; extra == "process"
44
+ Requires-Dist: spacy>=3.7; extra == "process"
45
+ Requires-Dist: litellm>=1.30; extra == "process"
46
+ Requires-Dist: tiktoken>=0.5; extra == "process"
47
+ Provides-Extra: science
48
+ Requires-Dist: pandas>=2.0; extra == "science"
49
+ Requires-Dist: numpy>=1.24; extra == "science"
50
+ Requires-Dist: scikit-learn>=1.3; extra == "science"
51
+ Provides-Extra: graph
52
+ Requires-Dist: networkx>=3.0; extra == "graph"
53
+ Requires-Dist: numpy>=1.24; extra == "graph"
54
+ Requires-Dist: rapidfuzz>=3.5; extra == "graph"
55
+ Provides-Extra: mcp
56
+ Requires-Dist: fastmcp>=3.0; extra == "mcp"
57
+ Provides-Extra: api
58
+ Provides-Extra: qdrant
59
+ Requires-Dist: qdrant-client>=1.7; extra == "qdrant"
60
+ Requires-Dist: sentence-transformers>=2.2; extra == "qdrant"
61
+ Provides-Extra: all
62
+ Requires-Dist: behive[api,graph,harvest,mcp,process,science,stealth]; extra == "all"
63
+ Provides-Extra: dev
64
+ Requires-Dist: pytest>=7.0; extra == "dev"
65
+ Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
66
+ Requires-Dist: ruff>=0.3; extra == "dev"
67
+ Dynamic: license-file
68
+
69
+ <p align="center">
70
+ <img src="demo.gif" alt="BeHive — Deep Research Engine" width="720" />
71
+ </p>
72
+
73
+ <h1 align="center">🐝 BeHive</h1>
74
+
75
+ <p align="center">
76
+ <strong>Open-source research engine that extracts structured knowledge from any topic.</strong><br />
77
+ Feed it a question. Get back scored claims, entity graphs, and a synthesized report — not paragraphs of slop.
78
+ </p>
79
+
80
+ <p align="center">
81
+ <a href="https://pypi.org/project/behive"><img src="https://img.shields.io/badge/pip_install-behive-FFB300?style=flat-square&logo=pypi&logoColor=white" /></a>
82
+ <a href="https://www.npmjs.com/package/n8n-nodes-behive"><img src="https://img.shields.io/badge/n8n-community_node-FF6D5A?style=flat-square&logo=n8n&logoColor=white" /></a>
83
+ <img src="https://img.shields.io/badge/MCP-Live-00C853?style=flat-square" />
84
+ <img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" />
85
+ <img src="https://img.shields.io/badge/version-0.6.0-black?style=flat-square" />
86
+ </p>
87
+
88
+ ---
89
+
90
+ ## The Problem
91
+
92
+ You ask an AI to research something. It hallucinates confidently or gives you a 2000-word essay that says nothing specific. No sources. No confidence scores. No way to verify.
93
+
94
+ **BeHive fixes this.** It goes out, searches real sources, extracts verifiable claims with confidence scores, and builds a knowledge graph — all through your existing AI (Claude, ChatGPT, Gemini).
95
+
96
+ ---
97
+
98
+ ## ⚡ Use with Claude Desktop (10 seconds)
99
+
100
+ **No install needed.** Add this to your Claude Desktop config and you're done:
101
+
102
+ **File:** `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows)
103
+
104
+ ```json
105
+ {
106
+ "mcpServers": {
107
+ "behive": {
108
+ "url": "https://api.behive.site/mcp",
109
+ "transport": "streamable-http"
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ Restart Claude Desktop. Ask: *"Research the EU AI Act enforcement timeline"*
116
+
117
+ That's it. Claude calls BeHive automatically.
118
+
119
+ <details>
120
+ <summary>💡 What happens under the hood</summary>
121
+
122
+ ```
123
+ You ask Claude → Claude calls BeHive MCP tool → BeHive scouts 70+ APIs
124
+ → fetches 200+ URLs via stealth drones → extracts claims with scores
125
+ → deduplicates → returns structured report to Claude
126
+ ```
127
+
128
+ **Cost:** Free. The hosted MCP server is provided by the BeHive team.
129
+ **Privacy:** Queries are processed and discarded. No data retention.
130
+ </details>
131
+
132
+ ---
133
+
134
+ ## ⚡ Use with ChatGPT (Custom GPT)
135
+
136
+ 1. Go to [chat.openai.com/gpts/editor](https://chat.openai.com/gpts/editor)
137
+ 2. Create a new GPT
138
+ 3. Under **Actions** → click **Import from URL** → paste:
139
+ ```
140
+ https://api.behive.site/openapi.json
141
+ ```
142
+ 4. Name it "Deep Researcher" and save
143
+
144
+ Now ask your GPT: *"Research quantum computing breakthroughs 2026"*
145
+
146
+ ---
147
+
148
+ ## ⚡ Use with Cursor / Windsurf / Claude Code
149
+
150
+ Add to your MCP config (`.cursor/mcp.json`, `~/.claude/settings.json`, etc.):
151
+
152
+ ```json
153
+ {
154
+ "mcpServers": {
155
+ "behive": {
156
+ "url": "https://api.behive.site/mcp",
157
+ "transport": "streamable-http"
158
+ }
159
+ }
160
+ }
161
+ ```
162
+
163
+ ---
164
+
165
+ ## ⚡ Use with Hermes Agent / OpenClaw
166
+
167
+ ```bash
168
+ # Hermes — already has a built-in skill
169
+ hermes skill install behive-research
170
+
171
+ # OpenClaw — copy from integrations/
172
+ cp integrations/openclaw/SKILL.md ~/.openclaw/skills/behive.md
173
+ ```
174
+
175
+ ---
176
+
177
+ ## 🛠 Self-Host (full control)
178
+
179
+ Want to run BeHive on your own machine? Three options:
180
+
181
+ ### Option A: Zero-setup (DuckDB, no PostgreSQL needed)
182
+
183
+ ```bash
184
+ pip install behive
185
+ export ANTHROPIC_API_KEY=*** # or OPENAI_API_KEY
186
+
187
+ behive research "NVIDIA GPU market 2026"
188
+ ```
189
+
190
+ Data is stored locally in `~/.behive/research.duckdb`. No database setup needed.
191
+
192
+ ### Option B: Docker Compose (recommended for teams)
193
+
194
+ ```bash
195
+ git clone https://github.com/qa10devteam/behive && cd behive
196
+ echo "ANTHROPIC_API_KEY=***" > .env
197
+ docker compose up -d
198
+ # API → http://localhost:8091
199
+ # MCP → http://localhost:8090/mcp
200
+ ```
201
+
202
+ ### Option C: Full production (PostgreSQL + GPU)
203
+
204
+ ```bash
205
+ pip install "behive[all]"
206
+ export BEHIVE_DB_URL=postgresql://user:pass@localhost:5432/behive
207
+ export ANTHROPIC_API_KEY=***
208
+ behive serve
209
+ ```
210
+
211
+ ---
212
+
213
+ ## 🧠 Model Configuration
214
+
215
+ BeHive works with any LLM. You choose what runs each pipeline stage:
216
+
217
+ | Stage | What it does | Recommended model |
218
+ |-------|-------------|-------------------|
219
+ | **scout** | Query generation, source planning | Claude Haiku 4.5 / GPT-4.1-mini / local |
220
+ | **harvest** | Content triage, relevance filtering | Claude Haiku 4.5 / GPT-4.1-mini / local |
221
+ | **process** | Claim extraction, entity recognition | Claude Sonnet 4.6 / GPT-4.5 / Gemini 2.5 Flash |
222
+ | **synth** | Report synthesis, deduplication | Claude Opus 4.6 / GPT-4.5 / Gemini 2.5 Pro |
223
+ | **falsifier** | Cross-verification, bias detection | Claude Sonnet 5 / o4-mini |
224
+
225
+ ### Quick config
226
+
227
+ ```bash
228
+ behive config --preset budget # Haiku everywhere (~$0.30/mission)
229
+ behive config --preset balanced # Haiku scout + Sonnet synth (~$1.50)
230
+ behive config --preset deep # Opus synth + Falsifier (~$4.00)
231
+ ```
232
+
233
+ ### Model presets (2026)
234
+
235
+ | Preset | Model String |
236
+ |--------|-------------|
237
+ | `claude-haiku` | anthropic/claude-haiku-4-5-20251001 |
238
+ | `claude-sonnet` | anthropic/claude-sonnet-4-6 |
239
+ | `claude-opus` | anthropic/claude-opus-4-6-v1 |
240
+ | `claude-sonnet-5` | anthropic/claude-sonnet-5 |
241
+ | `gpt-4.1-mini` | openai/gpt-4.1-mini |
242
+ | `gpt-4.5` | openai/gpt-4.5-preview |
243
+ | `o4-mini` | openai/o4-mini |
244
+ | `gemini-flash` | google/gemini-2.5-flash |
245
+ | `gemini-pro` | google/gemini-2.5-pro |
246
+ | `llama-4` | ollama/llama4-scout |
247
+ | `local` | openai/local-model (any OpenAI-compatible endpoint) |
248
+
249
+ ### Environment variables
250
+
251
+ ```bash
252
+ export BEHIVE_MODEL=anthropic/claude-sonnet-4-6 # one model for everything
253
+ export BEHIVE_MODEL_SCOUT=ollama/llama4-scout # per-stage override
254
+ export BEHIVE_MODEL_SYNTH=anthropic/claude-opus-4-6-v1 # per-stage override
255
+ ```
256
+
257
+ Priority: `BEHIVE_MODEL_{STAGE}` > `BEHIVE_MODEL` > config.yaml > defaults
258
+
259
+ Or pass any [litellm-compatible](https://docs.litellm.ai/docs/providers) model string directly.
260
+
261
+ The CLI reads `~/.behive_runtime.env` for the current account. Set
262
+ `BEHIVE_ENV_FILE` to use a different explicit file. Existing environment values
263
+ win over that file. BeHive does not import credentials from Hermes auth files.
264
+
265
+ For a source checkout, graph support has its own dependency extra:
266
+ `pip install -e '.[graph]'`. Harvesting and processing extras are separate.
267
+ These local metadata changes have not been published to PyPI.
268
+
269
+ API providers requiring keys are skipped when configuration is missing; these
270
+ notices are diagnostics, not research evidence. LEX also requires its contracted
271
+ `LEX_API_BASE` endpoint: BeHive does not query the SIP login portal as an API.
272
+ BYOK Discord notifications are off by default. To enable them, explicitly set
273
+ `BEHIVE_BYOK_NOTIFICATIONS=1` and supply the bot credentials and destination in
274
+ the environment; no Hermes credential file is read.
275
+
276
+ ---
277
+
278
+ ## Verification and scoring
279
+
280
+ No benchmark table is published here without a reproducible run receipt.
281
+ Claim counts, runtime and scores vary with the topic, sources, configured model,
282
+ provider availability and pipeline options. Quality scores are internal ranking
283
+ signals, not calibrated probabilities or a guarantee of factual correctness.
284
+
285
+ The repository contains regression tests for provider configuration, source
286
+ admission, entity handling and deterministic synthesis. PostgreSQL persistence,
287
+ public-provider checks and browser tests must be reported separately from
288
+ controlled-provider unit tests. Never run database-writing tests against a shared
289
+ research database: use a disposable cluster and retain the raw results.
290
+
291
+ ---
292
+
293
+ ## Drone Arsenal
294
+
295
+ BeHive's API registry contains **83 provider entries**. Registered does not mean
296
+ configured or available: some providers require credentials or contracts, and
297
+ public endpoints can fail or return no relevant results.
298
+
299
+ | Category | Examples | Method |
300
+ |----------|----------|--------|
301
+ | Web search | DuckDuckGo, Brave, SearXNG | Multi-backend fallthrough |
302
+ | Academic | arXiv, Semantic Scholar, PubMed | Direct API |
303
+ | News | Google News RSS, NewsAPI, GDELT | Real-time feeds |
304
+ | Government | EU Open Data, USPTO, SEC EDGAR | Registry APIs |
305
+ | Code | GitHub, GitLab, npm, PyPI | Package ecosystems |
306
+ | Financial | Yahoo Finance, FRED, ECB | Market data |
307
+ | Social | Reddit, HN (via Algolia), X/Twitter | Community signals |
308
+
309
+ **Stealth layer:** 8-layer drone architecture bypasses Cloudflare, DataDome, Akamai, PerimeterX. Rotating fingerprints, browser TLS profiles, residential proxy support.
310
+
311
+ ---
312
+
313
+ ## Architecture
314
+
315
+ ```
316
+ ┌─────────────────────────────────────────────────────────────┐
317
+ │ BeHive Pipeline │
318
+ └─────────────────────────────────────────────────────────────┘
319
+ │
320
+ ┌───────────┬─────────────┼─────────────┬───────────┐
321
+ ▼ ▼ ▼ ▼ ▼
322
+ ┌────────┐ ┌────────┐ ┌──────────┐ ┌────────┐ ┌────────┐
323
+ │ SCOUT │ │HARVEST │ │ PROCESS │ │ SYNTH │ │ GRAPH │
324
+ │ │ │ │ │ │ │ │ │ │
325
+ │ Queen │ │Parallel│ │ Dual- │ │ Report │ │ Neo4j │
326
+ │ plans │ │ fetch │ │ model │ │ synth │ │ build │
327
+ │ 200+ │ │ drones │ │ extract │ │ dedupe │ │ entity │
328
+ │ tasks │ │ 70 APIs│ │ + score │ │ FUIR │ │ link │
329
+ └────────┘ └────────┘ └──────────┘ └────────┘ └────────┘
330
+ ```
331
+
332
+ **Key design:** The Queen plans all research tasks BEFORE any scout leaves. This means parallel execution, no redundant searches, and smart gap detection.
333
+
334
+ ---
335
+
336
+ ## API Reference
337
+
338
+ ### REST API (port 8091)
339
+
340
+ ```bash
341
+ # Start a research mission
342
+ curl -X POST http://localhost:8091/research \
343
+ -H "Content-Type: application/json" \
344
+ -d '{"topic": "quantum computing 2026", "depth": 3}'
345
+
346
+ # Check status (status, phase, reason, report_available, useful_claims, fallback_claims)
347
+ curl http://localhost:8091/research/{mission_id}/status
348
+
349
+ # Get report (HTTP 409 with the reason if the mission is empty or failed)
350
+ curl http://localhost:8091/research/{mission_id}/report
351
+
352
+ # Search knowledge base
353
+ curl "http://localhost:8091/search?q=quantum+supremacy&limit=20"
354
+ ```
355
+
356
+ ### MCP Tools
357
+
358
+ | Tool | Description |
359
+ |------|-------------|
360
+ | `research_topic` | Start deep research on any topic |
361
+ | `mission_status` | Check progress; prints status, phase, reason and claim counts |
362
+ | `get_report` | Retrieve the final synthesized report; says why when there is none |
363
+ | `search_knowledge` | Query across all previous research |
364
+ | `list_missions` | List recent research missions |
365
+
366
+ ### Mission status
367
+
368
+ A mission ends in one of three statuses:
369
+
370
+ - `done`: the mission has a report and at least one useful claim.
371
+ - `empty`: the pipeline finished but produced no qualifying claims, so there is no report.
372
+ - `error`: the pipeline failed or timed out and produced no report.
373
+
374
+ A mission that is cancelled reports `cancelled` with the reason "Mission was cancelled."
375
+ The terminal statuses are therefore `done`, `empty`, `error` and `cancelled`.
376
+ While a mission runs its status is one of `queued`, `running`, `planning`, `scout`,
377
+ `harvest`, `process` and `synth`: it starts as `queued`, becomes `running`, and while the
378
+ pipeline runs `status` carries the current phase name. Clients should treat any status
379
+ other than the four terminal ones as still running. `phase` moves through
380
+ `queued`, `scout`, `harvest`, `process` and `synth`. When a mission ends as `empty` or
381
+ `error`, `phase` holds the stage or cause where it ended (one of the keys below) and
382
+ `reason` explains it.
383
+
384
+ `GET /research/{mission_id}/status` returns these fields:
385
+
386
+ - `status`: terminal `done`, `empty`, `error` or `cancelled`; while running `queued`, `running`, `planning`, `scout`, `harvest`, `process` or `synth`.
387
+ - `phase`: the current phase, or the end-state key for `empty` and `error`.
388
+ - `reason`: why there is no usable report; `null` for running missions and for a real `done`.
389
+ - `report_available`: `true` only when the status is `done` and a report exists with at least one useful claim.
390
+ - `useful_claims`: claims that count toward `done`.
391
+ - `fallback_claims`: claims from the regex fallback. They are raw material, not a product, and never make a mission `done`.
392
+
393
+ Example for an empty mission:
394
+
395
+ ```json
396
+ {"status": "empty", "phase": "empty_claims", "report_available": false,
397
+ "reason": "Sources were collected but no qualifying claims were produced."}
398
+ ```
399
+
400
+ `GET /research/{mission_id}/report` returns the report with HTTP 200 only for a `done`
401
+ mission. For `empty`, `error` and `cancelled` it returns HTTP 409. `detail` and `reason`
402
+ carry the reason, and the body also holds `status`, `phase`, `report_available: false`,
403
+ `useful_claims` and `fallback_claims`:
404
+
405
+ ```json
406
+ {"detail": "Qualifying claims were found but no report was produced.",
407
+ "status": "error", "phase": "synthesis_failed", "report_available": false}
408
+ ```
409
+
410
+ For a mission that is still running the endpoint does not return a report either.
411
+
412
+ The MCP tool `mission_status` prints the same facts as text:
413
+
414
+ ```
415
+ Mission: <topic>
416
+ Status: error
417
+ Phase: synthesis_failed
418
+ Reason: Qualifying claims were found but no report was produced.
419
+ Claims: 497 useful, 0 regex fallback
420
+ Report: not available
421
+ ```
422
+
423
+ The `Reason:` line appears only when there is one. The MCP tool `get_report` refuses the same
424
+ way instead of returning an empty report:
425
+
426
+ ```
427
+ No report for mission '<mission_id>'.
428
+ Status: empty
429
+ Phase: empty_claims
430
+ Reason: Sources were collected but no qualifying claims were produced.
431
+ ```
432
+
433
+ Reasons, by `phase` key:
434
+
435
+ ```
436
+ empty_scout No sources or qualifying claims were produced.
437
+ empty_claims Sources were collected but no qualifying claims were produced.
438
+ process_timeout The processing phase exceeded its time limit; no report was produced.
439
+ process_error The processing phase failed; no report was produced.
440
+ synthesis_failed Qualifying claims were found but no report was produced.
441
+ pipeline_failed Pipeline execution failed without a qualifying product.
442
+ claims_fallback_failed Claims recovery failed without a qualifying product.
443
+ pipeline_exception Pipeline execution raised an exception.
444
+ timeout Pipeline execution timed out.
445
+ cancelled Mission was cancelled.
446
+ ```
447
+
448
+ Missions recorded as `done` before the status rules (2026-11-13) that have no report, or no
449
+ claims beyond the regex fallback, report this reason: "Marked done without a report or without
450
+ claims beyond regex fallback (recorded before the 2026-11-13 status rules); it has no usable result."
451
+
452
+ ### Python SDK
453
+
454
+ ```python
455
+ from behive import BeHiveClient
456
+
457
+ client = BeHiveClient() # auto-detects local server
458
+
459
+ # Start research
460
+ mission = client.research("EU AI Act penalties", depth=3)
461
+
462
+ # Wait and get results
463
+ report = mission.wait()
464
+ print(f"Found {len(report.claims)} claims, avg quality: {report.quality:.2f}")
465
+ ```
466
+
467
+ ---
468
+
469
+ ## Comparison
470
+
471
+ | Feature | BeHive | GPT-Researcher | Tavily | Perplexity |
472
+ |---------|--------|---------------|--------|------------|
473
+ | **Structured claims** | ✅ JSON with scores | ❌ Text only | ❌ Snippets | ❌ Text |
474
+ | **Knowledge graph** | ✅ Neo4j entities | ❌ | ❌ | ❌ |
475
+ | **Self-hosted** | ✅ MIT | ✅ | ❌ SaaS only | ❌ SaaS only |
476
+ | **MCP native** | ✅ | ❌ | ❌ | ❌ |
477
+ | **Quality scoring** | ✅ 5-dimension | ❌ | ❌ | ❌ |
478
+ | **Multi-source** | 70+ APIs | ~5 | 1 (Tavily) | Internal |
479
+ | **Cost** | Free + your LLM | Free + your LLM | $50-500/mo | $20/mo |
480
+ | **Falsifier** | ✅ Cross-verify | ❌ | ❌ | ❌ |
481
+
482
+ ---
483
+
484
+ ## Integrations
485
+
486
+ | Platform | Method | Difficulty |
487
+ |----------|--------|-----------|
488
+ | **Claude Desktop** | MCP (add URL) | 10 seconds |
489
+ | **ChatGPT** | Custom GPT (import URL) | 30 seconds |
490
+ | **Cursor / Windsurf** | MCP config | 10 seconds |
491
+ | **Claude Code** | MCP config | 10 seconds |
492
+ | **Hermes Agent** | Built-in skill | 1 command |
493
+ | **OpenClaw** | Skill file | 1 file copy |
494
+ | **n8n** | Community node | Install in UI |
495
+
496
+ ---
497
+
498
+ ## Contributing
499
+
500
+ See [CONTRIBUTING.md](CONTRIBUTING.md). PRs welcome.
501
+
502
+ ```bash
503
+ git clone https://github.com/qa10devteam/behive
504
+ cd behive
505
+ pip install -e ".[dev]"
506
+ pytest
507
+ ```
508
+
509
+ ---
510
+
511
+ ## License
512
+
513
+ MIT — use it however you want. Star ⭐ if it helps.
514
+
515
+ ---
516
+
517
+ <p align="center">
518
+ Built by <a href="https://qa10.io">QA10</a> · <a href="https://pypi.org/project/behive">PyPI</a> · <a href="https://github.com/qa10devteam/behive/issues">Issues</a>
519
+ </p>