Celes Renata
419cf7558a
fix: evidence articles missing on recommendations + Lucide title prop CI failure
...
- recommendation worker: filter out non-UUID document IDs (synthetic
pattern:* IDs from competitive signals) before inserting into
recommendation_evidence table — the uuid cast was failing and
silently dropping all evidence rows
- wrap executemany in try/except so partial failures don't lose all evidence
- SqlExplorer: wrap Lucide icons in <span title=...> instead of passing
title prop directly (not supported by lucide-react, broke CI build)
2026-04-17 07:10:21 +00:00
Celes Renata
7c23c044d7
feat: agent variants — migration, API, service integration, frontend, tests
...
- Migration 027: agent_variants table with single-active enforcement,
variant_id column on agent_performance_log
- API: full CRUD, clone from agent/variant, activate/deactivate,
per-variant performance metrics and history endpoints
- Services: extractor, event classifier, thesis rewriter all wired
to AgentConfigResolver with variant override support
- Frontend: variant list, comparison view, create/edit/clone forms,
activate/delete actions on Agents page
- Tests: API tests + 5 property-based tests (single-active invariant,
clone preservation, config resolution, slug determinism, update idempotence)
- Spec files for agent-variants feature
2026-04-17 05:15:42 +00:00
Celes Renata
f11aa0a1ee
fix: deduplicate recommendations and widen position sizing range
...
- Add dedup check in recommendation worker: skip generation when latest
rec for same ticker+window has identical action/mode/confidence
- Widen position sizing range (1-10% portfolio, 0.3-2% max loss) and
factor in trend strength + evidence count for differentiated sizing
- API returns only latest recommendation per ticker by default (DISTINCT ON)
to eliminate duplicate rows in the frontend list view
2026-04-17 00:15:32 +00:00
Celes Renata
d8ea58104c
fix: lint errors (import sorting, unused vars)
2026-04-14 19:48:19 +00:00
Celes Renata
f7a11d14ea
feat: competitive intelligence & historical pattern matching layer
2026-04-14 19:42:48 +00:00
Celes Renata
b478022ba3
fix: data quality query and suppression fallback in recommendation worker
...
- Fix _DATA_QUALITY_QUERY: remove nonexistent d.source_id/s.source_class,
use d.source_type directly
- Fix LIMIT 1 applied after jsonb expansion by restructuring as CTE
- Fix fallback build_quality_context_from_summary returning empty
source_types which always triggered LOW_SOURCE_DIVERSITY suppression
- Update test to reflect corrected fallback behavior
2026-04-14 06:57:46 +00:00
Celes Renata
d16e15c885
phase 17: quote reserved word 'window' in all SQL queries across recommendation worker and query API
2026-04-12 03:45:51 -07:00
Celes Renata
109440c91e
phase 15: fix ruff lint errors across services
2026-04-11 12:10:01 -07:00
Celes Renata
ce10afa034
phase 14-15: docker build validation and helm deployment
2026-04-11 11:59:45 -07:00
Celes Renata
ebea70573b
phase 0+1: project scaffold, k8s manifests, CI pipeline, steering, hooks, tests
...
- Repository structure for all services, infra, lakehouse, dashboards
- K8s manifests targeting stonks-oracle namespace with GHCR images
- Ingress via Traefik with ca-issuer TLS for internal services
- ConfigMap wired to existing cluster services (pg, redis, minio, ollama)
- GitHub Actions workflow for lint, test, multi-service container builds
- Dockerfile with build-arg CMD per service
- Makefile for local build/push/deploy
- Steering rules for TDD workflow, K8s conventions, project context
- Agent hooks for lint-on-save, test-on-save, k8s-validate, phase-commit
- Ruff linter config, all lint issues fixed
- 14 passing tests for schemas, config, redis keys
- PostgreSQL migrations, Trino catalogs, Superset config, MinIO lifecycle
2026-04-11 03:25:08 -07:00