fix: resolve remaining capability-gate review findings #3
Reference in New Issue
Block a user
Delete Branch "neuralwatt-router-service"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the bugs_to_fix/capability-gate-followups.md plan (#1-#6).
Changes
require_json_mode: an image + json_object request falls through to the 422 naming the missing capability instead of returning prose that breaks the JSON contract.cfg.routing.require_vision/require_json_mode, so a pin and routed traffic face the same gate.deepseek-v4-flashin opencode.json (supports_vision = 0), verified against the live catalog.routing.capability_gate_reason(), shared byrejection_reasonand the pinned check, so the flag rule cannot drift between the two.iter_image_url_values()generator replaces four image-part traversals;_run_local_visioncomputes count/bytes once.Tests
Adds 9 tests (capability_gate_reason unit coverage, json-mode-gated local fallback, vision-gate-off for pins). Full suite: 416 passing (was 407).