Skip to content

feat: add external-state finance preparation#242

Open
abolsen wants to merge 22 commits into
mainfrom
context-preparation-engine
Open

feat: add external-state finance preparation#242
abolsen wants to merge 22 commits into
mainfrom
context-preparation-engine

Conversation

@abolsen

@abolsen abolsen commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add generic external-state/MCP consumer support with read-only safety checks and capability discovery
  • add provider-neutral finance/trader recognition, work products, freshness/sensitivity fields, and finance prepared-work surfacing
  • add model-native/web-search fallback support for finance news via configured providers
  • add CLI/control-UI configuration for external state and auto-discovered tools
  • simplify Cockpit default Overview/Ready Work surfaces so high-signal work is visible without raw diagnostic noise

Verification

  • python -m ruff check src/vaner/external_state src/vaner/integrations/mcp_consumer src/vaner/intent/prepared_work.py src/vaner/intent/work_products.py tests/test_external_state tests/test_integrations/test_mcp_consumer_client.py tests/test_integrations/test_mcp_consumer_safety.py
  • PYTHONPATH=src pytest -q tests/test_external_state tests/test_integrations/test_mcp_consumer_client.py tests/test_integrations/test_mcp_consumer_safety.py tests/test_daemon/test_prepared_work_endpoint.py tests/test_daemon/test_work_products_endpoint.py
  • npm test in ui/cockpit
  • npm run build in ui/cockpit

@github-actions github-actions Bot added docs Documentation updates tests labels May 6, 2026
Comment thread ui/cockpit/src/components/HeatmapReplayView.tsx Fixed
Comment thread ui/cockpit/src/lib/heatmap.ts Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/store/artefacts.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
Comment thread src/vaner/broker/selector.py Fixed
)
)
else:
available_paths = []
semantic_trace.output_count += len(semantic_keys)
tool_traces.append(semantic_trace)
else:
exact_paths = set()
tool_traces.append(semantic_trace)
else:
exact_paths = set()
source_hint_paths = set()
@abolsen abolsen changed the title Strengthen Vaner context preparation engine feat: add external-state finance preparation May 25, 2026
Comment thread src/vaner/external_state/model_search.py Fixed
Comment thread src/vaner/external_state/model_search.py Fixed
Comment thread src/vaner/external_state/models.py Fixed
// The vendored @modelcontextprotocol/ext-apps SDK is inlined here at
// import time from active_predictions.html (single source of truth).
// Re-vendor instructions live in the active_predictions.html banner.
__EXT_APPS_SDK__
// The vendored @modelcontextprotocol/ext-apps SDK is inlined here at
// import time from active_predictions.html (single source of truth).
// Re-vendor instructions live in the active_predictions.html banner.
__EXT_APPS_SDK__
if "prohibited_actions_json" not in work_product_columns:
await db.execute("ALTER TABLE work_products ADD COLUMN prohibited_actions_json TEXT NOT NULL DEFAULT '[]'")
await db.execute("INSERT OR IGNORE INTO schema_version(version) VALUES (10)")
current_schema_version = 10
Comment thread src/vaner/external_state/model_search.py Fixed
lookback_days: int,
limit: int,
) -> ExternalStateSnapshot | None:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation updates tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants