graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
merge fixes: catalog rows for PR #395 providers, index-proof kimi scope test
Rach Pradhan6ab9e57ab60b
diff --git a/src/pricing.zig b/src/pricing.zigindex b5005871..e28cc056 100644--- a/src/pricing.zig+++ b/src/pricing.zig@@ -248,6 +248,13 @@ pub const model_table = [_]ModelInfo{.{ .provider = "fireworks", .name = "accounts/fireworks/models/minimax-m3", .context = 512_000 },.{ .provider = "fireworks", .name = "accounts/fireworks/models/qwen3p7-plus", .context = 262_144 },.{ .provider = "fireworks", .name = "accounts/fireworks/models/gpt-oss-120b", .context = 131_072 },+ // PR #395 providers (groq/mistral/kilo): context rows so boot and routing+ // work before any live /models fetch. gpt-oss-120b matches the fireworks+ // row for the same weights; kilo-auto routes dynamically, so its row+ // carries the conservative small-model window.+ .{ .provider = "groq", .name = "openai/gpt-oss-120b", .context = 131_072 },+ .{ .provider = "mistral", .name = "mistral-medium-latest", .context = 131_072 },+ .{ .provider = "kilo", .name = "kilo-auto/small", .context = 131_072 },// codegraff gateway (its claude aliases use dots, so they don't collide// with the anthropic rows above).{ .provider = "codegraff", .name = "claude-opus-4.8", .context = 1_000_000 },diff --git a/src/startup_tests.zig b/src/startup_tests.zigindex f537df35..2f5b79e8 100644--- a/src/startup_tests.zig+++ b/src/startup_tests.zig@@ -68,5 +68,12 @@ test "resolveKeys does not load Kimi/xAI OAuth credentials for an explicit unrelconst startup = @import("startup.zig");try std.testing.expect(startup.storedKeyMayAffectSelection("kimi", "gpt-5.6-sol", "kimi"));try std.testing.expect(!startup.storedKeyMayAffectSelection("kimi", "gpt-5.6-sol", null));- try std.testing.expect(startup.startupStoredKeyScope("deepseek", true, "kimi").includes(6, "kimi"));+ // The scope mask is indexed by provider_specs position — look kimi's up+ // rather than hardcoding it, so provider insertions (PR #395 shifted it+ // from 6 to 9) can't silently break this assertion again.+ const specs = @import("provider.zig").provider_specs;+ const kimi_idx = for (specs, 0..) |s, i| {+ if (std.mem.eql(u8, s.id, "kimi")) break i;+ } else unreachable;+ try std.testing.expect(startup.startupStoredKeyScope("deepseek", true, "kimi").includes(kimi_idx, "kimi"));}