Commit Graph

395 Commits

Author SHA1 Message Date
Celes Renata 2ab52afc73 ci: trigger Woodpecker build
Build and Push / lint-and-test (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.adapters.broker_adapter name:broker-adapter]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.aggregation.worker name:aggregation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.extractor.worker name:extractor]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.ingestion.worker name:ingestion]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.lake_publisher.worker name:lake-publisher]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.parser.worker name:parser]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.recommendation.worker name:recommendation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.scheduler.app name:scheduler]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.api.app:app --host 0.0.0.0 --port 8000 name:query-api]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.risk.app:app --host 0.0.0.0 --port 8000 name:risk]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.symbol_registry.app:app --host 0.0.0.0 --port 8000 name:symbol-registry]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.trading.app:app --host 0.0.0.0 --port 8000 name:trading-engine]) (push) Has been cancelled
Build and Push / build-dashboard (push) Has been cancelled
Build and Push / build-superset (push) Has been cancelled
Build and Push / integration-test (push) Has been cancelled
Build and Push / beta-gate (push) Has been cancelled
2026-04-28 14:43:40 +00:00
Celes Renata 1aae36382c fix: point WOODPECKER_GITEA_URL to external https://git.celestium.life
Build and Push / lint-and-test (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.adapters.broker_adapter name:broker-adapter]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.aggregation.worker name:aggregation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.extractor.worker name:extractor]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.ingestion.worker name:ingestion]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.lake_publisher.worker name:lake-publisher]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.parser.worker name:parser]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.recommendation.worker name:recommendation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.scheduler.app name:scheduler]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.api.app:app --host 0.0.0.0 --port 8000 name:query-api]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.risk.app:app --host 0.0.0.0 --port 8000 name:risk]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.symbol_registry.app:app --host 0.0.0.0 --port 8000 name:symbol-registry]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.trading.app:app --host 0.0.0.0 --port 8000 name:trading-engine]) (push) Has been cancelled
Build and Push / build-dashboard (push) Has been cancelled
Build and Push / build-superset (push) Has been cancelled
Build and Push / integration-test (push) Has been cancelled
Build and Push / beta-gate (push) Has been cancelled
2026-04-28 14:36:48 +00:00
Celes Renata 98bbec9b8d fix: set Gitea ROOT_URL to external domain, update Woodpecker OAuth2 credentials
Build and Push / lint-and-test (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.adapters.broker_adapter name:broker-adapter]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.aggregation.worker name:aggregation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.extractor.worker name:extractor]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.ingestion.worker name:ingestion]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.lake_publisher.worker name:lake-publisher]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.parser.worker name:parser]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.recommendation.worker name:recommendation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.scheduler.app name:scheduler]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.api.app:app --host 0.0.0.0 --port 8000 name:query-api]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.risk.app:app --host 0.0.0.0 --port 8000 name:risk]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.symbol_registry.app:app --host 0.0.0.0 --port 8000 name:symbol-registry]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.trading.app:app --host 0.0.0.0 --port 8000 name:trading-engine]) (push) Has been cancelled
Build and Push / build-dashboard (push) Has been cancelled
Build and Push / build-superset (push) Has been cancelled
Build and Push / integration-test (push) Has been cancelled
Build and Push / beta-gate (push) Has been cancelled
2026-04-28 14:34:43 +00:00
Celes Renata 24db0e97f6 feat: add Gitea NFS PV, declarative deployment, and wire into runmefirst.sh
Build and Push / lint-and-test (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.adapters.broker_adapter name:broker-adapter]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.aggregation.worker name:aggregation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.extractor.worker name:extractor]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.ingestion.worker name:ingestion]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.lake_publisher.worker name:lake-publisher]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.parser.worker name:parser]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.recommendation.worker name:recommendation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.scheduler.app name:scheduler]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.api.app:app --host 0.0.0.0 --port 8000 name:query-api]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.risk.app:app --host 0.0.0.0 --port 8000 name:risk]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.symbol_registry.app:app --host 0.0.0.0 --port 8000 name:symbol-registry]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.trading.app:app --host 0.0.0.0 --port 8000 name:trading-engine]) (push) Has been cancelled
Build and Push / build-dashboard (push) Has been cancelled
Build and Push / build-superset (push) Has been cancelled
Build and Push / integration-test (push) Has been cancelled
Build and Push / beta-gate (push) Has been cancelled
2026-04-28 14:29:58 +00:00
Celes Renata 226d799eb2 feat: auto-clamp buy orders to fit within position limits instead of hard-rejecting 2026-04-28 14:20:44 +00:00
Celes Renata e360b66c3e fix: beta trading pipeline — max_tokens default, approval re-enqueue, credentials
- Migration 031: change ai_agents/agent_variants max_tokens default
  from 32768 to 4096 (32768 exceeds vLLM context window, causing
  HTTP 400 on every extraction)
- API: re-enqueue approved orders to broker queue — previously
  approved orders sat in DB with nothing to execute them
- values-beta: enable TRADING_ENABLED, update Alpaca paper keys
2026-04-28 14:13:58 +00:00
Celes Renata 0437943863 fix: reduce vLLM default max_tokens to 4096, update model to AxionML/Qwen3.5-9B-NVFP4
The model's max_model_len is 16384 — requesting 32768 output tokens
caused HTTP 400 from vLLM. 4096 is a safe default for extraction output.
2026-04-23 19:49:34 +00:00
Celes Renata f7ae34ef3b fix: add extract() method to VLLMClient for extraction pipeline compatibility 2026-04-23 19:32:33 +00:00
Celes Renata 4bee7a7874 fix: update vLLM model to AxionML/Qwen3.5-9B-NVFP4 2026-04-23 19:30:22 +00:00
Celes Renata 5cf60be76d fix: remove Docker Hub login from CI builds
Harbor dockerhub-cache proxy handles Docker Hub pulls without
needing direct Docker Hub authentication. Removes the failing
index.docker.io login blocks from all build pipeline steps.
2026-04-23 12:08:37 +00:00
Celes Renata 6909ac5e50 feat: add vLLM config to beta values overlay 2026-04-23 08:19:03 +00:00
Celes Renata 117b693b19 feat: add remote vLLM support with provider abstraction layer
- LLMClient Protocol for provider-agnostic inference
- VLLMClient for OpenAI-compatible /v1/chat/completions API
- LLM client factory with provider routing (ollama/vllm)
- VLLMConfig with VLLM_* environment variable loading
- Updated extractor worker with health check and provider switching
- Updated event classifier to use LLMClient protocol
- Helm values for vLLM configuration
- 18 unit tests + 6 property-based tests
- Full backward compatibility preserved
2026-04-23 08:17:23 +00:00
Celes Renata 63e4fb96ea fix: increase waitFor timeout for CI environments 2026-04-22 03:36:36 +00:00
Celes Renata e517cea081 ci: retrigger pipeline 2026-04-22 03:23:14 +00:00
Celes Renata 88ad1e8d99 feat: comprehensive docs, unit tests, docker-compose app services
- Add scheduler and ingestion unit tests (test_scheduler_unit.py, test_ingestion_unit.py)
- Add all 13 app services + dashboard to docker-compose.yml
- Add full documentation suite: API reference, Helm reference, Docker deployment guide,
  3 architecture diagrams (K8s, Docker Compose, data pipeline), AI agent guide,
  backup/restore guide, observability/metrics reference, per-service docs
- Add intelligence pipeline deep-dive docs with Mermaid diagrams
- Update README with documentation index and links
- Add specs for comprehensive-quality-docs, intelligence-pipeline-deep-dive,
  sanitized-pipeline-docs
2026-04-22 02:56:41 +00:00
Celes Renata f251c53f92 fix: risk engine blocking sell orders on over-concentrated positions
Two bugs: (1) trading engine omitted estimated_value from sell order
jobs, causing risk engine to compute 0 reduction; (2) risk engine
applied position size limits to sells, trapping users in positions
they couldn't exit. Sells now always pass position value/pct checks.
2026-04-22 02:07:24 +00:00
Celes Renata 3b49aa2fa2 fix: risk engine now allows sells on over-concentrated positions 2026-04-21 20:25:02 +00:00
Celes Renata 5dcbd286e8 fix: update beta Alpaca broker credentials 2026-04-21 16:43:54 +00:00
Celes Renata d407888caa feat: set beta Ollama model to qwen3.6 2026-04-21 09:55:52 +00:00
Celes Renata abdf639925 feat: isolate beta on stonks_beta database, stop sharing stonks_paper 2026-04-21 09:50:22 +00:00
Celes Renata a99aaa29ca feat: point beta Ollama to 192.168.42.254:11434 2026-04-21 09:36:03 +00:00
Celes Renata db752c86a0 ci: retrigger build after CoreDNS fix for registry.celestium.life 2026-04-21 08:35:45 +00:00
Celes Renata a023050223 feat: add detail page tests for Documents, Recommendations, Trends, Events, Companies (176 total) 2026-04-21 07:39:19 +00:00
Celes Renata 58a63408c7 feat: add Ops and Watchlists tests (144 total frontend tests) 2026-04-21 07:20:29 +00:00
Celes Renata 7eff484434 feat: add Documents and Companies interaction tests (121 total) 2026-04-21 07:16:35 +00:00
Celes Renata 34d353bf3f feat: add 25 tests for Trading Controls and Global Events pages (100 total) 2026-04-21 07:10:30 +00:00
Celes Renata 680e7ab1b8 fix: remove unused within import in orders test (TS strict) 2026-04-21 06:57:26 +00:00
Celes Renata 170db13da9 feat: add 40 interaction tests for Positions, Orders, Trends, Recommendations pages 2026-04-21 06:51:16 +00:00
Celes Renata 68a675da3a fix: remove ignoreDifferences on Secrets for beta and paper ArgoCD apps 2026-04-21 06:29:43 +00:00
Celes Renata 3bcb84ed41 fix: positions totals row aligned with DataTable columns, restore $ prefix 2026-04-21 06:11:19 +00:00
Celes Renata 50c61b0e18 feat: use Harbor-cached buildkit image for buildx in CI 2026-04-21 05:58:46 +00:00
Celes Renata 53fa190ec3 feat: add totals row to Positions page 2026-04-21 05:45:44 +00:00
Celes Renata 08b93ad119 fix: add beta Alpaca broker credentials for separate paper account 2026-04-21 05:32:13 +00:00
Celes Renata 19f39301d3 fix: skip superset/trino ingress when hostname is empty (fixes Kargo beta promotion) 2026-04-21 05:09:08 +00:00
Celes Renata 9275351279 fix: beta stage uses paper DB to resolve permission denied errors
Beta was pointing at stonks_beta DB where tables were owned by postgres
superuser, causing permission denied for the stonks app user. Switch to
sharing stonks_paper DB/user (already has proper grants). DEPLOY_STAGE=beta
still isolates Redis keys and MinIO buckets. Added market data API key
so beta can test ingestion when pipeline is toggled ON.
2026-04-21 04:57:29 +00:00
Celes Renata cfe4a92987 ci: retrigger (kyverno was restarting) 2026-04-21 04:40:25 +00:00
Celes Renata 86a7c8e3ab ci: retrigger after CoreDNS forward fix 2026-04-21 04:35:32 +00:00
Celes Renata eb58239d9c ci: retrigger after NixOS proxy removal 2026-04-21 04:31:19 +00:00
Celes Renata de133056ba fix: pull buildkit image from Harbor cache instead of Docker Hub 2026-04-21 04:14:42 +00:00
Celes Renata 312f266df3 ci: retrigger after agent restart (proxy env cleared) 2026-04-21 04:13:07 +00:00
Celes Renata 2c9aed91b7 ci: retrigger with clean secrets 2026-04-21 04:08:39 +00:00
Celes Renata 8f9f1e2495 fix: explicitly disable proxy in all build steps
The plugin-docker-buildx inherits proxy env vars from the pod/node.
Setting http_proxy/https_proxy to empty strings overrides any
inherited proxy config so Docker can reach Harbor directly.
2026-04-21 04:05:33 +00:00
Celes Renata 390cb0b4bf fix: remove proxy injection from build pods
SSL filtering is off on the proxy. The proxy env vars were causing
Docker login failures (proxy intercepting Harbor auth) and pip hash
mismatches (proxy caching stale packages). Keep only the CA cert
mount for any remaining TLS needs.
2026-04-21 04:02:23 +00:00
Celes Renata 5e897bed52 ci: retrigger (stale proxy cache for pip packages) 2026-04-21 03:59:27 +00:00
Celes Renata 5d0635a291 feat: beta deploys all services with pipeline toggle defaulting to OFF
- pipelineEnabled: true in beta so all pods run (Kargo happy)
- PIPELINE_DEFAULT_OFF=true in beta config — scheduler initializes
  the Redis toggle to OFF on first boot
- Shared Ollama (10.1.1.12:2701) between beta and paper
- Flip pipeline ON from the UI when testing, OFF when done
- Optimistic UI update for the toggle button
2026-04-21 03:54:00 +00:00
Celes Renata 66e8caa10f fix: accept any non-empty mode string in signal flow test 2026-04-21 03:08:49 +00:00
Celes Renata 36ea1fc585 ci: retrigger (SSL filtering disabled on proxy) 2026-04-21 02:56:30 +00:00
Celes Renata b0e64bf90f fix: add .celestium.life to NO_PROXY in Kyverno build pod policy
The Kyverno policy injected HTTP_PROXY into build pods but NO_PROXY
was missing .celestium.life. Docker login to registry.celestium.life
was going through the Squid proxy which does SSL interception,
causing auth failures.
2026-04-21 02:55:46 +00:00
Celes Renata 4282ad11b8 fix: add_host for registry.celestium.life in all build steps
Buildkit resolves registry hostnames using its own resolver which
doesn't use the custom_dns setting. Adding an explicit host entry
ensures registry.celestium.life resolves even when cluster DNS
can't reach the proxy DNS.
2026-04-21 02:50:07 +00:00
Celes Renata 6703b20b59 fix: wait for infra pods to exist before checking readiness
kubectl wait fails immediately with 'no matching resources found' if
pods haven't been created yet. Added a poll loop to wait for all 3
infra pods (postgres, redis, minio) to exist before running wait.
2026-04-21 02:42:20 +00:00