ruvector/docs/postgres
rUv 43b1d1d940 fix(intelligence): Fix Q-table lookups - learning now has real effect
Three critical bugs were preventing the intelligence layer from using
learned patterns:

1. State format mismatch: CLI used spaces ("editing rs in project")
   but Q-table used underscores ("edit_rs_in_project")
   - Fixed in cli.js: all states now use underscore format

2. stateKey() hyphen normalization: Function converted hyphens to
   underscores, but Q-table keys had hyphens (e.g. "ruvector-core")
   - Fixed regex: /[^a-z0-9-]+/g preserves hyphens

3. A/B testing control group: 10% random sessions ignored learning
   - Reduced holdout to 5% with persistent session assignment
   - Added INTELLIGENCE_MODE=treatment env override for development

Result: Agent recommendations now show 80% confidence for Rust files
using learned Q-values, instead of 0% with random selection.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 21:44:41 +00:00
..
v2 fix(intelligence): Fix Q-table lookups - learning now has real effect 2025-12-25 21:44:41 +00:00
zero-copy docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
operator-quick-reference.md docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
parallel-implementation-summary.md docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
parallel-query-guide.md docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
postgres-memory-implementation-summary.md docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
postgres-zero-copy-memory.md docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
postgres-zero-copy-quick-reference.md docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
SPARSEVEC_IMPLEMENTATION.md docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
SPARSEVEC_QUICKSTART.md docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00