ruvector/docs/postgres/v2
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
..
00-overview.md fix(intelligence): Fix Q-table lookups - learning now has real effect 2025-12-25 21:44:41 +00:00
01-sql-schema.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
02-background-workers.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
03-index-access-methods.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
04-integrity-events.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
05-phase1-pgvector-compat.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
06-phase2-tiered-storage.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
07-phase3-graph-cypher.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
08-phase4-integrity-control.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
09-migration-guide.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
10-consistency-replication.md feat(postgres): Add RuVector Postgres v2 implementation plan 2025-12-25 20:49:12 +00:00
11-hybrid-search.md feat(postgres): Add hybrid search, multi-tenancy, and self-healing specs 2025-12-25 21:10:28 +00:00
12-multi-tenancy.md feat(postgres): Add hybrid search, multi-tenancy, and self-healing specs 2025-12-25 21:10:28 +00:00
13-self-healing.md feat(postgres): Add hybrid search, multi-tenancy, and self-healing specs 2025-12-25 21:10:28 +00:00