* feat(#3274): make reviewer-lane timeout configurable via timeoutConfigKey Add an optional `timeoutConfigKey` field to the reviewer lane descriptor, resolved in `resolveLanePlan` at invocation time and falling back to the frozen `timeoutFloorMs` when unset or invalid, in the same spirit as the existing `promptBudgetKey`/`modelConfigKey` fields. All 12 shipped lanes declare `review.timeouts.<slug>` on both surfaces (the descriptor and their capability.json manifest), validated by capability-validator.cjs. For the antigravity lane, the native `agy --print-timeout` flag — previously a second hardcoded literal (`540s`) independent of the outer cap — is now derived from the same resolved outer timeout in `antigravityArgv`, preserving the existing 60-second buffer relationship (ADR-2782 D6: the outer bound is declared data, the inner one is handler-owned). The antigravity default timeoutFloorMs stays at 600s per the maintainer's disposition; users raise it through the new config key instead. * docs(#3274): document review.timeouts.* and extract resolveTimeoutMs helper Address code-review findings on the timeoutConfigKey change: extract the inline timeout-resolution logic into a named, exported, directly-tested resolveTimeoutMs helper (matching the file's existing configString/ normalizeHost convention); document the new review.timeouts.* federated config keys in docs/CONFIGURATION.md, docs/reference/capability-manifest.md, and docs/how-to/ship-a-reviewer-lane.md; add the changeset fragment. * fix(#3274): resolve native antigravity timeout in resolveLanePlan, not the runner gsd-test caught two design mistakes in the prior commits: 1. SpawnPlan.argv is documented and tested as fully resolved by resolveLanePlan (model/effort/output/prompt already folded in) — leaving the antigravity '{{nativeTimeout}}' marker unresolved until the runner's antigravityArgv violated that contract and broke tests that read plan.argv directly (tests/antigravity-reviewer.test.cjs, tests/review-default-reviewers-workflow.test.cjs). Fix: '{{nativeTimeout}}' is now a fifth ARGV_PLACEHOLDER member, resolved by resolveLanePlan itself via the new nativeTimeoutToken() helper, exactly like the other four. antigravityArgv reverts to its pre-#3274 four-argument form. Also missed updating capabilities/antigravity/capability.json's invoke.args to match the descriptor, which broke the manifest/descriptor parity test. 2. tests/reviewer-config-federation.test.cjs enforces a deliberate, narrow invariant (#3691 narrows #2797): qwen, cursor, and coderabbit — the three lanes with neither a model flag nor a host — may own no config key beyond their own prompt-budget key. Adding review.timeouts.<slug> to all 12 lanes violated it. Fix: those three keep timeoutConfigKey: null and own no review.timeouts.* key, matching their existing modelConfigKey: null. The other 9 lanes are unaffected. * chore(#3274): backfill changeset PR number (pr:0 -> 4083) --------- Co-authored-by: sim <sim@local>
This commit is contained in:
@@ -214,7 +214,7 @@ const capabilities = {
|
||||
"binary": "agy",
|
||||
"args": [
|
||||
"--print-timeout",
|
||||
"540s",
|
||||
"{{nativeTimeout}}",
|
||||
"{{model}}",
|
||||
"-p",
|
||||
"{{prompt}}"
|
||||
@@ -225,6 +225,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 600000,
|
||||
"timeoutConfigKey": "review.timeouts.antigravity",
|
||||
"emptyOutput": "handler-owned",
|
||||
"reviewsSection": "Antigravity",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -243,6 +244,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Antigravity reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\". Keyed on the reviewer slug `antigravity`, not the `agy` binary alias used by review.models.agy."
|
||||
},
|
||||
"review.timeouts.antigravity": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Antigravity reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -634,6 +640,7 @@ const capabilities = {
|
||||
}
|
||||
},
|
||||
"timeoutFloorMs": 1200000,
|
||||
"timeoutConfigKey": "review.timeouts.claude",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Claude",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -652,6 +659,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Claude reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.claude": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Claude reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1046,6 +1058,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 360000,
|
||||
"timeoutConfigKey": null,
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "CodeRabbit",
|
||||
"evidenceClass": "diff-only",
|
||||
@@ -1203,6 +1216,7 @@ const capabilities = {
|
||||
"effortChannel": "argv"
|
||||
},
|
||||
"timeoutFloorMs": 1200000,
|
||||
"timeoutConfigKey": "review.timeouts.codex",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Codex",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -1221,6 +1235,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Codex reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.codex": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Codex reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1466,6 +1485,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 900000,
|
||||
"timeoutConfigKey": null,
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Cursor",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -1718,6 +1738,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 900000,
|
||||
"timeoutConfigKey": "review.timeouts.gemini",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Gemini",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -1736,6 +1757,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Gemini reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.gemini": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Gemini reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2311,6 +2337,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 900000,
|
||||
"timeoutConfigKey": "review.timeouts.kimi-code",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Kimi Code",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -2329,6 +2356,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.kimi-code": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2417,6 +2449,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 120000,
|
||||
"timeoutConfigKey": "review.timeouts.llama_cpp",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "llama.cpp",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -2440,6 +2473,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the llama.cpp reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.llama_cpp": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the llama.cpp reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2475,6 +2513,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 120000,
|
||||
"timeoutConfigKey": "review.timeouts.lm_studio",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "LM Studio",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -2498,6 +2537,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the LM Studio reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.lm_studio": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the LM Studio reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2757,6 +2801,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 120000,
|
||||
"timeoutConfigKey": "review.timeouts.ollama",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Ollama",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -2780,6 +2825,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Ollama reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.ollama": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Ollama reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2943,6 +2993,7 @@ const capabilities = {
|
||||
"effortChannel": "argv"
|
||||
},
|
||||
"timeoutFloorMs": 660000,
|
||||
"timeoutConfigKey": "review.timeouts.opencode",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "OpenCode",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -2961,6 +3012,11 @@ const capabilities = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the OpenCode reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.opencode": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the OpenCode reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -3294,6 +3350,7 @@ const capabilities = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 900000,
|
||||
"timeoutConfigKey": null,
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Qwen",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -4709,10 +4766,12 @@ const configKeys = {
|
||||
"workflow.api_coverage_gate": "ai-integration",
|
||||
"review.models.agy": "antigravity",
|
||||
"review.max_prompt_tokens_per_reviewer.antigravity": "antigravity",
|
||||
"review.timeouts.antigravity": "antigravity",
|
||||
"workflow.assumption_delta": "assumption-delta",
|
||||
"workflow.windows_enforce": "broken-windows",
|
||||
"review.models.claude": "claude",
|
||||
"review.max_prompt_tokens_per_reviewer.claude": "claude",
|
||||
"review.timeouts.claude": "claude",
|
||||
"claude_orchestration.enabled": "claude-orchestration",
|
||||
"claude_orchestration.execution_backend": "claude-orchestration",
|
||||
"claude_orchestration.min_agent_sdk_version": "claude-orchestration",
|
||||
@@ -4721,6 +4780,7 @@ const configKeys = {
|
||||
"review.max_prompt_tokens_per_reviewer.coderabbit": "coderabbit",
|
||||
"review.models.codex": "codex",
|
||||
"review.max_prompt_tokens_per_reviewer.codex": "codex",
|
||||
"review.timeouts.codex": "codex",
|
||||
"review.max_prompt_tokens_per_reviewer.cursor": "cursor",
|
||||
"workflow.drift_threshold": "drift",
|
||||
"workflow.drift_action": "drift",
|
||||
@@ -4734,17 +4794,21 @@ const configKeys = {
|
||||
"workflow.post_planning_gaps": "gap-analysis",
|
||||
"review.models.gemini": "gemini",
|
||||
"review.max_prompt_tokens_per_reviewer.gemini": "gemini",
|
||||
"review.timeouts.gemini": "gemini",
|
||||
"graphify.enabled": "graphify",
|
||||
"intel.enabled": "intel",
|
||||
"review.models.kimi-code": "kimi-code",
|
||||
"review.max_prompt_tokens_per_reviewer.kimi-code": "kimi-code",
|
||||
"review.timeouts.kimi-code": "kimi-code",
|
||||
"workflow.live_dom_uat": "live-dom-uat",
|
||||
"review.models.llama_cpp": "llama-cpp",
|
||||
"review.llama_cpp_host": "llama-cpp",
|
||||
"review.max_prompt_tokens_per_reviewer.llama_cpp": "llama-cpp",
|
||||
"review.timeouts.llama_cpp": "llama-cpp",
|
||||
"review.models.lm_studio": "lm-studio",
|
||||
"review.lm_studio_host": "lm-studio",
|
||||
"review.max_prompt_tokens_per_reviewer.lm_studio": "lm-studio",
|
||||
"review.timeouts.lm_studio": "lm-studio",
|
||||
"mempalace.enabled": "mempalace",
|
||||
"mempalace.memory_mode": "mempalace",
|
||||
"mempalace.wing": "mempalace",
|
||||
@@ -4759,8 +4823,10 @@ const configKeys = {
|
||||
"review.models.ollama": "ollama",
|
||||
"review.ollama_host": "ollama",
|
||||
"review.max_prompt_tokens_per_reviewer.ollama": "ollama",
|
||||
"review.timeouts.ollama": "ollama",
|
||||
"review.models.opencode": "opencode",
|
||||
"review.max_prompt_tokens_per_reviewer.opencode": "opencode",
|
||||
"review.timeouts.opencode": "opencode",
|
||||
"workflow.pattern_mapper": "pattern-mapper",
|
||||
"profile-pipeline.enabled": "profile-pipeline",
|
||||
"review.max_prompt_tokens_per_reviewer.qwen": "qwen",
|
||||
@@ -4804,6 +4870,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Antigravity reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\". Keyed on the reviewer slug `antigravity`, not the `agy` binary alias used by review.models.agy."
|
||||
},
|
||||
"review.timeouts.antigravity": {
|
||||
"owner": "antigravity",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Antigravity reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"workflow.assumption_delta": {
|
||||
"owner": "assumption-delta",
|
||||
"type": "boolean",
|
||||
@@ -4828,6 +4900,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Claude reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.claude": {
|
||||
"owner": "claude",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Claude reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"claude_orchestration.enabled": {
|
||||
"owner": "claude-orchestration",
|
||||
"type": "boolean",
|
||||
@@ -4886,6 +4964,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Codex reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.codex": {
|
||||
"owner": "codex",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Codex reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"review.max_prompt_tokens_per_reviewer.cursor": {
|
||||
"owner": "cursor",
|
||||
"type": "number",
|
||||
@@ -4971,6 +5055,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Gemini reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.gemini": {
|
||||
"owner": "gemini",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Gemini reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"graphify.enabled": {
|
||||
"owner": "graphify",
|
||||
"type": "boolean",
|
||||
@@ -4995,6 +5085,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.kimi-code": {
|
||||
"owner": "kimi-code",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"workflow.live_dom_uat": {
|
||||
"owner": "live-dom-uat",
|
||||
"type": "boolean",
|
||||
@@ -5019,6 +5115,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the llama.cpp reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.llama_cpp": {
|
||||
"owner": "llama-cpp",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the llama.cpp reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"review.models.lm_studio": {
|
||||
"owner": "lm-studio",
|
||||
"type": "string",
|
||||
@@ -5037,6 +5139,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the LM Studio reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.lm_studio": {
|
||||
"owner": "lm-studio",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the LM Studio reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"mempalace.enabled": {
|
||||
"owner": "mempalace",
|
||||
"type": "boolean",
|
||||
@@ -5126,6 +5234,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Ollama reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.ollama": {
|
||||
"owner": "ollama",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Ollama reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"review.models.opencode": {
|
||||
"owner": "opencode",
|
||||
"type": "string",
|
||||
@@ -5138,6 +5252,12 @@ const configSchema = {
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the OpenCode reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.opencode": {
|
||||
"owner": "opencode",
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the OpenCode reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
},
|
||||
"workflow.pattern_mapper": {
|
||||
"owner": "pattern-mapper",
|
||||
"type": "boolean",
|
||||
@@ -5366,7 +5486,7 @@ const runtimes = {
|
||||
"binary": "agy",
|
||||
"args": [
|
||||
"--print-timeout",
|
||||
"540s",
|
||||
"{{nativeTimeout}}",
|
||||
"{{model}}",
|
||||
"-p",
|
||||
"{{prompt}}"
|
||||
@@ -5377,6 +5497,7 @@ const runtimes = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 600000,
|
||||
"timeoutConfigKey": "review.timeouts.antigravity",
|
||||
"emptyOutput": "handler-owned",
|
||||
"reviewsSection": "Antigravity",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -5395,6 +5516,11 @@ const runtimes = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Antigravity reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\". Keyed on the reviewer slug `antigravity`, not the `agy` binary alias used by review.models.agy."
|
||||
},
|
||||
"review.timeouts.antigravity": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Antigravity reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -5657,6 +5783,7 @@ const runtimes = {
|
||||
}
|
||||
},
|
||||
"timeoutFloorMs": 1200000,
|
||||
"timeoutConfigKey": "review.timeouts.claude",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Claude",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -5675,6 +5802,11 @@ const runtimes = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Claude reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.claude": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Claude reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -6028,6 +6160,7 @@ const runtimes = {
|
||||
"effortChannel": "argv"
|
||||
},
|
||||
"timeoutFloorMs": 1200000,
|
||||
"timeoutConfigKey": "review.timeouts.codex",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Codex",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -6046,6 +6179,11 @@ const runtimes = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Codex reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.codex": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Codex reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -6291,6 +6429,7 @@ const runtimes = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 900000,
|
||||
"timeoutConfigKey": null,
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Cursor",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -6786,6 +6925,7 @@ const runtimes = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 900000,
|
||||
"timeoutConfigKey": "review.timeouts.kimi-code",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Kimi Code",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -6804,6 +6944,11 @@ const runtimes = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.kimi-code": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -6967,6 +7112,7 @@ const runtimes = {
|
||||
"effortChannel": "argv"
|
||||
},
|
||||
"timeoutFloorMs": 660000,
|
||||
"timeoutConfigKey": "review.timeouts.opencode",
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "OpenCode",
|
||||
"evidenceClass": "source-grounded",
|
||||
@@ -6985,6 +7131,11 @@ const runtimes = {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Prompt-token budget for the OpenCode reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
||||
},
|
||||
"review.timeouts.opencode": {
|
||||
"type": "number",
|
||||
"default": -1,
|
||||
"description": "Outer wall-clock timeout override (seconds) for the OpenCode reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -7187,6 +7338,7 @@ const runtimes = {
|
||||
"effortChannel": "none"
|
||||
},
|
||||
"timeoutFloorMs": 900000,
|
||||
"timeoutConfigKey": null,
|
||||
"emptyOutput": "stub-with-stderr",
|
||||
"reviewsSection": "Qwen",
|
||||
"evidenceClass": "source-grounded",
|
||||
|
||||
@@ -1824,6 +1824,9 @@ const KNOWN_REVIEWER_FIELDS = new Set([
|
||||
// missed a configured model and silently disabled the pinned-model escape hatch
|
||||
// #2073 added. A convention one shipped lane already violates is not a contract.
|
||||
'modelConfigKey',
|
||||
// `timeoutConfigKey` added by #3274, same optional/backward-compatible shape as
|
||||
// `modelConfigKey` above: a manifest authored before this field existed must keep validating.
|
||||
'timeoutConfigKey',
|
||||
'handler',
|
||||
]);
|
||||
|
||||
@@ -2371,6 +2374,17 @@ function validateReviewerBodyFields(cap) {
|
||||
);
|
||||
}
|
||||
|
||||
// OPTIONAL, mirroring modelConfigKey's D4 forward/backward-compat treatment (#3274): a manifest
|
||||
// authored before this field existed must keep validating. Absent/null means "no override for
|
||||
// this lane, use timeoutFloorMs". An empty string is neither absent nor a key, and is rejected.
|
||||
if (r.timeoutConfigKey !== undefined && r.timeoutConfigKey !== null &&
|
||||
(typeof r.timeoutConfigKey !== 'string' || r.timeoutConfigKey.length === 0)) {
|
||||
errors.push(
|
||||
ctx + ' reviewer.timeoutConfigKey must be a dotted config key or null ' +
|
||||
'(got: ' + describeValue(r.timeoutConfigKey) + ')',
|
||||
);
|
||||
}
|
||||
|
||||
// `null` is the declared "no per-lane budget"; an empty string is not.
|
||||
if (r.promptBudgetKey !== null && (typeof r.promptBudgetKey !== 'string' || r.promptBudgetKey.length === 0)) {
|
||||
errors.push(
|
||||
|
||||
Reference in New Issue
Block a user