一键导入
shadow-judge
Record human judgment on validation results. Approve confirms accuracy; reject identifies false negatives. Stores calibration data in AgentDB.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Record human judgment on validation results. Approve confirms accuracy; reject identifies false negatives. Stores calibration data in AgentDB.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | shadow-judge |
| description | Record human judgment on validation results. Approve confirms accuracy; reject identifies false negatives. Stores calibration data in AgentDB. |
Compares automated validation results against human judgment. When a human reviews code after /validate runs, they can record whether the validation was accurate (approve) or missed something (reject). This calibrates trust scores over time.
This is the shadow mode mechanism -- validation observes, humans verify, trust accumulates.
/shadow-judge approve
Records that the most recent validation report was correct. For each check in the report, stores a reflexion entry with reward=1.0.
/shadow-judge reject "missed null check in foo.rs, stale import in bar.rs"
Records that the validation missed specific issues. Identifies which tier/check should have caught the problem and stores reward=0.0 for those checks.
Look for the most recent validate-impl-*.md or validate-plan-report.md in product/features/*/reports/.
REPORT=$(ls -t product/features/*/reports/validate-*.md 2>/dev/null | head -1)
If no report is found, display an error: "No recent validation report found. Run /validate first."
Extract the per-check results from the report:
For each check that was PASS in the report:
reflexion_store(
task = "trust:validation:{tier}:{check_name}",
reward = 1.0,
success = true,
critique = "Human confirmed correct. Feature: {feature-id}"
)
This reinforces trust in checks that were accurate.
| Missed Issue | Likely Check |
|---|---|
| Formatting issue | tier1:build or clippy |
| Stub/TODO left in code | tier2:stub_scan |
| Banned dependency | tier2:banned_deps |
| File outside scope | tier2:file_scope |
| Stale reference | tier2:stale_refs |
| Missing acceptance criteria | tier3:ac_coverage |
| Test regression | tier3:test_delta |
| Security concern | (manual -- note in critique) |
reflexion_store(
task = "trust:validation:{tier}:{check_name}",
reward = 0.0,
success = false,
critique = "Human found issue validation missed: {human_note}. Feature: {feature-id}"
)
reflexion_store(
task = "trust:validation:{tier}:{check_name}",
reward = 1.0,
success = true,
critique = "Human confirmed correct (other checks rejected). Feature: {feature-id}"
)
Display a summary:
Shadow Judge Result:
Report: {report path}
Feature: {feature-id}
Action: approve | reject
Checks confirmed correct: {N}
Checks marked as false negative: {M}
Total reflexion entries stored: {N+M}
Run /shadow-judge after you have:
/validate on a featureThe discipline of running shadow-judge after every review is what builds meaningful trust scores. Without it, all scores stay at 1.0 (self-reported).
False negatives (reward=0.0) are the high-signal events. They indicate:
The /trust-dashboard highlights checks with low trust scores, which reveals systematic gaps in the validation pipeline.
User reviews ops-006 implementation, finds no issues.
/shadow-judge approve
Result: 15 checks confirmed correct, 0 false negatives.
User reviews fe-004, finds a TODO comment in production code.
/shadow-judge reject "TODO comment at line 47 of crates/ndp-lib/src/feature.rs"
Result: tier2:stub_scan marked as false negative (reward=0.0).
Other 14 checks confirmed correct (reward=1.0).
.claude/skills/validate/SKILL.md -- produces the reports this skill judges.claude/skills/trust-dashboard/SKILL.md -- visualizes the trust scoresproduct/features/ops-006/architecture/ARCHITECTURE.md -- ADR-006 (shadow-judge design)On-demand vision alignment check. Spawns ndp-vision-guardian to review SPARC artifacts against product/vision/ALIGNMENT-CRITERIA.md.
Validate planning swarm output: artifact existence, AC coverage, pattern IDs, stale references, internal consistency. Produces a glass box report.
NDP 4-tier implementation validation. Tier 1: compilation (build+test+anti-stub). Tier 2: process adherence. Tier 3: spec compliance. Tier 4: risk classification. Produces glass box reports.
Retrieve APPLICATION patterns (architecture, procedures, conventions) from AgentDB using multi-signal retrieval: pattern search, causal recall, and RL predictions. Use BEFORE implementing to ensure consistency.
AgentDB pattern lifecycle management: list, get, delete, deprecate, update, stats, search, duplicates. Use when cleaning up stale patterns, removing deprecated entries, finding duplicates, or auditing pattern health. Workaround for missing MCP delete/update tools (GH Issue #42).
Record feedback on pattern effectiveness. Stores episodes that train the recommendation system, feed the RL engine for smarter pattern ranking, build causal knowledge, and enable pattern discovery via learner.