Spaces:
Running
Running
Commit History
6 days ago
-
fix(langsmith): send session id with verdict feedback and query runs via SmithDB
Feedback now includes the project id SmithDB requires, and the golden-dataset script uses the run query that stays available after January 31, 2027. Co-authored-by: Cursor <cursoragent@cursor.com>16c007c -
fix(llm): read LangChain content blocks as text
A model refusal now arrives as a list of blocks. Treating that list as a string made the fallback chain skip a live model. Co-authored-by: Cursor <cursoragent@cursor.com>7d8c688
-
fix(llm): update OpenRouter model chain to currently-available free models
All 5 previously configured free-tier models (stepfun/step-3.5-flash, z-ai/glm-4.5-air, arcee-ai/trinity-*, nvidia/nemotron-3-nano-30b-a3b, meta-llama/llama-3.3-70b-instruct) returned 404 — no longer on the free tier, silently breaking the analyst/structured-output pipeline. New chain (verified live via OpenRouter API 2026-09): - nvidia/nemotron-3.5-lightning:free (primary, clean tool-calling) - nvidia/nemotron-3-super-120b-a12b:free - dots-studio/dots-3-note-preview:free - inclusionai/ling-3.0-flash-sante:free - openrouter/free (resilient router catch-all) STRUCTURED_MODEL -> nemotron-3.5-lightning:free (reliable finish_reason=tool_calls for InvestmentVerdict structured output). Updated debate defaults, EVAL_MODEL, model benchmark list, and docs.8005d62
-
feat: portfolio re-evaluation GitHub Action + structured LLM timeout
- New src/reeval_portfolio.py: fetches US tickers from VPS DuckDB, runs gatekeeper+analyst, updates verdicts, routes BUY through Alpaca - New .github/workflows/reeval.yml: daily 14:00 UTC + manual dispatch - src/llm.py: add 120s request_timeout to get_structured_llm() - scripts/test_reeval_us_tickers.py: local test with --limit flagc602f24
-
feat: Sprint 9 — Execution & Quality Control
Pre-Sprint Bug Fixes: - Fix double-header in verdict reports (strip LLM-embedded headers) - Fix structured output token limit (get_structured_llm with max_tokens=4096) - Fix fallback path skipping Kelly (compute position sizing in except block) Epic 1 — Grading Engine: - scripts/build_golden_dataset.py: curate 50 LangSmith traces into Dataset - scripts/evaluators.py: 5 evaluators (catalyst grounding, company identity, format, verdict validity, Kelly math) - scripts/run_evals.py: evaluation runner for LangSmith Experiments Epic 2 — Alpaca Paper Trading: - src/broker/alpaca.py: order router, submission, status tracking - Wire Alpaca execution into portfolio_tracker.py - Update VPS schema + API with order_id, fill_price, broker_status Epic 3 — Intraday Catalyst Triggers: - vps/catalyst_poll.py: polling daemon (volume, price, insider triggers) - GitHub Actions repository_dispatch for catalyst-alert events - whale_hunter.py CATALYST_TICKER env var for single-ticker mode Epic 4 — Multi…645673f
-
feat: integrate LangSmith observability (Sprint 8 Epic 1)
- Enable LANGCHAIN_TRACING_V2 in hunter.yml (GitHub Actions) - Instrument llm.py with RunnableConfig tags/metadata for 429 tracking - Extract analyst prompt to src/prompts/senior_broker.py (Hub + fallback) - Add scripts/push_prompt_to_hub.py for Hub upload - Fix broken langchain.prompts imports in news_intelligence.py & portfolio_manager.py - Wire agent.py to use Hub prompt and run_name labelsd2f5b87