Feat/voice haptics bot detection training - #1104
Merged
chinweobtagaz merged 4 commits intoAug 26, 2026
Merged
Conversation
Implements useHaptics hook using Web Vibration API with patterns for move, capture, check, and game over events. Adds haptic toggle to SoundSettings with test buttons and graceful degradation. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…suite Implements parse_voice_move() for converting spoken chess moves into UCI notation. Supports piece-to-square, captures, castling, shorthand, phonetic normalization (night->knight, see four->c4), and board-aware disambiguation. Returns structured VoiceMoveResult with UCI, SAN, and confidence score. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Implements trajectory classification analyzing velocity profiles, acceleration jitter, curvature deviation, and click dwell time. Detects bot signatures: teleports, straight lines, constant speed, and superhuman velocity. Gracefully ignores touch devices. 31 tests covering human vs bot accuracy. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Implements dual-headed architecture (Value Head + Policy Head) with residual blocks, cosine annealing LR, mixed precision, and WandB integration. Includes board encoding, synthetic dataset generation, and 30 tests for encoding, model forward/backward pass, and loss. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@bilkee Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TASK 1: Haptic Feedback (16 tests pass)
frontend/hook/useHaptics.ts — Vibration API hook with patterns for move/capture/check/gameOver
frontend/components/SoundSettings.tsx — Toggle with test buttons, localStorage persistence
frontend/tests/useHaptics.test.ts — 16 tests, all passing
Closes #1033
TASK 2: Voice Command Parser (141 tests pass)
agent-engines/gpu_worker/nl_intent_parser.py — parse_voice_move() handles piece-to-square, captures, castling, shorthand, phonetic normalization, board-aware disambiguation
agent-engines/tests/test_voice_parser.py — 100-command corpus, all passing
Closes #1075
TASK 3: Bot Detection Model (31 tests pass)
agent-engines/gpu_worker/player_behavior_monitor.py — Trajectory kinematics: velocity, acceleration jitter, curvature, dwell time. Detects teleports, straight lines, constant speed, superhuman velocity
agent-engines/tests/test_behavior_monitor.py — 31 tests including human vs bot accuracy
Closes #1076
TASK 4: Training Pipeline (code complete, tests need PyTorch)
agent-engines/gpu_worker/train_valuation_head.py — Dual-headed Value+Policy architecture with ResBlocks, mixed precision, DDP, WandB, cosine annealing
Closes #1077