ivd_judgment_inject_context
Retrieves prioritized judgment context—distilled patterns, recent corrections, rejected hypotheses, and corroborated approaches—to inject into an AI agent's system message before a run.
Instructions
Return prioritized Judgment context for downstream agents. Four layers: (1) distilled patterns (active, freshness ∈ {fresh, aging}, sorted by weighted_confidence × member_count), (2) recent codified corrections in the same domain (last 5), (3) ruled_out — REJECTED comparison-pair hypotheses (do-not-retry veto), (4) What Works hypotheses (only corroborated comparison pairs). Soft token_budget cap. Use this to inject judgment knowledge into the next agent run's system message. Dormant unless .judgment/ exists. (IVD v3.0)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ivd_judgment_inject_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Optional: filter all layers to one domain. | |
| task_type | No | Optional: task context hint (e.g. 'generate-script'). Echoed back in response; reserved for task-scoped injection in a future release. | |
| project_root | No | Optional path to repo root. | |
| token_budget | No | Soft token budget for the rendered context (default 1500). |