Dimensional verdict scoring for multi-model judge (Meta-Ralph pattern)

未关闭
#600 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
json, markdown, shell
领域
ai, tooling

调研方向

Start with automation/judge/verdict-schema.json, then read automation/judge/pre-push-judge.sh, the judge prompt templates, and plans/terraphim-skills-judge.md. Confirm how the six dimensions, thresholds, escalation fields, and weighted aggregation fit together. Done means the schema and prompts describe dimensional scoring and the judge plan reflects the proposed flow; feedback-loop work remains dependent on #597.

由索引模型根据 Issue 内容生成。

描述

enhancement multi-agent

Summary

Replace binary pass/fail verdicts in the multi-model judge system with 6-dimensional continuous scoring. Each judge tier produces a score vector instead of a single verdict, enabling nuanced escalation decisions and feedback loops.

Motivation

Inspired by vibeship-spark-intelligence Meta-Ralph quality gating pattern. Current judge system uses 3-tier binary verdicts (pass/fail). Meta-Ralph scores across 6 dimensions with configurable thresholds.

Current State

Tier 1 (quick): pass/fail
    |
    v (if fail)
Tier 2 (deep): pass/fail
    |
    v (if disagree)
Tier 3 (tiebreaker): pass/fail

Proposed State

Tier 1 (quick): [reliability: 0.7, context_fit: 0.9, freshness: 0.8, ...]
    |
    v (if any dimension below threshold)
Tier 2 (deep): [reliability: 0.85, context_fit: 0.6, freshness: 0.9, ...]
    |
    v (if dimensions conflict across tiers)
Tier 3 (tiebreaker): [reliability: 0.9, context_fit: 0.8, freshness: 0.95, ...]
    |
    v
Final verdict: weighted aggregate across all tiers that responded

Six Scoring Dimensions

  1. Reliability -- How often has this type of finding been validated in past verdicts?
  2. Context fit -- How relevant is the finding to the specific code being reviewed?
  3. Freshness -- Is the finding based on current patterns or stale heuristics?
  4. Authority -- How credible is the source model for this type of finding?
  5. Signal strength -- Confidence in the signal (strong evidence vs. weak heuristic)
  6. Utility -- How actionable is the finding? (specific fix vs. vague warning)

Escalation Logic

Replace binary escalation with dimensional:

  • Escalate when any dimension drops below tier-specific threshold (not just overall pass/fail)
  • Skip escalation when all dimensions are above threshold even if one tier "failed" on a specific finding
  • Aggregate final verdict as weighted average across tiers, with later tiers weighted higher on dimensions where earlier tiers scored low

Feedback Loop (Future)

Track whether findings were acted on (follow-rate):

  • Finding surfaced -> developer fixed issue -> positive signal
  • Finding surfaced -> developer dismissed -> negative signal
  • Over time, adjust per-dimension weights based on follow-rate

This requires #597 (event sourcing) for tracking.

Schema Extension

Extend automation/judge/verdict-schema.json:

{
  "dimensions": {
    "reliability": { "score": 0.85, "threshold": 0.7 },
    "context_fit": { "score": 0.9, "threshold": 0.6 },
    "freshness": { "score": 0.8, "threshold": 0.5 },
    "authority": { "score": 0.7, "threshold": 0.6 },
    "signal_strength": { "score": 0.6, "threshold": 0.5 },
    "utility": { "score": 0.9, "threshold": 0.7 }
  },
  "escalated": false,
  "escalation_reason": null
}

Affected Components

  • automation/judge/verdict-schema.json (extend schema)
  • automation/judge/pre-push-judge.sh (update prompt to request dimensional scores)
  • Judge prompt templates (instruct models to score per dimension)
  • terraphim-skills judge plan (plans/terraphim-skills-judge.md)

Dependencies

  • #597 Event sourcing (for feedback loop tracking)
  • #598 Budget-aware routing (dimensional scoring needs cost-aware model selection)

Estimated Effort

~4 hours for schema + prompt changes. Feedback loop integration is a follow-up after #597.

主要语言
Rust
星标
62
派生
5
平均合并
2 小时 27 分钟
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

terraphim/terraphim-ai 的其他 Issue

查看 terraphim/terraphim-ai 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。