cuba_juez
Resolves ambiguous semantic conflicts between observations by using an LLM to judge pairs when cosine similarity falls between 0.6 and 0.8, catching vocabulary-different contradictions.
Instructions
LLM-judge for semantically-conflicting observations (v0.8). When cosine similarity sits in the ambiguous band (0.6-0.8), heuristic detectors miss vocabulary-different conflicts (e.g. 'Postgres' vs 'MongoDB'). cuba_juez escalates a pair to a real LLM via subprocess (Claude Code CLI, $0 if you have a subscription) or — when feature 'anthropic-api' is built in — the Anthropic API directly. Verdicts are persisted in brain_judgments (UNIQUE per pair = permanent cache).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | judge_pair = decide on two given obs ids; scan_entity = pull ambiguous pairs and judge each | |
| max_pairs | No | Max pairs to escalate per call (default 5; controls LLM cost) | |
| entity_name | No | Entity to scan (for scan_entity) | |
| observation_a | No | UUID of first observation (for judge_pair) | |
| observation_b | No | UUID of second observation (for judge_pair) |