feat(insights): use Jev to check that insight claims attach numbers to the right metric, population and period
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with apps/insights/src/agent.ts and evals/quality.ts, then trace the existing evaluateWithJev calls and the evals README failure example. Review how results.json and the finish tool handle evaluation output. Done means the staged eval, log-only runtime check, and eventual enforcement path are defined and covered by the known-bad calibration case.
索引モデルが issue の本文から書いたものです。
説明
@izadoesdev
Problem
validateNumericGrounding (apps/insights/src/agent.ts) checks that every number in a published claim appears somewhere in the claim's cited sources. It doesn't check that the number belongs to the metric, population, period, or direction the claim attaches it to. The evals README records the failure this leaves open:
a brief assigned transaction count 100 to gross revenue 10000; the number-presence guard accepted it because 100 existed elsewhere
Revenue now avoids this through structured field selections, but per the README every other source still relies on the numeric guard. Catching misattribution in those cases is manual today: evals/quality.ts writes the semantic rubric in plain English as reviewRequired (for example "verify every final count against its exact date range and population … The 200 entrants are eligible website visitors, not login attempts"), and each of those cases prints REVIEW REQUIRED for a person to check.
Proposal
Use Jev, the evaluation model insights already calls through evaluateWithJev, as a semantic judge, rolled out so nothing blocks production until it has proven itself:
- Evals only. In
evals/quality.ts:- each
reviewRequiredrubric becomes a Jevbooleanquestion over the final outcome and the tool results it cites - each string evidence claim gets
booleanquestions for metric, population, period, and direction attribution against its resolved sources - probabilities are recorded in
results.json, and the summary sortsREVIEW REQUIREDcases by the judge's uncertainty, so review starts with the ambiguous ones instead of all of them - a small frozen set of known-bad outcomes (starting with the transactions-as-revenue case above) acts as a calibration check. If Jev can't separate these from correct outcomes, we stop here with a cheap negative result.
- each
- Runtime, log-only. Run the per-claim check in the finish tool for string claims, record the verdicts as log fields, and don't change behaviour.
- Enforce. When a claim is confidently misattributed, return a tool error naming the claim and the mismatch (metric, population, period, or direction), so the agent corrects it within its existing finish attempts, the same way numeric-grounding errors work today.
The questions for one finish attempt go in a single batched request through the existing evaluateWithJev, which bills input tokens only.
Questions
-
Is steps 1 → 3 the rollout you'd want, or should this stay an eval-only tool?
-
Should a confident mismatch block publication, or only demote the outcome to private?
-
Beyond insights, where else would you want Jev in analytics? Some I considered:
- uptime content checks: a 200 response that is actually an error, challenge, maintenance, or empty page, since monitors only look at status codes today
- long-tail error cause triage per fingerprint: deploy/chunk-load skew, third-party script, network, or app bug
- session outcome classification: intent and whether the visitor finished or got stuck, from sampled event trails
- referrer spam detection on distinct referrer domains
I'd like to hear which of these you'd prioritise, or whether there's a use case you already have in mind.
Disclosure: I used Claude Code to trace the grounding validation and eval runner and to draft this write-up; I verified the file references and README quotes by hand.
- 主要言語
- TypeScript
- スター
- 1.2k
- フォーク
- 227
- 平均マージ
- 21時間 11分
- マージ済み PR(30日)
- 238
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
databuddy-analytics/Databuddy のほかの issue
-
Load docs analytics using Next.js Script対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
databuddy-analytics/Databuddy#1147 ·
メンテナーはふだん 1 日以内に返信
-
Make the GTM documentation test compatible with Windows line endings対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
databuddy-analytics/Databuddy#1146 ·
メンテナーはふだん 1 日以内に返信
-
Fix locale-dependent number formatting on the pricing page対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
databuddy-analytics/Databuddy#1145 ·
メンテナーはふだん 1 日以内に返信
-
fix(basket): redact sensitive params and keep query separators in batched outgoing link hrefs対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
databuddy-analytics/Databuddy#1143 ·
メンテナーはふだん 1 日以内に返信
-
refactor(home): standardize "Install tracking" empty state using EmptyState component対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
databuddy-analytics/Databuddy#1138 ·
メンテナーはふだん 1 日以内に返信
databuddy-analytics/Databuddy の issue をすべて見る
似ている issue
-
[Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --display対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
pingdotgg/t3code#24900 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
inu-appcenter/UNIDorm-web#411 ·
メンテナーはふだん 1 日以内に返信
-
🐛 bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ranxianglei/billion-context#4720 ·
メンテナーはふだん 1 日以内に返信
-
area:arcade game p3-medium ready-for-agent type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
fderuiter/deruiter.dev#2840 ·
メンテナーはふだん 1 日以内に返信