You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
consult claude lane: five follow-ups from the live review (api-key logged-out advice, tool-guard duplicates, npm install hint, configurable caps, docs) #1941
Five small defects in consult's claude lane, found by a live review of the installed build after the lane moved to the installed claude command line tool (PR #1913, issue #1912). None blocks reviews today. Fix all five in one PR.
The five points
Wrong advice in api-key mode. When the lane runs in api-key mode and the result says the session is logged out, the message tells the user to run claude auth login. That is the subscription remedy; in api-key mode the fix is the key. Give the advice that matches the mode. (packages/codev/src/lib/claude-cli.ts, and the lane's failure path in packages/codev/src/commands/consult/index.ts.)
The tool-list guard fails on a harmless duplicate. The guard near packages/codev/src/commands/consult/index.ts:1020 requires each review tool "exactly once". claude self-updates, so a cosmetic change that lists a tool twice would stop every review at once. Compare as sets: the session must report exactly Read, Glob, Grep and nothing else. A duplicate is fine; an extra or a missing tool still aborts. Do not weaken the extra-tool check — that is the security half.
"claude not found" names only the curl installer.CLAUDE_INSTALL_HINT (packages/codev/src/lib/claude-cli.ts:43) is curl -fsSL https://claude.ai/install.sh | bash. A locked-down CI image needs the npm route. Name both, as the update hint beside it already does.
The $25 and 200-turn caps are hard-coded.CLAUDE_MAX_BUDGET_USD = 25 and CLAUDE_MAX_TURNS = 200 (packages/codev/src/commands/consult/index.ts:821-824). On the subscription the dollars are notional, so the budget cap can stop a large review over spend that never happens. Make both configurable under consult in .codev/config.json, keeping today's values as the defaults, and have the cap-reached message name the setting. Validate the values and fail loudly on a bad one.
Docs.README.md and INSTALL.md do not mention the claude 2.1.141 minimum version. Add it. Also state plainly, where the docs describe withholding the API key from the lane, that this is a billing guarantee and not secrecy: the reviewer can still read the workspace .env with its Read tool (this was equally true of the old Agent SDK lane).
Notes for the builder
Mirror any doc or framework-file change in codev-skeleton/ where a twin exists; CLAUDE.md and AGENTS.md stay byte-identical.
Tests for points 1, 2 and 4: a logged-out result in each auth mode; a duplicated tool list (passes), an extra tool (aborts), a missing tool (aborts); a configured cap reaching the claude argv, and a bad value rejected.
Targeted tests while iterating; the full suite once, for the porch check.
Activity
waleedkadous commentedon Nov 21, 2026
On it! Working on a fix now.
[Bugfix #1941] Fix: claude lane follow-ups (auth advice, tool guard, …
[Bugfix #1941] Test: mode-aware login advice, set-based tool guard, c…
[Bugfix #1941] Fix: regenerate shipped skill hashes for the consult S…
[Bugfix #1941] Thread: investigation, fix and load-driven test failures
[Bugfix #1941] Thread: CI result and owner ruling on the local tests …
[Bugfix #1941] Fix: pass the review caps in the read-only e2e test
[Bugfix #1941] Thread: CMAP iteration 1 dispositions
Merge pull request #1942 from cluesmith/builder/bugfix-1941
release notes: Windows preview label removed, session jobs, afx statu…