Skip to content

feat: score-based finding routing + project-type profiles (v3.6.0)#5

Merged
bc1plainview merged 4 commits into
mainfrom
loop/smart-routing-profiles
Mar 13, 2026
Merged

feat: score-based finding routing + project-type profiles (v3.6.0)#5
bc1plainview merged 4 commits into
mainfrom
loop/smart-routing-profiles

Conversation

@bc1plainview

Copy link
Copy Markdown
Owner

Summary

  • Score-based finding routing: Routes reviewer/auditor findings to the agent most likely to fix them based on historical success rates. Uses a 10-category taxonomy (css-styling, wallet-connect, contract-logic, abi-mismatch, network-config, deployment, testing, security, build-errors, backend-api). Falls back to keyword routing when agents have <5 sessions.
  • Project-type profiles: Auto-generated profiles for project types with 5+ completed sessions. Profiles include common pitfalls from the pattern store, recommended agent config, suggested challenge gates to skip, and per-agent performance data.
  • Strengths/weaknesses tracking: update-scores.sh --findings now parses categorized findings and updates per-agent strengths and weaknesses arrays.

New Files

  • scripts/route-finding.sh — Finding router with category taxonomy
  • scripts/generate-profiles.sh — Profile generator from retrospectives
  • learning/profiles/README.md — Profile schema documentation

Modified Files

  • scripts/update-scores.sh — Added --findings parameter for strengths/weaknesses
  • commands/buidl.md — Phase 1 profile pre-check, Phase 4 Step 0e, Phase 5 routing, Phase 6 generation
  • CHANGELOG.md — v3.6.0 entry
  • .claude-plugin/plugin.json — Version bump to 3.6.0
  • README.md — v3.6.0 features
  • tests/plugin-tests.sh — 23 new tests (295 total)

Test plan

  • 295/295 plugin tests pass
  • Verify route-finding.sh returns correct agent for CSS finding
  • Verify route-finding.sh falls back to keyword when no scores
  • Verify generate-profiles.sh runs without error on empty learning dir
  • Verify update-scores.sh --findings updates strengths/weaknesses

Score-based routing: route reviewer/auditor findings to agents based on
historical success rates. 10-category taxonomy matched against agent
strengths/weaknesses. Falls back to keyword routing with <5 sessions.

Project-type profiles: auto-generated after 5+ sessions of the same type.
Includes common pitfalls from pattern store, recommended agent config,
and skip-friendly challenge gates. Regenerated at thresholds 5/10/20/50.

New files:
- scripts/route-finding.sh (finding router with category taxonomy)
- scripts/generate-profiles.sh (profile generator from retrospectives)
- learning/profiles/ (auto-generated profile storage)

Enhanced:
- scripts/update-scores.sh (--findings flag for strengths/weaknesses)
- commands/buidl.md (Phase 1 profile pre-check, Phase 4 Step 0e profile
  loading, Phase 5 score-based routing, Phase 6 profile generation)
- 23 new tests (295 total)
- Keyword fallback now respects candidate list via candidate_or_first helper
- Fix Python strength/weakness matching inconsistency (substring matching)
- Fix shift 2 crash in --findings parsing under set -euo pipefail
- Add 6 functional integration tests: routing, update-scores --findings, generate-profiles
- All 303 tests pass
Keywords like mldsaSigner and opnetTestnet would never match after
tr lowercasing. All keywords are now lowercase and grep uses -qE
instead of -qiE since input is already lowercased.
@bc1plainview bc1plainview merged commit 1a7a29d into main Mar 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant