Borehole · Risk register · free tier
khoj-ai/khoj
Free reading: not for reliance
Borehole badge for khoj-ai/khoj
ae229ca · 5,180 commits · 702 files
Issued 2026-10-23

AGPL-3.0 since 2023-11-16: open source; offering it over a network counts as distributing it, so a hosted product's changes must be published.

105 checks ran across 6 assessable dimensions. 1 finding is worth checking first. 20 findings, each with evidence. One dimension cannot be assessed without an acquirer.

What matters most
  • 05.60 AGPL-3.0 since 2023-11-16: open source; offering it over a network counts as distributing it, so a hosted product's changes must be published
What the repository says about itself
  • 04.62 Releases are cut from another branch than the one surveyed
  • 05.60 Relicensed: GPL-3.0 → AGPL-3.0 (2023-11-16) LICENSE
Worth checking first

Borehole's proprietary scoring is calibrated across hundreds of repositories. Each finding here reads significant, but its check has not yet held up often enough in that calibration to rate significant on its own. If one holds when someone checks it, it is significant.

  • 05.26 31 locked dependencies have published vulnerabilities, 31 high or critical in what ships
What this survey read. This commit may not be the product users run: The newest release, 1.42.10, is not on the branch this survey read; the newest release on it is 1.42.8. Read this report as describing that commit, not the release users run. Survey the release branch or tag as well.
Published under today's rules. The verification code attests to this reading as it was stored. This page differs from it as follows.
  • 1 finding from checks Borehole's calibration found wrong more often than right is no longer published.
strong adequate significant findings not assessable from a repository
Provenance disclosure does not affect any rating
0% of the code standing today was written in AI-declared commits
0% of lines still in the tree 0 of 444,538 0% of lines ever added these differ when early hand-written code has since been replaced
0% of lines added in the last 12 months (since 2025-10-23) arrived in AI-declared commits: 0/120 commits, confidence low. Also a floor.
0/4,763 commits declaring an agent
confidence: moderate
  • 1% of non-merge commits carry any trailer at all
  • low trailer coverage: the convention may not be in consistent use
  • no widespread author/committer date divergence
  • deep scan blamed 692 of 692 counted files
90,574 lines excluded as lockfiles, vendored or generated.
This is a lower bound. It counts what the repository declares. Undeclared AI authorship is invisible here, and a single rebase removes the trailers this rests on. Absence of a declaration is absence of disclosure, not absence of AI authorship.

Architecture & Codebase — including AI provenance

01 · strong · ratings ↑
A note that does not affect this rating
01.6

src/khoj/routers/helpers.py is 3,459 lines, 64× this codebase's median file

adequate

The median source file here is 54 lines. 15 files exceed 1,000 lines, the largest being 3,459. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

A note that does not affect this rating: measured against its own codebase's median, it is below the 85th percentile of 382 surveyed projects' largest files, where this check begins to count.

Evidence
line-count src/khoj/routers/helpers.py:1 — 3,459 lines (64× median)
line-count src/interface/obsidian/src/chat_view.ts:1 — 2,573 lines (47× median)
line-count src/khoj/database/adapters/__init__.py:1 — 2,381 lines (44× median)
line-count src/khoj/routers/api_chat.py:1 — 1,762 lines (32× median)
line-count src/interface/web/app/settings/page.tsx:1 — 1,466 lines (27× median)
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

Engineering Process & SDLC Maturity

02 · adequate · ratings ↑
02.3

Tests cover a thin slice of the codebase

adequate

30 test files against 371 source files (8.1%). This does not measure whether the tests are good, only whether enough of them exist for the codebase to be changed safely by someone who did not write it — which is exactly the situation after an acquisition.

Evidence
test-file-ratio 30 test files / 371 source files
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

Organization & Key-Person Risk

03 · adequate · ratings ↑
03.1

Bus factor 1: recent work is concentrated in one contributor

adequate

In the last 24 months, one contributor authored more than half of 1,902 non-merge commits among 48 authors; across all history, more than half of 4,763. In a project with 48 recent contributors and 5 years of history, that is a question about one person's role rather than a fragile team — but it is the question to ask.

Evidence
git shortlog -sn last 24 months: top author more than half of 1,902 commits; bus factor 1; 48 authors
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

03.27

Regular contributors fell from 6 to 2 in a year

adequate

2 people who committed regularly the year before made no commits in the last year, and 1 new regular contributors arrived. Ask whether the work they did is still covered.

Evidence
regular contributors by year 6 then 2; 2 stopped committing, 1 began
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

Product & Engineering Maturity

04 · adequate · ratings ↑
04.19

5% of bug fixes add or change a test

adequate

Of 255 fixes in the last 24 months, 12 touched a test. A fix without the test that would have caught the bug can quietly come back, and the suite never learns from what went wrong.

Evidence
fix commits touching tests 12 of 255
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

A note that does not affect this rating
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, 1.42.10, is not on the branch this survey read; the newest release on it is 1.42.8. The shipped product may differ from what this report describes. Survey the release branch too.

A note that does not affect this rating: notes like it are common in well-run projects.

Evidence
a6fe2d2fb tag 1.42.10
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

Security & Reliability Posture

05 · adequate · ratings ↑
05.6

2 Dockerfiles run the application as root

adequate

No USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.

Evidence
no-USER-instruction Dockerfile — runs as root
no-USER-instruction src/telemetry/Dockerfile — runs as root
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

05.26

31 locked dependencies have published vulnerabilities, 31 high or critical in what ships

adequate worth checking first

31 of 489 locked dependencies match 122 published advisories in OSV, 67 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.

The check that found this reads significant, but it has not yet held up often enough in Borehole's calibration to rate a finding significant on its own. Opening uv.lock settles it. If it holds when someone checks it, this finding is significant.

Evidence
uv.lock uv.lock — anyio 4.8.0: GHSA-82r6-8w77-94w6 (critical), fixed in 4.14.2
uv.lock uv.lock — certifi 2025.4.26: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.19
uv.lock uv.lock — pillow 12.2.0: GHSA-332p-7hrc-92wf (critical), fixed in 13.0.0
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

Notes that do not affect this rating
05.25

1 environment file is committed

adequate

src/interface/web/.env.production is tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.

A note that does not affect this rating: in Borehole's calibration, this check's notes were usually true but overstated.

Evidence
src/interface/web/.env.production src/interface/web/.env.production — committed environment file
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

05.27

The build runs third-party code it does not pin

adequate

8 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.

A note that does not affect this rating: notes like it are common in well-run projects.

Evidence
.github/workflows/dockerize.yml .github/workflows/dockerize.yml:72 — action pinned by tag
.github/workflows/dockerize.yml .github/workflows/dockerize.yml:75 — action pinned by tag
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

05.13

14 outbound calls can wait forever

adequate

14 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.

A note that does not affect this rating: in Borehole's calibration, this check's notes were usually true but overstated.

Evidence
src/khoj/configure.py src/khoj/configure.py:451 — outbound call without a timeout
src/khoj/processor/content/github/github_to_entries.py src/khoj/processor/content/github/github_to_entries.py:123 — outbound call without a timeout
src/khoj/processor/conversation/utils.py src/khoj/processor/conversation/utils.py:1056 — outbound call without a timeout
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

05.22

1 deserialiser that can run code

adequate

1 places read data with a deserialiser that executes what it reads (pickle). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

A note that does not affect this rating: in Borehole's calibration, this check's notes were usually true but overstated.

Evidence
src/khoj/database/migrations/0064_remove_conversation_temp_id_alter_conversation_id.py src/khoj/database/migrations/0064_remove_conversation_temp_id_alter_conversation_id.py:25 — code-executing deserialiser
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

05.48

26 places insert HTML from a variable without sanitising it

adequate

26 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.

A note that does not affect this rating: in Borehole's calibration, this check's notes were usually true but overstated.

Evidence
src/interface/desktop/assets/purify.min.js src/interface/desktop/assets/purify.min.js:2 — HTML from a variable
src/interface/desktop/chatutils.js src/interface/desktop/chatutils.js:14 — HTML from a variable
src/interface/desktop/chatutils.js src/interface/desktop/chatutils.js:88 — HTML from a variable
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

05.60

Relicensed: GPL-3.0 → AGPL-3.0 (2023-11-16)

adequate

The root licence changed 1 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.

A note that does not affect this rating: a licence change is a fact for the first screen, and only a narrowing of rights within two years of the surveyed commit costs "strong".

Evidence
636b6195c LICENSE — GPL-3.0 from 2021-08-16
e8a13f081 LICENSE — AGPL-3.0 from 2023-11-16
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

05.65

5 advisories against this project in the last 24 months, 1 high or critical

adequate

The newest was published on 2026-06-28. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 1 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 1.42.8. Answer lives in: the release you run, set against each fixed version. GHSA-6whj-7qmg-86qj (moderate) is fixed in the surveyed commit; which release carries it cannot be told from this history, which does not place the release users run. Answer lives in: the version you run.

A note that does not affect this rating: it describes the project's advisory record, and no advisory in it is known to affect the surveyed commit.

Evidence
CVE-2026-13508 2026-06-28: CVE-2026-13508 (low): A flaw has been found in khoj-ai khoj up to 2.0.0-beta.28. This impacts an unknown function of the file src/khoj/routers/api_chat.py of the component Conversati
GHSA-62mm-xwmv-crhg 2026-06-24: GHSA-62mm-xwmv-crhg (high), fixed in 2.0.0-beta.25: khoj has an unauthenticated path traversal in /home/ endpoint that allows file read from server filesystem
GHSA-6whj-7qmg-86qj 2026-02-01: GHSA-6whj-7qmg-86qj (moderate): Khoj has an IDOR in Notion OAuth Flow that Enables Index Poisoning
GHSA-hq4h-w933-jm6c 2024-12-29: GHSA-hq4h-w933-jm6c (moderate), fixed in 1.29.0: khoj has an IDOR in subscription management allows unauthorized subscription modifications
GHSA-cf72-vg59-4j4h 2024-08-20: GHSA-cf72-vg59-4j4h (moderate), fixed in 1.15.0: Khoj Vulnerable to Stored Cross-site Scripting In Automate (Preview feature)
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

Observability & Operations

06 · adequate · ratings ↑
06.1

No telemetry or error reporting is wired in anywhere

adequate

None of 505 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.

Evidence
telemetry-scan searched 505 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 0 matched
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
logging-scan searched 505 files for 10 structured logging libraries; 0 matched
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

06.8

One request cannot be followed through the logs

adequate

Nothing in the service carries a request or correlation id, and there is no tracing. When a customer reports a failure, the log lines that belong to their request cannot be picked out from everyone else's.

Evidence
request ids no request id, correlation id or tracing found
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

Notes that do not affect this rating
06.9

No error reporter is wired in

adequate

Nothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.

A note that does not affect this rating: notes like it are common in well-run projects.

Evidence
error reporting no error reporter initialised
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

06.18

4 of 5 deployed images carry no version, or `latest`

adequate

4 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.

A note that does not affect this rating: in Borehole's calibration, this check's notes were usually true but overstated.

Evidence
docker-compose.yml docker-compose.yml:16 — image without a version
docker-compose.yml docker-compose.yml:23 — image without a version
docker-compose.yml docker-compose.yml:32 — image without a version
Respond to this finding

Your response is published beside the finding, not instead of it. A finding you can argue with is the point — and a wrong one is calibration data we want.

An owner's response is removed only when it is unlawful, impersonates someone, publishes personal data or a credential, or is not about the finding. Disagreeing with the report is never a reason. To report a response, or to reach us about one, write to takedown@borehole.dev.

Fit with the Acquirer

07 · not assessable · ratings ↑

Not rated: structurally not assessable from a repository. What a person adds here.

Check it on the running system

11 checks against the running system follow from the findings above: what a buyer's engineer will try, how to run it first, and what to have ready. A paid survey of this repository includes them. See the tiers.

A paid survey of a public repository is also reviewed: a language model reads each finding against the code and withdraws only findings it judges the code contradicts, each listed with its reason. The review is a language model's reading of the findings against the code, and it can be wrong. It never adds a finding, never raises a band, and never removes a finding from a proven check or an advisory that affects the surveyed version.

What a person adds

The survey reads what the repository can show. The code cannot settle these questions, and on them this report states nothing. Each says where its answer lives: your own engineer, the company, or an assessor you choose can settle it. Questions marked measured open with something this repository shows.

Architecture & Codebase — including AI provenance

01 · full coverage
  1. measured No architecture or design document is in the tree, across 510 product files. Where does the design live, and who holds it? Answer lives in: The team01.38
  2. Is the architecture right for the next three years of the product? Answer lives in: Your architects, with the product roadmap01.39
  3. Were the home-grown components reasonable choices when they were made, and are they now? Answer lives in: The team's reasoning at the time01.40

Engineering Process & SDLC Maturity

02 · high coverage
  1. Is review real or a rubber stamp? Comment depth and time to approve need the pull request history. Answer lives in: The code host's pull request data02.32
  2. Is delivery planned and measured, or heroic? Answer lives in: The issue tracker: backlog, sprint history, estimate accuracy02.38
  3. How are incidents run, reviewed and learned from? Answer lives in: Tickets, chat and postmortems02.37

Organization & Key-Person Risk

03 · partial coverage
  1. measured One contributor authored more than half of the commits in this history. Is that person part of the transaction, and for how long after it? Answer lives in: The deal terms03.29
  2. Who mentors whom, and would that survive a departure? Answer lives in: The team; review history only suggests candidates03.28
  3. Can the team grow, and who stands behind the top three contributors? Answer lives in: Recruiting data and the org chart03.30
  4. Is the seniority mix sound, and will pay survive your salary bands? Answer lives in: HR data03.31
  5. Is the pace sustainable? Commit times cannot say: git keeps no reliable local time. Answer lives in: Interviews and on-call history03.14
  6. Does the team want to stay after close? Answer lives in: Interviews03.32
  7. How are decisions made and disagreements resolved? Answer lives in: Time with the team03.33

Product & Engineering Maturity

04 · minimal coverage
  1. measured 223 commits landed in the last year, against 1,667 the year before (-87%). Is that maintenance mode, a pivot, or fewer people working on it? The count looks the same for all three. Answer lives in: The team04.11
  2. measured No experiment tracking is configured in the repository. How was the shipped model trained and evaluated, and could it be reproduced? Answer lives in: The ML team and its run history04.34
  3. measured No model card is in the tree. What is the model's intended use, what was it trained on, and where does it fail? Answer lives in: The ML team04.35
  4. Can this team deliver the stated roadmap on the stated timeline? Answer lives in: The data room and the team's record of estimates04.32
  5. Does leadership know about the debt, and is time budgeted to repay it? Answer lives in: Budget and roadmap decisions04.31
  6. Is the engineering shape consistent with the commercial story? Answer lives in: Revenue, customer and churn data04.33

Security & Reliability Posture

05 · partial coverage
  1. measured No threat model is in the tree of what looks like a running service. Does one exist elsewhere, and who owns it? Answer lives in: The security owner05.43
  2. What has actually broken, how often, and how badly? Answer lives in: Ticketing and chat05.41
  3. What did external testing find, and was it fixed? Answer lives in: Reports in the data room05.42
  4. What is the SOC 2, ISO 27001 or GDPR status, and where is the evidence? Answer lives in: Audit reports; policy files in the tree are not evidence05.44

Observability & Operations

06 · partial coverage
  1. measured Nothing in the tree backs up or restores data. How is data backed up, and has a restore ever been rehearsed? Answer lives in: The operations team06.19
  2. measured No alert rule is defined in the repository. Where are alerts defined, who receives them, and when did one last fire? Answer lives in: The alerting tool and the on-call rota06.10
  3. Are the dashboards opened, the alerts acknowledged and the pages answered? Answer lives in: Pager history and dashboard logs06.29
  4. Are the service-level objectives actually met? Answer lives in: Production metrics06.30
  5. Who carries the pager, and how often does it go off? Answer lives in: Pager exports and interviews06.31
  6. What does it cost to run, and how much headroom is there? Answer lives in: Cloud billing and capacity plans06.32

Fit with the Acquirer

07 · none coverage

Not rated: structurally not assessable from a repository.

  1. This is primarily a Python codebase, with TypeScript alongside (30% of source files). Does your engineering organisation already run Python in production, or would this be the first? 07.1
  2. The bulk of this system sits in src/. Which of your existing systems would each of those have to absorb or replace? 07.10
  3. The repository carries deployment configuration (Dockerfile and 4 more). Does that match your deployment and on-call model, or does it need rehosting first? 07.2
  4. What is your tolerance for the findings above remaining unaddressed for the first two quarters after close, given everything else that will compete for this team's time?
  5. Which of these systems duplicate yours, and which get retired? Answer lives in: Your architecture07.11
  6. What will integration cost, and in what order? Answer lives in: The engagement07.12
  7. Where does the team land in your organisation, and who reports to whom? Answer lives in: Your org design07.13
  8. Are there earn-outs, retention packages or contractor IP to assign? Answer lives in: Deal terms07.14
  9. Do customer contracts limit hosting, regions or vendors? Answer lives in: Customer contracts07.15

A human assessment is Borehole's own paid service, €12,000+ (total price is determined per engagement; travel billed at cost). It is not independent of this report: the same business produced both. It is a separate contract, with its own scope, terms and reliance.

Embed the badge

Tied to this commit and this date, and it fades after 90 days — an honest badge is one that expires. A repository with significant findings gets a neutral "read" badge rather than a red one: the library is where the range is visible, not someone else's README.

Borehole badge for khoj-ai/khoj
[![Borehole](/badge/khoj-ai/khoj.svg "Borehole free reading: not for reliance. See the full report.")](/r/khoj-ai/khoj/ae229ca)

If you embed it: link it to the report, remove it if the report is delisted, and do not present it as a certification or an endorsement.

Was this reading useful?
Rejection log — 85 signals that ran and did not fire

Appendix: rejection log — 85 signals that ran and did not fire

Published on purpose. A signal that looked and decided not to fire has told you something, and this is the calibration data behind every threshold above.

Looked, and found nothing — 71

SignalWhat it found
04.hotspot_concentration change is spread across the codebase rather than pooling in a few filesfiles 1,485 · top5 share 0.118
04.debt_markers debt markers are sparsemarkers 36 · per kloc 0.38 · lines read 94,081
04.dependency_sprawl direct dependency counts are unremarkable
04.churn_trend rework is not rising against new worklate delete per insert 0.518 · early delete per insert 0.439
04.compat_layers little code is kept for the old wayshare 0.0 · code files 345 · compat files 0
04.dependency_redundancy one library per job, mostly
06.healthcheck_presence a health or readiness check is defined
06.usage_reporting_default the product's code names no reporting hostsettings on 2 · settings off 2
06.environment_branching environment differences live in configurationsites 0
06.release_markers releases are markedtags last year 16 · release commits 16 · changelog commits 0
06.migrate_on_start migrations do not run at container start
03.active_contributors more than one contributor active in the trailing yearall time 77 · active 12mo 18
03.knowledge_silos every substantial directory has been touched by more than one personauthors 77 · directories 3
03.drive_by_contributors an open contributor base, where one-commit contributors are normalauthors 77 · one off share 0.766
03.contributor_attrition the dominant contributor is still activeauthors 77 · top share more than half · top contributor last committed between three and six months ago
03.critical_path_ownership more than one person changes the critical pathsauthors 48
03.second_contributor_attrition the second and third contributors are still active
03.bus_factor_trend the team has not narrowed to one person
02.merge_discipline a meaningful share of recent change carries evidence of reviewmerges 136 · window last 24 months · with tracked 42
02.ci_presence CI configuration is present in the working treecount 11
02.release_cadence tags are presenttags 175
02.conventional_commits commit subjects generally carry contentsampled 4,763 · low content share 0.0
02.branch_protection_hints process scaffolding is present in the repository
02.ci_runs_tests CI invokes a test runnerconfigs 11 · with tests 2
02.skipped_tests few tests are switched offfocused 0 · skipped 2 · test files 64
02.ci_test_gating no test run in CI is written so that it cannot failconfigs 11
02.revert_share change is rarely undoneshare 0.001 · reverts 2 · recent commits 1,902
02.dependency_update_cadence dependencies move with the codelockfiles 4 · commits since 10 · days since lockfile changed 38
02.flaky_test_markers tests are not retried until they passtest retries 0 · suite retries 0
02.lint_in_build a linter or formatter runs in the buildwired 7 · ci configs 11 · product files 345
02.long_lived_branches the typical branch reaches the trunk quicklyshare 0.039 · merges 77 · long lived 3
02.commit_size changes arrive in reviewable sizesshare 0.006 · commits 1,607 · over 2000 lines 9
01.burst_import no commit run met both the rate and the net-addition thresholdgap seconds 180 · min add ratio 3.0 · min net added 2,000
01.initial_dump first commit is not a disproportionate share of the codebaseinsertions 104 · share of insertions 0.0003
01.message_uniformity commit subjects vary in wording and lengthlength stdev 18.17 · repeat share 0.011
01.revision_depth most files were revisited after they were first writtenfiles seen 469 · write once share 0.401
01.duplicated_blocks little shipping code is repeated verbatim across filesshare 0.0041 · product files 341 · distinct blocks 45,508
01.swallowed_errors errors are rarely thrown awayloc 94,568 · files 7 · per kloc 0.18
01.build_reproducibility every base image names a versionfloating 0 · from lines 5
01.unfinished_migration no language migration is stalled halfway
01.weights_in_git no model weights are committedfiles 0
05.committed_secrets no credential-shaped strings outside test and fixture pathsnote the working tree only; the history is 05.5 · patterns 8 · files read 505
05.security_guardrails at least one standard guard rail is configured
05.dependency_pinning a lockfile is committed, so builds are reproduciblelockfile True
05.license_present a licence file is presentfound True
05.secrets_in_history no credential-shaped string was ever added outside test and fixture pathspatterns 8 · truncated False · added lines 314,092
05.migration_reversibility migrations can be rolled backshare 0.009 · migrations 113 · irreversible 1
05.sql_from_strings no SQL is assembled from strings in product codefiles 0 · sites 0 · value interpolated 0
05.shell_from_strings product code does not build shell commands from stringssites 0
05.tls_verification_off no TLS verification is switched off in product codefiles 0 · sites 0 · pinned instead 0
05.privileged_workloads no workload runs privileged or in the host's namespacessites 0 · behind a setting or built here 0
05.credentials_in_deploy_config deployment configuration references secrets, never holds themfiles 0 · sites 0
05.source_maps_shipped production builds do not publish source mapssites 0
05.signing_material no signing keystore or profile is committedfiles 0
05.cleartext_traffic plain HTTP is not allowed app-widesites 0
05.dataset_provenance little data is committeddata files 0 · licence or card files 0
05.license_copyleft_inherited the project is itself AGPL-3.0, so copyleft components carry no obligation it has not already acceptedown license AGPL-3.0 · copyleft components 1
05.license_manifest_conflict manifest and licence file agree on AGPL-3.0license AGPL-3.0
05.license_vendored_unlicensed no vendored third-party code is committedcomponents 0
05.license_grant_unclear the licence is recognisable as AGPL-3.0class network-copyleft · license AGPL-3.0
05.committed_native_libraries no widely used compiled library is committed to the productlibraries 0
04.api_versions_coexisting one API version is served, or none
04.deprecations_lingering few deprecations have outlived two yearsolder than two years 0 · files with deprecations 2
04.dependency_churn few dependencies were added and dropped within 60 daysdependencies seen 192 · added in two years 34 · removed within 60 days 2
04.ci_platforms_dropped no platform was dropped from CI in the last two years
04.repository_status the README's first screen states no end, move or freezestatements 0
02.development_elsewhere nothing says development happens elsewhereno pr statements 0 · mirror statements 0 · replayed commit share 0.0
05.paid_edition no directory carries a separate paid-edition licencedirectories 0
04.releases_stopped releases keep pace with developmentmedian gap days 6.0 · days since last tag 211 · commits last 90 days 2
03.single_maintainer no file says one person maintains itstatements 0
05.project_exploited no affecting advisory is on CISA's Known Exploited listexploited 0

Could not conclude, or did not apply — 14

Not a clean result. Each says why it could not answer here.

SignalWhy
04.eol_runtimeno pinned runtime version to check
04.fix_share_trendfewer than six busy quarters to compare
04.schema_churncolumns, once added, stay
06.telemetry_depthnone at all is 06.1
06.print_logginga frontend: console output is the browser's, not the server's
06.alert_rulesno alert rules in the repository; they may live in a console
06.probes_identicalno Kubernetes probes
06.single_replicano Kubernetes deployments
06.feature_flagsno feature-flag service; flags may live elsewhere
01.notebook_outputstoo few notebooks
05.resource_limitsno Kubernetes workload manifests
05.public_env_secretnot assessed for Python, the language the product is written in: this check's patterns read other languages only
04.flags_accumulatingfew or no feature flags in the history
05.project_advisoriescould not tell whether 1 published advisory affects the surveyed code: its version is only known to be at least 1.42.8; 1 is fixed in the surveyed commit, and the release users run is not placed by this history
BOREHOLE READING NOT A CERTIFICATION XB2S-C39X-02TY 2026-10-23 · AE229CA BOREHOLE.DEV/VERIFY

Anyone can check this report against the authoritative record — click the stamp, or enter XB2S-C39X-02TY at borehole.dev/verify.

The code commits to the 106 checks this run performed, the bands they produced, and the commit they were read at. It does not cover checks written since.

Put the mark in your README

The image is wrapped in a link to the verification page, so a reader can check it rather than take it on trust. If you embed it: link it to the report, remove it if the report is delisted, and do not present it as a certification or an endorsement.

[![Borehole reading, not a certification](https://borehole.dev/badge/khoj-ai/khoj/ae229ca.svg "Borehole free reading: not for reliance. See the full report.")](https://borehole.dev/verify/XB2SC39X02TY?via=badge)

Borehole reading XB2S-C39X-02TY, not a certification

Where this scan ran

This scan ran on ordinary cloud infrastructure (cloud-run), not in a hardware-isolated confidential VM. Nothing about it is attested by Google.

What an attested survey proves, and what it does not.

What this scan did with the repository — 7 steps

Written by the steps themselves as they ran, not described afterwards. A hand-written account of a data flow drifts the first time somebody changes the flow and not the account.

AtStepDetail
0.0s read repository metadata from the GitHub API size mb: 114.5authenticated: False
6.4s cloned the repository to a temporary directory depth: full
9.9s read the git history commits: 5180tracked files: 702
97.0s ran the deterministic checks blame pass: Trueread working tree: False
97.0s recorded where this scan ran attested: Falseenvironment: cloud-run
124.2s kept the facts, never the source, for re-reading under new checks
124.2s deleting the working copy

Total 124.2s ·source content sent off this machine: none · calls to a language model: 0 · the clone was deleted when the survey ended

An automated reading of a repository's code and its history up to one commit, with public advisory records. It may be wrong, it is not legal, financial, investment or security advice, and it does not replace diligence by a qualified person. It is provided for information: nobody may rely on it (Borehole's terms, section 3).

BOREHOLE 0.7.15 DETERMINISTIC LAYER · NO MODEL CALLSREAD ON BOREHOLE'S SERVER · CLONE DELETED TAKEDOWNCONTRIBUTED TO THIS REPOSITORY? YOUR RIGHTS