test(bias): add efficacy simulation tests and enhance strategy labels

This commit is contained in:
2026-03-10 10:25:09 -04:00
parent 12514ceb28
commit 85ae4094cb
2 changed files with 63 additions and 2 deletions

View File

@@ -39,13 +39,23 @@ class ToolBiasEngine:
lines = ["### Tooling Strategy"]
preferred = []
low_priority = []
for cat_tools in preset.categories.values():
for t in cat_tools:
if isinstance(t, Tool) and t.weight >= 4:
preferred.append(t.name)
if not isinstance(t, Tool): continue
if t.weight >= 5:
preferred.append(f"{t.name} [HIGH PRIORITY]")
elif t.weight == 4:
preferred.append(f"{t.name} [PREFERRED]")
elif t.weight == 2:
low_priority.append(f"{t.name} [NOT RECOMMENDED]")
elif t.weight <= 1:
low_priority.append(f"{t.name} [LOW PRIORITY]")
if preferred:
lines.append(f"Preferred tools: {', '.join(preferred)}.")
if low_priority:
lines.append(f"Low-priority tools: {', '.join(low_priority)}.")
if global_bias.category_multipliers:
lines.append("Category focus multipliers:")