Skip to content

"Vibe-Trading: Your Personal Trading Agent"

fix(grounding): preserve the price-derived document fallback

zeus229ab76ae9abb77
diff --git a/agent/src/agent/grounding/policies.py b/agent/src/agent/grounding/policies.py
index 7ee34b16f..dc842fd9f 100644
--- a/agent/src/agent/grounding/policies.py
+++ b/agent/src/agent/grounding/policies.py
@@ -460,7 +460,11 @@ class _PolicyMixin:
and record.value is not None
and record.symbol
]
- document_symbol = self._symbol_for_claim(content, symbol_records)
+ # Preserve the existing price-derived document fallback. A report may
+ # mention a secondary instrument only for fundamentals; that should make
+ # explicit claims about the secondary resolvable without making otherwise
+ # unattributed primary-listing figures ambiguous.
+ document_symbol = self._symbol_for_claim(content, records)
positions = _lines_with_offsets(content)
line_symbols = [
self._symbol_for_claim(line, symbol_records) for line, _ in positions