"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
fix(grounding): apply attribution exemption in _validate_price_claims
cgycorey95e2c2f86c11
diff --git a/agent/src/agent/grounding.py b/agent/src/agent/grounding.pyindex 7375ae7fd..0fc93e285 100644--- a/agent/src/agent/grounding.py+++ b/agent/src/agent/grounding.py@@ -2968,6 +2968,16 @@ class GroundingLedger:)if self._is_explicit_derivation(segment, records, symbol):continue+ # An attributed figure ("The paper reports TSLA.US traded at+ # 412.35") is a citation, not an invented price — skip the+ # price gate too, for the same reason as the analysis and+ # unsourced-symbol gates. Without this, an attributed price+ # is rejected or accepted purely on whether its verb happens+ # to match _PRICE_CONTEXT_RE ("reports" does, "estimate"+ # doesn't), which is the exact vocabulary asymmetry under+ # review.+ if _ATTRIBUTION_RE.search(segment):+ continuefor value in values:issue = self._compare_price_claim(value=value,