Read 2026-11-03
msgbyte/tianji: technical due diligence, read from its repository
What Borehole read in msgbyte/tianji's code and history at 2feecfc: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongapps/daily-ai-trigger/worker-configuration.d.ts is 7,341 lines, 104× this codebase's median file
adequateThe median source file here is 70 lines. 7 files exceed 1,000 lines, the largest being 7,341. 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.
apps/daily-ai-trigger/worker-configuration.d.ts:1 — 7,341 lines (104× median) |
src/server/model/aiRouter.ts:1 — 2,478 lines (35× median) |
src/server/model/aiGateway.ts:1 — 2,119 lines (30× median) |
src/client/components/aiGateway/AIGatewayObserver.tsx:1 — 1,366 lines (19× median) |
src/server/trpc/routers/website.ts:1 — 1,181 lines (16× median) |
Engineering Process & SDLC Maturity
adequateLittle of the recent change carries a trace of review
adequateIn the last 24 months, 50 of 1,423 commits (3.5%) carry any trace of review: a merge, a pull-request reference, a Reviewed-by or Reviewed-on trailer, a Closes/Fixes reference, a maintainer's sign-off on someone else's change, or a change applied by someone other than its author. That is low but not absent. Review may happen in a workflow this history does not record; a buyer should ask how change is approved before it ships.
| 50 of 1,423 commits in the last 24 months carry review evidence; 3.9% across all 2,351 |
Almost no process scaffolding exists in the repository
adequateOf five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.
| 1 of 5 markers present across 1,832 tracked files |
Product & Engineering Maturity
adequate108 direct dependencies in a single manifest
adequatesrc/client/package.json declares 108 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.
src/client/package.json — 108 declared |
src/server/package.json — 82 declared |
website/package.json — 21 declared |
apps/appstore-review/package.json — 6 declared |
Go 1.25 is past end of life
adequateThe code is pinned to Go 1.25 (end of life 2026-08-11). None of these receives security fixes any more; the first stopped on 2026-08-11. Moving off an unsupported runtime is rarely a one-line change, so a buyer should ask whether the upgrade is planned and what it touches.
Dockerfile — Go 1.25, end of life 2026-08-11 |
2 jobs are each done by more than one library
adequateWithin a single package: HTTP clients: axios, got; dates: date-fns, dayjs. Each duplicate is bundle size, two ways of doing the same thing in one codebase, and two upgrade paths to maintain. It is usually the residue of a migration that stopped halfway.
apps/appstore-review/package.json — several libraries per job |
apps/daily-ai-trigger/package.json — several libraries per job |
5 files still carry code deprecated more than two years ago
adequate5 files were marked deprecated over two years ago and still are, the oldest since Mar 2024. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
src/server/router/telemetry.ts — deprecated since Mar 2024 |
src/server/trpc/routers/workspace.ts — deprecated since Aug 2024 |
src/client/components/monitor/MonitorPicker.tsx — deprecated since Sep 2024 |
src/client/components/monitor/StatusPage/EditForm.tsx — deprecated since Sep 2024 |
src/client/components/monitor/StatusPage/Services.tsx — deprecated since Sep 2024 |
Security & Reliability Posture
adequateNone of the standard security guard rails are configured
adequateThere is no disclosure policy, no automated dependency updates, no named code owners and no pre-commit configuration. None of these is load-bearing on its own. Their collective absence says that security posture here is whatever the current team happens to remember to do, which is not a posture that survives the team changing.
| checked 5 kinds of guard rail across 1,832 tracked files; 0 present |
1 Dockerfile runs the application as root
adequateNo 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.
Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate8 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.
.github/workflows/ci-docker.yaml:37 — action pinned by tag |
.github/workflows/ci-docker.yaml:39 — action pinned by tag |
1 of 3 Kubernetes workloads declare no resource limits
adequate1 workload manifests set no CPU or memory limits. One pod that leaks memory or spins can starve everything else on its node, and the scheduler cannot plan capacity for what it cannot see.
docker/k8s/reporter-daemonset.yaml — workload with no limits |
70 locked dependencies have published vulnerabilities, 39 high or critical in what ships
adequate70 of 3,970 locked dependencies match 143 published advisories in OSV, 65 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.
pnpm-lock.yaml — next 15.1.4: GHSA-2464-fhr4-w9xw (critical), fixed in 15.5.28 |
pnpm-lock.yaml — vm2 3.11.5: GHSA-27g9-p43v-cw3v (critical), fixed in 3.11.7 |
pnpm-lock.yaml — handlebars 4.7.8: GHSA-2w6w-674q-4c4q (critical), fixed in 4.7.9; a development dependency |
3 workload settings give a container the host
adequate3 places in the deployment configuration run a container privileged or in the host's network, process or IPC namespace. A compromise of that container is a compromise of the machine, and most acquirers' security reviews block it. Node agents (network, storage, monitoring) are excluded.
docker/k8s/reporter-daemonset.yaml:44 — privileged or host namespace |
docker/k8s/reporter-daemonset.yaml:45 — privileged or host namespace |
docker/k8s/reporter-daemonset.yaml:46 — privileged or host namespace |
4 advisories against this project in the last 24 months, 4 high or critical
adequateThe newest was published on 2026-08-30. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. None of them affects the surveyed version.
| 2026-08-30: GHSA-954m-4cfc-rr2x (high), fixed in 1.32.21: SQL Injection via unvalidated timezone header — ClickHouse analytics code path (distinct from patched GHSA-v9jm-vvrj-53c4) |
| 2026-08-30: GHSA-2hh4-qwxf-r72h (high), fixed in 1.32.21: Cross-workspace read of any tenant external database via unscoped warehouse.query.execute (BOLA) |
| 2026-06-18: GHSA-5grg-j3cr-3hpm (critical), fixed in 1.31.29: Remote Code Execution via lodash template evaluate pattern in survey feed templates |
| 2026-06-18: GHSA-v9jm-vvrj-53c4 (high), fixed in 1.31.29: SQL Injection via unsanitized timezone parameter in analytics queries |
Observability & Operations
adequateNo error reporter is wired in
adequateNothing 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.
| no error reporter initialised |
3 of 3 deployed images carry no version, or `latest`
adequate3 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.
docker/k8s/reporter-daemonset.yaml:18 — image without a version |
docker/k8s/sealos/tianji.yaml:69 — image without a version |
docker/k8s/sealos/tianji.yaml:289 — image without a version |
Readiness and liveness probes are identical in 1 of 1 workloads
adequateBoth probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.
docker/k8s/helm/values.yaml — same probe endpoint twice |
Schema migrations run every time a container starts
adequateThe start command runs the database migration and then the server, and the deployment runs more than one replica. Replicas race to migrate, a rollback cannot undo the schema, and a failed migration takes the service down with it. A separate job or release step is the usual fix.
Dockerfile:98 — migration in the start command |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on msgbyte/tianji: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.