@harness-engineering/orchestrator 0.2.7 → 0.2.9

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.
package/README.md CHANGED
@@ -11,8 +11,16 @@ Orchestrator daemon for dispatching coding agents to issues. Polls an issue trac
11
11
  └──────────────────┬───────────────────────────────┘
12
12
 
13
13
  ┌──────────────────────────────────────────────────┐
14
+ │ Intelligence Pipeline (optional) │
15
+ │ SEL (spec enrichment) → CML (complexity) → │
16
+ │ ConcernSignals → PESL (simulation + abort) │
17
+ │ (@harness-engineering/intelligence) │
18
+ └──────────────────┬───────────────────────────────┘
19
+
20
+ ┌──────────────────────────────────────────────────┐
14
21
  │ Core State Machine │
15
22
  │ Candidate Selection · Concurrency Control │
23
+ │ Model Routing (routeIssue + concern signals) │
16
24
  │ Reconciliation · Retry Logic │
17
25
  │ Event Sourcing (applyEvent → side effects) │
18
26
  └──────────────────┬───────────────────────────────┘
@@ -75,6 +83,18 @@ const ranked = sortCandidates(issues);
75
83
  const selected = selectCandidates(ranked, availableSlots);
76
84
  ```
77
85
 
86
+ ### Intelligence Pipeline Integration
87
+
88
+ When `config.intelligence.enabled` is `true`, the orchestrator runs the intelligence pipeline during each tick:
89
+
90
+ 1. **Pre-routing** — For each candidate issue, `preprocessIssue()` runs SEL (spec enrichment) and CML (complexity scoring), producing `ConcernSignal[]` that feed into `routeIssue()`. For `alwaysHuman` tiers, the enriched spec is attached to the escalation for human context.
91
+ 2. **Post-routing** — For locally-routed issues, PESL simulation runs. If `abort: true` (confidence < 0.3), the dispatch converts to an escalation.
92
+ 3. **Post-execution** — On `worker_exit`, execution outcomes are recorded into the graph for future CML historical scoring.
93
+
94
+ When disabled (default), the pipeline is skipped entirely and routing uses empty concern signals.
95
+
96
+ See [`@harness-engineering/intelligence` README](../intelligence/README.md) for full pipeline documentation.
97
+
78
98
  ### Agent Backends
79
99
 
80
100
  Two backends are available: