MicroFish/backend
renancloudwalk f35cdb9696
feat(swarm): real bias-fix prompt (gate 13) on GLM-5.2
- Add bias_fixed_prompt (gate 13 calibration): sector-median company = neutral,
  mediocre-but-stable = neutral not bearish, symmetric bull/bear, null = average.
- Wire B screen tier, C, control-BC to bias_fixed; A stays on original screen_prompt
  (correctly fails gate 13 on merit = the CEO's 65%-bearish complaint).
- Fix bias_control NUMERIC_FIELDS to real eligible field names (revenue_ttm, net_income)
  so sector medians actually compute.
- Live evidence (captured, GLM-5.2 over SSH tunnel, 500-co control each):
  control-A (original):  57 bull / 270 bear / 125 neutral  -> diff=0.651 (FAIL, bearish)
  control-BC (fixed):    14 bull /  68 bear / 402 neutral  -> diff=0.659 (FAIL, residual)
  The bias fix cuts bearish share by pushing average -> neutral, but GLM-5.2 still
  emits ~5:1 bear:bull on the directional calls it commits to. Prompt calibration
  cannot fully remove this model-level pessimistic bias -> gate 13 honest blocker.
- bias_control tests updated to new field names (64 pass).
2026-07-16 07:43:37 -03:00
..
app refactor: add type hints and FileParser.is_supported() helper 2026-05-23 14:57:46 +08:00
scripts feat(swarm): real bias-fix prompt (gate 13) on GLM-5.2 2026-07-16 07:43:37 -03:00
sql feat(swarm): v15 parallel run + gate-25 deepdive SQL + gate-23 token count + gate-8 examples 2026-07-16 07:18:52 -03:00
tests feat(swarm): real bias-fix prompt (gate 13) on GLM-5.2 2026-07-16 07:43:37 -03:00
pyproject.toml feat: add stock swarm throughput benchmark 2026-07-15 12:02:57 -03:00
requirements.txt fix(file_parser): handle non-UTF-8 encoded text files with automatic encoding detection 2026-01-22 18:28:37 +08:00
run.py Add UTF-8 encoding support for Windows console in run.py and logger.py to prevent character encoding issues 2025-12-26 17:58:48 +08:00
uv.lock fix(backend): constrain Python version to 3.11-3.12 2026-05-24 22:59:36 +08:00