Add company intelligence & decision engine with recommendations, scheduler jobs, frontend UI and CI#5
Merged
Code-311 merged 1 commit intoopportunityfrom Mar 10, 2026
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
0003_company_signalsand0004_recommendations, new modelsCompanySignalandRecommendation, and wire them intobackend/app/db/base.py.company_intelligenceservice with RSS parsing and ingestion (backend/app/services/company_intelligence.py) and a decision engine that generates/upserts recommendations (backend/app/services/decision_engine.py).backend/app/api/v1/routes.pywith endpoints forGET /company-signals,POST /ingest/company-intelligence,GET/POST /recommendationsand a detail endpoint, plus automatic recommendation refreshes after ingest/rescore/opportunity updates, and admin job hooks forcompany_intelligenceanddecision_engine.company_intelligence_jobanddecision_engine_jobinbackend/app/jobs/scheduler.pyand register them instart_scheduler().frontend/src/lib/api.ts.test_company_intelligence.py,test_decision_engine.py, andtest_recommendations_api.py, and update backend packaging config (pyproject.toml) and project docs (HOWTO.md,README.md)..github/workflows/ci.yml) to run backendpytest -qand frontendnpm test/npm run buildon push and pull requests.Testing
pytest -q, which executed the new teststest_company_intelligence.py,test_decision_engine.py, andtest_recommendations_api.pyand they passed.npm testandnpm run build; the workflow file/.github/workflows/ci.ymlwas added to enable these checks on push and PRs.TestClientsmoke test intest_recommendations_api.py, which returned HTTP 200 for the recommendations endpoints.Codex Task