Skip to content

fix(router): stop bare 'review' from forcing research routing - #81

Merged
dorukardahan merged 2 commits into
mainfrom
fix/review-keyword-code-disambiguation
Aug 17, 2026
Merged

fix(router): stop bare 'review' from forcing research routing#81
dorukardahan merged 2 commits into
mainfrom
fix/review-keyword-code-disambiguation

Conversation

@dorukardahan

Copy link
Copy Markdown
Owner

Summary

  • Disambiguate the overloaded review keyword so software/PR/security review no longer routes as research.
  • Keep literature-review collocates on research; ignore bare/ambiguous review.
  • Land the same behavior in OpenClaw TS + Hermes Python with focused regressions.

Why

Live Dorry incident: a PR-status reply containing “review” was classified zeroapi:research:keyword:review, switched gpt-5.6-sol → glm-5.2, then later fell back to Grok after Z.AI 429. That first hop was a bad route decision, not a GPT outage.

Test plan

  • npm --workspace zeroapi test -- __tests__/classifier.test.ts (30/30)
  • python3 -m unittest discover -s integrations/hermes -p 'test_router.py' (54/54)
  • npm run test:hermes (237/237)
  • npm run test:plugin (319/319)
  • Live-policy repro: incident PR-review text → code, bare review → default, literature review → research

A lone "review" token in research keywords was enough to reclassify
software/PR work as research and switch Dorry off GPT-5.6 Sol onto
GLM. Disambiguate the overloaded keyword:

- software/PR/security/CI collocates attribute "review" to code
- literature/paper/evidence collocates keep research
- bare/ambiguous "review" no longer scores either lane

Parity fix lands in both the OpenClaw TS classifier and Hermes Python
adapter, with focused regressions covering the live incident shape.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dorukardahan
dorukardahan merged commit a449210 into main Aug 17, 2026
7 checks 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