Repository navigation
Conversation
namirali
marked this pull request as ready for review
November 2, 2026 21:04
This branch has not been deployed
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.
What and why
CompanyEnrich is a B2B company and people data API covering company enrichment, account search, similar companies, professional profiles and workforce research. This contribution adds a useful native finder workflow: one explicitly authorized people-search page feeds OpenOutFind's existing local qualification and CSV/JSON export.
Related to #1. The default BetterContact free discovery is unchanged. A configured CompanyEnrich key alone is inert. The paid path requires all of:
The query supports domain/title/location/seniority/department/date/education filters, exclusions and explicit pagination. Size defaults to ten and caps at 100; the required local credit reservation is twice page size at the published current 2-credit/profile rate. There is one request at most, no automatic extra page and no email discovery. Compound company lookup/search, expansions and other paid operations are intentionally excluded from this contract.
Spend and data boundaries
CompanyEnrichPagecommits a unique request-ID reservation before HTTP and stores the complete response before embedding. Resuming reuses data; unknown outcomes never replay automatically. New IDs are explicit new authorizations, not provider-side idempotency.Lead.discovery_sourcepreserves local-only hub policy across runs and duplicates. CompanyEnrich pages, employers, embeddings, later email give-back and hub lookups are excluded. Later free-provider pages cannot override that policy, including alternate URL spellings. The operator's configured LLM and directed exports still receive profiles through the existing workflow.Validation
.venv/bin/python -m pytest -q(Python 3.13, Django 6.1.2); 35 existing sklearn convergence warnings in the walk suite.makemigrations --check --dry-runreports no changes.action_requiredwith no jobs started; upstream workflow approval is pending.Setup, query examples, deliberate endpoint scope and limitations are in
docs/companyenrich.md; README, architecture, contributor/agent instructions, shipped skill and data-handling notices are synchronized. Existing installations receive two additive migrations.Ready for review of the optional paid-source interface and durable data policy.