2026-01-27 · AI & Agents

Building Coordinated Intelligence: Daily Extraction with Proportional Allocation

The Problem

Knowledge extraction systems face a fundamental tension: extract too aggressively and you overwhelm downstream systems, extract too conservatively and insights arrive too slowly. Manual tuning per extractor is brittle - data sources grow at different rates, and hardcoded limits quickly become obsolete.

The Solution: Proportional Allocation

We implemented a daily extraction worker that solves this elegantly:

  1. Scan Phase: Query all extractors to estimate available unprocessed data
  2. Allocation Phase: Distribute a daily budget (300 entities) proportionally across sources
  3. Execution Phase: Each extractor runs with its calculated limit
# Step 1: See what's available
scan_results = Enum.map(@extractors, &scan_extractor/1)

# Step 2: Calculate fair share
total_available = Enum.sum(available_counts)
allocations = Enum.map(available, fn {name, count, module} ->
  allocated = max(1, round(count / total_available * daily_limit))
  {name, allocated, module}
end)

# Step 3: Extract proportionally
Enum.each(allocations, fn {name, limit, module} ->
  run_single_extractor(module, name, limit)
end)

This ensures:

Concurrent Agent Execution

We also established remote gateway infrastructure for concurrent Claude agent execution:

Architecture:

Why This Matters:

Systems Thinking

The key insight: coordination beats optimization.

Rather than perfectly tuning each extractor, we created a system where extractors coordinate through a shared budget. The allocation algorithm automatically adapts as data sources grow or shrink.

Rather than running sequential agent tasks, we built infrastructure for parallel execution. The gateway handles coordination while agents work autonomously.

Both solutions share the same principle: define boundaries, distribute resources fairly, let components self-organize.

Technical Stack

Results

What's Next


Built on v0.1.0-pre-integration - the tag before everything got wild.