Repository navigation
Conversation
… all providers Add a `jazzhr` knowledge-base connection type that ingests JazzHR (Resumator) candidates into Qdrant for retrieval, and a `scope.all` wildcard supported by every provider. JazzHR driver (apps/connection-broker/src/drivers/jazzhr.ts): - A Corpus is scoped to one job (scope.jobID) or every permitted job (scope.all). `fetch` renders a candidate — profile, questionnaire and the decoded resume (inline, or a file: PDF via unpdf, DOCX via OOXML, text sniffed) — to Markdown. - Built from a working integration (bitovi/RatingCandidates), not the published docs: dual apikey/api_key query auth, a WAF-satisfying User-Agent, path-segment pagination (/page/N, 100/page), the bare-object-for-one-item shape, and 429 retry honouring Retry-After. - probeGranularity "connection": JazzHR has no per-candidate ACL. Wildcard scope (scope.all) across confluence/slack/gdrive/jazzhr: - Shared listWildcard helper: a wildcard reaches the Connection's allowedScopes when capped, otherwise the units the driver enumerates (jazzhr /jobs, slack users.conversations, confluence /spaces). gdrive requires a folderIDs cap — it has no cheap "every folder" query. - Bounded on the scope as allowedUnits, re-lists in full each reconcile (per-unit cursors don't compose; reconcile is the source of truth and content-hash dedupe re-embeds nothing unchanged). CRD/controller: Connection provider enum += jazzhr and allowedScopes.jobIDs; CorpusScope += jobID + all with an updated exactly-one CEL rule; checkScope gains a jazzhr case and permits any known provider's wildcard. Samples, connection-broker apiOrigins.jazzhr, and an e2e fake + wildcard spec added. Tests: jazzhr + wildcard unit tests, dispatch/binding cases, Go controller cases (all green); full broker suite 475 passing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MtYgf8xTKWvrgHCDcDkSEd
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
Adds a new
jazzhrknowledge-base connection type that fetches candidates from JazzHR (Resumator) and ingests them into Qdrant for searching, and ascope.allwildcard that every corpus provider now supports.JazzHR driver —
apps/connection-broker/src/drivers/jazzhr.tsscope.jobID) or every permitted job (scope.all).fetchrenders a candidate — profile, questionnaire answers, and the decoded resume — to Markdown for embedding. Resume is the inline profile text when present, otherwise the best resume file: PDF viaunpdf, DOCX via OOXML, plain text sniffed (MIME is frequently wrong/empty).bitovi/RatingCandidates), not the published docs, which are incomplete/wrong. The quirks it reproduces, each learned live there:?apikey=<k>&api_key=<k>. No header auth./page/N, 100/page, stop on a short page; a one-item listing comes back as a bare object, not a 1-element array.Retry-After.probeGranularity: "connection"— JazzHR has no per-candidate ACL, so there is nothing to probe per candidate.Wildcard scope (
scope.all) — all providersRequested: a corpus that covers all jobs, and the same capability on every existing corpus type.
listWildcardhelper: a wildcard reaches the Connection'sallowedScopeswhen capped, otherwise the units the driver enumerates — jazzhr/jobs, slackusers.conversations, confluence/spaces. gdrive requires afolderIDscap (Drive has no cheap "every folder" query; indexing a whole account is a footgun), and refuses an uncapped wildcard with a clear error.scope.allowedUnits(the security boundary reaches the driver). A wildcard corpus re-lists in full each reconcile — per-unit cursors don't compose into one incremental cursor, the reconcile pass is the source of truth, and the worker's content-hash dedupe re-embeds nothing that didn't change.CRD / controller
Connection.providerenum+= jazzhr;allowedScopes.jobIDsadded.CorpusScope+= jobID + all; the exactly-one CEL rule now countsjobIDandall.checkScopegains ajazzhrcase and permits any known provider's wildcard (bounded at enumeration, not by a single-unit match).connection-brokerapiOrigins.jazzhr, and the generated CRDs regenerated viamake manifests generate.Ingest depth
Profile + resume file (the recommended default — richest searchable text). Easy to narrow to profile-only if preferred.
Tests
jazzhr.test.ts(auth/WAF, path-segment pagination, bare-object, wildcard capped+uncapped, resume inline/file/download/decode, 429 retry, error classification),wildcard.test.ts, dispatch/binding cases, and slack/gdrive wildcard cases.fake-jazzhrmanifest + a wildcard corpus spec asserting the wildcard reached candidates from both jobs.Not touched
Nothing in the chunk/embed/Qdrant-write path, RBAC,
KnowledgeBaseCRD, or server routes — those are generic over theDriverinterface.🤖 Generated with Claude Code
https://claude.ai/code/session_01MtYgf8xTKWvrgHCDcDkSEd