`review-lane plan` resolved every cross-AI reviewer lane's reasoning effort by spawning `query resolve-execution gsd-plan-checker --host <slug>`. The agent id was a hardcoded literal, so `--host` chose only the argv RENDERING while the LEVEL always came from the installed plan-checker's frontmatter — `low` under every shipped model profile. Every prompt-fed lane therefore ran at a fast structural verifier's effort, and because the rendered argument is a CLI config override it silently beat the effort the operator had configured for that CLI. At `low` a large source-grounded prompt makes a model end its turn with no final message, so the lane came back empty and its stub read as a crash. Effort is a property of the review, so the lane declares it. Two new fields on ReviewerLane — `effortConfigKey` (`review.effort.<slug>`) and `defaultEffort` — carried through each capability manifest and the generated registry, set on the three lanes with an argv effort channel and null on the other nine. A new pure `resolveLaneEffort()` resolves config key -> lane default -> nothing, where "nothing" emits no effort argument at all and the reviewer CLI's own configuration decides; `inherit` selects that path explicitly and an unrecognized level falls back to the lane default rather than being forwarded to a CLI that would reject it. The host's negotiated effortSurface still gates the rendering, so ADR-1239/#2481's trust boundary holds on this path too. Resolving in-process also removes up to twelve subprocess spawns per review. The empty-output stub now names the effort the lane ran at and distinguishes a clean exit from a timeout kill, a non-zero exit, and a process that never ran — `status` is null for both a timeout and a signal, so those were indistinguishable before. The hint is hedged: a clean empty exit is most often a model stopping short, but it is also consistent with a CLI writing its output elsewhere. Also: the capability validator now knows both fields, rejects a malformed key or an out-of-vocabulary default, and rejects a default declared without a config key (a level the operator could never override). An existing end-to-end row in tests/effort-surface-axis.test.cjs asserted the old coupling; it now configures the lane's own key and pins the decoupling in the same real spawn, with the agent execution tier set to a level that must not appear. Emitted-Drift-Ack-Growth: review.md — the effort/model resolution-order table this fix adds. The workflow is where an operator looks to find out which knob set a lane's model and effort; leaving the new key undocumented there is the same invisibility that made the plan-checker coupling survive this long. Emitted-Drift-Ack-Growth: review.md — the effort/model resolution-order table this fix adds. The workflow is where an operator looks to find out which knob set a lane's model and effort, so leaving the new key undocumented there is the same invisibility that let the plan-checker coupling survive. Claude-Session: https://claude.ai/code/session_01CRMEuzNMWn3gs5uUW2ghcF Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Tom Boucher <trekkie@nomorestars.com>
This commit is contained in:
committed by
GitHub
parent
925a363879
commit
5ad9a36f35
@@ -1849,9 +1849,26 @@ const KNOWN_REVIEWER_FIELDS = new Set([
|
||||
// `timeoutConfigKey` added by #3274, same optional/backward-compatible shape as
|
||||
// `modelConfigKey` above: a manifest authored before this field existed must keep validating.
|
||||
'timeoutConfigKey',
|
||||
// `effortConfigKey` / `defaultEffort` added by #4255, same optional/backward-compatible shape
|
||||
// as the two above. Lane effort used to be resolved by querying the `gsd-plan-checker` AGENT
|
||||
// through a hardcoded id, so every prompt-fed lane ran at that verifier's frontmatter effort;
|
||||
// it is a property of the review, so the lane declares it. A manifest authored before these
|
||||
// fields existed must keep validating — absent is read as "this lane declares no review
|
||||
// effort", which emits no effort argument at all.
|
||||
'effortConfigKey',
|
||||
'defaultEffort',
|
||||
'handler',
|
||||
]);
|
||||
|
||||
/**
|
||||
* The effort levels a lane may declare as its review default (#4255, #3533 vocabulary).
|
||||
*
|
||||
* `inherit` is deliberately NOT a member. It is a legitimate CONFIGURED value — it selects "emit
|
||||
* no argument, the CLI's own configuration decides" — but as a DECLARED default it would be a
|
||||
* second spelling of `null` and split one behaviour across two shapes.
|
||||
*/
|
||||
const REVIEWER_EFFORT_LEVELS = new Set(['minimal', 'low', 'medium', 'high', 'xhigh', 'max']);
|
||||
|
||||
/**
|
||||
* The closed `runtime.hostBehaviors` vocabulary (ADR-1016, closed via #2801).
|
||||
*
|
||||
@@ -2407,6 +2424,39 @@ function validateReviewerBodyFields(cap) {
|
||||
);
|
||||
}
|
||||
|
||||
// OPTIONAL, mirroring the two keys above (#4255). Absent/null means "this lane declares no
|
||||
// review effort", which is the shape that emits no effort argument at all — the correct state
|
||||
// for the nine lanes with no effort channel to feed. An empty string is neither.
|
||||
if (r.effortConfigKey !== undefined && r.effortConfigKey !== null &&
|
||||
(typeof r.effortConfigKey !== 'string' || r.effortConfigKey.length === 0)) {
|
||||
errors.push(
|
||||
ctx + ' reviewer.effortConfigKey must be a dotted config key or null ' +
|
||||
'(got: ' + describeValue(r.effortConfigKey) + ')',
|
||||
);
|
||||
}
|
||||
|
||||
// A declared default must be a level the effort axis knows, or the lane would render an
|
||||
// argument the reviewer CLI rejects and kill itself on every run. Closed vocabulary, checked
|
||||
// here rather than at resolution time so a malformed manifest fails at the trust boundary.
|
||||
if (r.defaultEffort !== undefined && r.defaultEffort !== null
|
||||
&& !(typeof r.defaultEffort === 'string' && REVIEWER_EFFORT_LEVELS.has(r.defaultEffort))) {
|
||||
errors.push(
|
||||
ctx + ' reviewer.defaultEffort must be one of ' +
|
||||
Array.from(REVIEWER_EFFORT_LEVELS).join('/') + ' or null ' +
|
||||
'(got: ' + describeValue(r.defaultEffort) + ')',
|
||||
);
|
||||
}
|
||||
|
||||
// A default with nothing to configure it through is a value the operator cannot change — the
|
||||
// shape #4255 exists to end. Declared together or not at all.
|
||||
if ((r.defaultEffort !== undefined && r.defaultEffort !== null)
|
||||
&& (r.effortConfigKey === undefined || r.effortConfigKey === null)) {
|
||||
errors.push(
|
||||
ctx + ' reviewer.defaultEffort is declared without an effortConfigKey, so the level ' +
|
||||
'could never be overridden',
|
||||
);
|
||||
}
|
||||
|
||||
// `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