Add company intelligence and decision engine (models, APIs, scheduler, frontend, CI, migrations)#4
Closed
Code-311 wants to merge 1 commit intoopportunityfrom
Closed
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
CompanySignalandRecommendationwith corresponding Alembic migrations (0003_company_signals,0004_recommendations).app.services.company_intelligenceto parse/normalize RSS-style feeds and persistcompany_signals, andapp.services.decision_engineto synthesize and upsert recommendations; both integrate with existing signal/opportunity models.app.api.v1.routeswith endpoints forGET /company-signals,POST /ingest/company-intelligence,GET/POST /recommendationsand wired automatic recommendation refreshes after ingestion/rescore/opportunity changes and an admin job trigger forcompany_intelligenceanddecision_enginejobs.app.jobs.schedulerforcompany_intelligenceanddecision_engineand recorded job runs viaJobRunobservability hooks.backend/app/testscovering company intelligence parsing and ingestion, decision engine generation and expiration behavior, and basic recommendations API existence; updatedbackend/pyproject.tomlto include package discovery and exported models inapp.db.base.HOWTO.mdwith operational/runbook details and a GitHub Actionsci.ymlto validate backend (pytest) and frontend (npm test+ build) on push and PR.Testing
pytest -q, includingtest_company_intelligence.py,test_decision_engine.py, andtest_recommendations_api.py, and they passed./.github/workflows/ci.ymlto runpytestfor the backend andnpm testplusnpm run buildfor the frontend on push and pull requests.Codex Task