gaurv007 commited on
Commit
5cabde4
·
verified ·
1 Parent(s): ee996e3

Upload alpha_factory/personas/__init__.py

Browse files
Files changed (1) hide show
  1. alpha_factory/personas/__init__.py +4 -31
alpha_factory/personas/__init__.py CHANGED
@@ -1,39 +1,12 @@
1
  """
2
  Personas — LLM-powered agents.
3
- Only hypothesis_hunter and expression_compiler are actively used in the pipeline.
4
  """
5
  from .hypothesis_hunter import generate_hypothesis
6
  from .expression_compiler import compile_expression
7
-
8
- # These exist but are NOT wired into the pipeline yet:
9
- # from .crowd_scout import scout_novelty
10
- # from .performance_surgeon import diagnose_performance
11
- # from .gatekeeper import gate_alpha
12
-
13
- # Stubs so pipeline doesn't crash if something imports them
14
- async def scout_novelty(*args, **kwargs):
15
- """STUB — not implemented in pipeline."""
16
- from ..schemas import CrowdScoutResult, Verdict
17
- return CrowdScoutResult(
18
- max_corr_to_library=0.0, is_thematic_duplicate=False,
19
- anomaly_already_saturated=False, verdict=Verdict.ITERATE, reason="stub"
20
- )
21
-
22
- async def diagnose_performance(*args, **kwargs):
23
- """STUB — not implemented in pipeline."""
24
- from ..schemas import SurgeonResult, Verdict
25
- return SurgeonResult(
26
- regime_dependent=False, decay_detected=False, sign_error_likely=False,
27
- iteration_suggestion="none", verdict=Verdict.ITERATE, reason="stub"
28
- )
29
-
30
- async def gate_alpha(*args, **kwargs):
31
- """STUB — not implemented in pipeline."""
32
- from ..schemas import GatekeeperMemo
33
- return GatekeeperMemo(
34
- go_no_go=True, confidence=0.5, strengths=[], weaknesses=["not implemented"],
35
- risks=["stub"], recommendation="manual review", full_memo="stub"
36
- )
37
 
38
  __all__ = [
39
  "generate_hypothesis", "compile_expression",
 
1
  """
2
  Personas — LLM-powered agents.
3
+ All personas are wired into the pipeline via real implementations.
4
  """
5
  from .hypothesis_hunter import generate_hypothesis
6
  from .expression_compiler import compile_expression
7
+ from .crowd_scout import scout_novelty
8
+ from .performance_surgeon import diagnose_performance
9
+ from .gatekeeper import gate_alpha
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  __all__ = [
12
  "generate_hypothesis", "compile_expression",