feat: SIN Fusion v1 — plan-merge, Oracle default, modelperf registry (#393, #394, #395) - #397
Merged
Merged
Conversation
added 7 commits
June 18, 2026 13:02
…issue #395) - internal/modelperf/store.go: SQLite store with upsert + recommend + ranking - internal/modelperf/benchmark.go: parallel benchmark runner across providers - internal/modelperf/*_test.go: 15 tests, race-clean - fusion_cmd.go: benchmark/rank/recommend subcommands added to existing CLI - loopbuilder/builder.go: recommendation-aware provider selection - Opens modelperf.db, detects task category, sorts providers by score - Cold-start: falls back to full pool if no data - Config.TaskDescription field for category detection - DetectCategory heuristic: 7 task categories from prompt keywords - Score: 80% pass_rate + 20% cost-efficiency
…393, #394, #395) #393: ModePlanMerge — N planners → judge merges → 1 coder → verify #394: Oracle is now default fusion mode (quality over cost) #395: Model Performance Registry — benchmark/rank/recommend CLI + recommendation-aware provider selection in loopbuilder Files: - internal/fusion/plan_merge.go + test (10 tests) - internal/fusion/tournament.go: PlanMergeJudge field + dispatch - internal/modelperf/store.go + benchmark.go + tests (15 tests) - fusion_cmd.go: 6 subcommands (status/config/providers/benchmark/rank/recommend) - main.go: NewFusionCmd registered - loopbuilder/builder.go: Oracle default, FusionMode config, modelperf wiring - Pre-existing: llm ThinkingTokens, agentloop compaction_helpers
…registry.go duplicate)
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🏆 CEO Audit — A+ (100.0/100)
📥 Download full report (Markdown)
|
🏆 CEO Audit — A+ (100.0/100)
📥 Download full report (Markdown) Run ID:
|
| if path == "" { | ||
| path = DefaultPath() | ||
| } | ||
| if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil { |
| for _, r := range out.Results { | ||
| fmt.Fprintf(w, "%s\t%.1f%%\t%v\t$%.4f\n", r.Model, r.PassRate*100, r.AvgLatency, r.AvgCost) | ||
| } | ||
| w.Flush() |
| w := tabwriter.NewWriter(os.Stdout, 0,0,2,' ',0) | ||
| fmt.Fprintf(w, "Category\tModel\tPass Rate\tSamples\tCost\n") | ||
| for _, r := range recs { fmt.Fprintf(w, "%s\t%s\t%.1f%%\t%d\t$%.4f\n", r.Category, r.Model, r.PassRate*100, r.SampleCount, r.AvgCostUSD) } | ||
| w.Flush() |
| w := tabwriter.NewWriter(os.Stdout, 0,0,2,' ',0) | ||
| fmt.Fprintf(w, "Rank\tModel\tScore\tPass Rate\tSamples\n") | ||
| for i, r := range recs { fmt.Fprintf(w, "%d\t%s\t%.3f\t%.1f%%\t%d\n", i+1, r.Model, r.Score, r.PassRate*100, r.Samples) } | ||
| w.Flush() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three SIN Fusion v1 enhancements for v3.22.0:
#393 — Plan-Merge Mode
N models plan in parallel → LLM judge merges best insights → 1 model codes → verify-gate. Unlike PoC/Oracle, preserves all insights.
#394 — Oracle as Default
Default fusion mode: PoC → Oracle (quality over cost).
fusion.modeconfig:poc|oracle|plan-merge.#395 — Model Performance Registry
SQLite-backed per-model-per-category benchmark DB.
sin-code fusion benchmark/rank/recommend. Auto-wired into loopbuilder — recommended models prioritized.Verification